diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/index.html b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/index.html index bc27bdc9e5fe..e33be4f96e10 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/index.html +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/index.html @@ -2328,7 +2328,7 @@ box-sizing: border-box; width: 100%; min-height: 45px; - max-height: 40vh; + max-height: calc(22px * 8 + 23px); margin: 0; padding: 15px 16px 8px 32px; border: 0; @@ -2347,7 +2347,7 @@ .acpmux-composer[data-shell] .acpmux-composer-box { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acpmux-shell-accent) 55%, transparent); } -/* The location row above the composer (ComposerContext.tsx): "This Mac ⌄ · ⌄", one quiet +/* The location tray below the composer (ComposerContext.tsx): folder and branch controls, one quiet row of text menu buttons that all look alike. A control is a plain text button (no native bezel, no fill, no weight change); hover and an open menu lay a soft rounded wash from the theme under it, and keyboard focus draws a ring in the theme's text color. The padding is always there, so @@ -2356,14 +2356,23 @@ display: flex; align-items: center; justify-content: flex-end; - gap: 2px; + gap: 8px; min-width: 0; - height: 28px; - margin: 0 12px -2px; + height: 36px; + margin: -12px 0 16px; + padding: 0 14px; + box-sizing: border-box; + border: 1px solid var(--acpmux-composer-edge); + border-top: 0; + border-radius: 0 0 20px 20px; + background: var(--acpmux-composer-tray); color: var(--agent-muted); font-size: 12px; line-height: 16px; } +.acpmux-composer-context > .acpmux-location-leading { display: flex; align-items: center; gap: 2px; min-width: 0; margin-right: auto; flex: 1 1 0; } +.acpmux-composer-context > .acpmux-location-leading > .acpmux-location-picker, +.acpmux-composer-context > .acpmux-location-picker { flex: 1 1 0; min-width: 0; } .acpmux-location-picker { position: relative; display: inline-flex; @@ -2377,6 +2386,7 @@ align-items: center; gap: 4px; min-width: 0; + width: 100%; max-width: 220px; height: 22px; margin: 0; @@ -2428,6 +2438,37 @@ .acpmux-location-menu .ui-menu-item[data-highlighted] { background: var(--acpmux-menu-hover); } .acpmux-location-menu .acpmux-menu-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acpmux-location-menu .ui-separator { flex: none; height: 1px; margin: 4px 6px; background: color-mix(in srgb, var(--agent-text) 12%, transparent); } + +/* The shelf sits behind the composer edge instead of reading as a second full row. The composer + owns the shadow and the shelf keeps a stable inset, so opening a menu never moves the transcript. */ +.acpmux-composer-box { z-index: 2; } +.acpmux-composer-context { + position: relative; + z-index: 1; + height: 40px; + margin: -14px 2px 12px; + padding: 10px 10px 0; + border-top: 0; + border-radius: 0 0 18px 18px; + box-shadow: inset 0 0 0 .5px var(--acpmux-composer-edge), 0 4px 10px color-mix(in srgb, var(--agent-text) 6%, transparent); +} +.acpmux-composer-bar { + min-height: 52px; + height: auto; + padding: 6px 12px; +} +.acpmux-mode .acpmux-mode-text { display: none; } +.acpmux-mode .acpmux-picker-button { + width: 30px; + justify-content: center; + gap: 0; + padding: 0; +} +.acpmux-mode .acpmux-picker-button .acpmux-icon:last-child { display: none; } +.acpmux-mode .acpmux-picker-button[aria-expanded="true"], +.acpmux-mode .acpmux-picker-button:hover { color: var(--agent-text); } +.acpmux-send { width: 32px; height: 32px; } +.acpmux-context-ring { width: 32px; height: 32px; } /* The composer's attachment row (Composer.tsx AttachmentChip), laid out like a native chat composer: the row sits inside the composer at the text's own inset, the attachments keep a gap between them and above the text, and each thumbnail's corners nest in the composer's (inner radius = the @@ -2685,7 +2726,9 @@ user formats. Theme tokens only. */ .acpmux-md-field { position: relative; - max-height: 40vh; + /* Keep long drafts inside the composer. Eight lines matches the reference composer and + leaves the transcript and location shelf anchored while the draft grows. */ + max-height: calc(22px * 8 + 23px); overflow-y: auto; padding: 15px 16px 8px; font-size: 15px; diff --git a/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/pane.js b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/pane.js index 6b3ed5b83d8b..ae1936dc2942 100644 --- a/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/pane.js +++ b/Packages/macOS/CmuxNext/Sources/CmuxNextAgentPane/Resources/agent-pane/pane.js @@ -1,13 +1,13 @@ -var wve=Object.create;var dR=Object.defineProperty;var vve=Object.getOwnPropertyDescriptor;var kve=Object.getOwnPropertyNames;var Cve=Object.getPrototypeOf,_ve=Object.prototype.hasOwnProperty;var tr=(t,e)=>()=>(t&&(e=t(t=0)),e);var _o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fn=(t,e)=>{for(var n in e)dR(t,n,{get:e[n],enumerable:!0})},Sve=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kve(e))!_ve.call(t,i)&&i!==n&&dR(t,i,{get:()=>e[i],enumerable:!(r=vve(e,i))||r.enumerable});return t};var R=(t,e,n)=>(n=t!=null?wve(Cve(t)):{},Sve(e||!t||!t.__esModule?dR(n,"default",{value:t,enumerable:!0}):n,t));var PV=_o(ti=>{"use strict";function bR(t,e){var n=t.length;t.push(e);e:for(;0>>1,i=t[r];if(0>>1;rQ8(s,n))lQ8(c,s)?(t[r]=c,t[l]=n,r=l):(t[r]=s,t[a]=n,r=a);else if(lQ8(c,n))t[r]=c,t[l]=n,r=l;else break e}}return e}function Q8(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}ti.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(LV=performance,ti.unstable_now=function(){return LV.now()}):(fR=Date,MV=fR.now(),ti.unstable_now=function(){return fR.now()-MV});var LV,fR,MV,lp=[],lf=[],jve=1,dc=null,fa=3,yR=!1,U3=!1,V3=!1,xR=!1,RV=typeof setTimeout=="function"?setTimeout:null,AV=typeof clearTimeout=="function"?clearTimeout:null,EV=typeof setImmediate<"u"?setImmediate:null;function J8(t){for(var e=Xu(lf);e!==null;){if(e.callback===null)e9(lf);else if(e.startTime<=t)e9(lf),e.sortIndex=e.expirationTime,bR(lp,e);else break;e=Xu(lf)}}function wR(t){if(V3=!1,J8(t),!U3)if(Xu(lp)!==null)U3=!0,T5||(T5=!0,E5());else{var e=Xu(lf);e!==null&&vR(wR,e.startTime-t)}}var T5=!1,Z3=-1,$V=5,IV=-1;function NV(){return xR?!0:!(ti.unstable_now()-IV<$V)}function hR(){if(xR=!1,T5){var t=ti.unstable_now();IV=t;var e=!0;try{e:{U3=!1,V3&&(V3=!1,AV(Z3),Z3=-1),yR=!0;var n=fa;try{t:{for(J8(t),dc=Xu(lp);dc!==null&&!(dc.expirationTime>t&&NV());){var r=dc.callback;if(typeof r=="function"){dc.callback=null,fa=dc.priorityLevel;var i=r(dc.expirationTime<=t);if(t=ti.unstable_now(),typeof i=="function"){dc.callback=i,J8(t),e=!0;break t}dc===Xu(lp)&&e9(lp),J8(t)}else e9(lp);dc=Xu(lp)}if(dc!==null)e=!0;else{var o=Xu(lf);o!==null&&vR(wR,o.startTime-t),e=!1}}break e}finally{dc=null,fa=n,yR=!1}e=void 0}}finally{e?E5():T5=!1}}}var E5;typeof EV=="function"?E5=function(){EV(hR)}:typeof MessageChannel<"u"?(gR=new MessageChannel,TV=gR.port2,gR.port1.onmessage=hR,E5=function(){TV.postMessage(null)}):E5=function(){RV(hR,0)};var gR,TV;function vR(t,e){Z3=RV(function(){t(ti.unstable_now())},e)}ti.unstable_IdlePriority=5;ti.unstable_ImmediatePriority=1;ti.unstable_LowPriority=4;ti.unstable_NormalPriority=3;ti.unstable_Profiling=null;ti.unstable_UserBlockingPriority=2;ti.unstable_cancelCallback=function(t){t.callback=null};ti.unstable_forceFrameRate=function(t){0>t||125r?(t.sortIndex=n,bR(lf,t),Xu(lp)===null&&t===Xu(lf)&&(V3?(AV(Z3),Z3=-1):V3=!0,vR(wR,n-r))):(t.sortIndex=i,bR(lp,t),U3||yR||(U3=!0,T5||(T5=!0,E5()))),t};ti.unstable_shouldYield=NV;ti.unstable_wrapCallback=function(t){var e=fa;return function(){var n=fa;fa=e;try{return t.apply(this,arguments)}finally{fa=n}}}});var OV=_o((wat,jV)=>{"use strict";jV.exports=PV()});var WV=_o(vn=>{"use strict";var _R=Symbol.for("react.transitional.element"),Ove=Symbol.for("react.portal"),Dve=Symbol.for("react.fragment"),Fve=Symbol.for("react.strict_mode"),Bve=Symbol.for("react.profiler"),zve=Symbol.for("react.consumer"),qve=Symbol.for("react.context"),Hve=Symbol.for("react.forward_ref"),Gve=Symbol.for("react.suspense"),Uve=Symbol.for("react.memo"),qV=Symbol.for("react.lazy"),Vve=Symbol.for("react.activity"),DV=Symbol.iterator;function Zve(t){return t===null||typeof t!="object"?null:(t=DV&&t[DV]||t["@@iterator"],typeof t=="function"?t:null)}var HV={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GV=Object.assign,UV={};function A5(t,e,n){this.props=t,this.context=e,this.refs=UV,this.updater=n||HV}A5.prototype.isReactComponent={};A5.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};A5.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function VV(){}VV.prototype=A5.prototype;function SR(t,e,n){this.props=t,this.context=e,this.refs=UV,this.updater=n||HV}var LR=SR.prototype=new VV;LR.constructor=SR;GV(LR,A5.prototype);LR.isPureReactComponent=!0;var FV=Array.isArray;function CR(){}var Ur={H:null,A:null,T:null,S:null},ZV=Object.prototype.hasOwnProperty;function MR(t,e,n){var r=n.ref;return{$$typeof:_R,type:t,key:e,ref:r!==void 0?r:null,props:n}}function Wve(t,e){return MR(t.type,e,t.props)}function ER(t){return typeof t=="object"&&t!==null&&t.$$typeof===_R}function Kve(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var BV=/\/+/g;function kR(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Kve(""+t.key):e.toString(36)}function Xve(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(CR,CR):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function R5(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case _R:case Ove:a=!0;break;case qV:return a=t._init,R5(a(t._payload),e,n,r,i)}}if(a)return i=i(t),a=r===""?"."+kR(t,0):r,FV(i)?(n="",a!=null&&(n=a.replace(BV,"$&/")+"/"),R5(i,e,n,"",function(c){return c})):i!=null&&(ER(i)&&(i=Wve(i,n+(i.key==null||t&&t.key===i.key?"":(""+i.key).replace(BV,"$&/")+"/")+a)),e.push(i)),1;a=0;var s=r===""?".":r+":";if(FV(t))for(var l=0;l{"use strict";KV.exports=WV()});var YV=_o(Ya=>{"use strict";var Jve=Q();function XV(t){var e="https://react.dev/errors/"+t;if(1{"use strict";function QV(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QV)}catch(t){console.error(t)}}QV(),JV.exports=YV()});var dY=_o(Mw=>{"use strict";var fo=OV(),SW=Q(),nke=Ms();function Ie(t){var e="https://react.dev/errors/"+t;if(1D5||(t.current=mA[D5],mA[D5]=null,D5--)}function Or(t,e){D5++,mA[D5]=t.current,t.current=e}var ed=td(null),w4=td(null),vf=td(null),j9=td(null);function O9(t,e){switch(Or(vf,e),Or(w4,t),Or(ed,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?lW(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=lW(e),t=YX(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Mo(ed),Or(ed,t)}function nb(){Mo(ed),Mo(w4),Mo(vf)}function fA(t){t.memoizedState!==null&&Or(j9,t);var e=ed.current,n=YX(e,t.type);e!==n&&(Or(w4,t),Or(ed,n))}function D9(t){w4.current===t&&(Mo(ed),Mo(w4)),j9.current===t&&(Mo(j9),A4._currentValue=Dh)}var TR,nZ;function Nh(t){if(TR===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);TR=e&&e[1]||"",nZ=-1()=>(t&&(e=t(t=0)),e);var _o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fn=(t,e)=>{for(var n in e)fR(t,n,{get:e[n],enumerable:!0})},Sve=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kve(e))!_ve.call(t,i)&&i!==n&&fR(t,i,{get:()=>e[i],enumerable:!(r=vve(e,i))||r.enumerable});return t};var R=(t,e,n)=>(n=t!=null?wve(Cve(t)):{},Sve(e||!t||!t.__esModule?fR(n,"default",{value:t,enumerable:!0}):n,t));var PV=_o(ti=>{"use strict";function wR(t,e){var n=t.length;t.push(e);e:for(;0>>1,i=t[r];if(0>>1;rQ8(s,n))lQ8(c,s)?(t[r]=c,t[l]=n,r=l):(t[r]=s,t[a]=n,r=a);else if(lQ8(c,n))t[r]=c,t[l]=n,r=l;else break e}}return e}function Q8(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}ti.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(LV=performance,ti.unstable_now=function(){return LV.now()}):(bR=Date,MV=bR.now(),ti.unstable_now=function(){return bR.now()-MV});var LV,bR,MV,lp=[],cf=[],jve=1,dc=null,fa=3,vR=!1,V3=!1,Z3=!1,kR=!1,RV=typeof setTimeout=="function"?setTimeout:null,AV=typeof clearTimeout=="function"?clearTimeout:null,EV=typeof setImmediate<"u"?setImmediate:null;function J8(t){for(var e=Xu(cf);e!==null;){if(e.callback===null)e9(cf);else if(e.startTime<=t)e9(cf),e.sortIndex=e.expirationTime,wR(lp,e);else break;e=Xu(cf)}}function CR(t){if(Z3=!1,J8(t),!V3)if(Xu(lp)!==null)V3=!0,R5||(R5=!0,T5());else{var e=Xu(cf);e!==null&&_R(CR,e.startTime-t)}}var R5=!1,W3=-1,$V=5,IV=-1;function NV(){return kR?!0:!(ti.unstable_now()-IV<$V)}function yR(){if(kR=!1,R5){var t=ti.unstable_now();IV=t;var e=!0;try{e:{V3=!1,Z3&&(Z3=!1,AV(W3),W3=-1),vR=!0;var n=fa;try{t:{for(J8(t),dc=Xu(lp);dc!==null&&!(dc.expirationTime>t&&NV());){var r=dc.callback;if(typeof r=="function"){dc.callback=null,fa=dc.priorityLevel;var i=r(dc.expirationTime<=t);if(t=ti.unstable_now(),typeof i=="function"){dc.callback=i,J8(t),e=!0;break t}dc===Xu(lp)&&e9(lp),J8(t)}else e9(lp);dc=Xu(lp)}if(dc!==null)e=!0;else{var o=Xu(cf);o!==null&&_R(CR,o.startTime-t),e=!1}}break e}finally{dc=null,fa=n,vR=!1}e=void 0}}finally{e?T5():R5=!1}}}var T5;typeof EV=="function"?T5=function(){EV(yR)}:typeof MessageChannel<"u"?(xR=new MessageChannel,TV=xR.port2,xR.port1.onmessage=yR,T5=function(){TV.postMessage(null)}):T5=function(){RV(yR,0)};var xR,TV;function _R(t,e){W3=RV(function(){t(ti.unstable_now())},e)}ti.unstable_IdlePriority=5;ti.unstable_ImmediatePriority=1;ti.unstable_LowPriority=4;ti.unstable_NormalPriority=3;ti.unstable_Profiling=null;ti.unstable_UserBlockingPriority=2;ti.unstable_cancelCallback=function(t){t.callback=null};ti.unstable_forceFrameRate=function(t){0>t||125r?(t.sortIndex=n,wR(cf,t),Xu(lp)===null&&t===Xu(cf)&&(Z3?(AV(W3),W3=-1):Z3=!0,_R(CR,n-r))):(t.sortIndex=i,wR(lp,t),V3||vR||(V3=!0,R5||(R5=!0,T5()))),t};ti.unstable_shouldYield=NV;ti.unstable_wrapCallback=function(t){var e=fa;return function(){var n=fa;fa=e;try{return t.apply(this,arguments)}finally{fa=n}}}});var OV=_o((Cat,jV)=>{"use strict";jV.exports=PV()});var WV=_o(vn=>{"use strict";var MR=Symbol.for("react.transitional.element"),Ove=Symbol.for("react.portal"),Dve=Symbol.for("react.fragment"),Fve=Symbol.for("react.strict_mode"),Bve=Symbol.for("react.profiler"),zve=Symbol.for("react.consumer"),qve=Symbol.for("react.context"),Hve=Symbol.for("react.forward_ref"),Gve=Symbol.for("react.suspense"),Uve=Symbol.for("react.memo"),qV=Symbol.for("react.lazy"),Vve=Symbol.for("react.activity"),DV=Symbol.iterator;function Zve(t){return t===null||typeof t!="object"?null:(t=DV&&t[DV]||t["@@iterator"],typeof t=="function"?t:null)}var HV={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GV=Object.assign,UV={};function $5(t,e,n){this.props=t,this.context=e,this.refs=UV,this.updater=n||HV}$5.prototype.isReactComponent={};$5.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};$5.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function VV(){}VV.prototype=$5.prototype;function ER(t,e,n){this.props=t,this.context=e,this.refs=UV,this.updater=n||HV}var TR=ER.prototype=new VV;TR.constructor=ER;GV(TR,$5.prototype);TR.isPureReactComponent=!0;var FV=Array.isArray;function LR(){}var Ur={H:null,A:null,T:null,S:null},ZV=Object.prototype.hasOwnProperty;function RR(t,e,n){var r=n.ref;return{$$typeof:MR,type:t,key:e,ref:r!==void 0?r:null,props:n}}function Wve(t,e){return RR(t.type,e,t.props)}function AR(t){return typeof t=="object"&&t!==null&&t.$$typeof===MR}function Kve(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var BV=/\/+/g;function SR(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Kve(""+t.key):e.toString(36)}function Xve(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(LR,LR):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function A5(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case MR:case Ove:a=!0;break;case qV:return a=t._init,A5(a(t._payload),e,n,r,i)}}if(a)return i=i(t),a=r===""?"."+SR(t,0):r,FV(i)?(n="",a!=null&&(n=a.replace(BV,"$&/")+"/"),A5(i,e,n,"",function(c){return c})):i!=null&&(AR(i)&&(i=Wve(i,n+(i.key==null||t&&t.key===i.key?"":(""+i.key).replace(BV,"$&/")+"/")+a)),e.push(i)),1;a=0;var s=r===""?".":r+":";if(FV(t))for(var l=0;l{"use strict";KV.exports=WV()});var YV=_o(Ya=>{"use strict";var Jve=Q();function XV(t){var e="https://react.dev/errors/"+t;if(1{"use strict";function QV(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QV)}catch(t){console.error(t)}}QV(),JV.exports=YV()});var dY=_o(Mw=>{"use strict";var fo=OV(),SW=Q(),nke=Ms();function Ie(t){var e="https://react.dev/errors/"+t;if(1F5||(t.current=gA[F5],gA[F5]=null,F5--)}function Or(t,e){F5++,gA[F5]=t.current,t.current=e}var ed=td(null),v4=td(null),kf=td(null),j9=td(null);function O9(t,e){switch(Or(kf,e),Or(v4,t),Or(ed,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?lW(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=lW(e),t=YX(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Mo(ed),Or(ed,t)}function rb(){Mo(ed),Mo(v4),Mo(kf)}function bA(t){t.memoizedState!==null&&Or(j9,t);var e=ed.current,n=YX(e,t.type);e!==n&&(Or(v4,t),Or(ed,n))}function D9(t){v4.current===t&&(Mo(ed),Mo(v4)),j9.current===t&&(Mo(j9),$4._currentValue=Bh)}var $R,nZ;function jh(t){if($R===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);$R=e&&e[1]||"",nZ=-1)":-1i||l[r]!==c[i]){var u=` -`+l[r].replace(" at new "," at ");return t.displayName&&u.includes("")&&(u=u.replace("",t.displayName)),u}while(1<=r&&0<=i);break}}}finally{RR=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Nh(n):""}function ske(t,e){switch(t.tag){case 26:case 27:case 5:return Nh(t.type);case 16:return Nh("Lazy");case 13:return t.child!==e&&e!==null?Nh("Suspense Fallback"):Nh("Suspense");case 19:return Nh("SuspenseList");case 0:case 15:return AR(t.type,!1);case 11:return AR(t.type.render,!1);case 1:return AR(t.type,!0);case 31:return Nh("Activity");default:return""}}function rZ(t){try{var e="",n=null;do e+=ske(t,n),n=t,t=t.return;while(t);return e}catch(r){return` +`+l[r].replace(" at new "," at ");return t.displayName&&u.includes("")&&(u=u.replace("",t.displayName)),u}while(1<=r&&0<=i);break}}}finally{IR=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?jh(n):""}function ske(t,e){switch(t.tag){case 26:case 27:case 5:return jh(t.type);case 16:return jh("Lazy");case 13:return t.child!==e&&e!==null?jh("Suspense Fallback"):jh("Suspense");case 19:return jh("SuspenseList");case 0:case 15:return NR(t.type,!1);case 11:return NR(t.type.render,!1);case 1:return NR(t.type,!0);case 31:return jh("Activity");default:return""}}function rZ(t){try{var e="",n=null;do e+=ske(t,n),n=t,t=t.return;while(t);return e}catch(r){return` Error generating stack: `+r.message+` -`+r.stack}}var hA=Object.prototype.hasOwnProperty,o$=fo.unstable_scheduleCallback,$R=fo.unstable_cancelCallback,lke=fo.unstable_shouldYield,cke=fo.unstable_requestPaint,vl=fo.unstable_now,uke=fo.unstable_getCurrentPriorityLevel,$W=fo.unstable_ImmediatePriority,IW=fo.unstable_UserBlockingPriority,F9=fo.unstable_NormalPriority,dke=fo.unstable_LowPriority,NW=fo.unstable_IdlePriority,pke=fo.log,mke=fo.unstable_setDisableYieldValue,P4=null,kl=null;function gf(t){if(typeof pke=="function"&&mke(t),kl&&typeof kl.setStrictMode=="function")try{kl.setStrictMode(P4,t)}catch{}}var Cl=Math.clz32?Math.clz32:gke,fke=Math.log,hke=Math.LN2;function gke(t){return t>>>=0,t===0?32:31-(fke(t)/hke|0)|0}var i9=256,o9=262144,a9=4194304;function Ph(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function dw(t,e,n){var r=t.pendingLanes;if(r===0)return 0;var i=0,o=t.suspendedLanes,a=t.pingedLanes;t=t.warmLanes;var s=r&134217727;return s!==0?(r=s&~o,r!==0?i=Ph(r):(a&=s,a!==0?i=Ph(a):n||(n=s&~t,n!==0&&(i=Ph(n))))):(s=r&~o,s!==0?i=Ph(s):a!==0?i=Ph(a):n||(n=r&~t,n!==0&&(i=Ph(n)))),i===0?0:e!==0&&e!==i&&(e&o)===0&&(o=i&-i,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:i}function j4(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function bke(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function PW(){var t=a9;return a9<<=1,(a9&62914560)===0&&(a9=4194304),t}function IR(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function O4(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yke(t,e,n,r,i,o){var a=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var s=t.entanglements,l=t.expirationTimes,c=t.hiddenUpdates;for(n=a&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var _ke=/[\n"\\]/g;function gc(t){return t.replace(_ke,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yA(t,e,n,r,i,o,a,s){t.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.type=a:t.removeAttribute("type"),e!=null?a==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+mc(e)):t.value!==""+mc(e)&&(t.value=""+mc(e)):a!=="submit"&&a!=="reset"||t.removeAttribute("value"),e!=null?xA(t,a,mc(e)):n!=null?xA(t,a,mc(n)):r!=null&&t.removeAttribute("value"),i==null&&o!=null&&(t.defaultChecked=!!o),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+mc(s):t.removeAttribute("name")}function GW(t,e,n,r,i,o,a,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){bA(t);return}n=n!=null?""+mc(n):"",e=e!=null?""+mc(e):n,s||e===t.value||(t.value=e),t.defaultValue=e}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,t.checked=s?t.checked:!!r,t.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.name=a),bA(t)}function xA(t,e,n){e==="number"&&B9(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function X5(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vA=!1;if(kp)try{$5={},Object.defineProperty($5,"passive",{get:function(){vA=!0}}),window.addEventListener("test",$5,$5),window.removeEventListener("test",$5,$5)}catch{vA=!1}var $5,bf=null,d$=null,C9=null;function KW(){if(C9)return C9;var t,e=d$,n=e.length,r,i="value"in bf?bf.value:bf.textContent,o=i.length;for(t=0;t=s4),fZ=" ",hZ=!1;function YW(t,e){switch(t){case"keyup":return Qke.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var z5=!1;function eCe(t,e){switch(t){case"compositionend":return QW(e);case"keypress":return e.which!==32?null:(hZ=!0,fZ);case"textInput":return t=e.data,t===fZ&&hZ?null:t;default:return null}}function tCe(t,e){if(z5)return t==="compositionend"||!m$&&YW(t,e)?(t=KW(),C9=d$=bf=null,z5=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xZ(n)}}function nK(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?nK(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rK(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=B9(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=B9(t.document)}return e}function f$(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var cCe=kp&&"documentMode"in document&&11>=document.documentMode,q5=null,kA=null,c4=null,CA=!1;function vZ(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;CA||q5==null||q5!==B9(r)||(r=q5,"selectionStart"in r&&f$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),c4&&C4(c4,r)||(c4=r,r=iw(kA,"onSelect"),0>=a,i-=a,Yu=1<<32-Cl(e)+i|n<L?(S=_,_=null):S=_.sibling;var C=p(g,_,b[L],w);if(C===null){_===null&&(_=S);break}t&&_&&C.alternate===null&&e(g,_),y=o(C,y,L),k===null?v=C:k.sibling=C,k=C,_=S}if(L===b.length)return n(g,_),Un&&fp(g,L),v;if(_===null){for(;LL?(S=_,_=null):S=_.sibling;var T=p(g,_,C.value,w);if(T===null){_===null&&(_=S);break}t&&_&&T.alternate===null&&e(g,_),y=o(T,y,L),k===null?v=T:k.sibling=T,k=T,_=S}if(C.done)return n(g,_),Un&&fp(g,L),v;if(_===null){for(;!C.done;L++,C=b.next())C=d(g,C.value,w),C!==null&&(y=o(C,y,L),k===null?v=C:k.sibling=C,k=C);return Un&&fp(g,L),v}for(_=r(_);!C.done;L++,C=b.next())C=m(_,g,L,C.value,w),C!==null&&(t&&C.alternate!==null&&_.delete(C.key===null?L:C.key),y=o(C,y,L),k===null?v=C:k.sibling=C,k=C);return t&&_.forEach(function(M){return e(g,M)}),Un&&fp(g,L),v}function x(g,y,b,w){if(typeof b=="object"&&b!==null&&b.type===O5&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case r9:e:{for(var v=b.key;y!==null;){if(y.key===v){if(v=b.type,v===O5){if(y.tag===7){n(g,y.sibling),w=i(y,b.props.children),w.return=g,g=w;break e}}else if(y.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===uf&&jh(v)===y.type){n(g,y.sibling),w=i(y,b.props),Y3(w,b),w.return=g,g=w;break e}n(g,y);break}else e(g,y);y=y.sibling}b.type===O5?(w=Fh(b.props.children,g.mode,w,b.key),w.return=g,g=w):(w=S9(b.type,b.key,b.props,null,g.mode,w),Y3(w,b),w.return=g,g=w)}return a(g);case n4:e:{for(v=b.key;y!==null;){if(y.key===v)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(g,y.sibling),w=i(y,b.children||[]),w.return=g,g=w;break e}else{n(g,y);break}else e(g,y);y=y.sibling}w=zR(b,g.mode,w),w.return=g,g=w}return a(g);case uf:return b=jh(b),x(g,y,b,w)}if(r4(b))return f(g,y,b,w);if(K3(b)){if(v=K3(b),typeof v!="function")throw Error(Ie(150));return b=v.call(b),h(g,y,b,w)}if(typeof b.then=="function")return x(g,y,p9(b),w);if(b.$$typeof===gp)return x(g,y,d9(g,b),w);m9(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(n(g,y.sibling),w=i(y,b),w.return=g,g=w):(n(g,y),w=BR(b,g.mode,w),w.return=g,g=w),a(g)):n(g,y)}return function(g,y,b,w){try{L4=0;var v=x(g,y,b,w);return J5=null,v}catch(_){if(_===gb||_===bw)throw _;var k=xl(29,_,null,g.mode);return k.lanes=w,k.return=g,k}}}var Uh=yK(!0),xK=yK(!1),df=!1;function C$(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function RA(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cf(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function _f(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(ar&2)!==0){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,e=q9(t),uK(t,null,n),e}return gw(t,r,e,n),q9(t)}function d4(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OW(t,n)}}function HR(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var AA=!1;function p4(){if(AA){var t=Q5;if(t!==null)throw t}}function m4(t,e,n,r){AA=!1;var i=t.updateQueue;df=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,u=c=l=null,s=o;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hn&p)===p:(r&p)===p){p!==0&&p===ob&&(AA=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var f=t,h=s;p=e;var x=n;switch(h.tag){case 1:if(f=h.payload,typeof f=="function"){d=f.call(x,d,p);break e}d=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=h.payload,p=typeof f=="function"?f.call(x,d,p):f,p==null)break e;d=Wr({},d,p);break e;case 2:df=!0}}p=s.callback,p!==null&&(t.flags|=64,m&&(t.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,o===null&&(i.shared.lanes=0),If|=a,t.lanes=a,t.memoizedState=d}}function wK(t,e){if(typeof t!="function")throw Error(Ie(191,t));t.call(e)}function vK(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;to?o:8;var a=on.T,s={};on.T=s,j$(t,!1,e,n);try{var l=i(),c=on.S;if(c!==null&&c(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=yCe(l,r);f4(t,e,u,_l(t))}else f4(t,e,r,_l(t))}catch(d){f4(t,e,{then:function(){},status:"rejected",reason:d},_l())}finally{sr.p=o,a!==null&&s.types!==null&&(a.types=s.types),on.T=a}}function _Ce(){}function jA(t,e,n,r){if(t.tag!==5)throw Error(Ie(476));var i=VK(t).queue;UK(t,i,e,Dh,n===null?_Ce:function(){return ZK(t),n(r)})}function VK(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Dh,baseState:Dh,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_p,lastRenderedState:Dh},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_p,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ZK(t){var e=VK(t);e.next===null&&(e=t.alternate.memoizedState),f4(t,e.next.queue,{},_l())}function P$(){return Go(A4)}function WK(){return Ii().memoizedState}function KK(){return Ii().memoizedState}function SCe(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=_l();t=Cf(n);var r=_f(e,t,n);r!==null&&($s(r,e,n),d4(r,e,n)),e={cache:w$()},t.payload=e;return}e=e.return}}function LCe(t,e,n){var r=_l();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vw(t)?YK(e,n):(n=g$(t,e,n,r),n!==null&&($s(n,t,r),QK(n,e,r)))}function XK(t,e,n){var r=_l();f4(t,e,n,r)}function f4(t,e,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vw(t))YK(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var a=e.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Sl(s,a))return gw(t,e,i,0),Rr===null&&hw(),!1}catch{}if(n=g$(t,e,i,r),n!==null)return $s(n,t,r),QK(n,e,r),!0}return!1}function j$(t,e,n,r){if(r={lane:2,revertLane:U$(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vw(t)){if(e)throw Error(Ie(479))}else e=g$(t,n,r,2),e!==null&&$s(e,t,2)}function vw(t){var e=t.alternate;return t===Sn||e!==null&&e===Sn}function YK(t,e){eb=W9=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function QK(t,e,n){if((n&4194048)!==0){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OW(t,n)}}var E4={readContext:Go,use:xw,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useLayoutEffect:bi,useInsertionEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useSyncExternalStore:bi,useId:bi,useHostTransitionStatus:bi,useFormState:bi,useActionState:bi,useOptimistic:bi,useMemoCache:bi,useCacheRefresh:bi};E4.useEffectEvent=bi;var JK={readContext:Go,use:xw,useCallback:function(t,e){return Qa().memoizedState=[t,e===void 0?null:e],t},useContext:Go,useEffect:jZ,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,E9(4194308,4,BK.bind(null,e,t),n)},useLayoutEffect:function(t,e){return E9(4194308,4,t,e)},useInsertionEffect:function(t,e){E9(4,2,t,e)},useMemo:function(t,e){var n=Qa();e=e===void 0?null:e;var r=t();if(Vh){gf(!0);try{t()}finally{gf(!1)}}return n.memoizedState=[r,e],r},useReducer:function(t,e,n){var r=Qa();if(n!==void 0){var i=n(e);if(Vh){gf(!0);try{n(e)}finally{gf(!1)}}}else i=e;return r.memoizedState=r.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},r.queue=t,t=t.dispatch=LCe.bind(null,Sn,t),[r.memoizedState,t]},useRef:function(t){var e=Qa();return t={current:t},e.memoizedState=t},useState:function(t){t=NA(t);var e=t.queue,n=XK.bind(null,Sn,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:I$,useDeferredValue:function(t,e){var n=Qa();return N$(n,t,e)},useTransition:function(){var t=NA(!1);return t=UK.bind(null,Sn,t.queue,!0,!1),Qa().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var r=Sn,i=Qa();if(Un){if(n===void 0)throw Error(Ie(407));n=n()}else{if(n=e(),Rr===null)throw Error(Ie(349));(Hn&127)!==0||LK(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,jZ(EK.bind(null,r,o,t),[t]),r.flags|=2048,sb(9,{destroy:void 0},MK.bind(null,r,o,n,e),null),n},useId:function(){var t=Qa(),e=Rr.identifierPrefix;if(Un){var n=Qu,r=Yu;n=(r&~(1<<32-Cl(r)-1)).toString(32)+n,e="_"+e+"R_"+n,n=K9++,0<\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[qo]=e,o[Is]=r;e:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=o;e:switch(Uo(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&up(e)}}return Vr(e),YR(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==r&&up(e);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Ie(166));if(t=vf.current,I5(e)){if(t=e.stateNode,n=e.memoizedProps,r=null,i=Ho,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}t[qo]=e,t=!!(t.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||XX(t.nodeValue,n)),t||Af(e,!0)}else t=ow(t).createTextNode(r),t[qo]=e,e.stateNode=t}return Vr(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(r=I5(e),n!==null){if(t===null){if(!r)throw Error(Ie(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Ie(557));t[qo]=e}else Hh(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vr(e),t=!1}else n=qR(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(yl(e),e):(yl(e),null);if((e.flags&128)!==0)throw Error(Ie(558))}return Vr(e),null;case 13:if(r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=I5(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(Ie(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Ie(317));i[qo]=e}else Hh(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vr(e),i=!1}else i=qR(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(yl(e),e):(yl(e),null)}return yl(e),(e.flags&128)!==0?(e.lanes=n,e):(n=r!==null,t=t!==null&&t.memoizedState!==null,n&&(r=e.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),f9(e,e.updateQueue),Vr(e),null);case 4:return nb(),t===null&&V$(e.stateNode.containerInfo),Vr(e),null;case 10:return wp(e.type),Vr(e),null;case 19:if(Mo($i),r=e.memoizedState,r===null)return Vr(e),null;if(i=(e.flags&128)!==0,o=r.rendering,o===null)if(i)Q3(r,!1);else{if(yi!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=Z9(t),o!==null){for(e.flags|=128,Q3(r,!1),t=o.updateQueue,e.updateQueue=t,f9(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)dK(n,t),n=n.sibling;return Or($i,$i.current&1|2),Un&&fp(e,r.treeForkCount),e.child}t=t.sibling}r.tail!==null&&vl()>J9&&(e.flags|=128,i=!0,Q3(r,!1),e.lanes=4194304)}else{if(!i)if(t=Z9(o),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,f9(e,t),Q3(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Un)return Vr(e),null}else 2*vl()-r.renderingStartTime>J9&&n!==536870912&&(e.flags|=128,i=!0,Q3(r,!1),e.lanes=4194304);r.isBackwards?(o.sibling=e.child,e.child=o):(t=r.last,t!==null?t.sibling=o:e.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=vl(),t.sibling=null,n=$i.current,Or($i,i?n&1|2:n&1),Un&&fp(e,r.treeForkCount),t):(Vr(e),null);case 22:case 23:return yl(e),_$(),r=e.memoizedState!==null,t!==null?t.memoizedState!==null!==r&&(e.flags|=8192):r&&(e.flags|=8192),r?(n&536870912)!==0&&(e.flags&128)===0&&(Vr(e),e.subtreeFlags&6&&(e.flags|=8192)):Vr(e),n=e.updateQueue,n!==null&&f9(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),r=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),r!==n&&(e.flags|=2048),t!==null&&Mo(Bh),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),wp(Ji),Vr(e),null;case 25:return null;case 30:return null}throw Error(Ie(156,e.tag))}function ACe(t,e){switch(x$(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wp(Ji),nb(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return D9(e),null;case 31:if(e.memoizedState!==null){if(yl(e),e.alternate===null)throw Error(Ie(340));Hh()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(yl(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Ie(340));Hh()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Mo($i),null;case 4:return nb(),null;case 10:return wp(e.type),null;case 22:case 23:return yl(e),_$(),t!==null&&Mo(Bh),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wp(Ji),null;case 25:return null;default:return null}}function dX(t,e){switch(x$(e),e.tag){case 3:wp(Ji),nb();break;case 26:case 27:case 5:D9(e);break;case 4:nb();break;case 31:e.memoizedState!==null&&yl(e);break;case 13:yl(e);break;case 19:Mo($i);break;case 10:wp(e.type);break;case 22:case 23:yl(e),_$(),t!==null&&Mo(Bh);break;case 24:wp(Ji)}}function q4(t,e){try{var n=e.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&t)===t){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(s){gr(e,e.return,s)}}function $f(t,e,n){try{var r=e.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&t)===t){var a=r.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,i=e;var l=n,c=s;try{c()}catch(u){gr(i,l,u)}}}r=r.next}while(r!==o)}}catch(u){gr(e,e.return,u)}}function pX(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{vK(e,n)}catch(r){gr(t,t.return,r)}}}function mX(t,e,n){n.props=Zh(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(r){gr(t,e,r)}}function h4(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var r=t.stateNode;break;case 30:r=t.stateNode;break;default:r=t.stateNode}typeof n=="function"?t.refCleanup=n(r):n.current=r}}catch(i){gr(t,e,i)}}function Ju(t,e){var n=t.ref,r=t.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){gr(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){gr(t,e,i)}else n.current=null}function fX(t){var e=t.type,n=t.memoizedProps,r=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){gr(t,t.return,i)}}function QR(t,e,n){try{var r=t.stateNode;YCe(r,t.type,n,e),r[Is]=e}catch(i){gr(t,t.return,i)}}function hX(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Pf(t.type)||t.tag===4}function JR(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||hX(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Pf(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function zA(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=bp));else if(r!==4&&(r===27&&Pf(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(zA(t,e,n),t=t.sibling;t!==null;)zA(t,e,n),t=t.sibling}function Q9(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(r===27&&Pf(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Q9(t,e,n),t=t.sibling;t!==null;)Q9(t,e,n),t=t.sibling}function gX(t){var e=t.stateNode,n=t.memoizedProps;try{for(var r=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Uo(e,r,n),e[qo]=t,e[Is]=n}catch(o){gr(t,t.return,o)}}var hp=!1,Qi=!1,eA=!1,KZ=typeof WeakSet=="function"?WeakSet:Set,So=null;function $Ce(t,e){if(t=t.containerInfo,WA=cw,t=rK(t),f$(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=t,p=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===t)break t;if(p===n&&++c===i&&(s=a),p===o&&++u===r&&(l=a),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(KA={focusedElem:t,selectionRange:n},cw=!1,So=e;So!==null;)if(e=So,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,So=t;else for(;So!==null;){switch(e=So,o=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),Uo(o,r,n),o[qo]=t,Lo(o),r=o;break e;case"link":var a=bW("link","href",i).get(r+(n.href||""));if(a){for(var s=0;sx&&(a=x,x=h,h=a);var g=wZ(s,h),y=wZ(s,x);if(g&&y&&(m.rangeCount!==1||m.anchorNode!==g.node||m.anchorOffset!==g.offset||m.focusNode!==y.node||m.focusOffset!==y.offset)){var b=d.createRange();b.setStart(g.node,g.offset),m.removeAllRanges(),h>x?(m.addRange(b),m.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),m.addRange(b))}}}}for(d=[],m=s;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;sn?32:n,on.T=null,n=GA,GA=null;var o=Lf,a=vp;if(mo=0,cb=Lf=null,vp=0,(ar&6)!==0)throw Error(Ie(331));var s=ar;if(ar|=4,MX(o.current),_X(o,o.current,a,n),ar=s,H4(0,!1),kl&&typeof kl.onPostCommitFiberRoot=="function")try{kl.onPostCommitFiberRoot(P4,o)}catch{}return!0}finally{sr.p=i,on.T=r,qX(t,e)}}function JZ(t,e,n){e=bc(n,e),e=DA(t.stateNode,e,2),t=_f(t,e,2),t!==null&&(O4(t,2),nd(t))}function gr(t,e,n){if(t.tag===3)JZ(t,t,n);else for(;e!==null;){if(e.tag===3){JZ(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Sf===null||!Sf.has(r))){t=bc(n,t),n=iX(2),r=_f(e,n,2),r!==null&&(oX(n,r,e,t),O4(r,2),nd(r));break}}e=e.return}}function nA(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new PCe;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(q$=!0,i.add(n),t=BCe.bind(null,t,e,n),e.then(t,t))}function BCe(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Rr===t&&(Hn&n)===n&&(yi===4||yi===3&&(Hn&62914560)===Hn&&300>vl()-kw?(ar&2)===0&&ub(t,0):H$|=n,lb===Hn&&(lb=0)),nd(t)}function GX(t,e){e===0&&(e=PW()),t=Yh(t,e),t!==null&&(O4(t,e),nd(t))}function zCe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),GX(t,n)}function qCe(t,e){var n=0;switch(t.tag){case 31:case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;case 22:r=t.stateNode._retryCache;break;default:throw Error(Ie(314))}r!==null&&r.delete(e),GX(t,n)}function HCe(t,e){return o$(t,e)}var nw=null,j5=null,VA=!1,rw=!1,rA=!1,wf=0;function nd(t){t!==j5&&t.next===null&&(j5===null?nw=j5=t:j5=j5.next=t),rw=!0,VA||(VA=!0,UCe())}function H4(t,e){if(!rA&&rw){rA=!0;do for(var n=!1,r=nw;r!==null;){if(!e)if(t!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-Cl(42|t)+1)-1,o&=i&~(a&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,eW(r,o))}else o=Hn,o=dw(r,r===Rr?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||j4(r,o)||(n=!0,eW(r,o));r=r.next}while(n);rA=!1}}function GCe(){UX()}function UX(){rw=VA=!1;var t=0;wf!==0&&JCe()&&(t=wf);for(var e=vl(),n=null,r=nw;r!==null;){var i=r.next,o=VX(r,e);o===0?(r.next=null,n===null?nw=i:n.next=i,i===null&&(j5=n)):(n=r,(t!==0||(o&3)!==0)&&(rw=!0)),r=i}mo!==0&&mo!==5||H4(t,!1),wf!==0&&(wf=0)}function VX(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes&-62914561;0s)break;var u=l.transferSize,d=l.initiatorType;u&&sW(d)&&(l=l.responseEnd,a+=u*(l"u"?null:document;function tY(t,e,n){var r=yb;if(r&&typeof e=="string"&&e){var i=gc(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),fW.has(i)||(fW.add(i),t={rel:t,crossOrigin:n,href:e},r.querySelector(i)===null&&(e=r.createElement("link"),Uo(e,"link",t),Lo(e),r.head.appendChild(e)))}}function l_e(t){Mp.D(t),tY("dns-prefetch",t,null)}function c_e(t,e){Mp.C(t,e),tY("preconnect",t,e)}function u_e(t,e,n){Mp.L(t,e,n);var r=yb;if(r&&t&&e){var i='link[rel="preload"][as="'+gc(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+gc(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+gc(n.imageSizes)+'"]')):i+='[href="'+gc(t)+'"]';var o=i;switch(e){case"style":o=db(t);break;case"script":o=xb(t)}vc.has(o)||(t=Wr({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),vc.set(o,t),r.querySelector(i)!==null||e==="style"&&r.querySelector(G4(o))||e==="script"&&r.querySelector(U4(o))||(e=r.createElement("link"),Uo(e,"link",t),Lo(e),r.head.appendChild(e)))}}function d_e(t,e){Mp.m(t,e);var n=yb;if(n&&t){var r=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+gc(r)+'"][href="'+gc(t)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=xb(t)}if(!vc.has(o)&&(t=Wr({rel:"modulepreload",href:t},e),vc.set(o,t),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(U4(o)))return}r=n.createElement("link"),Uo(r,"link",t),Lo(r),n.head.appendChild(r)}}}function p_e(t,e,n){Mp.S(t,e,n);var r=yb;if(r&&t){var i=K5(r).hoistableStyles,o=db(t);e=e||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(G4(o)))s.loading=5;else{t=Wr({rel:"stylesheet",href:t,"data-precedence":e},n),(n=vc.get(o))&&Z$(t,n);var l=a=r.createElement("link");Lo(l),Uo(l,"link",t),l._p=new Promise(function(c,u){l.onload=c,l.onerror=u}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,$9(a,e,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}}function m_e(t,e){Mp.X(t,e);var n=yb;if(n&&t){var r=K5(n).hoistableScripts,i=xb(t),o=r.get(i);o||(o=n.querySelector(U4(i)),o||(t=Wr({src:t,async:!0},e),(e=vc.get(i))&&W$(t,e),o=n.createElement("script"),Lo(o),Uo(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function f_e(t,e){Mp.M(t,e);var n=yb;if(n&&t){var r=K5(n).hoistableScripts,i=xb(t),o=r.get(i);o||(o=n.querySelector(U4(i)),o||(t=Wr({src:t,async:!0,type:"module"},e),(e=vc.get(i))&&W$(t,e),o=n.createElement("script"),Lo(o),Uo(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function hW(t,e,n,r){var i=(i=vf.current)?aw(i):null;if(!i)throw Error(Ie(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=db(n.href),n=K5(i).hoistableStyles,r=n.get(e),r||(r={type:"style",instance:null,count:0,state:null},n.set(e,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=db(n.href);var o=K5(i).hoistableStyles,a=o.get(t);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,a),(o=i.querySelector(G4(t)))&&!o._p&&(a.instance=o,a.state.loading=5),vc.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vc.set(t,n),o||h_e(i,t,n,a.state))),e&&r===null)throw Error(Ie(528,""));return a}if(e&&r!==null)throw Error(Ie(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=xb(n),n=K5(i).hoistableScripts,r=n.get(e),r||(r={type:"script",instance:null,count:0,state:null},n.set(e,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(Ie(444,t))}}function db(t){return'href="'+gc(t)+'"'}function G4(t){return'link[rel="stylesheet"]['+t+"]"}function nY(t){return Wr({},t,{"data-precedence":t.precedence,precedence:null})}function h_e(t,e,n,r){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?r.loading=1:(e=t.createElement("link"),r.preload=e,e.addEventListener("load",function(){return r.loading|=1}),e.addEventListener("error",function(){return r.loading|=2}),Uo(e,"link",n),Lo(e),t.head.appendChild(e))}function xb(t){return'[src="'+gc(t)+'"]'}function U4(t){return"script[async]"+t}function gW(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var r=t.querySelector('style[data-href~="'+gc(n.href)+'"]');if(r)return e.instance=r,Lo(r),r;var i=Wr({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(t.ownerDocument||t).createElement("style"),Lo(r),Uo(r,"style",i),$9(r,n.precedence,t),e.instance=r;case"stylesheet":i=db(n.href);var o=t.querySelector(G4(i));if(o)return e.state.loading|=4,e.instance=o,Lo(o),o;r=nY(n),(i=vc.get(i))&&Z$(r,i),o=(t.ownerDocument||t).createElement("link"),Lo(o);var a=o;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Uo(o,"link",r),e.state.loading|=4,$9(o,n.precedence,t),e.instance=o;case"script":return o=xb(n.src),(i=t.querySelector(U4(o)))?(e.instance=i,Lo(i),i):(r=n,(i=vc.get(o))&&(r=Wr({},n),W$(r,i)),t=t.ownerDocument||t,i=t.createElement("script"),Lo(i),Uo(i,"link",r),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(Ie(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(r=e.instance,e.state.loading|=4,$9(r,n.precedence,t));return e.instance}function $9(t,e,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a title"):null)}function g_e(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function rY(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function b_e(t,e,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=db(r.href),o=e.querySelector(G4(i));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=sw.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Lo(o);return}o=e.ownerDocument||e,r=nY(r),(i=vc.get(i))&&Z$(r,i),o=o.createElement("link"),Lo(o);var a=o;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Uo(o,"link",r),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=sw.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var sA=0;function y_e(t,e){return t.stylesheets&&t.count===0&&N9(t,t.stylesheets),0sA?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sw(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)N9(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var lw=null;function N9(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,lw=new Map,e.forEach(x_e,t),lw=null,sw.call(t))}function x_e(t,e){if(!(e.state.loading&4)){var n=lw.get(t);if(n)var r=n.get(null);else{n=new Map,lw.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o{"use strict";function pY(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pY)}catch(t){console.error(t)}}pY(),mY.exports=dY()});var gY=_o(hY=>{"use strict";var M_e=Q().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;hY.c=function(t){return M_e.H.useMemoCache(t)}});var qe=_o((Eat,bY)=>{"use strict";bY.exports=gY()});var xY=_o(Ew=>{"use strict";var E_e=Symbol.for("react.transitional.element"),T_e=Symbol.for("react.fragment");function yY(t,e,n){var r=null;if(n!==void 0&&(r=""+n),e.key!==void 0&&(r=""+e.key),"key"in e){n={};for(var i in e)i!=="key"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:E_e,type:t,key:r,ref:e!==void 0?e:null,props:n}}Ew.Fragment=T_e;Ew.jsx=yY;Ew.jsxs=yY});var ee=_o((Rat,wY)=>{"use strict";wY.exports=xY()});var jte={};fn(jte,{default:()=>AAe});var RAe,AAe,Ote=tr(()=>{RAe=Object.freeze(JSON.parse('{"displayName":"TypeScript","name":"typescript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^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":"(?:(?)","name":"meta.arrow.ts"},{"begin":"(?:(?]|=[^<]|<\\\\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":"(?)","name":"cast.expr.ts"},{"begin":"(??^|]|[^$_[:alnum:]](?:\\\\+\\\\+|--)|[^+]\\\\+|[^-]-)\\\\s*(<)(?!)","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":"(?\\\\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":"()|(?=\\\\*/)","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":"(?)))|((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*(?]|=[^<]|<\\\\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":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","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":"(?)))|((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*(?]|=[^<]|<\\\\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":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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":"(?)))|((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":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?]|=[^<]|<\\\\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":"(?]|=[^<]|<\\\\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((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\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":"(?]|=[^<]|<\\\\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((?)))|((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":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\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":"(?)))|((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*(?]|=[^<]|<\\\\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":"(?:(?])","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":"(?|&&|\\\\|\\\\||\\\\*/)\\\\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":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","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":"(?]|=[^<]|<\\\\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":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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":"(?])|((?<=[]$)>_}[: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":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","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":"(?)","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":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#comment"},{"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":"(?:(?)))))))|(:\\\\s*(?]|=[^<]|<\\\\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":"(?:(??{|}]|(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":"(?)))|((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*(?]|=[^<]|<\\\\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":"(?=$|^|[,;=}]|((?)))|((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*(?]|=[^<]|<\\\\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":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|^|[]),;}]|((?IAe});var $Ae,IAe,Fte=tr(()=>{$Ae=Object.freeze(JSON.parse(`{"displayName":"TSX","name":"tsx","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^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.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.objectliteral.tsx","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.tsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.tsx"}},"name":"meta.array.literal.tsx","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"variable.parameter.tsx"}},"match":"(?:(?)","name":"meta.arrow.tsx"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"}},"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.tsx","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.tsx"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.tsx","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.tsx"}},"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.tsx","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":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.tsx"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.tsx","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.tsx"},"2":{"name":"entity.name.tag.directive.tsx"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.tsx"}},"name":"meta.tag.tsx","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.tsx"},{"match":"=","name":"keyword.operator.assignment.tsx"},{"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":"()|(?=\\\\*/)","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.tsx"}},"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.tsx"},"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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.tsx"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.tsx"},{"match":"[!=]==?","name":"keyword.operator.comparison.tsx"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.tsx"},{"captures":{"1":{"name":"keyword.operator.logical.tsx"},"2":{"name":"keyword.operator.assignment.compound.tsx"},"3":{"name":"keyword.operator.arithmetic.tsx"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.tsx"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.tsx"},{"match":"=","name":"keyword.operator.assignment.tsx"},{"match":"--","name":"keyword.operator.decrement.tsx"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.tsx"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.tsx"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.tsx"},"2":{"name":"keyword.operator.arithmetic.tsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.tsx"},"2":{"name":"keyword.operator.arithmetic.tsx"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx variable.object.property.tsx"},{"match":"\\\\?","name":"keyword.operator.optional.tsx"},{"match":"!","name":"keyword.operator.definiteassignment.tsx"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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.tsx","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.tsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.tsx punctuation.accessor.optional.tsx"},{"match":"!","name":"meta.function-call.tsx keyword.operator.definiteassignment.tsx"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tsx"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"variable.other.constant.property.tsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"variable.other.property.tsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.tsx"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.tsx"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?))","end":"(/>)|()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.tsx"},"2":{"name":"punctuation.definition.tag.begin.tsx"},"3":{"name":"entity.name.tag.namespace.tsx"},"4":{"name":"punctuation.separator.namespace.tsx"},"5":{"name":"entity.name.tag.tsx"},"6":{"name":"support.class.component.tsx"},"7":{"name":"punctuation.definition.tag.end.tsx"}},"name":"meta.tag.tsx","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.tsx"}},"contentName":"meta.jsx.children.tsx","end":"(?=|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.tsx","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.tsx"},"jsx-tag-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"},"6":{"name":"punctuation.definition.tag.end.tsx"}},"contentName":"meta.jsx.children.tsx","end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"},"6":{"name":"punctuation.definition.tag.end.tsx"}},"name":"meta.tag.without-attributes.tsx","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.tsx"},"2":{"name":"punctuation.separator.label.tsx"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.tsx"},"2":{"name":"punctuation.separator.label.tsx"}},"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":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.modifier.async.tsx"},"5":{"name":"keyword.operator.new.tsx"},"6":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.tsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.modifier.async.tsx"},"5":{"name":"storage.type.property.tsx"},"6":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.tsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"storage.type.property.tsx"},"3":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.tsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"storage.type.property.tsx"},"3":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.tsx meta.object-literal.key.tsx","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.tsx meta.object-literal.key.tsx","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},{"captures":{"0":{"name":"meta.object-literal.key.tsx"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.tsx"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.tsx"}},"end":"(?=[,}])","name":"meta.object.member.tsx","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.tsx"},{"captures":{"1":{"name":"keyword.control.as.tsx"},"2":{"name":"storage.modifier.tsx"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\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.tsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"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.tsx"},"2":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"}},"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.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"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.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"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.tsx"}},"match":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(?])","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"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.tsx"}},"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.tsx"}},"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.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.tsx meta.return.type.arrow.tsx keyword.operator.type.annotation.tsx"}},"contentName":"meta.arrow.tsx meta.return.type.arrow.tsx","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":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.tsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.tsx"},"2":{"name":"keyword.other.tsx"}},"name":"string.regexp.tsx","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","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.tsx"}},"end":"(?]|=[^<]|<\\\\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.tsx"},"2":{"name":"support.type.object.module.tsx"},"3":{"name":"punctuation.accessor.tsx"},"4":{"name":"punctuation.accessor.optional.tsx"},"5":{"name":"support.type.object.module.tsx"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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.tsx"}]},{"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.tsx"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.tsx"}},"contentName":"meta.embedded.line.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.tsx"}},"name":"meta.template.expression.tsx","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.tsx"},"2":{"name":"string.template.tsx punctuation.definition.string.template.begin.tsx"}},"contentName":"string.template.tsx","end":"\`","endCaptures":{"0":{"name":"string.template.tsx punctuation.definition.string.template.end.tsx"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.tsx"}},"contentName":"meta.embedded.line.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.tsx"}},"name":"meta.template.expression.tsx","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.tsx"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.tsx"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.tsx"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.tsx"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.tsx"}},"name":"meta.type.parameters.tsx","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.tsx"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.tsx","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.tsx"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.tsx","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.tsx"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.tsx","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.tsx"},"2":{"name":"entity.name.type.tsx"},"3":{"name":"keyword.operator.expression.extends.tsx"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.tsx"},"2":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx"}},"contentName":"meta.type.parameters.tsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.tsx"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.object.type.tsx","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.tsx"}},"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.tsx"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.tsx"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.tsx"}},"name":"meta.type.parameters.tsx","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.tsx"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"name":"meta.type.paren.cover.tsx","patterns":[{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"entity.name.function.tsx variable.language.this.tsx"},"4":{"name":"entity.name.function.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(?)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(??{|}]|(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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx variable.other.constant.tsx entity.name.function.tsx"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx entity.name.function.tsx"},"2":{"name":"keyword.operator.definiteassignment.tsx"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.tsx"}},"end":"(?=$|^|[]),;}]|((?tP});var NAe,tP,nP=tr(()=>{NAe=Object.freeze(JSON.parse(`{"displayName":"JavaScript","name":"javascript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^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.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.objectliteral.js","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.js"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js"}},"name":"meta.array.literal.js","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"variable.parameter.js"}},"match":"(?:(?)","name":"meta.arrow.js"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"}},"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.js","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.js"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.js","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.js"}},"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.js","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":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.js"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.js","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.js"},"2":{"name":"entity.name.tag.directive.js"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.js"}},"name":"meta.tag.js","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"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":"()|(?=\\\\*/)","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.js"}},"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.js"},"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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.js"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.js"},{"match":"[!=]==?","name":"keyword.operator.comparison.js"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.js"},{"captures":{"1":{"name":"keyword.operator.logical.js"},"2":{"name":"keyword.operator.assignment.compound.js"},"3":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.js"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"match":"--","name":"keyword.operator.decrement.js"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.js"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.js"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js variable.object.property.js"},{"match":"\\\\?","name":"keyword.operator.optional.js"},{"match":"!","name":"keyword.operator.definiteassignment.js"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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.js","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.js","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.js punctuation.accessor.optional.js"},{"match":"!","name":"meta.function-call.js keyword.operator.definiteassignment.js"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.js"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.constant.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.js"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.js"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?))","end":"(/>)|()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.js"},"2":{"name":"punctuation.definition.tag.begin.js"},"3":{"name":"entity.name.tag.namespace.js"},"4":{"name":"punctuation.separator.namespace.js"},"5":{"name":"entity.name.tag.js"},"6":{"name":"support.class.component.js"},"7":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.js","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"(?=|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.js","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.js"},"jsx-tag-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.without-attributes.js","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"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":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"keyword.operator.new.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"storage.type.property.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},{"captures":{"0":{"name":"meta.object-literal.key.js"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js"}},"end":"(?=[,}])","name":"meta.object.member.js","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js"},{"captures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"storage.modifier.js"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\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.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"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.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"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.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"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.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"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.js"}},"match":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?])","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"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.js"}},"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.js"}},"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.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.js meta.return.type.arrow.js keyword.operator.type.annotation.js"}},"contentName":"meta.arrow.js meta.return.type.arrow.js","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":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","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.js"}},"end":"(?]|=[^<]|<\\\\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.js"},"2":{"name":"support.type.object.module.js"},"3":{"name":"punctuation.accessor.js"},"4":{"name":"punctuation.accessor.optional.js"},"5":{"name":"support.type.object.module.js"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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.js"}]},{"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.js"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"},"2":{"name":"string.template.js punctuation.definition.string.template.begin.js"}},"contentName":"string.template.js","end":"\`","endCaptures":{"0":{"name":"string.template.js punctuation.definition.string.template.end.js"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.js"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.js"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.js","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.js"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.js","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.js","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.js"},"2":{"name":"entity.name.type.js"},"3":{"name":"keyword.operator.expression.extends.js"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.js"},"2":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.begin.js"}},"contentName":"meta.type.parameters.js","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.js"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.object.type.js","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.js"}},"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.js"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.js"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.js"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"meta.type.paren.cover.js","patterns":[{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(??{|}]|(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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js variable.other.constant.js entity.name.function.js"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js entity.name.function.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"}},"end":"(?=$|^|[]),;}]|((?jAe});var PAe,jAe,qte=tr(()=>{PAe=Object.freeze(JSON.parse(`{"displayName":"JSX","name":"jsx","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(??\\\\[]|^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.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.objectliteral.js.jsx","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js.jsx"}},"name":"meta.array.literal.js.jsx","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"variable.parameter.js.jsx"}},"match":"(?:(?)","name":"meta.arrow.js.jsx"},{"begin":"(?:(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*)?\\\\(\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*((\\\\)\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s*:)))|(<\\\\s*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"}},"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.js.jsx","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.js.jsx"}},"end":"((?<=[}\\\\S])(?)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.js.jsx","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.js.jsx"}},"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.js.jsx","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":"(?\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.js.jsx"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.js.jsx","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.js.jsx"},"2":{"name":"entity.name.tag.directive.js.jsx"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.js.jsx"}},"name":"meta.tag.js.jsx","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.js.jsx"},{"match":"=","name":"keyword.operator.assignment.js.jsx"},{"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":"()|(?=\\\\*/)","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.js.jsx"}},"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.js.jsx"},"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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(??}]|\\\\|\\\\||&&|!==|$|((?>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.js.jsx"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.js.jsx"},{"match":"[!=]==?","name":"keyword.operator.comparison.js.jsx"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.js.jsx"},{"captures":{"1":{"name":"keyword.operator.logical.js.jsx"},"2":{"name":"keyword.operator.assignment.compound.js.jsx"},"3":{"name":"keyword.operator.arithmetic.js.jsx"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.js.jsx"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.js.jsx"},{"match":"=","name":"keyword.operator.assignment.js.jsx"},{"match":"--","name":"keyword.operator.decrement.js.jsx"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.js.jsx"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.js.jsx"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.js.jsx"},"2":{"name":"keyword.operator.arithmetic.js.jsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.js.jsx"},"2":{"name":"keyword.operator.arithmetic.js.jsx"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx variable.object.property.js.jsx"},{"match":"\\\\?","name":"keyword.operator.optional.js.jsx"},{"match":"!","name":"keyword.operator.definiteassignment.js.jsx"}]},"for-loop":{"begin":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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.js.jsx","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.js.jsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.js.jsx punctuation.accessor.optional.js.jsx"},{"match":"!","name":"meta.function-call.js.jsx keyword.operator.definiteassignment.js.jsx"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.js.jsx"}]},"function-declaration":{"begin":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"variable.other.constant.property.js.jsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"variable.other.property.js.jsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.js.jsx"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.js.jsx"}]},"if-statement":{"patterns":[{"begin":"(??}]|\\\\|\\\\||&&|!==|$|([!=]==?)|(([\\\\&^|~]\\\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\\\s+instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?))","end":"(/>)|()","endCaptures":{"1":{"name":"punctuation.definition.tag.end.js.jsx"},"2":{"name":"punctuation.definition.tag.begin.js.jsx"},"3":{"name":"entity.name.tag.namespace.js.jsx"},"4":{"name":"punctuation.separator.namespace.js.jsx"},"5":{"name":"entity.name.tag.js.jsx"},"6":{"name":"support.class.component.js.jsx"},"7":{"name":"punctuation.definition.tag.end.js.jsx"}},"name":"meta.tag.js.jsx","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js.jsx"}},"contentName":"meta.jsx.children.js.jsx","end":"(?=|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.js.jsx","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.js.jsx"},"jsx-tag-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"},"6":{"name":"punctuation.definition.tag.end.js.jsx"}},"contentName":"meta.jsx.children.js.jsx","end":"()","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"},"6":{"name":"punctuation.definition.tag.end.js.jsx"}},"name":"meta.tag.without-attributes.js.jsx","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(??\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.js.jsx"},"2":{"name":"punctuation.separator.label.js.jsx"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.js.jsx"},"2":{"name":"punctuation.separator.label.js.jsx"}},"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":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.modifier.async.js.jsx"},"5":{"name":"keyword.operator.new.js.jsx"},"6":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js.jsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.modifier.async.js.jsx"},"5":{"name":"storage.type.property.js.jsx"},"6":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js.jsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=(\\\\b((??}]|\\\\|\\\\||&&|!==|$|((?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"storage.type.property.js.jsx"},"3":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js.jsx","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<]|<\\\\s*(((const\\\\s+)?[$_[:alpha:]])|(\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\\\s*))?\\\\()","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"storage.type.property.js.jsx"},"3":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.js.jsx meta.object-literal.key.js.jsx","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.js.jsx meta.object-literal.key.js.jsx","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=\\\\b((?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},{"captures":{"0":{"name":"meta.object-literal.key.js.jsx"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js.jsx"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js.jsx"}},"end":"(?=[,}])","name":"meta.object.member.js.jsx","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js.jsx"},{"captures":{"1":{"name":"keyword.control.as.js.jsx"},"2":{"name":"storage.modifier.js.jsx"}},"match":"(??}]|\\\\|\\\\||&&|!==|$|^|((?]|=[^<]|<\\\\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.js.jsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"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.js.jsx"},"2":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"}},"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.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"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.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"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.js.jsx"}},"match":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(?])","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"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.js.jsx"}},"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.js.jsx"}},"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.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.js.jsx meta.return.type.arrow.js.jsx keyword.operator.type.annotation.js.jsx"}},"contentName":"meta.arrow.js.jsx meta.return.type.arrow.js.jsx","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":"(?|&&|\\\\|\\\\||\\\\*/)\\\\s*(/)(?![*/])(?=(?:[^()/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)+]|\\\\(([^)\\\\\\\\]|\\\\\\\\.)+\\\\))+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.js.jsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js.jsx"},"2":{"name":"keyword.other.js.jsx"}},"name":"string.regexp.js.jsx","patterns":[{"include":"#regexp"}]},{"begin":"((?)"},{"match":"[*+?]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?)?","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.js.jsx"}},"end":"(?]|=[^<]|<\\\\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.js.jsx"},"2":{"name":"support.type.object.module.js.jsx"},"3":{"name":"punctuation.accessor.js.jsx"},"4":{"name":"punctuation.accessor.optional.js.jsx"},"5":{"name":"support.type.object.module.js.jsx"}},"match":"(?\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^(<>]|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(?<==)>|<\\\\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.js.jsx"}]},{"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.js.jsx"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js.jsx"}},"contentName":"meta.embedded.line.js.jsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js.jsx"}},"name":"meta.template.expression.js.jsx","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js.jsx"},"2":{"name":"string.template.js.jsx punctuation.definition.string.template.begin.js.jsx"}},"contentName":"string.template.js.jsx","end":"\`","endCaptures":{"0":{"name":"string.template.js.jsx punctuation.definition.string.template.end.js.jsx"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js.jsx"}},"contentName":"meta.embedded.line.js.jsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js.jsx"}},"name":"meta.template.expression.js.jsx","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.js.jsx"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.js.jsx"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js.jsx"}},"end":"(?])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.js.jsx"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.js.jsx"}},"name":"meta.type.parameters.js.jsx","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.js.jsx"}},"match":"(?)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?))))))","end":"(?<=\\\\))","name":"meta.type.function.js.jsx","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.js.jsx"}},"end":"(?)(??{}]|//|$)","name":"meta.type.function.return.js.jsx","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js.jsx"}},"end":"(?)(??{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.js.jsx","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.js.jsx"},"2":{"name":"entity.name.type.js.jsx"},"3":{"name":"keyword.operator.expression.extends.js.jsx"}},"match":"(?)","endCaptures":{"1":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.end.js.jsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.js.jsx"},"2":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.begin.js.jsx"}},"contentName":"meta.type.parameters.js.jsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.end.js.jsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.js.jsx"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.object.type.js.jsx","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.js.jsx"}},"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.js.jsx"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.js.jsx"}},"end":"(?=\\\\S)"},{"match":"(?)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.js.jsx"}},"name":"meta.type.parameters.js.jsx","patterns":[{"include":"#comment"},{"match":"(?)","name":"keyword.operator.assignment.js.jsx"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"name":"meta.type.paren.cover.js.jsx","patterns":[{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"entity.name.function.js.jsx variable.language.this.js.jsx"},"4":{"name":"entity.name.function.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(?)))))))|(:\\\\s*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(??{|}]|(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":"(?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx variable.other.constant.js.jsx entity.name.function.js.jsx"}},"end":"(?=$|^|[,;=}]|((?)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*(?{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^(),<=>])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx entity.name.function.js.jsx"},"2":{"name":"keyword.operator.definiteassignment.js.jsx"}},"end":"(?=$|^|[,;=}]|((?\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js.jsx"}},"end":"(?=$|^|[]),;}]|((?DAe});var OAe,DAe,Gte=tr(()=>{OAe=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"}')),DAe=[OAe]});var Ute={};fn(Ute,{default:()=>BAe});var FAe,BAe,Vte=tr(()=>{FAe=Object.freeze(JSON.parse('{"displayName":"JSON with Comments","name":"jsonc","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json.comments"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json.comments"}},"name":"meta.structure.array.json.comments","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json.comments"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json.comments"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json.comments"}},"end":"\\\\*/","name":"comment.block.documentation.json.comments"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json.comments"}},"end":"\\\\*/","name":"comment.block.json.comments"},{"captures":{"1":{"name":"punctuation.definition.comment.json.comments"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json.comments"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json.comments"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json.comments"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json.comments"}},"name":"meta.structure.dictionary.json.comments","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json.comments"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json.comments"}},"name":"meta.structure.dictionary.value.json.comments","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.comments"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.comments"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json.comments"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json.comments"}},"name":"string.json.comments support.type.property-name.json.comments","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json.comments"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json.comments"}},"name":"string.quoted.double.json.comments","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json.comments"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json.comments"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json.comments"}')),BAe=[FAe]});var Zte={};fn(Zte,{default:()=>qAe});var zAe,qAe,Wte=tr(()=>{zAe=Object.freeze(JSON.parse('{"displayName":"Markdown","name":"markdown","patterns":[{"include":"#frontMatter"},{"include":"#block"}],"repository":{"ampersand":{"match":"&(?!([0-9A-Za-z]+|#[0-9]+|#x\\\\h+);)","name":"meta.other.valid-ampersand.markdown"},"block":{"patterns":[{"include":"#separator"},{"include":"#heading"},{"include":"#blockquote"},{"include":"#lists"},{"include":"#fenced_code_block"},{"include":"#raw_block"},{"include":"#link-def"},{"include":"#html"},{"include":"#table"},{"include":"#paragraph"}]},"blockquote":{"begin":"(^|\\\\G) {0,3}(>) ?","captures":{"2":{"name":"punctuation.definition.quote.begin.markdown"}},"name":"markup.quote.markdown","patterns":[{"include":"#block"}],"while":"(^|\\\\G)\\\\s*(>) ?"},"bold":{"begin":"(?(\\\\*\\\\*(?=\\\\w)|(?]*+>|(?`+)([^`]|(?!(?(?!`))`)*+\\\\k|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+?[\\\\t ]*+((?[\\"\'])(.*?)\\\\k<title>)?\\\\))))|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=__\\\\b|\\\\*\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.bold.markdown"}},"end":"(?<=\\\\S)(\\\\1)","name":"markup.bold.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"bracket":{"match":"<(?![!$/?A-Za-z])","name":"meta.other.valid-bracket.markdown"},"escape":{"match":"\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]","name":"constant.character.escape.markdown"},"fenced_code_block":{"patterns":[{"include":"#fenced_code_block_css"},{"include":"#fenced_code_block_basic"},{"include":"#fenced_code_block_ini"},{"include":"#fenced_code_block_java"},{"include":"#fenced_code_block_lua"},{"include":"#fenced_code_block_makefile"},{"include":"#fenced_code_block_perl"},{"include":"#fenced_code_block_r"},{"include":"#fenced_code_block_ruby"},{"include":"#fenced_code_block_php"},{"include":"#fenced_code_block_sql"},{"include":"#fenced_code_block_vs_net"},{"include":"#fenced_code_block_xml"},{"include":"#fenced_code_block_xsl"},{"include":"#fenced_code_block_yaml"},{"include":"#fenced_code_block_dosbatch"},{"include":"#fenced_code_block_clojure"},{"include":"#fenced_code_block_coffee"},{"include":"#fenced_code_block_c"},{"include":"#fenced_code_block_cpp"},{"include":"#fenced_code_block_diff"},{"include":"#fenced_code_block_dockerfile"},{"include":"#fenced_code_block_git_commit"},{"include":"#fenced_code_block_git_rebase"},{"include":"#fenced_code_block_go"},{"include":"#fenced_code_block_groovy"},{"include":"#fenced_code_block_pug"},{"include":"#fenced_code_block_ignore"},{"include":"#fenced_code_block_js"},{"include":"#fenced_code_block_js_regexp"},{"include":"#fenced_code_block_json"},{"include":"#fenced_code_block_jsonc"},{"include":"#fenced_code_block_jsonl"},{"include":"#fenced_code_block_less"},{"include":"#fenced_code_block_objc"},{"include":"#fenced_code_block_swift"},{"include":"#fenced_code_block_scss"},{"include":"#fenced_code_block_perl6"},{"include":"#fenced_code_block_powershell"},{"include":"#fenced_code_block_python"},{"include":"#fenced_code_block_julia"},{"include":"#fenced_code_block_regexp_python"},{"include":"#fenced_code_block_rust"},{"include":"#fenced_code_block_scala"},{"include":"#fenced_code_block_shell"},{"include":"#fenced_code_block_ts"},{"include":"#fenced_code_block_tsx"},{"include":"#fenced_code_block_csharp"},{"include":"#fenced_code_block_fsharp"},{"include":"#fenced_code_block_dart"},{"include":"#fenced_code_block_handlebars"},{"include":"#fenced_code_block_markdown"},{"include":"#fenced_code_block_log"},{"include":"#fenced_code_block_erlang"},{"include":"#fenced_code_block_elixir"},{"include":"#fenced_code_block_latex"},{"include":"#fenced_code_block_bibtex"},{"include":"#fenced_code_block_twig"},{"include":"#fenced_code_block_yang"},{"include":"#fenced_code_block_abap"},{"include":"#fenced_code_block_restructuredtext"},{"include":"#fenced_code_block_unknown"}]},"fenced_code_block_abap":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(abap)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_basic":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(html?|shtml|xhtml|inc|tmpl|tpl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_bibtex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bibtex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_c":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([ch])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_clojure":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(cl(?:js??|ojure))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_coffee":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(coffee|Cakefile|coffee.erb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_cpp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:pp|\\\\+\\\\+|xx))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_csharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_css":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(css(?:|.erb))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dart":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(dart)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_diff":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(patch|diff|rej)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dockerfile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([Dd]ockerfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dosbatch":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bat(?:|ch))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_elixir":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(elixir)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_erlang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(erlang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_fsharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(f(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_commit":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:COMMIT_EDIT|MERGE_)MSG)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_rebase":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(git-rebase-todo)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_go":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(go(?:|lang))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_groovy":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(g(?:roovy|vy))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_handlebars":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(h(?:andlebars|bs))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ignore":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:git|)ignore)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ignore","patterns":[{"include":"source.ignore"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ini":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ini|conf)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_java":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(java|bsh)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js_regexp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(regexp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_json":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonc)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonl(?:|ines))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonl","patterns":[{"include":"source.json.lines"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_julia":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(julia|\\\\{\\\\.julia.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_latex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:la|)tex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_less":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(less)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_log":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(log)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_lua":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(lua)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_makefile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:[Mm]|GNUm|OCamlM)akefile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_markdown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(m(?:arkdown|d))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_objc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl6":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl6|p6|pl6|pm6|nqp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_php":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_powershell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(p(?:owershell|s1|sm1|sd1|wsh))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_pug":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jade|pug)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_r":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_regexp_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(re)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_restructuredtext":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(r(?:estructuredtext|st))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ruby":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_rust":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(rust|rs|\\\\{\\\\.rust.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scala":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(s(?:cala|bt))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scss":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(scss)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_shell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_sql":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(sql|ddl|dml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_swift":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(swift)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ts":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(t(?:ypescript|s))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_tsx":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(tsx)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_twig":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(twig)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_unknown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?=([^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown"},"fenced_code_block_vs_net":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xsl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xslt??)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yaml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ya?ml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(yang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"frontMatter":{"applyEndPatternLast":1,"begin":"\\\\A(?=(-{3,}))","end":"^(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$","endCaptures":{"0":{"name":"punctuation.definition.end.frontmatter"}},"patterns":[{"begin":"\\\\A(-{3,})(.*)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.frontmatter"},"2":{"name":"comment.frontmatter"}},"contentName":"meta.embedded.block.frontmatter","patterns":[{"include":"source.yaml"}],"while":"^(?!(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$)"}]},"heading":{"captures":{"1":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{6})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.6.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{5})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.5.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{4})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.4.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{3})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.3.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{2})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.2.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{1})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.1.markdown"}]}},"match":"(?:^|\\\\G) {0,3}(#{1,6}\\\\s+(.*?)(\\\\s+#{1,6})?\\\\s*)$","name":"markup.heading.markdown"},"heading-setext":{"patterns":[{"match":"^(={3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.1.markdown"},{"match":"^(-{3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.2.markdown"}]},"html":{"patterns":[{"begin":"(^|\\\\G)\\\\s*(<!--)","captures":{"1":{"name":"punctuation.definition.comment.html"},"2":{"name":"punctuation.definition.comment.html"}},"end":"(-->)","name":"comment.block.html"},{"begin":"(?i)(^|\\\\G)\\\\s*(?=<(script|style|pre)(\\\\s|$|>)(?!.*?</(script|style|pre)>))","end":"(?i)(.*)((</)(script|style|pre)(>))","endCaptures":{"1":{"patterns":[{"include":"text.html.derivative"}]},"2":{"name":"meta.tag.structure.$4.end.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"entity.name.tag.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"patterns":[{"begin":"(\\\\s*|$)","patterns":[{"include":"text.html.derivative"}],"while":"(?i)^(?!.*</(script|style|pre)>)"}]},{"begin":"(?i)(^|\\\\G)\\\\s*(?=</?[A-Za-z]+[^\\\\&/;gt\\\\s]*(\\\\s|$|/?>))","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"},{"begin":"(^|\\\\G)\\\\s*(?=(<(?:[-0-9A-Za-z](/?>|\\\\s.*?>)|/[-0-9A-Za-z]>))\\\\s*$)","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"}]},"image-inline":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.image.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.image.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*(\\\\))","name":"meta.image.inline.markdown"},"image-ref":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.constant.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(.*?)(])","name":"meta.image.reference.markdown"},"inline":{"patterns":[{"include":"#ampersand"},{"include":"#bracket"},{"include":"#bold"},{"include":"#italic"},{"include":"#raw"},{"include":"#strikethrough"},{"include":"#escape"},{"include":"#image-inline"},{"include":"#image-ref"},{"include":"#link-email"},{"include":"#link-inet"},{"include":"#link-inline"},{"include":"#link-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref-shortcut"}]},"italic":{"begin":"(?<open>(\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*|(?<!\\\\w)\\\\b_))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|\\\\k<open>\\\\k<open>|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=_\\\\b|\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.italic.markdown"}},"end":"(?<=\\\\S)(\\\\1)((?!\\\\1)|(?=\\\\1\\\\1))","name":"markup.italic.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"link-def":{"captures":{"1":{"name":"punctuation.definition.constant.markdown"},"2":{"name":"constant.other.reference.link.markdown"},"3":{"name":"punctuation.definition.constant.markdown"},"4":{"name":"punctuation.separator.key-value.markdown"},"5":{"name":"punctuation.definition.link.markdown"},"6":{"name":"markup.underline.link.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"string.other.link.description.title.markdown"},"10":{"name":"punctuation.definition.string.begin.markdown"},"11":{"name":"punctuation.definition.string.end.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"}},"match":"\\\\s*(\\\\[)([^]]+?)(])(:)[\\\\t ]*(?:(<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|(\\\\S+?))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*$","name":"meta.link.reference.def.markdown"},"link-email":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"4":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:mailto:)?[!#-\'*+\\\\--9=?A-Z^-~]+@[-0-9A-Za-z]+(?:\\\\.[-0-9A-Za-z]+)*)(>)","name":"meta.link.email.lt-gt.markdown"},"link-inet":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"3":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:https?|ftp)://.*?)(>)","name":"meta.link.inet.markdown"},"link-inline":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\()[^()]*(\\\\)))|((\\")[^\\"]*(\\"))|((\')[^\']*(\')))?\\\\s*(\\\\))","name":"meta.link.inline.markdown"},"link-ref":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\[)([^]]*+)(])","name":"meta.link.reference.markdown"},"link-ref-literal":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(])","name":"meta.link.reference.literal.markdown"},"link-ref-shortcut":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"3":{"name":"punctuation.definition.link.title.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?:[^]\\\\[\\\\\\\\\\\\s]|\\\\\\\\[]\\\\[])+?)((?<!\\\\\\\\)])","name":"meta.link.reference.markdown"},"list_paragraph":{"begin":"(^|\\\\G)(?=\\\\S)(?![*->]\\\\s|[0-9]+\\\\.\\\\s)","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)(?!\\\\s*$|#| {0,3}([-*>_] {2,}){3,}[\\\\t ]*$\\\\n?| {0,3}[*->]| {0,3}[0-9]+\\\\.)"},"lists":{"patterns":[{"begin":"(^|\\\\G)( {0,3})([-*+])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.unnumbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"},{"begin":"(^|\\\\G)( {0,3})([0-9]+[).])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.numbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"}]},"paragraph":{"begin":"(^|\\\\G) {0,3}(?=[^\\\\t\\\\n ])","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)((?=\\\\s*[-=]{3,}\\\\s*$)| {4,}(?=[^\\\\t\\\\n ]))"},"raw":{"captures":{"1":{"name":"punctuation.definition.raw.markdown"},"3":{"name":"punctuation.definition.raw.markdown"}},"match":"(`+)((?:[^`]|(?!(?<!`)\\\\1(?!`))`)*+)(\\\\1)","name":"markup.inline.raw.string.markdown"},"raw_block":{"begin":"(^|\\\\G)( {4}|\\\\t)","name":"markup.raw.block.markdown","while":"(^|\\\\G)( {4}|\\\\t)"},"separator":{"match":"(^|\\\\G) {0,3}([-*_])( {0,2}\\\\2){2,}[\\\\t ]*$\\\\n?","name":"meta.separator.markdown"},"strikethrough":{"captures":{"1":{"name":"punctuation.definition.strikethrough.markdown"},"2":{"patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"}]},"3":{"name":"punctuation.definition.strikethrough.markdown"}},"match":"(?<!\\\\\\\\)(~{2,})(?!(?<=\\\\w~~)_)((?:[^~]|(?!(?<![\\\\\\\\~])\\\\1(?!~))~)*+)(\\\\1)(?!(?<=_\\\\1)\\\\w)","name":"markup.strikethrough.markdown"},"table":{"begin":"(^|\\\\G)(\\\\|)(?=[^|].+\\\\|\\\\s*$)","beginCaptures":{"2":{"name":"punctuation.definition.table.markdown"}},"name":"markup.table.markdown","patterns":[{"match":"\\\\|","name":"punctuation.definition.table.markdown"},{"captures":{"1":{"name":"punctuation.separator.table.markdown"}},"match":"(?<=\\\\|)\\\\s*(:?-+:?)\\\\s*(?=\\\\|)"},{"captures":{"1":{"patterns":[{"include":"#inline"}]}},"match":"(?<=\\\\|)\\\\s*(?=\\\\S)((\\\\\\\\\\\\||[^|])+)(?<=\\\\S)\\\\s*(?=\\\\|)"}],"while":"(^|\\\\G)(?=\\\\|)"}},"scopeName":"text.html.markdown","embeddedLangs":[],"aliases":["md"],"embeddedLangsLazy":["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","jsonl","less","objective-c","swift","scss","raku","powershell","python","julia","regexp","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","log","erlang","elixir","latex","bibtex","abap","rst","html-derivative"]}')),qAe=[zAe]});var Kte={};fn(Kte,{default:()=>R7});var HAe,R7,Zv=tr(()=>{HAe=Object.freeze(JSON.parse(`{"displayName":"CSS","name":"css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#combinators"},{"include":"#selector"},{"include":"#at-rules"},{"include":"#rule-list"}],"repository":{"at-rules":{"patterns":[{"begin":"\\\\A\\\\uFEFF?(?i:(?=\\\\s*@charset\\\\b))","end":";|(?=$)","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.charset.css","patterns":[{"captures":{"1":{"name":"invalid.illegal.not-lowercase.charset.css"},"2":{"name":"invalid.illegal.leading-whitespace.charset.css"},"3":{"name":"invalid.illegal.no-whitespace.charset.css"},"4":{"name":"invalid.illegal.whitespace.charset.css"},"5":{"name":"invalid.illegal.not-double-quoted.charset.css"},"6":{"name":"invalid.illegal.unclosed-string.charset.css"},"7":{"name":"invalid.illegal.unexpected-characters.charset.css"}},"match":"\\\\G((?!@charset)@\\\\w+)|\\\\G(\\\\s+)|(@charset\\\\S[^;]*)|(?<=@charset)( {2,}|\\\\t+)|(?<=@charset )([^\\";]+)|(\\"[^\\"]+)$|(?<=\\")([^;]+)"},{"captures":{"1":{"name":"keyword.control.at-rule.charset.css"},"2":{"name":"punctuation.definition.keyword.css"}},"match":"((@)charset)(?=\\\\s)"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\\"|$","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"begin":"(?:\\\\G|^)(?=[^\\"]+$)","end":"$","name":"invalid.illegal.unclosed.string.css"}]}]},{"begin":"(?i)((@)import)(?:\\\\s+|$|(?=[\\"']|/\\\\*))","beginCaptures":{"1":{"name":"keyword.control.at-rule.import.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.import.css","patterns":[{"begin":"\\\\G\\\\s*(?=/\\\\*)","end":"(?<=\\\\*/)\\\\s*","patterns":[{"include":"#comment-block"}]},{"include":"#string"},{"include":"#url"},{"include":"#media-query-list"}]},{"begin":"(?i)((@)font-face)(?=\\\\s*|\\\\{|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.font-face.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":"(?!\\\\G)","name":"meta.at-rule.font-face.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#rule-list"}]},{"begin":"(?i)(@)page(?=[:{\\\\s]|/\\\\*|$)","captures":{"0":{"name":"keyword.control.at-rule.page.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*($|[:;{]))","name":"meta.at-rule.page.css","patterns":[{"include":"#rule-list"}]},{"begin":"(?i)(?=@media([(\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)media","beginCaptures":{"0":{"name":"keyword.control.at-rule.media.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.media.header.css","patterns":[{"include":"#media-query-list"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.media.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.media.end.bracket.curly.css"}},"name":"meta.at-rule.media.body.css","patterns":[{"include":"$self"}]}]},{"begin":"(?i)(?=@counter-style([\\"';{\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)counter-style","beginCaptures":{"0":{"name":"keyword.control.at-rule.counter-style.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*\\\\{)","name":"meta.at-rule.counter-style.header.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"captures":{"0":{"patterns":[{"include":"#escapes"}]}},"match":"[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.parameter.style-name.css"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.css"}},"name":"meta.at-rule.counter-style.body.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#rule-list-innards"}]}]},{"begin":"(?i)(?=@document([\\"';{\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)document","beginCaptures":{"0":{"name":"keyword.control.at-rule.document.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.document.header.css","patterns":[{"begin":"(?i)(?<![-\\\\w])(url-prefix|domain|regexp)(\\\\()","beginCaptures":{"1":{"name":"support.function.document-rule.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.document-rule.css","patterns":[{"include":"#string"},{"include":"#comment-block"},{"include":"#escapes"},{"match":"[^\\"')\\\\s]+","name":"variable.parameter.document-rule.css"}]},{"include":"#url"},{"include":"#commas"},{"include":"#comment-block"},{"include":"#escapes"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.document.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.document.end.bracket.curly.css"}},"name":"meta.at-rule.document.body.css","patterns":[{"include":"$self"}]}]},{"begin":"(?i)(?=@(?:-(?:webkit|moz|o|ms)-)?keyframes([\\"';{\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)(?:-(?:webkit|moz|o|ms)-)?keyframes","beginCaptures":{"0":{"name":"keyword.control.at-rule.keyframes.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*\\\\{)","name":"meta.at-rule.keyframes.header.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"captures":{"0":{"patterns":[{"include":"#escapes"}]}},"match":"[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.parameter.keyframe-list.css"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.keyframes.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.keyframes.end.bracket.curly.css"}},"name":"meta.at-rule.keyframes.body.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"captures":{"1":{"name":"entity.other.keyframe-offset.css"},"2":{"name":"entity.other.keyframe-offset.percentage.css"}},"match":"(?i)(?<![-\\\\w])(from|to)(?![-\\\\w])|([-+]?(?:\\\\d+(?:\\\\.\\\\d+)?|\\\\.\\\\d+)%)"},{"include":"#rule-list"}]}]},{"begin":"(?i)(?=@supports([(\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)|(?=;)","patterns":[{"begin":"(?i)\\\\G(@)supports","beginCaptures":{"0":{"name":"keyword.control.at-rule.supports.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.supports.header.css","patterns":[{"include":"#feature-query-operators"},{"include":"#feature-query"},{"include":"#comment-block"},{"include":"#escapes"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.supports.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.supports.end.bracket.curly.css"}},"name":"meta.at-rule.supports.body.css","patterns":[{"include":"$self"}]}]},{"begin":"(?i)((@)(-(ms|o)-)?viewport)(?=[\\"';{\\\\s]|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.viewport.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;@{])","name":"meta.at-rule.viewport.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"}]},{"begin":"(?i)((@)font-feature-values)(?=[\\"';{\\\\s]|/\\\\*|$)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.at-rule.font-feature-values.css"},"2":{"name":"punctuation.definition.keyword.css"}},"contentName":"variable.parameter.font-name.css","end":"(?=\\\\s*[;@{])","name":"meta.at-rule.font-features.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"}]},{"include":"#font-features"},{"begin":"(?i)((@)namespace)(?=[\\"';\\\\s]|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.namespace.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":";|(?=[@{])","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.namespace.css","patterns":[{"include":"#url"},{"captures":{"1":{"patterns":[{"include":"#comment-block"}]},"2":{"name":"entity.name.function.namespace-prefix.css","patterns":[{"include":"#escapes"}]}},"match":"(?i)(?:\\\\G|^|(?<=\\\\s))(?=(?<=\\\\s|^)[-A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\s*/\\\\*(?:[^*]|\\\\*[^/])*\\\\*/)(.*?)([-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*)"},{"include":"#comment-block"},{"include":"#escapes"},{"include":"#string"}]},{"begin":"(?i)(?=@[-\\\\w]+[^;]+;s*$)","end":"(?<=;)(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)[-\\\\w]+","beginCaptures":{"0":{"name":"keyword.control.at-rule.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.header.css"}]},{"begin":"(?i)(?=@[-\\\\w]+([({\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)[-\\\\w]+","beginCaptures":{"0":{"name":"keyword.control.at-rule.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.header.css"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.end.bracket.curly.css"}},"name":"meta.at-rule.body.css","patterns":[{"include":"$self"}]}]}]},"color-keywords":{"patterns":[{"match":"(?i)(?<![-\\\\w])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![-\\\\w])","name":"support.constant.color.w3c-standard-color-name.css"},{"match":"(?i)(?<![-\\\\w])(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|transparent|turquoise|violet|wheat|whitesmoke|yellowgreen)(?![-\\\\w])","name":"support.constant.color.w3c-extended-color-name.css"},{"match":"(?i)(?<![-\\\\w])currentColor(?![-\\\\w])","name":"support.constant.color.current.css"},{"match":"(?i)(?<![-\\\\w])(ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText)(?![-\\\\w])","name":"invalid.deprecated.color.system.css"}]},"combinators":{"patterns":[{"match":"/deep/|>>>","name":"invalid.deprecated.combinator.css"},{"match":">>|[+>~]","name":"keyword.operator.combinator.css"}]},"commas":{"match":",","name":"punctuation.separator.list.comma.css"},"comment-block":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.css"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.css"}},"name":"comment.block.css"},"escapes":{"patterns":[{"match":"\\\\\\\\\\\\h{1,6}","name":"constant.character.escape.codepoint.css"},{"begin":"\\\\\\\\$\\\\s*","end":"^(?<!\\\\G)","name":"constant.character.escape.newline.css"},{"match":"\\\\\\\\.","name":"constant.character.escape.css"}]},"feature-query":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.condition.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.condition.end.bracket.round.css"}},"name":"meta.feature-query.css","patterns":[{"include":"#feature-query-operators"},{"include":"#feature-query"}]},"feature-query-operators":{"patterns":[{"match":"(?i)(?<=[()\\\\s]|^|\\\\*/)(and|not|or)(?=[()\\\\s]|/\\\\*|$)","name":"keyword.operator.logical.feature.$1.css"},{"include":"#rule-list-innards"}]},"font-features":{"begin":"(?i)((@)(annotation|character-variant|ornaments|styleset|stylistic|swash))(?=[\\"';@{\\\\s]|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.\${3:/downcase}.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":"(?<=})","name":"meta.at-rule.\${3:/downcase}.css","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.css"}},"name":"meta.property-list.font-feature.css","patterns":[{"captures":{"0":{"patterns":[{"include":"#escapes"}]}},"match":"[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.font-feature.css"},{"include":"#rule-list-innards"}]}]},"functional-pseudo-classes":{"patterns":[{"begin":"(?i)((:)dir)(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"match":"(?i)(?<![-\\\\w])(ltr|rtl)(?![-\\\\w])","name":"support.constant.text-direction.css"},{"include":"#property-values"}]},{"begin":"(?i)((:)lang)(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"match":"(?<=[(,\\\\s])[A-Za-z]+(-[0-9A-Za-z]*|\\\\\\\\(?:\\\\h{1,6}|.))*(?=[),\\\\s])","name":"support.constant.language-range.css"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"include":"#escapes"},{"match":"(?<=[\\"\\\\s])[*A-Za-z]+(-[*0-9A-Za-z]*)*(?=[\\"\\\\s])","name":"support.constant.language-range.css"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"include":"#escapes"},{"match":"(?<=['\\\\s])[*A-Za-z]+(-[*0-9A-Za-z]*)*(?=['\\\\s])","name":"support.constant.language-range.css"}]},{"include":"#commas"}]},{"begin":"(?i)((:)(?:not|has|matches|where|is))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#selector-innards"}]},{"begin":"(?i)((:)nth-(?:last-)?(?:child|of-type))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"match":"(?i)[-+]?(\\\\d+n?|n)(\\\\s*[-+]\\\\s*\\\\d+)?","name":"constant.numeric.css"},{"match":"(?i)even|odd","name":"support.constant.parity.css"}]}]},"functions":{"patterns":[{"begin":"(?i)(?<![-\\\\w])(calc)(\\\\()","beginCaptures":{"1":{"name":"support.function.calc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.calc.css","patterns":[{"match":"[*/]|(?<=\\\\s|^)[-+](?=\\\\s|$)","name":"keyword.operator.arithmetic.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(rgba?|hsla?|hwb|lab|oklab|lch|oklch|color)(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.color.css","patterns":[{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])((?:-(?:webkit-|moz-|o-))?(?:repeating-)?(?:linear|radial|conic)-gradient)(\\\\()","beginCaptures":{"1":{"name":"support.function.gradient.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.gradient.css","patterns":[{"match":"(?i)(?<![-\\\\w])(from|to|at|in|hue)(?![-\\\\w])","name":"keyword.operator.gradient.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(-webkit-gradient)(\\\\()","beginCaptures":{"1":{"name":"invalid.deprecated.gradient.function.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.gradient.invalid.deprecated.gradient.css","patterns":[{"begin":"(?i)(?<![-\\\\w])(from|to|color-stop)(\\\\()","beginCaptures":{"1":{"name":"invalid.deprecated.function.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#property-values"}]},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(annotation|attr|blur|brightness|character-variant|clamp|contrast|counters?|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate|color-mix|image-set|invert|local|max|min|minmax|opacity|ornaments|repeat|saturate|sepia|styleset|stylistic|swash|symbols|cos|sin|tan|acos|asin|atan2??|hypot|sqrt|pow|log|exp|abs|sign)(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.misc.css","patterns":[{"match":"(?i)(?<=[\\",\\\\s]|\\\\*/|^)\\\\d+x(?=[\\"'),\\\\s]|/\\\\*|$)","name":"constant.numeric.other.density.css"},{"include":"#property-values"},{"match":"[^\\"'),\\\\s]+","name":"variable.parameter.misc.css"}]},{"begin":"(?i)(?<![-\\\\w])(circle|ellipse|inset|polygon|rect)(\\\\()","beginCaptures":{"1":{"name":"support.function.shape.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.shape.css","patterns":[{"match":"(?i)(?<=\\\\s|^|\\\\*/)(at|round)(?=\\\\s|/\\\\*|$)","name":"keyword.operator.shape.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(cubic-bezier|steps)(\\\\()","beginCaptures":{"1":{"name":"support.function.timing-function.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.timing-function.css","patterns":[{"match":"(?i)(?<![-\\\\w])(start|end)(?=\\\\s*\\\\)|$)","name":"support.constant.step-direction.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])((?:translate|scale|rotate)(?:[XYZ]|3D)?|matrix(?:3D)?|skew[XY]?|perspective)(\\\\()","beginCaptures":{"1":{"name":"support.function.transform.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#property-values"}]},{"include":"#url"},{"begin":"(?i)(?<![-\\\\w])(var)(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.variable.css","patterns":[{"match":"--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.argument.css"},{"include":"#property-values"}]}]},"media-feature-keywords":{"match":"(?i)(?<=^|[:\\\\s]|\\\\*/)(?:portrait|landscape|progressive|interlace|fullscreen|standalone|minimal-ui|browser|hover)(?=[)\\\\s]|$)","name":"support.constant.property-value.css"},"media-features":{"captures":{"1":{"name":"support.type.property-name.media.css"},"2":{"name":"support.type.property-name.media.css"},"3":{"name":"support.type.vendored.property-name.media.css"}},"match":"(?i)(?<=^|[(\\\\s]|\\\\*/)(?:((?:m(?:in-|ax-))?(?:height|width|aspect-ratio|color|color-index|monochrome|resolution)|grid|scan|orientation|display-mode|hover)|((?:m(?:in-|ax-))?device-(?:height|width|aspect-ratio))|((?:[-_](?:webkit|apple|khtml|epub|moz|ms|o|xv|ah|rim|atsc|hp|tc|wap|ro)|(?:mso|prince))-[-\\\\w]+(?=\\\\s*(?:/\\\\*(?:[^*]|\\\\*[^/])*\\\\*/)?\\\\s*[):])))(?=\\\\s|$|[):<=>]|/\\\\*)"},"media-query":{"begin":"\\\\G","end":"(?=\\\\s*[;{])","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#media-types"},{"match":"(?i)(?<=\\\\s|^|,|\\\\*/)(only|not)(?=[{\\\\s]|/\\\\*|$)","name":"keyword.operator.logical.$1.media.css"},{"match":"(?i)(?<=\\\\s|^|\\\\*/|\\\\))and(?=\\\\s|/\\\\*|$)","name":"keyword.operator.logical.and.media.css"},{"match":",(?:(?:\\\\s*,)+|(?=\\\\s*[);{]))","name":"invalid.illegal.comma.css"},{"include":"#commas"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.css"}},"patterns":[{"include":"#media-features"},{"include":"#media-feature-keywords"},{"match":":","name":"punctuation.separator.key-value.css"},{"match":">=|<=|[<=>]","name":"keyword.operator.comparison.css"},{"captures":{"1":{"name":"constant.numeric.css"},"2":{"name":"keyword.operator.arithmetic.css"},"3":{"name":"constant.numeric.css"}},"match":"(\\\\d+)\\\\s*(/)\\\\s*(\\\\d+)","name":"meta.ratio.css"},{"include":"#numeric-values"},{"include":"#comment-block"}]}]},"media-query-list":{"begin":"(?=\\\\s*[^;{])","end":"(?=\\\\s*[;{])","patterns":[{"include":"#media-query"}]},"media-types":{"captures":{"1":{"name":"support.constant.media.css"},"2":{"name":"invalid.deprecated.constant.media.css"}},"match":"(?i)(?<=^|[,\\\\s]|\\\\*/)(?:(all|print|screen|speech)|(aural|braille|embossed|handheld|projection|tty|tv))(?=$|[,;{\\\\s]|/\\\\*)"},"numeric-values":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.constant.css"}},"match":"(#)(?:\\\\h{3,4}|\\\\h{6}|\\\\h{8})\\\\b","name":"constant.other.color.rgb-value.hex.css"},{"captures":{"1":{"name":"keyword.other.unit.percentage.css"},"2":{"name":"keyword.other.unit.\${2:/downcase}.css"}},"match":"(?i)(?<![-\\\\w])[-+]?(?:[0-9]+(?:\\\\.[0-9]+)?|\\\\.[0-9]+)(?:(?<=[0-9])E[-+]?[0-9]+)?(?:(%)|(deg|grad|rad|turn|Hz|kHz|ch|cm|em|ex|fr|in|mm|mozmm|pc|pt|px|q|rem|rch|rex|rlh|ic|ric|rcap|vh|vw|vb|vi|svh|svw|svb|svi|dvh|dvw|dvb|dvi|lvh|lvw|lvb|lvi|vmax|vmin|cqw|cqi|cqh|cqb|cqmin|cqmax|dpi|dpcm|dppx|s|ms)\\\\b)?","name":"constant.numeric.css"}]},"property-keywords":{"patterns":[{"match":"(?i)(?<![-\\\\w])(above|absolute|active|add|additive|after-edge|alias|all|all-petite-caps|all-scroll|all-small-caps|alpha|alphabetic|alternate|alternate-reverse|always|antialiased|auto|auto-fill|auto-fit|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel|bidi-override|blink|block|block-axis|block-start|block-end|bold|bolder|border|border-box|both|bottom|bottom-outside|break-all|break-word|bullets|butt|capitalize|caption|cell|center|central|char|circle|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color|color-burn|color-dodge|column|column-reverse|common-ligatures|compact|condensed|contain|content|content-box|contents|context-menu|contextual|copy|cover|crisp-edges|crispEdges|crosshair|cyclic|dark|darken|dashed|decimal|default|dense|diagonal-fractions|difference|digits|disabled|disc|discretionary-ligatures|distribute|distribute-all-lines|distribute-letter|distribute-space|dot|dotted|double|double-circle|downleft|downright|e-resize|each-line|ease|ease-in|ease-in-out|ease-out|economy|ellipse|ellipsis|embed|end|evenodd|ew-resize|exact|exclude|exclusion|expanded|extends|extra-condensed|extra-expanded|fallback|farthest-corner|farthest-side|fill|fill-available|fill-box|filled|fit-content|fixed|flat|flex|flex-end|flex-start|flip|flow-root|forwards|freeze|from-image|full-width|geometricPrecision|georgian|grab|grabbing|grayscale|grid|groove|hand|hanging|hard-light|help|hidden|hide|historical-forms|historical-ligatures|horizontal|horizontal-tb|hue|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|infinite|inherit|initial|inline|inline-axis|inline-block|inline-end|inline-flex|inline-grid|inline-list-item|inline-start|inline-table|inset|inside|inter-character|inter-ideograph|inter-word|intersect|invert|isolate|isolate-override|italic|jis04|jis78|jis83|jis90|justify|justify-all|kannada|keep-all|landscape|larger??|left|light|lighten|lighter|line|line-edge|line-through|linear|linearRGB|lining-nums|list-item|local|loose|lowercase|lr|lr-tb|ltr|luminance|luminosity|main-size|mandatory|manipulation|manual|margin-box|match-parent|match-source|mathematical|max-content|medium|menu|message-box|middle|min-content|miter|mixed|move|multiply|n-resize|narrower|ne-resize|nearest-neighbor|nesw-resize|newspaper|no-change|no-clip|no-close-quote|no-common-ligatures|no-contextual|no-discretionary-ligatures|no-drop|no-historical-ligatures|no-open-quote|no-repeat|none|nonzero|normal|not-allowed|nowrap|ns-resize|numbers|numeric|nw-resize|nwse-resize|oblique|oldstyle-nums|open|open-quote|optimizeLegibility|optimizeQuality|optimizeSpeed|optional|ordinal|outset|outside|over|overlay|overline|padding|padding-box|page|painted|pan-down|pan-left|pan-right|pan-up|pan-x|pan-y|paused|petite-caps|pixelated|plaintext|pointer|portrait|pre|pre-line|pre-wrap|preserve-3d|progress|progressive|proportional-nums|proportional-width|proximity|radial|recto|region|relative|remove|repeat|repeat-[xy]|reset-size|reverse|revert|ridge|right|rl|rl-tb|round|row|row-resize|row-reverse|row-severse|rtl|ruby|ruby-base|ruby-base-container|ruby-text|ruby-text-container|run-in|running|s-resize|saturation|scale-down|screen|scroll|scroll-position|se-resize|semi-condensed|semi-expanded|separate|sesame|show|sideways|sideways-left|sideways-lr|sideways-right|sideways-rl|simplified|slashed-zero|slice|small|small-caps|small-caption|smaller|smooth|soft-light|solid|space|space-around|space-between|space-evenly|spell-out|square|sRGB|stacked-fractions|start|static|status-bar|swap|step-end|step-start|sticky|stretch|strict|stroke|stroke-box|style|sub|subgrid|subpixel-antialiased|subtract|super|sw-resize|symbolic|table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|tabular-nums|tb|tb-rl|text|text-after-edge|text-before-edge|text-bottom|text-top|thick|thin|titling-caps|top|top-outside|touch|traditional|transparent|triangle|ultra-condensed|ultra-expanded|under|underline|unicase|unset|upleft|uppercase|upright|use-glyph-orientation|use-script|verso|vertical|vertical-ideographic|vertical-lr|vertical-rl|vertical-text|view-box|visible|visibleFill|visiblePainted|visibleStroke|w-resize|wait|wavy|weight|whitespace|wider|words|wrap|wrap-reverse|x|x-large|x-small|xx-large|xx-small|y|zero|zoom-in|zoom-out)(?![-\\\\w])","name":"support.constant.property-value.css"},{"match":"(?i)(?<![-\\\\w])(arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|cjk-ideographic|decimal|decimal-leading-zero|devanagari|disc|disclosure-closed|disclosure-open|ethiopic-halehame-am|ethiopic-halehame-ti-e[rt]|ethiopic-numeric|georgian|gujarati|gurmukhi|hangul|hangul-consonant|hebrew|hiragana|hiragana-iroha|japanese-formal|japanese-informal|kannada|katakana|katakana-iroha|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman|urdu)(?![-\\\\w])","name":"support.constant.property-value.list-style-type.css"},{"match":"(?<![-\\\\w])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[-A-Za-z]+","name":"support.constant.vendored.property-value.css"},{"match":"(?<![-\\\\w])(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system-ui|system|tahoma|times|trebuchet|ui-monospace|ui-rounded|ui-sans-serif|ui-serif|utopia|verdana|webdings|sans-serif|serif|monospace)(?![-\\\\w])","name":"support.constant.font-name.css"}]},"property-names":{"patterns":[{"match":"(?i)(?<![-\\\\w])(?:accent-color|additive-symbols|align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|aspect-ratio|backdrop-filter|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-position-[xy]|background-repeat|background-size|bleed|block-size|border|border-block-end|border-block-end-color|border-block-end-style|border-block-end-width|border-block-start|border-block-start-color|border-block-start-style|border-block-start-width|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-end-end-radius|border-end-start-radius|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-inline-end|border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-start|border-inline-start-color|border-inline-start-style|border-inline-start-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-start-end-radius|border-start-start-radius|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-decoration-break|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|caret-color|clear|clip|clip-path|clip-rule|color|color-adjust|color-interpolation-filters|color-scheme|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|contain|container|container-name|container-type|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|enable-background|fallback|fill|fill-opacity|fill-rule|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|flood-color|flood-opacity|font|font-display|font-family|font-feature-settings|font-kerning|font-language-override|font-optical-sizing|font-size|font-size-adjust|font-stretch|font-style|font-synthesis|font-variant|font-variant-alternates|font-variant-caps|font-variant-east-asian|font-variant-ligatures|font-variant-numeric|font-variant-position|font-variation-settings|font-weight|gap|glyph-orientation-horizontal|glyph-orientation-vertical|grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-gap|grid-column-start|grid-gap|grid-row|grid-row-end|grid-row-gap|grid-row-start|grid-template|grid-template-areas|grid-template-columns|grid-template-rows|hanging-punctuation|height|hyphens|image-orientation|image-rendering|image-resolution|ime-mode|initial-letter|initial-letter-align|inline-size|inset|inset-block|inset-block-end|inset-block-start|inset-inline|inset-inline-end|inset-inline-start|isolation|justify-content|justify-items|justify-self|kerning|left|letter-spacing|lighting-color|line-break|line-clamp|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-block|margin-block-end|margin-block-start|margin-bottom|margin-inline|margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|marker-end|marker-mid|marker-start|marks|mask|mask-border|mask-border-mode|mask-border-outset|mask-border-repeat|mask-border-slice|mask-border-source|mask-border-width|mask-clip|mask-composite|mask-image|mask-mode|mask-origin|mask-position|mask-repeat|mask-size|mask-type|max-block-size|max-height|max-inline-size|max-lines|max-width|max-zoom|min-block-size|min-height|min-inline-size|min-width|min-zoom|mix-blend-mode|negative|object-fit|object-position|offset|offset-anchor|offset-distance|offset-path|offset-position|offset-rotation|opacity|order|orientation|orphans|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-anchor|overflow-block|overflow-inline|overflow-wrap|overflow-[xy]|overscroll-behavior|overscroll-behavior-block|overscroll-behavior-inline|overscroll-behavior-[xy]|pad|padding|padding-block|padding-block-end|padding-block-start|padding-bottom|padding-inline|padding-inline-end|padding-inline-start|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|paint-order|perspective|perspective-origin|place-content|place-items|place-self|pointer-events|position|prefix|quotes|range|resize|right|rotate|row-gap|ruby-align|ruby-merge|ruby-position|scale|scroll-behavior|scroll-margin|scroll-margin-block|scroll-margin-block-end|scroll-margin-block-start|scroll-margin-bottom|scroll-margin-inline|scroll-margin-inline-end|scroll-margin-inline-start|scroll-margin-left|scroll-margin-right|scroll-margin-top|scroll-padding|scroll-padding-block|scroll-padding-block-end|scroll-padding-block-start|scroll-padding-bottom|scroll-padding-inline|scroll-padding-inline-end|scroll-padding-inline-start|scroll-padding-left|scroll-padding-right|scroll-padding-top|scroll-snap-align|scroll-snap-coordinate|scroll-snap-destination|scroll-snap-stop|scroll-snap-type|scrollbar-color|scrollbar-gutter|scrollbar-width|shape-image-threshold|shape-margin|shape-outside|shape-rendering|size|speak-as|src|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|suffix|symbols|system|tab-size|table-layout|text-align|text-align-last|text-anchor|text-combine-upright|text-decoration|text-decoration-color|text-decoration-line|text-decoration-skip|text-decoration-skip-ink|text-decoration-style|text-decoration-thickness|text-emphasis|text-emphasis-color|text-emphasis-position|text-emphasis-style|text-indent|text-justify|text-orientation|text-overflow|text-rendering|text-shadow|text-size-adjust|text-transform|text-underline-offset|text-underline-position|top|touch-action|transform|transform-box|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|translate|unicode-bidi|unicode-range|user-select|user-zoom|vertical-align|visibility|white-space|widows|width|will-change|word-break|word-spacing|word-wrap|writing-mode|z-index|zoom|alignment-baseline|baseline-shift|clip-rule|color-interpolation|color-interpolation-filters|color-profile|color-rendering|cx|cy|dominant-baseline|enable-background|fill|fill-opacity|fill-rule|flood-color|flood-opacity|glyph-orientation-horizontal|glyph-orientation-vertical|height|kerning|lighting-color|marker-end|marker-mid|marker-start|rx??|ry|shape-rendering|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|text-anchor|width|[xy]|adjust|after|align|align-last|alignment|alignment-adjust|appearance|attachment|azimuth|background-break|balance|baseline|before|bidi|binding|bookmark|bookmark-label|bookmark-level|bookmark-target|border-length|bottom-color|bottom-left-radius|bottom-right-radius|bottom-style|bottom-width|box|box-align|box-direction|box-flex|box-flex-group|box-lines|box-ordinal-group|box-orient|box-pack|break|character|collapse|column|column-break-after|column-break-before|count|counter|crop|cue|cue-after|cue-before|decoration|decoration-break|delay|display-model|display-role|down|drop|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust|drop-initial-before-align|drop-initial-size|drop-initial-value|duration|elevation|emphasis|family|fit|fit-position|flex-group|float-offset|gap|grid-columns|grid-rows|hanging-punctuation|header|hyphenate|hyphenate-after|hyphenate-before|hyphenate-character|hyphenate-lines|hyphenate-resource|icon|image|increment|indent|index|initial-after-adjust|initial-after-align|initial-before-adjust|initial-before-align|initial-size|initial-value|inline-box-align|iteration-count|justify|label|left-color|left-style|left-width|length|level|line|line-stacking|line-stacking-ruby|line-stacking-shift|line-stacking-strategy|lines|list|mark|mark-after|mark-before|marks|marquee|marquee-direction|marquee-play-count|marquee-speed|marquee-style|max|min|model|move-to|name|nav|nav-down|nav-index|nav-left|nav-right|nav-up|new|numeral|offset|ordinal-group|orient|origin|overflow-style|overhang|pack|page|page-policy|pause|pause-after|pause-before|phonemes|pitch|pitch-range|play-count|play-during|play-state|point|presentation|presentation-level|profile|property|punctuation|punctuation-trim|radius|rate|rendering-intent|repeat|replace|reset|resolution|resource|respond-to|rest|rest-after|rest-before|richness|right-color|right-style|right-width|role|rotation|rotation-point|rows|ruby|ruby-overhang|ruby-span|rule|rule-color|rule-style|rule-width|shadow|size|size-adjust|sizing|space|space-collapse|spacing|span|speak|speak-header|speak-numeral|speak-punctuation|speech|speech-rate|speed|stacking|stacking-ruby|stacking-shift|stacking-strategy|stress|stretch|string-set|style|style-image|style-position|style-type|target|target-name|target-new|target-position|text|text-height|text-justify|text-outline|text-replace|text-wrap|timing-function|top-color|top-left-radius|top-right-radius|top-style|top-width|trim|unicode|up|user-select|variant|voice|voice-balance|voice-duration|voice-family|voice-pitch|voice-pitch-range|voice-rate|voice-stress|voice-volume|volume|weight|white|white-space-collapse|word|wrap)(?![-\\\\w])","name":"support.type.property-name.css"},{"match":"(?<![-\\\\w])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[-A-Za-z]+","name":"support.type.vendored.property-name.css"}]},"property-values":{"patterns":[{"include":"#commas"},{"include":"#comment-block"},{"include":"#escapes"},{"include":"#functions"},{"include":"#property-keywords"},{"include":"#unicode-range"},{"include":"#numeric-values"},{"include":"#color-keywords"},{"include":"#string"},{"match":"!\\\\s*important(?![-\\\\w])","name":"keyword.other.important.css"}]},"pseudo-classes":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"name":"invalid.illegal.colon.css"}},"match":"(?i)(:)(:*)(?:active|any-link|checked|default|disabled|empty|enabled|first|(?:first|last|only)-(?:child|of-type)|focus|focus-visible|focus-within|fullscreen|host|hover|in-range|indeterminate|invalid|left|link|optional|out-of-range|read-only|read-write|required|right|root|scope|target|unresolved|valid|visited)(?![-\\\\w]|\\\\s*[;}])","name":"entity.other.attribute-name.pseudo-class.css"},"pseudo-elements":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"name":"punctuation.definition.entity.css"}},"match":"(?i)(?:(::?)(?:after|before|first-letter|first-line|(?:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[-a-z]+)|(::)(?:backdrop|content|grammar-error|marker|placeholder|selection|shadow|spelling-error))(?![-\\\\w]|\\\\s*[;}])","name":"entity.other.attribute-name.pseudo-element.css"},"rule-list":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.css"}},"name":"meta.property-list.css","patterns":[{"include":"#rule-list-innards"}]},"rule-list-innards":{"patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"#comment-block"},{"include":"#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]},"selector":{"begin":"(?=\\\\|?(?:[-#*.:A-\\\\[_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)))","end":"(?=\\\\s*[)/@{])","name":"meta.selector.css","patterns":[{"include":"#selector-innards"}]},"selector-innards":{"patterns":[{"include":"#comment-block"},{"include":"#commas"},{"include":"#escapes"},{"include":"#combinators"},{"captures":{"1":{"name":"entity.other.namespace-prefix.css"},"2":{"name":"punctuation.separator.css"}},"match":"(?:^|(?<=[(,;}\\\\s]))(?![-*\\\\w]+\\\\|(?![-#*.:A-\\\\[_a-z[^\\\\x00-\\\\x7F]]))([-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*|\\\\*)?(\\\\|)"},{"include":"#tag-names"},{"match":"\\\\*","name":"entity.name.tag.wildcard.css"},{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#escapes"}]}},"match":"(?<![-@\\\\w])([#.])((?:-?[0-9]|-(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)|(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*(?:[]!\\"%-(*;<?@^\`|}]|/(?!\\\\*))+)(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*)","name":"invalid.illegal.bad-identifier.css"},{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#escapes"}]}},"match":"(\\\\.)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.class.css"},{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#escapes"}]}},"match":"(#)(-?(?![0-9])(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.id.css"},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.entity.begin.bracket.square.css"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.entity.end.bracket.square.css"}},"name":"meta.attribute-selector.css","patterns":[{"include":"#comment-block"},{"include":"#string"},{"captures":{"1":{"name":"storage.modifier.ignore-case.css"}},"match":"(?<=[\\"'\\\\s]|^|\\\\*/)\\\\s*([Ii])\\\\s*(?=[]\\\\s]|/\\\\*|$)"},{"captures":{"1":{"name":"string.unquoted.attribute-value.css","patterns":[{"include":"#escapes"}]}},"match":"(?<==)\\\\s*((?!/\\\\*)(?:[^]\\"'\\\\\\\\\\\\s]|\\\\\\\\.)+)"},{"include":"#escapes"},{"match":"[$*^|~]?=","name":"keyword.operator.pattern.css"},{"match":"\\\\|","name":"punctuation.separator.css"},{"captures":{"1":{"name":"entity.other.namespace-prefix.css","patterns":[{"include":"#escapes"}]}},"match":"(-?(?!\\\\d)(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+|\\\\*)(?=\\\\|(?![=\\\\s]|$|])(?:-?(?!\\\\d)|[-\\\\\\\\\\\\w[^\\\\x00-\\\\x7F]]))"},{"captures":{"1":{"name":"entity.other.attribute-name.css","patterns":[{"include":"#escapes"}]}},"match":"(-?(?!\\\\d)(?>[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)\\\\s*(?=[]$*=^|~]|/\\\\*)"}]},{"include":"#pseudo-classes"},{"include":"#pseudo-elements"},{"include":"#functional-pseudo-classes"},{"match":"(?<![-@\\\\w])(?=[a-z]\\\\w*-)(?:(?![A-Z])[-\\\\w])+(?![-(\\\\w])","name":"entity.name.tag.custom.css"}]},"string":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\\"|(?<!\\\\\\\\)(?=$|\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"begin":"(?:\\\\G|^)(?=(?:[^\\"\\\\\\\\]|\\\\\\\\.)+$)","end":"$","name":"invalid.illegal.unclosed.string.css","patterns":[{"include":"#escapes"}]},{"include":"#escapes"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'|(?<!\\\\\\\\)(?=$|\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"begin":"(?:\\\\G|^)(?=(?:[^'\\\\\\\\]|\\\\\\\\.)+$)","end":"$","name":"invalid.illegal.unclosed.string.css","patterns":[{"include":"#escapes"}]},{"include":"#escapes"}]}]},"tag-names":{"match":"(?i)(?<![-:\\\\w])(?:a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset|figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i|iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|math|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rb|rp|rtc??|ruby|s|samp|script|section|select|shadow|slot|small|source|spacer|span|strike|strong|style|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|ul??|var|video|wbr|xmp|altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|animateMotion|animateTransform|circle|clipPath|color-profile|cursor|defs|desc|discard|ellipse|feBlend|feColorMatrix|feComponentTransfer|feComposite|feConvolveMatrix|feDiffuseLighting|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|feMergeNode|feMorphology|feOffset|fePointLight|feSpecularLighting|feSpotLight|feTile|feTurbulence|filter|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|foreignObject|g|glyph|glyphRef|hatch|hatchpath|hkern|line|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|metadata|missing-glyph|mpath|path|pattern|polygon|polyline|radialGradient|rect|set|solidcolor|stop|svg|switch|symbol|text|textPath|tref|tspan|use|view|vkern|annotation|annotation-xml|maction|maligngroup|malignmark|math|menclose|merror|mfenced|mfrac|mglyph|mi|mlabeledtr|mlongdiv|mmultiscripts|mn|mo|mover|mpadded|mphantom|mroot|mrow|ms|mscarries|mscarry|msgroup|msline|mspace|msqrt|msrow|mstack|mstyle|msub|msubsup|msup|mtable|mtd|mtext|mtr|munder|munderover|semantics)(?=[#)+,.:>\\\\[{|~\\\\s]|/\\\\*|$)","name":"entity.name.tag.css"},"unicode-range":{"captures":{"0":{"name":"constant.other.unicode-range.css"},"1":{"name":"punctuation.separator.dash.unicode-range.css"}},"match":"(?<![-\\\\w])[Uu]\\\\+[?\\\\h]{1,6}(?:(-)\\\\h{1,6})?(?![-\\\\w])"},"url":{"begin":"(?i)(?<![-@\\\\w])(url)(\\\\()","beginCaptures":{"1":{"name":"support.function.url.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.url.css","patterns":[{"match":"[^\\"')\\\\s]+","name":"variable.parameter.url.css"},{"include":"#string"},{"include":"#comment-block"},{"include":"#escapes"}]}},"scopeName":"source.css"}`)),R7=[HAe]});var Xte={};fn(Xte,{default:()=>UAe});var GAe,UAe,Yte=tr(()=>{Zv();GAe=Object.freeze(JSON.parse(`{"displayName":"SCSS","name":"scss","patterns":[{"include":"#variable_setting"},{"include":"#at_rule_forward"},{"include":"#at_rule_use"},{"include":"#at_rule_include"},{"include":"#at_rule_import"},{"include":"#general"},{"include":"#flow_control"},{"include":"#rules"},{"include":"#property_list"},{"include":"#at_rule_mixin"},{"include":"#at_rule_media"},{"include":"#at_rule_function"},{"include":"#at_rule_charset"},{"include":"#at_rule_option"},{"include":"#at_rule_namespace"},{"include":"#at_rule_fontface"},{"include":"#at_rule_page"},{"include":"#at_rule_keyframes"},{"include":"#at_rule_at_root"},{"include":"#at_rule_supports"},{"match":";","name":"punctuation.terminator.rule.css"}],"repository":{"at_rule_at_root":{"begin":"\\\\s*((@)(at-root))(\\\\s+|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.at-root.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.at-root.scss","patterns":[{"include":"#function_attributes"},{"include":"#functions"},{"include":"#selectors"}]},"at_rule_charset":{"begin":"\\\\s*((@)charset)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.charset.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;|$))","name":"meta.at-rule.charset.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"}]},"at_rule_content":{"begin":"\\\\s*((@)content)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.content.scss"}},"end":"\\\\s*((?=;))","name":"meta.content.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_each":{"begin":"\\\\s*((@)each)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.each.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=}))","name":"meta.at-rule.each.scss","patterns":[{"match":"\\\\b(in|,)\\\\b","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_else":{"begin":"\\\\s*((@)else(\\\\s*(if)?))\\\\s*","captures":{"1":{"name":"keyword.control.else.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.else.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_extend":{"begin":"\\\\s*((@)extend)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.extend.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.extend.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_fontface":{"patterns":[{"begin":"^\\\\s*((@)font-face)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.fontface.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.fontface.scss","patterns":[{"include":"#function_attributes"}]}]},"at_rule_for":{"begin":"\\\\s*((@)for)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.for.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.for.scss","patterns":[{"match":"(==|!=|<=|>=|[<>]|from|to|through)","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_forward":{"begin":"\\\\s*((@)forward)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.forward.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.forward.scss","patterns":[{"match":"\\\\b(as|hide|show)\\\\b","name":"keyword.control.operator"},{"captures":{"1":{"name":"entity.other.attribute-name.module.scss"},"2":{"name":"punctuation.definition.wildcard.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\*)"},{"match":"\\\\b[-\\\\w]+\\\\b","name":"entity.name.function.scss"},{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#comment_line"},{"include":"#comment_block"}]},"at_rule_function":{"patterns":[{"begin":"\\\\s*((@)function)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.function.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"match":"\\\\s*((@)function)\\\\b\\\\s*","name":"meta.at-rule.function.scss"}]},"at_rule_if":{"begin":"\\\\s*((@)if)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.if.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.if.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_import":{"begin":"\\\\s*((@)import)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.import.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;)|(?=}))","name":"meta.at-rule.import.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#functions"},{"include":"#comment_line"}]},"at_rule_include":{"patterns":[{"begin":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"name":"meta.at-rule.include.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"}},"match":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)"},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"keyword.control.at-rule.include.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)include)\\\\b"}]},"at_rule_keyframes":{"begin":"(?<=^|\\\\s)(@)(?:-(?:webkit|moz)-)?keyframes\\\\b","beginCaptures":{"0":{"name":"keyword.control.at-rule.keyframes.scss"},"1":{"name":"punctuation.definition.keyword.scss"}},"end":"(?<=})","name":"meta.at-rule.keyframes.scss","patterns":[{"captures":{"1":{"name":"entity.name.function.scss"}},"match":"(?<=@keyframes)\\\\s+((?:[A-Z_a-z][-\\\\w]|-[A-Z_a-z])[-\\\\w]*)"},{"begin":"(?<=@keyframes)\\\\s+(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"(?<=@keyframes)\\\\s+(')","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.keyframes.begin.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.keyframes.end.scss"}},"patterns":[{"match":"\\\\b(?:(?:100|[1-9]\\\\d|\\\\d)%|from|to)(?=\\\\s*\\\\{)","name":"entity.other.attribute-name.scss"},{"include":"#flow_control"},{"include":"#interpolation"},{"include":"#property_list"},{"include":"#rules"}]}]},"at_rule_media":{"patterns":[{"begin":"^\\\\s*((@)media)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.media.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.media.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"match":"\\\\b(only)\\\\b","name":"keyword.control.operator.css.scss"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.media-query.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.media-query.end.bracket.round.scss"}},"name":"meta.property-list.media-query.scss","patterns":[{"begin":"(?<![-a-z])(?=[-a-z])","end":"$|(?![-a-z])","name":"meta.property-name.media-query.scss","patterns":[{"include":"source.css#media-features"},{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*(?!(\\\\s*\\\\{))","beginCaptures":{"1":{"name":"punctuation.separator.key-value.scss"}},"contentName":"meta.property-value.media-query.scss","end":"\\\\s*(;|(?=[)}]))","endCaptures":{"1":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},{"include":"#variable"},{"include":"#conditional_operators"},{"include":"source.css#media-types"}]}]},"at_rule_mixin":{"patterns":[{"begin":"(?<=@mixin)\\\\s+([-\\\\w]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.scss"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"name":"meta.at-rule.mixin.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"1":{"name":"entity.name.function.scss"}},"match":"(?<=@mixin)\\\\s+([-\\\\w]+)","name":"meta.at-rule.mixin.scss"},{"captures":{"1":{"name":"keyword.control.at-rule.mixin.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)mixin)\\\\b","name":"meta.at-rule.mixin.scss"}]},"at_rule_namespace":{"patterns":[{"begin":"(?<=@namespace)\\\\s+(?=url)","end":"(?=;|$)","name":"meta.at-rule.namespace.scss","patterns":[{"include":"#property_values"},{"include":"#string_single"},{"include":"#string_double"}]},{"begin":"(?<=@namespace)\\\\s+([-\\\\w]*)","captures":{"1":{"name":"entity.name.namespace-prefix.scss"}},"end":"(?=;|$)","name":"meta.at-rule.namespace.scss","patterns":[{"include":"#variables"},{"include":"#property_values"},{"include":"#string_single"},{"include":"#string_double"}]},{"captures":{"1":{"name":"keyword.control.at-rule.namespace.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)namespace)\\\\b","name":"meta.at-rule.namespace.scss"}]},"at_rule_option":{"captures":{"1":{"name":"keyword.control.at-rule.charset.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"^\\\\s*((@)option)\\\\b\\\\s*","name":"meta.at-rule.option.scss"},"at_rule_page":{"patterns":[{"begin":"^\\\\s*((@)page)(?=[:\\\\s])\\\\s*([-:\\\\w]*)","captures":{"1":{"name":"keyword.control.at-rule.page.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.page.scss"}]},"at_rule_return":{"begin":"\\\\s*((@)(return))\\\\b","captures":{"1":{"name":"keyword.control.return.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;))","name":"meta.at-rule.return.scss","patterns":[{"include":"#variable"},{"include":"#property_values"}]},"at_rule_supports":{"begin":"(?<=^|\\\\s)(@)supports\\\\b","captures":{"0":{"name":"keyword.control.at-rule.supports.scss"},"1":{"name":"punctuation.definition.keyword.scss"}},"end":"(?=\\\\{)|$","name":"meta.at-rule.supports.scss","patterns":[{"include":"#logical_operators"},{"include":"#properties"},{"match":"\\\\(","name":"punctuation.definition.condition.begin.bracket.round.scss"},{"match":"\\\\)","name":"punctuation.definition.condition.end.bracket.round.scss"}]},"at_rule_use":{"begin":"\\\\s*((@)use)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.use.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.use.scss","patterns":[{"match":"\\\\b(as|with)\\\\b","name":"keyword.control.operator"},{"match":"\\\\b[-\\\\w]+\\\\b","name":"variable.scss"},{"match":"\\\\*","name":"variable.language.expanded-namespace.scss"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#comment_line"},{"include":"#comment_block"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"patterns":[{"include":"#function_attributes"}]}]},"at_rule_warn":{"begin":"\\\\s*((@)(warn|debug|error))\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.warn.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.warn.scss","patterns":[{"include":"#variable"},{"include":"#string_double"},{"include":"#string_single"}]},"at_rule_while":{"begin":"\\\\s*((@)while)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.while.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=})","name":"meta.at-rule.while.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"comment_block":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"name":"comment.block.scss"},"comment_docblock":{"begin":"///","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"(?=$)","name":"comment.block.documentation.scss","patterns":[{"include":"source.sassdoc"}]},"comment_line":{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"\\\\n","name":"comment.line.scss"},"comparison_operators":{"match":"==|!=|<=|>=|[<>]","name":"keyword.operator.comparison.scss"},"conditional_operators":{"patterns":[{"include":"#comparison_operators"},{"include":"#logical_operators"}]},"constant_default":{"match":"!default","name":"keyword.other.default.scss"},"constant_functions":{"begin":"(?:([-\\\\w]+)(\\\\.))?([-\\\\w]+)(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"support.function.misc.scss"},"4":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"constant_important":{"match":"!important","name":"keyword.other.important.scss"},"constant_mathematical_symbols":{"match":"\\\\b([-*+/])\\\\b","name":"support.constant.mathematical-symbols.scss"},"constant_optional":{"match":"!optional","name":"keyword.other.optional.scss"},"constant_sass_functions":{"begin":"(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:|svg-)gradient|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate[XY])(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"flow_control":{"patterns":[{"include":"#at_rule_if"},{"include":"#at_rule_else"},{"include":"#at_rule_warn"},{"include":"#at_rule_for"},{"include":"#at_rule_while"},{"include":"#at_rule_each"},{"include":"#at_rule_return"}]},"function_attributes":{"patterns":[{"match":":","name":"punctuation.separator.key-value.scss"},{"include":"#general"},{"include":"#property_values"},{"match":"[;=?@{}]","name":"invalid.illegal.scss"}]},"functions":{"patterns":[{"begin":"([-\\\\w]+)(\\\\()\\\\s*","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},{"match":"([-\\\\w]+)","name":"support.function.misc.scss"}]},"general":{"patterns":[{"include":"#variable"},{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"}]},"interpolation":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.interpolation.begin.bracket.curly.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.bracket.curly.scss"}},"name":"variable.interpolation.scss","patterns":[{"include":"#variable"},{"include":"#property_values"}]},"logical_operators":{"match":"\\\\b(not|or|and)\\\\b","name":"keyword.operator.logical.scss"},"map":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.map.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.map.end.bracket.round.scss"}},"name":"meta.definition.variable.map.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"captures":{"1":{"name":"support.type.map.key.scss"},"2":{"name":"punctuation.separator.key-value.scss"}},"match":"\\\\b([-\\\\w]+)\\\\s*(:)"},{"match":",","name":"punctuation.separator.delimiter.scss"},{"include":"#map"},{"include":"#variable"},{"include":"#property_values"}]},"operators":{"match":"[-*+/](?!\\\\s*[-*+/])","name":"keyword.operator.css"},"parameters":{"patterns":[{"include":"#variable"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.scss"}},"patterns":[{"include":"#function_attributes"}]},{"include":"#property_values"},{"include":"#comment_block"},{"match":"[^\\\\t \\"'),]+","name":"variable.parameter.url.scss"},{"match":",","name":"punctuation.separator.delimiter.scss"}]},"parent_selector_suffix":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(?<=&)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|[$}])+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.parent-selector-suffix.css"},"properties":{"patterns":[{"begin":"(?<![-a-z])(?=[-a-z])","end":"$|(?![-a-z])","name":"meta.property-name.scss","patterns":[{"include":"source.css#property-names"},{"include":"#at_rule_include"}]},{"begin":"(:)\\\\s*(?!(\\\\s*\\\\{))","beginCaptures":{"1":{"name":"punctuation.separator.key-value.scss"}},"contentName":"meta.property-value.scss","end":"\\\\s*(;|(?=[)}]))","endCaptures":{"1":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},"property_list":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.scss"}},"name":"meta.property-list.scss","patterns":[{"include":"#flow_control"},{"include":"#rules"},{"include":"#properties"},{"include":"$self"}]},"property_values":{"patterns":[{"include":"#string_single"},{"include":"#string_double"},{"include":"#constant_functions"},{"include":"#constant_sass_functions"},{"include":"#constant_important"},{"include":"#constant_default"},{"include":"#constant_optional"},{"include":"source.css#numeric-values"},{"include":"source.css#property-keywords"},{"include":"source.css#color-keywords"},{"include":"source.css#property-names"},{"include":"#constant_mathematical_symbols"},{"include":"#operators"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},"rules":{"patterns":[{"include":"#general"},{"include":"#at_rule_extend"},{"include":"#at_rule_content"},{"include":"#at_rule_include"},{"include":"#at_rule_media"},{"include":"#selectors"}]},"selector_attribute":{"captures":{"1":{"name":"punctuation.definition.attribute-selector.begin.bracket.square.scss"},"2":{"name":"entity.other.attribute-name.attribute.scss","patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"3":{"name":"keyword.operator.scss"},"4":{"name":"string.unquoted.attribute-value.scss","patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"5":{"name":"string.quoted.double.attribute-value.scss"},"6":{"name":"punctuation.definition.string.begin.scss"},"7":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"8":{"name":"punctuation.definition.string.end.scss"},"9":{"name":"string.quoted.single.attribute-value.scss"},"10":{"name":"punctuation.definition.string.begin.scss"},"11":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"12":{"name":"punctuation.definition.string.end.scss"},"13":{"name":"punctuation.definition.attribute-selector.end.bracket.square.scss"}},"match":"(?i)(\\\\[)\\\\s*((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+?)(?:\\\\s*([$*^|~]?=)\\\\s*(?:((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)|((\\")(.*?)(\\"))|((')(.*?)('))))?\\\\s*(])","name":"meta.attribute-selector.scss"},"selector_class":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]}},"match":"(\\\\.)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)(?=$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*|;)","name":"entity.other.attribute-name.class.css"},"selector_custom":{"match":"\\\\b([0-9A-Za-z]+(-[0-9A-Za-z]+)+)(?=\\\\.|\\\\s++[^:]|\\\\s*[,\\\\[{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-((?:|last-)(?:child|of-type))|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\\\([0-9A-Za-z]*\\\\))?)","name":"entity.name.tag.custom.scss"},"selector_id":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(#)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)(?=$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.id.css"},"selector_placeholder":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(%)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.\\\\$|[$}])+)(?=;|$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.placeholder.css"},"selector_pseudo_class":{"patterns":[{"begin":"((:)\\\\bnth-(?:|last-)(?:child|of-type))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.definition.pseudo-class.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.pseudo-class.end.bracket.round.css"}},"patterns":[{"include":"#interpolation"},{"match":"\\\\d+","name":"constant.numeric.css"},{"match":"(?:(?<=\\\\d)n|\\\\b(n|even|odd))\\\\b","name":"constant.other.scss"},{"match":"\\\\w+","name":"invalid.illegal.scss"}]},{"include":"source.css#pseudo-classes"},{"include":"source.css#pseudo-elements"},{"include":"source.css#functional-pseudo-classes"}]},"selectors":{"patterns":[{"include":"source.css#tag-names"},{"include":"#selector_custom"},{"include":"#selector_class"},{"include":"#selector_id"},{"include":"#selector_pseudo_class"},{"include":"#tag_wildcard"},{"include":"#tag_parent_reference"},{"include":"source.css#pseudo-elements"},{"include":"#selector_attribute"},{"include":"#selector_placeholder"},{"include":"#parent_selector_suffix"}]},"string_double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"string_single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"tag_parent_reference":{"match":"&","name":"entity.name.tag.reference.scss"},"tag_wildcard":{"match":"\\\\*","name":"entity.name.tag.wildcard.scss"},"variable":{"patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"variable_setting":{"begin":"(?=\\\\$[-\\\\w]+\\\\s*:)","contentName":"meta.definition.variable.scss","end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"match":"\\\\$[-\\\\w]+(?=\\\\s*:)","name":"variable.scss"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.key-value.scss"}},"end":"(?=;)","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"include":"#map"},{"include":"#property_values"},{"include":"#variable"},{"match":",","name":"punctuation.separator.delimiter.scss"}]}]},"variables":{"patterns":[{"captures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"variable.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\.)(\\\\$[-\\\\w]+)\\\\b"},{"match":"(\\\\$|--)[-0-9A-Z_a-z]+\\\\b","name":"variable.scss"}]}},"scopeName":"source.css.scss","embeddedLangs":["css"]}`)),UAe=[...R7,GAe]});var Qte={};fn(Qte,{default:()=>ZAe});var VAe,ZAe,Jte=tr(()=>{nP();Zv();VAe=Object.freeze(JSON.parse(`{"displayName":"HTML","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html","patterns":[{"include":"#xml-processing"},{"include":"#comment"},{"include":"#doctype"},{"include":"#cdata"},{"include":"#tags-valid"},{"include":"#tags-invalid"},{"include":"#entities"}],"repository":{"attribute":{"patterns":[{"begin":"(s(hape|cope|t(ep|art)|ize(s)?|p(ellcheck|an)|elected|lot|andbox|rc(set|doc|lang)?)|h(ttp-equiv|i(dden|gh)|e(ight|aders)|ref(lang)?)|n(o(nce|validate|module)|ame)|c(h(ecked|arset)|ite|o(nt(ent(editable)?|rols)|ords|l(s(pan)?|or))|lass|rossorigin)|t(ype(mustmatch)?|itle|a(rget|bindex)|ranslate)|i(s(map)?|n(tegrity|putmode)|tem(scope|type|id|prop|ref)|d)|op(timum|en)|d(i(sabled|r(name)?)|ownload|e(coding|f(er|ault))|at(etime|a)|raggable)|usemap|p(ing|oster|la(ysinline|ceholder)|attern|reload)|enctype|value|kind|for(m(novalidate|target|enctype|action|method)?)?|w(idth|rap)|l(ist|o(op|w)|a(ng|bel))|a(s(ync)?|c(ce(sskey|pt(-charset)?)|tion)|uto(c(omplete|apitalize)|play|focus)|l(t|low(usermedia|paymentrequest|fullscreen))|bbr)|r(ows(pan)?|e(versed|quired|ferrerpolicy|l|adonly))|m(in(length)?|u(ted|ltiple)|e(thod|dia)|a(nifest|x(length)?)))(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"style(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.style.html","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"begin":"(?=[^/<=>\`\\\\s]|/(?!>))","end":"(?!\\\\G)","name":"meta.embedded.line.css","patterns":[{"captures":{"0":{"name":"source.css"}},"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.html"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.css","end":"(\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.css"}},"name":"string.quoted.double.html","patterns":[{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.css","end":"(')","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.css"}},"name":"string.quoted.single.html","patterns":[{"include":"#entities"}]}]},{"match":"=","name":"invalid.illegal.unexpected-equals-sign.html"}]}]},{"begin":"on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o((?:n|ff)line)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d((?:|meta)data)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur))(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.event-handler.$1.html","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"begin":"(?=[^/<=>\`\\\\s]|/(?!>))","end":"(?!\\\\G)","name":"meta.embedded.line.js","patterns":[{"captures":{"0":{"name":"source.js"},"1":{"patterns":[{"include":"source.js"}]}},"match":"(([^\\"'/<=>\`\\\\s]|/(?!>))+)","name":"string.unquoted.html"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.js","end":"(\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.js"}},"name":"string.quoted.double.html","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n\\"/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=\\")|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=\\")|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.js","end":"(')","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.js"}},"name":"string.quoted.single.html","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n'/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=')|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=')|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]}]},{"match":"=","name":"invalid.illegal.unexpected-equals-sign.html"}]}]},{"begin":"(data-[-a-z]+)(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.data-x.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"(align|bgcolor|border)(?![-:\\\\w])","beginCaptures":{"0":{"name":"invalid.deprecated.entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"attribute-interior":{"patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.html"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#entities"}]},{"match":"=","name":"invalid.illegal.unexpected-equals-sign.html"}]}]},"cdata":{"begin":"<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.html"}},"contentName":"string.other.inline-data.html","end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.cdata.html"},"comment":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.html"}},"end":"-->","name":"comment.block.html","patterns":[{"match":"\\\\G-?>","name":"invalid.illegal.characters-not-allowed-here.html"},{"match":"<!-(?:-(?!>)|(?=-->))","name":"invalid.illegal.characters-not-allowed-here.html"},{"match":"--!>","name":"invalid.illegal.characters-not-allowed-here.html"}]},"core-minus-invalid":{"patterns":[{"include":"#xml-processing"},{"include":"#comment"},{"include":"#doctype"},{"include":"#cdata"},{"include":"#tags-valid"},{"include":"#entities"}]},"doctype":{"begin":"<!(?=(?i:DOCTYPE\\\\s))","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.doctype.html","patterns":[{"match":"\\\\G(?i:DOCTYPE)","name":"entity.name.tag.html"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.html"},{"match":"[^>\\\\s]+","name":"entity.other.attribute-name.html"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"912":{"name":"punctuation.definition.entity.html"}},"match":"(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","name":"constant.character.entity.named.$2.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[0-9]+(;)","name":"constant.character.entity.numeric.decimal.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[Xx]\\\\h+(;)","name":"constant.character.entity.numeric.hexadecimal.html"},{"match":"&(?=[0-9A-Za-z]+;)","name":"invalid.illegal.ambiguous-ampersand.html"}]},"math":{"patterns":[{"begin":"(?i)(<)(math)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.structure.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]}],"repository":{"attribute":{"patterns":[{"begin":"(s(hift|ymmetric|cript(sizemultiplier|level|minsize)|t(ackalign|retchy)|ide|u([bp]scriptshift)|e(parator(s)?|lection)|rc)|h(eight|ref)|n(otation|umalign)|c(haralign|olumn(spa(n|cing)|width|lines|align)|lose|rossout)|i(n(dent(shift(first|last)?|target|align(first|last)?)|fixlinebreakstyle)|d)|o(pen|verflow)|d(i(splay(style)?|r)|e(nomalign|cimalpoint|pth))|position|e(dge|qual(columns|rows))|voffset|f(orm|ence|rame(spacing)?)|width|l(space|ine(thickness|leading|break(style|multchar)?)|o(ngdivstyle|cation)|ength|quote|argeop)|a(c(cent(under)?|tiontype)|l(t(text|img(-(height|valign|width))?)|ign(mentscope)?))|r(space|ow(spa(n|cing)|lines|align)|quote)|groupalign|x(link:href|mlns)|m(in(size|labelspacing)|ovablelimits|a(th(size|color|variant|background)|xsize))|bevelled)(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"tags":{"patterns":[{"include":"#comment"},{"include":"#cdata"},{"captures":{"0":{"name":"meta.tag.structure.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(annotation|annotation-xml|semantics|menclose|merror|mfenced|mfrac|mpadded|mphantom|mroot|mrow|msqrt|mstyle|mmultiscripts|mover|mprescripts|msub|msubsup|msup|munder|munderover|none|mlabeledtr|mtable|mtd|mtr|mlongdiv|mscarries|mscarry|msgroup|msline|msrow|mstack|maction)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.structure.math.$2.html"},{"begin":"(?i)(<)(annotation|annotation-xml|semantics|menclose|merror|mfenced|mfrac|mpadded|mphantom|mroot|mrow|msqrt|mstyle|mmultiscripts|mover|mprescripts|msub|msubsup|msup|munder|munderover|none|mlabeledtr|mtable|mtd|mtr|mlongdiv|mscarries|mscarry|msgroup|msline|msrow|mstack|maction)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.structure.math.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.math.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.inline.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(m(?:[inos]|space|text|aligngroup|alignmark))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.inline.math.$2.html"},{"begin":"(?i)(<)(m(?:[inos]|space|text|aligngroup|alignmark))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.inline.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.inline.math.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.inline.math.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.object.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(mglyph)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.object.math.$2.html"},{"begin":"(?i)(<)(mglyph)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.object.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.object.math.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.object.math.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.invalid.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(([:\\\\w]+))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.invalid.html"},{"begin":"(?i)(<)((\\\\w[^>\\\\s]*))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.invalid.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)((\\\\2))\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.other.invalid.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"name":"punctuation.definition.tag.end.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.other.invalid.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.invalid.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"include":"#tags-invalid"}]}}},"svg":{"patterns":[{"begin":"(?i)(<)(svg)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.structure.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]}],"repository":{"attribute":{"patterns":[{"begin":"(s(hape-rendering|ystemLanguage|cale|t(yle|itchTiles|op-(color|opacity)|dDeviation|em([hv])|artOffset|r(i(ng|kethrough-(thickness|position))|oke(-(opacity|dash(offset|array)|width|line(cap|join)|miterlimit))?))|urfaceScale|p(e(cular(Constant|Exponent)|ed)|acing|readMethod)|eed|lope)|h(oriz-(origin-x|adv-x)|eight|anging|ref(lang)?)|y([12]|ChannelSelector)?|n(umOctaves|ame)|c(y|o(ntentS((?:cript|tyle)Type)|lor(-(interpolation(-filters)?|profile|rendering))?)|ursor|l(ip(-(path|rule)|PathUnits)?|ass)|a(p-height|lcMode)|x)|t(ype|o|ext(-(decoration|anchor|rendering)|Length)|a(rget([XY])?|b(index|leValues))|ransform)|i(n(tercept|2)?|d(eographic)?|mage-rendering)|z(oomAndPan)?|o(p(erator|acity)|ver(flow|line-(thickness|position))|ffset|r(i(ent(ation)?|gin)|der))|d(y|i(splay|visor|ffuseConstant|rection)|ominant-baseline|ur|e(scent|celerate)|x)?|u(1|n(i(code(-(range|bidi))?|ts-per-em)|derline-(thickness|position))|2)|p(ing|oint(s(At([XYZ]))?|er-events)|a(nose-1|t(h(Length)?|tern(ContentUnits|Transform|Units))|int-order)|r(imitiveUnits|eserveA(spectRatio|lpha)))|e(n(d|able-background)|dgeMode|levation|x(ternalResourcesRequired|ponent))|v(i(sibility|ew(Box|Target))|-(hanging|ideographic|alphabetic|mathematical)|e(ctor-effect|r(sion|t-(origin-([xy])|adv-y)))|alues)|k([123]|e(y(Splines|Times|Points)|rn(ing|el(Matrix|UnitLength)))|4)?|f(y|il(ter(Res|Units)?|l(-(opacity|rule))?)|o(nt-(s(t(yle|retch)|ize(-adjust)?)|variant|family|weight)|rmat)|lood-(color|opacity)|r(om)?|x)|w(idth(s)?|ord-spacing|riting-mode)|l(i(ghting-color|mitingConeAngle)|ocal|e(ngthAdjust|tter-spacing)|ang)|a(scent|cc(umulate|ent-height)|ttribute(Name|Type)|zimuth|dditive|utoReverse|l(ignment-baseline|phabetic|lowReorder)|rabic-form|mplitude)|r(y|otate|e(s(tart|ult)|ndering-intent|peat(Count|Dur)|quired(Extensions|Features)|f([XY]|errerPolicy)|l)|adius|x)?|g([12]|lyph(Ref|-(name|orientation-(horizontal|vertical)))|radient(Transform|Units))|x([12]|ChannelSelector|-height|link:(show|href|t(ype|itle)|a(ctuate|rcrole)|role)|ml:(space|lang|base))?|m(in|ode|e(thod|dia)|a(sk((?:Content|)Units)?|thematical|rker(Height|-(start|end|mid)|Units|Width)|x))|b(y|ias|egin|ase(Profile|line-shift|Frequency)|box))(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"tags":{"patterns":[{"include":"#comment"},{"include":"#cdata"},{"captures":{"0":{"name":"meta.tag.metadata.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(color-profile|desc|metadata|script|style|title)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.metadata.svg.$2.html"},{"begin":"(?i)(<)(color-profile|desc|metadata|script|style|title)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.metadata.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.metadata.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.metadata.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.structure.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(animateMotion|clipPath|defs|feComponentTransfer|feDiffuseLighting|feMerge|feSpecularLighting|filter|g|hatch|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|pattern|radialGradient|switch|text|textPath)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.structure.svg.$2.html"},{"begin":"(?i)(<)(animateMotion|clipPath|defs|feComponentTransfer|feDiffuseLighting|feMerge|feSpecularLighting|filter|g|hatch|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|pattern|radialGradient|switch|text|textPath)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.structure.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.inline.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(a|animate|discard|feBlend|feColorMatrix|feComposite|feConvolveMatrix|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feMergeNode|feMorphology|feOffset|fePointLight|feSpotLight|feTile|feTurbulence|hatchPath|mpath|set|solidcolor|stop|tspan)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.inline.svg.$2.html"},{"begin":"(?i)(<)(a|animate|discard|feBlend|feColorMatrix|feComposite|feConvolveMatrix|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feMergeNode|feMorphology|feOffset|fePointLight|feSpotLight|feTile|feTurbulence|hatchPath|mpath|set|solidcolor|stop|tspan)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.inline.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.inline.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.inline.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.object.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(circle|ellipse|feImage|foreignObject|image|line|path|polygon|polyline|rect|symbol|use|view)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.object.svg.$2.html"},{"begin":"(?i)(<)(a|circle|ellipse|feImage|foreignObject|image|line|path|polygon|polyline|rect|symbol|use|view)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.object.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.object.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.object.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)((altGlyph|altGlyphDef|altGlyphItem|animateColor|animateTransform|cursor|font|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|glyph|glyphRef|hkern|missing-glyph|tref|vkern))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.svg.$2.html"},{"begin":"(?i)(<)((altGlyph|altGlyphDef|altGlyphItem|animateColor|animateTransform|cursor|font|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|glyph|glyphRef|hkern|missing-glyph|tref|vkern))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)((\\\\2))\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.other.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"name":"punctuation.definition.tag.end.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.other.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.invalid.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(([:\\\\w]+))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.invalid.html"},{"begin":"(?i)(<)((\\\\w[^>\\\\s]*))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.invalid.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)((\\\\2))\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.other.invalid.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"name":"punctuation.definition.tag.end.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.other.invalid.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.invalid.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"include":"#tags-invalid"}]}}},"tags-invalid":{"patterns":[{"begin":"(</?)((\\\\w[^>\\\\s]*))(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.html","patterns":[{"include":"#attribute"}]}]},"tags-valid":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))","beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"end":"(?!\\\\G)([\\\\t ]*$\\\\n?)?","endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}},"patterns":[{"begin":"(?i)(<)(style)(?=\\\\s|/?>)","beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(?i)((<)/)(style)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.metadata.style.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.css-ignored-vscode"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","captures":{"1":{"name":"punctuation.definition.tag.end.html"}},"end":"(>)","name":"meta.tag.metadata.style.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=</(?i:style))","name":"source.css","patterns":[{"include":"source.css"}]}]}]},{"begin":"(^[\\\\t ]+)?(?=<(?i:script)\\\\b(?!-))","beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"end":"(?!\\\\G)([\\\\t ]*$\\\\n?)?","endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}},"patterns":[{"begin":"(<)((?i:script))\\\\b","beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(/)((?i:script))(>)","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","end":"(?=/)","patterns":[{"begin":"(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.end.html"}},"end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.js-ignored-vscode"}},"patterns":[{"begin":"\\\\G","end":"(?=</(?i:script))","name":"source.js","patterns":[{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=<\/script)|\\\\n","name":"comment.line.double-slash.js"}]},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/|(?=<\/script)","name":"comment.block.js"},{"include":"source.js"}]}]},{"begin":"\\\\G","end":"(?i:(?=>|type(?=[=\\\\s])(?!\\\\s*=\\\\s*(''|\\"\\"|([\\"']?)(text/(javascript(1\\\\.[0-5])?|x-javascript|jscript|livescript|(x-)?ecmascript|babel)|application/((?:(x-)?jav|(x-)?ecm)ascript)|module)[\\"'>\\\\s]))))","name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i:(?=type\\\\s*=\\\\s*([\\"']?)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\"'>\\\\s]))","end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"text.html.basic"}},"patterns":[{"begin":"\\\\G","end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=</(?i:script))","name":"text.html.basic","patterns":[{"include":"text.html.basic"}]}]},{"begin":"(?=(?i:type))","end":"(<)(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"}},"patterns":[{"begin":"\\\\G","end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=</(?i:script))","name":"source.unknown"}]}]}]}]},{"begin":"(?i)(<)(base|link|meta)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(noscript|title)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(noscript|title)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(col|hr|input)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(address|article|aside|blockquote|body|button|caption|colgroup|datalist|dd|details|dialog|div|dl|dt|fieldset|figcaption|figure|footer|form|head|header|hgroup|html|h[1-6]|label|legend|li|main|map|menu|meter|nav|ol|optgroup|option|output|p|pre|progress|section|select|slot|summary|table|tbody|td|template|textarea|tfoot|th|thead|tr|ul)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(address|article|aside|blockquote|body|button|caption|colgroup|datalist|dd|details|dialog|div|dl|dt|fieldset|figcaption|figure|footer|form|head|header|hgroup|html|h[1-6]|label|legend|li|main|map|menu|meter|nav|ol|optgroup|option|output|p|pre|progress|section|select|slot|summary|table|tbody|td|template|textarea|tfoot|th|thead|tr|ul)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(area|br|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(a|abbr|b|bdi|bdo|cite|code|data|del|dfn|em|i|ins|kbd|mark|q|rp|rt|ruby|s|samp|small|span|strong|sub|sup|time|u|var)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(a|abbr|b|bdi|bdo|cite|code|data|del|dfn|em|i|ins|kbd|mark|q|rp|rt|ruby|s|samp|small|span|strong|sub|sup|time|u|var)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(embed|img|param|source|track)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(audio|canvas|iframe|object|picture|video)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(audio|canvas|iframe|object|picture|video)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((basefont|isindex))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((center|frameset|noembed|noframes))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((center|frameset|noembed|noframes))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((acronym|big|blink|font|strike|tt|xmp))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((acronym|big|blink|font|strike|tt|xmp))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((frame))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((applet))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((applet))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((dir|keygen|listing|menuitem|plaintext|spacer))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.no-longer-supported.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((dir|keygen|listing|menuitem|plaintext|spacer))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.no-longer-supported.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.end.html","patterns":[{"include":"#attribute"}]},{"include":"#math"},{"include":"#svg"},{"begin":"(<)([A-Za-z][.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*-[-.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.custom.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(</)([A-Za-z][.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*-[-.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.custom.end.html","patterns":[{"include":"#attribute"}]}]},"xml-processing":{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(\\\\?>)","name":"meta.tag.metadata.processing.xml.html","patterns":[{"include":"#attribute"}]}},"scopeName":"text.html.basic","embeddedLangs":["javascript","css"]}`)),ZAe=[...tP,...R7,VAe]});var ene={};fn(ene,{default:()=>KAe});var WAe,KAe,tne=tr(()=>{WAe=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"]}`)),KAe=[WAe]});var nne={};fn(nne,{default:()=>YAe});var XAe,YAe,rne=tr(()=>{XAe=Object.freeze(JSON.parse(`{"displayName":"Python","name":"python","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated-parameter":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"}]},"assignment-operator":{"match":"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)","name":"keyword.operator.assignment.python"},"backticks":{"begin":"\`","end":"\`|(?<!\\\\\\\\)(\\\\n)","name":"invalid.deprecated.backtick.python","patterns":[{"include":"#expression"}]},"builtin-callables":{"patterns":[{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#builtin-exceptions"},{"include":"#builtin-functions"},{"include":"#builtin-types"}]},"builtin-exceptions":{"match":"(?<!\\\\.)\\\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\\\b","name":"support.type.exception.python"},"builtin-functions":{"patterns":[{"match":"(?<!\\\\.)\\\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\\\b","name":"support.function.builtin.python"},{"match":"(?<!\\\\.)\\\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\\\b","name":"variable.legacy.builtin.python"}]},"builtin-possible-callables":{"patterns":[{"include":"#builtin-callables"},{"include":"#magic-names"}]},"builtin-types":{"match":"(?<!\\\\.)\\\\b(bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\\\b","name":"support.type.python"},"call-wrapper-inheritance":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#inheritance-name"},{"include":"#function-arguments"}]},"class-declaration":{"patterns":[{"begin":"\\\\s*(class)\\\\s+(?=[_[:alpha:]]\\\\w*\\\\s*([(:]))","beginCaptures":{"1":{"name":"storage.type.class.python"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.section.class.begin.python"}},"name":"meta.class.python","patterns":[{"include":"#class-name"},{"include":"#class-inheritance"}]}]},"class-inheritance":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.inheritance.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.inheritance.end.python"}},"name":"meta.class.inheritance.python","patterns":[{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.arguments.python"},{"match":",","name":"punctuation.separator.inheritance.python"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"match":"\\\\bmetaclass\\\\b","name":"support.type.metaclass.python"},{"include":"#illegal-names"},{"include":"#class-kwarg"},{"include":"#call-wrapper-inheritance"},{"include":"#expression-base"},{"include":"#member-access-class"},{"include":"#inheritance-identifier"}]},"class-kwarg":{"captures":{"1":{"name":"entity.other.inherited-class.python variable.parameter.class.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},"class-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.type.class.python"}]},"codetags":{"captures":{"1":{"name":"keyword.codetag.notation.python"}},"match":"\\\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\\\b"},"comments":{"patterns":[{"begin":"#\\\\s*(type:)\\\\s*+(?!$|#)","beginCaptures":{"0":{"name":"meta.typehint.comment.python"},"1":{"name":"comment.typehint.directive.notation.python"}},"contentName":"meta.typehint.comment.python","end":"$|(?=#)","name":"comment.line.number-sign.python","patterns":[{"match":"\\\\Gignore(?=\\\\s*(?:$|#))","name":"comment.typehint.ignore.notation.python"},{"match":"(?<!\\\\.)\\\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\\\b","name":"comment.typehint.type.notation.python"},{"match":"([]()*,.=\\\\[]|(->))","name":"comment.typehint.punctuation.notation.python"},{"match":"([_[:alpha:]]\\\\w*)","name":"comment.typehint.variable.notation.python"}]},{"include":"#comments-base"}]},"comments-base":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"$()","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-double-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\\"\\"\\"))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-single-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?='''))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"curly-braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.python"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.python"}},"patterns":[{"match":":","name":"punctuation.separator.dict.python"},{"include":"#expression"}]},"decorator":{"begin":"^\\\\s*((@))\\\\s*(?=[_[:alpha:]]\\\\w*)","beginCaptures":{"1":{"name":"entity.name.function.decorator.python"},"2":{"name":"punctuation.definition.decorator.python"}},"end":"(\\\\))(.*?)(?=\\\\s*(?:#|$))|(?=[\\\\n#])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"invalid.illegal.decorator.python"}},"name":"meta.function.decorator.python","patterns":[{"include":"#decorator-name"},{"include":"#function-arguments"}]},"decorator-name":{"patterns":[{"include":"#builtin-callables"},{"include":"#illegal-object-name"},{"captures":{"2":{"name":"punctuation.separator.period.python"}},"match":"([_[:alpha:]]\\\\w*)|(\\\\.)","name":"entity.name.function.decorator.python"},{"include":"#line-continuation"},{"captures":{"1":{"name":"invalid.illegal.decorator.python"}},"match":"\\\\s*([^#(.\\\\\\\\_[:alpha:]\\\\s].*?)(?=#|$)","name":"invalid.illegal.decorator.python"}]},"docstring":{"patterns":[{"begin":"('''|\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.multi.python","patterns":[{"include":"#docstring-prompt"},{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.raw.multi.python","patterns":[{"include":"#string-consume-escape"},{"include":"#docstring-prompt"},{"include":"#codetags"}]},{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.single.python","patterns":[{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])([\\"'])","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.raw.single.python","patterns":[{"include":"#string-consume-escape"},{"include":"#codetags"}]}]},"docstring-guts-unicode":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"docstring-prompt":{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"(?:^|\\\\G)\\\\s*((?:>>>|\\\\.\\\\.\\\\.)\\\\s)(?=\\\\s*\\\\S)"},"docstring-statement":{"begin":"^(?=\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","end":"((?<=\\\\1)|^)(?!\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","patterns":[{"include":"#docstring"}]},"double-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-one-regexp-character-set"},{"include":"#double-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-one-regexp-lookahead"},{"include":"#double-one-regexp-lookahead-negative"},{"include":"#double-one-regexp-lookbehind"},{"include":"#double-one-regexp-lookbehind-negative"},{"include":"#double-one-regexp-conditional"},{"include":"#double-one-regexp-parentheses-non-capturing"},{"include":"#double-one-regexp-parentheses"}]},"double-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-three-regexp-character-set"},{"include":"#double-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-three-regexp-lookahead"},{"include":"#double-three-regexp-lookahead-negative"},{"include":"#double-three-regexp-lookbehind"},{"include":"#double-three-regexp-lookbehind-negative"},{"include":"#double-three-regexp-conditional"},{"include":"#double-three-regexp-parentheses-non-capturing"},{"include":"#double-three-regexp-parentheses"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"ellipsis":{"match":"\\\\.\\\\.\\\\.","name":"constant.other.ellipsis.python"},"escape-sequence":{"match":"\\\\\\\\(x\\\\h{2}|[0-7]{1,3}|[\\"'\\\\\\\\abfnrtv])","name":"constant.character.escape.python"},"escape-sequence-unicode":{"patterns":[{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8}|N\\\\{[\\\\w\\\\s]+?})","name":"constant.character.escape.python"}]},"expression":{"patterns":[{"include":"#expression-base"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"expression-bare":{"patterns":[{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#literal"},{"include":"#regexp"},{"include":"#string"},{"include":"#lambda"},{"include":"#generator"},{"include":"#illegal-operator"},{"include":"#operator"},{"include":"#curly-braces"},{"include":"#item-access"},{"include":"#list"},{"include":"#odd-function-call"},{"include":"#round-braces"},{"include":"#function-call"},{"include":"#builtin-functions"},{"include":"#builtin-types"},{"include":"#builtin-exceptions"},{"include":"#magic-names"},{"include":"#special-names"},{"include":"#illegal-names"},{"include":"#special-variables"},{"include":"#ellipsis"},{"include":"#punctuation"},{"include":"#line-continuation"}]},"expression-base":{"patterns":[{"include":"#comments"},{"include":"#expression-bare"},{"include":"#line-continuation"}]},"f-expression":{"patterns":[{"include":"#expression-bare"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"fregexp-base-expression":{"patterns":[{"include":"#fregexp-quantifier"},{"include":"#fstring-formatting-braces"},{"match":"\\\\{.*?}"},{"include":"#regexp-base-common"}]},"fregexp-quantifier":{"match":"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}}","name":"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{"begin":"\\\\b([Ff])([BUbu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{"begin":"\\\\b([Ff])([BUbu])?(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-formatting":{"patterns":[{"include":"#fstring-formatting-braces"},{"include":"#fstring-formatting-singe-brace"}]},"fstring-formatting-braces":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"2":{"name":"invalid.illegal.brace.python"},"3":{"name":"constant.character.format.placeholder.other.python"}},"match":"(\\\\{)(\\\\s*?)(})"},{"match":"(\\\\{\\\\{|}})","name":"constant.character.escape.python"}]},"fstring-formatting-singe-brace":{"match":"(}(?!}))","name":"invalid.illegal.brace.python"},"fstring-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#fstring-formatting"}]},"fstring-illegal-multi-brace":{"patterns":[{"include":"#impossible"}]},"fstring-illegal-single-brace":{"begin":"(\\\\{)(?=[^\\\\n}]*$\\\\n?)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-multi-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-multi"},{"include":"#f-expression"}]},"fstring-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.multi.python"},"fstring-normf-quoted-multi-line":{"begin":"\\\\b([BUbu])([Ff])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-normf-quoted-single-line":{"begin":"\\\\b([BUbu])([Ff])(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#fstring-formatting"}]},"fstring-raw-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.raw.multi.python"},"fstring-raw-quoted-multi-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.multi.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-raw-multi-core"}]},"fstring-raw-quoted-single-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.single.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.single.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-raw-single-core"}]},"fstring-raw-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.raw.single.python"},"fstring-single-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.single.python"},"fstring-terminator-multi":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})","patterns":[{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"fstring-terminator-single":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})|(?=\\\\n)","patterns":[{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"function-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.function-call.arguments.python","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.python"},{"captures":{"1":{"name":"keyword.operator.unpacking.arguments.python"}},"match":"(?:(?<=[(,])|^)\\\\s*(\\\\*{1,2})"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function-call.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"include":"#expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"punctuation.definition.arguments.begin.python"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"}]},"function-call":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#special-variables"},{"include":"#function-name"},{"include":"#function-arguments"}]},"function-declaration":{"begin":"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def)\\\\s+(?=[_[:alpha:]]\\\\p{word}*\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.async.python"},"2":{"name":"storage.type.function.python"}},"end":"(:|(?=[\\\\n\\"#']))","endCaptures":{"1":{"name":"punctuation.section.function.begin.python"}},"name":"meta.function.python","patterns":[{"include":"#function-def-name"},{"include":"#parameters"},{"include":"#line-continuation"},{"include":"#return-annotation"}]},"function-def-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.function.python"}]},"function-name":{"patterns":[{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.function-call.generic.python"}]},"generator":{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.python"}},"end":"\\\\bin\\\\b","endCaptures":{"0":{"name":"keyword.control.flow.python"}},"patterns":[{"include":"#expression"}]},"illegal-anno":{"match":"->","name":"invalid.illegal.annotation.python"},"illegal-names":{"captures":{"1":{"name":"keyword.control.flow.python"},"2":{"name":"keyword.control.import.python"}},"match":"\\\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\\\b"},"illegal-object-name":{"match":"\\\\b(True|False|None)\\\\b","name":"keyword.illegal.name.python"},"illegal-operator":{"patterns":[{"match":"&&|\\\\|\\\\||--|\\\\+\\\\+","name":"invalid.illegal.operator.python"},{"match":"[$?]","name":"invalid.illegal.operator.python"},{"match":"!\\\\b","name":"invalid.illegal.operator.python"}]},"import":{"patterns":[{"begin":"\\\\b(?<!\\\\.)(from)\\\\b(?=.+import)","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$|(?=import)","patterns":[{"match":"\\\\.+","name":"punctuation.separator.period.python"},{"include":"#expression"}]},{"begin":"\\\\b(?<!\\\\.)(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$","patterns":[{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"include":"#expression"}]}]},"impossible":{"match":"$.^"},"inheritance-identifier":{"captures":{"1":{"name":"entity.other.inherited-class.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"},"inheritance-name":{"patterns":[{"include":"#lambda-incomplete"},{"include":"#builtin-possible-callables"},{"include":"#inheritance-identifier"}]},"item-access":{"patterns":[{"begin":"\\\\b(?=[_[:alpha:]]\\\\w*\\\\s*\\\\[)","end":"(])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.item-access.python","patterns":[{"include":"#item-name"},{"include":"#item-index"},{"include":"#expression"}]}]},"item-index":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.item-access.arguments.python","end":"(?=])","patterns":[{"match":":","name":"punctuation.separator.slice.python"},{"include":"#expression"}]},"item-name":{"patterns":[{"include":"#special-variables"},{"include":"#builtin-functions"},{"include":"#special-names"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.indexed-name.python"}]},"lambda":{"patterns":[{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"((?<=\\\\.)lambda|lambda(?=\\\\s*[.=]))"},{"captures":{"1":{"name":"storage.type.function.lambda.python"}},"match":"\\\\b(lambda)\\\\s*?(?=[\\\\n,]|$)"},{"begin":"\\\\b(lambda)\\\\b","beginCaptures":{"1":{"name":"storage.type.function.lambda.python"}},"contentName":"meta.function.lambda.parameters.python","end":"(:)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.section.function.lambda.begin.python"}},"name":"meta.lambda-function.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-nested-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=:|$))"},{"include":"#comments"},{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#lambda-parameter-with-default"},{"include":"#line-continuation"},{"include":"#illegal-operator"}]}]},"lambda-incomplete":{"match":"\\\\blambda(?=\\\\s*[),])","name":"storage.type.function.lambda.python"},"lambda-nested-incomplete":{"match":"\\\\blambda(?=\\\\s*[),:])","name":"storage.type.function.lambda.python"},"lambda-parameter-with-default":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"keyword.operator.python"}},"end":"(,)|(?=:|$)","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"line-continuation":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.continuation.line.python"},"2":{"name":"invalid.illegal.line.continuation.python"}},"match":"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)"},{"begin":"(\\\\\\\\)\\\\s*$\\\\n?","beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.python"}},"end":"(?=^\\\\s*$)|(?!(\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))|\\\\G()$)","patterns":[{"include":"#regexp"},{"include":"#string"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.begin.python"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.end.python"}},"patterns":[{"include":"#expression"}]},"literal":{"patterns":[{"match":"\\\\b(True|False|None|NotImplemented|Ellipsis)\\\\b","name":"constant.language.python"},{"include":"#number"}]},"loose-default":{"begin":"(=)","beginCaptures":{"1":{"name":"keyword.operator.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"magic-function-names":{"captures":{"1":{"name":"support.function.magic.python"}},"match":"\\\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|get??|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|len??|long|lshift|lt|missing|mod|mul|neg??|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\\\b"},"magic-names":{"patterns":[{"include":"#magic-function-names"},{"include":"#magic-variable-names"}]},"magic-variable-names":{"captures":{"1":{"name":"support.variable.magic.python"}},"match":"\\\\b(__(?:all|annotations|bases|builtins|class|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\\\b"},"member-access":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|(^|(?<=\\\\s))(?=[^\\\\\\\\\\\\w\\\\s])|$","name":"meta.member.access.python","patterns":[{"include":"#function-call"},{"include":"#member-access-base"},{"include":"#member-access-attribute"}]},"member-access-attribute":{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.attribute.python"},"member-access-base":{"patterns":[{"include":"#magic-names"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#special-names"},{"include":"#line-continuation"},{"include":"#item-access"}]},"member-access-class":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|$","name":"meta.member.access.python","patterns":[{"include":"#call-wrapper-inheritance"},{"include":"#member-access-base"},{"include":"#inheritance-identifier"}]},"number":{"name":"constant.numeric.python","patterns":[{"include":"#number-float"},{"include":"#number-dec"},{"include":"#number-hex"},{"include":"#number-oct"},{"include":"#number-bin"},{"include":"#number-long"},{"match":"\\\\b[0-9]+\\\\w+","name":"invalid.illegal.name.python"}]},"number-bin":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Bb])(_?[01])+\\\\b","name":"constant.numeric.bin.python"},"number-dec":{"captures":{"1":{"name":"storage.type.imaginary.number.python"},"2":{"name":"invalid.illegal.dec.python"}},"match":"(?<![.\\\\w])(?:[1-9](?:_?[0-9])*|0+|[0-9](?:_?[0-9])*([Jj])|0([0-9]+)(?![.Ee]))\\\\b","name":"constant.numeric.dec.python"},"number-float":{"captures":{"1":{"name":"storage.type.imaginary.number.python"}},"match":"(?<!\\\\w)(?:(?:\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.)(?:[Ee][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[Ee][-+]?[0-9](?:_?[0-9])*)([Jj])?\\\\b","name":"constant.numeric.float.python"},"number-hex":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Xx])(_?\\\\h)+\\\\b","name":"constant.numeric.hex.python"},"number-long":{"captures":{"2":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])([1-9][0-9]*|0)([Ll])\\\\b","name":"constant.numeric.bin.python"},"number-oct":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Oo])(_?[0-7])+\\\\b","name":"constant.numeric.oct.python"},"odd-function-call":{"begin":"(?<=[])])\\\\s*(?=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"patterns":[{"include":"#function-arguments"}]},"operator":{"captures":{"1":{"name":"keyword.operator.logical.python"},"2":{"name":"keyword.control.flow.python"},"3":{"name":"keyword.operator.bitwise.python"},"4":{"name":"keyword.operator.arithmetic.python"},"5":{"name":"keyword.operator.comparison.python"},"6":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b(?<!\\\\.)(?:(and|or|not|in|is)|(for|if|else|await|yield(?:\\\\s+from)?))(?!\\\\s*:)\\\\b|(<<|>>|[\\\\&^|~])|(\\\\*\\\\*|[-%*+]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"},"parameter-special":{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"variable.parameter.function.language.special.self.python"},"3":{"name":"variable.parameter.function.language.special.cls.python"},"4":{"name":"punctuation.separator.parameters.python"}},"match":"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))"},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#parameter-special"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comments"},{"include":"#loose-default"},{"include":"#annotated-parameter"}]},"punctuation":{"patterns":[{"match":":","name":"punctuation.separator.colon.python"},{"match":",","name":"punctuation.separator.element.python"}]},"regexp":{"patterns":[{"include":"#regexp-single-three-line"},{"include":"#regexp-double-three-line"},{"include":"#regexp-single-one-line"},{"include":"#regexp-double-one-line"}]},"regexp-backreference":{"captures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},"2":{"name":"entity.name.tag.named.backreference.regexp"},"3":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},"match":"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+\\\\p{alnum}+)?)(\\\\))","name":"meta.backreference.named.regexp"},"regexp-backreference-number":{"captures":{"1":{"name":"entity.name.tag.backreference.regexp"}},"match":"(\\\\\\\\[1-9]\\\\d?)","name":"meta.backreference.regexp"},"regexp-base-common":{"patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"[*+?]\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.disjunction.regexp"},{"include":"#regexp-escape-sequence"}]},"regexp-base-expression":{"patterns":[{"include":"#regexp-quantifier"},{"include":"#regexp-base-common"}]},"regexp-charecter-set-escapes":{"patterns":[{"match":"\\\\\\\\[\\\\\\\\abfnrtv]","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-special"},{"match":"\\\\\\\\([0-7]{1,3})","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-escape-catchall"}]},"regexp-double-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\")|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#double-one-regexp-expression"}]},"regexp-double-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#double-three-regexp-expression"}]},"regexp-escape-catchall":{"match":"\\\\\\\\(.|\\\\n)","name":"constant.character.escape.regexp"},"regexp-escape-character":{"match":"\\\\\\\\(x\\\\h{2}|0[0-7]{1,2}|[0-7]{3})","name":"constant.character.escape.regexp"},"regexp-escape-sequence":{"patterns":[{"include":"#regexp-escape-special"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-backreference-number"},{"include":"#regexp-escape-catchall"}]},"regexp-escape-special":{"match":"\\\\\\\\([ABDSWZbdsw])","name":"support.other.escape.special.regexp"},"regexp-escape-unicode":{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8})","name":"constant.character.unicode.regexp"},"regexp-flags":{"match":"\\\\(\\\\?[Laimsux]+\\\\)","name":"storage.modifier.flag.regexp"},"regexp-quantifier":{"match":"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}","name":"keyword.operator.quantifier.regexp"},"regexp-single-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(')|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#single-one-regexp-expression"}]},"regexp-single-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(''')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(''')","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#single-three-regexp-expression"}]},"return-annotation":{"begin":"(->)","beginCaptures":{"1":{"name":"punctuation.separator.annotation.result.python"}},"end":"(?=:)","patterns":[{"include":"#expression"}]},"round-braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.python"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.python"}},"patterns":[{"include":"#expression"}]},"semicolon":{"patterns":[{"match":";$","name":"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-one-regexp-character-set"},{"include":"#single-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-one-regexp-lookahead"},{"include":"#single-one-regexp-lookahead-negative"},{"include":"#single-one-regexp-lookbehind"},{"include":"#single-one-regexp-lookbehind-negative"},{"include":"#single-one-regexp-conditional"},{"include":"#single-one-regexp-parentheses-non-capturing"},{"include":"#single-one-regexp-parentheses"}]},"single-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='''))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-three-regexp-character-set"},{"include":"#single-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-three-regexp-lookahead"},{"include":"#single-three-regexp-lookahead-negative"},{"include":"#single-three-regexp-lookbehind"},{"include":"#single-three-regexp-lookbehind-negative"},{"include":"#single-three-regexp-conditional"},{"include":"#single-three-regexp-parentheses-non-capturing"},{"include":"#single-three-regexp-parentheses"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"special-names":{"match":"\\\\b(_*\\\\p{upper}[_\\\\d]*\\\\p{upper})[[:upper:]\\\\d]*(_\\\\w*)?\\\\b","name":"constant.other.caps.python"},"special-variables":{"captures":{"1":{"name":"variable.language.special.self.python"},"2":{"name":"variable.language.special.cls.python"}},"match":"\\\\b(?<!\\\\.)(?:(self)|(cls))\\\\b"},"statement":{"patterns":[{"include":"#import"},{"include":"#class-declaration"},{"include":"#function-declaration"},{"include":"#generator"},{"include":"#statement-keyword"},{"include":"#assignment-operator"},{"include":"#decorator"},{"include":"#docstring-statement"},{"include":"#semicolon"}]},"statement-keyword":{"patterns":[{"match":"\\\\b((async\\\\s+)?\\\\s*def)\\\\b","name":"storage.type.function.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b(?=.*[:\\\\\\\\])","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"match":"\\\\b(?<!\\\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\\\b","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)(global|nonlocal)\\\\b","name":"storage.modifier.declaration.python"},{"match":"\\\\b(?<!\\\\.)(class)\\\\b","name":"storage.type.class.python"},{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"^\\\\s*(case|match)(?=\\\\s*([-\\"#'(+:\\\\[{\\\\w\\\\d]|$))\\\\b"}]},"string":{"patterns":[{"include":"#string-quoted-multi-line"},{"include":"#string-quoted-single-line"},{"include":"#string-bin-quoted-multi-line"},{"include":"#string-bin-quoted-single-line"},{"include":"#string-raw-quoted-multi-line"},{"include":"#string-raw-quoted-single-line"},{"include":"#string-raw-bin-quoted-multi-line"},{"include":"#string-raw-bin-quoted-single-line"},{"include":"#fstring-fnorm-quoted-multi-line"},{"include":"#fstring-fnorm-quoted-single-line"},{"include":"#fstring-normf-quoted-multi-line"},{"include":"#fstring-normf-quoted-single-line"},{"include":"#fstring-raw-quoted-multi-line"},{"include":"#fstring-raw-quoted-single-line"}]},"string-bin-quoted-multi-line":{"begin":"\\\\b([Bb])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.multi.python","patterns":[{"include":"#string-entity"}]},"string-bin-quoted-single-line":{"begin":"\\\\b([Bb])(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.single.python","patterns":[{"include":"#string-entity"}]},"string-brace-formatting":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\{|}}|\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.python"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:)[^\\\\n\\"'{}]*(?:\\\\{[^\\\\n\\"'}]*?}[^\\\\n\\"'{}]*)*})","name":"meta.format.brace.python"}]},"string-consume-escape":{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\]"},"string-entity":{"patterns":[{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#string-formatting"}]},"string-formatting":{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.python"},"string-line-continuation":{"match":"\\\\\\\\$","name":"constant.language.python"},"string-multi-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-quoted-multi-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-unicode"},{"include":"#string-multi-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-quoted-single-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-unicode"},{"include":"#string-single-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-raw-bin-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-raw-bin-quoted-multi-line":{"begin":"\\\\b(R[Bb]|[Bb]R)('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.multi.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-bin-quoted-single-line":{"begin":"\\\\b(R[Bb]|[Bb]R)(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.single.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"},{"include":"#string-brace-formatting"}]},"string-raw-quoted-multi-line":{"begin":"\\\\b(([Uu]R)|(R))('''|\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-raw"},{"include":"#string-multi-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-raw-quoted-single-line":{"begin":"\\\\b(([Uu]R)|(R))(([\\"']))","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-raw"},{"include":"#string-single-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-single-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"}]},"string-single-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-single-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-single-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-unicode-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"},{"include":"#string-brace-formatting"}]}},"scopeName":"source.python","aliases":["py"]}`)),YAe=[XAe]});var ine={};fn(ine,{default:()=>JAe});var QAe,JAe,one=tr(()=>{QAe=Object.freeze(JSON.parse(`{"displayName":"Rust","name":"rust","patterns":[{"begin":"(<)(\\\\[)","beginCaptures":{"1":{"name":"punctuation.brackets.angle.rust"},"2":{"name":"punctuation.brackets.square.rust"}},"end":">","endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}},"patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#gtypes"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"}]},{"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"3":{"name":"keyword.other.crate.rust"},"4":{"name":"entity.name.type.metavariable.rust"},"6":{"name":"keyword.operator.key-value.rust"},"7":{"name":"variable.other.metavariable.specifier.rust"}},"match":"(\\\\$)((crate)|([A-Z]\\\\w*))(\\\\s*(:)\\\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\\\b)?","name":"meta.macro.metavariable.type.rust","patterns":[{"include":"#keywords"}]},{"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"2":{"name":"variable.other.metavariable.name.rust"},"4":{"name":"keyword.operator.key-value.rust"},"5":{"name":"variable.other.metavariable.specifier.rust"}},"match":"(\\\\$)([a-z]\\\\w*)(\\\\s*(:)\\\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\\\b)?","name":"meta.macro.metavariable.rust","patterns":[{"include":"#keywords"}]},{"captures":{"1":{"name":"entity.name.function.macro.rules.rust"},"3":{"name":"entity.name.function.macro.rust"},"4":{"name":"entity.name.type.macro.rust"},"5":{"name":"punctuation.brackets.curly.rust"}},"match":"\\\\b(macro_rules!)\\\\s+(([0-9_a-z]+)|([A-Z][0-9_a-z]*))\\\\s+(\\\\{)","name":"meta.macro.rules.rust"},{"captures":{"1":{"name":"storage.type.rust"},"2":{"name":"entity.name.module.rust"}},"match":"(mod)\\\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][0-9A-Z_a-z]*)"},{"begin":"\\\\b(extern)\\\\s+(crate)","beginCaptures":{"1":{"name":"storage.type.rust"},"2":{"name":"keyword.other.crate.rust"}},"end":";","endCaptures":{"0":{"name":"punctuation.semi.rust"}},"name":"meta.import.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#punctuation"}]},{"begin":"\\\\b(use)\\\\s","beginCaptures":{"1":{"name":"keyword.other.rust"}},"end":";","endCaptures":{"0":{"name":"punctuation.semi.rust"}},"name":"meta.use.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#types"},{"include":"#lvariables"}]},{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#types"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#variables"}],"repository":{"attributes":{"begin":"(#)(!?)(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.attribute.rust"},"3":{"name":"punctuation.brackets.attribute.rust"}},"end":"]","endCaptures":{"0":{"name":"punctuation.brackets.attribute.rust"}},"name":"meta.attribute.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#gtypes"},{"include":"#types"}]},"block-comments":{"patterns":[{"match":"/\\\\*\\\\*/","name":"comment.block.rust"},{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.documentation.rust","patterns":[{"include":"#block-comments"}]},{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.rust","patterns":[{"include":"#block-comments"}]}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.rust"}},"match":"(///).*$","name":"comment.line.documentation.rust"},{"captures":{"1":{"name":"punctuation.definition.comment.rust"}},"match":"(//).*$","name":"comment.line.double-slash.rust"}]},"constants":{"patterns":[{"match":"\\\\b[A-Z]{2}[0-9A-Z_]*\\\\b","name":"constant.other.caps.rust"},{"captures":{"1":{"name":"storage.type.rust"},"2":{"name":"constant.other.caps.rust"}},"match":"\\\\b(const)\\\\s+([A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"punctuation.separator.dot.decimal.rust"},"2":{"name":"keyword.operator.exponent.rust"},"3":{"name":"keyword.operator.exponent.sign.rust"},"4":{"name":"constant.numeric.decimal.exponent.mantissa.rust"},"5":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b\\\\d[_\\\\d]*(\\\\.?)[_\\\\d]*(?:([Ee])([-+]?)([_\\\\d]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.decimal.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0x[A-F_a-f\\\\d]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.hex.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.oct.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.bin.rust"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.bool.rust"}]},"escapes":{"captures":{"1":{"name":"constant.character.escape.backslash.rust"},"2":{"name":"constant.character.escape.bit.rust"},"3":{"name":"constant.character.escape.unicode.rust"},"4":{"name":"constant.character.escape.unicode.punctuation.rust"},"5":{"name":"constant.character.escape.unicode.punctuation.rust"}},"match":"(\\\\\\\\)(?:(x[0-7][A-Fa-f\\\\d])|(u(\\\\{)[A-Fa-f\\\\d]{4,6}(}))|.)","name":"constant.character.escape.rust"},"functions":{"patterns":[{"captures":{"1":{"name":"keyword.other.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"match":"\\\\b(pub)(\\\\()"},{"begin":"\\\\b(fn)\\\\s+((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)((\\\\()|(<))","beginCaptures":{"1":{"name":"keyword.other.fn.rust"},"2":{"name":"entity.name.function.rust"},"4":{"name":"punctuation.brackets.round.rust"},"5":{"name":"punctuation.brackets.angle.rust"}},"end":"(\\\\{)|(;)","endCaptures":{"1":{"name":"punctuation.brackets.curly.rust"},"2":{"name":"punctuation.semi.rust"}},"name":"meta.function.definition.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]},{"begin":"((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}},"name":"meta.function.call.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]},{"begin":"((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)(?=::<.*>\\\\()","beginCaptures":{"1":{"name":"entity.name.function.rust"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}},"name":"meta.function.call.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]}]},"gtypes":{"patterns":[{"match":"\\\\b(Some|None)\\\\b","name":"entity.name.type.option.rust"},{"match":"\\\\b(Ok|Err)\\\\b","name":"entity.name.type.result.rust"}]},"interpolations":{"captures":{"1":{"name":"punctuation.definition.interpolation.rust"},"2":{"name":"punctuation.definition.interpolation.rust"}},"match":"(\\\\{)[^\\"{}]*(})","name":"meta.interpolation.rust"},"keywords":{"patterns":[{"match":"\\\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\\\b","name":"keyword.control.rust"},{"match":"\\\\b(extern|let|macro|mod)\\\\b","name":"keyword.other.rust storage.type.rust"},{"match":"\\\\b(const)\\\\b","name":"storage.modifier.rust"},{"match":"\\\\b(type)\\\\b","name":"keyword.declaration.type.rust storage.type.rust"},{"match":"\\\\b(enum)\\\\b","name":"keyword.declaration.enum.rust storage.type.rust"},{"match":"\\\\b(trait)\\\\b","name":"keyword.declaration.trait.rust storage.type.rust"},{"match":"\\\\b(struct)\\\\b","name":"keyword.declaration.struct.rust storage.type.rust"},{"match":"\\\\b(abstract|static)\\\\b","name":"storage.modifier.rust"},{"match":"\\\\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\\\b","name":"keyword.other.rust"},{"match":"\\\\bfn\\\\b","name":"keyword.other.fn.rust"},{"match":"\\\\bcrate\\\\b","name":"keyword.other.crate.rust"},{"match":"\\\\bmut\\\\b","name":"storage.modifier.mut.rust"},{"match":"([\\\\^|]|\\\\|\\\\||&&|<<|>>|!)(?!=)","name":"keyword.operator.logical.rust"},{"match":"&(?![\\\\&=])","name":"keyword.operator.borrow.and.rust"},{"match":"((?:[-%\\\\&*+/^|]|<<|>>)=)","name":"keyword.operator.assignment.rust"},{"match":"(?<![<>])=(?![=>])","name":"keyword.operator.assignment.equal.rust"},{"match":"(=(=)?(?!>)|!=|<=|(?<!=)>=)","name":"keyword.operator.comparison.rust"},{"match":"(([%+]|(\\\\*(?!\\\\w)))(?!=))|(-(?!>))|(/(?!/))","name":"keyword.operator.math.rust"},{"captures":{"1":{"name":"punctuation.brackets.round.rust"},"2":{"name":"punctuation.brackets.square.rust"},"3":{"name":"punctuation.brackets.curly.rust"},"4":{"name":"keyword.operator.comparison.rust"},"5":{"name":"punctuation.brackets.round.rust"},"6":{"name":"punctuation.brackets.square.rust"},"7":{"name":"punctuation.brackets.curly.rust"}},"match":"(?:\\\\b|(?:(\\\\))|(])|(})))[\\\\t ]+([<>])[\\\\t ]+(?:\\\\b|(?:(\\\\()|(\\\\[)|(\\\\{)))"},{"match":"::","name":"keyword.operator.namespace.rust"},{"captures":{"1":{"name":"keyword.operator.dereference.rust"}},"match":"(\\\\*)(?=\\\\w+)"},{"match":"@","name":"keyword.operator.subpattern.rust"},{"match":"\\\\.(?!\\\\.)","name":"keyword.operator.access.dot.rust"},{"match":"\\\\.{2}([.=])?","name":"keyword.operator.range.rust"},{"match":":(?!:)","name":"keyword.operator.key-value.rust"},{"match":"->|<-","name":"keyword.operator.arrow.skinny.rust"},{"match":"=>","name":"keyword.operator.arrow.fat.rust"},{"match":"\\\\$","name":"keyword.operator.macro.dollar.rust"},{"match":"\\\\?","name":"keyword.operator.question.rust"}]},"lifetimes":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.lifetime.rust"},"2":{"name":"entity.name.type.lifetime.rust"}},"match":"(')([A-Z_a-z][0-9A-Z_a-z]*)(?!')\\\\b"},{"captures":{"1":{"name":"keyword.operator.borrow.rust"},"2":{"name":"punctuation.definition.lifetime.rust"},"3":{"name":"entity.name.type.lifetime.rust"}},"match":"(&)(')([A-Z_a-z][0-9A-Z_a-z]*)(?!')\\\\b"}]},"lvariables":{"patterns":[{"match":"\\\\b[Ss]elf\\\\b","name":"variable.language.self.rust"},{"match":"\\\\bsuper\\\\b","name":"variable.language.super.rust"}]},"macros":{"patterns":[{"captures":{"2":{"name":"entity.name.function.macro.rust"},"3":{"name":"entity.name.type.macro.rust"}},"match":"(([_a-z][0-9A-Z_a-z]*!)|([A-Z_][0-9A-Z_a-z]*!))","name":"meta.macro.rust"}]},"namespaces":{"patterns":[{"captures":{"1":{"name":"entity.name.namespace.rust"},"2":{"name":"keyword.operator.namespace.rust"}},"match":"(?<![0-9A-Z_a-z])([0-9A-Z_a-z]+)((?<!s(?:uper|elf))::)"}]},"punctuation":{"patterns":[{"match":",","name":"punctuation.comma.rust"},{"match":"[{}]","name":"punctuation.brackets.curly.rust"},{"match":"[()]","name":"punctuation.brackets.round.rust"},{"match":";","name":"punctuation.semi.rust"},{"match":"[]\\\\[]","name":"punctuation.brackets.square.rust"},{"match":"(?<!=)[<>]","name":"punctuation.brackets.angle.rust"}]},"strings":{"patterns":[{"begin":"(b?)(\\")","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.rust"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.rust"}},"name":"string.quoted.double.rust","patterns":[{"include":"#escapes"},{"include":"#interpolations"}]},{"begin":"(b?r)(#*)(\\")","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.raw.rust"},"3":{"name":"punctuation.definition.string.rust"}},"end":"(\\")(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.rust"},"2":{"name":"punctuation.definition.string.raw.rust"}},"name":"string.quoted.double.rust"},{"begin":"(b)?(')","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.char.rust"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.char.rust"}},"name":"string.quoted.single.char.rust","patterns":[{"include":"#escapes"}]}]},"types":{"patterns":[{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"(?<![A-Za-z])(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)\\\\b"},{"begin":"\\\\b(_?[A-Z][0-9A-Z_a-z]*)(<)","beginCaptures":{"1":{"name":"entity.name.type.rust"},"2":{"name":"punctuation.brackets.angle.rust"}},"end":">","endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}},"patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"},{"include":"#variables"}]},{"match":"\\\\b(bool|char|str)\\\\b","name":"entity.name.type.primitive.rust"},{"captures":{"1":{"name":"keyword.declaration.trait.rust storage.type.rust"},"2":{"name":"entity.name.type.trait.rust"}},"match":"\\\\b(trait)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.struct.rust storage.type.rust"},"2":{"name":"entity.name.type.struct.rust"}},"match":"\\\\b(struct)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.enum.rust storage.type.rust"},"2":{"name":"entity.name.type.enum.rust"}},"match":"\\\\b(enum)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.type.rust storage.type.rust"},"2":{"name":"entity.name.type.declaration.rust"}},"match":"\\\\b(type)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"match":"\\\\b_?[A-Z][0-9A-Z_a-z]*\\\\b(?!!)","name":"entity.name.type.rust"}]},"variables":{"patterns":[{"match":"\\\\b(?<!(?<!\\\\.)\\\\.)(?:r#(?!(crate|[Ss]elf|super)))?[0-9_a-z]+\\\\b","name":"variable.other.rust"}]}},"scopeName":"source.rust","aliases":["rs"]}`)),JAe=[QAe]});var ane={};fn(ane,{default:()=>t$e});var e$e,t$e,sne=tr(()=>{e$e=Object.freeze(JSON.parse(`{"displayName":"Go","name":"go","patterns":[{"include":"#statements"}],"repository":{"after_control_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"variable.other.go"}]}},"match":"(?<=\\\\brange\\\\b|;|\\\\bif\\\\b|\\\\bfor\\\\b|[<>]|<=|>=|==|!=|\\\\w[-%*+/]|\\\\w[-%*+/]=|\\\\|\\\\||&&)\\\\s*((?![]\\\\[]+)[-\\\\]!%*+./:<=>\\\\[_[:alnum:]]+)\\\\s*(?=\\\\{)"},"brackets":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"$self"}]}]},"built_in_functions":{"patterns":[{"match":"\\\\b(append|cap|close|complex|copy|delete|imag|len|panic|print|println|real|recover|min|max|clear)\\\\b(?=\\\\()","name":"entity.name.function.support.builtin.go"},{"begin":"\\\\b(new)\\\\b(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.support.builtin.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#functions"},{"include":"#struct_variables_types"},{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#generic_types"},{"match":"\\\\w+","name":"entity.name.type.go"},{"include":"$self"}]},{"begin":"\\\\b(make)\\\\b(\\\\()((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?[]*\\\\[]+{0,1}(?:(?!\\\\bmap\\\\b)[.\\\\w]+)?(\\\\[(?:\\\\S+(?:,\\\\s*\\\\S+)*)?])?,?)?","beginCaptures":{"1":{"name":"entity.name.function.support.builtin.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"},"3":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"$self"}]}]},"comments":{"patterns":[{"begin":"(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"end":"(\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"name":"comment.block.go"},{"begin":"(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"end":"\\\\n|$","name":"comment.line.double-slash.go"}]},"const_assignment":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.constant.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\bconst\\\\b)\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"begin":"(?<=\\\\bconst\\\\b)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.constant.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"include":"$self"}]}]},"delimiters":{"patterns":[{"match":",","name":"punctuation.other.comma.go"},{"match":"\\\\.(?!\\\\.\\\\.)","name":"punctuation.other.period.go"},{"match":":(?!=)","name":"punctuation.other.colon.go"}]},"double_parentheses_types":{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<!\\\\w)(\\\\([]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?\\\\))(?=\\\\()"},"function_declaration":{"begin":"^\\\\b(func)\\\\b\\\\s*(\\\\([^)]+\\\\)\\\\s*)?(?:(\\\\w+)(?=[(\\\\[]))?","beginCaptures":{"1":{"name":"keyword.function.go"},"2":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"captures":{"1":{"name":"variable.parameter.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(\\\\w+\\\\s+)?([*.\\\\w]+(?:\\\\[(?:[*.\\\\w]+(?:,\\\\s+)?)+{0,1}])?)"},{"include":"$self"}]}]},"3":{"patterns":[{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.function.go"}]}},"end":"(?<=\\\\))\\\\s*((?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b)[-\\\\]*.\\\\[\\\\w]+)?\\\\s*(?=\\\\{)","endCaptures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\))\\\\s*((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[-\\\\]*.<>\\\\[\\\\w]+\\\\s*(?:/[*/].*)?)$"},{"include":"$self"}]},"function_param_types":{"patterns":[{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#type-declarations-without-brackets"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+(?=(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b\\\\s*\\\\{)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"(?:(?<=\\\\()|^\\\\s*)((?:\\\\b\\\\w+,\\\\s*)+(?:/[*/].*)?)$"},{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.parameter.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?:[]*.\\\\[\\\\w]+{0,1}(?:\\\\bfunc\\\\b\\\\([^)]+{0,1}\\\\)(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*)+(?:[]*.\\\\[\\\\w]+|\\\\([^)]+{0,1}\\\\))?|(?:[]*\\\\[]+{0,1}[*.\\\\w]+(?:\\\\[[^]]+])?[*.\\\\w]+{0,1})+))"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"([.\\\\w]+)"},{"include":"$self"}]},"functions":{"begin":"\\\\b(func)\\\\b(?=\\\\()","beginCaptures":{"1":{"name":"keyword.function.go"}},"end":"(?<=\\\\))(\\\\s*(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+)?(\\\\s*(?:[]*\\\\[]+{0,1}[*.\\\\w]+)?(?:\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+]|\\\\([^)]+{0,1}\\\\))?[*.\\\\w]+{0,1}\\\\s*(?=\\\\{)|\\\\s*(?:[]*\\\\[]+{0,1}(?!\\\\bfunc\\\\b)[*.\\\\w]+(?:\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+])?[*.\\\\w]+{0,1}|\\\\([^)]+{0,1}\\\\)))?","endCaptures":{"1":{"patterns":[{"include":"#type-declarations"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"include":"#parameter-variable-types"}]},"functions_inline":{"captures":{"1":{"name":"keyword.function.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"},{"include":"$self"}]},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b(func)\\\\b(\\\\([^/]*?\\\\)\\\\s+\\\\([^/]*?\\\\))\\\\s+(?=\\\\{)"},"generic_param_types":{"patterns":[{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#type-declarations-without-brackets"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+(?=(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b\\\\s*\\\\{)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"(?:(?<=\\\\()|^\\\\s*)((?:\\\\b\\\\w+,\\\\s*)+(?:/[*/].*)?)$"},{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.parameter.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"3":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?:[]*.\\\\[\\\\w]+{0,1}(?:\\\\bfunc\\\\b\\\\([^)]+{0,1}\\\\)(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*)+(?:[*.\\\\w]+|\\\\([^)]+{0,1}\\\\))?|(?:(?:[*.~\\\\w]+|\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+])[*.\\\\w]+{0,1})+))"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b([.\\\\w]+)"},{"include":"$self"}]},"generic_types":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"patterns":[{"include":"#parameter-variable-types"}]}},"match":"([*.\\\\w]+)(\\\\[[^]]+{0,1}])"},"group-functions":{"patterns":[{"include":"#function_declaration"},{"include":"#functions_inline"},{"include":"#functions"},{"include":"#built_in_functions"},{"include":"#support_functions"}]},"group-types":{"patterns":[{"include":"#other_struct_interface_expressions"},{"include":"#type_assertion_inline"},{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#single_type"},{"include":"#multi_types"},{"include":"#struct_interface_declaration"},{"include":"#double_parentheses_types"},{"include":"#switch_types"},{"include":"#type-declarations"}]},"group-variables":{"patterns":[{"include":"#const_assignment"},{"include":"#var_assignment"},{"include":"#variable_assignment"},{"include":"#label_loop_variables"},{"include":"#slice_index_variables"},{"include":"#property_variables"},{"include":"#switch_variables"},{"include":"#other_variables"}]},"hover":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"match":"\\\\binvalid\\\\b\\\\s+\\\\btype\\\\b","name":"invalid.field.go"},{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=^\\\\bfield\\\\b)\\\\s+([*.\\\\w]+)\\\\s+([\\\\s\\\\S]+)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=^\\\\breturns\\\\b)\\\\s+([\\\\s\\\\S]+)"}]},"import":{"patterns":[{"begin":"\\\\b(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.import.go"}},"end":"(?!\\\\G)","patterns":[{"include":"#imports"}]}]},"imports":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.import.go"}]},"2":{"name":"string.quoted.double.go"},"3":{"name":"punctuation.definition.string.begin.go"},"4":{"name":"entity.name.import.go"},"5":{"name":"punctuation.definition.string.end.go"}},"match":"(\\\\s*[.\\\\w]+)?\\\\s*((\\")([^\\"]*)(\\"))"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.imports.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.imports.end.bracket.round.go"}},"patterns":[{"include":"#comments"},{"include":"#imports"}]},{"include":"$self"}]},"interface_variables_types":{"begin":"\\\\b(interface)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.interface.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#interface_variables_types_field"},{"include":"$self"}]},"interface_variables_types_field":{"patterns":[{"include":"#support_functions"},{"include":"#type-declarations-without-brackets"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"([.\\\\w]+)"}]},"keywords":{"patterns":[{"match":"\\\\b(break|case|continue|default|defer|else|fallthrough|for|go|goto|if|range|return|select|switch)\\\\b","name":"keyword.control.go"},{"match":"\\\\bchan\\\\b","name":"keyword.channel.go"},{"match":"\\\\bconst\\\\b","name":"keyword.const.go"},{"match":"\\\\bvar\\\\b","name":"keyword.var.go"},{"match":"\\\\bfunc\\\\b","name":"keyword.function.go"},{"match":"\\\\binterface\\\\b","name":"keyword.interface.go"},{"match":"\\\\bmap\\\\b","name":"keyword.map.go"},{"match":"\\\\bstruct\\\\b","name":"keyword.struct.go"},{"match":"\\\\bimport\\\\b","name":"keyword.control.import.go"},{"match":"\\\\btype\\\\b","name":"keyword.type.go"}]},"label_loop_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.label.go"}]}},"match":"^(\\\\s*\\\\w+:\\\\s*|\\\\s*\\\\b(?:break|goto|continue)\\\\b\\\\s+\\\\w+(?:\\\\s*/[*/]\\\\s*.*)?)$"},"language_constants":{"captures":{"1":{"name":"constant.language.boolean.go"},"2":{"name":"constant.language.null.go"},"3":{"name":"constant.language.iota.go"}},"match":"\\\\b(?:(true|false)|(nil)|(iota))\\\\b"},"map_types":{"begin":"\\\\b(map)\\\\b(\\\\[)","beginCaptures":{"1":{"name":"keyword.map.go"},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"(])((?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:func|struct|map)\\\\b)[]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?)?","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.square.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"include":"#functions"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"multi_types":{"begin":"\\\\b(type)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.type.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"numeric_literals":{"captures":{"0":{"patterns":[{"begin":"(?=.)","end":"\\\\n|$","patterns":[{"captures":{"1":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"2":{"name":"punctuation.separator.constant.numeric.go"},"3":{"name":"constant.numeric.decimal.point.go"},"4":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"5":{"name":"punctuation.separator.constant.numeric.go"},"6":{"name":"keyword.other.unit.exponent.decimal.go"},"7":{"name":"keyword.operator.plus.exponent.decimal.go"},"8":{"name":"keyword.operator.minus.exponent.decimal.go"},"9":{"name":"constant.numeric.exponent.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"10":{"name":"keyword.other.unit.imaginary.go"},"11":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"12":{"name":"punctuation.separator.constant.numeric.go"},"13":{"name":"keyword.other.unit.exponent.decimal.go"},"14":{"name":"keyword.operator.plus.exponent.decimal.go"},"15":{"name":"keyword.operator.minus.exponent.decimal.go"},"16":{"name":"constant.numeric.exponent.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"17":{"name":"keyword.other.unit.imaginary.go"},"18":{"name":"constant.numeric.decimal.point.go"},"19":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"20":{"name":"punctuation.separator.constant.numeric.go"},"21":{"name":"keyword.other.unit.exponent.decimal.go"},"22":{"name":"keyword.operator.plus.exponent.decimal.go"},"23":{"name":"keyword.operator.minus.exponent.decimal.go"},"24":{"name":"constant.numeric.exponent.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"25":{"name":"keyword.other.unit.imaginary.go"},"26":{"name":"keyword.other.unit.hexadecimal.go"},"27":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"28":{"name":"punctuation.separator.constant.numeric.go"},"29":{"name":"constant.numeric.hexadecimal.go"},"30":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"31":{"name":"punctuation.separator.constant.numeric.go"},"32":{"name":"keyword.other.unit.exponent.hexadecimal.go"},"33":{"name":"keyword.operator.plus.exponent.hexadecimal.go"},"34":{"name":"keyword.operator.minus.exponent.hexadecimal.go"},"35":{"name":"constant.numeric.exponent.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"36":{"name":"keyword.other.unit.imaginary.go"},"37":{"name":"keyword.other.unit.hexadecimal.go"},"38":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"39":{"name":"punctuation.separator.constant.numeric.go"},"40":{"name":"keyword.other.unit.exponent.hexadecimal.go"},"41":{"name":"keyword.operator.plus.exponent.hexadecimal.go"},"42":{"name":"keyword.operator.minus.exponent.hexadecimal.go"},"43":{"name":"constant.numeric.exponent.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"44":{"name":"keyword.other.unit.imaginary.go"},"45":{"name":"keyword.other.unit.hexadecimal.go"},"46":{"name":"constant.numeric.hexadecimal.go"},"47":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"48":{"name":"punctuation.separator.constant.numeric.go"},"49":{"name":"keyword.other.unit.exponent.hexadecimal.go"},"50":{"name":"keyword.operator.plus.exponent.hexadecimal.go"},"51":{"name":"keyword.operator.minus.exponent.hexadecimal.go"},"52":{"name":"constant.numeric.exponent.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"53":{"name":"keyword.other.unit.imaginary.go"}},"match":"\\\\G(?:(?:(?:(?:(?:(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)?(?:(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*))?(i(?!\\\\w))?(?:\\\\n|$)|(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(?:(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*))?(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)?(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))"},{"captures":{"1":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"2":{"name":"punctuation.separator.constant.numeric.go"},"3":{"name":"keyword.other.unit.imaginary.go"},"4":{"name":"keyword.other.unit.binary.go"},"5":{"name":"constant.numeric.binary.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"6":{"name":"punctuation.separator.constant.numeric.go"},"7":{"name":"keyword.other.unit.imaginary.go"},"8":{"name":"keyword.other.unit.octal.go"},"9":{"name":"constant.numeric.octal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"10":{"name":"punctuation.separator.constant.numeric.go"},"11":{"name":"keyword.other.unit.imaginary.go"},"12":{"name":"keyword.other.unit.hexadecimal.go"},"13":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"14":{"name":"punctuation.separator.constant.numeric.go"},"15":{"name":"keyword.other.unit.imaginary.go"}},"match":"\\\\G(?:(?:(?:(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$)|(0[Bb])_?([01](?:[01]|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Oo]?)_?((?:[0-7]|((?<=\\\\h)_(?=\\\\h)))+)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$))"},{"match":"(?:[.0-9A-Z_a-z]|(?<=[EPep])[-+])+","name":"invalid.illegal.constant.numeric.go"}]}]}},"match":"(?<!\\\\w)\\\\.?\\\\d(?:[.0-9A-Z_a-z]|(?<=[EPep])[-+])*"},"operators":{"patterns":[{"match":"(?<!\\\\w)[\\\\&*]+(?!\\\\d)(?=[]\\\\[\\\\w]|<-)","name":"keyword.operator.address.go"},{"match":"<-","name":"keyword.operator.channel.go"},{"match":"--","name":"keyword.operator.decrement.go"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.go"},{"match":"(==|!=|<=|>=|<(?!<)|>(?!>))","name":"keyword.operator.comparison.go"},{"match":"(&&|\\\\|\\\\||!)","name":"keyword.operator.logical.go"},{"match":"((?:|[-%*+/:^|]|<<|>>|&\\\\^?)=)","name":"keyword.operator.assignment.go"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.go"},{"match":"(&(?!\\\\^)|[\\\\^|]|&\\\\^|<<|>>|~)","name":"keyword.operator.arithmetic.bitwise.go"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.ellipsis.go"}]},"other_struct_interface_expressions":{"patterns":[{"include":"#after_control_variables"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b(?!(?:struct|interface)\\\\b)([.\\\\w]+)(?<brackets>\\\\[(?:[^]\\\\[]|\\\\g<brackets>)*])?(?=\\\\{)"}]},"other_variables":{"match":"\\\\w+","name":"variable.other.go"},"package_name":{"patterns":[{"begin":"\\\\b(package)\\\\s+","beginCaptures":{"1":{"name":"keyword.package.go"}},"end":"(?!\\\\G)","patterns":[{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.type.package.go"}]}]},"parameter-variable-types":{"patterns":[{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]}]},"property_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]}},"match":"\\\\b([.\\\\w]+:(?!=))"},"raw_string_literals":{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.go"}},"name":"string.quoted.raw.go","patterns":[{"include":"#string_placeholder"}]},"runes":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.go"}},"name":"string.quoted.rune.go","patterns":[{"match":"\\\\G(\\\\\\\\([0-7]{3}|[\\"'\\\\\\\\abfnrtv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8})|.)(?=')","name":"constant.other.rune.go"},{"match":"[^']+","name":"invalid.illegal.unknown-rune.go"}]}]},"single_type":{"patterns":[{"captures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"3":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"},{"include":"$self"}]},{"include":"#type-declarations"},{"include":"#generic_types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b(type)\\\\b\\\\s*([*.\\\\w]+)\\\\s+(?!(?:=\\\\s*)?[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b)([\\\\s\\\\S]+)"},{"begin":"(?:^|\\\\s+)\\\\b(type)\\\\b\\\\s*([*.\\\\w]+)(?=\\\\[)","beginCaptures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"end":"(?<=])(\\\\s+(?:=\\\\s*)?(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:struct|interface|func)\\\\b)[-\\\\]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?","endCaptures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"include":"#struct_variables_types"},{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}]},"slice_index_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.go"}]}},"match":"(?<=\\\\w\\\\[)((?:\\\\b[-%\\\\&*+./<>|\\\\w]+:|:\\\\b[-%\\\\&*+./<>|\\\\w]+)(?:\\\\b[-%\\\\&*+./<>|\\\\w]+)?(?::\\\\b[-%\\\\&*+./<>|\\\\w]+)?)(?=])"},"statements":{"patterns":[{"include":"#package_name"},{"include":"#import"},{"include":"#syntax_errors"},{"include":"#group-functions"},{"include":"#group-types"},{"include":"#group-variables"},{"include":"#hover"}]},"storage_types":{"patterns":[{"match":"\\\\bbool\\\\b","name":"storage.type.boolean.go"},{"match":"\\\\bbyte\\\\b","name":"storage.type.byte.go"},{"match":"\\\\berror\\\\b","name":"storage.type.error.go"},{"match":"\\\\b(complex(64|128)|float(32|64)|u?int(8|16|32|64)?)\\\\b","name":"storage.type.numeric.go"},{"match":"\\\\brune\\\\b","name":"storage.type.rune.go"},{"match":"\\\\bstring\\\\b","name":"storage.type.string.go"},{"match":"\\\\buintptr\\\\b","name":"storage.type.uintptr.go"},{"match":"\\\\bany\\\\b","name":"entity.name.type.any.go"},{"match":"\\\\bcomparable\\\\b","name":"entity.name.type.comparable.go"}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([0-7]{3}|[\\"'\\\\\\\\abfnrtv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.go"},{"match":"\\\\\\\\[^\\"'0-7Uabfnrtuvx]","name":"invalid.illegal.unknown-escape.go"}]},"string_literals":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.go"}},"name":"string.quoted.double.go","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"}]}]},"string_placeholder":{"patterns":[{"match":"%(\\\\[\\\\d+])?([- #+0]{0,2}((\\\\d+|\\\\*)?(\\\\.?(\\\\d+|\\\\*|(\\\\[\\\\d+])\\\\*?)?(\\\\[\\\\d+])?)?))?[%EFGTUXb-gopqstvwx]","name":"constant.other.placeholder.go"}]},"struct_interface_declaration":{"captures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b(type)\\\\b\\\\s*([.\\\\w]+)"},"struct_variable_types_fields_multi":{"patterns":[{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(struct)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"name":"keyword.struct.go"},"3":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#struct_variables_types_fields"},{"include":"$self"}]},{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(interface)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"name":"keyword.interface.go"},"3":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#interface_variables_types_field"},{"include":"$self"}]},{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(func)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"name":"keyword.function.go"},"3":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"},{"include":"$self"}]},{"include":"#parameter-variable-types"}]},"struct_variables_types":{"begin":"\\\\b(struct)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.struct.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#struct_variables_types_fields"},{"include":"$self"}]},"struct_variables_types_fields":{"patterns":[{"include":"#struct_variable_types_fields_multi"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\{)\\\\s*((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*.\\\\[\\\\w]+)\\\\s*(?=})"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\{)\\\\s*((?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*.\\\\[\\\\w]+)\\\\s*(?=})"},{"captures":{"1":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)?((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[^/\\\\s]+;?)"}]}},"match":"(?<=\\\\{)((?:\\\\s*(?:(?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)?(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[^/\\\\s]+;?)+)\\\\s*(?=})"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[*.\\\\w]+\\\\s*)(?:(?=[\\"/\`])|$)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b(\\\\w+(?:\\\\s*,\\\\s*\\\\b\\\\w+)*)\\\\s*([^\\"/\`]+)"}]},"support_functions":{"captures":{"1":{"name":"entity.name.function.support.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.function.support.go"}]},"3":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?:((?<=\\\\.)\\\\b\\\\w+)|\\\\b(\\\\w+))(?<brackets>\\\\[(?:[^]\\\\[]|\\\\g<brackets>)*])?(?=\\\\()"},"switch_types":{"begin":"(?<=\\\\bswitch\\\\b)\\\\s*(\\\\w+\\\\s*:=)?\\\\s*([-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+)(\\\\.\\\\(\\\\btype\\\\b\\\\)\\\\s*)(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#operators"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]},"2":{"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.go"}]},"3":{"patterns":[{"include":"#delimiters"},{"include":"#brackets"},{"match":"\\\\btype\\\\b","name":"keyword.type.go"}]},"4":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"captures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"3":{"name":"punctuation.other.colon.go"},"4":{"patterns":[{"include":"#comments"}]}},"match":"^\\\\s*\\\\b(case)\\\\b\\\\s+([!*,.<=>\\\\w\\\\s]+)(:)(\\\\s*/[*/]\\\\s*.*)?$"},{"begin":"\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.go"}},"end":":","endCaptures":{"0":{"name":"punctuation.other.colon.go"}},"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},{"include":"$self"}]},"switch_variables":{"patterns":[{"captures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"#type-declarations"},{"include":"#support_functions"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]}},"match":"^\\\\s*\\\\b(case)\\\\b\\\\s+([\\\\s\\\\S]+:\\\\s*(?:/[*/].*)?)$"},{"begin":"(?<=\\\\bswitch\\\\b)\\\\s*((?:[.\\\\w]+(?:\\\\s*[-!%\\\\&+,/:<=>|]+\\\\s*[.\\\\w]+)*\\\\s*[-!%\\\\&+,/:<=>|]+)?\\\\s*[-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+{0,1}\\\\s*(?:;\\\\s*[-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+\\\\s*)?)(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"begin":"\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.go"}},"end":":","endCaptures":{"0":{"name":"punctuation.other.colon.go"}},"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]},{"include":"$self"}]}]},"syntax_errors":{"patterns":[{"captures":{"1":{"name":"invalid.illegal.slice.go"}},"match":"\\\\[](\\\\s+)"},{"match":"\\\\b0[0-7]*[89]\\\\d*\\\\b","name":"invalid.illegal.numeric.go"}]},"terminators":{"match":";","name":"punctuation.terminator.go"},"type-declarations":{"patterns":[{"include":"#language_constants"},{"include":"#comments"},{"include":"#map_types"},{"include":"#brackets"},{"include":"#delimiters"},{"include":"#keywords"},{"include":"#operators"},{"include":"#runes"},{"include":"#storage_types"},{"include":"#raw_string_literals"},{"include":"#string_literals"},{"include":"#numeric_literals"},{"include":"#terminators"}]},"type-declarations-without-brackets":{"patterns":[{"include":"#language_constants"},{"include":"#comments"},{"include":"#map_types"},{"include":"#delimiters"},{"include":"#keywords"},{"include":"#operators"},{"include":"#runes"},{"include":"#storage_types"},{"include":"#raw_string_literals"},{"include":"#string_literals"},{"include":"#numeric_literals"},{"include":"#terminators"}]},"type_assertion_inline":{"captures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\.\\\\()(?:\\\\b(type)\\\\b|((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?))(?=\\\\))"},"var_assignment":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\bvar\\\\b)\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"begin":"(?<=\\\\bvar\\\\b)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"include":"$self"}]}]},"variable_assignment":{"patterns":[{"captures":{"0":{"patterns":[{"include":"#delimiters"},{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]}},"match":"\\\\b\\\\w+(?:,\\\\s*\\\\w+)*(?=\\\\s*:=)"},{"captures":{"0":{"patterns":[{"include":"#delimiters"},{"include":"#operators"},{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]}},"match":"\\\\b[*.\\\\w]+(?:,\\\\s*[*.\\\\w]+)*(?=\\\\s*=(?!=))"}]}},"scopeName":"source.go"}`)),t$e=[e$e]});var lne={};fn(lne,{default:()=>r$e});var n$e,r$e,cne=tr(()=>{n$e=Object.freeze(JSON.parse('{"displayName":"Swift","fileTypes":["swift"],"firstLineMatch":"^#!/.*\\\\bswift","name":"swift","patterns":[{"include":"#root"}],"repository":{"async-throws":{"captures":{"1":{"name":"invalid.illegal.await-must-precede-throws.swift"},"2":{"name":"storage.modifier.exception.swift"},"3":{"name":"storage.modifier.async.swift"}},"match":"\\\\b(?:((?:throws\\\\s+|rethrows\\\\s+)async)|((?:|re)throws)|(async))\\\\b"},"attributes":{"patterns":[{"begin":"((@)available)(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.attribute.swift"},"2":{"name":"punctuation.definition.attribute.swift"},"3":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.attribute.available.swift","patterns":[{"captures":{"1":{"name":"keyword.other.platform.os.swift"},"2":{"name":"constant.numeric.swift"}},"match":"\\\\b(swift|(?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\\\b(?:\\\\s+([0-9]+(?:\\\\.[0-9]+)*)\\\\b)?"},{"begin":"\\\\b((?:introduc|deprecat|obsolet)ed)\\\\s*(:)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)*\\\\b","name":"constant.numeric.swift"}]},{"begin":"\\\\b(message|renamed)\\\\s*(:)\\\\s*(?=\\")","beginCaptures":{"1":{"name":"keyword.other.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#literals"}]},{"captures":{"1":{"name":"keyword.other.platform.all.swift"},"2":{"name":"keyword.other.swift"},"3":{"name":"invalid.illegal.character-not-allowed-here.swift"}},"match":"(?:(\\\\*)|\\\\b(deprecated|unavailable|noasync)\\\\b)\\\\s*(.*?)(?=[),])"}]},{"begin":"((@)objc)(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.attribute.swift"},"2":{"name":"punctuation.definition.attribute.swift"},"3":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.attribute.objc.swift","patterns":[{"captures":{"1":{"name":"invalid.illegal.missing-colon-after-selector-piece.swift"}},"match":"\\\\w*(?::(?:\\\\w*:)*(\\\\w*))?","name":"entity.name.function.swift"}]},{"begin":"(@)(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)","beginCaptures":{"0":{"name":"storage.modifier.attribute.swift"},"1":{"name":"punctuation.definition.attribute.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G\\\\()","name":"meta.attribute.swift","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.arguments.attribute.swift","patterns":[{"include":"#expressions"}]}]}]},"builtin-functions":{"patterns":[{"match":"(?<=\\\\.)(?:s(?:ort(?:ed)?|plit)|contains|index|partition|f(?:i(?:lter|rst)|orEach|latMap)|with(?:MutableCharacters|CString|U(?:nsafe(?:Mutable(?:BufferPointer|Pointer(?:s|To(?:Header|Elements)))|BufferPointer)|TF8Buffer))|m(?:in|a[px]))(?=\\\\s*[({])\\\\b","name":"support.function.swift"},{"match":"(?<=\\\\.)(?:s(?:ymmetricDifference|t(?:oreBytes|arts|ride)|ortInPlace|u(?:ccessor|ffix|btract(?:ing|InPlace|WithOverflow)?)|quareRoot|amePosition)|h(?:oldsUnique(?:|OrPinned)Reference|as(?:Suf|Pre)fix)|ne(?:gated?|xt)|c(?:o(?:untByEnumerating|py(?:Bytes)?)|lamp(?:ed)?|reate)|t(?:o(?:IntMax|Opaque|UIntMax)|ake(?:R|Unr)etainedValue|r(?:uncatingRemainder|a(?:nscodedLength|ilSurrogate)))|i(?:s(?:MutableAndUniquelyReferenced(?:OrPinned)?|S(?:trictSu(?:perset(?:Of)?|bset(?:Of)?)|u(?:perset(?:Of)?|bset(?:Of)?))|Continuation|T(?:otallyOrdered|railSurrogate)|Disjoint(?:With)?|Unique(?:Reference|lyReferenced(?:OrPinned)?)|Equal|Le(?:ss(?:ThanOrEqualTo)?|adSurrogate))|n(?:sert(?:ContentsOf)?|tersect(?:ion|InPlace)?|itialize(?:Memory|From)?|dex(?:Of|ForKey)))|o(?:verlaps|bjectAt)|d(?:i(?:stance(?:To)?|vide(?:d|WithOverflow)?)|e(?:s(?:cendant|troy)|code(?:CString)?|initialize|alloc(?:ate(?:Capacity)?)?)|rop(?:First|Last))|u(?:n(?:ion(?:InPlace)?|derestimateCount|wrappedOrError)|p(?:date(?:Value)?|percased))|join(?:ed|WithSeparator)|p(?:op(?:First|Last)|ass(?:R|Unr)etained|re(?:decessor|fix))|e(?:scaped?|n(?:code|umerated?)|lementsEqual|xclusiveOr(?:InPlace)?)|f(?:orm(?:Remainder|S(?:ymmetricDifference|quareRoot)|TruncatingRemainder|In(?:tersection|dex)|Union)|latten|rom(?:CString(?:RepairingIllFormedUTF8)?|Opaque))|w(?:i(?:thMemoryRebound|dth)|rite(?:To)?)|l(?:o(?:wercased|ad)|e(?:adSurrogate|xicographical(?:Compare|lyPrecedes)))|a(?:ss(?:ign(?:(?:Backward|)From)?|umingMemoryBound)|d(?:d(?:ing(?:Product)?|Product|WithOverflow)?|vanced(?:By)?)|utorelease|ppend(?:ContentsOf)?|lloc(?:ate)?|bs)|r(?:ound(?:ed)?|e(?:serveCapacity|tain|duce|place(?:(?:R|Subr)ange)?|versed?|quest(?:Native|UniqueMutableBacking)Buffer|lease|m(?:ove(?:Range|Subrange|Value(?:ForKey)?|First|Last|A(?:tIndex|ll))?|ainder(?:WithOverflow)?)))|ge(?:nerate|t(?:Objects|Element))|m(?:in(?:imum(?:Magnitude)?|Element)|ove(?:Initialize(?:Memory|BackwardFrom|From)?|Assign(?:From)?)?|ultipl(?:y(?:WithOverflow)?|ied)|easure|a(?:ke(?:Iterator|Description)|x(?:imum(?:Magnitude)?|Element)))|bindMemory)(?=\\\\s*\\\\()","name":"support.function.swift"},{"match":"(?<=\\\\.)(?:s(?:uperclassMirror|amePositionIn|tartsWith)|nextObject|c(?:haracterAtIndex|o(?:untByEnumeratingWithState|pyWithZone)|ustom(?:Mirror|PlaygroundQuickLook))|is(?:EmptyInput|ASCII)|object(?:Enumerator|ForKey|AtIndex)|join|put|keyEnumerator|withUnsafeMutablePointerToValue|length|getMirror|m(?:oveInitializeAssignFrom|ember))(?=\\\\s*\\\\()","name":"support.function.swift"}]},"builtin-global-functions":{"patterns":[{"begin":"\\\\b(type)(\\\\()\\\\s*(of)(:)","beginCaptures":{"1":{"name":"support.function.dynamic-type.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"},"3":{"name":"support.variable.parameter.swift"},"4":{"name":"punctuation.separator.argument-label.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"include":"#expressions"}]},{"match":"\\\\ba(?:nyGenerator|utoreleasepool)(?=\\\\s*[({])\\\\b","name":"support.function.swift"},{"match":"\\\\b(?:s(?:tride(?:of(?:Value)?)?|izeof(?:Value)?|equence|wap)|numericCast|transcode|is(?:UniquelyReferenced(?:NonObjC)?|KnownUniquelyReferenced)|zip|d(?:ump|ebugPrint)|unsafe(?:BitCast|Downcast|Unwrap|Address(?:Of)?)|pr(?:int|econdition(?:Failure)?)|fatalError|with(?:Unsafe(?:Mutable|)Pointer|ExtendedLifetime|VaList)|a(?:ssert(?:ionFailure)?|lignof(?:Value)?|bs)|re(?:peatElement|adLine)|getVaList|m(?:in|ax))(?=\\\\s*\\\\()","name":"support.function.swift"},{"match":"\\\\b(?:s(?:ort|uffix|pli(?:ce|t))|insert|overlaps|d(?:istance|rop(?:First|Last))|join|prefix|extend|withUnsafe(?:Mutable|)Pointers|lazy|advance|re(?:flect|move(?:Range|Last|A(?:tIndex|ll))))(?=\\\\s*\\\\()","name":"support.function.swift"}]},"builtin-properties":{"patterns":[{"match":"(?<=(?:^|\\\\W)(?:Process\\\\.|CommandLine\\\\.))(arguments|argc|unsafeArgv)","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:s(?:t(?:artIndex|ri(?:ngValue|de))|i(?:ze|gn(?:BitIndex|ificand(?:Bit(?:Count|Pattern)|Width)?|alingNaN)?)|u(?:perclassMirror|mmary|bscriptBaseAddress))|h(?:eader|as(?:hValue|PointerRepresentation))|n(?:ulTerminatedUTF8|ext(?:Down|Up)|a(?:n|tiveOwner))|c(?:haracters|ount(?:TrailingZeros)?|ustom(?:Mirror|PlaygroundQuickLook)|apacity)|i(?:s(?:S(?:ign(?:Minus|aling(?:NaN)?)|ubnormal)|N(?:ormal|aN)|Canonical|Infinite|Zero|Empty|Finite|ASCII)|n(?:dices|finity)|dentity)|owner|de(?:|bugDe)scription|u(?:n(?:safelyUnwrapped|icodeScalars?|derestimatedCount)|tf(?:16|8(?:Start|C(?:String|odeUnitCount))?)|intValue|ppercaseString|lp(?:OfOne)?)|p(?:i|ointee)|e(?:ndIndex|lements|xponent(?:Bit(?:Count|Pattern))?)|values?|keys|quietNaN|f(?:irst(?:ElementAddress(?:IfContiguous)?)?|loatingPointClass)|l(?:ittleEndian|owercaseString|eastNo(?:nzero|rmal)Magnitude|a(?:st|zy))|a(?:l(?:ignment|l(?:ocatedElementCount|Zeros))|rray(?:PropertyIsNativeTypeChecked)?)|ra(?:dix|wValue)|greatestFiniteMagnitude|m(?:in|emory|ax)|b(?:yteS(?:ize|wapped)|i(?:nade|tPattern|gEndian)|uffer|ase(?:Address)?))\\\\b","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:boolValue|disposition|end|objectIdentifier|quickLookObject|start|valueType)\\\\b","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:s(?:calarValue|i(?:ze|gnalingNaN)|o(?:und|me)|uppressed|prite|et)|n(?:one|egative(?:Subnormal|Normal|Infinity|Zero))|c(?:ol(?:or|lection)|ustomized)|t(?:o(?:NearestOr(?:Even|AwayFromZero)|wardZero)|uple|ext)|i(?:nt|mage)|optional|d(?:ictionary|o(?:uble|wn))|u(?:Int|p|rl)|p(?:o(?:sitive(?:Subnormal|Normal|Infinity|Zero)|int)|lus)|e(?:rror|mptyInput)|view|quietNaN|float|a(?:ttributedString|wayFromZero)|r(?:ectangle|ange)|generated|minus|b(?:ool|ezierPath))\\\\b","name":"support.variable.swift"}]},"builtin-types":{"patterns":[{"include":"#builtin-types-builtin-class-type"},{"include":"#builtin-types-builtin-enum-type"},{"include":"#builtin-types-builtin-protocol-type"},{"include":"#builtin-types-builtin-struct-type"},{"include":"#builtin-types-builtin-typealias"},{"match":"\\\\bAny\\\\b","name":"support.type.any.swift"}]},"builtin-types-builtin-class-type":{"match":"\\\\b(Managed((?:|Proto)Buffer)|NonObjectiveCBase|AnyGenerator)\\\\b","name":"support.class.swift"},"builtin-types-builtin-enum-type":{"patterns":[{"match":"\\\\b(?:CommandLine|Process(?=\\\\.))\\\\b","name":"support.constant.swift"},{"match":"\\\\bNever\\\\b","name":"support.constant.never.swift"},{"match":"\\\\b(?:ImplicitlyUnwrappedOptional|Representation|MemoryLayout|FloatingPointClassification|SetIndexRepresentation|SetIteratorRepresentation|FloatingPointRoundingRule|UnicodeDecodingResult|Optional|DictionaryIndexRepresentation|AncestorRepresentation|DisplayStyle|PlaygroundQuickLook|Never|FloatingPointSign|Bit|DictionaryIteratorRepresentation)\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:MirrorDisposition|QuickLookObject)\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-protocol-type":{"patterns":[{"match":"\\\\b(?:Ra(?:n(?:domAccess(?:Collection|Indexable)|geReplaceable(?:Collection|Indexable))|wRepresentable)|M(?:irrorPath|utable(?:Collection|Indexable))|Bi(?:naryFloatingPoint|twiseOperations|directional(?:Collection|Indexable))|S(?:tr(?:ide|eam)able|igned(?:Number|Integer)|e(?:tAlgebra|quence))|Hashable|C(?:o(?:llection|mparable)|ustom(?:Reflecta|StringConverti|DebugStringConverti|PlaygroundQuickLooka|LeafReflecta)ble|VarArg)|TextOutputStream|I(?:n(?:teger(?:Arithmetic)?|dexable(?:Base)?)|teratorProtocol)|OptionSet|Un(?:signedInteger|icodeCodec)|E(?:quatable|rror|xpressibleBy(?:BooleanLiteral|String(?:Interpolation|Literal)|NilLiteral|IntegerLiteral|DictionaryLiteral|UnicodeScalarLiteral|ExtendedGraphemeClusterLiteral|FloatLiteral|ArrayLiteral))|FloatingPoint|L(?:osslessStringConvertible|azy(?:Sequence|Collection)Protocol)|A(?:nyObject|bsoluteValuable))\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:Ran(?:domAccessIndex|geReplaceableCollection)Type|GeneratorType|M(?:irror(?:|Path)Type|utable(?:Sliceable|CollectionType))|B(?:i(?:twiseOperations|directionalIndex)Type|oolean(?:Type|LiteralConvertible))|S(?:tring(?:Interpolation|Literal)Convertible|i(?:nk|gned(?:Numb|Integ)er)Type|e(?:tAlgebra|quence)Type|liceable)|NilLiteralConvertible|C(?:ollection|VarArg)Type|Inte(?:rvalType|ger(?:Type|LiteralConvertible|ArithmeticType))|O(?:utputStream|ptionSet)Type|DictionaryLiteralConvertible|Un(?:signedIntegerType|icode(?:ScalarLiteralConvertible|CodecType))|E(?:rrorType|xten(?:sibleCollectionType|dedGraphemeClusterLiteralConvertible))|F(?:orwardIndexType|loat(?:ingPointType|LiteralConvertible))|A(?:nyCollectionType|rrayLiteralConvertible))\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-struct-type":{"patterns":[{"match":"\\\\b(?:R(?:e(?:peat(?:ed)?|versed(?:RandomAccess(?:Collection|Index)|Collection|Index))|an(?:domAccessSlice|ge(?:Replaceable(?:RandomAccess|Bidirectional|)Slice|Generator)?))|Generator(?:Sequence|OfOne)|M(?:irror|utable(?:Ran(?:domAccess|geReplaceable(?:RandomAccess|Bidirectional|))|Bidirectional|)Slice|anagedBufferPointer)|B(?:idirectionalSlice|ool)|S(?:t(?:aticString|ri(?:ng|deT(?:hrough(?:(?:Gen|It)erator)?|o(?:(?:Gen|It)erator)?)))|et(?:I(?:ndex|terator))?|lice)|HalfOpenInterval|C(?:haracter(?:View)?|o(?:ntiguousArray|untable(?:|Closed)Range|llectionOfOne)|OpaquePointer|losed(?:Range(?:I(?:ndex|terator))?|Interval)|VaListPointer)|I(?:n(?:t(?:16|8|32|64)?|d(?:ices|ex(?:ing(?:Gen|It)erator)?))|terator(?:Sequence|OverOne)?)|Zip2(?:Sequence|Iterator)|O(?:paquePointer|bjectIdentifier)|D(?:ictionary(?:I(?:ndex|terator)|Literal)?|ouble|efault(?:RandomAccess|Bidirectional|)Indices)|U(?:n(?:safe(?:RawPointer|Mutable(?:Raw|Buffer|)Pointer|BufferPointer(?:(?:Gen|It)erator)?|Pointer)|icodeScalar(?:View)?|foldSequence|managed)|TF(?:16(?:View)?|8(?:View)?|32)|Int(?:16|8|32|64)?)|Join(?:Generator|ed(?:Sequence|Iterator))|PermutationGenerator|E(?:numerate(?:Generator|Sequence|d(?:Sequence|Iterator))|mpty(?:Generator|Collection|Iterator))|Fl(?:oat(?:80)?|atten(?:Generator|BidirectionalCollection(?:Index)?|Sequence|Collection(?:Index)?|Iterator))|L(?:egacyChildren|azy(?:RandomAccessCollection|Map(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Collection|Iterator)|BidirectionalCollection|Sequence|Collection|Filter(?:Generator|BidirectionalCollection|Sequence|Collection|I(?:ndex|terator))))|A(?:ny(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Hashable|Collection|I(?:ndex|terator))|utoreleasingUnsafeMutablePointer|rray(?:Slice)?))\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:R(?:everse(?:RandomAccess(?:Collection|Index)|Collection|Index)|awByte)|Map(?:Generator|Sequence|Collection)|S(?:inkOf|etGenerator)|Zip2Generator|DictionaryGenerator|Filter(?:Generator|Sequence|Collection(?:Index)?)|LazyForwardCollection|Any(?:RandomAccessIndex|BidirectionalIndex|Forward(?:Collection|Index)))\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-typealias":{"patterns":[{"match":"\\\\b(?:Raw(?:Significand|Exponent|Value)|B(?:ooleanLiteralType|uffer|ase)|S(?:t(?:orage|r(?:i(?:ngLiteralType|de)|eam[12]))|ubSequence)|NativeBuffer|C(?:hild(?:ren)?|Bool|S(?:hort|ignedChar)|odeUnit|Char(?:16|32)?|Int|Double|Unsigned(?:Short|Char|Int|Long(?:Long)?)|Float|WideChar|Long(?:Long)?)|I(?:n(?:t(?:Max|egerLiteralType)|d(?:ices|ex(?:Distance)?))|terator)|Distance|U(?:n(?:icodeScalar(?:Type|Index|View|LiteralType)|foldFirstSequence)|TF(?:16(?:Index|View)|8Index)|IntMax)|E(?:lements?|x(?:tendedGraphemeCluster(?:|Literal)Type|ponent))|V(?:oid|alue)|Key|Float(?:32|LiteralType|64)|AnyClass)\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:Generator|PlaygroundQuickLook|UWord|Word)\\\\b","name":"support.type.swift"}]},"code-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.swift"}},"patterns":[{"include":"$self"}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.swift"}},"match":"\\\\A^(#!).*$\\\\n?","name":"comment.line.number-sign.swift"},{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.documentation.swift","patterns":[{"include":"#comments-nested"}]},{"begin":"/\\\\*:","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.documentation.playground.swift","patterns":[{"include":"#comments-nested"}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.swift","patterns":[{"include":"#comments-nested"}]},{"match":"\\\\*/","name":"invalid.illegal.unexpected-end-of-block-comment.swift"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.swift"}},"end":"(?!\\\\G)","patterns":[{"begin":"///","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.triple-slash.documentation.swift"},{"begin":"//:","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.double-slash.documentation.swift"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.double-slash.swift"}]}]},"comments-nested":{"begin":"/\\\\*","end":"\\\\*/","patterns":[{"include":"#comments-nested"}]},"compiler-control":{"patterns":[{"begin":"^\\\\s*(#)(if|elseif)\\\\s+(false)\\\\b.*?(?=$|//|/\\\\*)","beginCaptures":{"0":{"name":"meta.preprocessor.conditional.swift"},"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"},"3":{"name":"constant.language.boolean.swift"}},"contentName":"comment.block.preprocessor.swift","end":"(?=^\\\\s*(#(e(?:lseif|lse|ndif)))\\\\b)"},{"begin":"^\\\\s*(#)(if|elseif)\\\\s+","captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"}},"end":"(?=\\\\s*/[*/])|$","name":"meta.preprocessor.conditional.swift","patterns":[{"match":"(&&|\\\\|\\\\|)","name":"keyword.operator.logical.swift"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.swift"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"support.constant.platform.architecture.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(arch)\\\\s*(\\\\()\\\\s*(?:(arm|arm64|powerpc64|powerpc64le|i386|x86_64|s390x)|\\\\w+)\\\\s*(\\\\))"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"support.constant.platform.os.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(os)\\\\s*(\\\\()\\\\s*(?:(macOS|OSX|iOS|tvOS|watchOS|visionOS|Android|Linux|FreeBSD|Windows|PS4)|\\\\w+)\\\\s*(\\\\))"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"entity.name.type.module.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(canImport)\\\\s*(\\\\()([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)(\\\\))"},{"begin":"\\\\b(targetEnvironment)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))|$","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"match":"\\\\b(simulator|UIKitForMac)\\\\b","name":"support.constant.platform.environment.swift"}]},{"begin":"\\\\b(swift|compiler)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))|$","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"match":">=|<","name":"keyword.operator.comparison.swift"},{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)*\\\\b","name":"constant.numeric.swift"}]}]},{"captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"},"3":{"patterns":[{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"match":"^\\\\s*(#)(e(?:lse|ndif))(.*?)(?=$|//|/\\\\*)","name":"meta.preprocessor.conditional.swift"},{"captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.sourcelocation.swift"},"4":{"name":"punctuation.definition.parameters.begin.swift"},"5":{"patterns":[{"begin":"(file)\\\\s*(:)\\\\s*(?=\\")","beginCaptures":{"1":{"name":"support.variable.parameter.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#literals"}]},{"captures":{"1":{"name":"support.variable.parameter.swift"},"2":{"name":"punctuation.separator.key-value.swift"},"3":{"name":"constant.numeric.integer.swift"}},"match":"(line)\\\\s*(:)\\\\s*([0-9]+)"},{"match":",","name":"punctuation.separator.parameters.swift"},{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"6":{"name":"punctuation.definition.parameters.begin.swift"},"7":{"patterns":[{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"match":"^\\\\s*(#)(sourceLocation)((\\\\()([^)]*)(\\\\)))(.*?)(?=$|//|/\\\\*)","name":"meta.preprocessor.sourcelocation.swift"}]},"conditionals":{"patterns":[{"begin":"(?<!\\\\.)\\\\b(if|guard|switch|for)\\\\b","beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]}},"end":"(?=\\\\{)","patterns":[{"include":"#expressions-without-trailing-closures"}]},{"begin":"(?<!\\\\.)\\\\b(while)\\\\b","beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]}},"end":"(?=\\\\{)|$","patterns":[{"include":"#expressions-without-trailing-closures"}]}]},"declarations":{"patterns":[{"include":"#declarations-function"},{"include":"#declarations-function-initializer"},{"include":"#declarations-function-subscript"},{"include":"#declarations-typed-variable-declaration"},{"include":"#declarations-import"},{"include":"#declarations-operator"},{"include":"#declarations-precedencegroup"},{"include":"#declarations-protocol"},{"include":"#declarations-type"},{"include":"#declarations-extension"},{"include":"#declarations-typealias"},{"include":"#declarations-macro"}]},"declarations-available-types":{"patterns":[{"include":"#comments"},{"include":"#builtin-types"},{"include":"#attributes"},{"match":"\\\\basync\\\\b","name":"storage.modifier.async.swift"},{"match":"\\\\b(?:|re)throws\\\\b","name":"storage.modifier.exception.swift"},{"match":"\\\\bsome\\\\b","name":"keyword.other.operator.type.opaque.swift"},{"match":"\\\\bany\\\\b","name":"keyword.other.operator.type.existential.swift"},{"match":"\\\\b(?:repeat|each)\\\\b","name":"keyword.control.loop.swift"},{"match":"\\\\b(?:inout|isolated|borrowing|consuming)\\\\b","name":"storage.modifier.swift"},{"match":"\\\\bSelf\\\\b","name":"variable.language.swift"},{"captures":{"1":{"name":"keyword.operator.type.function.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(->)(?![-!%\\\\&*+./<=>^|~])"},{"captures":{"1":{"name":"keyword.operator.type.composition.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(&)(?![-!%\\\\&*+./<=>^|~])"},{"match":"[!?]","name":"keyword.operator.type.optional.swift"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.function.variadic-parameter.swift"},{"match":"\\\\bprotocol\\\\b","name":"keyword.other.type.composition.swift"},{"match":"(?<=\\\\.)(?:Protocol|Type)\\\\b","name":"keyword.other.type.metatype.swift"},{"include":"#declarations-available-types-tuple-type"},{"include":"#declarations-available-types-collection-type"},{"include":"#declarations-generic-argument-clause"}]},"declarations-available-types-collection-type":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.collection-type.begin.swift"}},"end":"]|(?=[)>{}])","endCaptures":{"0":{"name":"punctuation.section.collection-type.end.swift"}},"patterns":[{"include":"#declarations-available-types"},{"include":"#literals-numeric"},{"match":"\\\\b_\\\\b","name":"support.variable.inferred.swift"},{"match":"(?<=\\\\s)\\\\bof\\\\b(?=\\\\s+[(\\\\[_\\\\p{L}\\\\d\\\\p{N}\\\\p{M}])","name":"keyword.other.inline-array.swift"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.key-value.swift"}},"end":"(?=[])>{}])","patterns":[{"match":":","name":"invalid.illegal.extra-colon-in-dictionary-type.swift"},{"include":"#declarations-available-types"}]}]},"declarations-available-types-tuple-type":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.tuple-type.begin.swift"}},"end":"\\\\)|(?=[]>{}])","endCaptures":{"0":{"name":"punctuation.section.tuple-type.end.swift"}},"patterns":[{"include":"#declarations-available-types"}]},"declarations-extension":{"begin":"\\\\b(extension)\\\\s+","beginCaptures":{"1":{"name":"storage.type.$1.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"begin":"\\\\G(?!\\\\s*[\\\\n:{])","end":"(?=\\\\s*[\\\\n:{])|(?!\\\\G)(?=\\\\s*where\\\\b)","name":"entity.name.type.swift","patterns":[{"include":"#declarations-available-types"}]},{"include":"#comments"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function":{"begin":"\\\\b(func)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)|(?:((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)+)))\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})|$","name":"meta.definition.function.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.swift"}},"name":"meta.definition.function.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function-initializer":{"begin":"(?<!\\\\.)\\\\b(init[!?]*)\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift","patterns":[{"match":"(?<=[!?])[!?]+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"end":"(?<=})|$","name":"meta.definition.function.initializer.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.swift"}},"name":"meta.definition.function.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function-result":{"begin":"(?<![-!%\\\\&*+./<=>^|~])(->)(?![-!%\\\\&*+./<=>^|~])\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.function-result.swift"}},"end":"(?!\\\\G)(?=\\\\{|\\\\bwhere\\\\b|[;=])|$","name":"meta.function-result.swift","patterns":[{"match":"\\\\bsending\\\\b","name":"storage.modifier.swift"},{"include":"#declarations-available-types"}]},"declarations-function-subscript":{"begin":"(?<!\\\\.)\\\\b(subscript)\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"}},"end":"(?<=})|$","name":"meta.definition.function.subscript.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.swift"}},"name":"meta.definition.function.body.swift","patterns":[{"include":"$self"}]}]},"declarations-generic-argument-clause":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.separator.generic-argument-clause.begin.swift"}},"end":">|(?=[]){}])","endCaptures":{"0":{"name":"punctuation.separator.generic-argument-clause.end.swift"}},"name":"meta.generic-argument-clause.swift","patterns":[{"include":"#literals-numeric"},{"include":"#declarations-available-types"}]},"declarations-generic-parameter-clause":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.separator.generic-parameter-clause.begin.swift"}},"end":">|(?=[^\\\\&,:<=>`\\\\w\\\\d\\\\s])","endCaptures":{"0":{"name":"punctuation.separator.generic-parameter-clause.end.swift"}},"name":"meta.generic-parameter-clause.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-where-clause"},{"match":"\\\\blet\\\\b","name":"keyword.other.declaration-specifier.swift"},{"match":"\\\\beach\\\\b","name":"keyword.control.loop.swift"},{"captures":{"1":{"name":"variable.language.generic-parameter.swift"}},"match":"\\\\b((?!\\\\d)\\\\w[\\\\w\\\\d]*)\\\\b"},{"match":",","name":"punctuation.separator.generic-parameters.swift"},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.generic-parameter-constraint.swift"}},"end":"(?=[,>]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.generic-parameter-constraint.swift","patterns":[{"begin":"\\\\G","end":"(?=[,>]|(?!\\\\G)\\\\bwhere\\\\b)","name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-type-identifier"},{"include":"#declarations-type-operators"}]}]}]},"declarations-generic-where-clause":{"begin":"\\\\b(where)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.generic-constraint-introducer.swift"}},"end":"(?!\\\\G)$|(?=[\\\\n;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-where-clause-requirement-list"}]},"declarations-generic-where-clause-requirement-list":{"begin":"\\\\G|,\\\\s*","end":"(?=[\\\\n,;>{}]|//|/\\\\*)","patterns":[{"include":"#comments"},{"include":"#constraint"},{"include":"#declarations-available-types"},{"begin":"(?<![-!%\\\\&*+./<=>^|~])(==)(?![-!%\\\\&*+./<=>^|~])","beginCaptures":{"1":{"name":"keyword.operator.generic-constraint.same-type.swift"}},"end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.same-type-requirement.swift","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(?<![-!%\\\\&*+./<=>^|~])(:)(?![-!%\\\\&*+./<=>^|~])","beginCaptures":{"1":{"name":"keyword.operator.generic-constraint.conforms-to.swift"}},"end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.conformance-requirement.swift","patterns":[{"begin":"\\\\G\\\\s*","contentName":"entity.other.inherited-class.swift","end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","patterns":[{"include":"#declarations-available-types"}]}]}]},"declarations-import":{"begin":"(?<!\\\\.)\\\\b(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.import.swift"}},"end":"(;)|$\\\\n?|(?=/[*/])","endCaptures":{"1":{"name":"punctuation.terminator.statement.swift"}},"name":"meta.import.swift","patterns":[{"begin":"\\\\G(?!;|$|//|/\\\\*)(?:(typealias|struct|class|actor|enum|protocol|var|func)\\\\s+)?","beginCaptures":{"1":{"name":"storage.modifier.swift"}},"end":"(?=;|$|//|/\\\\*)","patterns":[{"captures":{"1":{"name":"punctuation.definition.identifier.swift"},"2":{"name":"punctuation.definition.identifier.swift"}},"match":"(?<=\\\\G|\\\\.)(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)","name":"entity.name.type.swift"},{"match":"(?<=\\\\G|\\\\.)\\\\$[0-9]+","name":"entity.name.type.swift"},{"captures":{"1":{"patterns":[{"match":"\\\\.","name":"invalid.illegal.dot-not-allowed-here.swift"}]}},"match":"(?<=\\\\G|\\\\.)(?:((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)+))(?=[.;]|$|//|/\\\\*|\\\\s)","name":"entity.name.type.swift"},{"match":"\\\\.","name":"punctuation.separator.import.swift"},{"begin":"(?!\\\\s*(;|$|//|/\\\\*))","end":"(?=\\\\s*(;|$|//|/\\\\*))","name":"invalid.illegal.character-not-allowed-here.swift"}]}]},"declarations-inheritance-clause":{"begin":"(:)(?=\\\\s*\\\\{)|(:)\\\\s*","beginCaptures":{"1":{"name":"invalid.illegal.empty-inheritance-clause.swift"},"2":{"name":"punctuation.separator.inheritance-clause.swift"}},"end":"(?!\\\\G)$|(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.inheritance-clause.swift","patterns":[{"begin":"\\\\bclass\\\\b","beginCaptures":{"0":{"name":"storage.type.class.swift"}},"end":"(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","patterns":[{"include":"#comments"},{"include":"#declarations-inheritance-clause-more-types"}]},{"begin":"\\\\G","end":"(?!\\\\G)$|(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","patterns":[{"include":"#attributes"},{"include":"#comments"},{"include":"#declarations-inheritance-clause-inherited-type"},{"include":"#declarations-inheritance-clause-more-types"},{"include":"#declarations-type-operators"}]}]},"declarations-inheritance-clause-inherited-type":{"begin":"(?=[_`\\\\p{L}])","end":"(?!\\\\G)","name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-type-identifier"}]},"declarations-inheritance-clause-more-types":{"begin":",\\\\s*","end":"(?!\\\\G)(?!/[*/])|(?=[,={}]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.inheritance-list.more-types","patterns":[{"include":"#attributes"},{"include":"#comments"},{"include":"#declarations-inheritance-clause-inherited-type"},{"include":"#declarations-inheritance-clause-more-types"},{"include":"#declarations-type-operators"}]},"declarations-macro":{"begin":"\\\\b(macro)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(?=[(<=])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"$|(?=;|//|/\\\\*|[=}])","name":"meta.definition.macro.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"}]},"declarations-operator":{"begin":"(?:\\\\b((?:pre|in|post)fix)\\\\s+)?\\\\b(operator)\\\\s+(((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|\\\\.|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*+)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)++))\\\\s*","beginCaptures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"storage.type.function.operator.swift"},"3":{"name":"entity.name.function.operator.swift"},"4":{"name":"entity.name.function.operator.swift","patterns":[{"match":"\\\\.","name":"invalid.illegal.dot-not-allowed-here.swift"}]}},"end":"(;)|$\\\\n?|(?=/[*/])","endCaptures":{"1":{"name":"punctuation.terminator.statement.swift"}},"name":"meta.definition.operator.swift","patterns":[{"include":"#declarations-operator-swift2"},{"include":"#declarations-operator-swift3"},{"match":"((?!$|;|//|/\\\\*)\\\\S)+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"declarations-operator-swift2":{"begin":"\\\\G(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.operator.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.operator.end.swift"}},"patterns":[{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"keyword.other.operator.associativity.swift"}},"match":"\\\\b(associativity)\\\\s+(left|right)\\\\b"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"constant.numeric.integer.swift"}},"match":"\\\\b(precedence)\\\\s+([0-9]+)\\\\b"},{"captures":{"1":{"name":"storage.modifier.swift"}},"match":"\\\\b(assignment)\\\\b"}]},"declarations-operator-swift3":{"captures":{"2":{"name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-types-precedencegroup"}]},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"\\\\G(:)\\\\s*((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))"},"declarations-parameter-clause":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))(?:\\\\s*(async)\\\\b)?","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"},"2":{"name":"storage.modifier.async.swift"}},"name":"meta.parameter-clause.swift","patterns":[{"include":"#declarations-parameter-list"}]},"declarations-parameter-list":{"patterns":[{"captures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"variable.parameter.function.swift"},"5":{"name":"punctuation.definition.identifier.swift"},"6":{"name":"punctuation.definition.identifier.swift"}},"match":"((?<q1>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q1>))\\\\s+((?<q2>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q2>))(?=\\\\s*:)"},{"captures":{"1":{"name":"variable.parameter.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"(((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)))(?=\\\\s*:)"},{"begin":":\\\\s*(?!\\\\s)","end":"(?=[),])","patterns":[{"match":"\\\\bsending\\\\b","name":"storage.modifier.swift"},{"include":"#declarations-available-types"},{"match":":","name":"invalid.illegal.extra-colon-in-parameter-list.swift"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.swift"}},"end":"(?=[),])","patterns":[{"include":"#expressions"}]}]}]},"declarations-precedencegroup":{"begin":"\\\\b(precedencegroup)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.precedencegroup.swift"},"2":{"name":"entity.name.type.precedencegroup.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)","name":"meta.definition.precedencegroup.swift","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.precedencegroup.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.precedencegroup.end.swift"}},"patterns":[{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-types-precedencegroup"}]},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"\\\\b((?:high|low)erThan)\\\\s*:\\\\s*((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"keyword.other.operator.associativity.swift"}},"match":"\\\\b(associativity)\\\\b(?:\\\\s*:\\\\s*(right|left|none)\\\\b)?"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"constant.language.boolean.swift"}},"match":"\\\\b(assignment)\\\\b(?:\\\\s*:\\\\s*(true|false)\\\\b)?"}]}]},"declarations-protocol":{"begin":"\\\\b(protocol)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.protocol.swift","patterns":[{"include":"#comments"},{"include":"#declarations-inheritance-clause"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"#declarations-protocol-protocol-method"},{"include":"#declarations-protocol-protocol-initializer"},{"include":"#declarations-protocol-associated-type"},{"include":"$self"}]}]},"declarations-protocol-associated-type":{"begin":"\\\\b(associatedtype)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration-specifier.swift"},"2":{"name":"variable.language.associatedtype.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)$|(?=[;}]|$)","name":"meta.definition.associatedtype.swift","patterns":[{"include":"#declarations-inheritance-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-typealias-assignment"}]},"declarations-protocol-protocol-initializer":{"begin":"(?<!\\\\.)\\\\b(init[!?]*)\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift","patterns":[{"match":"(?<=[!?])[!?]+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"end":"$|(?=;|//|/\\\\*|})","name":"meta.definition.function.initializer.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.function.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.function.end.swift"}},"name":"invalid.illegal.function-body-not-allowed-in-protocol.swift","patterns":[{"include":"$self"}]}]},"declarations-protocol-protocol-method":{"begin":"\\\\b(func)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)|(?:((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)+)))\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"$|(?=;|//|/\\\\*|})","name":"meta.definition.function.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.function.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.function.end.swift"}},"name":"invalid.illegal.function-body-not-allowed-in-protocol.swift","patterns":[{"include":"$self"}]}]},"declarations-type":{"patterns":[{"begin":"\\\\b(class(?!\\\\s+(?:func|var|let)\\\\b)|struct|actor)\\\\b\\\\s*((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"$self"}]}]},{"include":"#declarations-type-enum"}]},"declarations-type-enum":{"begin":"\\\\b(enum)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"#declarations-type-enum-enum-case-clause"},{"include":"$self"}]}]},"declarations-type-enum-associated-values":{"begin":"\\\\G\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"include":"#comments"},{"begin":"(?:(_)|((?<q1>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k<q1>))\\\\s+(((?<q2>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k<q2>))\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"invalid.illegal.distinct-labels-not-allowed.swift"},"5":{"name":"variable.parameter.function.swift"},"7":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k<q>))\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"variable.parameter.function.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(?![]),])(?=\\\\S)","end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"},{"match":":","name":"invalid.illegal.extra-colon-in-parameter-list.swift"}]}]},"declarations-type-enum-enum-case":{"begin":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"variable.other.enummember.swift"}},"end":"(?<=\\\\))|(?![(=])","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-associated-values"},{"include":"#declarations-type-enum-raw-value-assignment"}]},"declarations-type-enum-enum-case-clause":{"begin":"\\\\b(case)\\\\b\\\\s*","beginCaptures":{"1":{"name":"storage.type.enum.case.swift"}},"end":"(?=[;}])|(?!\\\\G)(?!/[*/])(?=[^,\\\\s])","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-enum-case"},{"include":"#declarations-type-enum-more-cases"}]},"declarations-type-enum-more-cases":{"begin":",\\\\s*","end":"(?!\\\\G)(?!/[*/])(?=[;}[^,\\\\s]])","name":"meta.enum-case.more-cases","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-enum-case"},{"include":"#declarations-type-enum-more-cases"}]},"declarations-type-enum-raw-value-assignment":{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#comments"},{"include":"#literals"}]},"declarations-type-identifier":{"begin":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"meta.type-name.swift","patterns":[{"include":"#builtin-types"}]},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!<)","patterns":[{"begin":"(?=<)","end":"(?!\\\\G)","patterns":[{"include":"#declarations-generic-argument-clause"}]}]},"declarations-type-operators":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.composition.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(&)(?![-!%\\\\&*+./<=>^|~])"},{"captures":{"1":{"name":"keyword.operator.type.requirement-suppression.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(~)(?![-!%\\\\&*+./<=>^|~])"}]},"declarations-typealias":{"begin":"\\\\b(typealias)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration-specifier.swift"},"2":{"name":"entity.name.type.typealias.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)$|(?=;|//|/\\\\*|$)","name":"meta.definition.typealias.swift","patterns":[{"begin":"\\\\G(?=<)","end":"(?!\\\\G)","patterns":[{"include":"#declarations-generic-parameter-clause"}]},{"include":"#declarations-typealias-assignment"}]},"declarations-typealias-assignment":{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.swift"}},"end":"(?!\\\\G)$|(?=;|//|/\\\\*|$)","patterns":[{"include":"#declarations-available-types"}]},"declarations-typed-variable-declaration":{"begin":"\\\\b(?:(async)\\\\s+)?(let|var)\\\\b\\\\s+(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)\\\\s*:","beginCaptures":{"1":{"name":"storage.modifier.async.swift"},"2":{"name":"keyword.other.declaration-specifier.swift"}},"end":"(?=$|[={])","patterns":[{"include":"#declarations-available-types"}]},"declarations-types-precedencegroup":{"patterns":[{"match":"\\\\b(?:BitwiseShift|Assignment|RangeFormation|Casting|Addition|NilCoalescing|Comparison|LogicalConjunction|LogicalDisjunction|Default|Ternary|Multiplication|FunctionArrow)Precedence\\\\b","name":"support.type.swift"}]},"expressions":{"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references"},{"include":"#expressions-trailing-closure"},{"include":"#member-reference"}]},"expressions-trailing-closure":{"patterns":[{"captures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"match":"(#?(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))(?=\\\\s*\\\\{)","name":"meta.function-call.trailing-closure-only.swift"},{"captures":{"1":{"name":"support.function.any-method.trailing-closure-label.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"match":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(:)(?=\\\\s*\\\\{)"}]},"expressions-without-trailing-closures":{"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references"},{"include":"#member-references"}]},"expressions-without-trailing-closures-or-member-references":{"patterns":[{"include":"#comments"},{"include":"#code-block"},{"include":"#attributes"},{"include":"#expressions-without-trailing-closures-or-member-references-closure-parameter"},{"include":"#literals"},{"include":"#operators"},{"include":"#builtin-types"},{"include":"#builtin-functions"},{"include":"#builtin-global-functions"},{"include":"#builtin-properties"},{"include":"#expressions-without-trailing-closures-or-member-references-compound-name"},{"include":"#conditionals"},{"include":"#keywords"},{"include":"#expressions-without-trailing-closures-or-member-references-availability-condition"},{"include":"#expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression"},{"include":"#expressions-without-trailing-closures-or-member-references-macro-expansion"},{"include":"#expressions-without-trailing-closures-or-member-references-subscript-expression"},{"include":"#expressions-without-trailing-closures-or-member-references-parenthesized-expression"},{"match":"\\\\b_\\\\b","name":"support.variable.discard-value.swift"}]},"expressions-without-trailing-closures-or-member-references-availability-condition":{"begin":"\\\\B(#(?:un)?available)(\\\\()","beginCaptures":{"1":{"name":"support.function.availability-condition.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"captures":{"1":{"name":"keyword.other.platform.os.swift"},"2":{"name":"constant.numeric.swift"}},"match":"\\\\s*\\\\b((?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\\\b\\\\s+([0-9]+(?:\\\\.[0-9]+)*)\\\\b"},{"captures":{"1":{"name":"keyword.other.platform.all.swift"},"2":{"name":"invalid.illegal.character-not-allowed-here.swift"}},"match":"(\\\\*)\\\\s*(.*?)(?=[),])"},{"match":"[^),\\\\s]+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"expressions-without-trailing-closures-or-member-references-closure-parameter":{"match":"\\\\$[0-9]+","name":"variable.language.closure-parameter.swift"},"expressions-without-trailing-closures-or-member-references-compound-name":{"captures":{"1":{"name":"entity.name.function.compound-name.swift"},"2":{"name":"punctuation.definition.entity.swift"},"3":{"name":"punctuation.definition.entity.swift"},"4":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.swift"},"2":{"name":"punctuation.definition.entity.swift"}},"match":"(?<q>`?)(?!_:)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>):","name":"entity.name.function.compound-name.swift"}]}},"match":"((?<q1>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q1>))\\\\(((((?<q2>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q2>)):)+)\\\\)"},"expressions-without-trailing-closures-or-member-references-expression-element-list":{"patterns":[{"include":"#comments"},{"begin":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(:)","beginCaptures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#expressions"}]},{"begin":"(?![]),])(?=\\\\S)","end":"(?=[]),])","patterns":[{"include":"#expressions"}]}]},"expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression":{"patterns":[{"begin":"(#?(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.function-call.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},{"begin":"(?<=[])>_`}\\\\p{L}\\\\p{N}\\\\p{M}])\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.function-call.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]}]},"expressions-without-trailing-closures-or-member-references-macro-expansion":{"match":"(#(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","name":"support.function.any-method.swift"},"expressions-without-trailing-closures-or-member-references-parenthesized-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.tuple.begin.swift"}},"end":"(\\\\))\\\\s*((?:\\\\b(?:async|throws|rethrows)\\\\s)*)","endCaptures":{"1":{"name":"punctuation.section.tuple.end.swift"},"2":{"patterns":[{"match":"\\\\brethrows\\\\b","name":"invalid.illegal.rethrows-only-allowed-on-function-declarations.swift"},{"include":"#async-throws"}]}},"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},"expressions-without-trailing-closures-or-member-references-subscript-expression":{"begin":"(?<=[_`\\\\p{L}\\\\p{N}\\\\p{M}])\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.subscript-expression.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},"keywords":{"patterns":[{"match":"(?<!\\\\.)\\\\b(?:if|else|guard|where|switch|case|default|fallthrough)\\\\b","name":"keyword.control.branch.swift"},{"match":"(?<!\\\\.)\\\\b(?:continue|break|fallthrough|return|yield)\\\\b","name":"keyword.control.transfer.swift"},{"match":"(?<!\\\\.)\\\\b(?:while|for|in|each)\\\\b","name":"keyword.control.loop.swift"},{"match":"(?<=\\\\s)\\\\bof\\\\b(?=\\\\s+[(\\\\[_\\\\p{L}\\\\d\\\\p{N}\\\\p{M}])","name":"keyword.other.inline-array.swift"},{"match":"\\\\bany\\\\b(?=\\\\s*`?[_\\\\p{L}])","name":"keyword.other.operator.type.existential.swift"},{"captures":{"1":{"name":"keyword.control.loop.swift"},"2":{"name":"punctuation.whitespace.trailing.repeat.swift"}},"match":"(?<!\\\\.)\\\\b(repeat)\\\\b(\\\\s*)"},{"match":"(?<!\\\\.)\\\\bdefer\\\\b","name":"keyword.control.defer.swift"},{"captures":{"1":{"name":"invalid.illegal.try-must-precede-await.swift"},"2":{"name":"keyword.control.await.swift"}},"match":"(?<!\\\\.)\\\\b(?:(await\\\\s+try)|(await))\\\\b"},{"match":"(?<!\\\\.)\\\\b(?:catch|throw|try)\\\\b|\\\\btry[!?]\\\\B","name":"keyword.control.exception.swift"},{"match":"(?<!\\\\.)\\\\b(?:|re)throws\\\\b","name":"storage.modifier.exception.swift"},{"captures":{"1":{"name":"keyword.control.exception.swift"},"2":{"name":"punctuation.whitespace.trailing.do.swift"}},"match":"(?<!\\\\.)\\\\b(do)\\\\b(\\\\s*)"},{"captures":{"1":{"name":"storage.modifier.async.swift"},"2":{"name":"keyword.other.declaration-specifier.swift"}},"match":"(?<!\\\\.)\\\\b(?:(async)\\\\s+)?(let|var)\\\\b"},{"match":"(?<!\\\\.)\\\\b(?:associatedtype|operator|typealias)\\\\b","name":"keyword.other.declaration-specifier.swift"},{"match":"(?<!\\\\.)\\\\b(class|enum|extension|precedencegroup|protocol|struct|actor)\\\\b(?=\\\\s*`?[_\\\\p{L}])","name":"storage.type.$1.swift"},{"match":"(?<!\\\\.)\\\\b(?:inout|static|final|lazy|mutating|nonmutating|optional|indirect|required|override|dynamic|convenience|infix|prefix|postfix|distributed|nonisolated|borrowing|consuming)\\\\b","name":"storage.modifier.swift"},{"match":"\\\\binit[!?]|\\\\binit\\\\b|(?<!\\\\.)\\\\b(?:func|deinit|subscript|didSet|get|set|willSet|yielding\\\\s+borrow|yielding\\\\s+mutate)\\\\b","name":"storage.type.function.swift"},{"match":"(?<!\\\\.)\\\\b(?:fileprivate|private|internal|public|open|package)\\\\b","name":"keyword.other.declaration-specifier.accessibility.swift"},{"match":"(?<!\\\\.)\\\\bunowned\\\\((?:|un)safe\\\\)|(?<!\\\\.)\\\\b(?:weak|unowned)\\\\b","name":"keyword.other.capture-specifier.swift"},{"captures":{"1":{"name":"keyword.other.type.swift"},"2":{"name":"keyword.other.type.metatype.swift"}},"match":"(?<=\\\\.)(?:(dynamicType|self)|(Protocol|Type))\\\\b"},{"match":"(?<!\\\\.)\\\\b(?:super|self|Self)\\\\b","name":"variable.language.swift"},{"match":"(?:\\\\B#(?:file|filePath|fileID|line|column|function|dsohandle)|\\\\b__(?:FILE|LINE|COLUMN|FUNCTION|DSO_HANDLE)__)\\\\b","name":"support.variable.swift"},{"match":"(?<!\\\\.)\\\\bimport\\\\b","name":"keyword.control.import.swift"},{"match":"(?<!\\\\.)\\\\bconsume(?=\\\\s+`?[_\\\\p{L}])","name":"keyword.control.consume.swift"},{"match":"(?<!\\\\.)\\\\bcopy(?=\\\\s+`?[_\\\\p{L}])","name":"keyword.control.copy.swift"}]},"literals":{"patterns":[{"include":"#literals-boolean"},{"include":"#literals-numeric"},{"include":"#literals-string"},{"match":"\\\\bnil\\\\b","name":"constant.language.nil.swift"},{"match":"\\\\B#((?:color|image|file)Literal)\\\\b","name":"support.function.object-literal.swift"},{"match":"\\\\B#externalMacro\\\\b","name":"support.function.builtin-macro.swift"},{"match":"\\\\B#keyPath\\\\b","name":"support.function.key-path.swift"},{"begin":"\\\\B(#selector)(\\\\()(?:\\\\s*([gs]etter)\\\\s*(:))?","beginCaptures":{"1":{"name":"support.function.selector-reference.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"},"3":{"name":"support.variable.parameter.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"include":"#expressions"}]},{"include":"#literals-regular-expression-literal"}]},"literals-boolean":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.swift"},"literals-numeric":{"patterns":[{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)[0-9][0-9_]*(?=\\\\.[0-9]|[Ee])(?:\\\\.[0-9][0-9_]*)?(?:[Ee][-+]?[0-9][0-9_]*)?\\\\b(?!\\\\.[0-9])","name":"constant.numeric.float.decimal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)(0x\\\\h[_\\\\h]*)(?:\\\\.\\\\h[_\\\\h]*)?[Pp][-+]?[0-9][0-9_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.float.hexadecimal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)(0x\\\\h[_\\\\h]*)(?:\\\\.\\\\h[_\\\\h]*)?[Pp][-+]?\\\\w*\\\\b(?!\\\\.[0-9])","name":"invalid.illegal.numeric.float.invalid-exponent.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)(0x\\\\h[_\\\\h]*)\\\\.[0-9][.\\\\w]*","name":"invalid.illegal.numeric.float.missing-exponent.swift"},{"match":"(?<=\\\\s|^)-?\\\\.[0-9][.\\\\w]*","name":"invalid.illegal.numeric.float.missing-leading-zero.swift"},{"match":"(\\\\B-|\\\\b)0[box]_[_\\\\h]*(?:[EPep][-+]?\\\\w+)?[.\\\\w]+","name":"invalid.illegal.numeric.leading-underscore.swift"},{"match":"(?<=[]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)[0-9]+\\\\b"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)0b[01][01_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.binary.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)0o[0-7][0-7_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.octal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)[0-9][0-9_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.decimal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)0x\\\\h[_\\\\h]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.hexadecimal.swift"},{"match":"(\\\\B-|\\\\b)[0-9][.\\\\w]*","name":"invalid.illegal.numeric.other.swift"}]},"literals-regular-expression-literal":{"patterns":[{"begin":"(#+)/\\\\n","end":"/\\\\1","name":"string.regexp.block.swift","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"},{"include":"#literals-regular-expression-literal-line-comment"}]},{"captures":{"0":{"patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},"1":{"name":"punctuation.definition.string.begin.regexp.swift"},"3":{"name":"punctuation.definition.string.end.regexp.swift"}},"match":"(/)(?!\\\\s)(?!/)(?:\\\\\\\\\\\\s(?=/)|(?<guts>(?>(?:\\\\\\\\Q(?:(?!\\\\\\\\E)(?!/).)*+(?:\\\\\\\\E|(?=/))|\\\\\\\\.|\\\\(\\\\?#[^)]*\\\\)|\\\\(\\\\?(?>\\\\{(?:[^{].*?|\\\\{[^{].*?}|\\\\{\\\\{[^{].*?}}|\\\\{\\\\{\\\\{[^{].*?}}}|\\\\{\\\\{\\\\{\\\\{[^{].*?}}}}|\\\\{\\\\{\\\\{\\\\{\\\\{.+?}}}}})})(?:\\\\[(?!\\\\d)\\\\w+])?[<>X]?\\\\)|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\])+])+])+])+]|\\\\(\\\\g<guts>?+\\\\)|(?:(?!/)[^()\\\\[\\\\\\\\])+)+))?+(?<!\\\\s))(/)","name":"string.regexp.line.swift"},{"captures":{"0":{"patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},"1":{"name":"punctuation.definition.string.begin.regexp.swift"},"4":{"name":"punctuation.definition.string.end.regexp.swift"},"5":{"name":"invalid.illegal.returns-not-allowed.regexp"}},"match":"((#+)/)(?<guts>(?>(?:\\\\\\\\Q(?:(?!\\\\\\\\E)(?!/\\\\2).)*+(?:\\\\\\\\E|(?=/\\\\2))|\\\\\\\\.|\\\\(\\\\?#[^)]*\\\\)|\\\\(\\\\?(?>\\\\{(?:[^{].*?|\\\\{[^{].*?}|\\\\{\\\\{[^{].*?}}|\\\\{\\\\{\\\\{[^{].*?}}}|\\\\{\\\\{\\\\{\\\\{[^{].*?}}}}|\\\\{\\\\{\\\\{\\\\{\\\\{.+?}}}}})})(?:\\\\[(?!\\\\d)\\\\w+])?[<>X]?\\\\)|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\])+])+])+])+]|\\\\(\\\\g<guts>?+\\\\)|(?:(?!/\\\\2)[^()\\\\[\\\\\\\\])+)+))?+(/\\\\2)|#+/.+(\\\\n)","name":"string.regexp.line.extended.swift"}]},"literals-regular-expression-literal-backreference-or-subpattern":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\g\\\\{)(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(})"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"constant.numeric.integer.decimal.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"}},"match":"(\\\\\\\\g)([-+]?\\\\d+)(?:([-+])(\\\\d+))?"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\[gk]<)(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(>)"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\[gk]\')(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(\')"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\k\\\\{)((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?(})"},{"match":"\\\\\\\\[1-9][0-9]+","name":"keyword.other.back-reference.regexp"},{"captures":{"1":{"name":"keyword.other.back-reference.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.other.back-reference.regexp"}},"match":"(\\\\(\\\\?(?:P[=>]|&))((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?(\\\\))"},{"match":"\\\\(\\\\?R\\\\)","name":"keyword.other.back-reference.regexp"},{"captures":{"1":{"name":"keyword.other.back-reference.regexp"},"2":{"name":"constant.numeric.integer.decimal.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.other.back-reference.regexp"}},"match":"(\\\\(\\\\?)([-+]?\\\\d+)(?:([-+])(\\\\d+))?(\\\\))"}]},"literals-regular-expression-literal-backtracking-directive-or-global-matching-option":{"captures":{"1":{"name":"keyword.control.directive.regexp"},"2":{"name":"keyword.control.directive.regexp"},"3":{"name":"keyword.control.directive.regexp"},"4":{"name":"variable.language.tag.regexp"},"5":{"name":"keyword.control.directive.regexp"},"6":{"name":"keyword.operator.assignment.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"keyword.control.directive.regexp"},"9":{"name":"keyword.control.directive.regexp"}},"match":"(\\\\(\\\\*)(?:(ACCEPT|FAIL|F|MARK(?=:)|(?=:)|COMMIT|PRUNE|SKIP|THEN)(?:(:)([^)]+))?|(LIMIT_(?:DEPTH|HEAP|MATCH))(=)(\\\\d+)|(CRLF|CR|ANYCRLF|ANY|LF|NUL|BSR_ANYCRLF|BSR_UNICODE|NOTEMPTY_ATSTART|NOTEMPTY|NO_AUTO_POSSESS|NO_DOTSTAR_ANCHOR|NO_JIT|NO_START_OPT|UTF|UCP))(\\\\))"},"literals-regular-expression-literal-callout":{"captures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.callout.regexp"},"3":{"name":"constant.numeric.integer.decimal.regexp"},"4":{"name":"entity.name.function.callout.regexp"},"5":{"name":"entity.name.function.callout.regexp"},"6":{"name":"entity.name.function.callout.regexp"},"7":{"name":"entity.name.function.callout.regexp"},"8":{"name":"entity.name.function.callout.regexp"},"9":{"name":"entity.name.function.callout.regexp"},"10":{"name":"entity.name.function.callout.regexp"},"11":{"name":"entity.name.function.callout.regexp"},"12":{"name":"punctuation.definition.group.regexp"},"13":{"name":"punctuation.definition.group.regexp"},"14":{"name":"keyword.control.callout.regexp"},"15":{"name":"entity.name.function.callout.regexp"},"16":{"name":"variable.language.tag-name.regexp"},"17":{"name":"punctuation.definition.group.regexp"},"18":{"name":"punctuation.definition.group.regexp"},"19":{"name":"keyword.control.callout.regexp"},"21":{"name":"variable.language.tag-name.regexp"},"22":{"name":"keyword.control.callout.regexp"},"23":{"name":"punctuation.definition.group.regexp"}},"match":"(\\\\()(?<keyw>\\\\?C)(?:(?<num>\\\\d+)|`(?<name>(?:[^`]|``)*)`|\'(?<name>(?:[^\']|\'\')*)\'|\\"(?<name>(?:[^\\"]|\\"\\")*)\\"|\\\\^(?<name>(?:[^^]|\\\\^\\\\^)*)\\\\^|%(?<name>(?:[^%]|%%)*)%|#(?<name>(?:[^#]|##)*)#|\\\\$(?<name>(?:[^$]|\\\\$\\\\$)*)\\\\$|\\\\{(?<name>(?:[^}]|}})*)})?(\\\\))|(\\\\()(?<keyw>\\\\*)(?<name>(?!\\\\d)\\\\w+)(?:\\\\[(?<tag>(?!\\\\d)\\\\w+)])?(?:\\\\{[^,}]+(?:,[^,}]+)*})?(\\\\))|(\\\\()(?<keyw>\\\\?)(?>(\\\\{(?:\\\\g<20>|(?!\\\\{).*?)}))(?:\\\\[(?<tag>(?!\\\\d)\\\\w+)])?(?<keyw>[<>X]?)(\\\\))","name":"meta.callout.regexp"},"literals-regular-expression-literal-character-properties":{"captures":{"1":{"name":"support.variable.character-property.regexp"},"2":{"name":"punctuation.definition.character-class.regexp"},"3":{"name":"support.variable.character-property.regexp"},"4":{"name":"punctuation.definition.character-class.regexp"}},"match":"\\\\\\\\[Pp]\\\\{([-\\\\s\\\\w]+(?:=[-\\\\s\\\\w]+)?)}|(\\\\[:)([-\\\\s\\\\w]+(?:=[-\\\\s\\\\w]+)?)(:])","name":"constant.other.character-class.set.regexp"},"literals-regular-expression-literal-custom-char-class":{"patterns":[{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"include":"#literals-regular-expression-literal-custom-char-class-members"}]}]},"literals-regular-expression-literal-custom-char-class-members":{"patterns":[{"match":"\\\\\\\\b","name":"constant.character.escape.backslash.regexp"},{"include":"#literals-regular-expression-literal-custom-char-class"},{"include":"#literals-regular-expression-literal-quote"},{"include":"#literals-regular-expression-literal-set-operators"},{"include":"#literals-regular-expression-literal-unicode-scalars"},{"include":"#literals-regular-expression-literal-character-properties"}]},"literals-regular-expression-literal-group-option-toggle":{"match":"\\\\(\\\\?(?:\\\\^(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})+|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*-(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*)\\\\)","name":"keyword.other.option-toggle.regexp"},"literals-regular-expression-literal-group-or-conditional":{"patterns":[{"begin":"(\\\\()(\\\\?~)","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.conditional.absent.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.absent.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},{"begin":"(\\\\()(?<cond>\\\\?\\\\()(?:(?<NumberRef>(?<num>[-+]?\\\\d+)(?:(?<op>[-+])(?<num>\\\\d+))?)|(?<cond>R)\\\\g<NumberRef>?|(?<cond>R&)(?<NamedRef>(?<name>(?!\\\\d)\\\\w+)(?:(?<op>[-+])(?<num>\\\\d+))?)|(?<cond><)(?:\\\\g<NamedRef>|\\\\g<NumberRef>)(?<cond>>)|(?<cond>\')(?:\\\\g<NamedRef>|\\\\g<NumberRef>)(?<cond>\')|(?<cond>DEFINE)|(?<cond>VERSION)(?<compar>>?=)(?<num>\\\\d+\\\\.\\\\d+))(?<cond>\\\\))|(\\\\()(?<cond>\\\\?)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.conditional.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.operator.recursion-level.regexp"},"6":{"name":"constant.numeric.integer.decimal.regexp"},"7":{"name":"keyword.control.conditional.regexp"},"8":{"name":"keyword.control.conditional.regexp"},"10":{"name":"variable.other.group-name.regexp"},"11":{"name":"keyword.operator.recursion-level.regexp"},"12":{"name":"constant.numeric.integer.decimal.regexp"},"13":{"name":"keyword.control.conditional.regexp"},"14":{"name":"keyword.control.conditional.regexp"},"15":{"name":"keyword.control.conditional.regexp"},"16":{"name":"keyword.control.conditional.regexp"},"17":{"name":"keyword.control.conditional.regexp"},"18":{"name":"keyword.control.conditional.regexp"},"19":{"name":"keyword.operator.comparison.regexp"},"20":{"name":"constant.numeric.integer.decimal.regexp"},"21":{"name":"keyword.control.conditional.regexp"},"22":{"name":"punctuation.definition.group.regexp"},"23":{"name":"keyword.control.conditional.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.conditional.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},{"begin":"(\\\\()((\\\\?)(?:([!*:=>|]|<[!*=])|P?<(?:((?!\\\\d)\\\\w+)(-))?((?!\\\\d)\\\\w+)>|\'(?:((?!\\\\d)\\\\w+)(-))?((?!\\\\d)\\\\w+)\'|(?:\\\\^(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})+|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*-(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*):)|\\\\*(atomic|pla|positive_lookahead|nla|negative_lookahead|plb|positive_lookbehind|nlb|negative_lookbehind|napla|non_atomic_positive_lookahead|naplb|non_atomic_positive_lookbehind|sr|script_run|asr|atomic_script_run):)?+","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.other.group-options.regexp"},"3":{"name":"punctuation.definition.group.regexp"},"4":{"name":"punctuation.definition.group.regexp"},"5":{"name":"variable.other.group-name.regexp"},"6":{"name":"keyword.operator.balancing-group.regexp"},"7":{"name":"variable.other.group-name.regexp"},"8":{"name":"variable.other.group-name.regexp"},"9":{"name":"keyword.operator.balancing-group.regexp"},"10":{"name":"variable.other.group-name.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]}]},"literals-regular-expression-literal-line-comment":{"captures":{"1":{"name":"punctuation.definition.comment.regexp"}},"match":"(#).*$","name":"comment.line.regexp"},"literals-regular-expression-literal-quote":{"begin":"\\\\\\\\Q","beginCaptures":{"0":{"name":"constant.character.escape.backslash.regexp"}},"end":"\\\\\\\\E|(\\\\n)","endCaptures":{"0":{"name":"constant.character.escape.backslash.regexp"},"1":{"name":"invalid.illegal.returns-not-allowed.regexp"}},"name":"string.quoted.other.regexp.swift"},"literals-regular-expression-literal-regex-guts":{"patterns":[{"include":"#literals-regular-expression-literal-quote"},{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.regexp"}},"name":"comment.block.regexp"},{"begin":"<\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.regexp"}},"end":"}>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.regexp"}},"name":"meta.embedded.expression.regexp"},{"include":"#literals-regular-expression-literal-unicode-scalars"},{"include":"#literals-regular-expression-literal-character-properties"},{"match":"[$^]|\\\\\\\\[ABGYZbyz]|\\\\\\\\K","name":"keyword.control.anchor.regexp"},{"include":"#literals-regular-expression-literal-backtracking-directive-or-global-matching-option"},{"include":"#literals-regular-expression-literal-callout"},{"include":"#literals-regular-expression-literal-backreference-or-subpattern"},{"match":"\\\\.|\\\\\\\\[CDHNORSVWXdhsvw]","name":"constant.character.character-class.regexp"},{"match":"\\\\\\\\c.","name":"constant.character.entity.control-character.regexp"},{"match":"\\\\\\\\[^c]","name":"constant.character.escape.backslash.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"match":"[*+?]","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\{(?:\\\\s*\\\\d+\\\\s*(?:,\\\\s*\\\\d*\\\\s*)?}|\\\\s*,\\\\s*\\\\d+\\\\s*})","name":"keyword.operator.quantifier.regexp"},{"include":"#literals-regular-expression-literal-custom-char-class"},{"include":"#literals-regular-expression-literal-group-option-toggle"},{"include":"#literals-regular-expression-literal-group-or-conditional"}]},"literals-regular-expression-literal-set-operators":{"patterns":[{"match":"&&","name":"keyword.operator.intersection.regexp.swift"},{"match":"--","name":"keyword.operator.subtraction.regexp.swift"},{"match":"~~","name":"keyword.operator.symmetric-difference.regexp.swift"}]},"literals-regular-expression-literal-unicode-scalars":{"match":"\\\\\\\\(?:u\\\\{\\\\s*(?:\\\\h+\\\\s*)+}|u\\\\h{4}|x\\\\{\\\\h+}|x\\\\h{0,2}|U\\\\h{8}|o\\\\{[0-7]+}|0[0-7]{0,3}|N\\\\{(?:U\\\\+\\\\h{1,8}|[-\\\\s\\\\w]+)})","name":"constant.character.numeric.regexp"},"literals-string":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"},{"match":"\\\\\\\\\\\\s*\\\\n","name":"constant.character.escape.newline.swift"},{"include":"#literals-string-string-guts"},{"match":"\\\\S((?!\\\\\\\\\\\\().)*(?=\\"\\"\\")","name":"invalid.illegal.content-before-closing-delimiter.swift"}]},{"begin":"#\\"\\"\\"(?!#)(?=(?:[^\\"]|\\"(?!#))*$)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"#(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.raw.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"},{"match":"\\\\\\\\#\\\\s*\\\\n","name":"constant.character.escape.newline.swift"},{"include":"#literals-string-raw-string-guts"},{"match":"\\\\S((?!\\\\\\\\#\\\\().)*(?=\\"\\"\\")","name":"invalid.illegal.content-before-closing-delimiter.swift"}]},{"begin":"(?<!#)(##+)\\"\\"\\"(?!\\\\1)(?=(?:[^\\"]|\\"(?!\\\\1))*$)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"\\\\1(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.raw.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"},{"include":"#literals-string-string-guts"}]},{"begin":"(?<!#)(##+)\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.raw.swift"}},"end":"\\"\\\\1(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.raw.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.raw.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"}]},{"begin":"#\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.raw.swift"}},"end":"\\"#(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.raw.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.raw.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"},{"include":"#literals-string-raw-string-guts"}]}]},"literals-string-raw-string-guts":{"patterns":[{"match":"\\\\\\\\#[\\"\'0\\\\\\\\nrt]","name":"constant.character.escape.swift"},{"match":"\\\\\\\\#u\\\\{\\\\h{1,8}}","name":"constant.character.escape.unicode.swift"},{"begin":"\\\\\\\\#\\\\(","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.swift"}},"contentName":"source.swift","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.swift"}},"name":"meta.embedded.line.swift","patterns":[{"include":"$self"},{"begin":"\\\\(","end":"\\\\)"}]},{"match":"\\\\\\\\#.","name":"invalid.illegal.escape-not-recognized"}]},"literals-string-string-guts":{"patterns":[{"match":"\\\\\\\\[\\"\'0\\\\\\\\nrt]","name":"constant.character.escape.swift"},{"match":"\\\\\\\\u\\\\{\\\\h{1,8}}","name":"constant.character.escape.unicode.swift"},{"begin":"\\\\\\\\\\\\(","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.swift"}},"contentName":"source.swift","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.swift"}},"name":"meta.embedded.line.swift","patterns":[{"include":"$self"},{"begin":"\\\\(","end":"\\\\)"}]},{"match":"\\\\\\\\.","name":"invalid.illegal.escape-not-recognized"}]},"member-reference":{"patterns":[{"captures":{"1":{"name":"variable.other.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"match":"(?<=\\\\.)((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))"}]},"operators":{"patterns":[{"match":"\\\\b(is\\\\b|as([!?]\\\\B|\\\\b))","name":"keyword.operator.type-casting.swift"},{"begin":"(?=(?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])|\\\\.(\\\\g<oph>|[.\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))","end":"(?!\\\\G)","patterns":[{"captures":{"0":{"patterns":[{"match":"\\\\G(\\\\+\\\\+|--)$","name":"keyword.operator.increment-or-decrement.swift"},{"match":"\\\\G([-+])$","name":"keyword.operator.arithmetic.unary.swift"},{"match":"\\\\G!$","name":"keyword.operator.logical.not.swift"},{"match":"\\\\G~$","name":"keyword.operator.bitwise.not.swift"},{"match":".+","name":"keyword.operator.custom.prefix.swift"}]}},"match":"\\\\G(?<=^|[(,:;\\\\[{\\\\s])((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?![]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":"\\\\G(\\\\+\\\\+|--)$","name":"keyword.operator.increment-or-decrement.swift"},{"match":"\\\\G!$","name":"keyword.operator.increment-or-decrement.swift"},{"match":".+","name":"keyword.operator.custom.postfix.swift"}]}},"match":"\\\\G(?<!^|[(,:;\\\\[{\\\\s])((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?=[]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":"\\\\G=$","name":"keyword.operator.assignment.swift"},{"match":"\\\\G([-%*+/]|<<|>>|[\\\\&^|]|&&|\\\\|\\\\|)=$","name":"keyword.operator.assignment.compound.swift"},{"match":"\\\\G([-*+/])$","name":"keyword.operator.arithmetic.swift"},{"match":"\\\\G&([-*+])$","name":"keyword.operator.arithmetic.overflow.swift"},{"match":"\\\\G%$","name":"keyword.operator.arithmetic.remainder.swift"},{"match":"\\\\G(==|!=|[<>]|>=|<=|~=)$","name":"keyword.operator.comparison.swift"},{"match":"\\\\G\\\\?\\\\?$","name":"keyword.operator.coalescing.swift"},{"match":"\\\\G(&&|\\\\|\\\\|)$","name":"keyword.operator.logical.swift"},{"match":"\\\\G([\\\\&^|]|<<|>>)$","name":"keyword.operator.bitwise.swift"},{"match":"\\\\G([!=]==)$","name":"keyword.operator.bitwise.swift"},{"match":"\\\\G\\\\?$","name":"keyword.operator.ternary.swift"},{"match":".+","name":"keyword.operator.custom.infix.swift"}]}},"match":"\\\\G((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++"},{"captures":{"0":{"patterns":[{"match":".+","name":"keyword.operator.custom.prefix.dot.swift"}]}},"match":"\\\\G(?<=^|[(,:;\\\\[{\\\\s])\\\\.((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+./<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?![]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":".+","name":"keyword.operator.custom.postfix.dot.swift"}]}},"match":"\\\\G(?<!^|[(,:;\\\\[{\\\\s])\\\\.((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+./<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?=[]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":"\\\\G\\\\.\\\\.[.<]$","name":"keyword.operator.range.swift"},{"match":".+","name":"keyword.operator.custom.infix.dot.swift"}]}},"match":"\\\\G\\\\.((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+./<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++"}]},{"match":":","name":"keyword.operator.ternary.swift"}]},"root":{"patterns":[{"include":"#compiler-control"},{"include":"#declarations"},{"include":"#expressions"}]}},"scopeName":"source.swift"}')),r$e=[n$e]});var une={};fn(une,{default:()=>o$e});var i$e,o$e,dne=tr(()=>{i$e=Object.freeze(JSON.parse(`{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"''","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}`)),o$e=[i$e]});var pne={};fn(pne,{default:()=>s$e});var a$e,s$e,mne=tr(()=>{a$e=Object.freeze(JSON.parse(`{"displayName":"TOML","fileTypes":["toml"],"name":"toml","patterns":[{"include":"#comments"},{"include":"#groups"},{"include":"#key_pair"},{"include":"#invalid"}],"repository":{"comments":{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.toml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.toml"}},"end":"\\\\n","name":"comment.line.number-sign.toml"}]},"groups":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.section.begin.toml"},"2":{"patterns":[{"match":"[^.\\\\s]+","name":"entity.name.section.toml"}]},"3":{"name":"punctuation.definition.section.begin.toml"}},"match":"^\\\\s*(\\\\[)([^]\\\\[]*)(])","name":"meta.group.toml"},{"captures":{"1":{"name":"punctuation.definition.section.begin.toml"},"2":{"patterns":[{"match":"[^.\\\\s]+","name":"entity.name.section.toml"}]},"3":{"name":"punctuation.definition.section.begin.toml"}},"match":"^\\\\s*(\\\\[\\\\[)([^]\\\\[]*)(]])","name":"meta.group.double.toml"}]},"invalid":{"match":"\\\\S+(\\\\s*(?=\\\\S))?","name":"invalid.illegal.not-allowed-here.toml"},"key_pair":{"patterns":[{"begin":"([-0-9A-Z_a-z]+)\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml"},"2":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]},{"begin":"((\\")(.*?)(\\"))\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml"},"2":{"name":"punctuation.definition.variable.begin.toml"},"3":{"patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"},{"match":"\\"","name":"invalid.illegal.not-allowed-here.toml"}]},"4":{"name":"punctuation.definition.variable.end.toml"},"5":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]},{"begin":"((')([^']*)('))\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml"},"2":{"name":"punctuation.definition.variable.begin.toml"},"4":{"name":"punctuation.definition.variable.end.toml"},"5":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]},{"begin":"(((?:[-0-9A-Z_a-z]+|\\"(?:[^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'[^']*')(?:\\\\s*\\\\.\\\\s*|(?=\\\\s*=))){2,})\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml","patterns":[{"match":"\\\\.","name":"punctuation.separator.variable.toml"},{"captures":{"1":{"name":"punctuation.definition.variable.begin.toml"},"2":{"patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"}]},"3":{"name":"punctuation.definition.variable.end.toml"}},"match":"(\\")((?:[^\\"\\\\\\\\]|\\\\\\\\.)*)(\\")"},{"captures":{"1":{"name":"punctuation.definition.variable.begin.toml"},"2":{"name":"punctuation.definition.variable.end.toml"}},"match":"(')[^']*(')"}]},"3":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]}]},"primatives":{"patterns":[{"begin":"\\\\G\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"\\"{3,5}","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.triple.double.toml","patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\\\n\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"}]},{"begin":"\\\\G\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.double.toml","patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"}]},{"begin":"\\\\G'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"'{3,5}","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.triple.single.toml"},{"begin":"\\\\G'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.single.toml"},{"match":"\\\\G[0-9]{4}-(0[1-9]|1[012])-(?!00|3[2-9])[0-3][0-9]([ Tt](?!2[5-9])[012][0-9]:[0-5][0-9]:(?!6[1-9])[0-6][0-9](\\\\.[0-9]+)?(Z|[-+](?!2[5-9])[012][0-9]:[0-5][0-9])?)?","name":"constant.other.date.toml"},{"match":"\\\\G(?!2[5-9])[012][0-9]:[0-5][0-9]:(?!6[1-9])[0-6][0-9](\\\\.[0-9]+)?","name":"constant.other.time.toml"},{"match":"\\\\G(true|false)","name":"constant.language.boolean.toml"},{"match":"\\\\G0x\\\\h(_??\\\\h)*","name":"constant.numeric.hex.toml"},{"match":"\\\\G0o[0-7]([0-7]|_[0-7])*","name":"constant.numeric.octal.toml"},{"match":"\\\\G0b[01]([01]|_[01])*","name":"constant.numeric.binary.toml"},{"match":"\\\\G[-+]?(inf|nan)","name":"constant.numeric.toml"},{"match":"\\\\G([-+]?(0|([1-9](([0-9]|_[0-9])+)?)))(?=[.Ee])(\\\\.([0-9](([0-9]|_[0-9])+)?))?([Ee]([-+]?[0-9](([0-9]|_[0-9])+)?))?","name":"constant.numeric.float.toml"},{"match":"\\\\G([-+]?(0|([1-9](([0-9]|_[0-9])+)?)))","name":"constant.numeric.integer.toml"},{"begin":"\\\\G\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.toml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.toml"}},"name":"meta.array.toml","patterns":[{"begin":"(?=[\\"']|[-+]?[0-9]|[-+]?(inf|nan)|true|false|[\\\\[{])","end":",|(?=])","endCaptures":{"0":{"name":"punctuation.separator.array.toml"}},"patterns":[{"include":"#primatives"},{"include":"#comments"},{"include":"#invalid"}]},{"include":"#comments"},{"include":"#invalid"}]},{"begin":"\\\\G\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.inline-table.begin.toml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.inline-table.end.toml"}},"name":"meta.inline-table.toml","patterns":[{"begin":"(?=\\\\S)","end":",|(?=})","endCaptures":{"0":{"name":"punctuation.separator.inline-table.toml"}},"patterns":[{"include":"#key_pair"}]},{"include":"#comments"}]}]}},"scopeName":"source.toml"}`)),s$e=[a$e]});var fne={};fn(fne,{default:()=>c$e});var l$e,c$e,hne=tr(()=>{l$e=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^]]*(])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\\"\'`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?i)\\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?|\\\\b(timestamp)(s|tz)?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with(?:|out))\\\\stime\\\\szone\\\\b)?"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\s+(delete|update)(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdevp??|varp??)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b((?:bit_coun|get_bi|left_shif|right_shif|set_bi)t)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.vector.sql"}},"match":"(?i)\\\\b(vector_(?:distance|norm|normalize))\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime2??|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|sessions??|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablockx??|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|top??|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|values??|varbinary|varchar|vector|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|windows??|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^}]*)(})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(N)?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(`)[^\\\\\\\\`]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),c$e=[l$e]});var gne={};fn(gne,{default:()=>d$e});var u$e,d$e,bne=tr(()=>{u$e=Object.freeze(JSON.parse('{"displayName":"Diff","name":"diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\\\*{15})|(={67})|(-{3}))$\\\\n?","name":"meta.separator.diff"},{"match":"^\\\\d+(,\\\\d+)*([acd])\\\\d+(,\\\\d+)*$\\\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\\\s*(.+?)\\\\s*(@@)($\\\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((-{3}) .+ (-{4}))|((\\\\*{3}) .+ (\\\\*{4})))$\\\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\\\S+\\\\s+\\\\S+).*$\\\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"^((((-{3}) .+)|((\\\\*{3}) .+))$\\\\n?|(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\\\+{3}) .+$\\\\n?| (-) .* (={4})$\\\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\\\+).*))$\\\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"end":"\\\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\\\.\\\\.[0-9a-f]{7,40}.*$\\\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\\\n?","name":"meta.diff.only-in"}],"scopeName":"source.diff"}')),d$e=[u$e]});var yne={};fn(yne,{default:()=>rP});var p$e,rP,iP=tr(()=>{p$e=Object.freeze(JSON.parse(`{"displayName":"C","name":"c","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-conditional"},{"include":"#predefined_macros"},{"include":"#comments"},{"include":"#switch_statement"},{"include":"#anon_pattern_1"},{"include":"#storage_types"},{"include":"#anon_pattern_2"},{"include":"#anon_pattern_3"},{"include":"#anon_pattern_4"},{"include":"#anon_pattern_5"},{"include":"#anon_pattern_6"},{"include":"#anon_pattern_7"},{"include":"#operators"},{"include":"#numbers"},{"include":"#strings"},{"include":"#anon_pattern_range_1"},{"include":"#anon_pattern_range_2"},{"include":"#anon_pattern_range_3"},{"include":"#pragma-mark"},{"include":"#anon_pattern_range_4"},{"include":"#anon_pattern_range_5"},{"include":"#anon_pattern_range_6"},{"include":"#anon_pattern_8"},{"include":"#anon_pattern_9"},{"include":"#anon_pattern_10"},{"include":"#anon_pattern_11"},{"include":"#anon_pattern_12"},{"include":"#anon_pattern_13"},{"include":"#block"},{"include":"#parens"},{"include":"#anon_pattern_range_7"},{"include":"#line_continuation_character"},{"include":"#anon_pattern_range_8"},{"include":"#anon_pattern_range_9"},{"include":"#anon_pattern_14"},{"include":"#anon_pattern_15"}],"repository":{"access-method":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))\\\\s*(?:(\\\\.)|(->))((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(?:\\\\.|->))*)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(\\\\()","beginCaptures":{"1":{"name":"variable.object.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"match":"\\\\.","name":"punctuation.separator.dot-access.c"},{"match":"->","name":"punctuation.separator.pointer-access.c"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.object.c"},{"match":".+","name":"everything.else.c"}]},"5":{"name":"entity.name.function.member.c"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.member.c"}},"name":"meta.function-call.member.c","patterns":[{"include":"#function-call-innards"}]},"anon_pattern_1":{"match":"\\\\b(break|continue|do|else|for|goto|if|_Pragma|return|while)\\\\b","name":"keyword.control.c"},"anon_pattern_10":{"match":"\\\\b((?:int8|int16|int32|int64|uint8|uint16|uint32|uint64|int_least8|int_least16|int_least32|int_least64|uint_least8|uint_least16|uint_least32|uint_least64|int_fast8|int_fast16|int_fast32|int_fast64|uint_fast8|uint_fast16|uint_fast32|uint_fast64|intptr|uintptr|intmax|uintmax)_t)\\\\b","name":"support.type.stdint.c"},"anon_pattern_11":{"match":"\\\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\\\b","name":"support.constant.mac-classic.c"},"anon_pattern_12":{"match":"\\\\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\\\\b","name":"support.type.mac-classic.c"},"anon_pattern_13":{"match":"\\\\b([0-9A-Z_a-z]+_t)\\\\b","name":"support.type.posix-reserved.c"},"anon_pattern_14":{"match":";","name":"punctuation.terminator.statement.c"},"anon_pattern_15":{"match":",","name":"punctuation.separator.delimiter.c"},"anon_pattern_2":{"match":"typedef","name":"keyword.other.typedef.c"},"anon_pattern_3":{"match":"\\\\b(const|extern|register|restrict|static|volatile|inline)\\\\b","name":"storage.modifier.c"},"anon_pattern_4":{"match":"\\\\bk[A-Z]\\\\w*\\\\b","name":"constant.other.variable.mac-classic.c"},"anon_pattern_5":{"match":"\\\\bg[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.global.mac-classic.c"},"anon_pattern_6":{"match":"\\\\bs[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.static.mac-classic.c"},"anon_pattern_7":{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.c"},"anon_pattern_8":{"match":"\\\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\\\b","name":"support.type.sys-types.c"},"anon_pattern_9":{"match":"\\\\b(pthread_(?:attr_|cond_|condattr_|mutex_|mutexattr_|once_|rwlock_|rwlockattr_||key_)t)\\\\b","name":"support.type.pthread.c"},"anon_pattern_range_1":{"begin":"((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))((#)\\\\s*define)\\\\b\\\\s+((?<!\\\\w)[A-Z_a-z]\\\\w*(?!\\\\w))(?:(\\\\()([^()\\\\\\\\]+)(\\\\)))?","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.control.directive.define.c"},"6":{"name":"punctuation.definition.directive.c"},"7":{"name":"entity.name.function.preprocessor.c"},"8":{"name":"punctuation.definition.parameters.begin.c"},"9":{"patterns":[{"captures":{"1":{"name":"variable.parameter.preprocessor.c"}},"match":"(?<=[(,])\\\\s*((?<!\\\\w)[A-Z_a-z]\\\\w*(?!\\\\w))\\\\s*"},{"match":",","name":"punctuation.separator.parameters.c"},{"match":"\\\\.\\\\.\\\\.","name":"ellipses.c punctuation.vararg-ellipses.variable.parameter.preprocessor.c"}]},"10":{"name":"punctuation.definition.parameters.end.c"}},"end":"(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.macro.c","patterns":[{"include":"#preprocessor-rule-define-line-contents"}]},"anon_pattern_range_2":{"begin":"^\\\\s*((#)\\\\s*(error|warning))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.diagnostic.$3.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.diagnostic.c","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.c","patterns":[{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.single.c","patterns":[{"include":"#line_continuation_character"}]},{"begin":"[^\\"']","end":"(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"string.unquoted.single.c","patterns":[{"include":"#line_continuation_character"},{"include":"#comments"}]}]},"anon_pattern_range_3":{"begin":"^\\\\s*((#)\\\\s*(i(?:nclude(?:_next)?|mport)))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.$3.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.include.c","patterns":[{"include":"#line_continuation_character"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.include.c"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.other.lt-gt.include.c"}]},"anon_pattern_range_4":{"begin":"^\\\\s*((#)\\\\s*line)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.line.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},"anon_pattern_range_5":{"begin":"^\\\\s*((#)\\\\s*undef)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.undef.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.c"},{"include":"#line_continuation_character"}]},"anon_pattern_range_6":{"begin":"^\\\\s*((#)\\\\s*pragma)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.pragma.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.pragma.c","patterns":[{"include":"#strings"},{"match":"[$A-Z_a-z][-$\\\\w]*","name":"entity.other.attribute-name.pragma.preprocessor.c"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},"anon_pattern_range_7":{"begin":"(?<!\\\\w)(?!\\\\s*(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|pthread_rwlock_t|atomic_uintptr_t|atomic_ptrdiff_t|atomic_uintmax_t|atomic_intmax_t|atomic_char32_t|atomic_intptr_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|uint_least8_t|int_least32_t|int_least16_t|pthread_key_t|uint_fast32_t|uint_fast64_t|uint_fast16_t|atomic_size_t|atomic_ushort|atomic_ullong|int_least64_t|atomic_ulong|int_least8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|memory_order|atomic_schar|atomic_uchar|atomic_short|atomic_llong|thread_local|atomic_bool|atomic_uint|atomic_long|int_fast8_t|suseconds_t|atomic_char|atomic_int|useconds_t|_Imaginary|uintmax_t|in_addr_t|in_port_t|_Noreturn|blksize_t|pthread_t|uintptr_t|volatile|u_quad_t|blkcnt_t|intmax_t|intptr_t|_Complex|uint16_t|uint32_t|uint64_t|_Alignof|_Alignas|continue|unsigned|restrict|intmax_t|register|int64_t|qaddr_t|segsz_t|_Atomic|alignas|default|caddr_t|nlink_t|typedef|u_short|fixpt_t|clock_t|swblk_t|ssize_t|alignof|daddr_t|int16_t|int32_t|uint8_t|struct|mode_t|size_t|time_t|ushort|u_long|u_char|int8_t|double|signed|static|extern|inline|return|switch|xor_eq|and_eq|bitand|not_eq|sizeof|quad_t|uid_t|bitor|union|off_t|key_t|ino_t|compl|u_int|short|const|false|while|float|pid_t|break|_Bool|or_eq|div_t|dev_t|gid_t|id_t|long|case|goto|else|bool|auto|id_t|enum|uint|true|NULL|void|char|for|not|int|and|xor|do|or|if)\\\\s*\\\\()(?=[A-Z_a-z]\\\\w*\\\\s*\\\\()","end":"(?!\\\\G)(?<=\\\\))","name":"meta.function.c","patterns":[{"include":"#function-innards"}]},"anon_pattern_range_8":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))?(\\\\[)(?!])","beginCaptures":{"1":{"name":"variable.object.c"},"2":{"name":"punctuation.definition.begin.bracket.square.c"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.c"}},"name":"meta.bracket.square.access.c","patterns":[{"include":"#function-call-innards"}]},"anon_pattern_range_9":{"match":"\\\\[\\\\s*]","name":"storage.modifier.array.bracket.square.c"},"backslash_escapes":{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3][0-7]{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.c"},"block":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"name":"meta.block.c","patterns":[{"include":"#block_innards"}]}]},"block_comment":{"patterns":[{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.c"}},"name":"comment.block.c"},{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.c"}},"name":"comment.block.c"}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-conditional-block"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#c_function_call"},{"begin":"(?=\\\\s)(?<!else|new|return)(?<=\\\\w)\\\\s+(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.c"},"2":{"name":"punctuation.section.parens.begin.bracket.round.initialization.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.initialization.c"}},"name":"meta.initialization.c","patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"patterns":[{"include":"#block_innards"}]},{"include":"#parens-block"},{"include":"$self"}]},"c_conditional_context":{"patterns":[{"include":"$self"},{"include":"#block_innards"}]},"c_function_call":{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)","name":"meta.function-call.c","patterns":[{"include":"#function-call-innards"}]},"case_statement":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)case(?!\\\\w))","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.control.case.c"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.colon.case.c"}},"name":"meta.conditional.case.c","patterns":[{"include":"#evaluation_context"},{"include":"#c_conditional_context"}]},"comments":{"patterns":[{"patterns":[{"patterns":[{"begin":"^(?>\\\\s*)(//[!/]+)","beginCaptures":{"1":{"name":"punctuation.definition.comment.documentation.c"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","name":"comment.line.double-slash.documentation.c","patterns":[{"include":"#line_continuation_character"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},{"captures":{"1":{"name":"punctuation.definition.comment.begin.documentation.c"},"2":{"patterns":[{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},"3":{"name":"punctuation.definition.comment.end.documentation.c"}},"match":"(/\\\\*[!*]+(?=\\\\s))(.+)([!*]*\\\\*/)","name":"comment.block.documentation.c"},{"begin":"((?>\\\\s*)/\\\\*[!*]+(?:(?:\\\\n|$)|(?=\\\\s)))","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.documentation.c"}},"end":"([!*]*\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.end.documentation.c"}},"name":"comment.block.documentation.c","patterns":[{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},{"captures":{"1":{"name":"meta.toc-list.banner.block.c"}},"match":"^/\\\\* =(\\\\s*.*?)\\\\s*= \\\\*/$\\\\n?","name":"comment.block.banner.c"},{"begin":"(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c"}},"end":"(\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.end.c"}},"name":"comment.block.c"},{"captures":{"1":{"name":"meta.toc-list.banner.line.c"}},"match":"^// =(\\\\s*.*?)\\\\s*=$\\\\n?","name":"comment.line.banner.c"},{"begin":"((?:^[\\\\t ]+)?)(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.c"}},"end":"(?!\\\\G)","patterns":[{"begin":"(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?=\\\\n)","name":"comment.line.double-slash.c","patterns":[{"include":"#line_continuation_character"}]}]}]},{"include":"#block_comment"},{"include":"#line_comment"}]},{"include":"#block_comment"},{"include":"#line_comment"}]},"default_statement":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)default(?!\\\\w))","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.control.default.c"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.colon.case.default.c"}},"name":"meta.conditional.case.c","patterns":[{"include":"#evaluation_context"},{"include":"#c_conditional_context"}]},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"evaluation_context":{"patterns":[{"include":"#function-call-innards"},{"include":"$self"}]},"function-call-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.c"}},"patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#function-call-innards"}]},{"include":"#block_innards"}]},"function-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#operators"},{"include":"#vararg_ellipses"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.parameters.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.c"}},"name":"meta.function.definition.parameters.c","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#function-innards"}]},{"include":"$self"}]},"inline_comment":{"patterns":[{"patterns":[{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/))"},{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"}]},{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"}]},"line_comment":{"patterns":[{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.c","patterns":[{"include":"#line_continuation_character"}]},{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.c","patterns":[{"include":"#line_continuation_character"}]}]},"line_continuation_character":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.line-continuation.c"}},"match":"(\\\\\\\\)\\\\n"}]},"member_access":{"captures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"variable.other.member.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*\\\\b((?!(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|atomic_uintptr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintmax_t|pthread_mutex_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_attr_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_cond_t|pthread_once_t|uint_fast64_t|uint_fast16_t|atomic_size_t|uint_least8_t|int_least64_t|int_least32_t|int_least16_t|pthread_key_t|atomic_ullong|atomic_ushort|uint_fast32_t|atomic_schar|atomic_short|uint_fast8_t|int_fast64_t|int_fast32_t|int_fast16_t|atomic_ulong|atomic_llong|int_least8_t|atomic_uchar|memory_order|suseconds_t|int_fast8_t|atomic_bool|atomic_char|atomic_uint|atomic_long|atomic_int|useconds_t|_Imaginary|blksize_t|pthread_t|in_addr_t|uintptr_t|in_port_t|uintmax_t|blkcnt_t|uint16_t|unsigned|_Complex|uint32_t|intptr_t|intmax_t|uint64_t|u_quad_t|int64_t|int32_t|ssize_t|caddr_t|clock_t|uint8_t|u_short|swblk_t|segsz_t|int16_t|fixpt_t|daddr_t|nlink_t|qaddr_t|size_t|time_t|mode_t|signed|quad_t|ushort|u_long|u_char|double|int8_t|ino_t|uid_t|pid_t|_Bool|float|dev_t|div_t|short|gid_t|off_t|u_int|key_t|id_t|uint|long|void|char|bool|id_t|int)\\\\b)[A-Z_a-z]\\\\w*\\\\b(?!\\\\())"},"method_access":{"begin":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*([A-Z_a-z]\\\\w*)(\\\\()","beginCaptures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"entity.name.function.member.c"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.c"}},"contentName":"meta.function-call.member.c","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.function.member.c"}},"patterns":[{"include":"#function-call-innards"}]},"numbers":{"captures":{"0":{"patterns":[{"begin":"(?=.)","end":"$","patterns":[{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.c"},"2":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"constant.numeric.hexadecimal.c"},"5":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"6":{"name":"punctuation.separator.constant.numeric"},"8":{"name":"keyword.other.unit.exponent.hexadecimal.c"},"9":{"name":"keyword.operator.plus.exponent.hexadecimal.c"},"10":{"name":"keyword.operator.minus.exponent.hexadecimal.c"},"11":{"name":"constant.numeric.exponent.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.c"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?([FLfl](?!\\\\w))?$"},{"captures":{"2":{"name":"constant.numeric.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"constant.numeric.decimal.point.c"},"5":{"name":"constant.numeric.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"6":{"name":"punctuation.separator.constant.numeric"},"8":{"name":"keyword.other.unit.exponent.decimal.c"},"9":{"name":"keyword.operator.plus.exponent.decimal.c"},"10":{"name":"keyword.operator.minus.exponent.decimal.c"},"11":{"name":"constant.numeric.exponent.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.c"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?([FLfl](?!\\\\w))?$"},{"captures":{"1":{"name":"keyword.other.unit.binary.c"},"2":{"name":"constant.numeric.binary.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G(0[Bb])([01](?:[01]|((?<=\\\\h)'(?=\\\\h)))*)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"captures":{"1":{"name":"keyword.other.unit.octal.c"},"2":{"name":"constant.numeric.octal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G(0)((?:[0-7]|((?<=\\\\h)'(?=\\\\h)))+)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.c"},"2":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"5":{"name":"keyword.other.unit.exponent.hexadecimal.c"},"6":{"name":"keyword.operator.plus.exponent.hexadecimal.c"},"7":{"name":"keyword.operator.minus.exponent.hexadecimal.c"},"8":{"name":"constant.numeric.exponent.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"9":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"captures":{"2":{"name":"constant.numeric.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"5":{"name":"keyword.other.unit.exponent.decimal.c"},"6":{"name":"keyword.operator.plus.exponent.decimal.c"},"7":{"name":"keyword.operator.minus.exponent.decimal.c"},"8":{"name":"constant.numeric.exponent.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"9":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"match":"(?:['.0-9A-Z_a-z]|(?<=[EPep])[-+])+","name":"invalid.illegal.constant.numeric"}]}]}},"match":"(?<!\\\\w)\\\\.?\\\\d(?:['.0-9A-Z_a-z]|(?<=[EPep])[-+])*"},"operators":{"patterns":[{"match":"(?<![$\\\\w])(sizeof)(?![$\\\\w])","name":"keyword.operator.sizeof.c"},{"match":"--","name":"keyword.operator.decrement.c"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.c"},{"match":"(?:[-%*+]|(?<!\\\\()/)=","name":"keyword.operator.assignment.compound.c"},{"match":"(?:[\\\\&^]|<<|>>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.c"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.c"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.c"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.c"},{"match":"[\\\\&^|~]","name":"keyword.operator.c"},{"match":"=","name":"keyword.operator.assignment.c"},{"match":"[-%*+/]","name":"keyword.operator.c"},{"begin":"(\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.c"}},"end":"(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.c"}},"patterns":[{"include":"#function-call-innards"},{"include":"$self"}]}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"name":"meta.parens.c","patterns":[{"include":"$self"}]},"parens-block":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"name":"meta.parens.block.c","patterns":[{"include":"#block_innards"},{"match":"(?-im:(?<!:):(?!:))","name":"punctuation.range-based.c"}]},"pragma-mark":{"captures":{"1":{"name":"meta.preprocessor.pragma.c"},"2":{"name":"keyword.control.directive.pragma.pragma-mark.c"},"3":{"name":"punctuation.definition.directive.c"},"4":{"name":"entity.name.tag.pragma-mark.c"}},"match":"^\\\\s*(((#)\\\\s*pragma\\\\s+mark)\\\\s+(.*))","name":"meta.section.c"},"predefined_macros":{"patterns":[{"captures":{"1":{"name":"entity.name.other.preprocessor.macro.predefined.$1.c"}},"match":"\\\\b(__cplusplus|__DATE__|__FILE__|__LINE__|__STDC__|__STDC_HOSTED__|__STDC_NO_COMPLEX__|__STDC_VERSION__|__STDCPP_THREADS__|__TIME__|NDEBUG|__OBJC__|__ASSEMBLER__|__ATOM__|__AVX__|__AVX2__|_CHAR_UNSIGNED|__CLR_VER|_CONTROL_FLOW_GUARD|__COUNTER__|__cplusplus_cli|__cplusplus_winrt|_CPPRTTI|_CPPUNWIND|_DEBUG|_DLL|__FUNCDNAME__|__FUNCSIG__|__FUNCTION__|_INTEGRAL_MAX_BITS|__INTELLISENSE__|_ISO_VOLATILE|_KERNEL_MODE|_M_AMD64|_M_ARM|_M_ARM_ARMV7VE|_M_ARM_FP|_M_ARM64|_M_CEE|_M_CEE_PURE|_M_CEE_SAFE|_M_FP_EXCEPT|_M_FP_FAST|_M_FP_PRECISE|_M_FP_STRICT|_M_IX86|_M_IX86_FP|_M_X64|_MANAGED|_MSC_BUILD|_MSC_EXTENSIONS|_MSC_FULL_VER|_MSC_VER|_MSVC_LANG|__MSVC_RUNTIME_CHECKS|_MT|_NATIVE_WCHAR_T_DEFINED|_OPENMP|_PREFAST|__TIMESTAMP__|_VC_NO_DEFAULTLIB|_WCHAR_T_DEFINED|_WIN32|_WIN64|_WINRT_DLL|_ATL_VER|_MFC_VER|__GFORTRAN__|__GNUC__|__GNUC_MINOR__|__GNUC_PATCHLEVEL__|__GNUG__|__STRICT_ANSI__|__BASE_FILE__|__INCLUDE_LEVEL__|__ELF__|__VERSION__|__OPTIMIZE__|__OPTIMIZE_SIZE__|__NO_INLINE__|__GNUC_STDC_INLINE__|__CHAR_UNSIGNED__|__WCHAR_UNSIGNED__|__REGISTER_PREFIX__|__SIZE_TYPE__|__PTRDIFF_TYPE__|__WCHAR_TYPE__|__WINT_TYPE__|__INTMAX_TYPE__|__UINTMAX_TYPE__|__SIG_ATOMIC_TYPE__|__INT8_TYPE__|__INT16_TYPE__|__INT32_TYPE__|__INT64_TYPE__|__UINT8_TYPE__|__UINT16_TYPE__|__UINT32_TYPE__|__UINT64_TYPE__|__INT_LEAST8_TYPE__|__INT_LEAST16_TYPE__|__INT_LEAST32_TYPE__|__INT_LEAST64_TYPE__|__UINT_LEAST8_TYPE__|__UINT_LEAST16_TYPE__|__UINT_LEAST32_TYPE__|__UINT_LEAST64_TYPE__|__INT_FAST8_TYPE__|__INT_FAST16_TYPE__|__INT_FAST32_TYPE__|__INT_FAST64_TYPE__|__UINT_FAST8_TYPE__|__UINT_FAST16_TYPE__|__UINT_FAST32_TYPE__|__UINT_FAST64_TYPE__|__INTPTR_TYPE__|__UINTPTR_TYPE__|__CHAR_BIT__|__SCHAR_MAX__|__WCHAR_MAX__|__SHRT_MAX__|__INT_MAX__|__LONG_MAX__|__LONG_LONG_MAX__|__WINT_MAX__|__SIZE_MAX__|__PTRDIFF_MAX__|__INTMAX_MAX__|__UINTMAX_MAX__|__SIG_ATOMIC_MAX__|__INT8_MAX__|__INT16_MAX__|__INT32_MAX__|__INT64_MAX__|__UINT8_MAX__|__UINT16_MAX__|__UINT32_MAX__|__UINT64_MAX__|__INT_LEAST8_MAX__|__INT_LEAST16_MAX__|__INT_LEAST32_MAX__|__INT_LEAST64_MAX__|__UINT_LEAST8_MAX__|__UINT_LEAST16_MAX__|__UINT_LEAST32_MAX__|__UINT_LEAST64_MAX__|__INT_FAST8_MAX__|__INT_FAST16_MAX__|__INT_FAST32_MAX__|__INT_FAST64_MAX__|__UINT_FAST8_MAX__|__UINT_FAST16_MAX__|__UINT_FAST32_MAX__|__UINT_FAST64_MAX__|__INTPTR_MAX__|__UINTPTR_MAX__|__WCHAR_MIN__|__WINT_MIN__|__SIG_ATOMIC_MIN__|__SCHAR_WIDTH__|__SHRT_WIDTH__|__INT_WIDTH__|__LONG_WIDTH__|__LONG_LONG_WIDTH__|__PTRDIFF_WIDTH__|__SIG_ATOMIC_WIDTH__|__SIZE_WIDTH__|__WCHAR_WIDTH__|__WINT_WIDTH__|__INT_LEAST8_WIDTH__|__INT_LEAST16_WIDTH__|__INT_LEAST32_WIDTH__|__INT_LEAST64_WIDTH__|__INT_FAST8_WIDTH__|__INT_FAST16_WIDTH__|__INT_FAST32_WIDTH__|__INT_FAST64_WIDTH__|__INTPTR_WIDTH__|__INTMAX_WIDTH__|__SIZEOF_INT__|__SIZEOF_LONG__|__SIZEOF_LONG_LONG__|__SIZEOF_SHORT__|__SIZEOF_POINTER__|__SIZEOF_FLOAT__|__SIZEOF_DOUBLE__|__SIZEOF_LONG_DOUBLE__|__SIZEOF_SIZE_T__|__SIZEOF_WCHAR_T__|__SIZEOF_WINT_T__|__SIZEOF_PTRDIFF_T__|__BYTE_ORDER__|__ORDER_LITTLE_ENDIAN__|__ORDER_BIG_ENDIAN__|__ORDER_PDP_ENDIAN__|__FLOAT_WORD_ORDER__|__DEPRECATED|__EXCEPTIONS|__GXX_RTTI|__USING_SJLJ_EXCEPTIONS__|__GXX_EXPERIMENTAL_CXX0X__|__GXX_WEAK__|__NEXT_RUNTIME__|__LP64__|_LP64|__SSP__|__SSP_ALL__|__SSP_STRONG__|__SSP_EXPLICIT__|__SANITIZE_ADDRESS__|__SANITIZE_THREAD__|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16|__HAVE_SPECULATION_SAFE_VALUE|__GCC_HAVE_DWARF2_CFI_ASM|__FP_FAST_FMAF??|__FP_FAST_FMAL|__FP_FAST_FMAF16|__FP_FAST_FMAF32|__FP_FAST_FMAF64|__FP_FAST_FMAF128|__FP_FAST_FMAF32X|__FP_FAST_FMAF64X|__FP_FAST_FMAF128X|__GCC_IEC_559|__GCC_IEC_559_COMPLEX|__NO_MATH_ERRNO__|__has_builtin|__has_feature|__has_extension|__has_cpp_attribute|__has_c_attribute|__has_attribute|__has_declspec_attribute|__is_identifier|__has_include|__has_include_next|__has_warning|__BASE_FILE__|__FILE_NAME__|__clang__|__clang_major__|__clang_minor__|__clang_patchlevel__|__clang_version__|__fp16|_Float16)\\\\b"},{"match":"\\\\b__([A-Z_]+)__\\\\b","name":"entity.name.other.preprocessor.macro.predefined.probably.$1.c"}]},"preprocessor-rule-conditional":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$self"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.c"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.c"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-line":{"patterns":[{"match":"\\\\bdefined\\\\b(?:\\\\s*$|(?=\\\\s*\\\\(*\\\\s*(?!defined\\\\b)[$A-Z_a-z][$\\\\w]*\\\\b\\\\s*\\\\)*\\\\s*(?:\\\\n|//|/\\\\*|[:?]|&&|\\\\|\\\\||\\\\\\\\\\\\s*\\\\n)))","name":"keyword.control.directive.conditional.c"},{"match":"\\\\bdefined\\\\b","name":"invalid.illegal.macro-name.c"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.c"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.c"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#operators"},{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.c"},{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.c"},{"include":"#line_continuation_character"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)|(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]}]},"preprocessor-rule-define-line-blocks":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"patterns":[{"include":"#preprocessor-rule-define-line-blocks"},{"include":"#preprocessor-rule-define-line-contents"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-define-line-contents":{"patterns":[{"include":"#vararg_ellipses"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"name":"meta.block.c","patterns":[{"include":"#preprocessor-rule-define-line-blocks"}]},{"match":"\\\\(","name":"punctuation.section.parens.begin.bracket.round.c"},{"match":"\\\\)","name":"punctuation.section.parens.end.bracket.round.c"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"meta.function.c","patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.c","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.single.c","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]},{"include":"#method_access"},{"include":"#member_access"},{"include":"$self"}]},"preprocessor-rule-define-line-functions":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#vararg_ellipses"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.c"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.c"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-disabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$self"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-enabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"},"3":{"name":"constant.numeric.preprocessor.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.else-branch.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.if-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"$self"}]}]}]},"preprocessor-rule-enabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.else-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.if-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#block_innards"}]}]}]},"preprocessor-rule-enabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"$self"}]}]},"preprocessor-rule-enabled-elif-block":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"#block_innards"}]}]},"preprocessor-rule-enabled-else":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"$self"}]},"preprocessor-rule-enabled-else-block":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#block_innards"}]},"probably_a_parameter":{"captures":{"1":{"name":"variable.parameter.probably.c"}},"match":"(?<=[0-9A-Z_a-z] |[]\\\\&)*>])\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(?:\\\\[]\\\\s*)?[),])"},"static_assert":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)static_assert|_Static_assert(?!\\\\w))((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.other.static_assert.c"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"8":{"name":"comment.block.c"},"9":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"10":{"name":"punctuation.section.arguments.begin.bracket.round.static_assert.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.static_assert.c"}},"patterns":[{"begin":"(,)\\\\s*(?=(?:L|u8?|U\\\\s*\\")?)","beginCaptures":{"1":{"name":"punctuation.separator.delimiter.comma.c"}},"end":"(?=\\\\))","name":"meta.static_assert.message.c","patterns":[{"include":"#string_context"}]},{"include":"#evaluation_context"}]},"storage_types":{"patterns":[{"match":"(?-im:(?<!\\\\w)(?:unsigned|signed|double|_Bool|short|float|long|void|char|bool|int)(?!\\\\w))","name":"storage.type.built-in.primitive.c"},{"match":"(?-im:(?<!\\\\w)(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|pthread_rwlockattr_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_uint_fast16_t|atomic_int_least64_t|atomic_int_least32_t|atomic_int_least16_t|atomic_uint_least8_t|atomic_uint_fast8_t|atomic_int_least8_t|atomic_int_fast16_t|pthread_mutexattr_t|atomic_int_fast32_t|atomic_int_fast64_t|atomic_int_fast8_t|pthread_condattr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintptr_t|atomic_uintmax_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|int_least32_t|pthread_key_t|int_least16_t|int_least64_t|uint_least8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|atomic_ushort|atomic_ullong|atomic_size_t|int_fast16_t|int_fast64_t|uint_fast8_t|atomic_short|atomic_uchar|atomic_schar|int_least8_t|memory_order|atomic_llong|atomic_ulong|int_fast32_t|atomic_long|atomic_uint|atomic_char|int_fast8_t|suseconds_t|atomic_bool|atomic_int|_Imaginary|useconds_t|in_port_t|uintmax_t|pthread_t|blksize_t|in_addr_t|uintptr_t|blkcnt_t|uint16_t|uint32_t|uint64_t|u_quad_t|_Complex|intptr_t|intmax_t|segsz_t|u_short|nlink_t|uint8_t|int64_t|int32_t|int16_t|fixpt_t|daddr_t|caddr_t|qaddr_t|ssize_t|clock_t|swblk_t|u_long|mode_t|int8_t|time_t|ushort|u_char|quad_t|size_t|pid_t|gid_t|uid_t|dev_t|div_t|off_t|u_int|key_t|ino_t|uint|id_t)(?!\\\\w))","name":"storage.type.built-in.c"},{"match":"(?-im:\\\\b(enum|struct|union)\\\\b)","name":"storage.type.$1.c"},{"begin":"\\\\b(__asm__|asm)\\\\b\\\\s*((?:volatile)?)","beginCaptures":{"1":{"name":"storage.type.asm.c"},"2":{"name":"storage.modifier.c"}},"end":"(?!\\\\G)","name":"meta.asm.c","patterns":[{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"^((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))(?:\\\\n|$)"},{"include":"#comments"},{"begin":"(((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.assembly.c"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"4":{"name":"comment.block.c"},"5":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.assembly.c"}},"patterns":[{"begin":"(R?)(\\")","beginCaptures":{"1":{"name":"meta.encoding.c"},"2":{"name":"punctuation.definition.string.begin.assembly.c"}},"contentName":"meta.embedded.assembly.c","end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.assembly.c"}},"name":"string.quoted.double.c","patterns":[{"include":"source.asm"},{"include":"source.x86"},{"include":"source.x86_64"},{"include":"source.arm"},{"include":"#backslash_escapes"},{"include":"#string_escaped_char"}]},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.assembly.inner.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.assembly.inner.c"}},"patterns":[{"include":"#evaluation_context"}]},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"variable.other.asm.label.c"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"8":{"name":"comment.block.c"},"9":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"\\\\[((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))([A-Z_a-z]\\\\w*)((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))]"},{"match":":","name":"punctuation.separator.delimiter.colon.assembly.c"},{"include":"#comments"}]}]}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.c"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.c"}]},"string_placeholder":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.c"},{"captures":{"1":{"name":"invalid.illegal.placeholder.c"}},"match":"(%)(?!\\"\\\\s*(PRI|SCN))"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.c","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.single.c","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]}]},"switch_conditional_parentheses":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"punctuation.section.parens.begin.bracket.round.conditional.switch.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.conditional.switch.c"}},"name":"meta.conditional.switch.c","patterns":[{"include":"#evaluation_context"},{"include":"#c_conditional_context"}]},"switch_statement":{"begin":"(((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)switch(?!\\\\w)))","beginCaptures":{"1":{"name":"meta.head.switch.c"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"4":{"name":"comment.block.c"},"5":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"6":{"name":"keyword.control.switch.c"}},"end":"(?<=}|%>|\\\\?\\\\?>)|(?=[];=>\\\\[])","name":"meta.block.switch.c","patterns":[{"begin":"\\\\G ?","end":"(\\\\{|<%|\\\\?\\\\?<|(?=;))","endCaptures":{"1":{"name":"punctuation.section.block.begin.bracket.curly.switch.c"}},"name":"meta.head.switch.c","patterns":[{"include":"#switch_conditional_parentheses"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","end":"(}|%>|\\\\?\\\\?>)","endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.switch.c"}},"name":"meta.body.switch.c","patterns":[{"include":"#default_statement"},{"include":"#case_statement"},{"include":"$self"},{"include":"#block_innards"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)[\\\\n\\\\s]*","end":"[\\\\n\\\\s]*(?=;)","name":"meta.tail.switch.c","patterns":[{"include":"$self"}]}]},"vararg_ellipses":{"match":"(?<!\\\\.)\\\\.\\\\.\\\\.(?!\\\\.)","name":"punctuation.vararg-ellipses.c"}},"scopeName":"source.c"}`)),rP=[p$e]});var xne={};fn(xne,{default:()=>f$e});var m$e,f$e,wne=tr(()=>{m$e=Object.freeze(JSON.parse(`{"displayName":"Java","name":"java","patterns":[{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.package.java"}},"contentName":"storage.modifier.package.java","end":"\\\\s*(;)","endCaptures":{"1":{"name":"punctuation.terminator.java"}},"name":"meta.package.java","patterns":[{"include":"#comments"},{"match":"(?<=\\\\.)\\\\s*\\\\.|\\\\.(?=\\\\s*;)","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"(?<!_)_(?=\\\\s*([.;]))|\\\\b\\\\d+|-+","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"[A-Z]+","name":"invalid.deprecated.package_name_not_lowercase.java"},{"match":"\\\\b(?<!\\\\$)(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|non-sealed|package|permits|private|protected|public|return|sealed|short|static|strictfp|super|switch|syncronized|this|throws??|transient|try|void|volatile|while|yield|true|false|null)\\\\b","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"\\\\.","name":"punctuation.separator.java"}]},{"begin":"\\\\b(import)\\\\b\\\\s*\\\\b(static)?\\\\b\\\\s","beginCaptures":{"1":{"name":"keyword.other.import.java"},"2":{"name":"storage.modifier.java"}},"contentName":"storage.modifier.import.java","end":"\\\\s*(;)","endCaptures":{"1":{"name":"punctuation.terminator.java"}},"name":"meta.import.java","patterns":[{"include":"#comments"},{"match":"(?<=\\\\.)\\\\s*\\\\.|\\\\.(?=\\\\s*;)","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"(?<!\\\\.)\\\\s*\\\\*","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"(?<!_)_(?=\\\\s*([.;]))|\\\\b\\\\d+|-+","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"\\\\b(?<!\\\\$)(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|non-sealed|package|permits|private|protected|public|return|sealed|short|static|strictfp|super|switch|syncronized|this|throws??|transient|try|void|volatile|while|yield|true|false|null)\\\\b","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"\\\\.","name":"punctuation.separator.java"},{"match":"\\\\*","name":"variable.language.wildcard.java"}]},{"include":"#comments-javadoc"},{"include":"#code"},{"include":"#module"}],"repository":{"all-types":{"patterns":[{"include":"#primitive-arrays"},{"include":"#primitive-types"},{"include":"#object-types"}]},"annotations":{"patterns":[{"begin":"((@)\\\\s*([^(\\\\s]+))(\\\\()","beginCaptures":{"2":{"name":"punctuation.definition.annotation.java"},"3":{"name":"storage.type.annotation.java"},"4":{"name":"punctuation.definition.annotation-arguments.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.annotation-arguments.end.bracket.round.java"}},"name":"meta.declaration.annotation.java","patterns":[{"captures":{"1":{"name":"constant.other.key.java"},"2":{"name":"keyword.operator.assignment.java"}},"match":"(\\\\w*)\\\\s*(=)"},{"include":"#code"}]},{"captures":{"1":{"name":"punctuation.definition.annotation.java"},"2":{"name":"storage.modifier.java"},"3":{"name":"storage.type.annotation.java"},"5":{"name":"punctuation.definition.annotation.java"},"6":{"name":"storage.type.annotation.java"}},"match":"(@)(interface)\\\\s+(\\\\w*)|((@)\\\\s*(\\\\w+))","name":"meta.declaration.annotation.java"}]},"anonymous-block-and-instance-initializer":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.java"}},"patterns":[{"include":"#code"}]},"anonymous-classes-and-new":{"begin":"\\\\bnew\\\\b","beginCaptures":{"0":{"name":"keyword.control.new.java"}},"end":"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])","patterns":[{"include":"#comments"},{"include":"#function-call"},{"include":"#all-types"},{"begin":"(?<=\\\\))","end":"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])","patterns":[{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.inner-class.begin.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.inner-class.end.bracket.curly.java"}},"name":"meta.inner-class.java","patterns":[{"include":"#class-body"}]}]},{"begin":"(?<=])","end":"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])","patterns":[{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array-initializer.begin.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array-initializer.end.bracket.curly.java"}},"name":"meta.array-initializer.java","patterns":[{"include":"#code"}]}]},{"include":"#parens"}]},"assertions":{"patterns":[{"begin":"\\\\b(assert)\\\\s","beginCaptures":{"1":{"name":"keyword.control.assert.java"}},"end":"$","name":"meta.declaration.assertion.java","patterns":[{"match":":","name":"keyword.operator.assert.expression-separator.java"},{"include":"#code"}]}]},"class":{"begin":"(?=\\\\w?[-\\\\w\\\\s]*\\\\b(?:class|(?<!@)interface|enum)\\\\s+[$\\\\w]+)","end":"}","endCaptures":{"0":{"name":"punctuation.section.class.end.bracket.curly.java"}},"name":"meta.class.java","patterns":[{"include":"#storage-modifiers"},{"include":"#generics"},{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.java"},"2":{"name":"entity.name.type.class.java"}},"match":"(class|(?<!@)interface|enum)\\\\s+([$\\\\w]+)","name":"meta.class.identifier.java"},{"begin":"extends","beginCaptures":{"0":{"name":"storage.modifier.extends.java"}},"end":"(?=\\\\{|implements|permits)","name":"meta.definition.class.inherited.classes.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"(implements)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.implements.java"}},"end":"(?=\\\\s*extends|permits|\\\\{)","name":"meta.definition.class.implemented.interfaces.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"(permits)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.permits.java"}},"end":"(?=\\\\s*extends|implements|\\\\{)","name":"meta.definition.class.permits.classes.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.class.begin.bracket.curly.java"}},"contentName":"meta.class.body.java","end":"(?=})","patterns":[{"include":"#class-body"}]}]},"class-body":{"patterns":[{"include":"#comments-javadoc"},{"include":"#comments"},{"include":"#enums"},{"include":"#class"},{"include":"#generics"},{"include":"#static-initializer"},{"include":"#class-fields-and-methods"},{"include":"#annotations"},{"include":"#storage-modifiers"},{"include":"#member-variables"},{"include":"#code"}]},"class-fields-and-methods":{"patterns":[{"begin":"(?==)","end":"(?=;)","patterns":[{"include":"#code"}]},{"include":"#methods"}]},"code":{"patterns":[{"include":"#annotations"},{"include":"#comments"},{"include":"#enums"},{"include":"#class"},{"include":"#record"},{"include":"#anonymous-block-and-instance-initializer"},{"include":"#try-catch-finally"},{"include":"#assertions"},{"include":"#parens"},{"include":"#constants-and-special-vars"},{"include":"#numbers"},{"include":"#anonymous-classes-and-new"},{"include":"#lambda-expression"},{"include":"#keywords"},{"include":"#storage-modifiers"},{"include":"#method-call"},{"include":"#function-call"},{"include":"#variables"},{"include":"#variables-local"},{"include":"#objects"},{"include":"#properties"},{"include":"#strings"},{"include":"#all-types"},{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"},{"match":";","name":"punctuation.terminator.java"}]},"comments":{"patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.java"}},"match":"/\\\\*\\\\*/","name":"comment.block.empty.java"},{"include":"#comments-inline"}]},"comments-inline":{"patterns":[{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.java"}},"end":"\\\\*/","name":"comment.block.java"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.java"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.java"}},"end":"\\\\n","name":"comment.line.double-slash.java"}]}]},"comments-javadoc":{"patterns":[{"begin":"^\\\\s*(/\\\\*\\\\*)(?!/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.java"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.java"}},"name":"comment.block.javadoc.java","patterns":[{"match":"@(author|deprecated|return|see|serial|since|version)\\\\b","name":"keyword.other.documentation.javadoc.java"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.java"},"2":{"name":"variable.parameter.java"}},"match":"(@param)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.java"},"2":{"name":"entity.name.type.class.java"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.java"},"2":{"name":"entity.name.type.class.java"},"3":{"name":"variable.parameter.java"}},"match":"\\\\{(@link)\\\\s+(\\\\S+)?#([$\\\\w]+\\\\s*\\\\([^()]*\\\\)).*?}"}]}]},"constants-and-special-vars":{"patterns":[{"match":"\\\\b(true|false|null)\\\\b","name":"constant.language.java"},{"match":"\\\\bthis\\\\b","name":"variable.language.this.java"},{"match":"\\\\bsuper\\\\b","name":"variable.language.java"}]},"enums":{"begin":"^\\\\s*([\\\\w\\\\s]*)(enum)\\\\s+(\\\\w+)","beginCaptures":{"1":{"patterns":[{"include":"#storage-modifiers"}]},"2":{"name":"storage.modifier.java"},"3":{"name":"entity.name.type.enum.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.enum.end.bracket.curly.java"}},"name":"meta.enum.java","patterns":[{"begin":"\\\\b(extends)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.extends.java"}},"end":"(?=\\\\{|\\\\bimplements\\\\b)","name":"meta.definition.class.inherited.classes.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"\\\\b(implements)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.implements.java"}},"end":"(?=\\\\{|\\\\bextends\\\\b)","name":"meta.definition.class.implemented.interfaces.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.enum.begin.bracket.curly.java"}},"end":"(?=})","patterns":[{"begin":"(?<=\\\\{)","end":"(?=[;}])","patterns":[{"include":"#comments-javadoc"},{"include":"#comments"},{"begin":"\\\\b(\\\\w+)\\\\b","beginCaptures":{"1":{"name":"constant.other.enum.java"}},"end":"(,)|(?=[;}])","endCaptures":{"1":{"name":"punctuation.separator.delimiter.java"}},"patterns":[{"include":"#comments-javadoc"},{"include":"#comments"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"patterns":[{"include":"#code"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"patterns":[{"include":"#class-body"}]}]}]},{"include":"#class-body"}]}]},"function-call":{"begin":"([$A-Z_a-z][$\\\\w]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.java"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.function-call.java","patterns":[{"include":"#code"}]},"generics":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.bracket.angle.java"}},"end":">","endCaptures":{"0":{"name":"punctuation.bracket.angle.java"}},"patterns":[{"match":"\\\\b(extends|super)\\\\b","name":"storage.modifier.$1.java"},{"captures":{"1":{"name":"storage.type.java"}},"match":"(?<!\\\\.)([$A-Z_a-z][$0-9A-Z_a-z]*)(?=\\\\s*<)"},{"include":"#primitive-arrays"},{"match":"[$A-Z_a-z][$0-9A-Z_a-z]*","name":"storage.type.generic.java"},{"match":"\\\\?","name":"storage.type.generic.wildcard.java"},{"match":"&","name":"punctuation.separator.types.java"},{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"},{"include":"#parens"},{"include":"#generics"},{"include":"#comments"}]},"keywords":{"patterns":[{"match":"\\\\bthrow\\\\b","name":"keyword.control.throw.java"},{"match":"[:?]","name":"keyword.control.ternary.java"},{"match":"\\\\b(return|yield|break|case|continue|default|do|while|for|switch|if|else)\\\\b","name":"keyword.control.java"},{"match":"\\\\b(instanceof)\\\\b","name":"keyword.operator.instanceof.java"},{"match":"(<<|>>>?|[\\\\^~])","name":"keyword.operator.bitwise.java"},{"match":"(([\\\\&^|]|<<|>>>?)=)","name":"keyword.operator.assignment.bitwise.java"},{"match":"(===?|!=|<=|>=|<>|[<>])","name":"keyword.operator.comparison.java"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.java"},{"match":"(=)","name":"keyword.operator.assignment.java"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.java"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.java"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.java"},{"match":"([\\\\&|])","name":"keyword.operator.bitwise.java"},{"match":"\\\\b(const|goto)\\\\b","name":"keyword.reserved.java"}]},"lambda-expression":{"patterns":[{"match":"->","name":"storage.type.function.arrow.java"}]},"member-variables":{"begin":"(?=private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)","end":"(?=[;=])","patterns":[{"include":"#storage-modifiers"},{"include":"#variables"},{"include":"#primitive-arrays"},{"include":"#object-types"}]},"method-call":{"begin":"(\\\\.)\\\\s*([$A-Z_a-z][$\\\\w]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"entity.name.function.java"},"3":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.method-call.java","patterns":[{"include":"#code"}]},"methods":{"begin":"(?!new)(?=[<\\\\w].*\\\\s+)(?=([^/=]|/(?!/))+\\\\()","end":"(})|(?=;)","endCaptures":{"1":{"name":"punctuation.section.method.end.bracket.curly.java"}},"name":"meta.method.java","patterns":[{"include":"#storage-modifiers"},{"begin":"(\\\\w+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.java"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.method.identifier.java","patterns":[{"include":"#parameters"},{"include":"#parens"},{"include":"#comments"}]},{"include":"#generics"},{"begin":"(?=\\\\w.*\\\\s+\\\\w+\\\\s*\\\\()","end":"(?=\\\\s+\\\\w+\\\\s*\\\\()","name":"meta.method.return-type.java","patterns":[{"include":"#all-types"},{"include":"#parens"},{"include":"#comments"}]},{"include":"#throws"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.method.begin.bracket.curly.java"}},"contentName":"meta.method.body.java","end":"(?=})","patterns":[{"include":"#code"}]},{"include":"#comments"}]},"module":{"begin":"((open)\\\\s)?(module)\\\\s+(\\\\w+)","beginCaptures":{"1":{"name":"storage.modifier.java"},"3":{"name":"storage.modifier.java"},"4":{"name":"entity.name.type.module.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.module.end.bracket.curly.java"}},"name":"meta.module.java","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.module.begin.bracket.curly.java"}},"contentName":"meta.module.body.java","end":"(?=})","patterns":[{"include":"#comments"},{"include":"#comments-javadoc"},{"match":"\\\\b(requires|transitive|exports|opens|to|uses|provides|with)\\\\b","name":"keyword.module.java"}]}]},"numbers":{"patterns":[{"match":"\\\\b(?<!\\\\$)0([Xx])((?<!\\\\.)\\\\h([_\\\\h]*\\\\h)?[Ll]?(?!\\\\.)|(\\\\h([_\\\\h]*\\\\h)?\\\\.?|(\\\\h([_\\\\h]*\\\\h)?)?\\\\.\\\\h([_\\\\h]*\\\\h)?)[Pp][-+]?[0-9]([0-9_]*[0-9])?[DFdf]?)\\\\b(?!\\\\$)","name":"constant.numeric.hex.java"},{"match":"\\\\b(?<!\\\\$)0([Bb])[01]([01_]*[01])?[Ll]?\\\\b(?!\\\\$)","name":"constant.numeric.binary.java"},{"match":"\\\\b(?<!\\\\$)0[0-7]([0-7_]*[0-7])?[Ll]?\\\\b(?!\\\\$)","name":"constant.numeric.octal.java"},{"match":"(?<!\\\\$)(\\\\b[0-9]([0-9_]*[0-9])?\\\\.\\\\B(?!\\\\.)|\\\\b[0-9]([0-9_]*[0-9])?\\\\.([Ee][-+]?[0-9]([0-9_]*[0-9])?)[DFdf]?\\\\b|\\\\b[0-9]([0-9_]*[0-9])?\\\\.([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]\\\\b|\\\\b[0-9]([0-9_]*[0-9])?\\\\.([0-9]([0-9_]*[0-9])?)([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]?\\\\b|(?<!\\\\.)\\\\B\\\\.[0-9]([0-9_]*[0-9])?([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]?\\\\b|\\\\b[0-9]([0-9_]*[0-9])?([Ee][-+]?[0-9]([0-9_]*[0-9])?)[DFdf]?\\\\b|\\\\b[0-9]([0-9_]*[0-9])?([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]\\\\b|\\\\b(0|[1-9]([0-9_]*[0-9])?)(?!\\\\.)[Ll]?\\\\b)(?!\\\\$)","name":"constant.numeric.decimal.java"}]},"object-types":{"patterns":[{"include":"#generics"},{"begin":"\\\\b((?:[A-Z_a-z]\\\\w*\\\\s*\\\\.\\\\s*)*)([A-Z_]\\\\w*)\\\\s*(?=\\\\[)","beginCaptures":{"1":{"patterns":[{"match":"[A-Z_a-z]\\\\w*","name":"storage.type.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"}]},"2":{"name":"storage.type.object.array.java"}},"end":"(?!\\\\s*\\\\[)","patterns":[{"include":"#comments"},{"include":"#parens"}]},{"captures":{"1":{"patterns":[{"match":"[A-Z_a-z]\\\\w*","name":"storage.type.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"}]}},"match":"\\\\b((?:[A-Z_a-z]\\\\w*\\\\s*\\\\.\\\\s*)*[A-Z_]\\\\w*)\\\\s*(?=<)"},{"captures":{"1":{"patterns":[{"match":"[A-Z_a-z]\\\\w*","name":"storage.type.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"}]}},"match":"\\\\b((?:[A-Z_a-z]\\\\w*\\\\s*\\\\.\\\\s*)*[A-Z_]\\\\w*)\\\\b((?=\\\\s*[\\\\n$A-Z_a-z])|(?=\\\\s*\\\\.\\\\.\\\\.))"}]},"object-types-inherited":{"patterns":[{"include":"#generics"},{"captures":{"1":{"name":"punctuation.separator.period.java"}},"match":"\\\\b(?:[A-Z]\\\\w*\\\\s*(\\\\.)\\\\s*)*[A-Z]\\\\w*\\\\b","name":"entity.other.inherited-class.java"},{"match":",","name":"punctuation.separator.delimiter.java"}]},"objects":{"match":"(?<![$\\\\w])[$A-Z_a-z][$\\\\w]*(?=\\\\s*\\\\.\\\\s*[$\\\\w]+)","name":"variable.other.object.java"},"parameters":{"patterns":[{"match":"\\\\bfinal\\\\b","name":"storage.modifier.java"},{"include":"#annotations"},{"include":"#all-types"},{"include":"#strings"},{"match":"\\\\w+","name":"variable.parameter.java"},{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"\\\\.\\\\.\\\\.","name":"punctuation.definition.parameters.varargs.java"}]},"parens":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"patterns":[{"include":"#code"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.bracket.square.java"}},"end":"]","endCaptures":{"0":{"name":"punctuation.bracket.square.java"}},"patterns":[{"include":"#code"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"patterns":[{"include":"#code"}]}]},"primitive-arrays":{"patterns":[{"begin":"\\\\b(void|boolean|byte|char|short|int|float|long|double)\\\\b\\\\s*(?=\\\\[)","beginCaptures":{"1":{"name":"storage.type.primitive.array.java"}},"end":"(?!\\\\s*\\\\[)","patterns":[{"include":"#comments"},{"include":"#parens"}]}]},"primitive-types":{"match":"\\\\b(void|boolean|byte|char|short|int|float|long|double)\\\\b","name":"storage.type.primitive.java"},"properties":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"keyword.control.new.java"}},"match":"(\\\\.)\\\\s*(new)"},{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"variable.other.object.property.java"}},"match":"(\\\\.)\\\\s*([$A-Z_a-z][$\\\\w]*)(?=\\\\s*\\\\.\\\\s*[$A-Z_a-z][$\\\\w]*)"},{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"variable.other.object.property.java"}},"match":"(\\\\.)\\\\s*([$A-Z_a-z][$\\\\w]*)"},{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"invalid.illegal.identifier.java"}},"match":"(\\\\.)\\\\s*([0-9][$\\\\w]*)"}]},"record":{"begin":"(?=\\\\w?[\\\\w\\\\s]*\\\\brecord\\\\s+[$\\\\w]+)","end":"}","endCaptures":{"0":{"name":"punctuation.section.class.end.bracket.curly.java"}},"name":"meta.record.java","patterns":[{"include":"#storage-modifiers"},{"include":"#generics"},{"include":"#comments"},{"begin":"(record)\\\\s+([$\\\\w]+)(<[$\\\\w]+>)?(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.java"},"2":{"name":"entity.name.type.record.java"},"3":{"patterns":[{"include":"#generics"}]},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.record.identifier.java","patterns":[{"include":"#code"}]},{"begin":"(implements)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.implements.java"}},"end":"(?=\\\\s*\\\\{)","name":"meta.definition.class.implemented.interfaces.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"include":"#record-body"}]},"record-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.class.begin.bracket.curly.java"}},"end":"(?=})","name":"meta.record.body.java","patterns":[{"include":"#record-constructor"},{"include":"#class-body"}]},"record-constructor":{"begin":"(?!new)(?=[<\\\\w].*\\\\s+)(?=([^(/=]|/(?!/))+(?=\\\\{))","end":"(})|(?=;)","endCaptures":{"1":{"name":"punctuation.section.method.end.bracket.curly.java"}},"name":"meta.method.java","patterns":[{"include":"#storage-modifiers"},{"begin":"(\\\\w+)","beginCaptures":{"1":{"name":"entity.name.function.java"}},"end":"(?=\\\\s*\\\\{)","name":"meta.method.identifier.java","patterns":[{"include":"#comments"}]},{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.method.begin.bracket.curly.java"}},"contentName":"meta.method.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},"static-initializer":{"patterns":[{"include":"#anonymous-block-and-instance-initializer"},{"match":"static","name":"storage.modifier.java"}]},"storage-modifiers":{"match":"\\\\b(public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient|volatile|default|strictfp|sealed|non-sealed)\\\\b","name":"storage.modifier.java"},"strings":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.triple.java","patterns":[{"match":"(\\\\\\\\\\"\\"\\")(?!\\")|(\\\\\\\\.)","name":"constant.character.escape.java"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.double.java","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.java"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.single.java","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.java"}]}]},"throws":{"begin":"throws","beginCaptures":{"0":{"name":"storage.modifier.java"}},"end":"(?=[;{])","name":"meta.throwables.java","patterns":[{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"[$A-Z_a-z][$.0-9A-Z_a-z]*","name":"storage.type.java"},{"include":"#comments"}]},"try-catch-finally":{"patterns":[{"begin":"\\\\btry\\\\b","beginCaptures":{"0":{"name":"keyword.control.try.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.try.end.bracket.curly.java"}},"name":"meta.try.java","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.try.resources.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.try.resources.end.bracket.round.java"}},"name":"meta.try.resources.java","patterns":[{"include":"#code"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.try.begin.bracket.curly.java"}},"contentName":"meta.try.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},{"begin":"\\\\b(catch)\\\\b","beginCaptures":{"1":{"name":"keyword.control.catch.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.catch.end.bracket.curly.java"}},"name":"meta.catch.java","patterns":[{"include":"#comments"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"contentName":"meta.catch.parameters.java","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"patterns":[{"include":"#comments"},{"include":"#storage-modifiers"},{"begin":"[$A-Z_a-z][$.0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"storage.type.java"}},"end":"(\\\\|)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.catch.separator.java"}},"patterns":[{"include":"#comments"},{"captures":{"0":{"name":"variable.parameter.java"}},"match":"\\\\w+"}]}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.catch.begin.bracket.curly.java"}},"contentName":"meta.catch.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},{"begin":"\\\\bfinally\\\\b","beginCaptures":{"0":{"name":"keyword.control.finally.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.finally.end.bracket.curly.java"}},"name":"meta.finally.java","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.finally.begin.bracket.curly.java"}},"contentName":"meta.finally.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]}]},"variables":{"begin":"(?=\\\\b((void|boolean|byte|char|short|int|float|long|double)|(?>(\\\\w+\\\\.)*[A-Z_]+\\\\w*))\\\\b\\\\s*(<[],.<>?\\\\[\\\\w\\\\s]*>)?\\\\s*((\\\\[])*)?\\\\s+[$A-Z_a-z][$\\\\w]*([]$,\\\\[\\\\w][],\\\\[\\\\w\\\\s]*)?\\\\s*([:;=]))","end":"(?=[:;=])","name":"meta.definition.variable.java","patterns":[{"captures":{"1":{"name":"variable.other.definition.java"}},"match":"([$A-Z_a-z][$\\\\w]*)(?=\\\\s*(\\\\[])*\\\\s*([,:;=]))"},{"include":"#all-types"},{"include":"#code"}]},"variables-local":{"begin":"(?=\\\\b(var)\\\\b\\\\s+[$A-Z_a-z][$\\\\w]*\\\\s*([:;=]))","end":"(?=[:;=])","name":"meta.definition.variable.local.java","patterns":[{"match":"\\\\bvar\\\\b","name":"storage.type.local.java"},{"captures":{"1":{"name":"variable.other.definition.java"}},"match":"([$A-Z_a-z][$\\\\w]*)(?=\\\\s*(\\\\[])*\\\\s*([:;=]))"},{"include":"#code"}]}},"scopeName":"source.java"}`)),f$e=[m$e]});var vne={};fn(vne,{default:()=>g$e});var h$e,g$e,kne=tr(()=>{h$e=Object.freeze(JSON.parse('{"displayName":"Kotlin","fileTypes":["kt","kts"],"name":"kotlin","patterns":[{"include":"#import"},{"include":"#package"},{"include":"#code"}],"repository":{"annotation-simple":{"match":"(?<!\\\\w)@[.\\\\w]+\\\\b(?!:)","name":"entity.name.type.annotation.kotlin"},"annotation-site":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*(?!\\\\[)","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"$","patterns":[{"include":"#unescaped-annotation"}]},"annotation-site-list":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*\\\\[","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"]","patterns":[{"include":"#unescaped-annotation"}]},"binary-literal":{"match":"0([Bb])[01][01_]*","name":"constant.numeric.binary.kotlin"},"boolean-literal":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.kotlin"},"character":{"begin":"\'","end":"\'","name":"string.quoted.single.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"}]},"class-declaration":{"captures":{"1":{"name":"keyword.hard.class.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(class|(?:fun\\\\s+)?interface)\\\\s+(\\\\b\\\\w+\\\\b|`[^`]+`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"code":{"patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#annotation-simple"},{"include":"#annotation-site-list"},{"include":"#annotation-site"},{"include":"#class-declaration"},{"include":"#object"},{"include":"#type-alias"},{"include":"#function"},{"include":"#variable-declaration"},{"include":"#type-constraint"},{"include":"#type-annotation"},{"include":"#function-call"},{"include":"#method-reference"},{"include":"#key"},{"include":"#string"},{"include":"#string-empty"},{"include":"#string-multiline"},{"include":"#character"},{"include":"#lambda-arrow"},{"include":"#operators"},{"include":"#self-reference"},{"include":"#decimal-literal"},{"include":"#hex-literal"},{"include":"#binary-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"}]},"comment-block":{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.kotlin"},"comment-javadoc":{"patterns":[{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.javadoc.kotlin","patterns":[{"match":"@(return|constructor|receiver|sample|see|author|since|suppress)\\\\b","name":"keyword.other.documentation.javadoc.kotlin"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@p(?:aram|roperty))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@param)\\\\[(\\\\S+)]"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"name":"variable.parameter.kotlin"}},"match":"\\\\{(@link)\\\\s+(\\\\S+)?#([$\\\\w]+\\\\s*\\\\([^()]*\\\\)).*}"}]}]},"comment-line":{"begin":"//","end":"$","name":"comment.line.double-slash.kotlin"},"comments":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#comment-javadoc"}]},"control-keywords":{"match":"\\\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\\\b","name":"keyword.control.kotlin"},"decimal-literal":{"match":"\\\\b\\\\d[_\\\\d]*(\\\\.[_\\\\d]+)?(([Ee])\\\\d+)?([Uu])?([FLf])?\\\\b","name":"constant.numeric.decimal.kotlin"},"function":{"captures":{"1":{"name":"keyword.hard.fun.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]},"4":{"name":"entity.name.type.class.extension.kotlin"},"5":{"name":"entity.name.function.declaration.kotlin"}},"match":"\\\\b(fun)\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?:(?:(\\\\w+)\\\\.)?(\\\\b\\\\w+\\\\b|`[^`]+`))?"},"function-call":{"captures":{"1":{"name":"entity.name.function.call.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\??\\\\.?(\\\\b\\\\w+\\\\b|`[^`]+`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?=[({])"},"hard-keywords":{"match":"\\\\b(as|typeof|is|in)\\\\b","name":"keyword.hard.kotlin"},"hex-literal":{"match":"0([Xx])\\\\h[_\\\\h]*([Uu])?","name":"constant.numeric.hex.kotlin"},"import":{"begin":"\\\\b(import)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.soft.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.import.kotlin","patterns":[{"include":"#comments"},{"include":"#hard-keywords"},{"match":"\\\\*","name":"variable.language.wildcard.kotlin"}]},"key":{"captures":{"1":{"name":"variable.parameter.kotlin"},"2":{"name":"keyword.operator.assignment.kotlin"}},"match":"\\\\b(\\\\w=)\\\\s*(=)"},"keywords":{"patterns":[{"include":"#prefix-modifiers"},{"include":"#postfix-modifiers"},{"include":"#soft-keywords"},{"include":"#hard-keywords"},{"include":"#control-keywords"}]},"lambda-arrow":{"match":"->","name":"storage.type.function.arrow.kotlin"},"method-reference":{"captures":{"1":{"name":"entity.name.function.reference.kotlin"}},"match":"\\\\??::(\\\\b\\\\w+\\\\b|`[^`]+`)"},"null-literal":{"match":"\\\\bnull\\\\b","name":"constant.language.null.kotlin"},"object":{"captures":{"1":{"name":"keyword.hard.object.kotlin"},"2":{"name":"entity.name.type.object.kotlin"}},"match":"\\\\b(object)(?:\\\\s+(\\\\b\\\\w+\\\\b|`[^`]+`))?"},"operators":{"patterns":[{"match":"(===?|!==?|<=|>=|[<>])","name":"keyword.operator.comparison.kotlin"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.kotlin"},{"match":"(=)","name":"keyword.operator.assignment.kotlin"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.kotlin"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.kotlin"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.kotlin"},{"match":"(\\\\.\\\\.)","name":"keyword.operator.range.kotlin"}]},"package":{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.hard.package.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.package.kotlin","patterns":[{"include":"#comments"}]},"postfix-modifiers":{"match":"\\\\b(where|by|get|set)\\\\b","name":"storage.modifier.other.kotlin"},"prefix-modifiers":{"match":"\\\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\\\b","name":"storage.modifier.other.kotlin"},"self-reference":{"match":"\\\\b(this|super)(@\\\\w+)?\\\\b","name":"variable.language.this.kotlin"},"soft-keywords":{"match":"\\\\b(init|catch|finally|field)\\\\b","name":"keyword.soft.kotlin"},"string":{"begin":"(?<!\\")\\"(?!\\")","end":"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"string-empty":{"match":"(?<!\\")\\"\\"(?!\\")","name":"string.quoted.double.kotlin"},"string-escape-bracketed":{"begin":"(?<!\\\\\\\\)(\\\\$\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.template-expression.begin"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.template-expression.end"}},"name":"meta.template.expression.kotlin","patterns":[{"include":"#code"}]},"string-escape-simple":{"match":"(?<!\\\\\\\\)\\\\$\\\\w+\\\\b","name":"variable.string-escape.kotlin"},"string-multiline":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"type-alias":{"captures":{"1":{"name":"keyword.hard.typealias.kotlin"},"2":{"name":"entity.name.type.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(typealias)\\\\s+(\\\\b\\\\w+\\\\b|`[^`]+`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"type-annotation":{"captures":{"0":{"patterns":[{"include":"#type-parameter"}]}},"match":"(?<![:?]):\\\\s*([?\\\\w\\\\s]|->|(?<GROUP>[(<]([^\\"\'()<>]|\\\\g<GROUP>)+[)>]))+"},"type-parameter":{"patterns":[{"match":"\\\\b\\\\w+\\\\b","name":"entity.name.type.kotlin"},{"match":"\\\\b(in|out)\\\\b","name":"storage.modifier.kotlin"}]},"unescaped-annotation":{"match":"\\\\b[.\\\\w]+\\\\b","name":"entity.name.type.annotation.kotlin"},"variable-declaration":{"captures":{"1":{"name":"keyword.hard.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(va[lr])\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"}},"scopeName":"source.kotlin","aliases":["kt","kts"]}')),g$e=[h$e]});var Cne={};fn(Cne,{default:()=>y$e});var b$e,y$e,_ne=tr(()=>{b$e=Object.freeze(JSON.parse(`{"displayName":"Zig","fileTypes":["zig","zon"],"name":"zig","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#keywords"},{"include":"#operators"},{"include":"#punctuation"},{"include":"#numbers"},{"include":"#support"},{"include":"#variables"}],"repository":{"commentContents":{"patterns":[{"match":"\\\\b(TODO|FIXME|XXX|NOTE)\\\\b:?","name":"keyword.todo.zig"}]},"comments":{"patterns":[{"begin":"//[!/](?=[^/])","end":"$","name":"comment.line.documentation.zig","patterns":[{"include":"#commentContents"}]},{"begin":"//","end":"$","name":"comment.line.double-slash.zig","patterns":[{"include":"#commentContents"}]}]},"keywords":{"patterns":[{"match":"\\\\binline\\\\b(?!\\\\s*\\\\bfn\\\\b)","name":"keyword.control.repeat.zig"},{"match":"\\\\b(while|for)\\\\b","name":"keyword.control.repeat.zig"},{"match":"\\\\b(extern|packed|export|pub|noalias|inline|comptime|volatile|align|linksection|threadlocal|allowzero|noinline|callconv)\\\\b","name":"keyword.storage.zig"},{"match":"\\\\b(struct|enum|union|opaque)\\\\b","name":"keyword.structure.zig"},{"match":"\\\\b(asm|unreachable)\\\\b","name":"keyword.statement.zig"},{"match":"\\\\b(break|return|continue|defer|errdefer)\\\\b","name":"keyword.control.flow.zig"},{"match":"\\\\b(resume|suspend|nosuspend)\\\\b","name":"keyword.control.async.zig"},{"match":"\\\\b(try|catch)\\\\b","name":"keyword.control.trycatch.zig"},{"match":"\\\\b(if|else|switch|orelse)\\\\b","name":"keyword.control.conditional.zig"},{"match":"\\\\b(null|undefined)\\\\b","name":"keyword.constant.default.zig"},{"match":"\\\\b(true|false)\\\\b","name":"keyword.constant.bool.zig"},{"match":"\\\\b(test|and|or)\\\\b","name":"keyword.default.zig"},{"match":"\\\\b(bool|void|noreturn|type|error|anyerror|anyframe|anytype|anyopaque)\\\\b","name":"keyword.type.zig"},{"match":"\\\\b(f16|f32|f64|f80|f128|u\\\\d+|i\\\\d+|isize|usize|comptime_int|comptime_float)\\\\b","name":"keyword.type.integer.zig"},{"match":"\\\\b(c_(?:char|short|ushort|int|uint|long|ulong|longlong|ulonglong|longdouble))\\\\b","name":"keyword.type.c.zig"}]},"numbers":{"patterns":[{"match":"\\\\b0x\\\\h[_\\\\h]*(\\\\.\\\\h[_\\\\h]*)?([Pp][-+]?[_\\\\h]+)?\\\\b","name":"constant.numeric.hexfloat.zig"},{"match":"\\\\b[0-9][0-9_]*(\\\\.[0-9][0-9_]*)?([Ee][-+]?[0-9_]+)?\\\\b","name":"constant.numeric.float.zig"},{"match":"\\\\b[0-9][0-9_]*\\\\b","name":"constant.numeric.decimal.zig"},{"match":"\\\\b0x[_\\\\h]+\\\\b","name":"constant.numeric.hexadecimal.zig"},{"match":"\\\\b0o[0-7_]+\\\\b","name":"constant.numeric.octal.zig"},{"match":"\\\\b0b[01_]+\\\\b","name":"constant.numeric.binary.zig"},{"match":"\\\\b[0-9](([EPep][-+])|[0-9A-Z_a-z])*(\\\\.(([EPep][-+])|[0-9A-Z_a-z])*)?([EPep][-+])?[0-9A-Z_a-z]*\\\\b","name":"constant.numeric.invalid.zig"}]},"operators":{"patterns":[{"match":"(?<=\\\\[)\\\\*c(?=])","name":"keyword.operator.c-pointer.zig"},{"match":"\\\\b((and|or))\\\\b|(==|!=|<=|>=|[<>])","name":"keyword.operator.comparison.zig"},{"match":"(-%?|\\\\+%?|\\\\*%?|[%/])=?","name":"keyword.operator.arithmetic.zig"},{"match":"(<<%?|>>|[!\\\\&^|~])=?","name":"keyword.operator.bitwise.zig"},{"match":"(==|\\\\+\\\\+|\\\\*\\\\*|->)","name":"keyword.operator.special.zig"},{"match":"=","name":"keyword.operator.assignment.zig"},{"match":"\\\\?","name":"keyword.operator.question.zig"}]},"punctuation":{"patterns":[{"match":"\\\\.","name":"punctuation.accessor.zig"},{"match":",","name":"punctuation.comma.zig"},{"match":":","name":"punctuation.separator.key-value.zig"},{"match":";","name":"punctuation.terminator.statement.zig"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\([\\"'\\\\\\\\nrt]|(x\\\\h{2})|(u\\\\{\\\\h+}))","name":"constant.character.escape.zig"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.zig"}]},"strings":{"patterns":[{"begin":"\\"","end":"\\"","name":"string.quoted.double.zig","patterns":[{"include":"#stringcontent"}]},{"begin":"\\\\\\\\\\\\\\\\","end":"$","name":"string.multiline.zig"},{"match":"'([^'\\\\\\\\]|\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))'","name":"string.quoted.single.zig"}]},"support":{"patterns":[{"match":"@[A-Z_a-z][0-9A-Z_a-z]*","name":"support.function.builtin.zig"}]},"variables":{"patterns":[{"name":"meta.function.declaration.zig","patterns":[{"captures":{"1":{"name":"storage.type.function.zig"},"2":{"name":"entity.name.type.zig"}},"match":"\\\\b(fn)\\\\s+([A-Z][0-9A-Za-z]*)\\\\b"},{"captures":{"1":{"name":"storage.type.function.zig"},"2":{"name":"entity.name.function.zig"}},"match":"\\\\b(fn)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"begin":"\\\\b(fn)\\\\s+@\\"","beginCaptures":{"1":{"name":"storage.type.function.zig"}},"end":"\\"","name":"entity.name.function.string.zig","patterns":[{"include":"#stringcontent"}]},{"match":"\\\\b(const|var|fn)\\\\b","name":"keyword.default.zig"}]},{"name":"meta.function.call.zig","patterns":[{"match":"([A-Z][0-9A-Za-z]*)(?=\\\\s*\\\\()","name":"entity.name.type.zig"},{"match":"([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\()","name":"entity.name.function.zig"}]},{"name":"meta.variable.zig","patterns":[{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*\\\\b","name":"variable.zig"},{"begin":"@\\"","end":"\\"","name":"variable.string.zig","patterns":[{"include":"#stringcontent"}]}]}]}},"scopeName":"source.zig"}`)),y$e=[b$e]});var Sne={};fn(Sne,{default:()=>w$e});var x$e,w$e,Lne=tr(()=>{iP();x$e=Object.freeze(JSON.parse(`{"displayName":"Lua","name":"lua","patterns":[{"begin":"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])","beginCaptures":{"1":{"name":"keyword.local.lua"},"2":{"name":"keyword.control.lua"}},"end":"(?<=[-\\\\]\\"')\\\\[{}])","name":"meta.function.lua","patterns":[{"include":"#comment"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.lua"}},"end":"(\\\\))|(?=[-\\\\]\\"'\\\\[{}])|(?<!\\\\.)\\\\.(?!\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.finish.lua"}},"name":"meta.parameter.lua","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"constant.language.lua"},"2":{"name":"variable.parameter.function.lua"}},"match":"(\\\\.{3})\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.parameter.function.lua"},{"match":",","name":"punctuation.separator.arguments.lua"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.arguments.lua"}},"end":"(?=[),])","patterns":[{"include":"#emmydoc.type"}]}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)","name":"entity.name.class.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.function.lua"}]},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(\\\\.\\\\h*)?([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\.\\\\h+([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(?![.0-9EPep])","name":"constant.numeric.integer.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(\\\\.\\\\d*)?([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\.\\\\d+([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(?![.0-9EPep])","name":"constant.numeric.integer.lua"},{"include":"#string"},{"captures":{"1":{"name":"punctuation.definition.comment.lua"}},"match":"\\\\A(#!).*$\\\\n?","name":"comment.line.shebang.lua"},{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.goto.lua"},"2":{"name":"string.tag.lua"}},"match":"\\\\b(goto)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)"},{"captures":{"1":{"name":"punctuation.section.embedded.begin.lua"},"2":{"name":"punctuation.section.embedded.end.lua"}},"match":"(::)\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(::)","name":"string.tag.lua"},{"captures":{"0":{"name":"storage.type.attribute.lua"}},"match":"<\\\\s*(c(?:onst|lose))\\\\s*>"},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b","name":"keyword.control.lua"},{"match":"\\\\b(local)\\\\b","name":"keyword.local.lua"},{"captures":{"1":{"name":"keyword.global.lua"}},"match":"^\\\\s*(global)\\\\b(?!\\\\s*=)"},{"match":"\\\\b(function)\\\\b(?![,:])","name":"keyword.control.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(std(?:in|out|err))|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<!\\\\.)\\\\.{3}(?!\\\\.)","name":"constant.language.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(self)\\\\b","name":"variable.language.self.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))","name":"support.function.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))","name":"entity.name.tag.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|create|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))","name":"support.function.library.lua"},{"match":"\\\\b(\\\\|\\\\||&&|!)\\\\b","name":"keyword.operator.lua"},{"match":"\\\\b(and|or|not)\\\\b","name":"keyword.operator.logical.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*(?:[\\"'({]|\\\\[\\\\[))","name":"support.function.any-method.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*\\\\??:)","name":"entity.name.class.lua"},{"match":"(?<=[^.]\\\\.|:)\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.other.attribute.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"variable.other.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.name.function.lua"},{"match":"[-#%*+/^]|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)","name":"keyword.operator.lua"}],"repository":{"comment":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.lua"}},"end":"(?!\\\\G)((?!^)[\\\\t ]+\\\\n)?","endCaptures":{"1":{"name":"punctuation.whitespace.comment.trailing.lua"}},"patterns":[{"begin":"--\\\\[(=*)\\\\[@@@","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"","patterns":[{"include":"source.lua"}]},{"begin":"--\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"----","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua"},{"begin":"---","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.documentation.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua","patterns":[{"include":"#ldoc_tag"}]}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]}]},"emmydoc":{"patterns":[{"begin":"(?<=---)[\\\\t ]*@class","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"[,:]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@enum","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=\\\\n)"}]},{"begin":"(?<=---)[\\\\t ]*@type","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@alias","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*(@operator)\\\\s*(\\\\b[a-z]+)?","beginCaptures":{"1":{"name":"storage.type.annotation.lua"},"2":{"name":"support.function.library.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@cast","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.other.lua"}},"end":"(?=\\\\n)","patterns":[{"include":"#emmydoc.type"},{"match":"([+-|])","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@param","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(\\\\??)","beginCaptures":{"1":{"name":"entity.name.variable.lua"},"2":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@return","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\?","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@field","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"(\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b|(\\\\[))(\\\\??)","beginCaptures":{"2":{"name":"entity.name.variable.lua"},"3":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#string"},{"include":"#emmydoc.type"},{"match":"]","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@generic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","beginCaptures":{"0":{"name":"storage.type.generic.lua"}},"end":"(?=\\\\n)|(,)","endCaptures":{"0":{"name":"keyword.operator.lua"}},"patterns":[{"match":":","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@vararg","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@overload","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@deprecated","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@meta","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@private","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@protected","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@package","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@version","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b","name":"support.class.lua"},{"match":"[,<>]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@see","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"#","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@diagnostic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"([-0-9A-Z_a-z]+)[\\\\t ]*(:)?","beginCaptures":{"1":{"name":"keyword.other.unit"},"2":{"name":"keyword.operator.unit"}},"end":"(?=\\\\n)","patterns":[{"match":"\\\\b([*A-Z_a-z][-0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":",","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@module","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]},{"match":"(?<=---)[\\\\t ]*@(async|nodiscard)","name":"storage.type.annotation.lua"},{"begin":"(?<=---)\\\\|\\\\s*[+>]?","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]}]},"emmydoc.type":{"patterns":[{"begin":"\\\\bfun\\\\b","beginCaptures":{"0":{"name":"keyword.control.lua"}},"end":"(?=[#\\\\s])","patterns":[{"match":"[](),:<>?\\\\[][\\\\t ]*","name":"keyword.operator.lua"},{"match":"([A-Z_a-z][-*.0-9A-Z_a-z]*)(?<!,)[\\\\t ]*(?=\\\\??:)","name":"entity.name.variable.lua"},{"include":"#emmydoc.type"},{"include":"#string"}]},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\basync\\\\b","name":"entity.name.tag.lua"},{"match":"[,:?\`{|}][\\\\t ]*","name":"keyword.operator.lua"},{"begin":"(?=[\\"'*.A-\\\\[_a-z])","end":"(?=[#),:?|}\\\\s])","patterns":[{"match":"([-\\\\]*,.0-9<>A-\\\\[_a-z]+)(?<!,)[\\\\t ]*","name":"support.type.lua"},{"match":"(\\\\.\\\\.\\\\.)[\\\\t ]*","name":"constant.language.lua"},{"include":"#string"}]}]},"escaped_char":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\abfnrtv]","name":"constant.character.escape.lua"},{"match":"\\\\\\\\z[\\\\t\\\\n ]*","name":"constant.character.escape.lua"},{"match":"\\\\\\\\\\\\d{1,3}","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\u\\\\{\\\\h+}","name":"constant.character.escape.unicode.lua"},{"match":"\\\\\\\\.","name":"invalid.illegal.character.escape.lua"}]},"ldoc_tag":{"captures":{"1":{"name":"punctuation.definition.block.tag.ldoc"},"2":{"name":"storage.type.class.ldoc"}},"match":"\\\\G[\\\\t ]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b"},"string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"'[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.single.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\\"[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\`[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua"},{"begin":"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)","beginCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.begin.lua"}},"contentName":"meta.embedded.lua","end":"(]\\\\2])[\\\\t ]*","endCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.end.lua"}},"patterns":[{"include":"source.c"}]},{"begin":"(?<!--)\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"]\\\\1][\\\\t ]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.other.multiline.lua"}]}},"scopeName":"source.lua","embeddedLangs":["c"]}`)),w$e=[...rP,x$e]});var Mne={};fn(Mne,{default:()=>k$e});var v$e,k$e,Ene=tr(()=>{v$e=Object.freeze(JSON.parse('{"displayName":"Makefile","name":"make","patterns":[{"include":"#comment"},{"include":"#variables"},{"include":"#variable-assignment"},{"include":"#directives"},{"include":"#recipe"},{"include":"#target"}],"repository":{"another-variable-braces":{"patterns":[{"begin":"(?<=\\\\{)(?!})","end":"(?=}|((?<!\\\\\\\\)\\\\n))","name":"variable.other.makefile","patterns":[{"include":"#variables"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"another-variable-parentheses":{"patterns":[{"begin":"(?<=\\\\()(?!\\\\))","end":"(?=\\\\)|((?<!\\\\\\\\)\\\\n))","name":"variable.other.makefile","patterns":[{"include":"#variables"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"braces-interpolation":{"begin":"\\\\{","end":"}","patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"builtin-variable-braces":{"patterns":[{"match":"(?<=\\\\{)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*})","name":"variable.language.makefile"}]},"builtin-variable-parentheses":{"patterns":[{"match":"(?<=\\\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*\\\\))","name":"variable.language.makefile"}]},"comma":{"match":",","name":"punctuation.separator.delimeter.comma.makefile"},"comment":{"begin":"(^ +)?((?<!\\\\\\\\)(\\\\\\\\\\\\\\\\)*)(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.makefile"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.makefile"}},"end":"(?=[^\\\\\\\\])$","name":"comment.line.number-sign.makefile","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"directives":{"patterns":[{"begin":"^ *([-s]?include)\\\\b","beginCaptures":{"1":{"name":"keyword.control.include.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variables"},{"match":"%","name":"constant.other.placeholder.makefile"}]},{"begin":"^ *(vpath)\\\\b","beginCaptures":{"1":{"name":"keyword.control.vpath.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variables"},{"match":"%","name":"constant.other.placeholder.makefile"}]},{"begin":"^\\\\s*(?:(override)\\\\s*)?(define)\\\\s*(\\\\S+)\\\\s*([+:?]??=)?(?=\\\\s)","captures":{"1":{"name":"keyword.control.override.makefile"},"2":{"name":"keyword.control.define.makefile"},"3":{"name":"variable.other.makefile"},"4":{"name":"punctuation.separator.key-value.makefile"}},"end":"^\\\\s*(endef)\\\\b","name":"meta.scope.conditional.makefile","patterns":[{"begin":"\\\\G(?!\\\\n)","end":"^","patterns":[{"include":"#comment"}]},{"include":"#variables"},{"include":"#directives"}]},{"begin":"^ *(export)\\\\b","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variable-assignment"},{"match":"\\\\S+","name":"variable.other.makefile"}]},{"begin":"^ *(override|private)\\\\b","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variable-assignment"}]},{"begin":"^ *(un(?:export|define))\\\\b","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"match":"\\\\S+","name":"variable.other.makefile"}]},{"begin":"^\\\\s*(ifn??(?:eq|def))(?=\\\\s)","captures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^\\\\s*(endif)\\\\b","name":"meta.scope.conditional.makefile","patterns":[{"begin":"\\\\G","end":"^","name":"meta.scope.condition.makefile","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#comment"}]},{"begin":"^\\\\s*else(?=\\\\s)\\\\s*(ifn??(?:eq|def))*(?=\\\\s)","beginCaptures":{"0":{"name":"keyword.control.else.makefile"}},"end":"^","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#comment"}]},{"include":"$self"}]}]},"flavor-variable-braces":{"patterns":[{"begin":"(?<=\\\\{)(origin|flavor)\\\\s(?=[^}\\\\s]+\\\\s*})","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"contentName":"variable.other.makefile","end":"(?=})","name":"meta.scope.function-call.makefile","patterns":[{"include":"#variables"}]}]},"flavor-variable-parentheses":{"patterns":[{"begin":"(?<=\\\\()(origin|flavor)\\\\s(?=[^)\\\\s]+\\\\s*\\\\))","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"contentName":"variable.other.makefile","end":"(?=\\\\))","name":"meta.scope.function-call.makefile","patterns":[{"include":"#variables"}]}]},"function-variable-braces":{"patterns":[{"begin":"(?<=\\\\{)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"end":"(?=}|((?<!\\\\\\\\)\\\\n))","name":"meta.scope.function-call.makefile","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#interpolation"},{"match":"[%*]","name":"constant.other.placeholder.makefile"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"function-variable-parentheses":{"patterns":[{"begin":"(?<=\\\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"end":"(?=\\\\)|((?<!\\\\\\\\)\\\\n))","name":"meta.scope.function-call.makefile","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#interpolation"},{"match":"[%*]","name":"constant.other.placeholder.makefile"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"interpolation":{"patterns":[{"include":"#parentheses-interpolation"},{"include":"#braces-interpolation"}]},"parentheses-interpolation":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"recipe":{"begin":"^\\\\t([-+@]*)","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"[^\\\\\\\\]$","name":"meta.scope.recipe.makefile","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"},{"include":"#variables"}]},"simple-variable":{"patterns":[{"match":"\\\\$[^(){}]","name":"variable.language.makefile"}]},"target":{"begin":"^(?!\\\\t)([^:]*)(:)(?!=)","beginCaptures":{"1":{"patterns":[{"captures":{"1":{"name":"support.function.target.$1.makefile"}},"match":"^\\\\s*(\\\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\\\s*$"},{"begin":"(?=\\\\S)","end":"(?=\\\\s|$)","name":"entity.name.function.target.makefile","patterns":[{"include":"#variables"},{"match":"%","name":"constant.other.placeholder.makefile"}]}]},"2":{"name":"punctuation.separator.key-value.makefile"}},"end":"[^\\\\\\\\]$","name":"meta.scope.target.makefile","patterns":[{"begin":"\\\\G","end":"(?=[^\\\\\\\\])$","name":"meta.scope.prerequisites.makefile","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"},{"match":"[%*]","name":"constant.other.placeholder.makefile"},{"include":"#comment"},{"include":"#variables"}]}]},"variable-assignment":{"begin":"(^ *|\\\\G\\\\s*)([^#:=\\\\s]+)\\\\s*((?:(?<![!+:?])|[!+:?])=)","beginCaptures":{"2":{"name":"variable.other.makefile","patterns":[{"include":"#variables"}]},"3":{"name":"punctuation.separator.key-value.makefile"}},"end":"\\\\n","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"},{"include":"#comment"},{"include":"#variables"}]},"variable-braces":{"patterns":[{"begin":"\\\\$\\\\{","captures":{"0":{"name":"punctuation.definition.variable.makefile"}},"end":"}|((?<!\\\\\\\\)\\\\n)","name":"string.interpolated.makefile","patterns":[{"include":"#variables"},{"include":"#builtin-variable-braces"},{"include":"#function-variable-braces"},{"include":"#flavor-variable-braces"},{"include":"#another-variable-braces"}]}]},"variable-parentheses":{"patterns":[{"begin":"\\\\$\\\\(","captures":{"0":{"name":"punctuation.definition.variable.makefile"}},"end":"\\\\)|((?<!\\\\\\\\)\\\\n)","name":"string.interpolated.makefile","patterns":[{"include":"#variables"},{"include":"#builtin-variable-parentheses"},{"include":"#function-variable-parentheses"},{"include":"#flavor-variable-parentheses"},{"include":"#another-variable-parentheses"}]}]},"variables":{"patterns":[{"include":"#simple-variable"},{"include":"#variable-parentheses"},{"include":"#variable-braces"}]}},"scopeName":"source.makefile","aliases":["makefile"]}')),k$e=[v$e]});var C$e,Tne,Rne=tr(()=>{C$e=Object.freeze(JSON.parse(`{"displayName":"Dockerfile","name":"docker","patterns":[{"captures":{"1":{"name":"keyword.other.special-method.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*\\\\b(?i:(FROM))\\\\b.*?\\\\b(?i:(AS))\\\\b"},{"captures":{"1":{"name":"keyword.control.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\\\s"},{"captures":{"1":{"name":"keyword.operator.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(CMD|ENTRYPOINT))\\\\s"},{"include":"#string-character-escape"},{"begin":"\\"","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"\\"","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.double.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"begin":"'","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.single.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.dockerfile"},"2":{"name":"comment.line.number-sign.dockerfile"},"3":{"name":"punctuation.definition.comment.dockerfile"}},"match":"^(\\\\s*)((#).*$\\\\n?)"}],"repository":{"string-character-escape":{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}},"scopeName":"source.dockerfile","aliases":["dockerfile"]}`)),Tne=[C$e]});var Ane={};fn(Ane,{default:()=>Tne});var $ne=tr(()=>{Rne()});var Nne={};fn(Nne,{default:()=>M$e});var M$e,Pne=tr(()=>{"use strict";M$e=void 0});var jne={};fn(jne,{default:()=>E$e});var E$e,One=tr(()=>{E$e=Object.freeze(JSON.parse('{"name":"Pierre Dark","type":"dark","colors":{"editor.background":"#0a0a0a","editor.foreground":"#fafafa","foreground":"#fafafa","focusBorder":"#009fff","selection.background":"#19283c","editor.selectionBackground":"#009fff4d","editor.lineHighlightBackground":"#19283c8c","editorCursor.foreground":"#009fff","editorLineNumber.foreground":"#737373","editorLineNumber.activeForeground":"#a3a3a3","editorIndentGuide.background":"#1d1d1d","editorIndentGuide.activeBackground":"#262626","diffEditor.insertedTextBackground":"#07c4801a","diffEditor.deletedTextBackground":"#ff2e3f1a","sideBar.background":"#171717","sideBar.foreground":"#a3a3a3","sideBar.border":"#0a0a0a","sideBarTitle.foreground":"#fafafa","sideBarSectionHeader.background":"#171717","sideBarSectionHeader.foreground":"#a3a3a3","sideBarSectionHeader.border":"#0a0a0a","activityBar.background":"#171717","activityBar.foreground":"#fafafa","activityBar.border":"#0a0a0a","activityBar.activeBorder":"#009fff","activityBarBadge.background":"#009fff","activityBarBadge.foreground":"#0a0a0a","titleBar.activeBackground":"#171717","titleBar.activeForeground":"#fafafa","titleBar.inactiveBackground":"#171717","titleBar.inactiveForeground":"#737373","titleBar.border":"#0a0a0a","list.activeSelectionBackground":"#19283c99","list.activeSelectionForeground":"#fafafa","list.inactiveSelectionBackground":"#19283c73","list.hoverBackground":"#19283c59","list.focusOutline":"#009fff","tab.activeBackground":"#0a0a0a","tab.activeForeground":"#fafafa","tab.activeBorderTop":"#009fff","tab.inactiveBackground":"#171717","tab.inactiveForeground":"#737373","tab.border":"#0a0a0a","editorGroupHeader.tabsBackground":"#171717","editorGroupHeader.tabsBorder":"#0a0a0a","panel.background":"#171717","panel.border":"#0a0a0a","panelTitle.activeBorder":"#009fff","panelTitle.activeForeground":"#fafafa","panelTitle.inactiveForeground":"#737373","statusBar.background":"#171717","statusBar.foreground":"#a3a3a3","statusBar.border":"#0a0a0a","statusBar.noFolderBackground":"#171717","statusBar.debuggingBackground":"#ffca00","statusBar.debuggingForeground":"#0a0a0a","statusBarItem.remoteBackground":"#171717","statusBarItem.remoteForeground":"#a3a3a3","input.background":"#1d1d1d","input.border":"#1d1d1d","input.foreground":"#fafafa","input.placeholderForeground":"#636363","dropdown.background":"#1d1d1d","dropdown.border":"#1d1d1d","dropdown.foreground":"#fafafa","button.background":"#009fff","button.foreground":"#0a0a0a","button.hoverBackground":"#0190e7","textLink.foreground":"#009fff","textLink.activeForeground":"#009fff","notifications.background":"#101010","notifications.foreground":"#fafafa","notifications.border":"#1d1d1d","notificationToast.border":"#1d1d1d","notificationCenter.border":"#1d1d1d","notificationCenterHeader.background":"#101010","notificationCenterHeader.foreground":"#a3a3a3","notificationLink.foreground":"#009fff","notificationsErrorIcon.foreground":"#ff2e3f","notificationsWarningIcon.foreground":"#ffca00","notificationsInfoIcon.foreground":"#08c0ef","quickInput.background":"#101010","quickInput.foreground":"#fafafa","quickInputTitle.background":"#101010","widget.border":"#1d1d1d","gitDecoration.addedResourceForeground":"#07c480","gitDecoration.conflictingResourceForeground":"#7b43f8","gitDecoration.modifiedResourceForeground":"#009fff","gitDecoration.deletedResourceForeground":"#ff2e3f","gitDecoration.untrackedResourceForeground":"#07c480","gitDecoration.ignoredResourceForeground":"#737373","merge.currentHeaderBackground":"#7b43f84d","merge.currentContentBackground":"#7b43f81f","merge.incomingHeaderBackground":"#08c0ef4d","merge.incomingContentBackground":"#08c0ef1f","editorOverviewRuler.currentContentForeground":"#7b43f8","editorOverviewRuler.incomingContentForeground":"#08c0ef","terminal.titleForeground":"#a3a3a3","terminal.titleInactiveForeground":"#737373","terminal.background":"#171717","terminal.foreground":"#a3a3a3","terminal.ansiBlack":"#171717","terminal.ansiRed":"#ff2e3f","terminal.ansiGreen":"#0dbe4e","terminal.ansiYellow":"#ffca00","terminal.ansiBlue":"#009fff","terminal.ansiMagenta":"#e130ac","terminal.ansiCyan":"#08c0ef","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#171717","terminal.ansiBrightRed":"#ff2e3f","terminal.ansiBrightGreen":"#86c427","terminal.ansiBrightYellow":"#ffca00","terminal.ansiBrightBlue":"#009fff","terminal.ansiBrightMagenta":"#e130ac","terminal.ansiBrightCyan":"#08c0ef","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#737373"}},{"scope":"comment markup.link","settings":{"foreground":"#737373"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#5ecc71"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#5ecc71"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#68cdf2"}},{"scope":"constant","settings":{"foreground":"#ffd452"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#ffd452"}},{"scope":"constant.language","settings":{"foreground":"#68cdf2"}},{"scope":"variable.other.constant","settings":{"foreground":"#ffab16"}},{"scope":"keyword","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control","settings":{"foreground":"#ff678d"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#ff678d"}},{"scope":"token.storage","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#ff678d"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#ffa359"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#ffa359"}},{"scope":"variable.language","settings":{"foreground":"#ffab16"}},{"scope":"variable.parameter.function","settings":{"foreground":"#a3a3a3"}},{"scope":"function.parameter","settings":{"foreground":"#a3a3a3"}},{"scope":"variable.parameter","settings":{"foreground":"#a3a3a3"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#ffd452"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#ffd452"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#9d6afb"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.function","settings":{"foreground":"#9d6afb"}},{"scope":"support.function.console","settings":{"foreground":"#9d6afb"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#d568ea"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#d568ea"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#d568ea"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#ffab16"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.namespace","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator","settings":{"foreground":"#636363"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#ff678d"}},{"scope":"punctuation","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#636363"}},{"scope":"punctuation.terminator","settings":{"foreground":"#636363"}},{"scope":"meta.brace","settings":{"foreground":"#636363"}},{"scope":"meta.brace.square","settings":{"foreground":"#636363"}},{"scope":"meta.brace.round","settings":{"foreground":"#636363"}},{"scope":"function.brace","settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#636363"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#636363"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#9d6afb"}},{"scope":"keyword.operator.module","settings":{"foreground":"#ff678d"}},{"scope":"support.type.object.console","settings":{"foreground":"#ffa359"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#ffab16"}},{"scope":"support.constant.math","settings":{"foreground":"#ffab16"}},{"scope":"support.constant.property.math","settings":{"foreground":"#ffd452"}},{"scope":"support.constant.json","settings":{"foreground":"#ffd452"}},{"scope":"support.type.object.dom","settings":{"foreground":"#08c0ef"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#ffa359"}},{"scope":"support.variable.property.process","settings":{"foreground":"#ffd452"}},{"scope":"meta.property.object","settings":{"foreground":"#ffa359"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#ffa359"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#5ecc71"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#5ecc71"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#ff678d"}},{"scope":"meta.template.expression","settings":{"foreground":"#636363"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#ffa359"}},{"scope":"variable.interpolation","settings":{"foreground":"#ffa359"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#ff678d"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#ff678d"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#d568ea"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#9d6afb"}},{"scope":"support.type.primitive","settings":{"foreground":"#d568ea"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#69b1ff"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#ff855e"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#ffab16"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#636363"}},{"scope":"support.type.python","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#ff678d"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#9d6afb"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#ffd452"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#9d6afb"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#08c0ef"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#636363"}},{"scope":"support.function.std.rust","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#ffab16"}},{"scope":"variable.language.rust","settings":{"foreground":"#ff855e"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#636363"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#ff678d"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#ffd452"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#ff855e"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#636363"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.c","settings":{"foreground":"#636363"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#ffab16"}},{"scope":"source.java","settings":{"foreground":"#ff855e"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#636363"}},{"scope":"meta.method.java","settings":{"foreground":"#9d6afb"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#ff678d"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#ff855e"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#636363"}},{"scope":"import.storage.java","settings":{"foreground":"#ffab16"}},{"scope":"token.package.keyword","settings":{"foreground":"#ff678d"}},{"scope":"token.package","settings":{"foreground":"#636363"}},{"scope":"token.storage.type.java","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#ffab16"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#ff678d"}},{"scope":"entity.name.package.go","settings":{"foreground":"#ffab16"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#ff678d"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#636363"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#ffab16"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#636363"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#ffd452"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.other.class.php","settings":{"foreground":"#ff855e"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#fafafa"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#ff678d"}},{"scope":"storage.type.haskell","settings":{"foreground":"#ffd452"}},{"scope":"storage.type.cs","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#ff855e"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#ffab16"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#ffab16"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#ff855e"}},{"scope":"support.constant.edge","settings":{"foreground":"#ff678d"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#08c0ef"}},{"scope":"support.constant.elm","settings":{"foreground":"#ffd452"}},{"scope":"entity.global.clojure","settings":{"foreground":"#ffab16"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#ff855e"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#08c0ef"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#ff855e"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#ffab16"}},{"scope":"meta.method.groovy","settings":{"foreground":"#9d6afb"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#ff855e"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#5ecc71"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#ffab16"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#ff678d"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#ff855e"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#ffab16"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#ff855e"}},{"scope":"source.makefile","settings":{"foreground":"#ffab16"}},{"scope":"source.ini","settings":{"foreground":"#5ecc71"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#08c0ef"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#636363"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#08c0ef"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#08c0ef"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#ff855e"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control.xi","settings":{"foreground":"#08c0ef"}},{"scope":"invalid.xi","settings":{"foreground":"#636363"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#5ecc71"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#737373"}},{"scope":"constant.character.xi","settings":{"foreground":"#9d6afb"}},{"scope":"accent.xi","settings":{"foreground":"#9d6afb"}},{"scope":"wikiword.xi","settings":{"foreground":"#ffd452"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#fafafa"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#737373"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#ffd452"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#08c0ef"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#ffd452"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#636363"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name","settings":{"foreground":"#636363"}},{"scope":"support.constant.property-value","settings":{"foreground":"#636363"}},{"scope":"support.constant.font-name","settings":{"foreground":"#ffd452"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#60d199","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#9d6afb","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#08c0ef"}},{"scope":"meta.selector","settings":{"foreground":"#ff678d"}},{"scope":"selector.sass","settings":{"foreground":"#ff855e"}},{"scope":"rgb-value","settings":{"foreground":"#08c0ef"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#ffd452"}},{"scope":"less rgb-value","settings":{"foreground":"#ffd452"}},{"scope":"control.elements","settings":{"foreground":"#ffd452"}},{"scope":"keyword.operator.less","settings":{"foreground":"#ffd452"}},{"scope":"entity.name.tag","settings":{"foreground":"#ff855e"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#60d199","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#ff855e"}},{"scope":"meta.tag","settings":{"foreground":"#636363"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#636363"}},{"scope":"markup.heading","settings":{"foreground":"#ff855e"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#ff855e"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#ff855e"}},{"scope":"markup.heading.setext","settings":{"foreground":"#636363"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#ff855e"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#ffd452"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#ffab16"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#ffd452"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#ff678d","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#ff678d"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#ff678d"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#9d6afb"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ff855e"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#5ecc71"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ff855e"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#ff855e"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#ff855e"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#ff855e"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#737373"}},{"scope":"keyword.other.unit","settings":{"foreground":"#ff855e"}},{"scope":"markup.changed.diff","settings":{"foreground":"#ffab16"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#9d6afb"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#5ecc71"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#ff855e"}},{"scope":"string.regexp","settings":{"foreground":"#64d1db"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#ff855e"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#ffd452"}},{"scope":"constant.character.escape","settings":{"foreground":"#61d5c0"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#ff855e"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#ff855e"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#5ecc71"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#ff855e"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#ff855e"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#636363"}},{"scope":"block.scope.end","settings":{"foreground":"#636363"}},{"scope":"block.scope.begin","settings":{"foreground":"#636363"}},{"scope":"token.info-token","settings":{"foreground":"#9d6afb"}},{"scope":"token.warn-token","settings":{"foreground":"#ffd452"}},{"scope":"token.error-token","settings":{"foreground":"#fafafa"}},{"scope":"token.debug-token","settings":{"foreground":"#ff678d"}},{"scope":"invalid.illegal","settings":{"foreground":"#fafafa"}},{"scope":"invalid.broken","settings":{"foreground":"#fafafa"}},{"scope":"invalid.deprecated","settings":{"foreground":"#fafafa"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#fafafa"}}],"semanticTokenColors":{"comment":"#737373","string":"#5ecc71","number":"#68cdf2","regexp":"#64d1db","keyword":"#ff678d","variable":"#ffa359","parameter":"#a3a3a3","property":"#ffa359","function":"#9d6afb","method":"#9d6afb","type":"#d568ea","class":"#d568ea","namespace":"#ffab16","enumMember":"#08c0ef","variable.constant":"#ffd452","variable.defaultLibrary":"#ffab16","decorator":"#69b1ff"}}'))});var Dne={};fn(Dne,{default:()=>T$e});var T$e,Fne=tr(()=>{T$e=Object.freeze(JSON.parse('{"name":"Pierre Dark Soft","type":"dark","colors":{"editor.background":"#171717","editor.foreground":"#d4d4d4","foreground":"#d4d4d4","focusBorder":"#69b1ff","selection.background":"#1f3e5e","editor.selectionBackground":"#69b1ff4d","editor.lineHighlightBackground":"#1f3e5e8c","editorCursor.foreground":"#69b1ff","editorLineNumber.foreground":"#636363","editorLineNumber.activeForeground":"#8a8a8a","editorIndentGuide.background":"#262626","editorIndentGuide.activeBackground":"#2c2c2c","diffEditor.insertedTextBackground":"#60d1991a","diffEditor.deletedTextBackground":"#ff67621a","sideBar.background":"#101010","sideBar.foreground":"#8a8a8a","sideBar.border":"#1d1d1d","sideBarTitle.foreground":"#d4d4d4","sideBarSectionHeader.background":"#101010","sideBarSectionHeader.foreground":"#8a8a8a","sideBarSectionHeader.border":"#1d1d1d","activityBar.background":"#101010","activityBar.foreground":"#d4d4d4","activityBar.border":"#1d1d1d","activityBar.activeBorder":"#69b1ff","activityBarBadge.background":"#69b1ff","activityBarBadge.foreground":"#171717","titleBar.activeBackground":"#101010","titleBar.activeForeground":"#d4d4d4","titleBar.inactiveBackground":"#101010","titleBar.inactiveForeground":"#636363","titleBar.border":"#1d1d1d","list.activeSelectionBackground":"#1f3e5e99","list.activeSelectionForeground":"#d4d4d4","list.inactiveSelectionBackground":"#1f3e5e73","list.hoverBackground":"#1f3e5e59","list.focusOutline":"#69b1ff","tab.activeBackground":"#171717","tab.activeForeground":"#d4d4d4","tab.activeBorderTop":"#69b1ff","tab.inactiveBackground":"#101010","tab.inactiveForeground":"#636363","tab.border":"#1d1d1d","editorGroupHeader.tabsBackground":"#101010","editorGroupHeader.tabsBorder":"#1d1d1d","panel.background":"#101010","panel.border":"#1d1d1d","panelTitle.activeBorder":"#69b1ff","panelTitle.activeForeground":"#d4d4d4","panelTitle.inactiveForeground":"#636363","statusBar.background":"#101010","statusBar.foreground":"#8a8a8a","statusBar.border":"#1d1d1d","statusBar.noFolderBackground":"#101010","statusBar.debuggingBackground":"#ffd452","statusBar.debuggingForeground":"#171717","statusBarItem.remoteBackground":"#101010","statusBarItem.remoteForeground":"#8a8a8a","input.background":"#262626","input.border":"#2c2c2c","input.foreground":"#d4d4d4","input.placeholderForeground":"#525252","dropdown.background":"#262626","dropdown.border":"#2c2c2c","dropdown.foreground":"#d4d4d4","button.background":"#69b1ff","button.foreground":"#171717","button.hoverBackground":"#61a2e8","textLink.foreground":"#69b1ff","textLink.activeForeground":"#69b1ff","notifications.background":"#1d1d1d","notifications.foreground":"#d4d4d4","notifications.border":"#262626","notificationToast.border":"#262626","notificationCenter.border":"#262626","notificationCenterHeader.background":"#1d1d1d","notificationCenterHeader.foreground":"#8a8a8a","notificationLink.foreground":"#69b1ff","notificationsErrorIcon.foreground":"#ff6762","notificationsWarningIcon.foreground":"#ffd452","notificationsInfoIcon.foreground":"#68cdf2","quickInput.background":"#1d1d1d","quickInput.foreground":"#d4d4d4","quickInputTitle.background":"#1d1d1d","widget.border":"#262626","gitDecoration.addedResourceForeground":"#60d199","gitDecoration.conflictingResourceForeground":"#9d6afb","gitDecoration.modifiedResourceForeground":"#69b1ff","gitDecoration.deletedResourceForeground":"#ff6762","gitDecoration.untrackedResourceForeground":"#60d199","gitDecoration.ignoredResourceForeground":"#636363","merge.currentHeaderBackground":"#9d6afb4d","merge.currentContentBackground":"#9d6afb1f","merge.incomingHeaderBackground":"#68cdf24d","merge.incomingContentBackground":"#68cdf21f","editorOverviewRuler.currentContentForeground":"#9d6afb","editorOverviewRuler.incomingContentForeground":"#68cdf2","terminal.titleForeground":"#8a8a8a","terminal.titleInactiveForeground":"#636363","terminal.background":"#101010","terminal.foreground":"#8a8a8a","terminal.ansiBlack":"#171717","terminal.ansiRed":"#ff2e3f","terminal.ansiGreen":"#0dbe4e","terminal.ansiYellow":"#ffca00","terminal.ansiBlue":"#009fff","terminal.ansiMagenta":"#e130ac","terminal.ansiCyan":"#08c0ef","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#171717","terminal.ansiBrightRed":"#ff2e3f","terminal.ansiBrightGreen":"#86c427","terminal.ansiBrightYellow":"#ffca00","terminal.ansiBrightBlue":"#009fff","terminal.ansiBrightMagenta":"#e130ac","terminal.ansiBrightCyan":"#08c0ef","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#636363"}},{"scope":"comment markup.link","settings":{"foreground":"#636363"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#8cda94"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#8cda94"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#96d9f6"}},{"scope":"constant","settings":{"foreground":"#ffde80"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#ffde80"}},{"scope":"constant.language","settings":{"foreground":"#96d9f6"}},{"scope":"variable.other.constant","settings":{"foreground":"#ffbc56"}},{"scope":"keyword","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.control","settings":{"foreground":"#ff91a8"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#ff91a8"}},{"scope":"token.storage","settings":{"foreground":"#ff91a8"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#ff91a8"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#ffba82"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#ffba82"}},{"scope":"variable.language","settings":{"foreground":"#ffbc56"}},{"scope":"variable.parameter.function","settings":{"foreground":"#8a8a8a"}},{"scope":"function.parameter","settings":{"foreground":"#8a8a8a"}},{"scope":"variable.parameter","settings":{"foreground":"#8a8a8a"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#ffde80"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#ffde80"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#ba8ffd"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#ba8ffd"}},{"scope":"entity.name.function","settings":{"foreground":"#ba8ffd"}},{"scope":"support.function.console","settings":{"foreground":"#ba8ffd"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#e290f0"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#e290f0"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e290f0"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e290f0"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#ffbc56"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#e290f0"}},{"scope":"entity.name.namespace","settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator","settings":{"foreground":"#737373"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#ff91a8"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#ff91a8"}},{"scope":"punctuation","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#737373"}},{"scope":"punctuation.terminator","settings":{"foreground":"#737373"}},{"scope":"meta.brace","settings":{"foreground":"#737373"}},{"scope":"meta.brace.square","settings":{"foreground":"#737373"}},{"scope":"meta.brace.round","settings":{"foreground":"#737373"}},{"scope":"function.brace","settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#737373"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#737373"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#ba8ffd"}},{"scope":"keyword.operator.module","settings":{"foreground":"#ff91a8"}},{"scope":"support.type.object.console","settings":{"foreground":"#ffba82"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#ffbc56"}},{"scope":"support.constant.math","settings":{"foreground":"#ffbc56"}},{"scope":"support.constant.property.math","settings":{"foreground":"#ffde80"}},{"scope":"support.constant.json","settings":{"foreground":"#ffde80"}},{"scope":"support.type.object.dom","settings":{"foreground":"#68cdf2"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#ffba82"}},{"scope":"support.variable.property.process","settings":{"foreground":"#ffde80"}},{"scope":"meta.property.object","settings":{"foreground":"#ffba82"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#ffba82"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#8cda94"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#8cda94"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#ff91a8"}},{"scope":"meta.template.expression","settings":{"foreground":"#737373"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#ffba82"}},{"scope":"variable.interpolation","settings":{"foreground":"#ffba82"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#ff91a8"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#ff91a8"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#e290f0"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#ba8ffd"}},{"scope":"support.type.primitive","settings":{"foreground":"#e290f0"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#97c4ff"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#97c4ff"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#97c4ff"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#ffa685"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#ffbc56"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#737373"}},{"scope":"support.type.python","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#ff91a8"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#ba8ffd"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#ffde80"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#ba8ffd"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#68cdf2"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#737373"}},{"scope":"support.function.std.rust","settings":{"foreground":"#ba8ffd"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#ffbc56"}},{"scope":"variable.language.rust","settings":{"foreground":"#ffa685"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#737373"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#ff91a8"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#ffde80"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#ffa685"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#737373"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#ff91a8"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#ff91a8"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#ff91a8"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#ff91a8"}},{"scope":"variable.c","settings":{"foreground":"#737373"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#ffbc56"}},{"scope":"source.java","settings":{"foreground":"#ffa685"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#737373"}},{"scope":"meta.method.java","settings":{"foreground":"#ba8ffd"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#ff91a8"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#ffa685"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#737373"}},{"scope":"import.storage.java","settings":{"foreground":"#ffbc56"}},{"scope":"token.package.keyword","settings":{"foreground":"#ff91a8"}},{"scope":"token.package","settings":{"foreground":"#737373"}},{"scope":"token.storage.type.java","settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#ffbc56"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#ff91a8"}},{"scope":"entity.name.package.go","settings":{"foreground":"#ffbc56"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#ff91a8"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#737373"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#ffbc56"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#ba8ffd"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#737373"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#ffde80"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#ba8ffd"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#ff91a8"}},{"scope":"variable.other.class.php","settings":{"foreground":"#ffa685"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#d4d4d4"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#ff91a8"}},{"scope":"storage.type.haskell","settings":{"foreground":"#ffde80"}},{"scope":"storage.type.cs","settings":{"foreground":"#ffbc56"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#ffa685"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#ffbc56"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#ffbc56"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#ffa685"}},{"scope":"support.constant.edge","settings":{"foreground":"#ff91a8"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#68cdf2"}},{"scope":"support.constant.elm","settings":{"foreground":"#ffde80"}},{"scope":"entity.global.clojure","settings":{"foreground":"#ffbc56"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#ffa685"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#68cdf2"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#ffa685"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#ffbc56"}},{"scope":"meta.method.groovy","settings":{"foreground":"#ba8ffd"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#ffa685"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#8cda94"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#ffbc56"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#ff91a8"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#ffa685"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#ffbc56"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#ffa685"}},{"scope":"source.makefile","settings":{"foreground":"#ffbc56"}},{"scope":"source.ini","settings":{"foreground":"#8cda94"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#68cdf2"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#737373"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#68cdf2"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#ff91a8"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#ff91a8"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#ffbc56"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#68cdf2"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#ffa685"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.control.xi","settings":{"foreground":"#68cdf2"}},{"scope":"invalid.xi","settings":{"foreground":"#737373"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#8cda94"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#636363"}},{"scope":"constant.character.xi","settings":{"foreground":"#ba8ffd"}},{"scope":"accent.xi","settings":{"foreground":"#ba8ffd"}},{"scope":"wikiword.xi","settings":{"foreground":"#ffde80"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#d4d4d4"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#636363"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#ffde80"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#68cdf2"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#ffde80"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#737373"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name","settings":{"foreground":"#737373"}},{"scope":"support.constant.property-value","settings":{"foreground":"#737373"}},{"scope":"support.constant.font-name","settings":{"foreground":"#ffde80"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#8eddb2","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#ba8ffd","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#68cdf2"}},{"scope":"meta.selector","settings":{"foreground":"#ff91a8"}},{"scope":"selector.sass","settings":{"foreground":"#ffa685"}},{"scope":"rgb-value","settings":{"foreground":"#68cdf2"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#ffde80"}},{"scope":"less rgb-value","settings":{"foreground":"#ffde80"}},{"scope":"control.elements","settings":{"foreground":"#ffde80"}},{"scope":"keyword.operator.less","settings":{"foreground":"#ffde80"}},{"scope":"entity.name.tag","settings":{"foreground":"#ffa685"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#8eddb2","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#ffa685"}},{"scope":"meta.tag","settings":{"foreground":"#737373"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#737373"}},{"scope":"markup.heading","settings":{"foreground":"#ffa685"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#ba8ffd"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#ffa685"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#ffa685"}},{"scope":"markup.heading.setext","settings":{"foreground":"#737373"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#ffa685"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#ffde80"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#ffbc56"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#ffde80"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#ff91a8","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#ff91a8"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#ff91a8"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#ba8ffd"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ffa685"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#8cda94"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffa685"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#ffa685"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#ffa685"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#ffa685"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#636363"}},{"scope":"keyword.other.unit","settings":{"foreground":"#ffa685"}},{"scope":"markup.changed.diff","settings":{"foreground":"#ffbc56"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#ba8ffd"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#8cda94"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#ffa685"}},{"scope":"string.regexp","settings":{"foreground":"#92dde4"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#ffa685"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#ffde80"}},{"scope":"constant.character.escape","settings":{"foreground":"#8fe0d0"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#ffa685"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#ffa685"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#8cda94"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#ffa685"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#ffa685"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#737373"}},{"scope":"block.scope.end","settings":{"foreground":"#737373"}},{"scope":"block.scope.begin","settings":{"foreground":"#737373"}},{"scope":"token.info-token","settings":{"foreground":"#ba8ffd"}},{"scope":"token.warn-token","settings":{"foreground":"#ffde80"}},{"scope":"token.error-token","settings":{"foreground":"#d4d4d4"}},{"scope":"token.debug-token","settings":{"foreground":"#ff91a8"}},{"scope":"invalid.illegal","settings":{"foreground":"#d4d4d4"}},{"scope":"invalid.broken","settings":{"foreground":"#d4d4d4"}},{"scope":"invalid.deprecated","settings":{"foreground":"#d4d4d4"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#d4d4d4"}}],"semanticTokenColors":{"comment":"#636363","string":"#8cda94","number":"#96d9f6","regexp":"#92dde4","keyword":"#ff91a8","variable":"#ffba82","parameter":"#8a8a8a","property":"#ffba82","function":"#ba8ffd","method":"#ba8ffd","type":"#e290f0","class":"#e290f0","namespace":"#ffbc56","enumMember":"#68cdf2","variable.constant":"#ffde80","variable.defaultLibrary":"#ffbc56","decorator":"#97c4ff"}}'))});var Bne={};fn(Bne,{default:()=>R$e});var R$e,zne=tr(()=>{R$e=Object.freeze(JSON.parse('{"name":"Pierre Light","type":"light","colors":{"editor.background":"#ffffff","editor.foreground":"#0a0a0a","foreground":"#0a0a0a","focusBorder":"#009fff","selection.background":"#dfebff","editor.selectionBackground":"#009fff2e","editor.lineHighlightBackground":"#dfebff8c","editorCursor.foreground":"#009fff","editorLineNumber.foreground":"#737373","editorLineNumber.activeForeground":"#525252","editorIndentGuide.background":"#e5e5e5","editorIndentGuide.activeBackground":"#d4d4d4","diffEditor.insertedTextBackground":"#18a46c33","diffEditor.deletedTextBackground":"#d52c3633","sideBar.background":"#f5f5f5","sideBar.foreground":"#525252","sideBar.border":"#e5e5e5","sideBarTitle.foreground":"#0a0a0a","sideBarSectionHeader.background":"#f5f5f5","sideBarSectionHeader.foreground":"#525252","sideBarSectionHeader.border":"#e5e5e5","activityBar.background":"#f5f5f5","activityBar.foreground":"#0a0a0a","activityBar.border":"#e5e5e5","activityBar.activeBorder":"#009fff","activityBarBadge.background":"#009fff","activityBarBadge.foreground":"#ffffff","titleBar.activeBackground":"#f5f5f5","titleBar.activeForeground":"#0a0a0a","titleBar.inactiveBackground":"#f5f5f5","titleBar.inactiveForeground":"#737373","titleBar.border":"#e5e5e5","list.activeSelectionBackground":"#dfebffcc","list.activeSelectionForeground":"#0a0a0a","list.inactiveSelectionBackground":"#dfebff73","list.hoverBackground":"#dfebff59","list.focusOutline":"#009fff","tab.activeBackground":"#ffffff","tab.activeForeground":"#0a0a0a","tab.activeBorderTop":"#009fff","tab.inactiveBackground":"#f5f5f5","tab.inactiveForeground":"#737373","tab.border":"#e5e5e5","editorGroupHeader.tabsBackground":"#f5f5f5","editorGroupHeader.tabsBorder":"#e5e5e5","panel.background":"#f5f5f5","panel.border":"#e5e5e5","panelTitle.activeBorder":"#009fff","panelTitle.activeForeground":"#0a0a0a","panelTitle.inactiveForeground":"#737373","statusBar.background":"#f5f5f5","statusBar.foreground":"#525252","statusBar.border":"#e5e5e5","statusBar.noFolderBackground":"#f5f5f5","statusBar.debuggingBackground":"#d5a910","statusBar.debuggingForeground":"#ffffff","statusBarItem.remoteBackground":"#f5f5f5","statusBarItem.remoteForeground":"#525252","input.background":"#ededed","input.border":"#d4d4d4","input.foreground":"#0a0a0a","input.placeholderForeground":"#8a8a8a","dropdown.background":"#ededed","dropdown.border":"#d4d4d4","dropdown.foreground":"#0a0a0a","button.background":"#009fff","button.foreground":"#ffffff","button.hoverBackground":"#1aa9ff","textLink.foreground":"#009fff","textLink.activeForeground":"#009fff","notifications.background":"#f7f7f7","notifications.foreground":"#0a0a0a","notifications.border":"#e5e5e5","notificationToast.border":"#e5e5e5","notificationCenter.border":"#e5e5e5","notificationCenterHeader.background":"#f7f7f7","notificationCenterHeader.foreground":"#525252","notificationLink.foreground":"#009fff","notificationsErrorIcon.foreground":"#d52c36","notificationsWarningIcon.foreground":"#d5a910","notificationsInfoIcon.foreground":"#1ca1c7","quickInput.background":"#f7f7f7","quickInput.foreground":"#0a0a0a","quickInputTitle.background":"#f7f7f7","widget.border":"#e5e5e5","gitDecoration.addedResourceForeground":"#18a46c","gitDecoration.conflictingResourceForeground":"#693acf","gitDecoration.modifiedResourceForeground":"#009fff","gitDecoration.deletedResourceForeground":"#d52c36","gitDecoration.untrackedResourceForeground":"#18a46c","gitDecoration.ignoredResourceForeground":"#737373","merge.currentHeaderBackground":"#693acf33","merge.currentContentBackground":"#693acf14","merge.incomingHeaderBackground":"#1ca1c733","merge.incomingContentBackground":"#1ca1c714","editorOverviewRuler.currentContentForeground":"#693acf","editorOverviewRuler.incomingContentForeground":"#1ca1c7","terminal.titleForeground":"#525252","terminal.titleInactiveForeground":"#737373","terminal.background":"#f5f5f5","terminal.foreground":"#525252","terminal.ansiBlack":"#1d1d1d","terminal.ansiRed":"#d52c36","terminal.ansiGreen":"#18a46c","terminal.ansiYellow":"#d5a910","terminal.ansiBlue":"#1a85d4","terminal.ansiMagenta":"#bd2e90","terminal.ansiCyan":"#1ca1c7","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#1d1d1d","terminal.ansiBrightRed":"#d52c36","terminal.ansiBrightGreen":"#77a42a","terminal.ansiBrightYellow":"#d5a910","terminal.ansiBrightBlue":"#1a85d4","terminal.ansiBrightMagenta":"#bd2e90","terminal.ansiBrightCyan":"#1ca1c7","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#737373"}},{"scope":"comment markup.link","settings":{"foreground":"#737373"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#199f43"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#199f43"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#1ca1c7"}},{"scope":"constant","settings":{"foreground":"#d5a910"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#d5a910"}},{"scope":"constant.language","settings":{"foreground":"#1ca1c7"}},{"scope":"variable.other.constant","settings":{"foreground":"#d5901c"}},{"scope":"keyword","settings":{"foreground":"#d32a61"}},{"scope":"keyword.control","settings":{"foreground":"#d32a61"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#d32a61"}},{"scope":"token.storage","settings":{"foreground":"#d32a61"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#d32a61"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#d47628"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#d47628"}},{"scope":"variable.language","settings":{"foreground":"#d5901c"}},{"scope":"variable.parameter.function","settings":{"foreground":"#636363"}},{"scope":"function.parameter","settings":{"foreground":"#636363"}},{"scope":"variable.parameter","settings":{"foreground":"#636363"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#d5a910"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#d5a910"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#693acf"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#693acf"}},{"scope":"entity.name.function","settings":{"foreground":"#693acf"}},{"scope":"support.function.console","settings":{"foreground":"#693acf"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#a631be"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#a631be"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#a631be"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#a631be"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#d5901c"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#a631be"}},{"scope":"entity.name.namespace","settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator","settings":{"foreground":"#636363"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#d32a61"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#d32a61"}},{"scope":"punctuation","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#636363"}},{"scope":"punctuation.terminator","settings":{"foreground":"#636363"}},{"scope":"meta.brace","settings":{"foreground":"#636363"}},{"scope":"meta.brace.square","settings":{"foreground":"#636363"}},{"scope":"meta.brace.round","settings":{"foreground":"#636363"}},{"scope":"function.brace","settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#636363"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#636363"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#693acf"}},{"scope":"keyword.operator.module","settings":{"foreground":"#d32a61"}},{"scope":"support.type.object.console","settings":{"foreground":"#d47628"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#d5901c"}},{"scope":"support.constant.math","settings":{"foreground":"#d5901c"}},{"scope":"support.constant.property.math","settings":{"foreground":"#d5a910"}},{"scope":"support.constant.json","settings":{"foreground":"#d5a910"}},{"scope":"support.type.object.dom","settings":{"foreground":"#08c0ef"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#d47628"}},{"scope":"support.variable.property.process","settings":{"foreground":"#d5a910"}},{"scope":"meta.property.object","settings":{"foreground":"#d47628"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#d47628"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#199f43"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#199f43"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#d32a61"}},{"scope":"meta.template.expression","settings":{"foreground":"#636363"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#d47628"}},{"scope":"variable.interpolation","settings":{"foreground":"#d47628"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#d32a61"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#d32a61"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#a631be"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#693acf"}},{"scope":"support.type.primitive","settings":{"foreground":"#a631be"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#1a85d4"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#1a85d4"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#1a85d4"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#d5512f"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#d5901c"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#636363"}},{"scope":"support.type.python","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#d32a61"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#693acf"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d5a910"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#693acf"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#08c0ef"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#636363"}},{"scope":"support.function.std.rust","settings":{"foreground":"#693acf"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#d5901c"}},{"scope":"variable.language.rust","settings":{"foreground":"#d5512f"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#636363"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#d32a61"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#d5a910"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#d5512f"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#636363"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#d32a61"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#d32a61"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#d32a61"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#d32a61"}},{"scope":"variable.c","settings":{"foreground":"#636363"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#d5901c"}},{"scope":"source.java","settings":{"foreground":"#d5512f"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#636363"}},{"scope":"meta.method.java","settings":{"foreground":"#693acf"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#d32a61"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#d5512f"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#636363"}},{"scope":"import.storage.java","settings":{"foreground":"#d5901c"}},{"scope":"token.package.keyword","settings":{"foreground":"#d32a61"}},{"scope":"token.package","settings":{"foreground":"#636363"}},{"scope":"token.storage.type.java","settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#d5901c"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#d32a61"}},{"scope":"entity.name.package.go","settings":{"foreground":"#d5901c"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#d32a61"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#636363"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#d5901c"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#693acf"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#636363"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#d5a910"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#693acf"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#d32a61"}},{"scope":"variable.other.class.php","settings":{"foreground":"#d5512f"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#0a0a0a"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#d32a61"}},{"scope":"storage.type.haskell","settings":{"foreground":"#d5a910"}},{"scope":"storage.type.cs","settings":{"foreground":"#d5901c"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#d5512f"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#d5901c"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#d5901c"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#d5512f"}},{"scope":"support.constant.edge","settings":{"foreground":"#d32a61"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#08c0ef"}},{"scope":"support.constant.elm","settings":{"foreground":"#d5a910"}},{"scope":"entity.global.clojure","settings":{"foreground":"#d5901c"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#d5512f"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#08c0ef"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#d5512f"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#d5901c"}},{"scope":"meta.method.groovy","settings":{"foreground":"#693acf"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#d5512f"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#199f43"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#d5901c"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#d32a61"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#d5512f"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#d5901c"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#d5512f"}},{"scope":"source.makefile","settings":{"foreground":"#d5901c"}},{"scope":"source.ini","settings":{"foreground":"#199f43"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#08c0ef"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#636363"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#08c0ef"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#d32a61"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#d32a61"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#d5901c"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#08c0ef"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#d5512f"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#d32a61"}},{"scope":"keyword.control.xi","settings":{"foreground":"#08c0ef"}},{"scope":"invalid.xi","settings":{"foreground":"#636363"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#199f43"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#737373"}},{"scope":"constant.character.xi","settings":{"foreground":"#693acf"}},{"scope":"accent.xi","settings":{"foreground":"#693acf"}},{"scope":"wikiword.xi","settings":{"foreground":"#d5a910"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#0a0a0a"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#737373"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#d5a910"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#08c0ef"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#d5a910"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#636363"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name","settings":{"foreground":"#636363"}},{"scope":"support.constant.property-value","settings":{"foreground":"#636363"}},{"scope":"support.constant.font-name","settings":{"foreground":"#d5a910"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#18a46c","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#693acf","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#08c0ef"}},{"scope":"meta.selector","settings":{"foreground":"#d32a61"}},{"scope":"selector.sass","settings":{"foreground":"#d5512f"}},{"scope":"rgb-value","settings":{"foreground":"#08c0ef"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d5a910"}},{"scope":"less rgb-value","settings":{"foreground":"#d5a910"}},{"scope":"control.elements","settings":{"foreground":"#d5a910"}},{"scope":"keyword.operator.less","settings":{"foreground":"#d5a910"}},{"scope":"entity.name.tag","settings":{"foreground":"#d5512f"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#18a46c","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#d5512f"}},{"scope":"meta.tag","settings":{"foreground":"#636363"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#636363"}},{"scope":"markup.heading","settings":{"foreground":"#d5512f"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#693acf"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#d5512f"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#d5512f"}},{"scope":"markup.heading.setext","settings":{"foreground":"#636363"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#d5512f"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#d5a910"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#d5901c"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d5a910"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#d32a61","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#d32a61"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#d32a61"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#693acf"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#d5512f"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#199f43"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d5512f"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#d5512f"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#d5512f"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#d5512f"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#737373"}},{"scope":"keyword.other.unit","settings":{"foreground":"#d5512f"}},{"scope":"markup.changed.diff","settings":{"foreground":"#d5901c"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#693acf"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#199f43"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#d5512f"}},{"scope":"string.regexp","settings":{"foreground":"#17a5af"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#d5512f"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d5a910"}},{"scope":"constant.character.escape","settings":{"foreground":"#16a994"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#d5512f"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#d5512f"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#199f43"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#d5512f"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#d5512f"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#636363"}},{"scope":"block.scope.end","settings":{"foreground":"#636363"}},{"scope":"block.scope.begin","settings":{"foreground":"#636363"}},{"scope":"token.info-token","settings":{"foreground":"#693acf"}},{"scope":"token.warn-token","settings":{"foreground":"#d5a910"}},{"scope":"token.error-token","settings":{"foreground":"#0a0a0a"}},{"scope":"token.debug-token","settings":{"foreground":"#d32a61"}},{"scope":"invalid.illegal","settings":{"foreground":"#0a0a0a"}},{"scope":"invalid.broken","settings":{"foreground":"#0a0a0a"}},{"scope":"invalid.deprecated","settings":{"foreground":"#0a0a0a"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#0a0a0a"}}],"semanticTokenColors":{"comment":"#737373","string":"#199f43","number":"#1ca1c7","regexp":"#17a5af","keyword":"#d32a61","variable":"#d47628","parameter":"#636363","property":"#d47628","function":"#693acf","method":"#693acf","type":"#a631be","class":"#a631be","namespace":"#d5901c","enumMember":"#08c0ef","variable.constant":"#d5a910","variable.defaultLibrary":"#d5901c","decorator":"#1a85d4"}}'))});var qne={};fn(qne,{default:()=>A$e});var A$e,Hne=tr(()=>{A$e=Object.freeze(JSON.parse('{"name":"Pierre Light Soft","type":"light","colors":{"editor.background":"#ffffff","editor.foreground":"#525252","foreground":"#525252","focusBorder":"#009fff","selection.background":"#dfebff","editor.selectionBackground":"#009fff2e","editor.lineHighlightBackground":"#dfebff8c","editorCursor.foreground":"#009fff","editorLineNumber.foreground":"#8a8a8a","editorLineNumber.activeForeground":"#737373","editorIndentGuide.background":"#ededed","editorIndentGuide.activeBackground":"#e5e5e5","diffEditor.insertedTextBackground":"#07c48033","diffEditor.deletedTextBackground":"#ff2e3f33","sideBar.background":"#f7f7f7","sideBar.foreground":"#737373","sideBar.border":"#ededed","sideBarTitle.foreground":"#525252","sideBarSectionHeader.background":"#f7f7f7","sideBarSectionHeader.foreground":"#737373","sideBarSectionHeader.border":"#ededed","activityBar.background":"#f7f7f7","activityBar.foreground":"#525252","activityBar.border":"#ededed","activityBar.activeBorder":"#009fff","activityBarBadge.background":"#009fff","activityBarBadge.foreground":"#ffffff","titleBar.activeBackground":"#f7f7f7","titleBar.activeForeground":"#525252","titleBar.inactiveBackground":"#f7f7f7","titleBar.inactiveForeground":"#8a8a8a","titleBar.border":"#ededed","list.activeSelectionBackground":"#dfebffcc","list.activeSelectionForeground":"#525252","list.inactiveSelectionBackground":"#dfebff73","list.hoverBackground":"#dfebff59","list.focusOutline":"#009fff","tab.activeBackground":"#ffffff","tab.activeForeground":"#525252","tab.activeBorderTop":"#009fff","tab.inactiveBackground":"#f7f7f7","tab.inactiveForeground":"#8a8a8a","tab.border":"#ededed","editorGroupHeader.tabsBackground":"#f7f7f7","editorGroupHeader.tabsBorder":"#ededed","panel.background":"#f7f7f7","panel.border":"#ededed","panelTitle.activeBorder":"#009fff","panelTitle.activeForeground":"#525252","panelTitle.inactiveForeground":"#8a8a8a","statusBar.background":"#f7f7f7","statusBar.foreground":"#737373","statusBar.border":"#ededed","statusBar.noFolderBackground":"#f7f7f7","statusBar.debuggingBackground":"#ffca00","statusBar.debuggingForeground":"#ffffff","statusBarItem.remoteBackground":"#f7f7f7","statusBarItem.remoteForeground":"#737373","input.background":"#f5f5f5","input.border":"#d4d4d4","input.foreground":"#525252","input.placeholderForeground":"#a3a3a3","dropdown.background":"#f5f5f5","dropdown.border":"#d4d4d4","dropdown.foreground":"#525252","button.background":"#009fff","button.foreground":"#ffffff","button.hoverBackground":"#1aa9ff","textLink.foreground":"#009fff","textLink.activeForeground":"#009fff","notifications.background":"#fafafa","notifications.foreground":"#525252","notifications.border":"#e5e5e5","notificationToast.border":"#e5e5e5","notificationCenter.border":"#e5e5e5","notificationCenterHeader.background":"#fafafa","notificationCenterHeader.foreground":"#737373","notificationLink.foreground":"#009fff","notificationsErrorIcon.foreground":"#ff2e3f","notificationsWarningIcon.foreground":"#ffca00","notificationsInfoIcon.foreground":"#08c0ef","quickInput.background":"#fafafa","quickInput.foreground":"#525252","quickInputTitle.background":"#fafafa","widget.border":"#e5e5e5","gitDecoration.addedResourceForeground":"#07c480","gitDecoration.conflictingResourceForeground":"#7b43f8","gitDecoration.modifiedResourceForeground":"#009fff","gitDecoration.deletedResourceForeground":"#ff2e3f","gitDecoration.untrackedResourceForeground":"#07c480","gitDecoration.ignoredResourceForeground":"#8a8a8a","merge.currentHeaderBackground":"#7b43f833","merge.currentContentBackground":"#7b43f814","merge.incomingHeaderBackground":"#08c0ef33","merge.incomingContentBackground":"#08c0ef14","editorOverviewRuler.currentContentForeground":"#7b43f8","editorOverviewRuler.incomingContentForeground":"#08c0ef","terminal.titleForeground":"#737373","terminal.titleInactiveForeground":"#8a8a8a","terminal.background":"#f7f7f7","terminal.foreground":"#737373","terminal.ansiBlack":"#1d1d1d","terminal.ansiRed":"#ff2e3f","terminal.ansiGreen":"#0dbe4e","terminal.ansiYellow":"#ffca00","terminal.ansiBlue":"#009fff","terminal.ansiMagenta":"#e130ac","terminal.ansiCyan":"#08c0ef","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#1d1d1d","terminal.ansiBrightRed":"#ff2e3f","terminal.ansiBrightGreen":"#86c427","terminal.ansiBrightYellow":"#ffca00","terminal.ansiBrightBlue":"#009fff","terminal.ansiBrightMagenta":"#e130ac","terminal.ansiBrightCyan":"#08c0ef","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#8a8a8a"}},{"scope":"comment markup.link","settings":{"foreground":"#8a8a8a"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#0dbe4e"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#0dbe4e"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#08c0ef"}},{"scope":"constant","settings":{"foreground":"#ffca00"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#ffca00"}},{"scope":"constant.language","settings":{"foreground":"#08c0ef"}},{"scope":"variable.other.constant","settings":{"foreground":"#ffab16"}},{"scope":"keyword","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control","settings":{"foreground":"#ff678d"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#ff678d"}},{"scope":"token.storage","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#ff678d"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#fe8c2c"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#fe8c2c"}},{"scope":"variable.language","settings":{"foreground":"#ffab16"}},{"scope":"variable.parameter.function","settings":{"foreground":"#737373"}},{"scope":"function.parameter","settings":{"foreground":"#737373"}},{"scope":"variable.parameter","settings":{"foreground":"#737373"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#ffca00"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#ffca00"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#9d6afb"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.function","settings":{"foreground":"#9d6afb"}},{"scope":"support.function.console","settings":{"foreground":"#9d6afb"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#d568ea"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#d568ea"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#d568ea"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#ffab16"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.namespace","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator","settings":{"foreground":"#737373"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#ff678d"}},{"scope":"punctuation","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#737373"}},{"scope":"punctuation.terminator","settings":{"foreground":"#737373"}},{"scope":"meta.brace","settings":{"foreground":"#737373"}},{"scope":"meta.brace.square","settings":{"foreground":"#737373"}},{"scope":"meta.brace.round","settings":{"foreground":"#737373"}},{"scope":"function.brace","settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#737373"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#737373"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#9d6afb"}},{"scope":"keyword.operator.module","settings":{"foreground":"#ff678d"}},{"scope":"support.type.object.console","settings":{"foreground":"#fe8c2c"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#ffab16"}},{"scope":"support.constant.math","settings":{"foreground":"#ffab16"}},{"scope":"support.constant.property.math","settings":{"foreground":"#ffca00"}},{"scope":"support.constant.json","settings":{"foreground":"#ffca00"}},{"scope":"support.type.object.dom","settings":{"foreground":"#68cdf2"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#fe8c2c"}},{"scope":"support.variable.property.process","settings":{"foreground":"#ffca00"}},{"scope":"meta.property.object","settings":{"foreground":"#fe8c2c"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#fe8c2c"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#0dbe4e"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#0dbe4e"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#ff678d"}},{"scope":"meta.template.expression","settings":{"foreground":"#737373"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#fe8c2c"}},{"scope":"variable.interpolation","settings":{"foreground":"#fe8c2c"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#ff678d"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#ff678d"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#d568ea"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#9d6afb"}},{"scope":"support.type.primitive","settings":{"foreground":"#d568ea"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#69b1ff"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#ff5d36"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#ffab16"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#737373"}},{"scope":"support.type.python","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#ff678d"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#9d6afb"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#ffca00"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#9d6afb"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#68cdf2"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#737373"}},{"scope":"support.function.std.rust","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#ffab16"}},{"scope":"variable.language.rust","settings":{"foreground":"#ff5d36"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#737373"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#ff678d"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#ffca00"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#ff5d36"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#737373"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.c","settings":{"foreground":"#737373"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#ffab16"}},{"scope":"source.java","settings":{"foreground":"#ff5d36"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#737373"}},{"scope":"meta.method.java","settings":{"foreground":"#9d6afb"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#ff678d"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#ff5d36"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#737373"}},{"scope":"import.storage.java","settings":{"foreground":"#ffab16"}},{"scope":"token.package.keyword","settings":{"foreground":"#ff678d"}},{"scope":"token.package","settings":{"foreground":"#737373"}},{"scope":"token.storage.type.java","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#ffab16"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#ff678d"}},{"scope":"entity.name.package.go","settings":{"foreground":"#ffab16"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#ff678d"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#737373"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#ffab16"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#737373"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#ffca00"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.other.class.php","settings":{"foreground":"#ff5d36"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#171717"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#ff678d"}},{"scope":"storage.type.haskell","settings":{"foreground":"#ffca00"}},{"scope":"storage.type.cs","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#ff5d36"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#ffab16"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#ffab16"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#ff5d36"}},{"scope":"support.constant.edge","settings":{"foreground":"#ff678d"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#68cdf2"}},{"scope":"support.constant.elm","settings":{"foreground":"#ffca00"}},{"scope":"entity.global.clojure","settings":{"foreground":"#ffab16"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#ff5d36"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#68cdf2"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#ff5d36"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#ffab16"}},{"scope":"meta.method.groovy","settings":{"foreground":"#9d6afb"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#ff5d36"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#0dbe4e"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#ffab16"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#ff678d"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#ff5d36"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#ffab16"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#ff5d36"}},{"scope":"source.makefile","settings":{"foreground":"#ffab16"}},{"scope":"source.ini","settings":{"foreground":"#0dbe4e"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#68cdf2"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#737373"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#68cdf2"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#68cdf2"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#ff5d36"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control.xi","settings":{"foreground":"#68cdf2"}},{"scope":"invalid.xi","settings":{"foreground":"#737373"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#0dbe4e"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#8a8a8a"}},{"scope":"constant.character.xi","settings":{"foreground":"#9d6afb"}},{"scope":"accent.xi","settings":{"foreground":"#9d6afb"}},{"scope":"wikiword.xi","settings":{"foreground":"#ffca00"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#171717"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#8a8a8a"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#ffca00"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#68cdf2"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#ffca00"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#737373"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name","settings":{"foreground":"#737373"}},{"scope":"support.constant.property-value","settings":{"foreground":"#737373"}},{"scope":"support.constant.font-name","settings":{"foreground":"#ffca00"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#07c480","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#9d6afb","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#68cdf2"}},{"scope":"meta.selector","settings":{"foreground":"#ff678d"}},{"scope":"selector.sass","settings":{"foreground":"#ff5d36"}},{"scope":"rgb-value","settings":{"foreground":"#68cdf2"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#ffca00"}},{"scope":"less rgb-value","settings":{"foreground":"#ffca00"}},{"scope":"control.elements","settings":{"foreground":"#ffca00"}},{"scope":"keyword.operator.less","settings":{"foreground":"#ffca00"}},{"scope":"entity.name.tag","settings":{"foreground":"#ff5d36"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#07c480","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#ff5d36"}},{"scope":"meta.tag","settings":{"foreground":"#737373"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#737373"}},{"scope":"markup.heading","settings":{"foreground":"#ff5d36"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"markup.heading.setext","settings":{"foreground":"#737373"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#ff5d36"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#ffca00"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#ffab16"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#ffca00"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#ff678d","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#ff678d"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#ff678d"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#9d6afb"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ff5d36"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#0dbe4e"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#ff5d36"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#ff5d36"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#8a8a8a"}},{"scope":"keyword.other.unit","settings":{"foreground":"#ff5d36"}},{"scope":"markup.changed.diff","settings":{"foreground":"#ffab16"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#9d6afb"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#0dbe4e"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#ff5d36"}},{"scope":"string.regexp","settings":{"foreground":"#00c5d2"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#ff5d36"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#ffca00"}},{"scope":"constant.character.escape","settings":{"foreground":"#00cab1"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#ff5d36"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#ff5d36"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#0dbe4e"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#ff5d36"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#ff5d36"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#737373"}},{"scope":"block.scope.end","settings":{"foreground":"#737373"}},{"scope":"block.scope.begin","settings":{"foreground":"#737373"}},{"scope":"token.info-token","settings":{"foreground":"#9d6afb"}},{"scope":"token.warn-token","settings":{"foreground":"#ffca00"}},{"scope":"token.error-token","settings":{"foreground":"#171717"}},{"scope":"token.debug-token","settings":{"foreground":"#ff678d"}},{"scope":"invalid.illegal","settings":{"foreground":"#171717"}},{"scope":"invalid.broken","settings":{"foreground":"#171717"}},{"scope":"invalid.deprecated","settings":{"foreground":"#171717"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#171717"}}],"semanticTokenColors":{"comment":"#8a8a8a","string":"#0dbe4e","number":"#08c0ef","regexp":"#00c5d2","keyword":"#ff678d","variable":"#fe8c2c","parameter":"#737373","property":"#fe8c2c","function":"#9d6afb","method":"#9d6afb","type":"#d568ea","class":"#d568ea","namespace":"#ffab16","enumMember":"#68cdf2","variable.constant":"#ffca00","variable.defaultLibrary":"#ffab16","decorator":"#69b1ff"}}'))});var Kre=_o((Vk,Wre)=>{(function(t,e){typeof Vk=="object"&&typeof Wre<"u"?e(Vk):typeof define=="function"&&define.amd?define(["exports"],e):e((t=t||self).lru_map=t.lru_map||{})})(Vk,function(t){let e=Symbol("newer"),n=Symbol("older");class r{constructor(c,u){typeof c!="number"&&(u=c,c=0),this.size=0,this.limit=c,this.oldest=this.newest=void 0,this._keymap=new Map,u&&(this.assign(u),c<1&&(this.limit=this.size))}_markEntryAsUsed(c){c!==this.newest&&(c[e]&&(c===this.oldest&&(this.oldest=c[e]),c[e][n]=c[n]),c[n]&&(c[n][e]=c[e]),c[e]=void 0,c[n]=this.newest,this.newest&&(this.newest[e]=c),this.newest=c)}assign(c){let u,d=this.limit||Number.MAX_VALUE;this._keymap.clear();let p=c[Symbol.iterator]();for(let m=p.next();!m.done;m=p.next()){let f=new i(m.value[0],m.value[1]);if(this._keymap.set(f.key,f),u?(u[e]=f,f[n]=u):this.oldest=f,u=f,d--==0)throw new Error("overflow")}this.newest=u,this.size=this._keymap.size}get(c){var u=this._keymap.get(c);return u?(this._markEntryAsUsed(u),u.value):void 0}set(c,u){var d=this._keymap.get(c);return d?(d.value=u,this._markEntryAsUsed(d),this):(this._keymap.set(c,d=new i(c,u)),this.newest?(this.newest[e]=d,d[n]=this.newest):this.oldest=d,this.newest=d,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var c=this.oldest;if(c)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),c[e]=c[n]=void 0,this._keymap.delete(c.key),--this.size,[c.key,c.value]}find(c){let u=this._keymap.get(c);return u?u.value:void 0}has(c){return this._keymap.has(c)}delete(c){var u=this._keymap.get(c);return u?(this._keymap.delete(u.key),u[e]&&u[n]?(u[n][e]=u[e],u[e][n]=u[n]):u[e]?(u[e][n]=void 0,this.oldest=u[e]):u[n]?(u[n][e]=void 0,this.newest=u[n]):this.oldest=this.newest=void 0,this.size--,u.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new a(this.oldest)}values(){return new s(this.oldest)}entries(){return this}[Symbol.iterator](){return new o(this.oldest)}forEach(c,u){typeof u!="object"&&(u=this);let d=this.oldest;for(;d;)c.call(u,d.value,d.key,this),d=d[e]}toJSON(){for(var c=new Array(this.size),u=0,d=this.oldest;d;)c[u++]={key:d.key,value:d.value},d=d[e];return c}toString(){for(var c="",u=this.oldest;u;)c+=String(u.key)+":"+u.value,u=u[e],u&&(c+=" < ");return c}}t.LRUMap=r;function i(l,c){this.key=l,this.value=c,this[e]=void 0,this[n]=void 0}function o(l){this.entry=l}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let l=this.entry;return l?(this.entry=l[e],{done:!1,value:[l.key,l.value]}):{done:!0,value:void 0}};function a(l){this.entry=l}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let l=this.entry;return l?(this.entry=l[e],{done:!1,value:l.key}):{done:!0,value:void 0}};function s(l){this.entry=l}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let l=this.entry;return l?(this.entry=l[e],{done:!1,value:l.value}):{done:!0,value:void 0}}})});var tue=_o(eue=>{"use strict";var U2=Q();function WBe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var KBe=typeof Object.is=="function"?Object.is:WBe,XBe=U2.useState,YBe=U2.useEffect,QBe=U2.useLayoutEffect,JBe=U2.useDebugValue;function eze(t,e){var n=e(),r=XBe({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return QBe(function(){i.value=n,i.getSnapshot=e,DD(i)&&o({inst:i})},[t,n,e]),YBe(function(){return DD(i)&&o({inst:i}),t(function(){DD(i)&&o({inst:i})})},[t]),JBe(n),n}function DD(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!KBe(t,n)}catch{return!0}}function tze(t,e){return e()}var nze=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tze:eze;eue.useSyncExternalStore=U2.useSyncExternalStore!==void 0?U2.useSyncExternalStore:nze});var pS=_o((O9t,nue)=>{"use strict";nue.exports=tue()});var iue=_o(rue=>{"use strict";var mS=Q(),rze=pS();function ize(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var oze=typeof Object.is=="function"?Object.is:ize,aze=rze.useSyncExternalStore,sze=mS.useRef,lze=mS.useEffect,cze=mS.useMemo,uze=mS.useDebugValue;rue.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=sze(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=cze(function(){function l(m){if(!c){if(c=!0,u=m,m=r(m),i!==void 0&&a.hasValue){var f=a.value;if(i(f,m))return d=f}return d=m}if(f=d,oze(u,m))return f;var h=r(m);return i!==void 0&&i(f,h)?(u=m,f):(u=m,d=h)}var c=!1,u,d,p=n===void 0?null:n;return[function(){return l(e())},p===null?void 0:function(){return l(p())}]},[e,n,r,i]);var s=aze(t,o[0],o[1]);return lze(function(){a.hasValue=!0,a.value=s},[s]),uze(s),s}});var aue=_o((F9t,oue)=>{"use strict";oue.exports=iue()});var C0e=_o((hUt,k0e)=>{"use strict";var DM=Object.prototype.hasOwnProperty,v0e=Object.prototype.toString,h0e=Object.defineProperty,g0e=Object.getOwnPropertyDescriptor,b0e=function(e){return typeof Array.isArray=="function"?Array.isArray(e):v0e.call(e)==="[object Array]"},y0e=function(e){if(!e||v0e.call(e)!=="[object Object]")return!1;var n=DM.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&DM.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||DM.call(e,i)},x0e=function(e,n){h0e&&n.name==="__proto__"?h0e(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},w0e=function(e,n){if(n==="__proto__")if(DM.call(e,n)){if(g0e)return g0e(e,n).value}else return;return e[n]};k0e.exports=function t(){var e,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(e=arguments[l],e!=null)for(n in e)r=w0e(s,n),i=w0e(e,n),s!==i&&(u&&i&&(y0e(i)||(o=b0e(i)))?(o?(o=!1,a=r&&b0e(r)?r:[]):a=r&&y0e(r)?r:{},x0e(s,{name:n,newValue:t(u,a,i)})):typeof i<"u"&&x0e(s,{name:n,newValue:i}));return s}});var G3="data-cmux-scrolling";var mR={set:(t,e)=>setTimeout(t,e),clear:t=>clearTimeout(t)},pR=new WeakMap;function Lve(t,e=mR){let n=pR.get(t);n!==void 0&&e.clear(n),t.setAttribute(G3,""),pR.set(t,e.set(()=>{pR.delete(t),t.removeAttribute(G3)},800))}function Mve(t,e,n){let r=n!==0&&t.scrollHeight>t.clientHeight,i=e!==0&&t.scrollWidth>t.clientWidth;if(!r&&!i)return!1;let a=t.ownerDocument.defaultView?.getComputedStyle(t);if(!a)return!1;let s=l=>l==="auto"||l==="scroll"||l==="overlay";return r&&s(a.overflowY)||i&&s(a.overflowX)}function Eve(t){for(let e of t.composedPath()){let n=e;if(!(typeof n.getAttribute!="function"||typeof n.scrollHeight!="number")&&Mve(n,t.deltaX,t.deltaY))return n}return null}var xV=new WeakSet;function Tve(t,e=mR){xV.has(t)||(xV.add(t),t.addEventListener("wheel",n=>{let r=Eve(n);r&&Lve(r,e)},{capture:!0,passive:!0}))}var Rve=` -html:not([data-scrollers="legacy"]) .monaco-editor:not([${G3}]) .monaco-scrollable-element > .scrollbar:not(:hover) > .slider:not(.active) { +`+r.stack}}var yA=Object.prototype.hasOwnProperty,l$=fo.unstable_scheduleCallback,PR=fo.unstable_cancelCallback,lke=fo.unstable_shouldYield,cke=fo.unstable_requestPaint,kl=fo.unstable_now,uke=fo.unstable_getCurrentPriorityLevel,$W=fo.unstable_ImmediatePriority,IW=fo.unstable_UserBlockingPriority,F9=fo.unstable_NormalPriority,dke=fo.unstable_LowPriority,NW=fo.unstable_IdlePriority,pke=fo.log,mke=fo.unstable_setDisableYieldValue,j4=null,Cl=null;function bf(t){if(typeof pke=="function"&&mke(t),Cl&&typeof Cl.setStrictMode=="function")try{Cl.setStrictMode(j4,t)}catch{}}var _l=Math.clz32?Math.clz32:gke,fke=Math.log,hke=Math.LN2;function gke(t){return t>>>=0,t===0?32:31-(fke(t)/hke|0)|0}var i9=256,o9=262144,a9=4194304;function Oh(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function dw(t,e,n){var r=t.pendingLanes;if(r===0)return 0;var i=0,o=t.suspendedLanes,a=t.pingedLanes;t=t.warmLanes;var s=r&134217727;return s!==0?(r=s&~o,r!==0?i=Oh(r):(a&=s,a!==0?i=Oh(a):n||(n=s&~t,n!==0&&(i=Oh(n))))):(s=r&~o,s!==0?i=Oh(s):a!==0?i=Oh(a):n||(n=r&~t,n!==0&&(i=Oh(n)))),i===0?0:e!==0&&e!==i&&(e&o)===0&&(o=i&-i,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:i}function O4(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function bke(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function PW(){var t=a9;return a9<<=1,(a9&62914560)===0&&(a9=4194304),t}function jR(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function D4(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yke(t,e,n,r,i,o){var a=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var s=t.entanglements,l=t.expirationTimes,c=t.hiddenUpdates;for(n=a&~n;0<n;){var u=31-_l(n),d=1<<u;s[u]=0,l[u]=-1;var p=c[u];if(p!==null)for(c[u]=null,u=0;u<p.length;u++){var m=p[u];m!==null&&(m.lane&=-536870913)}n&=~d}r!==0&&jW(t,r,0),o!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=o&~(a&~e))}function jW(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var r=31-_l(e);t.entangledLanes|=e,t.entanglements[r]=t.entanglements[r]|1073741824|n&261930}function OW(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-_l(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}function DW(t,e){var n=e&-e;return n=(n&42)!==0?1:c$(n),(n&(t.suspendedLanes|e))!==0?0:n}function c$(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function u$(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function FW(){var t=sr.p;return t!==0?t:(t=window.event,t===void 0?32:lY(t.type))}function iZ(t,e){var n=sr.p;try{return sr.p=t,e()}finally{sr.p=n}}var Pf=Math.random().toString(36).slice(2),qo="__reactFiber$"+Pf,Is="__reactProps$"+Pf,fb="__reactContainer$"+Pf,xA="__reactEvents$"+Pf,xke="__reactListeners$"+Pf,wke="__reactHandles$"+Pf,oZ="__reactResources$"+Pf,F4="__reactMarker$"+Pf;function d$(t){delete t[qo],delete t[Is],delete t[xA],delete t[xke],delete t[wke]}function B5(t){var e=t[qo];if(e)return e;for(var n=t.parentNode;n;){if(e=n[fb]||n[qo]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=mW(t);t!==null;){if(n=t[qo])return n;t=mW(t)}return e}t=n,n=t.parentNode}return null}function hb(t){if(t=t[qo]||t[fb]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function o4(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(Ie(33))}function X5(t){var e=t[oZ];return e||(e=t[oZ]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Lo(t){t[F4]=!0}var BW=new Set,zW={};function Xh(t,e){ib(t,e),ib(t+"Capture",e)}function ib(t,e){for(zW[t]=e,t=0;t<e.length;t++)BW.add(e[t])}var vke=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),aZ={},sZ={};function kke(t){return yA.call(sZ,t)?!0:yA.call(aZ,t)?!1:vke.test(t)?sZ[t]=!0:(aZ[t]=!0,!1)}function v9(t,e,n){if(kke(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var r=e.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function s9(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function cp(t,e,n,r){if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+r)}}function mc(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qW(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Cke(t,e,n){var r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function wA(t){if(!t._valueTracker){var e=qW(t)?"checked":"value";t._valueTracker=Cke(t,e,""+t[e])}}function HW(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=qW(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function B9(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var _ke=/[\n"\\]/g;function gc(t){return t.replace(_ke,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vA(t,e,n,r,i,o,a,s){t.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.type=a:t.removeAttribute("type"),e!=null?a==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+mc(e)):t.value!==""+mc(e)&&(t.value=""+mc(e)):a!=="submit"&&a!=="reset"||t.removeAttribute("value"),e!=null?kA(t,a,mc(e)):n!=null?kA(t,a,mc(n)):r!=null&&t.removeAttribute("value"),i==null&&o!=null&&(t.defaultChecked=!!o),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.name=""+mc(s):t.removeAttribute("name")}function GW(t,e,n,r,i,o,a,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){wA(t);return}n=n!=null?""+mc(n):"",e=e!=null?""+mc(e):n,s||e===t.value||(t.value=e),t.defaultValue=e}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,t.checked=s?t.checked:!!r,t.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.name=a),wA(t)}function kA(t,e,n){e==="number"&&B9(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Y5(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+mc(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function UW(t,e,n){if(e!=null&&(e=""+mc(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+mc(n):""}function VW(t,e,n,r){if(e==null){if(r!=null){if(n!=null)throw Error(Ie(92));if(i4(r)){if(1<r.length)throw Error(Ie(93));r=r[0]}n=r}n==null&&(n=""),e=n}n=mc(e),t.defaultValue=n,r=t.textContent,r===n&&r!==""&&r!==null&&(t.value=r),wA(t)}function ob(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Ske=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function lZ(t,e,n){var r=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":r?t.setProperty(e,n):typeof n!="number"||n===0||Ske.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function ZW(t,e,n){if(e!=null&&typeof e!="object")throw Error(Ie(62));if(t=t.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||e!=null&&e.hasOwnProperty(r)||(r.indexOf("--")===0?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="");for(var i in e)r=e[i],e.hasOwnProperty(i)&&n[i]!==r&&lZ(t,i,r)}else for(var o in e)e.hasOwnProperty(o)&&lZ(t,o,e[o])}function p$(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Lke=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Mke=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function k9(t){return Mke.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function bp(){}var CA=null;function m$(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var z5=null,Q5=null;function cZ(t){var e=hb(t);if(e&&(t=e.stateNode)){var n=t[Is]||null;e:switch(t=e.stateNode,e.type){case"input":if(vA(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gc(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=r[Is]||null;if(!i)throw Error(Ie(90));vA(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)r=n[e],r.form===t.form&&HW(r)}break e;case"textarea":UW(t,n.value,n.defaultValue);break e;case"select":e=n.value,e!=null&&Y5(t,!!n.multiple,e,!1)}}}var OR=!1;function WW(t,e,n){if(OR)return t(e,n);OR=!0;try{var r=t(e);return r}finally{if(OR=!1,(z5!==null||Q5!==null)&&(Cw(),z5&&(e=z5,t=Q5,Q5=z5=null,cZ(e),t)))for(e=0;e<t.length;e++)cZ(t[e])}}function k4(t,e){var n=t.stateNode;if(n===null)return null;var r=n[Is]||null;if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Ie(231,e,typeof n));return n}var kp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_A=!1;if(kp)try{I5={},Object.defineProperty(I5,"passive",{get:function(){_A=!0}}),window.addEventListener("test",I5,I5),window.removeEventListener("test",I5,I5)}catch{_A=!1}var I5,yf=null,f$=null,C9=null;function KW(){if(C9)return C9;var t,e=f$,n=e.length,r,i="value"in yf?yf.value:yf.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var a=n-t;for(r=1;r<=a&&e[n-r]===i[o-r];r++);return C9=i.slice(t,1<r?1-r:void 0)}function _9(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function l9(){return!0}function uZ(){return!1}function Ns(t){function e(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?l9:uZ,this.isPropagationStopped=uZ,this}return Wr(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=l9)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=l9)},persist:function(){},isPersistent:l9}),e}var Yh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pw=Ns(Yh),B4=Wr({},Yh,{view:0,detail:0}),Eke=Ns(B4),DR,FR,Y3,mw=Wr({},B4,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:h$,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Y3&&(Y3&&t.type==="mousemove"?(DR=t.screenX-Y3.screenX,FR=t.screenY-Y3.screenY):FR=DR=0,Y3=t),DR)},movementY:function(t){return"movementY"in t?t.movementY:FR}}),dZ=Ns(mw),Tke=Wr({},mw,{dataTransfer:0}),Rke=Ns(Tke),Ake=Wr({},B4,{relatedTarget:0}),BR=Ns(Ake),$ke=Wr({},Yh,{animationName:0,elapsedTime:0,pseudoElement:0}),Ike=Ns($ke),Nke=Wr({},Yh,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Pke=Ns(Nke),jke=Wr({},Yh,{data:0}),pZ=Ns(jke),Oke={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dke={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"},Fke={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bke(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Fke[t])?!!e[t]:!1}function h$(){return Bke}var zke=Wr({},B4,{key:function(t){if(t.key){var e=Oke[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=_9(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Dke[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:h$,charCode:function(t){return t.type==="keypress"?_9(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?_9(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qke=Ns(zke),Hke=Wr({},mw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mZ=Ns(Hke),Gke=Wr({},B4,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:h$}),Uke=Ns(Gke),Vke=Wr({},Yh,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zke=Ns(Vke),Wke=Wr({},mw,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Kke=Ns(Wke),Xke=Wr({},Yh,{newState:0,oldState:0}),Yke=Ns(Xke),Qke=[9,13,27,32],g$=kp&&"CompositionEvent"in window,l4=null;kp&&"documentMode"in document&&(l4=document.documentMode);var Jke=kp&&"TextEvent"in window&&!l4,XW=kp&&(!g$||l4&&8<l4&&11>=l4),fZ=" ",hZ=!1;function YW(t,e){switch(t){case"keyup":return Qke.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QW(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var q5=!1;function eCe(t,e){switch(t){case"compositionend":return QW(e);case"keypress":return e.which!==32?null:(hZ=!0,fZ);case"textInput":return t=e.data,t===fZ&&hZ?null:t;default:return null}}function tCe(t,e){if(q5)return t==="compositionend"||!g$&&YW(t,e)?(t=KW(),C9=f$=yf=null,q5=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return XW&&e.locale!=="ko"?null:e.data;default:return null}}var nCe={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 gZ(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!nCe[t.type]:e==="textarea"}function JW(t,e,n,r){z5?Q5?Q5.push(r):Q5=[r]:z5=r,e=iw(e,"onChange"),0<e.length&&(n=new pw("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var c4=null,C4=null;function rCe(t){WX(t,0)}function fw(t){var e=o4(t);if(HW(e))return t}function bZ(t,e){if(t==="change")return e}var eK=!1;kp&&(kp?(u9="oninput"in document,u9||(zR=document.createElement("div"),zR.setAttribute("oninput","return;"),u9=typeof zR.oninput=="function"),c9=u9):c9=!1,eK=c9&&(!document.documentMode||9<document.documentMode));var c9,u9,zR;function yZ(){c4&&(c4.detachEvent("onpropertychange",tK),C4=c4=null)}function tK(t){if(t.propertyName==="value"&&fw(C4)){var e=[];JW(e,C4,t,m$(t)),WW(rCe,e)}}function iCe(t,e,n){t==="focusin"?(yZ(),c4=e,C4=n,c4.attachEvent("onpropertychange",tK)):t==="focusout"&&yZ()}function oCe(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return fw(C4)}function aCe(t,e){if(t==="click")return fw(e)}function sCe(t,e){if(t==="input"||t==="change")return fw(e)}function lCe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ll=typeof Object.is=="function"?Object.is:lCe;function _4(t,e){if(Ll(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!yA.call(e,i)||!Ll(t[i],e[i]))return!1}return!0}function xZ(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function wZ(t,e){var n=xZ(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xZ(n)}}function nK(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?nK(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rK(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=B9(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=B9(t.document)}return e}function b$(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var cCe=kp&&"documentMode"in document&&11>=document.documentMode,H5=null,SA=null,u4=null,LA=!1;function vZ(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;LA||H5==null||H5!==B9(r)||(r=H5,"selectionStart"in r&&b$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),u4&&_4(u4,r)||(u4=r,r=iw(SA,"onSelect"),0<r.length&&(e=new pw("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=H5)))}function Ph(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var G5={animationend:Ph("Animation","AnimationEnd"),animationiteration:Ph("Animation","AnimationIteration"),animationstart:Ph("Animation","AnimationStart"),transitionrun:Ph("Transition","TransitionRun"),transitionstart:Ph("Transition","TransitionStart"),transitioncancel:Ph("Transition","TransitionCancel"),transitionend:Ph("Transition","TransitionEnd")},qR={},iK={};kp&&(iK=document.createElement("div").style,"AnimationEvent"in window||(delete G5.animationend.animation,delete G5.animationiteration.animation,delete G5.animationstart.animation),"TransitionEvent"in window||delete G5.transitionend.transition);function Qh(t){if(qR[t])return qR[t];if(!G5[t])return t;var e=G5[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in iK)return qR[t]=e[n];return t}var oK=Qh("animationend"),aK=Qh("animationiteration"),sK=Qh("animationstart"),uCe=Qh("transitionrun"),dCe=Qh("transitionstart"),pCe=Qh("transitioncancel"),lK=Qh("transitionend"),cK=new Map,MA="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");MA.push("scrollEnd");function fu(t,e){cK.set(t,e),Xh(e,[t])}var z9=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},pc=[],U5=0,y$=0;function hw(){for(var t=U5,e=y$=U5=0;e<t;){var n=pc[e];pc[e++]=null;var r=pc[e];pc[e++]=null;var i=pc[e];pc[e++]=null;var o=pc[e];if(pc[e++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&uK(n,i,o)}}function gw(t,e,n,r){pc[U5++]=t,pc[U5++]=e,pc[U5++]=n,pc[U5++]=r,y$|=r,t.lanes|=r,t=t.alternate,t!==null&&(t.lanes|=r)}function x$(t,e,n,r){return gw(t,e,n,r),q9(t)}function Jh(t,e){return gw(t,null,null,e),q9(t)}function uK(t,e,n){t.lanes|=n;var r=t.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=t.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(i=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,i&&e!==null&&(i=31-_l(n),t=o.hiddenUpdates,r=t[i],r===null?t[i]=[e]:r.push(e),e.lane=n|536870912),o):null}function q9(t){if(50<x4)throw x4=0,WA=null,Error(Ie(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var V5={};function mCe(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wl(t,e,n,r){return new mCe(t,e,n,r)}function w$(t){return t=t.prototype,!(!t||!t.isReactComponent)}function xp(t,e){var n=t.alternate;return n===null?(n=wl(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function dK(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function S9(t,e,n,r,i,o){var a=0;if(r=t,typeof t=="function")w$(t)&&(a=1);else if(typeof t=="string")a=g_e(t,n,ed.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case fA:return t=wl(31,n,e,i),t.elementType=fA,t.lanes=o,t;case D5:return zh(n.children,i,o,e);case RW:a=8,i|=24;break;case dA:return t=wl(12,n,e,i|2),t.elementType=dA,t.lanes=o,t;case pA:return t=wl(13,n,e,i),t.elementType=pA,t.lanes=o,t;case mA:return t=wl(19,n,e,i),t.elementType=mA,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case gp:a=10;break e;case AW:a=9;break e;case a$:a=11;break e;case s$:a=14;break e;case df:a=16,r=null;break e}a=29,n=Error(Ie(130,t===null?"null":typeof t,"")),r=null}return e=wl(a,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function zh(t,e,n,r){return t=wl(7,t,r,e),t.lanes=n,t}function HR(t,e,n){return t=wl(6,t,null,e),t.lanes=n,t}function pK(t){var e=wl(18,null,null,0);return e.stateNode=t,e}function GR(t,e,n){return e=wl(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var kZ=new WeakMap;function bc(t,e){if(typeof t=="object"&&t!==null){var n=kZ.get(t);return n!==void 0?n:(e={value:t,source:e,stack:rZ(e)},kZ.set(t,e),e)}return{value:t,source:e,stack:rZ(e)}}var Z5=[],W5=0,H9=null,S4=0,fc=[],hc=0,Af=null,Yu=1,Qu="";function fp(t,e){Z5[W5++]=S4,Z5[W5++]=H9,H9=t,S4=e}function mK(t,e,n){fc[hc++]=Yu,fc[hc++]=Qu,fc[hc++]=Af,Af=t;var r=Yu;t=Qu;var i=32-_l(r)-1;r&=~(1<<i),n+=1;var o=32-_l(e)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Yu=1<<32-_l(e)+i|n<<i|r,Qu=o+t}else Yu=1<<o|n<<i|r,Qu=t}function v$(t){t.return!==null&&(fp(t,1),mK(t,1,0))}function k$(t){for(;t===H9;)H9=Z5[--W5],Z5[W5]=null,S4=Z5[--W5],Z5[W5]=null;for(;t===Af;)Af=fc[--hc],fc[hc]=null,Qu=fc[--hc],fc[hc]=null,Yu=fc[--hc],fc[hc]=null}function fK(t,e){fc[hc++]=Yu,fc[hc++]=Qu,fc[hc++]=Af,Yu=e.id,Qu=e.overflow,Af=t}var Ho=null,Zr=null,Un=!1,Cf=null,yc=!1,EA=Error(Ie(519));function $f(t){var e=Error(Ie(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw L4(bc(e,t)),EA}function CZ(t){var e=t.stateNode,n=t.type,r=t.memoizedProps;switch(e[qo]=t,e[Is]=r,n){case"dialog":On("cancel",e),On("close",e);break;case"iframe":case"object":case"embed":On("load",e);break;case"video":case"audio":for(n=0;n<R4.length;n++)On(R4[n],e);break;case"source":On("error",e);break;case"img":case"image":case"link":On("error",e),On("load",e);break;case"details":On("toggle",e);break;case"input":On("invalid",e),GW(e,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":On("invalid",e);break;case"textarea":On("invalid",e),VW(e,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||r.suppressHydrationWarning===!0||XX(e.textContent,n)?(r.popover!=null&&(On("beforetoggle",e),On("toggle",e)),r.onScroll!=null&&On("scroll",e),r.onScrollEnd!=null&&On("scrollend",e),r.onClick!=null&&(e.onclick=bp),e=!0):e=!1,e||$f(t,!0)}function _Z(t){for(Ho=t.return;Ho;)switch(Ho.tag){case 5:case 31:case 13:yc=!1;return;case 27:case 3:yc=!0;return;default:Ho=Ho.return}}function N5(t){if(t!==Ho)return!1;if(!Un)return _Z(t),Un=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||JA(t.type,t.memoizedProps)),n=!n),n&&Zr&&$f(t),_Z(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Ie(317));Zr=pW(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Ie(317));Zr=pW(t)}else e===27?(e=Zr,jf(t.type)?(t=r$,r$=null,Zr=t):Zr=e):Zr=Ho?wc(t.stateNode.nextSibling):null;return!0}function Uh(){Zr=Ho=null,Un=!1}function UR(){var t=Cf;return t!==null&&(As===null?As=t:As.push.apply(As,t),Cf=null),t}function L4(t){Cf===null?Cf=[t]:Cf.push(t)}var TA=td(null),e0=null,yp=null;function mf(t,e,n){Or(TA,e._currentValue),e._currentValue=n}function wp(t){t._currentValue=TA.current,Mo(TA)}function RA(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function AA(t,e,n,r){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var s=o;o=i;for(var l=0;l<e.length;l++)if(s.context===e[l]){o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),RA(o.return,n,t),r||(a=null);break e}o=s.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(Ie(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),RA(a,n,t),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function gb(t,e,n,r){t=null;for(var i=e,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(Ie(387));if(a=a.memoizedProps,a!==null){var s=i.type;Ll(i.pendingProps.value,a.value)||(t!==null?t.push(s):t=[s])}}else if(i===j9.current){if(a=i.alternate,a===null)throw Error(Ie(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push($4):t=[$4])}i=i.return}t!==null&&AA(e,t,n,r),e.flags|=262144}function G9(t){for(t=t.firstContext;t!==null;){if(!Ll(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Vh(t){e0=t,yp=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Go(t){return hK(e0,t)}function d9(t,e){return e0===null&&Vh(t),hK(t,e)}function hK(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},yp===null){if(t===null)throw Error(Ie(308));yp=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else yp=yp.next=e;return n}var fCe=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,r){t.push(r)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},hCe=fo.unstable_scheduleCallback,gCe=fo.unstable_NormalPriority,Ji={$$typeof:gp,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function C$(){return{controller:new fCe,data:new Map,refCount:0}}function z4(t){t.refCount--,t.refCount===0&&hCe(gCe,function(){t.controller.abort()})}var d4=null,$A=0,ab=0,J5=null;function bCe(t,e){if(d4===null){var n=d4=[];$A=0,ab=W$(),J5={status:"pending",value:void 0,then:function(r){n.push(r)}}}return $A++,e.then(SZ,SZ),e}function SZ(){if(--$A===0&&d4!==null){J5!==null&&(J5.status="fulfilled");var t=d4;d4=null,ab=0,J5=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function yCe(t,e){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){r.status="fulfilled",r.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var LZ=on.S;on.S=function(t,e){TX=kl(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&bCe(t,e),LZ!==null&&LZ(t,e)};var qh=td(null);function _$(){var t=qh.current;return t!==null?t:Rr.pooledCache}function L9(t,e){e===null?Or(qh,qh.current):Or(qh,e.pool)}function gK(){var t=_$();return t===null?null:{parent:Ji._currentValue,pool:t}}var bb=Error(Ie(460)),S$=Error(Ie(474)),bw=Error(Ie(542)),U9={then:function(){}};function MZ(t){return t=t.status,t==="fulfilled"||t==="rejected"}function bK(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(bp,bp),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,TZ(t),t;default:if(typeof e.status=="string")e.then(bp,bp);else{if(t=Rr,t!==null&&100<t.shellSuspendCounter)throw Error(Ie(482));t=e,t.status="pending",t.then(function(r){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=r}},function(r){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=r}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,TZ(t),t}throw Hh=e,bb}}function Dh(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Hh=n,bb):n}}var Hh=null;function EZ(){if(Hh===null)throw Error(Ie(459));var t=Hh;return Hh=null,t}function TZ(t){if(t===bb||t===bw)throw Error(Ie(483))}var eb=null,M4=0;function p9(t){var e=M4;return M4+=1,eb===null&&(eb=[]),bK(eb,t,e)}function Q3(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function m9(t,e){throw e.$$typeof===ike?Error(Ie(525)):(t=Object.prototype.toString.call(e),Error(Ie(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function yK(t){function e(g,y){if(t){var b=g.deletions;b===null?(g.deletions=[y],g.flags|=16):b.push(y)}}function n(g,y){if(!t)return null;for(;y!==null;)e(g,y),y=y.sibling;return null}function r(g){for(var y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function i(g,y){return g=xp(g,y),g.index=0,g.sibling=null,g}function o(g,y,b){return g.index=b,t?(b=g.alternate,b!==null?(b=b.index,b<y?(g.flags|=67108866,y):b):(g.flags|=67108866,y)):(g.flags|=1048576,y)}function a(g){return t&&g.alternate===null&&(g.flags|=67108866),g}function s(g,y,b,w){return y===null||y.tag!==6?(y=HR(b,g.mode,w),y.return=g,y):(y=i(y,b),y.return=g,y)}function l(g,y,b,w){var v=b.type;return v===D5?u(g,y,b.props.children,w,b.key):y!==null&&(y.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===df&&Dh(v)===y.type)?(y=i(y,b.props),Q3(y,b),y.return=g,y):(y=S9(b.type,b.key,b.props,null,g.mode,w),Q3(y,b),y.return=g,y)}function c(g,y,b,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=GR(b,g.mode,w),y.return=g,y):(y=i(y,b.children||[]),y.return=g,y)}function u(g,y,b,w,v){return y===null||y.tag!==7?(y=zh(b,g.mode,w,v),y.return=g,y):(y=i(y,b),y.return=g,y)}function d(g,y,b){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=HR(""+y,g.mode,b),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case r9:return b=S9(y.type,y.key,y.props,null,g.mode,b),Q3(b,y),b.return=g,b;case r4:return y=GR(y,g.mode,b),y.return=g,y;case df:return y=Dh(y),d(g,y,b)}if(i4(y)||X3(y))return y=zh(y,g.mode,b,null),y.return=g,y;if(typeof y.then=="function")return d(g,p9(y),b);if(y.$$typeof===gp)return d(g,d9(g,y),b);m9(g,y)}return null}function p(g,y,b,w){var v=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return v!==null?null:s(g,y,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case r9:return b.key===v?l(g,y,b,w):null;case r4:return b.key===v?c(g,y,b,w):null;case df:return b=Dh(b),p(g,y,b,w)}if(i4(b)||X3(b))return v!==null?null:u(g,y,b,w,null);if(typeof b.then=="function")return p(g,y,p9(b),w);if(b.$$typeof===gp)return p(g,y,d9(g,b),w);m9(g,b)}return null}function m(g,y,b,w,v){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return g=g.get(b)||null,s(y,g,""+w,v);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case r9:return g=g.get(w.key===null?b:w.key)||null,l(y,g,w,v);case r4:return g=g.get(w.key===null?b:w.key)||null,c(y,g,w,v);case df:return w=Dh(w),m(g,y,b,w,v)}if(i4(w)||X3(w))return g=g.get(b)||null,u(y,g,w,v,null);if(typeof w.then=="function")return m(g,y,b,p9(w),v);if(w.$$typeof===gp)return m(g,y,b,d9(y,w),v);m9(y,w)}return null}function f(g,y,b,w){for(var v=null,k=null,_=y,L=y=0,S=null;_!==null&&L<b.length;L++){_.index>L?(S=_,_=null):S=_.sibling;var C=p(g,_,b[L],w);if(C===null){_===null&&(_=S);break}t&&_&&C.alternate===null&&e(g,_),y=o(C,y,L),k===null?v=C:k.sibling=C,k=C,_=S}if(L===b.length)return n(g,_),Un&&fp(g,L),v;if(_===null){for(;L<b.length;L++)_=d(g,b[L],w),_!==null&&(y=o(_,y,L),k===null?v=_:k.sibling=_,k=_);return Un&&fp(g,L),v}for(_=r(_);L<b.length;L++)S=m(_,g,L,b[L],w),S!==null&&(t&&S.alternate!==null&&_.delete(S.key===null?L:S.key),y=o(S,y,L),k===null?v=S:k.sibling=S,k=S);return t&&_.forEach(function(T){return e(g,T)}),Un&&fp(g,L),v}function h(g,y,b,w){if(b==null)throw Error(Ie(151));for(var v=null,k=null,_=y,L=y=0,S=null,C=b.next();_!==null&&!C.done;L++,C=b.next()){_.index>L?(S=_,_=null):S=_.sibling;var T=p(g,_,C.value,w);if(T===null){_===null&&(_=S);break}t&&_&&T.alternate===null&&e(g,_),y=o(T,y,L),k===null?v=T:k.sibling=T,k=T,_=S}if(C.done)return n(g,_),Un&&fp(g,L),v;if(_===null){for(;!C.done;L++,C=b.next())C=d(g,C.value,w),C!==null&&(y=o(C,y,L),k===null?v=C:k.sibling=C,k=C);return Un&&fp(g,L),v}for(_=r(_);!C.done;L++,C=b.next())C=m(_,g,L,C.value,w),C!==null&&(t&&C.alternate!==null&&_.delete(C.key===null?L:C.key),y=o(C,y,L),k===null?v=C:k.sibling=C,k=C);return t&&_.forEach(function(M){return e(g,M)}),Un&&fp(g,L),v}function x(g,y,b,w){if(typeof b=="object"&&b!==null&&b.type===D5&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case r9:e:{for(var v=b.key;y!==null;){if(y.key===v){if(v=b.type,v===D5){if(y.tag===7){n(g,y.sibling),w=i(y,b.props.children),w.return=g,g=w;break e}}else if(y.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===df&&Dh(v)===y.type){n(g,y.sibling),w=i(y,b.props),Q3(w,b),w.return=g,g=w;break e}n(g,y);break}else e(g,y);y=y.sibling}b.type===D5?(w=zh(b.props.children,g.mode,w,b.key),w.return=g,g=w):(w=S9(b.type,b.key,b.props,null,g.mode,w),Q3(w,b),w.return=g,g=w)}return a(g);case r4:e:{for(v=b.key;y!==null;){if(y.key===v)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(g,y.sibling),w=i(y,b.children||[]),w.return=g,g=w;break e}else{n(g,y);break}else e(g,y);y=y.sibling}w=GR(b,g.mode,w),w.return=g,g=w}return a(g);case df:return b=Dh(b),x(g,y,b,w)}if(i4(b))return f(g,y,b,w);if(X3(b)){if(v=X3(b),typeof v!="function")throw Error(Ie(150));return b=v.call(b),h(g,y,b,w)}if(typeof b.then=="function")return x(g,y,p9(b),w);if(b.$$typeof===gp)return x(g,y,d9(g,b),w);m9(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(n(g,y.sibling),w=i(y,b),w.return=g,g=w):(n(g,y),w=HR(b,g.mode,w),w.return=g,g=w),a(g)):n(g,y)}return function(g,y,b,w){try{M4=0;var v=x(g,y,b,w);return eb=null,v}catch(_){if(_===bb||_===bw)throw _;var k=wl(29,_,null,g.mode);return k.lanes=w,k.return=g,k}}}var Zh=yK(!0),xK=yK(!1),pf=!1;function L$(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function IA(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function _f(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sf(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,(ar&2)!==0){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,e=q9(t),uK(t,null,n),e}return gw(t,r,e,n),q9(t)}function p4(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OW(t,n)}}function VR(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var NA=!1;function m4(){if(NA){var t=J5;if(t!==null)throw t}}function f4(t,e,n,r){NA=!1;var i=t.updateQueue;pf=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,u=c=l=null,s=o;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hn&p)===p:(r&p)===p){p!==0&&p===ab&&(NA=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var f=t,h=s;p=e;var x=n;switch(h.tag){case 1:if(f=h.payload,typeof f=="function"){d=f.call(x,d,p);break e}d=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=h.payload,p=typeof f=="function"?f.call(x,d,p):f,p==null)break e;d=Wr({},d,p);break e;case 2:pf=!0}}p=s.callback,p!==null&&(t.flags|=64,m&&(t.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,o===null&&(i.shared.lanes=0),Nf|=a,t.lanes=a,t.memoizedState=d}}function wK(t,e){if(typeof t!="function")throw Error(Ie(191,t));t.call(e)}function vK(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)wK(n[t],e)}var sb=td(null),V9=td(0);function RZ(t,e){t=Lp,Or(V9,t),Or(sb,e),Lp=t|e.baseLanes}function PA(){Or(V9,Lp),Or(sb,sb.current)}function M$(){Lp=V9.current,Mo(sb),Mo(V9)}var Ml=td(null),xc=null;function ff(t){var e=t.alternate;Or($i,$i.current&1),Or(Ml,t),xc===null&&(e===null||sb.current!==null||e.memoizedState!==null)&&(xc=t)}function jA(t){Or($i,$i.current),Or(Ml,t),xc===null&&(xc=t)}function kK(t){t.tag===22?(Or($i,$i.current),Or(Ml,t),xc===null&&(xc=t)):hf(t)}function hf(){Or($i,$i.current),Or(Ml,Ml.current)}function xl(t){Mo(Ml),xc===t&&(xc=null),Mo($i)}var $i=td(0);function Z9(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||t$(n)||n$(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Cp=0,Sn=null,Cr=null,Yi=null,W9=!1,tb=!1,Wh=!1,K9=0,E4=0,nb=null,xCe=0;function bi(){throw Error(Ie(321))}function E$(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ll(t[n],e[n]))return!1;return!0}function T$(t,e,n,r,i,o){return Cp=o,Sn=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,on.H=t===null||t.memoizedState===null?JK:B$,Wh=!1,o=n(r,i),Wh=!1,tb&&(o=_K(e,n,r,i)),CK(t),o}function CK(t){on.H=T4;var e=Cr!==null&&Cr.next!==null;if(Cp=0,Yi=Cr=Sn=null,W9=!1,E4=0,nb=null,e)throw Error(Ie(300));t===null||eo||(t=t.dependencies,t!==null&&G9(t)&&(eo=!0))}function _K(t,e,n,r){Sn=t;var i=0;do{if(tb&&(nb=null),E4=0,tb=!1,25<=i)throw Error(Ie(301));if(i+=1,Yi=Cr=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}on.H=eX,o=e(n,r)}while(tb);return o}function wCe(){var t=on.H,e=t.useState()[0];return e=typeof e.then=="function"?q4(e):e,t=t.useState()[0],(Cr!==null?Cr.memoizedState:null)!==t&&(Sn.flags|=1024),e}function R$(){var t=K9!==0;return K9=0,t}function A$(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function $$(t){if(W9){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}W9=!1}Cp=0,Yi=Cr=Sn=null,tb=!1,E4=K9=0,nb=null}function Qa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yi===null?Sn.memoizedState=Yi=t:Yi=Yi.next=t,Yi}function Ii(){if(Cr===null){var t=Sn.alternate;t=t!==null?t.memoizedState:null}else t=Cr.next;var e=Yi===null?Sn.memoizedState:Yi.next;if(e!==null)Yi=e,Cr=t;else{if(t===null)throw Sn.alternate===null?Error(Ie(467)):Error(Ie(310));Cr=t,t={memoizedState:Cr.memoizedState,baseState:Cr.baseState,baseQueue:Cr.baseQueue,queue:Cr.queue,next:null},Yi===null?Sn.memoizedState=Yi=t:Yi=Yi.next=t}return Yi}function yw(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function q4(t){var e=E4;return E4+=1,nb===null&&(nb=[]),t=bK(nb,t,e),e=Sn,(Yi===null?e.memoizedState:Yi.next)===null&&(e=e.alternate,on.H=e===null||e.memoizedState===null?JK:B$),t}function xw(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return q4(t);if(t.$$typeof===gp)return Go(t)}throw Error(Ie(438,String(t)))}function I$(t){var e=null,n=Sn.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var r=Sn.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(e={data:r.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=yw(),Sn.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),r=0;r<t;r++)n[r]=oke;return e.index++,n}function _p(t,e){return typeof e=="function"?e(t):e}function M9(t){var e=Ii();return N$(e,Cr,t)}function N$(t,e,n){var r=t.queue;if(r===null)throw Error(Ie(311));r.lastRenderedReducer=n;var i=t.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}e.baseQueue=i=o,r.pending=null}if(o=t.baseState,i===null)t.memoizedState=o;else{e=i.next;var s=a=null,l=null,c=e,u=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(Hn&d)===d:(Cp&d)===d){var p=c.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===ab&&(u=!0);else if((Cp&p)===p){c=c.next,p===ab&&(u=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=d,a=o):l=l.next=d,Sn.lanes|=p,Nf|=p;d=c.action,Wh&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else p={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=p,a=o):l=l.next=p,Sn.lanes|=d,Nf|=d;c=c.next}while(c!==null&&c!==e);if(l===null?a=o:l.next=s,!Ll(o,t.memoizedState)&&(eo=!0,u&&(n=J5,n!==null)))throw n;t.memoizedState=o,t.baseState=a,t.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[t.memoizedState,r.dispatch]}function ZR(t){var e=Ii(),n=e.queue;if(n===null)throw Error(Ie(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=t(o,a.action),a=a.next;while(a!==i);Ll(o,e.memoizedState)||(eo=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function SK(t,e,n){var r=Sn,i=Ii(),o=Un;if(o){if(n===void 0)throw Error(Ie(407));n=n()}else n=e();var a=!Ll((Cr||i).memoizedState,n);if(a&&(i.memoizedState=n,eo=!0),i=i.queue,P$(EK.bind(null,r,i,t),[t]),i.getSnapshot!==e||a||Yi!==null&&Yi.memoizedState.tag&1){if(r.flags|=2048,lb(9,{destroy:void 0},MK.bind(null,r,i,n,e),null),Rr===null)throw Error(Ie(349));o||(Cp&127)!==0||LK(r,e,n)}return n}function LK(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Sn.updateQueue,e===null?(e=yw(),Sn.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function MK(t,e,n,r){e.value=n,e.getSnapshot=r,TK(e)&&RK(t)}function EK(t,e,n){return n(function(){TK(e)&&RK(t)})}function TK(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ll(t,n)}catch{return!0}}function RK(t){var e=Jh(t,2);e!==null&&$s(e,t,2)}function OA(t){var e=Qa();if(typeof t=="function"){var n=t;if(t=n(),Wh){bf(!0);try{n()}finally{bf(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_p,lastRenderedState:t},e}function AK(t,e,n,r){return t.baseState=n,N$(t,Cr,typeof r=="function"?r:_p)}function vCe(t,e,n,r,i){if(vw(t))throw Error(Ie(485));if(t=e.action,t!==null){var o={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};on.T!==null?n(!0):o.isTransition=!1,r(o),n=e.pending,n===null?(o.next=e.pending=o,$K(e,o)):(o.next=n.next,e.pending=n.next=o)}}function $K(t,e){var n=e.action,r=e.payload,i=t.state;if(e.isTransition){var o=on.T,a={};on.T=a;try{var s=n(i,r),l=on.S;l!==null&&l(a,s),AZ(t,e,s)}catch(c){DA(t,e,c)}finally{o!==null&&a.types!==null&&(o.types=a.types),on.T=o}}else try{o=n(i,r),AZ(t,e,o)}catch(c){DA(t,e,c)}}function AZ(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){$Z(t,e,r)},function(r){return DA(t,e,r)}):$Z(t,e,n)}function $Z(t,e,n){e.status="fulfilled",e.value=n,IK(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$K(t,n)))}function DA(t,e,n){var r=t.pending;if(t.pending=null,r!==null){r=r.next;do e.status="rejected",e.reason=n,IK(e),e=e.next;while(e!==r)}t.action=null}function IK(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function NK(t,e){return e}function IZ(t,e){if(Un){var n=Rr.formState;if(n!==null){e:{var r=Sn;if(Un){if(Zr){t:{for(var i=Zr,o=yc;i.nodeType!==8;){if(!o){i=null;break t}if(i=wc(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Zr=wc(i.nextSibling),r=i.data==="F!";break e}}$f(r)}r=!1}r&&(e=n[0])}}return n=Qa(),n.memoizedState=n.baseState=e,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:NK,lastRenderedState:e},n.queue=r,n=XK.bind(null,Sn,r),r.dispatch=n,r=OA(!1),o=F$.bind(null,Sn,!1,r.queue),r=Qa(),i={state:e,dispatch:null,action:t,pending:null},r.queue=i,n=vCe.bind(null,Sn,i,o,n),i.dispatch=n,r.memoizedState=t,[e,n,!1]}function NZ(t){var e=Ii();return PK(e,Cr,t)}function PK(t,e,n){if(e=N$(t,e,NK)[0],t=M9(_p)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var r=q4(e)}catch(a){throw a===bb?bw:a}else r=e;e=Ii();var i=e.queue,o=i.dispatch;return n!==e.memoizedState&&(Sn.flags|=2048,lb(9,{destroy:void 0},kCe.bind(null,i,n),null)),[r,o,t]}function kCe(t,e){t.action=e}function PZ(t){var e=Ii(),n=Cr;if(n!==null)return PK(e,n,t);Ii(),e=e.memoizedState,n=Ii();var r=n.queue.dispatch;return n.memoizedState=t,[e,r,!1]}function lb(t,e,n,r){return t={tag:t,create:n,deps:r,inst:e,next:null},e=Sn.updateQueue,e===null&&(e=yw(),Sn.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function jK(){return Ii().memoizedState}function E9(t,e,n,r){var i=Qa();Sn.flags|=t,i.memoizedState=lb(1|e,{destroy:void 0},n,r===void 0?null:r)}function ww(t,e,n,r){var i=Ii();r=r===void 0?null:r;var o=i.memoizedState.inst;Cr!==null&&r!==null&&E$(r,Cr.memoizedState.deps)?i.memoizedState=lb(e,o,n,r):(Sn.flags|=t,i.memoizedState=lb(1|e,o,n,r))}function jZ(t,e){E9(8390656,8,t,e)}function P$(t,e){ww(2048,8,t,e)}function CCe(t){Sn.flags|=4;var e=Sn.updateQueue;if(e===null)e=yw(),Sn.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function OK(t){var e=Ii().memoizedState;return CCe({ref:e,nextImpl:t}),function(){if((ar&2)!==0)throw Error(Ie(440));return e.impl.apply(void 0,arguments)}}function DK(t,e){return ww(4,2,t,e)}function FK(t,e){return ww(4,4,t,e)}function BK(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function zK(t,e,n){n=n!=null?n.concat([t]):null,ww(4,4,BK.bind(null,e,t),n)}function j$(){}function qK(t,e){var n=Ii();e=e===void 0?null:e;var r=n.memoizedState;return e!==null&&E$(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function HK(t,e){var n=Ii();e=e===void 0?null:e;var r=n.memoizedState;if(e!==null&&E$(e,r[1]))return r[0];if(r=t(),Wh){bf(!0);try{t()}finally{bf(!1)}}return n.memoizedState=[r,e],r}function O$(t,e,n){return n===void 0||(Cp&1073741824)!==0&&(Hn&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=AX(),Sn.lanes|=t,Nf|=t,n)}function GK(t,e,n,r){return Ll(n,e)?n:sb.current!==null?(t=O$(t,n,r),Ll(t,e)||(eo=!0),t):(Cp&42)===0||(Cp&1073741824)!==0&&(Hn&261930)===0?(eo=!0,t.memoizedState=n):(t=AX(),Sn.lanes|=t,Nf|=t,e)}function UK(t,e,n,r,i){var o=sr.p;sr.p=o!==0&&8>o?o:8;var a=on.T,s={};on.T=s,F$(t,!1,e,n);try{var l=i(),c=on.S;if(c!==null&&c(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=yCe(l,r);h4(t,e,u,Sl(t))}else h4(t,e,r,Sl(t))}catch(d){h4(t,e,{then:function(){},status:"rejected",reason:d},Sl())}finally{sr.p=o,a!==null&&s.types!==null&&(a.types=s.types),on.T=a}}function _Ce(){}function FA(t,e,n,r){if(t.tag!==5)throw Error(Ie(476));var i=VK(t).queue;UK(t,i,e,Bh,n===null?_Ce:function(){return ZK(t),n(r)})}function VK(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Bh,baseState:Bh,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_p,lastRenderedState:Bh},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_p,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ZK(t){var e=VK(t);e.next===null&&(e=t.alternate.memoizedState),h4(t,e.next.queue,{},Sl())}function D$(){return Go($4)}function WK(){return Ii().memoizedState}function KK(){return Ii().memoizedState}function SCe(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Sl();t=_f(n);var r=Sf(e,t,n);r!==null&&($s(r,e,n),p4(r,e,n)),e={cache:C$()},t.payload=e;return}e=e.return}}function LCe(t,e,n){var r=Sl();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vw(t)?YK(e,n):(n=x$(t,e,n,r),n!==null&&($s(n,t,r),QK(n,e,r)))}function XK(t,e,n){var r=Sl();h4(t,e,n,r)}function h4(t,e,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vw(t))YK(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var a=e.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Ll(s,a))return gw(t,e,i,0),Rr===null&&hw(),!1}catch{}if(n=x$(t,e,i,r),n!==null)return $s(n,t,r),QK(n,e,r),!0}return!1}function F$(t,e,n,r){if(r={lane:2,revertLane:W$(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vw(t)){if(e)throw Error(Ie(479))}else e=x$(t,n,r,2),e!==null&&$s(e,t,2)}function vw(t){var e=t.alternate;return t===Sn||e!==null&&e===Sn}function YK(t,e){tb=W9=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function QK(t,e,n){if((n&4194048)!==0){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OW(t,n)}}var T4={readContext:Go,use:xw,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useLayoutEffect:bi,useInsertionEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useSyncExternalStore:bi,useId:bi,useHostTransitionStatus:bi,useFormState:bi,useActionState:bi,useOptimistic:bi,useMemoCache:bi,useCacheRefresh:bi};T4.useEffectEvent=bi;var JK={readContext:Go,use:xw,useCallback:function(t,e){return Qa().memoizedState=[t,e===void 0?null:e],t},useContext:Go,useEffect:jZ,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,E9(4194308,4,BK.bind(null,e,t),n)},useLayoutEffect:function(t,e){return E9(4194308,4,t,e)},useInsertionEffect:function(t,e){E9(4,2,t,e)},useMemo:function(t,e){var n=Qa();e=e===void 0?null:e;var r=t();if(Wh){bf(!0);try{t()}finally{bf(!1)}}return n.memoizedState=[r,e],r},useReducer:function(t,e,n){var r=Qa();if(n!==void 0){var i=n(e);if(Wh){bf(!0);try{n(e)}finally{bf(!1)}}}else i=e;return r.memoizedState=r.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},r.queue=t,t=t.dispatch=LCe.bind(null,Sn,t),[r.memoizedState,t]},useRef:function(t){var e=Qa();return t={current:t},e.memoizedState=t},useState:function(t){t=OA(t);var e=t.queue,n=XK.bind(null,Sn,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:j$,useDeferredValue:function(t,e){var n=Qa();return O$(n,t,e)},useTransition:function(){var t=OA(!1);return t=UK.bind(null,Sn,t.queue,!0,!1),Qa().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var r=Sn,i=Qa();if(Un){if(n===void 0)throw Error(Ie(407));n=n()}else{if(n=e(),Rr===null)throw Error(Ie(349));(Hn&127)!==0||LK(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,jZ(EK.bind(null,r,o,t),[t]),r.flags|=2048,lb(9,{destroy:void 0},MK.bind(null,r,o,n,e),null),n},useId:function(){var t=Qa(),e=Rr.identifierPrefix;if(Un){var n=Qu,r=Yu;n=(r&~(1<<32-_l(r)-1)).toString(32)+n,e="_"+e+"R_"+n,n=K9++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=xCe++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:D$,useFormState:IZ,useActionState:IZ,useOptimistic:function(t){var e=Qa();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=F$.bind(null,Sn,!0,n),n.dispatch=e,[t,e]},useMemoCache:I$,useCacheRefresh:function(){return Qa().memoizedState=SCe.bind(null,Sn)},useEffectEvent:function(t){var e=Qa(),n={impl:t};return e.memoizedState=n,function(){if((ar&2)!==0)throw Error(Ie(440));return n.impl.apply(void 0,arguments)}}},B$={readContext:Go,use:xw,useCallback:qK,useContext:Go,useEffect:P$,useImperativeHandle:zK,useInsertionEffect:DK,useLayoutEffect:FK,useMemo:HK,useReducer:M9,useRef:jK,useState:function(){return M9(_p)},useDebugValue:j$,useDeferredValue:function(t,e){var n=Ii();return GK(n,Cr.memoizedState,t,e)},useTransition:function(){var t=M9(_p)[0],e=Ii().memoizedState;return[typeof t=="boolean"?t:q4(t),e]},useSyncExternalStore:SK,useId:WK,useHostTransitionStatus:D$,useFormState:NZ,useActionState:NZ,useOptimistic:function(t,e){var n=Ii();return AK(n,Cr,t,e)},useMemoCache:I$,useCacheRefresh:KK};B$.useEffectEvent=OK;var eX={readContext:Go,use:xw,useCallback:qK,useContext:Go,useEffect:P$,useImperativeHandle:zK,useInsertionEffect:DK,useLayoutEffect:FK,useMemo:HK,useReducer:ZR,useRef:jK,useState:function(){return ZR(_p)},useDebugValue:j$,useDeferredValue:function(t,e){var n=Ii();return Cr===null?O$(n,t,e):GK(n,Cr.memoizedState,t,e)},useTransition:function(){var t=ZR(_p)[0],e=Ii().memoizedState;return[typeof t=="boolean"?t:q4(t),e]},useSyncExternalStore:SK,useId:WK,useHostTransitionStatus:D$,useFormState:PZ,useActionState:PZ,useOptimistic:function(t,e){var n=Ii();return Cr!==null?AK(n,Cr,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:I$,useCacheRefresh:KK};eX.useEffectEvent=OK;function WR(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Wr({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var BA={enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Sl(),i=_f(r);i.payload=e,n!=null&&(i.callback=n),e=Sf(t,i,r),e!==null&&($s(e,t,r),p4(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Sl(),i=_f(r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Sf(t,i,r),e!==null&&($s(e,t,r),p4(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Sl(),r=_f(n);r.tag=2,e!=null&&(r.callback=e),e=Sf(t,r,n),e!==null&&($s(e,t,n),p4(e,t,n))}};function OZ(t,e,n,r,i,o,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,a):e.prototype&&e.prototype.isPureReactComponent?!_4(n,r)||!_4(i,o):!0}function DZ(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&BA.enqueueReplaceState(e,e.state,null)}function Kh(t,e){var n=e;if("ref"in e){n={};for(var r in e)r!=="ref"&&(n[r]=e[r])}if(t=t.defaultProps){n===e&&(n=Wr({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function tX(t){z9(t)}function nX(t){console.error(t)}function rX(t){z9(t)}function X9(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(r){setTimeout(function(){throw r})}}function FZ(t,e,n){try{var r=t.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function zA(t,e,n){return n=_f(n),n.tag=3,n.payload={element:null},n.callback=function(){X9(t,e)},n}function iX(t){return t=_f(t),t.tag=3,t}function oX(t,e,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;t.payload=function(){return i(o)},t.callback=function(){FZ(e,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(t.callback=function(){FZ(e,n,r),typeof i!="function"&&(Lf===null?Lf=new Set([this]):Lf.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function MCe(t,e,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(e=n.alternate,e!==null&&gb(e,n,i,!0),n=Ml.current,n!==null){switch(n.tag){case 31:case 13:return xc===null?tw():n.alternate===null&&yi===0&&(yi=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===U9?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([r]):e.add(r),oA(t,r,i)),!1;case 22:return n.flags|=65536,r===U9?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([r]):n.add(r)),oA(t,r,i)),!1}throw Error(Ie(435,n.tag))}return oA(t,r,i),tw(),!1}if(Un)return e=Ml.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,r!==EA&&(t=Error(Ie(422),{cause:r}),L4(bc(t,n)))):(r!==EA&&(e=Error(Ie(423),{cause:r}),L4(bc(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,r=bc(r,n),i=zA(t.stateNode,r,i),VR(t,i),yi!==4&&(yi=2)),!1;var o=Error(Ie(520),{cause:r});if(o=bc(o,n),y4===null?y4=[o]:y4.push(o),yi!==4&&(yi=2),e===null)return!0;r=bc(r,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=zA(n.stateNode,r,t),VR(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Lf===null||!Lf.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=iX(i),oX(i,t,n,r),VR(n,i),!1}n=n.return}while(n!==null);return!1}var z$=Error(Ie(461)),eo=!1;function zo(t,e,n,r){e.child=t===null?xK(e,null,n,r):Zh(e,t.child,n,r)}function BZ(t,e,n,r,i){n=n.render;var o=e.ref;if("ref"in r){var a={};for(var s in r)s!=="ref"&&(a[s]=r[s])}else a=r;return Vh(e),r=T$(t,e,n,a,o,i),s=R$(),t!==null&&!eo?(A$(t,e,i),Sp(t,e,i)):(Un&&s&&v$(e),e.flags|=1,zo(t,e,r,i),e.child)}function zZ(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!w$(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,aX(t,e,o,r,i)):(t=S9(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!q$(t,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_4,n(a,r)&&t.ref===e.ref)return Sp(t,e,i)}return e.flags|=1,t=xp(o,r),t.ref=e.ref,t.return=e,e.child=t}function aX(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if(_4(o,r)&&t.ref===e.ref)if(eo=!1,e.pendingProps=r=o,q$(t,i))(t.flags&131072)!==0&&(eo=!0);else return e.lanes=t.lanes,Sp(t,e,i)}return qA(t,e,n,r,i)}function sX(t,e,n,r){var i=r.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(r=e.child=t.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,e.child=null;return qZ(t,e,o,n,r)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&L9(e,o!==null?o.cachePool:null),o!==null?RZ(e,o):PA(),kK(e);else return r=e.lanes=536870912,qZ(t,e,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(L9(e,o.cachePool),RZ(e,o),hf(e),e.memoizedState=null):(t!==null&&L9(e,null),PA(),hf(e));return zo(t,e,i,n),e.child}function a4(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function qZ(t,e,n,r,i){var o=_$();return o=o===null?null:{parent:Ji._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&L9(e,null),PA(),kK(e),t!==null&&gb(t,e,r,!0),e.childLanes=i,null}function T9(t,e){return e=Y9({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function HZ(t,e,n){return Zh(e,t.child,null,n),t=T9(e,e.pendingProps),t.flags|=2,xl(e),e.memoizedState=null,t}function ECe(t,e,n){var r=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Un){if(r.mode==="hidden")return t=T9(e,r),e.lanes=536870912,a4(null,t);if(jA(e),(t=Zr)?(t=JX(t,yc),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Af!==null?{id:Yu,overflow:Qu}:null,retryLane:536870912,hydrationErrors:null},n=pK(t),n.return=e,e.child=n,Ho=e,Zr=null)):t=null,t===null)throw $f(e);return e.lanes=536870912,null}return T9(e,r)}var o=t.memoizedState;if(o!==null){var a=o.dehydrated;if(jA(e),i)if(e.flags&256)e.flags&=-257,e=HZ(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(Ie(558));else if(eo||gb(t,e,n,!1),i=(n&t.childLanes)!==0,eo||i){if(r=Rr,r!==null&&(a=DW(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,Jh(t,a),$s(r,t,a),z$;tw(),e=HZ(t,e,n)}else t=o.treeContext,Zr=wc(a.nextSibling),Ho=e,Un=!0,Cf=null,yc=!1,t!==null&&fK(e,t),e=T9(e,r),e.flags|=4096;return e}return t=xp(t.child,{mode:r.mode,children:r.children}),t.ref=e.ref,e.child=t,t.return=e,t}function R9(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(Ie(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function qA(t,e,n,r,i){return Vh(e),n=T$(t,e,n,r,void 0,i),r=R$(),t!==null&&!eo?(A$(t,e,i),Sp(t,e,i)):(Un&&r&&v$(e),e.flags|=1,zo(t,e,n,i),e.child)}function GZ(t,e,n,r,i,o){return Vh(e),e.updateQueue=null,n=_K(e,r,n,i),CK(t),r=R$(),t!==null&&!eo?(A$(t,e,o),Sp(t,e,o)):(Un&&r&&v$(e),e.flags|=1,zo(t,e,n,o),e.child)}function UZ(t,e,n,r,i){if(Vh(e),e.stateNode===null){var o=V5,a=n.contextType;typeof a=="object"&&a!==null&&(o=Go(a)),o=new n(r,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=BA,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=r,o.state=e.memoizedState,o.refs={},L$(e),a=n.contextType,o.context=typeof a=="object"&&a!==null?Go(a):V5,o.state=e.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(WR(e,n,a,r),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&BA.enqueueReplaceState(o,o.state,null),f4(e,r,o,i),m4(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!0}else if(t===null){o=e.stateNode;var s=e.memoizedProps,l=Kh(n,s);o.props=l;var c=o.context,u=n.contextType;a=V5,typeof u=="object"&&u!==null&&(a=Go(u));var d=n.getDerivedStateFromProps;u=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",s=e.pendingProps!==s,u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s||c!==a)&&DZ(e,o,r,a),pf=!1;var p=e.memoizedState;o.state=p,f4(e,r,o,i),m4(),c=e.memoizedState,s||p!==c||pf?(typeof d=="function"&&(WR(e,n,d,r),c=e.memoizedState),(l=pf||OZ(e,n,l,r,p,c,a))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),o.props=r,o.state=c,o.context=a,r=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,IA(t,e),a=e.memoizedProps,u=Kh(n,a),o.props=u,d=e.pendingProps,p=o.context,c=n.contextType,l=V5,typeof c=="object"&&c!==null&&(l=Go(c)),s=n.getDerivedStateFromProps,(c=typeof s=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||p!==l)&&DZ(e,o,r,l),pf=!1,p=e.memoizedState,o.state=p,f4(e,r,o,i),m4();var m=e.memoizedState;a!==d||p!==m||pf||t!==null&&t.dependencies!==null&&G9(t.dependencies)?(typeof s=="function"&&(WR(e,n,s,r),m=e.memoizedState),(u=pf||OZ(e,n,u,r,p,m,l)||t!==null&&t.dependencies!==null&&G9(t.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=m),o.props=r,o.state=m,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),r=!1)}return o=r,R9(t,e),r=(e.flags&128)!==0,o||r?(o=e.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&r?(e.child=Zh(e,t.child,null,i),e.child=Zh(e,null,n,i)):zo(t,e,n,i),e.memoizedState=o.state,t=e.child):t=Sp(t,e,i),t}function VZ(t,e,n,r){return Uh(),e.flags|=256,zo(t,e,n,r),e.child}var KR={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function XR(t){return{baseLanes:t,cachePool:gK()}}function YR(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=vl),t}function lX(t,e,n){var r=e.pendingProps,i=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:($i.current&2)!==0),a&&(i=!0,e.flags&=-129),a=(e.flags&32)!==0,e.flags&=-33,t===null){if(Un){if(i?ff(e):hf(e),(t=Zr)?(t=JX(t,yc),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Af!==null?{id:Yu,overflow:Qu}:null,retryLane:536870912,hydrationErrors:null},n=pK(t),n.return=e,e.child=n,Ho=e,Zr=null)):t=null,t===null)throw $f(e);return n$(t)?e.lanes=32:e.lanes=536870912,null}var s=r.children;return r=r.fallback,i?(hf(e),i=e.mode,s=Y9({mode:"hidden",children:s},i),r=zh(r,i,n,null),s.return=e,r.return=e,s.sibling=r,e.child=s,r=e.child,r.memoizedState=XR(n),r.childLanes=YR(t,a,n),e.memoizedState=KR,a4(null,r)):(ff(e),HA(e,s))}var l=t.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(o)e.flags&256?(ff(e),e.flags&=-257,e=QR(t,e,n)):e.memoizedState!==null?(hf(e),e.child=t.child,e.flags|=128,e=null):(hf(e),s=r.fallback,i=e.mode,r=Y9({mode:"visible",children:r.children},i),s=zh(s,i,n,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,Zh(e,t.child,null,n),r=e.child,r.memoizedState=XR(n),r.childLanes=YR(t,a,n),e.memoizedState=KR,e=a4(null,r));else if(ff(e),n$(s)){if(a=s.nextSibling&&s.nextSibling.dataset,a)var c=a.dgst;a=c,r=Error(Ie(419)),r.stack="",r.digest=a,L4({value:r,source:null,stack:null}),e=QR(t,e,n)}else if(eo||gb(t,e,n,!1),a=(n&t.childLanes)!==0,eo||a){if(a=Rr,a!==null&&(r=DW(a,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Jh(t,r),$s(a,t,r),z$;t$(s)||tw(),e=QR(t,e,n)}else t$(s)?(e.flags|=192,e.child=t.child,e=null):(t=l.treeContext,Zr=wc(s.nextSibling),Ho=e,Un=!0,Cf=null,yc=!1,t!==null&&fK(e,t),e=HA(e,r.children),e.flags|=4096);return e}return i?(hf(e),s=r.fallback,i=e.mode,l=t.child,c=l.sibling,r=xp(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,c!==null?s=xp(c,s):(s=zh(s,i,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,a4(null,r),r=e.child,s=t.child.memoizedState,s===null?s=XR(n):(i=s.cachePool,i!==null?(l=Ji._currentValue,i=i.parent!==l?{parent:l,pool:l}:i):i=gK(),s={baseLanes:s.baseLanes|n,cachePool:i}),r.memoizedState=s,r.childLanes=YR(t,a,n),e.memoizedState=KR,a4(t.child,r)):(ff(e),n=t.child,t=n.sibling,n=xp(n,{mode:"visible",children:r.children}),n.return=e,n.sibling=null,t!==null&&(a=e.deletions,a===null?(e.deletions=[t],e.flags|=16):a.push(t)),e.child=n,e.memoizedState=null,n)}function HA(t,e){return e=Y9({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Y9(t,e){return t=wl(22,t,null,e),t.lanes=0,t}function QR(t,e,n){return Zh(e,t.child,null,n),t=HA(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ZZ(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),RA(t.return,e,n)}function JR(t,e,n,r,i,o){var a=t.memoizedState;a===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function cX(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=$i.current,s=(a&2)!==0;if(s?(a=a&1|2,e.flags|=128):a&=1,Or($i,a),zo(t,e,r,n),r=Un?S4:0,!s&&t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ZZ(t,n,e);else if(t.tag===19)ZZ(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Z9(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),JR(e,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Z9(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}JR(e,!0,n,null,o,r);break;case"together":JR(e,!1,null,null,void 0,r);break;default:e.memoizedState=null}return e.child}function Sp(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Nf|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(gb(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(Ie(153));if(e.child!==null){for(t=e.child,n=xp(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=xp(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function q$(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&G9(t)))}function TCe(t,e,n){switch(e.tag){case 3:O9(e,e.stateNode.containerInfo),mf(e,Ji,t.memoizedState.cache),Uh();break;case 27:case 5:bA(e);break;case 4:O9(e,e.stateNode.containerInfo);break;case 10:mf(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,jA(e),null;break;case 13:var r=e.memoizedState;if(r!==null)return r.dehydrated!==null?(ff(e),e.flags|=128,null):(n&e.child.childLanes)!==0?lX(t,e,n):(ff(e),t=Sp(t,e,n),t!==null?t.sibling:null);ff(e);break;case 19:var i=(t.flags&128)!==0;if(r=(n&e.childLanes)!==0,r||(gb(t,e,n,!1),r=(n&e.childLanes)!==0),i){if(r)return cX(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Or($i,$i.current),r)break;return null;case 22:return e.lanes=0,sX(t,e,n,e.pendingProps);case 24:mf(e,Ji,t.memoizedState.cache)}return Sp(t,e,n)}function uX(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)eo=!0;else{if(!q$(t,n)&&(e.flags&128)===0)return eo=!1,TCe(t,e,n);eo=(t.flags&131072)!==0}else eo=!1,Un&&(e.flags&1048576)!==0&&mK(e,S4,e.index);switch(e.lanes=0,e.tag){case 16:e:{var r=e.pendingProps;if(t=Dh(e.elementType),e.type=t,typeof t=="function")w$(t)?(r=Kh(t,r),e.tag=1,e=UZ(null,e,t,r,n)):(e.tag=0,e=qA(null,e,t,r,n));else{if(t!=null){var i=t.$$typeof;if(i===a$){e.tag=11,e=BZ(null,e,t,r,n);break e}else if(i===s$){e.tag=14,e=zZ(null,e,t,r,n);break e}}throw e=hA(t)||t,Error(Ie(306,e,""))}}return e;case 0:return qA(t,e,e.type,e.pendingProps,n);case 1:return r=e.type,i=Kh(r,e.pendingProps),UZ(t,e,r,i,n);case 3:e:{if(O9(e,e.stateNode.containerInfo),t===null)throw Error(Ie(387));r=e.pendingProps;var o=e.memoizedState;i=o.element,IA(t,e),f4(e,r,null,n);var a=e.memoizedState;if(r=a.cache,mf(e,Ji,r),r!==o.cache&&AA(e,[Ji],n,!0),m4(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=VZ(t,e,r,n);break e}else if(r!==i){i=bc(Error(Ie(424)),e),L4(i),e=VZ(t,e,r,n);break e}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Zr=wc(t.firstChild),Ho=e,Un=!0,Cf=null,yc=!0,n=xK(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Uh(),r===i){e=Sp(t,e,n);break e}zo(t,e,r,n)}e=e.child}return e;case 26:return R9(t,e),t===null?(n=hW(e.type,null,e.pendingProps,null))?e.memoizedState=n:Un||(n=e.type,t=e.pendingProps,r=ow(kf.current).createElement(n),r[qo]=e,r[Is]=t,Uo(r,n,t),Lo(r),e.stateNode=r):e.memoizedState=hW(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return bA(e),t===null&&Un&&(r=e.stateNode=eY(e.type,e.pendingProps,kf.current),Ho=e,yc=!0,i=Zr,jf(e.type)?(r$=i,Zr=wc(r.firstChild)):Zr=i),zo(t,e,e.pendingProps.children,n),R9(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Un&&((i=r=Zr)&&(r=r_e(r,e.type,e.pendingProps,yc),r!==null?(e.stateNode=r,Ho=e,Zr=wc(r.firstChild),yc=!1,i=!0):i=!1),i||$f(e)),bA(e),i=e.type,o=e.pendingProps,a=t!==null?t.memoizedProps:null,r=o.children,JA(i,o)?r=null:a!==null&&JA(i,a)&&(e.flags|=32),e.memoizedState!==null&&(i=T$(t,e,wCe,null,null,n),$4._currentValue=i),R9(t,e),zo(t,e,r,n),e.child;case 6:return t===null&&Un&&((t=n=Zr)&&(n=i_e(n,e.pendingProps,yc),n!==null?(e.stateNode=n,Ho=e,Zr=null,t=!0):t=!1),t||$f(e)),null;case 13:return lX(t,e,n);case 4:return O9(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Zh(e,null,r,n):zo(t,e,r,n),e.child;case 11:return BZ(t,e,e.type,e.pendingProps,n);case 7:return zo(t,e,e.pendingProps,n),e.child;case 8:return zo(t,e,e.pendingProps.children,n),e.child;case 12:return zo(t,e,e.pendingProps.children,n),e.child;case 10:return r=e.pendingProps,mf(e,e.type,r.value),zo(t,e,r.children,n),e.child;case 9:return i=e.type._context,r=e.pendingProps.children,Vh(e),i=Go(i),r=r(i),e.flags|=1,zo(t,e,r,n),e.child;case 14:return zZ(t,e,e.type,e.pendingProps,n);case 15:return aX(t,e,e.type,e.pendingProps,n);case 19:return cX(t,e,n);case 31:return ECe(t,e,n);case 22:return sX(t,e,n,e.pendingProps);case 24:return Vh(e),r=Go(Ji),t===null?(i=_$(),i===null&&(i=Rr,o=C$(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),e.memoizedState={parent:r,cache:i},L$(e),mf(e,Ji,i)):((t.lanes&n)!==0&&(IA(t,e),f4(e,null,null,n),m4()),i=t.memoizedState,o=e.memoizedState,i.parent!==r?(i={parent:r,cache:r},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),mf(e,Ji,r)):(r=o.cache,mf(e,Ji,r),r!==i.cache&&AA(e,[Ji],n,!0))),zo(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(Ie(156,e.tag))}function up(t){t.flags|=4}function eA(t,e,n,r,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(NX())t.flags|=8192;else throw Hh=U9,S$}else t.flags&=-16777217}function WZ(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!rY(e))if(NX())t.flags|=8192;else throw Hh=U9,S$}function f9(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?PW():536870912,t.lanes|=e,cb|=e)}function J3(t,e){if(!Un)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Vr(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function RCe(t,e,n){var r=e.pendingProps;switch(k$(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vr(e),null;case 1:return Vr(e),null;case 3:return n=e.stateNode,r=null,t!==null&&(r=t.memoizedState.cache),e.memoizedState.cache!==r&&(e.flags|=2048),wp(Ji),rb(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(N5(e)?up(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,UR())),Vr(e),null;case 26:var i=e.type,o=e.memoizedState;return t===null?(up(e),o!==null?(Vr(e),WZ(e,o)):(Vr(e),eA(e,i,null,r,n))):o?o!==t.memoizedState?(up(e),Vr(e),WZ(e,o)):(Vr(e),e.flags&=-16777217):(t=t.memoizedProps,t!==r&&up(e),Vr(e),eA(e,i,t,r,n)),null;case 27:if(D9(e),n=kf.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&up(e);else{if(!r){if(e.stateNode===null)throw Error(Ie(166));return Vr(e),null}t=ed.current,N5(e)?CZ(e,t):(t=eY(i,r,n),e.stateNode=t,up(e))}return Vr(e),null;case 5:if(D9(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&up(e);else{if(!r){if(e.stateNode===null)throw Error(Ie(166));return Vr(e),null}if(o=ed.current,N5(e))CZ(e,o);else{var a=ow(kf.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[qo]=e,o[Is]=r;e:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=o;e:switch(Uo(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&up(e)}}return Vr(e),eA(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==r&&up(e);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Ie(166));if(t=kf.current,N5(e)){if(t=e.stateNode,n=e.memoizedProps,r=null,i=Ho,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}t[qo]=e,t=!!(t.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||XX(t.nodeValue,n)),t||$f(e,!0)}else t=ow(t).createTextNode(r),t[qo]=e,e.stateNode=t}return Vr(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(r=N5(e),n!==null){if(t===null){if(!r)throw Error(Ie(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Ie(557));t[qo]=e}else Uh(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vr(e),t=!1}else n=UR(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(xl(e),e):(xl(e),null);if((e.flags&128)!==0)throw Error(Ie(558))}return Vr(e),null;case 13:if(r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=N5(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(Ie(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Ie(317));i[qo]=e}else Uh(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vr(e),i=!1}else i=UR(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(xl(e),e):(xl(e),null)}return xl(e),(e.flags&128)!==0?(e.lanes=n,e):(n=r!==null,t=t!==null&&t.memoizedState!==null,n&&(r=e.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),f9(e,e.updateQueue),Vr(e),null);case 4:return rb(),t===null&&K$(e.stateNode.containerInfo),Vr(e),null;case 10:return wp(e.type),Vr(e),null;case 19:if(Mo($i),r=e.memoizedState,r===null)return Vr(e),null;if(i=(e.flags&128)!==0,o=r.rendering,o===null)if(i)J3(r,!1);else{if(yi!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=Z9(t),o!==null){for(e.flags|=128,J3(r,!1),t=o.updateQueue,e.updateQueue=t,f9(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)dK(n,t),n=n.sibling;return Or($i,$i.current&1|2),Un&&fp(e,r.treeForkCount),e.child}t=t.sibling}r.tail!==null&&kl()>J9&&(e.flags|=128,i=!0,J3(r,!1),e.lanes=4194304)}else{if(!i)if(t=Z9(o),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,f9(e,t),J3(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Un)return Vr(e),null}else 2*kl()-r.renderingStartTime>J9&&n!==536870912&&(e.flags|=128,i=!0,J3(r,!1),e.lanes=4194304);r.isBackwards?(o.sibling=e.child,e.child=o):(t=r.last,t!==null?t.sibling=o:e.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=kl(),t.sibling=null,n=$i.current,Or($i,i?n&1|2:n&1),Un&&fp(e,r.treeForkCount),t):(Vr(e),null);case 22:case 23:return xl(e),M$(),r=e.memoizedState!==null,t!==null?t.memoizedState!==null!==r&&(e.flags|=8192):r&&(e.flags|=8192),r?(n&536870912)!==0&&(e.flags&128)===0&&(Vr(e),e.subtreeFlags&6&&(e.flags|=8192)):Vr(e),n=e.updateQueue,n!==null&&f9(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),r=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),r!==n&&(e.flags|=2048),t!==null&&Mo(qh),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),wp(Ji),Vr(e),null;case 25:return null;case 30:return null}throw Error(Ie(156,e.tag))}function ACe(t,e){switch(k$(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wp(Ji),rb(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return D9(e),null;case 31:if(e.memoizedState!==null){if(xl(e),e.alternate===null)throw Error(Ie(340));Uh()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(xl(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Ie(340));Uh()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Mo($i),null;case 4:return rb(),null;case 10:return wp(e.type),null;case 22:case 23:return xl(e),M$(),t!==null&&Mo(qh),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wp(Ji),null;case 25:return null;default:return null}}function dX(t,e){switch(k$(e),e.tag){case 3:wp(Ji),rb();break;case 26:case 27:case 5:D9(e);break;case 4:rb();break;case 31:e.memoizedState!==null&&xl(e);break;case 13:xl(e);break;case 19:Mo($i);break;case 10:wp(e.type);break;case 22:case 23:xl(e),M$(),t!==null&&Mo(qh);break;case 24:wp(Ji)}}function H4(t,e){try{var n=e.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&t)===t){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(s){gr(e,e.return,s)}}function If(t,e,n){try{var r=e.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&t)===t){var a=r.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,i=e;var l=n,c=s;try{c()}catch(u){gr(i,l,u)}}}r=r.next}while(r!==o)}}catch(u){gr(e,e.return,u)}}function pX(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{vK(e,n)}catch(r){gr(t,t.return,r)}}}function mX(t,e,n){n.props=Kh(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(r){gr(t,e,r)}}function g4(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var r=t.stateNode;break;case 30:r=t.stateNode;break;default:r=t.stateNode}typeof n=="function"?t.refCleanup=n(r):n.current=r}}catch(i){gr(t,e,i)}}function Ju(t,e){var n=t.ref,r=t.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){gr(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){gr(t,e,i)}else n.current=null}function fX(t){var e=t.type,n=t.memoizedProps,r=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){gr(t,t.return,i)}}function tA(t,e,n){try{var r=t.stateNode;YCe(r,t.type,n,e),r[Is]=e}catch(i){gr(t,t.return,i)}}function hX(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&jf(t.type)||t.tag===4}function nA(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||hX(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&jf(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function GA(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=bp));else if(r!==4&&(r===27&&jf(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(GA(t,e,n),t=t.sibling;t!==null;)GA(t,e,n),t=t.sibling}function Q9(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(r===27&&jf(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Q9(t,e,n),t=t.sibling;t!==null;)Q9(t,e,n),t=t.sibling}function gX(t){var e=t.stateNode,n=t.memoizedProps;try{for(var r=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);Uo(e,r,n),e[qo]=t,e[Is]=n}catch(o){gr(t,t.return,o)}}var hp=!1,Qi=!1,rA=!1,KZ=typeof WeakSet=="function"?WeakSet:Set,So=null;function $Ce(t,e){if(t=t.containerInfo,YA=cw,t=rK(t),b$(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=t,p=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===t)break t;if(p===n&&++c===i&&(s=a),p===o&&++u===r&&(l=a),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(QA={focusedElem:t,selectionRange:n},cw=!1,So=e;So!==null;)if(e=So,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,So=t;else for(;So!==null;){switch(e=So,o=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var f=Kh(n.type,i);t=r.getSnapshotBeforeUpdate(f,o),r.__reactInternalSnapshotBeforeUpdate=t}catch(h){gr(n,n.return,h)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)e$(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":e$(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(Ie(163))}if(t=e.sibling,t!==null){t.return=e.return,So=t;break}So=e.return}}function bX(t,e,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:pp(t,n),r&4&&H4(5,n);break;case 1:if(pp(t,n),r&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(a){gr(n,n.return,a)}else{var i=Kh(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(a){gr(n,n.return,a)}}r&64&&pX(n),r&512&&g4(n,n.return);break;case 3:if(pp(t,n),r&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{vK(t,e)}catch(a){gr(n,n.return,a)}}break;case 27:e===null&&r&4&&gX(n);case 26:case 5:pp(t,n),e===null&&r&4&&fX(n),r&512&&g4(n,n.return);break;case 12:pp(t,n);break;case 31:pp(t,n),r&4&&wX(t,n);break;case 13:pp(t,n),r&4&&vX(t,n),r&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=zCe.bind(null,n),o_e(t,n))));break;case 22:if(r=n.memoizedState!==null||hp,!r){e=e!==null&&e.memoizedState!==null||Qi,i=hp;var o=Qi;hp=r,(Qi=e)&&!o?mp(t,n,(n.subtreeFlags&8772)!==0):pp(t,n),hp=i,Qi=o}break;case 30:break;default:pp(t,n)}}function yX(t){var e=t.alternate;e!==null&&(t.alternate=null,yX(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&d$(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ni=null,Rs=!1;function dp(t,e,n){for(n=n.child;n!==null;)xX(t,e,n),n=n.sibling}function xX(t,e,n){if(Cl&&typeof Cl.onCommitFiberUnmount=="function")try{Cl.onCommitFiberUnmount(j4,n)}catch{}switch(n.tag){case 26:Qi||Ju(n,e),dp(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Qi||Ju(n,e);var r=ni,i=Rs;jf(n.type)&&(ni=n.stateNode,Rs=!1),dp(t,e,n),w4(n.stateNode),ni=r,Rs=i;break;case 5:Qi||Ju(n,e);case 6:if(r=ni,i=Rs,ni=null,dp(t,e,n),ni=r,Rs=i,ni!==null)if(Rs)try{(ni.nodeType===9?ni.body:ni.nodeName==="HTML"?ni.ownerDocument.body:ni).removeChild(n.stateNode)}catch(o){gr(n,e,o)}else try{ni.removeChild(n.stateNode)}catch(o){gr(n,e,o)}break;case 18:ni!==null&&(Rs?(t=ni,uW(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),mb(t)):uW(ni,n.stateNode));break;case 4:r=ni,i=Rs,ni=n.stateNode.containerInfo,Rs=!0,dp(t,e,n),ni=r,Rs=i;break;case 0:case 11:case 14:case 15:If(2,n,e),Qi||If(4,n,e),dp(t,e,n);break;case 1:Qi||(Ju(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"&&mX(n,e,r)),dp(t,e,n);break;case 21:dp(t,e,n);break;case 22:Qi=(r=Qi)||n.memoizedState!==null,dp(t,e,n),Qi=r;break;default:dp(t,e,n)}}function wX(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{mb(t)}catch(n){gr(e,e.return,n)}}}function vX(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{mb(t)}catch(n){gr(e,e.return,n)}}function ICe(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new KZ),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new KZ),e;default:throw Error(Ie(435,t.tag))}}function h9(t,e){var n=ICe(t);e.forEach(function(r){if(!n.has(r)){n.add(r);var i=qCe.bind(null,t,r);r.then(i,i)}})}function Es(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=t,a=e,s=a;e:for(;s!==null;){switch(s.tag){case 27:if(jf(s.type)){ni=s.stateNode,Rs=!1;break e}break;case 5:ni=s.stateNode,Rs=!1;break e;case 3:case 4:ni=s.stateNode.containerInfo,Rs=!0;break e}s=s.return}if(ni===null)throw Error(Ie(160));xX(o,a,i),ni=null,Rs=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)kX(e,t),e=e.sibling}var mu=null;function kX(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Es(e,t),Ts(t),r&4&&(If(3,t,t.return),H4(3,t),If(5,t,t.return));break;case 1:Es(e,t),Ts(t),r&512&&(Qi||n===null||Ju(n,n.return)),r&64&&hp&&(t=t.updateQueue,t!==null&&(r=t.callbacks,r!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=mu;if(Es(e,t),Ts(t),r&512&&(Qi||n===null||Ju(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=t.memoizedState,n===null)if(r===null)if(t.stateNode===null){e:{r=t.type,n=t.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[F4]||o[qo]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Uo(o,r,n),o[qo]=t,Lo(o),r=o;break e;case"link":var a=bW("link","href",i).get(r+(n.href||""));if(a){for(var s=0;s<a.length;s++)if(o=a[s],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(s,1);break t}}o=i.createElement(r),Uo(o,r,n),i.head.appendChild(o);break;case"meta":if(a=bW("meta","content",i).get(r+(n.content||""))){for(s=0;s<a.length;s++)if(o=a[s],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(s,1);break t}}o=i.createElement(r),Uo(o,r,n),i.head.appendChild(o);break;default:throw Error(Ie(468,r))}o[qo]=t,Lo(o),r=o}t.stateNode=r}else yW(i,t.type,t.stateNode);else t.stateNode=gW(i,r,t.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?yW(i,t.type,t.stateNode):gW(i,r,t.memoizedProps)):r===null&&t.stateNode!==null&&tA(t,t.memoizedProps,n.memoizedProps)}break;case 27:Es(e,t),Ts(t),r&512&&(Qi||n===null||Ju(n,n.return)),n!==null&&r&4&&tA(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Es(e,t),Ts(t),r&512&&(Qi||n===null||Ju(n,n.return)),t.flags&32){i=t.stateNode;try{ob(i,"")}catch(f){gr(t,t.return,f)}}r&4&&t.stateNode!=null&&(i=t.memoizedProps,tA(t,i,n!==null?n.memoizedProps:i)),r&1024&&(rA=!0);break;case 6:if(Es(e,t),Ts(t),r&4){if(t.stateNode===null)throw Error(Ie(162));r=t.memoizedProps,n=t.stateNode;try{n.nodeValue=r}catch(f){gr(t,t.return,f)}}break;case 3:if(I9=null,i=mu,mu=aw(e.containerInfo),Es(e,t),mu=i,Ts(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{mb(e.containerInfo)}catch(f){gr(t,t.return,f)}rA&&(rA=!1,CX(t));break;case 4:r=mu,mu=aw(t.stateNode.containerInfo),Es(e,t),Ts(t),mu=r;break;case 12:Es(e,t),Ts(t);break;case 31:Es(e,t),Ts(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,h9(t,r)));break;case 13:Es(e,t),Ts(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(kw=kl()),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,h9(t,r)));break;case 22:i=t.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=hp,u=Qi;if(hp=c||i,Qi=u||l,Es(e,t),Qi=u,hp=c,Ts(t),r&8192)e:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||l||hp||Qi||Fh(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){l=n=e;try{if(o=l.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{s=l.stateNode;var d=l.memoizedProps.style,p=d!=null&&d.hasOwnProperty("display")?d.display:null;s.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(f){gr(l,l.return,f)}}}else if(e.tag===6){if(n===null){l=e;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(f){gr(l,l.return,f)}}}else if(e.tag===18){if(n===null){l=e;try{var m=l.stateNode;i?dW(m,!0):dW(l.stateNode,!1)}catch(f){gr(l,l.return,f)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}r&4&&(r=t.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,h9(t,n))));break;case 19:Es(e,t),Ts(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,h9(t,r)));break;case 30:break;case 21:break;default:Es(e,t),Ts(t)}}function Ts(t){var e=t.flags;if(e&2){try{for(var n,r=t.return;r!==null;){if(hX(r)){n=r;break}r=r.return}if(n==null)throw Error(Ie(160));switch(n.tag){case 27:var i=n.stateNode,o=nA(t);Q9(t,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(ob(a,""),n.flags&=-33);var s=nA(t);Q9(t,s,a);break;case 3:case 4:var l=n.stateNode.containerInfo,c=nA(t);GA(t,c,l);break;default:throw Error(Ie(161))}}catch(u){gr(t,t.return,u)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function CX(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;CX(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function pp(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)bX(t,e.alternate,e),e=e.sibling}function Fh(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:If(4,e,e.return),Fh(e);break;case 1:Ju(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&mX(e,e.return,n),Fh(e);break;case 27:w4(e.stateNode);case 26:case 5:Ju(e,e.return),Fh(e);break;case 22:e.memoizedState===null&&Fh(e);break;case 30:Fh(e);break;default:Fh(e)}t=t.sibling}}function mp(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var r=e.alternate,i=t,o=e,a=o.flags;switch(o.tag){case 0:case 11:case 15:mp(i,o,n),H4(4,o);break;case 1:if(mp(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(c){gr(r,r.return,c)}if(r=o,i=r.updateQueue,i!==null){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)wK(l[i],s)}catch(c){gr(r,r.return,c)}}n&&a&64&&pX(o),g4(o,o.return);break;case 27:gX(o);case 26:case 5:mp(i,o,n),n&&r===null&&a&4&&fX(o),g4(o,o.return);break;case 12:mp(i,o,n);break;case 31:mp(i,o,n),n&&a&4&&wX(i,o);break;case 13:mp(i,o,n),n&&a&4&&vX(i,o);break;case 22:o.memoizedState===null&&mp(i,o,n),g4(o,o.return);break;case 30:break;default:mp(i,o,n)}e=e.sibling}}function H$(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&z4(n))}function G$(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&z4(t))}function pu(t,e,n,r){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_X(t,e,n,r),e=e.sibling}function _X(t,e,n,r){var i=e.flags;switch(e.tag){case 0:case 11:case 15:pu(t,e,n,r),i&2048&&H4(9,e);break;case 1:pu(t,e,n,r);break;case 3:pu(t,e,n,r),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&z4(t)));break;case 12:if(i&2048){pu(t,e,n,r),t=e.stateNode;try{var o=e.memoizedProps,a=o.id,s=o.onPostCommit;typeof s=="function"&&s(a,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(l){gr(e,e.return,l)}}else pu(t,e,n,r);break;case 31:pu(t,e,n,r);break;case 13:pu(t,e,n,r);break;case 23:break;case 22:o=e.stateNode,a=e.alternate,e.memoizedState!==null?o._visibility&2?pu(t,e,n,r):b4(t,e):o._visibility&2?pu(t,e,n,r):(o._visibility|=2,j5(t,e,n,r,(e.subtreeFlags&10256)!==0||!1)),i&2048&&H$(a,e);break;case 24:pu(t,e,n,r),i&2048&&G$(e.alternate,e);break;default:pu(t,e,n,r)}}function j5(t,e,n,r,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,a=e,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:j5(o,a,s,l,i),H4(8,a);break;case 23:break;case 22:var u=a.stateNode;a.memoizedState!==null?u._visibility&2?j5(o,a,s,l,i):b4(o,a):(u._visibility|=2,j5(o,a,s,l,i)),i&&c&2048&&H$(a.alternate,a);break;case 24:j5(o,a,s,l,i),i&&c&2048&&G$(a.alternate,a);break;default:j5(o,a,s,l,i)}e=e.sibling}}function b4(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,r=e,i=r.flags;switch(r.tag){case 22:b4(n,r),i&2048&&H$(r.alternate,r);break;case 24:b4(n,r),i&2048&&G$(r.alternate,r);break;default:b4(n,r)}e=e.sibling}}var s4=8192;function P5(t,e,n){if(t.subtreeFlags&s4)for(t=t.child;t!==null;)SX(t,e,n),t=t.sibling}function SX(t,e,n){switch(t.tag){case 26:P5(t,e,n),t.flags&s4&&t.memoizedState!==null&&b_e(n,mu,t.memoizedState,t.memoizedProps);break;case 5:P5(t,e,n);break;case 3:case 4:var r=mu;mu=aw(t.stateNode.containerInfo),P5(t,e,n),mu=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=s4,s4=16777216,P5(t,e,n),s4=r):P5(t,e,n));break;default:P5(t,e,n)}}function LX(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function e4(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var r=e[n];So=r,EX(r,t)}LX(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)MX(t),t=t.sibling}function MX(t){switch(t.tag){case 0:case 11:case 15:e4(t),t.flags&2048&&If(9,t,t.return);break;case 3:e4(t);break;case 12:e4(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,A9(t)):e4(t);break;default:e4(t)}}function A9(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var r=e[n];So=r,EX(r,t)}LX(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:If(8,e,e.return),A9(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,A9(e));break;default:A9(e)}t=t.sibling}}function EX(t,e){for(;So!==null;){var n=So;switch(n.tag){case 0:case 11:case 15:If(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:z4(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,So=r;else e:for(n=t;So!==null;){r=So;var i=r.sibling,o=r.return;if(yX(r),r===n){So=null;break e}if(i!==null){i.return=o,So=i;break e}So=o}}}var NCe={getCacheForType:function(t){var e=Go(Ji),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Go(Ji).controller.signal}},PCe=typeof WeakMap=="function"?WeakMap:Map,ar=0,Rr=null,Dn=null,Hn=0,hr=0,yl=null,xf=!1,yb=!1,U$=!1,Lp=0,yi=0,Nf=0,Gh=0,V$=0,vl=0,cb=0,y4=null,As=null,UA=!1,kw=0,TX=0,J9=1/0,ew=null,Lf=null,mo=0,Mf=null,ub=null,vp=0,VA=0,ZA=null,RX=null,x4=0,WA=null;function Sl(){return(ar&2)!==0&&Hn!==0?Hn&-Hn:on.T!==null?W$():FW()}function AX(){if(vl===0)if((Hn&536870912)===0||Un){var t=o9;o9<<=1,(o9&3932160)===0&&(o9=262144),vl=t}else vl=536870912;return t=Ml.current,t!==null&&(t.flags|=32),vl}function $s(t,e,n){(t===Rr&&(hr===2||hr===9)||t.cancelPendingCommit!==null)&&(db(t,0),wf(t,Hn,vl,!1)),D4(t,n),((ar&2)===0||t!==Rr)&&(t===Rr&&((ar&2)===0&&(Gh|=n),yi===4&&wf(t,Hn,vl,!1)),nd(t))}function $X(t,e,n){if((ar&6)!==0)throw Error(Ie(327));var r=!n&&(e&127)===0&&(e&t.expiredLanes)===0||O4(t,e),i=r?DCe(t,e):iA(t,e,!0),o=r;do{if(i===0){yb&&!r&&wf(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!jCe(n)){i=iA(t,e,!1),o=!1;continue}if(i===2){if(o=e,t.errorRecoveryDisabledLanes&o)var a=0;else a=t.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){e=a;e:{var s=t;i=y4;var l=s.current.memoizedState.isDehydrated;if(l&&(db(s,a).flags|=256),a=iA(s,a,!1),a!==2){if(U$&&!l){s.errorRecoveryDisabledLanes|=o,Gh|=o,i=4;break e}o=As,As=i,o!==null&&(As===null?As=o:As.push.apply(As,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){db(t,0),wf(t,e,0,!0);break}e:{switch(r=t,o=i,o){case 0:case 1:throw Error(Ie(345));case 4:if((e&4194048)!==e)break;case 6:wf(r,e,vl,!xf);break e;case 2:As=null;break;case 3:case 5:break;default:throw Error(Ie(329))}if((e&62914560)===e&&(i=kw+300-kl(),10<i)){if(wf(r,e,vl,!xf),dw(r,0,!0)!==0)break e;vp=e,r.timeoutHandle=QX(XZ.bind(null,r,n,As,ew,UA,e,vl,Gh,cb,xf,o,"Throttled",-0,0),i);break e}XZ(r,n,As,ew,UA,e,vl,Gh,cb,xf,o,null,-0,0)}}break}while(!0);nd(t)}function XZ(t,e,n,r,i,o,a,s,l,c,u,d,p,m){if(t.timeoutHandle=-1,d=e.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bp},SX(e,o,d);var f=(o&62914560)===o?kw-kl():(o&4194048)===o?TX-kl():0;if(f=y_e(d,f),f!==null){vp=o,t.cancelPendingCommit=f(QZ.bind(null,t,e,o,n,r,i,a,s,l,u,d,null,p,m)),wf(t,o,a,!c);return}}QZ(t,e,o,n,r,i,a,s,l)}function jCe(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Ll(o(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function wf(t,e,n,r){e&=~V$,e&=~Gh,t.suspendedLanes|=e,t.pingedLanes&=~e,r&&(t.warmLanes|=e),r=t.expirationTimes;for(var i=e;0<i;){var o=31-_l(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&jW(t,n,e)}function Cw(){return(ar&6)===0?(G4(0,!1),!1):!0}function Z$(){if(Dn!==null){if(hr===0)var t=Dn.return;else t=Dn,yp=e0=null,$$(t),eb=null,M4=0,t=Dn;for(;t!==null;)dX(t.alternate,t),t=t.return;Dn=null}}function db(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,e_e(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),vp=0,Z$(),Rr=t,Dn=n=xp(t.current,null),Hn=e,hr=0,yl=null,xf=!1,yb=O4(t,e),U$=!1,cb=vl=V$=Gh=Nf=yi=0,As=y4=null,UA=!1,(e&8)!==0&&(e|=e&32);var r=t.entangledLanes;if(r!==0)for(t=t.entanglements,r&=e;0<r;){var i=31-_l(r),o=1<<i;e|=t[i],r&=~o}return Lp=e,hw(),n}function IX(t,e){Sn=null,on.H=T4,e===bb||e===bw?(e=EZ(),hr=3):e===S$?(e=EZ(),hr=4):hr=e===z$?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,yl=e,Dn===null&&(yi=1,X9(t,bc(e,t.current)))}function NX(){var t=Ml.current;return t===null?!0:(Hn&4194048)===Hn?xc===null:(Hn&62914560)===Hn||(Hn&536870912)!==0?t===xc:!1}function PX(){var t=on.H;return on.H=T4,t===null?T4:t}function jX(){var t=on.A;return on.A=NCe,t}function tw(){yi=4,xf||(Hn&4194048)!==Hn&&Ml.current!==null||(yb=!0),(Nf&134217727)===0&&(Gh&134217727)===0||Rr===null||wf(Rr,Hn,vl,!1)}function iA(t,e,n){var r=ar;ar|=2;var i=PX(),o=jX();(Rr!==t||Hn!==e)&&(ew=null,db(t,e)),e=!1;var a=yi;e:do try{if(hr!==0&&Dn!==null){var s=Dn,l=yl;switch(hr){case 8:Z$(),a=6;break e;case 3:case 2:case 9:case 6:Ml.current===null&&(e=!0);var c=hr;if(hr=0,yl=null,K5(t,s,l,c),n&&yb){a=0;break e}break;default:c=hr,hr=0,yl=null,K5(t,s,l,c)}}OCe(),a=yi;break}catch(u){IX(t,u)}while(!0);return e&&t.shellSuspendCounter++,yp=e0=null,ar=r,on.H=i,on.A=o,Dn===null&&(Rr=null,Hn=0,hw()),a}function OCe(){for(;Dn!==null;)OX(Dn)}function DCe(t,e){var n=ar;ar|=2;var r=PX(),i=jX();Rr!==t||Hn!==e?(ew=null,J9=kl()+500,db(t,e)):yb=O4(t,e);e:do try{if(hr!==0&&Dn!==null){e=Dn;var o=yl;t:switch(hr){case 1:hr=0,yl=null,K5(t,e,o,1);break;case 2:case 9:if(MZ(o)){hr=0,yl=null,YZ(e);break}e=function(){hr!==2&&hr!==9||Rr!==t||(hr=7),nd(t)},o.then(e,e);break e;case 3:hr=7;break e;case 4:hr=5;break e;case 7:MZ(o)?(hr=0,yl=null,YZ(e)):(hr=0,yl=null,K5(t,e,o,7));break;case 5:var a=null;switch(Dn.tag){case 26:a=Dn.memoizedState;case 5:case 27:var s=Dn;if(a?rY(a):s.stateNode.complete){hr=0,yl=null;var l=s.sibling;if(l!==null)Dn=l;else{var c=s.return;c!==null?(Dn=c,_w(c)):Dn=null}break t}}hr=0,yl=null,K5(t,e,o,5);break;case 6:hr=0,yl=null,K5(t,e,o,6);break;case 8:Z$(),yi=6;break e;default:throw Error(Ie(462))}}FCe();break}catch(u){IX(t,u)}while(!0);return yp=e0=null,on.H=r,on.A=i,ar=n,Dn!==null?0:(Rr=null,Hn=0,hw(),yi)}function FCe(){for(;Dn!==null&&!lke();)OX(Dn)}function OX(t){var e=uX(t.alternate,t,Lp);t.memoizedProps=t.pendingProps,e===null?_w(t):Dn=e}function YZ(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=GZ(n,e,e.pendingProps,e.type,void 0,Hn);break;case 11:e=GZ(n,e,e.pendingProps,e.type.render,e.ref,Hn);break;case 5:$$(e);default:dX(n,e),e=Dn=dK(e,Lp),e=uX(n,e,Lp)}t.memoizedProps=t.pendingProps,e===null?_w(t):Dn=e}function K5(t,e,n,r){yp=e0=null,$$(e),eb=null,M4=0;var i=e.return;try{if(MCe(t,i,e,n,Hn)){yi=1,X9(t,bc(n,t.current)),Dn=null;return}}catch(o){if(i!==null)throw Dn=i,o;yi=1,X9(t,bc(n,t.current)),Dn=null;return}e.flags&32768?(Un||r===1?t=!0:yb||(Hn&536870912)!==0?t=!1:(xf=t=!0,(r===2||r===9||r===3||r===6)&&(r=Ml.current,r!==null&&r.tag===13&&(r.flags|=16384))),DX(e,t)):_w(e)}function _w(t){var e=t;do{if((e.flags&32768)!==0){DX(e,xf);return}t=e.return;var n=RCe(e.alternate,e,Lp);if(n!==null){Dn=n;return}if(e=e.sibling,e!==null){Dn=e;return}Dn=e=t}while(e!==null);yi===0&&(yi=5)}function DX(t,e){do{var n=ACe(t.alternate,t);if(n!==null){n.flags&=32767,Dn=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Dn=t;return}Dn=t=n}while(t!==null);yi=6,Dn=null}function QZ(t,e,n,r,i,o,a,s,l){t.cancelPendingCommit=null;do Sw();while(mo!==0);if((ar&6)!==0)throw Error(Ie(327));if(e!==null){if(e===t.current)throw Error(Ie(177));if(o=e.lanes|e.childLanes,o|=y$,yke(t,n,o,a,s,l),t===Rr&&(Dn=Rr=null,Hn=0),ub=e,Mf=t,vp=n,VA=o,ZA=i,RX=r,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,HCe(F9,function(){return HX(),null})):(t.callbackNode=null,t.callbackPriority=0),r=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||r){r=on.T,on.T=null,i=sr.p,sr.p=2,a=ar,ar|=4;try{$Ce(t,e,n)}finally{ar=a,sr.p=i,on.T=r}}mo=1,FX(),BX(),zX()}}function FX(){if(mo===1){mo=0;var t=Mf,e=ub,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=on.T,on.T=null;var r=sr.p;sr.p=2;var i=ar;ar|=4;try{kX(e,t);var o=QA,a=rK(t.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&nK(s.ownerDocument.documentElement,s)){if(l!==null&&b$(s)){var c=l.start,u=l.end;if(u===void 0&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var m=p.getSelection(),f=s.textContent.length,h=Math.min(l.start,f),x=l.end===void 0?h:Math.min(l.end,f);!m.extend&&h>x&&(a=x,x=h,h=a);var g=wZ(s,h),y=wZ(s,x);if(g&&y&&(m.rangeCount!==1||m.anchorNode!==g.node||m.anchorOffset!==g.offset||m.focusNode!==y.node||m.focusOffset!==y.offset)){var b=d.createRange();b.setStart(g.node,g.offset),m.removeAllRanges(),h>x?(m.addRange(b),m.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),m.addRange(b))}}}}for(d=[],m=s;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}cw=!!YA,QA=YA=null}finally{ar=i,sr.p=r,on.T=n}}t.current=e,mo=2}}function BX(){if(mo===2){mo=0;var t=Mf,e=ub,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=on.T,on.T=null;var r=sr.p;sr.p=2;var i=ar;ar|=4;try{bX(t,e.alternate,e)}finally{ar=i,sr.p=r,on.T=n}}mo=3}}function zX(){if(mo===4||mo===3){mo=0,cke();var t=Mf,e=ub,n=vp,r=RX;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?mo=5:(mo=0,ub=Mf=null,qX(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(Lf=null),u$(n),e=e.stateNode,Cl&&typeof Cl.onCommitFiberRoot=="function")try{Cl.onCommitFiberRoot(j4,e,void 0,(e.current.flags&128)===128)}catch{}if(r!==null){e=on.T,i=sr.p,sr.p=2,on.T=null;try{for(var o=t.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{on.T=e,sr.p=i}}(vp&3)!==0&&Sw(),nd(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===WA?x4++:(x4=0,WA=t):x4=0,G4(0,!1)}}function qX(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,z4(e)))}function Sw(){return FX(),BX(),zX(),HX()}function HX(){if(mo!==5)return!1;var t=Mf,e=VA;VA=0;var n=u$(vp),r=on.T,i=sr.p;try{sr.p=32>n?32:n,on.T=null,n=ZA,ZA=null;var o=Mf,a=vp;if(mo=0,ub=Mf=null,vp=0,(ar&6)!==0)throw Error(Ie(331));var s=ar;if(ar|=4,MX(o.current),_X(o,o.current,a,n),ar=s,G4(0,!1),Cl&&typeof Cl.onPostCommitFiberRoot=="function")try{Cl.onPostCommitFiberRoot(j4,o)}catch{}return!0}finally{sr.p=i,on.T=r,qX(t,e)}}function JZ(t,e,n){e=bc(n,e),e=zA(t.stateNode,e,2),t=Sf(t,e,2),t!==null&&(D4(t,2),nd(t))}function gr(t,e,n){if(t.tag===3)JZ(t,t,n);else for(;e!==null;){if(e.tag===3){JZ(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Lf===null||!Lf.has(r))){t=bc(n,t),n=iX(2),r=Sf(e,n,2),r!==null&&(oX(n,r,e,t),D4(r,2),nd(r));break}}e=e.return}}function oA(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new PCe;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(U$=!0,i.add(n),t=BCe.bind(null,t,e,n),e.then(t,t))}function BCe(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Rr===t&&(Hn&n)===n&&(yi===4||yi===3&&(Hn&62914560)===Hn&&300>kl()-kw?(ar&2)===0&&db(t,0):V$|=n,cb===Hn&&(cb=0)),nd(t)}function GX(t,e){e===0&&(e=PW()),t=Jh(t,e),t!==null&&(D4(t,e),nd(t))}function zCe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),GX(t,n)}function qCe(t,e){var n=0;switch(t.tag){case 31:case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;case 22:r=t.stateNode._retryCache;break;default:throw Error(Ie(314))}r!==null&&r.delete(e),GX(t,n)}function HCe(t,e){return l$(t,e)}var nw=null,O5=null,KA=!1,rw=!1,aA=!1,vf=0;function nd(t){t!==O5&&t.next===null&&(O5===null?nw=O5=t:O5=O5.next=t),rw=!0,KA||(KA=!0,UCe())}function G4(t,e){if(!aA&&rw){aA=!0;do for(var n=!1,r=nw;r!==null;){if(!e)if(t!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-_l(42|t)+1)-1,o&=i&~(a&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,eW(r,o))}else o=Hn,o=dw(r,r===Rr?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||O4(r,o)||(n=!0,eW(r,o));r=r.next}while(n);aA=!1}}function GCe(){UX()}function UX(){rw=KA=!1;var t=0;vf!==0&&JCe()&&(t=vf);for(var e=kl(),n=null,r=nw;r!==null;){var i=r.next,o=VX(r,e);o===0?(r.next=null,n===null?nw=i:n.next=i,i===null&&(O5=n)):(n=r,(t!==0||(o&3)!==0)&&(rw=!0)),r=i}mo!==0&&mo!==5||G4(t,!1),vf!==0&&(vf=0)}function VX(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var a=31-_l(o),s=1<<a,l=i[a];l===-1?((s&n)===0||(s&r)!==0)&&(i[a]=bke(s,e)):l<=e&&(t.expiredLanes|=s),o&=~s}if(e=Rr,n=Hn,n=dw(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r=t.callbackNode,n===0||t===e&&(hr===2||hr===9)||t.cancelPendingCommit!==null)return r!==null&&r!==null&&PR(r),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||O4(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(r!==null&&PR(r),u$(n)){case 2:case 8:n=IW;break;case 32:n=F9;break;case 268435456:n=NW;break;default:n=F9}return r=ZX.bind(null,t),n=l$(n,r),t.callbackPriority=e,t.callbackNode=n,e}return r!==null&&r!==null&&PR(r),t.callbackPriority=2,t.callbackNode=null,2}function ZX(t,e){if(mo!==0&&mo!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Sw()&&t.callbackNode!==n)return null;var r=Hn;return r=dw(t,t===Rr?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r===0?null:($X(t,r,e),VX(t,kl()),t.callbackNode!=null&&t.callbackNode===n?ZX.bind(null,t):null)}function eW(t,e){if(Sw())return null;$X(t,e,!0)}function UCe(){t_e(function(){(ar&6)!==0?l$($W,GCe):UX()})}function W$(){if(vf===0){var t=ab;t===0&&(t=i9,i9<<=1,(i9&261888)===0&&(i9=256)),vf=t}return vf}function tW(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:k9(""+t)}function nW(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function VCe(t,e,n,r,i){if(e==="submit"&&n&&n.stateNode===i){var o=tW((i[Is]||null).action),a=r.submitter;a&&(e=(e=a[Is]||null)?tW(e.formAction):a.getAttribute("formAction"),e!==null&&(o=e,a=null));var s=new pw("action","action",null,r,i);t.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(vf!==0){var l=a?nW(i,a):new FormData(i);FA(n,{pending:!0,data:l,method:i.method,action:o},null,l)}}else typeof o=="function"&&(s.preventDefault(),l=a?nW(i,a):new FormData(i),FA(n,{pending:!0,data:l,method:i.method,action:o},o,l))},currentTarget:i}]})}}for(g9=0;g9<MA.length;g9++)b9=MA[g9],rW=b9.toLowerCase(),iW=b9[0].toUpperCase()+b9.slice(1),fu(rW,"on"+iW);var b9,rW,iW,g9;fu(oK,"onAnimationEnd");fu(aK,"onAnimationIteration");fu(sK,"onAnimationStart");fu("dblclick","onDoubleClick");fu("focusin","onFocus");fu("focusout","onBlur");fu(uCe,"onTransitionRun");fu(dCe,"onTransitionStart");fu(pCe,"onTransitionCancel");fu(lK,"onTransitionEnd");ib("onMouseEnter",["mouseout","mouseover"]);ib("onMouseLeave",["mouseout","mouseover"]);ib("onPointerEnter",["pointerout","pointerover"]);ib("onPointerLeave",["pointerout","pointerover"]);Xh("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xh("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xh("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xh("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xh("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xh("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var R4="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(" "),ZCe=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(R4));function WX(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(u){z9(u)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=c;try{o(i)}catch(u){z9(u)}i.currentTarget=null,o=l}}}}function On(t,e){var n=e[xA];n===void 0&&(n=e[xA]=new Set);var r=t+"__bubble";n.has(r)||(KX(e,t,2,!1),n.add(r))}function sA(t,e,n){var r=0;e&&(r|=4),KX(n,t,r,e)}var y9="_reactListening"+Math.random().toString(36).slice(2);function K$(t){if(!t[y9]){t[y9]=!0,BW.forEach(function(n){n!=="selectionchange"&&(ZCe.has(n)||sA(n,!1,t),sA(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[y9]||(e[y9]=!0,sA("selectionchange",!1,e))}}function KX(t,e,n,r){switch(lY(e)){case 2:var i=v_e;break;case 8:i=k_e;break;default:i=J$}n=i.bind(null,e,n,t),i=void 0,!_A||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function lA(t,e,n,r,i){var o=r;if((e&1)===0&&(e&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;s!==null;){if(a=B5(s),a===null)return;if(l=a.tag,l===5||l===6||l===26||l===27){r=o=a;continue e}s=s.parentNode}}r=r.return}WW(function(){var c=o,u=m$(n),d=[];e:{var p=cK.get(t);if(p!==void 0){var m=pw,f=t;switch(t){case"keypress":if(_9(n)===0)break e;case"keydown":case"keyup":m=qke;break;case"focusin":f="focus",m=BR;break;case"focusout":f="blur",m=BR;break;case"beforeblur":case"afterblur":m=BR;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=dZ;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Rke;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=Uke;break;case oK:case aK:case sK:m=Ike;break;case lK:m=Zke;break;case"scroll":case"scrollend":m=Eke;break;case"wheel":m=Kke;break;case"copy":case"cut":case"paste":m=Pke;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=mZ;break;case"toggle":case"beforetoggle":m=Yke}var h=(e&4)!==0,x=!h&&(t==="scroll"||t==="scrollend"),g=h?p!==null?p+"Capture":null:p;h=[];for(var y=c,b;y!==null;){var w=y;if(b=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||b===null||g===null||(w=k4(y,g),w!=null&&h.push(A4(y,w,b))),x)break;y=y.return}0<h.length&&(p=new m(p,f,null,n,u),d.push({event:p,listeners:h}))}}if((e&7)===0){e:{if(p=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",p&&n!==CA&&(f=n.relatedTarget||n.fromElement)&&(B5(f)||f[fb]))break e;if((m||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,m?(f=n.relatedTarget||n.toElement,m=c,f=f?B5(f):null,f!==null&&(x=P4(f),h=f.tag,f!==x||h!==5&&h!==27&&h!==6)&&(f=null)):(m=null,f=c),m!==f)){if(h=dZ,w="onMouseLeave",g="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(h=mZ,w="onPointerLeave",g="onPointerEnter",y="pointer"),x=m==null?p:o4(m),b=f==null?p:o4(f),p=new h(w,y+"leave",m,n,u),p.target=x,p.relatedTarget=b,w=null,B5(u)===c&&(h=new h(g,y+"enter",f,n,u),h.target=b,h.relatedTarget=x,w=h),x=w,m&&f)t:{for(h=WCe,g=m,y=f,b=0,w=g;w;w=h(w))b++;w=0;for(var v=y;v;v=h(v))w++;for(;0<b-w;)g=h(g),b--;for(;0<w-b;)y=h(y),w--;for(;b--;){if(g===y||y!==null&&g===y.alternate){h=g;break t}g=h(g),y=h(y)}h=null}else h=null;m!==null&&oW(d,p,m,h,!1),f!==null&&x!==null&&oW(d,x,f,h,!0)}}e:{if(p=c?o4(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var k=bZ;else if(gZ(p))if(eK)k=sCe;else{k=oCe;var _=iCe}else m=p.nodeName,!m||m.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?c&&p$(c.elementType)&&(k=bZ):k=aCe;if(k&&(k=k(t,c))){JW(d,k,n,u);break e}_&&_(t,p,c),t==="focusout"&&c&&p.type==="number"&&c.memoizedProps.value!=null&&kA(p,"number",p.value)}switch(_=c?o4(c):window,t){case"focusin":(gZ(_)||_.contentEditable==="true")&&(H5=_,SA=c,u4=null);break;case"focusout":u4=SA=H5=null;break;case"mousedown":LA=!0;break;case"contextmenu":case"mouseup":case"dragend":LA=!1,vZ(d,n,u);break;case"selectionchange":if(cCe)break;case"keydown":case"keyup":vZ(d,n,u)}var L;if(g$)e:{switch(t){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else q5?YW(t,n)&&(S="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(XW&&n.locale!=="ko"&&(q5||S!=="onCompositionStart"?S==="onCompositionEnd"&&q5&&(L=KW()):(yf=u,f$="value"in yf?yf.value:yf.textContent,q5=!0)),_=iw(c,S),0<_.length&&(S=new pZ(S,t,null,n,u),d.push({event:S,listeners:_}),L?S.data=L:(L=QW(n),L!==null&&(S.data=L)))),(L=Jke?eCe(t,n):tCe(t,n))&&(S=iw(c,"onBeforeInput"),0<S.length&&(_=new pZ("onBeforeInput","beforeinput",null,n,u),d.push({event:_,listeners:S}),_.data=L)),VCe(d,t,c,n,u)}WX(d,e)})}function A4(t,e,n){return{instance:t,listener:e,currentTarget:n}}function iw(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=k4(t,n),i!=null&&r.unshift(A4(t,i,o)),i=k4(t,e),i!=null&&r.push(A4(t,i,o))),t.tag===3)return r;t=t.return}return[]}function WCe(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function oW(t,e,n,r,i){for(var o=e._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,l!==null&&l===r)break;s!==5&&s!==26&&s!==27||c===null||(l=c,i?(c=k4(n,o),c!=null&&a.unshift(A4(n,c,l))):i||(c=k4(n,o),c!=null&&a.push(A4(n,c,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var KCe=/\r\n?/g,XCe=/\u0000|\uFFFD/g;function aW(t){return(typeof t=="string"?t:""+t).replace(KCe,` +`).replace(XCe,"")}function XX(t,e){return e=aW(e),aW(t)===e}function kr(t,e,n,r,i,o){switch(n){case"children":typeof r=="string"?e==="body"||e==="textarea"&&r===""||ob(t,r):(typeof r=="number"||typeof r=="bigint")&&e!=="body"&&ob(t,""+r);break;case"className":s9(t,"class",r);break;case"tabIndex":s9(t,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":s9(t,n,r);break;case"style":ZW(t,r,o);break;case"data":if(e!=="object"){s9(t,"data",r);break}case"src":case"href":if(r===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(n);break}r=k9(""+r),t.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&kr(t,e,"name",i.name,i,null),kr(t,e,"formEncType",i.formEncType,i,null),kr(t,e,"formMethod",i.formMethod,i,null),kr(t,e,"formTarget",i.formTarget,i,null)):(kr(t,e,"encType",i.encType,i,null),kr(t,e,"method",i.method,i,null),kr(t,e,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(n);break}r=k9(""+r),t.setAttribute(n,r);break;case"onClick":r!=null&&(t.onclick=bp);break;case"onScroll":r!=null&&On("scroll",t);break;case"onScrollEnd":r!=null&&On("scrollend",t);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Ie(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Ie(60));t.innerHTML=n}}break;case"multiple":t.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":t.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){t.removeAttribute("xlink:href");break}n=k9(""+r),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(n,""+r):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":r===!0?t.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(n,r):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?t.setAttribute(n,r):t.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?t.removeAttribute(n):t.setAttribute(n,r);break;case"popover":On("beforetoggle",t),On("toggle",t),v9(t,"popover",r);break;case"xlinkActuate":cp(t,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":cp(t,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":cp(t,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":cp(t,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":cp(t,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":cp(t,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":cp(t,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":cp(t,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":cp(t,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":v9(t,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Lke.get(n)||n,v9(t,n,r))}}function XA(t,e,n,r,i,o){switch(n){case"style":ZW(t,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Ie(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Ie(60));t.innerHTML=n}}break;case"children":typeof r=="string"?ob(t,r):(typeof r=="number"||typeof r=="bigint")&&ob(t,""+r);break;case"onScroll":r!=null&&On("scroll",t);break;case"onScrollEnd":r!=null&&On("scrollend",t);break;case"onClick":r!=null&&(t.onclick=bp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zW.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),o=t[Is]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,r,i);break e}n in t?t[n]=r:r===!0?t.setAttribute(n,""):v9(t,n,r)}}}function Uo(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":On("error",t),On("load",t);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Ie(137,e));default:kr(t,e,o,a,n,null)}}i&&kr(t,e,"srcSet",n.srcSet,n,null),r&&kr(t,e,"src",n.src,n,null);return;case"input":On("invalid",t);var s=o=a=i=null,l=null,c=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case"name":i=u;break;case"type":a=u;break;case"checked":l=u;break;case"defaultChecked":c=u;break;case"value":o=u;break;case"defaultValue":s=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(Ie(137,e));break;default:kr(t,e,r,u,n,null)}}GW(t,o,s,l,c,a,i,!1);return;case"select":On("invalid",t),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":a=s;break;case"multiple":r=s;default:kr(t,e,i,s,n,null)}e=o,n=a,t.multiple=!!r,e!=null?Y5(t,!!r,e,!1):n!=null&&Y5(t,!!r,n,!0);return;case"textarea":On("invalid",t),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":r=s;break;case"defaultValue":i=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(Ie(91));break;default:kr(t,e,a,s,n,null)}VW(t,r,i,o);return;case"option":for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null)&&(l==="selected"?t.selected=r&&typeof r!="function"&&typeof r!="symbol":kr(t,e,l,r,n,null));return;case"dialog":On("beforetoggle",t),On("toggle",t),On("cancel",t),On("close",t);break;case"iframe":case"object":On("load",t);break;case"video":case"audio":for(r=0;r<R4.length;r++)On(R4[r],t);break;case"image":On("error",t),On("load",t);break;case"details":On("toggle",t);break;case"embed":case"source":case"link":On("error",t),On("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(Ie(137,e));default:kr(t,e,c,r,n,null)}return;default:if(p$(e)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&XA(t,e,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&kr(t,e,s,r,n,null))}function YCe(t,e,n,r){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,s=null,l=null,c=null,u=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":l=d;default:r.hasOwnProperty(m)||kr(t,e,m,null,r,d)}}for(var p in r){var m=r[p];if(d=n[p],r.hasOwnProperty(p)&&(m!=null||d!=null))switch(p){case"type":o=m;break;case"name":i=m;break;case"checked":c=m;break;case"defaultChecked":u=m;break;case"value":a=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(Ie(137,e));break;default:m!==d&&kr(t,e,p,m,r,d)}}vA(t,a,s,l,c,u,o,i);return;case"select":m=a=s=p=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case"value":break;case"multiple":m=l;default:r.hasOwnProperty(o)||kr(t,e,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case"value":p=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:o!==l&&kr(t,e,i,o,r,l)}e=s,n=a,r=m,p!=null?Y5(t,!!n,p,!1):!!r!=!!n&&(e!=null?Y5(t,!!n,e,!0):Y5(t,!!n,n?[]:"",!1));return;case"textarea":m=p=null;for(s in n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:kr(t,e,s,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":p=i;break;case"defaultValue":m=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Ie(91));break;default:i!==o&&kr(t,e,a,i,r,o)}UW(t,p,m);return;case"option":for(var f in n)p=n[f],n.hasOwnProperty(f)&&p!=null&&!r.hasOwnProperty(f)&&(f==="selected"?t.selected=!1:kr(t,e,f,null,r,p));for(l in r)p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null)&&(l==="selected"?t.selected=p&&typeof p!="function"&&typeof p!="symbol":kr(t,e,l,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var h in n)p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h)&&kr(t,e,h,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(p!=null||m!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(Ie(137,e));break;default:kr(t,e,c,p,r,m)}return;default:if(p$(e)){for(var x in n)p=n[x],n.hasOwnProperty(x)&&p!==void 0&&!r.hasOwnProperty(x)&&XA(t,e,x,void 0,r,p);for(u in r)p=r[u],m=n[u],!r.hasOwnProperty(u)||p===m||p===void 0&&m===void 0||XA(t,e,u,p,r,m);return}}for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&kr(t,e,g,null,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p==null&&m==null||kr(t,e,d,p,r,m)}function sW(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function QCe(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&sW(a)){for(a=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&sW(d)&&(l=l.responseEnd,a+=u*(l<s?1:(s-c)/(l-c)))}if(--r,e+=8*(o+a)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var YA=null,QA=null;function ow(t){return t.nodeType===9?t:t.ownerDocument}function lW(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function YX(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function JA(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var cA=null;function JCe(){var t=window.event;return t&&t.type==="popstate"?t===cA?!1:(cA=t,!0):(cA=null,!1)}var QX=typeof setTimeout=="function"?setTimeout:void 0,e_e=typeof clearTimeout=="function"?clearTimeout:void 0,cW=typeof Promise=="function"?Promise:void 0,t_e=typeof queueMicrotask=="function"?queueMicrotask:typeof cW<"u"?function(t){return cW.resolve(null).then(t).catch(n_e)}:QX;function n_e(t){setTimeout(function(){throw t})}function jf(t){return t==="head"}function uW(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){t.removeChild(i),mb(e);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")w4(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,w4(n);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[F4]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&w4(t.ownerDocument.body);n=i}while(n);mb(e)}function dW(t,e){var n=t;t=0;do{var r=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=r}while(n)}function e$(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":e$(n),d$(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function r_e(t,e,n,r){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!r&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(r){if(!t[F4])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=wc(t.nextSibling),t===null)break}return null}function i_e(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=wc(t.nextSibling),t===null))return null;return t}function JX(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=wc(t.nextSibling),t===null))return null;return t}function t$(t){return t.data==="$?"||t.data==="$~"}function n$(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function o_e(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var r=function(){e(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),t._reactRetry=r}}function wc(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var r$=null;function pW(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return wc(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function mW(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function eY(t,e,n){switch(e=ow(n),t){case"html":if(t=e.documentElement,!t)throw Error(Ie(452));return t;case"head":if(t=e.head,!t)throw Error(Ie(453));return t;case"body":if(t=e.body,!t)throw Error(Ie(454));return t;default:throw Error(Ie(451))}}function w4(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);d$(t)}var vc=new Map,fW=new Set;function aw(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Mp=sr.d;sr.d={f:a_e,r:s_e,D:l_e,C:c_e,L:u_e,m:d_e,X:m_e,S:p_e,M:f_e};function a_e(){var t=Mp.f(),e=Cw();return t||e}function s_e(t){var e=hb(t);e!==null&&e.tag===5&&e.type==="form"?ZK(e):Mp.r(t)}var xb=typeof document>"u"?null:document;function tY(t,e,n){var r=xb;if(r&&typeof e=="string"&&e){var i=gc(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),fW.has(i)||(fW.add(i),t={rel:t,crossOrigin:n,href:e},r.querySelector(i)===null&&(e=r.createElement("link"),Uo(e,"link",t),Lo(e),r.head.appendChild(e)))}}function l_e(t){Mp.D(t),tY("dns-prefetch",t,null)}function c_e(t,e){Mp.C(t,e),tY("preconnect",t,e)}function u_e(t,e,n){Mp.L(t,e,n);var r=xb;if(r&&t&&e){var i='link[rel="preload"][as="'+gc(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+gc(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+gc(n.imageSizes)+'"]')):i+='[href="'+gc(t)+'"]';var o=i;switch(e){case"style":o=pb(t);break;case"script":o=wb(t)}vc.has(o)||(t=Wr({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),vc.set(o,t),r.querySelector(i)!==null||e==="style"&&r.querySelector(U4(o))||e==="script"&&r.querySelector(V4(o))||(e=r.createElement("link"),Uo(e,"link",t),Lo(e),r.head.appendChild(e)))}}function d_e(t,e){Mp.m(t,e);var n=xb;if(n&&t){var r=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+gc(r)+'"][href="'+gc(t)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=wb(t)}if(!vc.has(o)&&(t=Wr({rel:"modulepreload",href:t},e),vc.set(o,t),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(V4(o)))return}r=n.createElement("link"),Uo(r,"link",t),Lo(r),n.head.appendChild(r)}}}function p_e(t,e,n){Mp.S(t,e,n);var r=xb;if(r&&t){var i=X5(r).hoistableStyles,o=pb(t);e=e||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(U4(o)))s.loading=5;else{t=Wr({rel:"stylesheet",href:t,"data-precedence":e},n),(n=vc.get(o))&&X$(t,n);var l=a=r.createElement("link");Lo(l),Uo(l,"link",t),l._p=new Promise(function(c,u){l.onload=c,l.onerror=u}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,$9(a,e,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}}function m_e(t,e){Mp.X(t,e);var n=xb;if(n&&t){var r=X5(n).hoistableScripts,i=wb(t),o=r.get(i);o||(o=n.querySelector(V4(i)),o||(t=Wr({src:t,async:!0},e),(e=vc.get(i))&&Y$(t,e),o=n.createElement("script"),Lo(o),Uo(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function f_e(t,e){Mp.M(t,e);var n=xb;if(n&&t){var r=X5(n).hoistableScripts,i=wb(t),o=r.get(i);o||(o=n.querySelector(V4(i)),o||(t=Wr({src:t,async:!0,type:"module"},e),(e=vc.get(i))&&Y$(t,e),o=n.createElement("script"),Lo(o),Uo(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function hW(t,e,n,r){var i=(i=kf.current)?aw(i):null;if(!i)throw Error(Ie(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=pb(n.href),n=X5(i).hoistableStyles,r=n.get(e),r||(r={type:"style",instance:null,count:0,state:null},n.set(e,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=pb(n.href);var o=X5(i).hoistableStyles,a=o.get(t);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,a),(o=i.querySelector(U4(t)))&&!o._p&&(a.instance=o,a.state.loading=5),vc.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vc.set(t,n),o||h_e(i,t,n,a.state))),e&&r===null)throw Error(Ie(528,""));return a}if(e&&r!==null)throw Error(Ie(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=wb(n),n=X5(i).hoistableScripts,r=n.get(e),r||(r={type:"script",instance:null,count:0,state:null},n.set(e,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(Ie(444,t))}}function pb(t){return'href="'+gc(t)+'"'}function U4(t){return'link[rel="stylesheet"]['+t+"]"}function nY(t){return Wr({},t,{"data-precedence":t.precedence,precedence:null})}function h_e(t,e,n,r){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?r.loading=1:(e=t.createElement("link"),r.preload=e,e.addEventListener("load",function(){return r.loading|=1}),e.addEventListener("error",function(){return r.loading|=2}),Uo(e,"link",n),Lo(e),t.head.appendChild(e))}function wb(t){return'[src="'+gc(t)+'"]'}function V4(t){return"script[async]"+t}function gW(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var r=t.querySelector('style[data-href~="'+gc(n.href)+'"]');if(r)return e.instance=r,Lo(r),r;var i=Wr({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(t.ownerDocument||t).createElement("style"),Lo(r),Uo(r,"style",i),$9(r,n.precedence,t),e.instance=r;case"stylesheet":i=pb(n.href);var o=t.querySelector(U4(i));if(o)return e.state.loading|=4,e.instance=o,Lo(o),o;r=nY(n),(i=vc.get(i))&&X$(r,i),o=(t.ownerDocument||t).createElement("link"),Lo(o);var a=o;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Uo(o,"link",r),e.state.loading|=4,$9(o,n.precedence,t),e.instance=o;case"script":return o=wb(n.src),(i=t.querySelector(V4(o)))?(e.instance=i,Lo(i),i):(r=n,(i=vc.get(o))&&(r=Wr({},n),Y$(r,i)),t=t.ownerDocument||t,i=t.createElement("script"),Lo(i),Uo(i,"link",r),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(Ie(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(r=e.instance,e.state.loading|=4,$9(r,n.precedence,t));return e.instance}function $9(t,e,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===e)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function X$(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Y$(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var I9=null;function bW(t,e,n){if(I9===null){var r=new Map,i=I9=new Map;i.set(n,r)}else i=I9,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(t))return r;for(r.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var o=n[i];if(!(o[F4]||o[qo]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(e)||"";a=t+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function yW(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function g_e(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function rY(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function b_e(t,e,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=pb(r.href),o=e.querySelector(U4(i));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=sw.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Lo(o);return}o=e.ownerDocument||e,r=nY(r),(i=vc.get(i))&&X$(r,i),o=o.createElement("link"),Lo(o);var a=o;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Uo(o,"link",r),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=sw.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var uA=0;function y_e(t,e){return t.stylesheets&&t.count===0&&N9(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var r=setTimeout(function(){if(t.stylesheets&&N9(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&uA===0&&(uA=62500*QCe());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&N9(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>uA?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sw(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)N9(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var lw=null;function N9(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,lw=new Map,e.forEach(x_e,t),lw=null,sw.call(t))}function x_e(t,e){if(!(e.state.loading&4)){var n=lw.get(t);if(n)var r=n.get(null);else{n=new Map,lw.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=e.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=sw.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var $4={$$typeof:gp,Provider:null,Consumer:null,_currentValue:Bh,_currentValue2:Bh,_threadCount:0};function w_e(t,e,n,r,i,o,a,s,l){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=jR(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jR(0),this.hiddenUpdates=jR(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function iY(t,e,n,r,i,o,a,s,l,c,u,d){return t=new w_e(t,e,n,a,l,c,u,d,s),e=1,o===!0&&(e|=24),o=wl(3,null,null,e),t.current=o,o.stateNode=t,e=C$(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:e},L$(o),t}function oY(t){return t?(t=V5,t):V5}function aY(t,e,n,r,i,o){i=oY(i),r.context===null?r.context=i:r.pendingContext=i,r=_f(e),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=Sf(t,r,e),n!==null&&($s(n,t,e),p4(n,t,e))}function xW(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Q$(t,e){xW(t,e),(t=t.alternate)&&xW(t,e)}function sY(t){if(t.tag===13||t.tag===31){var e=Jh(t,67108864);e!==null&&$s(e,t,67108864),Q$(t,67108864)}}function wW(t){if(t.tag===13||t.tag===31){var e=Sl();e=c$(e);var n=Jh(t,e);n!==null&&$s(n,t,e),Q$(t,e)}}var cw=!0;function v_e(t,e,n,r){var i=on.T;on.T=null;var o=sr.p;try{sr.p=2,J$(t,e,n,r)}finally{sr.p=o,on.T=i}}function k_e(t,e,n,r){var i=on.T;on.T=null;var o=sr.p;try{sr.p=8,J$(t,e,n,r)}finally{sr.p=o,on.T=i}}function J$(t,e,n,r){if(cw){var i=i$(r);if(i===null)lA(t,e,r,uw,n),vW(t,r);else if(__e(i,t,e,n,r))r.stopPropagation();else if(vW(t,r),e&4&&-1<C_e.indexOf(t)){for(;i!==null;){var o=hb(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=Oh(o.pendingLanes);if(a!==0){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-_l(a);s.entanglements[1]|=l,a&=~l}nd(o),(ar&6)===0&&(J9=kl()+500,G4(0,!1))}}break;case 31:case 13:s=Jh(o,2),s!==null&&$s(s,o,2),Cw(),Q$(o,2)}if(o=i$(r),o===null&&lA(t,e,r,uw,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else lA(t,e,r,null,n)}}function i$(t){return t=m$(t),eI(t)}var uw=null;function eI(t){if(uw=null,t=B5(t),t!==null){var e=P4(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=MW(e),t!==null)return t;t=null}else if(n===31){if(t=EW(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return uw=t,null}function lY(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(uke()){case $W:return 2;case IW:return 8;case F9:case dke:return 32;case NW:return 268435456;default:return 32}default:return 32}}var o$=!1,Ef=null,Tf=null,Rf=null,I4=new Map,N4=new Map,gf=[],C_e="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vW(t,e){switch(t){case"focusin":case"focusout":Ef=null;break;case"dragenter":case"dragleave":Tf=null;break;case"mouseover":case"mouseout":Rf=null;break;case"pointerover":case"pointerout":I4.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":N4.delete(e.pointerId)}}function t4(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=hb(e),e!==null&&sY(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function __e(t,e,n,r,i){switch(e){case"focusin":return Ef=t4(Ef,t,e,n,r,i),!0;case"dragenter":return Tf=t4(Tf,t,e,n,r,i),!0;case"mouseover":return Rf=t4(Rf,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return I4.set(o,t4(I4.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,N4.set(o,t4(N4.get(o)||null,t,e,n,r,i)),!0}return!1}function cY(t){var e=B5(t.target);if(e!==null){var n=P4(e);if(n!==null){if(e=n.tag,e===13){if(e=MW(n),e!==null){t.blockedOn=e,iZ(t.priority,function(){wW(n)});return}}else if(e===31){if(e=EW(n),e!==null){t.blockedOn=e,iZ(t.priority,function(){wW(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function P9(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=i$(t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);CA=r,n.target.dispatchEvent(r),CA=null}else return e=hb(n),e!==null&&sY(e),t.blockedOn=n,!1;e.shift()}return!0}function kW(t,e,n){P9(t)&&n.delete(e)}function S_e(){o$=!1,Ef!==null&&P9(Ef)&&(Ef=null),Tf!==null&&P9(Tf)&&(Tf=null),Rf!==null&&P9(Rf)&&(Rf=null),I4.forEach(kW),N4.forEach(kW)}function x9(t,e){t.blockedOn===e&&(t.blockedOn=null,o$||(o$=!0,fo.unstable_scheduleCallback(fo.unstable_NormalPriority,S_e)))}var w9=null;function CW(t){w9!==t&&(w9=t,fo.unstable_scheduleCallback(fo.unstable_NormalPriority,function(){w9===t&&(w9=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],i=t[e+2];if(typeof r!="function"){if(eI(r||n)===null)continue;break}var o=hb(n);o!==null&&(t.splice(e,3),e-=3,FA(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function mb(t){function e(l){return x9(l,t)}Ef!==null&&x9(Ef,t),Tf!==null&&x9(Tf,t),Rf!==null&&x9(Rf,t),I4.forEach(e),N4.forEach(e);for(var n=0;n<gf.length;n++){var r=gf[n];r.blockedOn===t&&(r.blockedOn=null)}for(;0<gf.length&&(n=gf[0],n.blockedOn===null);)cY(n),n.blockedOn===null&&gf.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[Is]||null;if(typeof o=="function")a||CW(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[Is]||null)s=a.formAction;else if(eI(i)!==null)continue}else s=a.action;typeof s=="function"?n[r+1]=s:(n.splice(r,3),r-=3),CW(n)}}}function uY(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function tI(t){this._internalRoot=t}Lw.prototype.render=tI.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Ie(409));var n=e.current,r=Sl();aY(n,r,t,e,null,null)};Lw.prototype.unmount=tI.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;aY(t.current,2,null,t,null,null),Cw(),e[fb]=null}};function Lw(t){this._internalRoot=t}Lw.prototype.unstable_scheduleHydration=function(t){if(t){var e=FW();t={blockedOn:null,target:t,priority:e};for(var n=0;n<gf.length&&e!==0&&e<gf[n].priority;n++);gf.splice(n,0,t),n===0&&cY(t)}};var _W=SW.version;if(_W!=="19.2.3")throw Error(Ie(527,_W,"19.2.3"));sr.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Ie(188)):(t=Object.keys(t).join(","),Error(Ie(268,t)));return t=rke(e),t=t!==null?TW(t):null,t=t===null?null:t.stateNode,t};var L_e={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:on,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(n4=__REACT_DEVTOOLS_GLOBAL_HOOK__,!n4.isDisabled&&n4.supportsFiber))try{j4=n4.inject(L_e),Cl=n4}catch{}var n4;Mw.createRoot=function(t,e){if(!LW(t))throw Error(Ie(299));var n=!1,r="",i=tX,o=nX,a=rX;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),e=iY(t,1,!1,null,null,n,r,null,i,o,a,uY),t[fb]=e.current,K$(t),new tI(e)};Mw.hydrateRoot=function(t,e,n){if(!LW(t))throw Error(Ie(299));var r=!1,i="",o=tX,a=nX,s=rX,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),e=iY(t,1,!0,e,n??null,r,i,l,o,a,s,uY),e.context=oY(null),n=e.current,r=Sl(),r=c$(r),i=_f(r),i.callback=null,Sf(n,i,r),n=r,e.current.lanes=n,D4(e,n),nd(e),t[fb]=e.current,K$(t),new Lw(e)};Mw.version="19.2.3"});var fY=_o((Tat,mY)=>{"use strict";function pY(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pY)}catch(t){console.error(t)}}pY(),mY.exports=dY()});var gY=_o(hY=>{"use strict";var M_e=Q().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;hY.c=function(t){return M_e.H.useMemoCache(t)}});var qe=_o((Aat,bY)=>{"use strict";bY.exports=gY()});var xY=_o(Ew=>{"use strict";var E_e=Symbol.for("react.transitional.element"),T_e=Symbol.for("react.fragment");function yY(t,e,n){var r=null;if(n!==void 0&&(r=""+n),e.key!==void 0&&(r=""+e.key),"key"in e){n={};for(var i in e)i!=="key"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:E_e,type:t,key:r,ref:e!==void 0?e:null,props:n}}Ew.Fragment=T_e;Ew.jsx=yY;Ew.jsxs=yY});var ee=_o((Iat,wY)=>{"use strict";wY.exports=xY()});var jte={};fn(jte,{default:()=>AAe});var RAe,AAe,Ote=tr(()=>{RAe=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"]}')),AAe=[RAe]});var Dte={};fn(Dte,{default:()=>IAe});var $Ae,IAe,Fte=tr(()=>{$Ae=Object.freeze(JSON.parse(`{"displayName":"TSX","name":"tsx","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.tsx"},"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.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.objectliteral.tsx","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.tsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.tsx"}},"name":"meta.array.literal.tsx","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.tsx"},"2":{"name":"variable.parameter.tsx"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async)\\\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?==>)","name":"meta.arrow.tsx"},{"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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"}},"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.tsx","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.tsx"}},"end":"((?<=[}\\\\S])(?<!=>)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.tsx","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.tsx"}},"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.tsx","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.tsx"},"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.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))false(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.false.tsx"}]},"brackets":{"patterns":[{"begin":"\\\\{","end":"}|(?=\\\\*/)","patterns":[{"include":"#brackets"}]},{"begin":"\\\\[","end":"]|(?=\\\\*/)","patterns":[{"include":"#brackets"}]}]},"cast":{"patterns":[{"include":"#jsx"}]},"class-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(class)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.type.class.tsx"}},"end":"(?<=})","name":"meta.class.tsx","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.tsx"}},"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.tsx"},"2":{"name":"storage.type.class.tsx"}},"end":"(?<=})","name":"meta.class.tsx","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-or-interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"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.tsx"}},"end":"(?=\\\\{)","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"include":"#type-parameters"},{"include":"#expressionWithoutIdentifiers"},{"captures":{"1":{"name":"entity.name.type.module.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*(\\\\s*\\\\??\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)*\\\\s*)"},{"captures":{"1":{"name":"entity.other.inherited-class.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#expressionPunctuations"}]},"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.tsx"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.tsx"}},"name":"comment.block.documentation.tsx","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.tsx"},"2":{"name":"storage.type.internaldeclaration.tsx"},"3":{"name":"punctuation.decorator.internaldeclaration.tsx"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.tsx"}},"name":"comment.block.tsx"},{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.tsx"},"2":{"name":"comment.line.double-slash.tsx"},"3":{"name":"punctuation.definition.comment.tsx"},"4":{"name":"storage.type.internaldeclaration.tsx"},"5":{"name":"punctuation.decorator.internaldeclaration.tsx"}},"contentName":"comment.line.double-slash.tsx","end":"(?=$)"}]},"control-statement":{"patterns":[{"include":"#switch-statement"},{"include":"#for-loop"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(catch|finally|throw|try)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.trycatch.tsx"},{"captures":{"1":{"name":"keyword.control.loop.tsx"},"2":{"name":"entity.name.label.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|goto)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|do|goto|while)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.loop.tsx"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.tsx"}},"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.tsx"},{"include":"#if-statement"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(with)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.with.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(package)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(debugger)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.other.debugger.tsx"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.block.tsx","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.tsx"}]},"decorator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))@","beginCaptures":{"0":{"name":"punctuation.decorator.tsx"}},"end":"(?=\\\\s)","name":"meta.decorator.tsx","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.tsx","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.tsx","patterns":[{"include":"#array-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-parameter":{"patterns":[{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"name":"meta.parameter.object-binding-pattern.tsx","patterns":[{"include":"#parameter-object-binding-element"}]},{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"name":"meta.paramter.array-binding-pattern.tsx","patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]}]},"destructuring-parameter-rest":{"captures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"variable.parameter.tsx"}},"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.tsx","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.tsx","patterns":[{"include":"#array-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-variable-rest":{"captures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"meta.definition.variable.tsx variable.other.readwrite.tsx"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable-rest-const":{"captures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"meta.definition.variable.tsx variable.other.constant.tsx"}},"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.tsx"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.tsx","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.tsx"},"2":{"name":"entity.name.tag.directive.tsx"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.tsx"}},"name":"meta.tag.tsx","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.tsx"},{"match":"=","name":"keyword.operator.assignment.tsx"},{"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.tsx"}},"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.tsx"},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.type.enum.tsx"},"5":{"name":"entity.name.type.enum.tsx"}},"end":"(?<=})","name":"meta.enum.declaration.tsx","patterns":[{"include":"#comment"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"patterns":[{"include":"#comment"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.tsx"}},"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.tsx"},"2":{"name":"keyword.control.as.tsx"},"3":{"name":"storage.type.namespace.tsx"},"4":{"name":"entity.name.type.module.tsx"}},"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.tsx"},"2":{"name":"keyword.control.type.tsx"},"3":{"name":"keyword.operator.assignment.tsx"},"4":{"name":"keyword.control.default.tsx"}},"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.tsx","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.tsx"},"2":{"name":"keyword.control.type.tsx"}},"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.tsx","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.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"entity.name.function.tsx variable.language.this.tsx"},"4":{"name":"entity.name.function.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"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.tsx"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-operators":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(await)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.flow.tsx"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?=\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*\\\\*)","beginCaptures":{"1":{"name":"keyword.control.flow.tsx"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.generator.asterisk.tsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.control.flow.tsx"},"2":{"name":"keyword.generator.asterisk.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s*(\\\\*))?"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))delete(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.delete.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))in(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.in.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))of(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.of.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.instanceof.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.new.tsx"},{"include":"#typeof-operator"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))void(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.void.tsx"},{"captures":{"1":{"name":"keyword.control.as.tsx"},"2":{"name":"storage.modifier.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*($|[]),:;}]))"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.tsx"},"2":{"name":"keyword.control.satisfies.tsx"}},"end":"(?=^|[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisfies)\\\\s+)|(\\\\s+<))","patterns":[{"include":"#type"}]},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.tsx"},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.tsx"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.tsx"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.tsx"},{"match":"[!=]==?","name":"keyword.operator.comparison.tsx"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.tsx"},{"captures":{"1":{"name":"keyword.operator.logical.tsx"},"2":{"name":"keyword.operator.assignment.compound.tsx"},"3":{"name":"keyword.operator.arithmetic.tsx"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.tsx"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.tsx"},{"match":"=","name":"keyword.operator.assignment.tsx"},{"match":"--","name":"keyword.operator.decrement.tsx"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.tsx"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.tsx"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.tsx"},"2":{"name":"keyword.operator.arithmetic.tsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.tsx"},"2":{"name":"keyword.operator.arithmetic.tsx"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"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.tsx"}},"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.tsx","patterns":[{"include":"#variable-initializer"},{"include":"#type-annotation"},{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"include":"#comment"},{"captures":{"1":{"name":"meta.definition.property.tsx entity.name.function.tsx"},"2":{"name":"keyword.operator.optional.tsx"},"3":{"name":"keyword.operator.definiteassignment.tsx"}},"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)(?:(\\\\?)|(!))?(?=\\\\s*\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx variable.object.property.tsx"},{"match":"\\\\?","name":"keyword.operator.optional.tsx"},{"match":"!","name":"keyword.operator.definiteassignment.tsx"}]},"for-loop":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))for(?=((\\\\s+|(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*))await)?\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)?(\\\\())","beginCaptures":{"0":{"name":"keyword.control.loop.tsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"match":"await","name":"keyword.control.loop.tsx"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"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.tsx"}]},"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.tsx","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.tsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.tsx punctuation.accessor.optional.tsx"},{"match":"!","name":"meta.function-call.tsx keyword.operator.definiteassignment.tsx"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.tsx"}]},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.async.tsx"},"4":{"name":"storage.type.function.tsx"},"5":{"name":"keyword.generator.asterisk.tsx"},"6":{"name":"meta.definition.function.tsx entity.name.function.tsx"}},"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.tsx","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.tsx"},"2":{"name":"storage.type.function.tsx"},"3":{"name":"keyword.generator.asterisk.tsx"},"4":{"name":"meta.definition.function.tsx entity.name.function.tsx"}},"end":"(?=;)|(?<=})","name":"meta.function.expression.tsx","patterns":[{"include":"#function-name"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#function-body"}]},"function-name":{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.function.tsx entity.name.function.tsx"},"function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.tsx"}},"name":"meta.parameters.tsx","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.tsx"}]},"identifiers":{"patterns":[{"include":"#object-identifiers"},{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"entity.name.function.tsx"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"variable.other.constant.property.tsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"variable.other.property.tsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.tsx"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.tsx"}]},"if-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\s*(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))\\\\s*(?!\\\\{))","end":"(?=;|$|})","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.tsx"},"2":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=\\\\))\\\\s*/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.tsx"},"2":{"name":"keyword.other.tsx"}},"name":"string.regexp.tsx","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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"keyword.control.import.tsx"},"4":{"name":"keyword.control.type.tsx"}},"end":"(?<!(?:^|[^$._[:alnum:]])import)(?=;|$|^)","name":"meta.import.tsx","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.tsx"}},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"keyword.control.import.tsx"},"4":{"name":"keyword.control.type.tsx"},"5":{"name":"variable.other.readwrite.alias.tsx"},"6":{"name":"keyword.operator.assignment.tsx"},"7":{"name":"keyword.control.require.tsx"},"8":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"name":"meta.import-equals.external.tsx","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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"keyword.control.import.tsx"},"4":{"name":"keyword.control.type.tsx"},"5":{"name":"variable.other.readwrite.alias.tsx"},"6":{"name":"keyword.operator.assignment.tsx"}},"end":"(?=;|$|^)","name":"meta.import-equals.internal.tsx","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"captures":{"1":{"name":"entity.name.type.module.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.readwrite.tsx"}]}]},"import-export-assert-clause":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(with)|(assert))\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.with.tsx"},"2":{"name":"keyword.control.assert.tsx"},"3":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object-literal.key.tsx"},{"match":":","name":"punctuation.separator.key-value.tsx"}]},"import-export-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.block.tsx","patterns":[{"include":"#import-export-clause"}]},"import-export-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.type.tsx"},"2":{"name":"keyword.control.default.tsx"},"3":{"name":"constant.language.import-export-all.tsx"},"4":{"name":"variable.other.readwrite.tsx"},"5":{"name":"string.quoted.alias.tsx"},"12":{"name":"keyword.control.as.tsx"},"13":{"name":"keyword.control.default.tsx"},"14":{"name":"variable.other.readwrite.alias.tsx"},"15":{"name":"string.quoted.alias.tsx"}},"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.tsx"},{"match":"\\\\b(default)\\\\b","name":"keyword.control.default.tsx"},{"captures":{"1":{"name":"keyword.control.type.tsx"},"2":{"name":"variable.other.readwrite.alias.tsx"},"3":{"name":"string.quoted.alias.tsx"}},"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.tsx"},{"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.tsx"},"2":{"name":"meta.brace.square.tsx"},"3":{"name":"variable.parameter.tsx"}},"end":"(])\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.tsx"},"2":{"name":"keyword.operator.optional.tsx"}},"name":"meta.indexer.declaration.tsx","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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"meta.brace.square.tsx"},"4":{"name":"entity.name.type.tsx"},"5":{"name":"keyword.operator.expression.in.tsx"}},"end":"(])([-+])?\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.tsx"},"2":{"name":"keyword.operator.type.modifier.tsx"},"3":{"name":"keyword.operator.optional.tsx"}},"name":"meta.indexer.mappedtype.declaration.tsx","patterns":[{"captures":{"1":{"name":"keyword.control.as.tsx"}},"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.tsx"}},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.type.interface.tsx"}},"end":"(?<=})","name":"meta.interface.tsx","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.interface.tsx"}},"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"}]}]},"jsx":{"patterns":[{"include":"#jsx-tag-without-attributes-in-expression"},{"include":"#jsx-tag-in-expression"}]},"jsx-children":{"patterns":[{"include":"#jsx-tag-without-attributes"},{"include":"#jsx-tag"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-entities"}]},"jsx-entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.tsx"},"3":{"name":"punctuation.definition.entity.tsx"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.tsx"}]},"jsx-evaluated-code":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.tsx"}},"contentName":"meta.embedded.expression.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.tsx"}},"patterns":[{"include":"#expression"}]},"jsx-string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tsx"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.tsx"}},"name":"string.quoted.double.tsx","patterns":[{"include":"#jsx-entities"}]},"jsx-string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tsx"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.tsx"}},"name":"string.quoted.single.tsx","patterns":[{"include":"#jsx-entities"}]},"jsx-tag":{"begin":"(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(/>)|(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.tsx"},"2":{"name":"punctuation.definition.tag.begin.tsx"},"3":{"name":"entity.name.tag.namespace.tsx"},"4":{"name":"punctuation.separator.namespace.tsx"},"5":{"name":"entity.name.tag.tsx"},"6":{"name":"support.class.component.tsx"},"7":{"name":"punctuation.definition.tag.end.tsx"}},"name":"meta.tag.tsx","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.tsx"}},"contentName":"meta.jsx.children.tsx","end":"(?=</)","patterns":[{"include":"#jsx-children"}]}]},"jsx-tag-attribute-assignment":{"match":"=(?=\\\\s*(?:[\\"'{]|/\\\\*|//|\\\\n))","name":"keyword.operator.assignment.tsx"},"jsx-tag-attribute-name":{"captures":{"1":{"name":"entity.other.attribute-name.namespace.tsx"},"2":{"name":"punctuation.separator.namespace.tsx"},"3":{"name":"entity.other.attribute-name.tsx"}},"match":"\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(:))?([$_[:alpha:]][-$_[:alnum:]]*)(?=[=\\\\s]|/?>|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.tsx","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.tsx"},"jsx-tag-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"},"6":{"name":"punctuation.definition.tag.end.tsx"}},"contentName":"meta.jsx.children.tsx","end":"(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.tsx"},"2":{"name":"entity.name.tag.namespace.tsx"},"3":{"name":"punctuation.separator.namespace.tsx"},"4":{"name":"entity.name.tag.tsx"},"5":{"name":"support.class.component.tsx"},"6":{"name":"punctuation.definition.tag.end.tsx"}},"name":"meta.tag.without-attributes.tsx","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.tsx"},"2":{"name":"punctuation.separator.label.tsx"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.tsx"},"2":{"name":"punctuation.separator.label.tsx"}},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.modifier.async.tsx"},"5":{"name":"storage.type.tsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.tsx","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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.modifier.async.tsx"},"5":{"name":"keyword.operator.new.tsx"},"6":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.tsx","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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.modifier.tsx"},"4":{"name":"storage.modifier.async.tsx"},"5":{"name":"storage.type.property.tsx"},"6":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.tsx","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.tsx entity.name.function.tsx"},{"match":"\\\\?","name":"keyword.operator.optional.tsx"}]},"namespace-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(namespace|module)\\\\s+(?=[\\"$'_\`[:alpha:]])","beginCaptures":{"1":{"name":"keyword.control.export.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.type.namespace.tsx"}},"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.tsx","patterns":[{"include":"#comment"},{"include":"#string"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.type.module.tsx"},{"include":"#punctuation-accessor"},{"include":"#decl-block"}]},"new-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.new.tsx"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","name":"new.expr.tsx","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))null(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.null.tsx"},"numeric-literal":{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.bigint.tsx"}},"match":"\\\\b(?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.hex.tsx"},{"captures":{"1":{"name":"storage.type.numeric.bigint.tsx"}},"match":"\\\\b(?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.binary.tsx"},{"captures":{"1":{"name":"storage.type.numeric.bigint.tsx"}},"match":"\\\\b(?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.octal.tsx"},{"captures":{"0":{"name":"constant.numeric.decimal.tsx"},"1":{"name":"meta.delimiter.decimal.period.tsx"},"2":{"name":"storage.type.numeric.bigint.tsx"},"3":{"name":"meta.delimiter.decimal.period.tsx"},"4":{"name":"storage.type.numeric.bigint.tsx"},"5":{"name":"meta.delimiter.decimal.period.tsx"},"6":{"name":"storage.type.numeric.bigint.tsx"},"7":{"name":"storage.type.numeric.bigint.tsx"},"8":{"name":"meta.delimiter.decimal.period.tsx"},"9":{"name":"storage.type.numeric.bigint.tsx"},"10":{"name":"meta.delimiter.decimal.period.tsx"},"11":{"name":"storage.type.numeric.bigint.tsx"},"12":{"name":"meta.delimiter.decimal.period.tsx"},"13":{"name":"storage.type.numeric.bigint.tsx"},"14":{"name":"storage.type.numeric.bigint.tsx"}},"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.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Infinity(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.infinity.tsx"}]},"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.tsx"}},"patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.object.property.tsx"}]},"object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"patterns":[{"include":"#object-binding-element"}]},"object-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.tsx"},"2":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"patterns":[{"include":"#object-binding-element-const"}]},"object-identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\??\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.tsx"},{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"variable.other.constant.object.property.tsx"},"4":{"name":"variable.other.object.property.tsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(#?\\\\p{upper}[$_\\\\d[:upper:]]*)|(#?[$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.constant.object.tsx"},"2":{"name":"variable.other.object.tsx"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.objectliteral.tsx","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.tsx"},"2":{"name":"storage.type.property.tsx"},"3":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.tsx","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.tsx"},"2":{"name":"storage.type.property.tsx"},"3":{"name":"keyword.generator.asterisk.tsx"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.tsx meta.object-literal.key.tsx","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.tsx meta.object-literal.key.tsx","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.tsx meta.object-literal.key.tsx","patterns":[{"include":"#comment"},{"include":"#numeric-literal"}]},{"begin":"(?<=[]\\"'\`])(?=\\\\s*[(<])","end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.tsx","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.tsx"},"1":{"name":"constant.numeric.decimal.tsx"}},"match":"(?![$_[:alpha:]])(\\\\d+)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.tsx"},{"captures":{"0":{"name":"meta.object-literal.key.tsx"},"1":{"name":"entity.name.function.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/)*\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},{"captures":{"0":{"name":"meta.object-literal.key.tsx"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.tsx"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.tsx"}},"end":"(?=[,}])","name":"meta.object.member.tsx","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.tsx"},{"captures":{"1":{"name":"keyword.control.as.tsx"},"2":{"name":"storage.modifier.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.tsx"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.tsx"},"2":{"name":"keyword.control.satisfies.tsx"}},"end":"(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisifies)\\\\s+))","name":"meta.object.member.tsx","patterns":[{"include":"#type"}]},{"begin":"(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*=)","end":"(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.tsx","patterns":[{"include":"#expression"}]},{"begin":":","beginCaptures":{"0":{"name":"meta.object-literal.key.tsx punctuation.separator.key-value.tsx"}},"end":"(?=[,}])","name":"meta.object.member.tsx","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.tsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"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.tsx"},"2":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.tsx"}},"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.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"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.tsx"},"2":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.tsx"}},"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.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"entity.name.function.tsx variable.language.this.tsx"},"4":{"name":"entity.name.function.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"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.tsx"},"2":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.tsx"}},"patterns":[{"include":"#parameter-object-binding-element"}]},"parameter-type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.tsx"}},"end":"(?=[),])|(?==[^>])","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"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.tsx"}},"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.tsx"}},"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.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.tsx meta.return.type.arrow.tsx keyword.operator.type.annotation.tsx"}},"contentName":"meta.arrow.tsx meta.return.type.arrow.tsx","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.tsx"},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.tsx"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.tsx"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tsx"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.tsx"},"2":{"name":"invalid.illegal.newline.tsx"}},"name":"string.quoted.double.tsx","patterns":[{"include":"#string-character-escape"}]},"qstring-single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tsx"}},"end":"(')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.tsx"},"2":{"name":"invalid.illegal.newline.tsx"}},"name":"string.quoted.single.tsx","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.tsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.tsx"},"2":{"name":"keyword.other.tsx"}},"name":"string.regexp.tsx","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.tsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.tsx"},"2":{"name":"keyword.other.tsx"}},"name":"string.regexp.tsx","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.tsx"}},"end":"(?<![\\\\&:|])(?=$|^|[,;{}]|//)","name":"meta.return.type.tsx","patterns":[{"include":"#return-type-core"}]},{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.tsx"}},"end":"(?<![\\\\&:|])((?=[,;{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.return.type.tsx","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.tsx"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.tsx"},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.tsx"},"2":{"name":"comment.line.double-slash.tsx"},"3":{"name":"punctuation.definition.comment.tsx"},"4":{"name":"storage.type.internaldeclaration.tsx"},"5":{"name":"punctuation.decorator.internaldeclaration.tsx"}},"contentName":"comment.line.double-slash.tsx","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.tsx"},"super-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))super\\\\b(?!\\\\$)","name":"variable.language.super.tsx"},"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.tsx"}]},"support-objects":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(arguments)\\\\b(?!\\\\$)","name":"variable.language.arguments.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(Promise)\\\\b(?!\\\\$)","name":"support.class.promise.tsx"},{"captures":{"1":{"name":"keyword.control.import.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"},"4":{"name":"support.variable.property.importmeta.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(import)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(meta)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"keyword.operator.new.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"},"4":{"name":"support.variable.property.target.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(target)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"punctuation.accessor.tsx"},"2":{"name":"punctuation.accessor.optional.tsx"},"3":{"name":"support.variable.property.tsx"},"4":{"name":"support.constant.tsx"}},"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.tsx"},"2":{"name":"support.type.object.module.tsx"},"3":{"name":"punctuation.accessor.tsx"},"4":{"name":"punctuation.accessor.optional.tsx"},"5":{"name":"support.type.object.module.tsx"}},"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.tsx"}},"name":"switch-statement.expr.tsx","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(switch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.switch.tsx"},"2":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"name":"switch-expression.expr.tsx","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"(?=})","name":"switch-block.expr.tsx","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default(?=:))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.switch.tsx"}},"end":"(?=:)","name":"case-clause.expr.tsx","patterns":[{"include":"#expression"}]},{"begin":"(:)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"case-clause.expr.tsx punctuation.definition.section.case-statement.tsx"},"2":{"name":"meta.block.tsx punctuation.definition.block.tsx"}},"contentName":"meta.block.tsx","end":"}","endCaptures":{"0":{"name":"meta.block.tsx punctuation.definition.block.tsx"}},"patterns":[{"include":"#statements"}]},{"captures":{"0":{"name":"case-clause.expr.tsx punctuation.definition.section.case-statement.tsx"}},"match":"(:)"},{"include":"#statements"}]}]},"template":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.tsx"},"2":{"name":"string.template.tsx punctuation.definition.string.template.begin.tsx"}},"contentName":"string.template.tsx","end":"\`","endCaptures":{"0":{"name":"string.template.tsx punctuation.definition.string.template.end.tsx"}},"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.tsx"}]},{"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.tsx"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.tsx"}},"contentName":"meta.embedded.line.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.tsx"}},"name":"meta.template.expression.tsx","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.tsx"},"2":{"name":"string.template.tsx punctuation.definition.string.template.begin.tsx"}},"contentName":"string.template.tsx","end":"\`","endCaptures":{"0":{"name":"string.template.tsx punctuation.definition.string.template.end.tsx"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.tsx"}},"contentName":"meta.embedded.line.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.tsx"}},"name":"meta.template.expression.tsx","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.tsx"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.tsx"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))this\\\\b(?!\\\\$)","name":"variable.language.this.tsx"},"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.tsx"}},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.type.type.tsx"},"4":{"name":"entity.name.type.alias.tsx"}},"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.tsx","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"begin":"(=)\\\\s*(intrinsic)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.assignment.tsx"},"2":{"name":"keyword.control.intrinsic.tsx"}},"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.tsx"}},"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.tsx"}},"end":"(?<![\\\\&:|])(?!\\\\s*[\\\\&|]\\\\s+)((?=^|[]),;}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.tsx"}},"end":"(?<![\\\\&:|])((?=[]),;}]|//)|(?==[^>])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.tsx","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.tsx"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.tsx"}},"name":"meta.type.parameters.tsx","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-builtin-literals":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(this|true|false|undefined|null|object)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.builtin.tsx"},"type-conditional":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.tsx"}},"end":"(?<=:)","patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.tsx"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.tsx"}},"patterns":[{"include":"#type"}]},{"include":"#type"}]}]},"type-fn-type-parameters":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b(?=\\\\s*<)","beginCaptures":{"1":{"name":"meta.type.constructor.tsx storage.modifier.tsx"},"2":{"name":"meta.type.constructor.tsx keyword.control.new.tsx"}},"end":"(?<=>)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.control.new.tsx"}},"end":"(?<=\\\\))","name":"meta.type.constructor.tsx","patterns":[{"include":"#function-parameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.tsx","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.tsx"}},"end":"(?<!=>)(?<![\\\\&|])(?=[]),:;=>?{}]|//|$)","name":"meta.type.function.return.tsx","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.tsx"}},"end":"(?<!=>)(?<![\\\\&|])((?=[]),:;=>?{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.tsx","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.tsx"},"2":{"name":"entity.name.type.tsx"},"3":{"name":"keyword.operator.expression.extends.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(infer)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s+(extends)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))?","name":"meta.type.infer.tsx"}]},"type-name":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(<)","captures":{"1":{"name":"entity.name.type.module.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"},"4":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx"}},"contentName":"meta.type.parameters.tsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.tsx"},"2":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.begin.tsx"}},"contentName":"meta.type.parameters.tsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.tsx punctuation.definition.typeparameters.end.tsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.tsx"},"2":{"name":"punctuation.accessor.tsx"},"3":{"name":"punctuation.accessor.optional.tsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.tsx"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.tsx"}},"name":"meta.object.type.tsx","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.tsx"}},"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.tsx"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.tsx"}},"end":"(?=\\\\S)"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))keyof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.keyof.tsx"},{"match":"([:?])","name":"keyword.operator.ternary.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\()","name":"keyword.operator.expression.import.tsx"}]},"type-parameters":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.tsx"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.tsx"}},"name":"meta.type.parameters.tsx","patterns":[{"include":"#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.tsx"},{"include":"#type"},{"include":"#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.tsx"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.tsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.tsx"}},"name":"meta.type.paren.cover.tsx","patterns":[{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"entity.name.function.tsx variable.language.this.tsx"},"4":{"name":"entity.name.function.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"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*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.tsx"},"2":{"name":"keyword.operator.rest.tsx"},"3":{"name":"variable.parameter.tsx variable.language.this.tsx"},"4":{"name":"variable.parameter.tsx"},"5":{"name":"keyword.operator.optional.tsx"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=:)"},{"include":"#type-annotation"},{"match":",","name":"punctuation.separator.parameter.tsx"},{"include":"#type"}]},"type-predicate-operator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.asserts.tsx"},"2":{"name":"variable.parameter.tsx variable.language.this.tsx"},"3":{"name":"variable.parameter.tsx"},"4":{"name":"keyword.operator.expression.is.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(asserts)\\\\s+)?(?!asserts)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s(is)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"captures":{"1":{"name":"keyword.operator.type.asserts.tsx"},"2":{"name":"variable.parameter.tsx variable.language.this.tsx"},"3":{"name":"variable.parameter.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(asserts)\\\\s+(?!is)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))asserts(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.type.asserts.tsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))is(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.is.tsx"}]},"type-primitive":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.tsx"},"type-string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template-type"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.tsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.tsx"}},"name":"meta.type.tuple.tsx","patterns":[{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.tsx"},{"captures":{"1":{"name":"entity.name.label.tsx"},"2":{"name":"keyword.operator.optional.tsx"},"3":{"name":"punctuation.separator.label.tsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeof-operator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))typeof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.operator.expression.typeof.tsx"}},"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.tsx"},"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.tsx","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.type.tsx"}},"end":"(?=\\\\S)"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.tsx"}},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.type.tsx"}},"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.tsx","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.type.tsx"}},"end":"(?=\\\\S)"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.tsx"}},"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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.type.tsx"}},"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.tsx","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.tsx"},"2":{"name":"storage.modifier.tsx"},"3":{"name":"storage.type.tsx"}},"end":"(?=\\\\S)"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*((?!\\\\S)|(?=//))","beginCaptures":{"1":{"name":"punctuation.separator.comma.tsx"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx variable.other.constant.tsx entity.name.function.tsx"}},"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.tsx","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.tsx variable.other.constant.tsx"}},"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.tsx","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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.tsx entity.name.function.tsx"},"2":{"name":"keyword.operator.definiteassignment.tsx"}},"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.tsx","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.tsx variable.other.constant.tsx"},"2":{"name":"keyword.operator.definiteassignment.tsx"}},"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.tsx","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.tsx variable.other.readwrite.tsx"},"2":{"name":"keyword.operator.definiteassignment.tsx"}},"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.tsx","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.tsx"}},"end":"(?=$|^|[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","patterns":[{"include":"#expression"}]},{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.tsx"}},"end":"(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))|(?=^\\\\s*$)|(?<![-\\\\&*+/|])(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]}},"scopeName":"source.tsx"}`)),IAe=[$Ae]});var Bte={};fn(Bte,{default:()=>iP});var NAe,iP,oP=tr(()=>{NAe=Object.freeze(JSON.parse(`{"displayName":"JavaScript","name":"javascript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.js"},"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.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.objectliteral.js","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.js"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js"}},"name":"meta.array.literal.js","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.js"},"2":{"name":"variable.parameter.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async)\\\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?==>)","name":"meta.arrow.js"},{"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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"}},"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.js","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.js"}},"end":"((?<=[}\\\\S])(?<!=>)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.js","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.js"}},"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.js","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.js"},"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.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))false(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.false.js"}]},"brackets":{"patterns":[{"begin":"\\\\{","end":"}|(?=\\\\*/)","patterns":[{"include":"#brackets"}]},{"begin":"\\\\[","end":"]|(?=\\\\*/)","patterns":[{"include":"#brackets"}]}]},"cast":{"patterns":[{"include":"#jsx"}]},"class-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(class)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.type.class.js"}},"end":"(?<=})","name":"meta.class.js","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.js"}},"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.js"},"2":{"name":"storage.type.class.js"}},"end":"(?<=})","name":"meta.class.js","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-or-interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"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.js"}},"end":"(?=\\\\{)","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"include":"#type-parameters"},{"include":"#expressionWithoutIdentifiers"},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*(\\\\s*\\\\??\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)*\\\\s*)"},{"captures":{"1":{"name":"entity.other.inherited-class.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#expressionPunctuations"}]},"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"name":"comment.block.documentation.js","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.js"},"2":{"name":"storage.type.internaldeclaration.js"},"3":{"name":"punctuation.decorator.internaldeclaration.js"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"name":"comment.block.js"},{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"},"2":{"name":"comment.line.double-slash.js"},"3":{"name":"punctuation.definition.comment.js"},"4":{"name":"storage.type.internaldeclaration.js"},"5":{"name":"punctuation.decorator.internaldeclaration.js"}},"contentName":"comment.line.double-slash.js","end":"(?=$)"}]},"control-statement":{"patterns":[{"include":"#switch-statement"},{"include":"#for-loop"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(catch|finally|throw|try)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.trycatch.js"},{"captures":{"1":{"name":"keyword.control.loop.js"},"2":{"name":"entity.name.label.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|goto)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|do|goto|while)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.loop.js"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.js"}},"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.js"},{"include":"#if-statement"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(with)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.with.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(package)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(debugger)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.other.debugger.js"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.block.js","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.js"}]},"decorator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))@","beginCaptures":{"0":{"name":"punctuation.decorator.js"}},"end":"(?=\\\\s)","name":"meta.decorator.js","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.js","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.js","patterns":[{"include":"#array-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-parameter":{"patterns":[{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"name":"meta.parameter.object-binding-pattern.js","patterns":[{"include":"#parameter-object-binding-element"}]},{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"name":"meta.paramter.array-binding-pattern.js","patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]}]},"destructuring-parameter-rest":{"captures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"variable.parameter.js"}},"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.js","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.js","patterns":[{"include":"#array-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-variable-rest":{"captures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"meta.definition.variable.js variable.other.readwrite.js"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable-rest-const":{"captures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"meta.definition.variable.js variable.other.constant.js"}},"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.js"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.js","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.js"},"2":{"name":"entity.name.tag.directive.js"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.js"}},"name":"meta.tag.js","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"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.js"}},"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.js"},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.type.enum.js"},"5":{"name":"entity.name.type.enum.js"}},"end":"(?<=})","name":"meta.enum.declaration.js","patterns":[{"include":"#comment"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"patterns":[{"include":"#comment"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.js"}},"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.js"},"2":{"name":"keyword.control.as.js"},"3":{"name":"storage.type.namespace.js"},"4":{"name":"entity.name.type.module.js"}},"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.js"},"2":{"name":"keyword.control.type.js"},"3":{"name":"keyword.operator.assignment.js"},"4":{"name":"keyword.control.default.js"}},"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.js","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.js"},"2":{"name":"keyword.control.type.js"}},"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.js","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.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"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.js"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-operators":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(await)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.flow.js"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?=\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*\\\\*)","beginCaptures":{"1":{"name":"keyword.control.flow.js"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.generator.asterisk.js"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.control.flow.js"},"2":{"name":"keyword.generator.asterisk.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s*(\\\\*))?"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))delete(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.delete.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))in(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.in.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))of(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.of.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.instanceof.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.new.js"},{"include":"#typeof-operator"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))void(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.void.js"},{"captures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"storage.modifier.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*($|[]),:;}]))"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"keyword.control.satisfies.js"}},"end":"(?=^|[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisfies)\\\\s+)|(\\\\s+<))","patterns":[{"include":"#type"}]},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.js"},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.js"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.js"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.js"},{"match":"[!=]==?","name":"keyword.operator.comparison.js"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.js"},{"captures":{"1":{"name":"keyword.operator.logical.js"},"2":{"name":"keyword.operator.assignment.compound.js"},"3":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.js"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.js"},{"match":"=","name":"keyword.operator.assignment.js"},{"match":"--","name":"keyword.operator.decrement.js"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.js"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.js"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.js"},"2":{"name":"keyword.operator.arithmetic.js"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"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.js"}},"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.js","patterns":[{"include":"#variable-initializer"},{"include":"#type-annotation"},{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"include":"#comment"},{"captures":{"1":{"name":"meta.definition.property.js entity.name.function.js"},"2":{"name":"keyword.operator.optional.js"},"3":{"name":"keyword.operator.definiteassignment.js"}},"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)(?:(\\\\?)|(!))?(?=\\\\s*\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js variable.object.property.js"},{"match":"\\\\?","name":"keyword.operator.optional.js"},{"match":"!","name":"keyword.operator.definiteassignment.js"}]},"for-loop":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))for(?=((\\\\s+|(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*))await)?\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)?(\\\\())","beginCaptures":{"0":{"name":"keyword.control.loop.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"match":"await","name":"keyword.control.loop.js"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"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.js"}]},"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.js","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.js","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.js punctuation.accessor.optional.js"},{"match":"!","name":"meta.function-call.js keyword.operator.definiteassignment.js"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.js"}]},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.async.js"},"4":{"name":"storage.type.function.js"},"5":{"name":"keyword.generator.asterisk.js"},"6":{"name":"meta.definition.function.js entity.name.function.js"}},"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.js","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.js"},"2":{"name":"storage.type.function.js"},"3":{"name":"keyword.generator.asterisk.js"},"4":{"name":"meta.definition.function.js entity.name.function.js"}},"end":"(?=;)|(?<=})","name":"meta.function.expression.js","patterns":[{"include":"#function-name"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#function-body"}]},"function-name":{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.function.js entity.name.function.js"},"function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.js"}},"name":"meta.parameters.js","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.js"}]},"identifiers":{"patterns":[{"include":"#object-identifiers"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"entity.name.function.js"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.constant.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.js"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.js"}]},"if-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\s*(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))\\\\s*(?!\\\\{))","end":"(?=;|$|})","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=\\\\))\\\\s*/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"keyword.control.import.js"},"4":{"name":"keyword.control.type.js"}},"end":"(?<!(?:^|[^$._[:alnum:]])import)(?=;|$|^)","name":"meta.import.js","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.js"}},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"keyword.control.import.js"},"4":{"name":"keyword.control.type.js"},"5":{"name":"variable.other.readwrite.alias.js"},"6":{"name":"keyword.operator.assignment.js"},"7":{"name":"keyword.control.require.js"},"8":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"meta.import-equals.external.js","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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"keyword.control.import.js"},"4":{"name":"keyword.control.type.js"},"5":{"name":"variable.other.readwrite.alias.js"},"6":{"name":"keyword.operator.assignment.js"}},"end":"(?=;|$|^)","name":"meta.import-equals.internal.js","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.readwrite.js"}]}]},"import-export-assert-clause":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(with)|(assert))\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.with.js"},"2":{"name":"keyword.control.assert.js"},"3":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object-literal.key.js"},{"match":":","name":"punctuation.separator.key-value.js"}]},"import-export-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.block.js","patterns":[{"include":"#import-export-clause"}]},"import-export-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.type.js"},"2":{"name":"keyword.control.default.js"},"3":{"name":"constant.language.import-export-all.js"},"4":{"name":"variable.other.readwrite.js"},"5":{"name":"string.quoted.alias.js"},"12":{"name":"keyword.control.as.js"},"13":{"name":"keyword.control.default.js"},"14":{"name":"variable.other.readwrite.alias.js"},"15":{"name":"string.quoted.alias.js"}},"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.js"},{"match":"\\\\b(default)\\\\b","name":"keyword.control.default.js"},{"captures":{"1":{"name":"keyword.control.type.js"},"2":{"name":"variable.other.readwrite.alias.js"},"3":{"name":"string.quoted.alias.js"}},"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.js"},{"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.js"},"2":{"name":"meta.brace.square.js"},"3":{"name":"variable.parameter.js"}},"end":"(])\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.js"},"2":{"name":"keyword.operator.optional.js"}},"name":"meta.indexer.declaration.js","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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"meta.brace.square.js"},"4":{"name":"entity.name.type.js"},"5":{"name":"keyword.operator.expression.in.js"}},"end":"(])([-+])?\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.js"},"2":{"name":"keyword.operator.type.modifier.js"},"3":{"name":"keyword.operator.optional.js"}},"name":"meta.indexer.mappedtype.declaration.js","patterns":[{"captures":{"1":{"name":"keyword.control.as.js"}},"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.js"}},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.type.interface.js"}},"end":"(?<=})","name":"meta.interface.js","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.interface.js"}},"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"}]}]},"jsx":{"patterns":[{"include":"#jsx-tag-without-attributes-in-expression"},{"include":"#jsx-tag-in-expression"}]},"jsx-children":{"patterns":[{"include":"#jsx-tag-without-attributes"},{"include":"#jsx-tag"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-entities"}]},"jsx-entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.js"},"3":{"name":"punctuation.definition.entity.js"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.js"}]},"jsx-evaluated-code":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.js"}},"contentName":"meta.embedded.expression.js","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.js"}},"patterns":[{"include":"#expression"}]},"jsx-string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.js"}},"name":"string.quoted.double.js","patterns":[{"include":"#jsx-entities"}]},"jsx-string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.js"}},"name":"string.quoted.single.js","patterns":[{"include":"#jsx-entities"}]},"jsx-tag":{"begin":"(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(/>)|(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.js"},"2":{"name":"punctuation.definition.tag.begin.js"},"3":{"name":"entity.name.tag.namespace.js"},"4":{"name":"punctuation.separator.namespace.js"},"5":{"name":"entity.name.tag.js"},"6":{"name":"support.class.component.js"},"7":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.js","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"(?=</)","patterns":[{"include":"#jsx-children"}]}]},"jsx-tag-attribute-assignment":{"match":"=(?=\\\\s*(?:[\\"'{]|/\\\\*|//|\\\\n))","name":"keyword.operator.assignment.js"},"jsx-tag-attribute-name":{"captures":{"1":{"name":"entity.other.attribute-name.namespace.js"},"2":{"name":"punctuation.separator.namespace.js"},"3":{"name":"entity.other.attribute-name.js"}},"match":"\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(:))?([$_[:alpha:]][-$_[:alnum:]]*)(?=[=\\\\s]|/?>|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.js","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.js"},"jsx-tag-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"contentName":"meta.jsx.children.js","end":"(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.js"},"2":{"name":"entity.name.tag.namespace.js"},"3":{"name":"punctuation.separator.namespace.js"},"4":{"name":"entity.name.tag.js"},"5":{"name":"support.class.component.js"},"6":{"name":"punctuation.definition.tag.end.js"}},"name":"meta.tag.without-attributes.js","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.js"},"2":{"name":"punctuation.separator.label.js"}},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"storage.type.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"keyword.operator.new.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.modifier.js"},"4":{"name":"storage.modifier.async.js"},"5":{"name":"storage.type.property.js"},"6":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js","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.js entity.name.function.js"},{"match":"\\\\?","name":"keyword.operator.optional.js"}]},"namespace-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(namespace|module)\\\\s+(?=[\\"$'_\`[:alpha:]])","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.namespace.js"}},"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.js","patterns":[{"include":"#comment"},{"include":"#string"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.type.module.js"},{"include":"#punctuation-accessor"},{"include":"#decl-block"}]},"new-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.new.js"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","name":"new.expr.js","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))null(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.null.js"},"numeric-literal":{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.bigint.js"}},"match":"\\\\b(?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.hex.js"},{"captures":{"1":{"name":"storage.type.numeric.bigint.js"}},"match":"\\\\b(?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.binary.js"},{"captures":{"1":{"name":"storage.type.numeric.bigint.js"}},"match":"\\\\b(?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.octal.js"},{"captures":{"0":{"name":"constant.numeric.decimal.js"},"1":{"name":"meta.delimiter.decimal.period.js"},"2":{"name":"storage.type.numeric.bigint.js"},"3":{"name":"meta.delimiter.decimal.period.js"},"4":{"name":"storage.type.numeric.bigint.js"},"5":{"name":"meta.delimiter.decimal.period.js"},"6":{"name":"storage.type.numeric.bigint.js"},"7":{"name":"storage.type.numeric.bigint.js"},"8":{"name":"meta.delimiter.decimal.period.js"},"9":{"name":"storage.type.numeric.bigint.js"},"10":{"name":"meta.delimiter.decimal.period.js"},"11":{"name":"storage.type.numeric.bigint.js"},"12":{"name":"meta.delimiter.decimal.period.js"},"13":{"name":"storage.type.numeric.bigint.js"},"14":{"name":"storage.type.numeric.bigint.js"}},"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.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Infinity(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.infinity.js"}]},"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.js"}},"patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.object.property.js"}]},"object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"patterns":[{"include":"#object-binding-element"}]},"object-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"patterns":[{"include":"#object-binding-element-const"}]},"object-identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\??\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.js"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"variable.other.constant.object.property.js"},"4":{"name":"variable.other.object.property.js"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(#?\\\\p{upper}[$_\\\\d[:upper:]]*)|(#?[$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.constant.object.js"},"2":{"name":"variable.other.object.js"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.objectliteral.js","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.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js","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.js"},"2":{"name":"storage.type.property.js"},"3":{"name":"keyword.generator.asterisk.js"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.js meta.object-literal.key.js","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.js meta.object-literal.key.js","patterns":[{"include":"#comment"},{"include":"#numeric-literal"}]},{"begin":"(?<=[]\\"'\`])(?=\\\\s*[(<])","end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.js"},"1":{"name":"constant.numeric.decimal.js"}},"match":"(?![$_[:alpha:]])(\\\\d+)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js"},{"captures":{"0":{"name":"meta.object-literal.key.js"},"1":{"name":"entity.name.function.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/)*\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},{"captures":{"0":{"name":"meta.object-literal.key.js"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js"}},"end":"(?=[,}])","name":"meta.object.member.js","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js"},{"captures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"storage.modifier.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.js"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.js"},"2":{"name":"keyword.control.satisfies.js"}},"end":"(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisifies)\\\\s+))","name":"meta.object.member.js","patterns":[{"include":"#type"}]},{"begin":"(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*=)","end":"(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js","patterns":[{"include":"#expression"}]},{"begin":":","beginCaptures":{"0":{"name":"meta.object-literal.key.js punctuation.separator.key-value.js"}},"end":"(?=[,}])","name":"meta.object.member.js","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.js"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"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.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js"}},"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.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"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.js"},"2":{"name":"punctuation.definition.binding-pattern.array.js"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js"}},"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.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"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.js"},"2":{"name":"punctuation.definition.binding-pattern.object.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js"}},"patterns":[{"include":"#parameter-object-binding-element"}]},"parameter-type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?=[),])|(?==[^>])","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"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.js"}},"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.js"}},"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.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.js meta.return.type.arrow.js keyword.operator.type.annotation.js"}},"contentName":"meta.arrow.js meta.return.type.arrow.js","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.js"},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.js"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.js"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"invalid.illegal.newline.js"}},"name":"string.quoted.double.js","patterns":[{"include":"#string-character-escape"}]},"qstring-single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js"}},"end":"(')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"invalid.illegal.newline.js"}},"name":"string.quoted.single.js","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.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","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.js"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js"},"2":{"name":"keyword.other.js"}},"name":"string.regexp.js","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.js"}},"end":"(?<![\\\\&:|])(?=$|^|[,;{}]|//)","name":"meta.return.type.js","patterns":[{"include":"#return-type-core"}]},{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?<![\\\\&:|])((?=[,;{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.return.type.js","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.js"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.js"},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"},"2":{"name":"comment.line.double-slash.js"},"3":{"name":"punctuation.definition.comment.js"},"4":{"name":"storage.type.internaldeclaration.js"},"5":{"name":"punctuation.decorator.internaldeclaration.js"}},"contentName":"comment.line.double-slash.js","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.js"},"super-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))super\\\\b(?!\\\\$)","name":"variable.language.super.js"},"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.js"}]},"support-objects":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(arguments)\\\\b(?!\\\\$)","name":"variable.language.arguments.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(Promise)\\\\b(?!\\\\$)","name":"support.class.promise.js"},{"captures":{"1":{"name":"keyword.control.import.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"},"4":{"name":"support.variable.property.importmeta.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(import)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(meta)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"keyword.operator.new.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"},"4":{"name":"support.variable.property.target.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(target)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"punctuation.accessor.js"},"2":{"name":"punctuation.accessor.optional.js"},"3":{"name":"support.variable.property.js"},"4":{"name":"support.constant.js"}},"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.js"},"2":{"name":"support.type.object.module.js"},"3":{"name":"punctuation.accessor.js"},"4":{"name":"punctuation.accessor.optional.js"},"5":{"name":"support.type.object.module.js"}},"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.js"}},"name":"switch-statement.expr.js","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(switch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.switch.js"},"2":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"switch-expression.expr.js","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"(?=})","name":"switch-block.expr.js","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default(?=:))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.switch.js"}},"end":"(?=:)","name":"case-clause.expr.js","patterns":[{"include":"#expression"}]},{"begin":"(:)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"case-clause.expr.js punctuation.definition.section.case-statement.js"},"2":{"name":"meta.block.js punctuation.definition.block.js"}},"contentName":"meta.block.js","end":"}","endCaptures":{"0":{"name":"meta.block.js punctuation.definition.block.js"}},"patterns":[{"include":"#statements"}]},{"captures":{"0":{"name":"case-clause.expr.js punctuation.definition.section.case-statement.js"}},"match":"(:)"},{"include":"#statements"}]}]},"template":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"},"2":{"name":"string.template.js punctuation.definition.string.template.begin.js"}},"contentName":"string.template.js","end":"\`","endCaptures":{"0":{"name":"string.template.js punctuation.definition.string.template.end.js"}},"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.js"}]},{"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.js"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js"},"2":{"name":"string.template.js punctuation.definition.string.template.begin.js"}},"contentName":"string.template.js","end":"\`","endCaptures":{"0":{"name":"string.template.js punctuation.definition.string.template.end.js"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"contentName":"meta.embedded.line.js","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}},"name":"meta.template.expression.js","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.js"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))this\\\\b(?!\\\\$)","name":"variable.language.this.js"},"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.js"}},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.type.js"},"4":{"name":"entity.name.type.alias.js"}},"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.js","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"begin":"(=)\\\\s*(intrinsic)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"},"2":{"name":"keyword.control.intrinsic.js"}},"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.js"}},"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.js"}},"end":"(?<![\\\\&:|])(?!\\\\s*[\\\\&|]\\\\s+)((?=^|[]),;}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js"}},"end":"(?<![\\\\&:|])((?=[]),;}]|//)|(?==[^>])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.js"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-builtin-literals":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(this|true|false|undefined|null|object)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.builtin.js"},"type-conditional":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.js"}},"end":"(?<=:)","patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.js"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.js"}},"patterns":[{"include":"#type"}]},{"include":"#type"}]}]},"type-fn-type-parameters":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b(?=\\\\s*<)","beginCaptures":{"1":{"name":"meta.type.constructor.js storage.modifier.js"},"2":{"name":"meta.type.constructor.js keyword.control.new.js"}},"end":"(?<=>)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.control.new.js"}},"end":"(?<=\\\\))","name":"meta.type.constructor.js","patterns":[{"include":"#function-parameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.js","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.js"}},"end":"(?<!=>)(?<![\\\\&|])(?=[]),:;=>?{}]|//|$)","name":"meta.type.function.return.js","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js"}},"end":"(?<!=>)(?<![\\\\&|])((?=[]),:;=>?{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.js","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.js"},"2":{"name":"entity.name.type.js"},"3":{"name":"keyword.operator.expression.extends.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(infer)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s+(extends)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))?","name":"meta.type.infer.js"}]},"type-name":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(<)","captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"},"4":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.begin.js"}},"contentName":"meta.type.parameters.js","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.js"},"2":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.begin.js"}},"contentName":"meta.type.parameters.js","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js punctuation.definition.typeparameters.end.js"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.js"},"2":{"name":"punctuation.accessor.js"},"3":{"name":"punctuation.accessor.optional.js"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.js"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js"}},"name":"meta.object.type.js","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.js"}},"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.js"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.js"}},"end":"(?=\\\\S)"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))keyof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.keyof.js"},{"match":"([:?])","name":"keyword.operator.ternary.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\()","name":"keyword.operator.expression.import.js"}]},"type-parameters":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.js"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.js"}},"name":"meta.type.parameters.js","patterns":[{"include":"#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.js"},{"include":"#type"},{"include":"#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.js"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js"}},"name":"meta.type.paren.cover.js","patterns":[{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"entity.name.function.js variable.language.this.js"},"4":{"name":"entity.name.function.js"},"5":{"name":"keyword.operator.optional.js"}},"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*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.js"},"2":{"name":"keyword.operator.rest.js"},"3":{"name":"variable.parameter.js variable.language.this.js"},"4":{"name":"variable.parameter.js"},"5":{"name":"keyword.operator.optional.js"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=:)"},{"include":"#type-annotation"},{"match":",","name":"punctuation.separator.parameter.js"},{"include":"#type"}]},"type-predicate-operator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.asserts.js"},"2":{"name":"variable.parameter.js variable.language.this.js"},"3":{"name":"variable.parameter.js"},"4":{"name":"keyword.operator.expression.is.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(asserts)\\\\s+)?(?!asserts)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s(is)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"captures":{"1":{"name":"keyword.operator.type.asserts.js"},"2":{"name":"variable.parameter.js variable.language.this.js"},"3":{"name":"variable.parameter.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(asserts)\\\\s+(?!is)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))asserts(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.type.asserts.js"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))is(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.is.js"}]},"type-primitive":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.js"},"type-string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template-type"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.js"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js"}},"name":"meta.type.tuple.js","patterns":[{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.js"},{"captures":{"1":{"name":"entity.name.label.js"},"2":{"name":"keyword.operator.optional.js"},"3":{"name":"punctuation.separator.label.js"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeof-operator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))typeof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.operator.expression.typeof.js"}},"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.js"},"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.js","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?=\\\\S)"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.js"}},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"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.js","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?=\\\\S)"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.js"}},"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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"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.js","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.js"},"2":{"name":"storage.modifier.js"},"3":{"name":"storage.type.js"}},"end":"(?=\\\\S)"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*((?!\\\\S)|(?=//))","beginCaptures":{"1":{"name":"punctuation.separator.comma.js"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js variable.other.constant.js entity.name.function.js"}},"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.js","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.constant.js"}},"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.js","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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js entity.name.function.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"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.js","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.constant.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"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.js","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.js variable.other.readwrite.js"},"2":{"name":"keyword.operator.definiteassignment.js"}},"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.js","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.js"}},"end":"(?=$|^|[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","patterns":[{"include":"#expression"}]},{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js"}},"end":"(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))|(?=^\\\\s*$)|(?<![-\\\\&*+/|])(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]}},"scopeName":"source.js","aliases":["js","cjs","mjs"]}`)),iP=[NAe]});var zte={};fn(zte,{default:()=>jAe});var PAe,jAe,qte=tr(()=>{PAe=Object.freeze(JSON.parse(`{"displayName":"JSX","name":"jsx","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.js.jsx"},"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.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.objectliteral.js.jsx","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js.jsx"}},"name":"meta.array.literal.js.jsx","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.js.jsx"},"2":{"name":"variable.parameter.js.jsx"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\b(async)\\\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?==>)","name":"meta.arrow.js.jsx"},{"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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"}},"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.js.jsx","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.js.jsx"}},"end":"((?<=[}\\\\S])(?<!=>)|((?!\\\\{)(?=\\\\S)))(?!/[*/])","name":"meta.arrow.js.jsx","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.js.jsx"}},"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.js.jsx","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.js.jsx"},"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.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))false(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.false.js.jsx"}]},"brackets":{"patterns":[{"begin":"\\\\{","end":"}|(?=\\\\*/)","patterns":[{"include":"#brackets"}]},{"begin":"\\\\[","end":"]|(?=\\\\*/)","patterns":[{"include":"#brackets"}]}]},"cast":{"patterns":[{"include":"#jsx"}]},"class-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(class)\\\\b(?=\\\\s+|/[*/])","beginCaptures":{"1":{"name":"keyword.control.export.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.type.class.js.jsx"}},"end":"(?<=})","name":"meta.class.js.jsx","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.js.jsx"}},"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.js.jsx"},"2":{"name":"storage.type.class.js.jsx"}},"end":"(?<=})","name":"meta.class.js.jsx","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-or-interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"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.js.jsx"}},"end":"(?=\\\\{)","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"include":"#type-parameters"},{"include":"#expressionWithoutIdentifiers"},{"captures":{"1":{"name":"entity.name.type.module.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))(?=\\\\s*[$_[:alpha:]][$_[:alnum:]]*(\\\\s*\\\\??\\\\.\\\\s*[$_[:alpha:]][$_[:alnum:]]*)*\\\\s*)"},{"captures":{"1":{"name":"entity.other.inherited-class.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)"},{"include":"#expressionPunctuations"}]},"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.js.jsx"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.js.jsx"}},"name":"comment.block.documentation.js.jsx","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.js.jsx"},"2":{"name":"storage.type.internaldeclaration.js.jsx"},"3":{"name":"punctuation.decorator.internaldeclaration.js.jsx"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.js.jsx"}},"name":"comment.block.js.jsx"},{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js.jsx"},"2":{"name":"comment.line.double-slash.js.jsx"},"3":{"name":"punctuation.definition.comment.js.jsx"},"4":{"name":"storage.type.internaldeclaration.js.jsx"},"5":{"name":"punctuation.decorator.internaldeclaration.js.jsx"}},"contentName":"comment.line.double-slash.js.jsx","end":"(?=$)"}]},"control-statement":{"patterns":[{"include":"#switch-statement"},{"include":"#for-loop"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(catch|finally|throw|try)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.trycatch.js.jsx"},{"captures":{"1":{"name":"keyword.control.loop.js.jsx"},"2":{"name":"entity.name.label.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|goto)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|do|goto|while)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.loop.js.jsx"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.js.jsx"}},"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.js.jsx"},{"include":"#if-statement"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(with)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.with.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(package)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(debugger)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.other.debugger.js.jsx"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.block.js.jsx","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.js.jsx"}]},"decorator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))@","beginCaptures":{"0":{"name":"punctuation.decorator.js.jsx"}},"end":"(?=\\\\s)","name":"meta.decorator.js.jsx","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.js.jsx","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.js.jsx","patterns":[{"include":"#array-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-parameter":{"patterns":[{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"name":"meta.parameter.object-binding-pattern.js.jsx","patterns":[{"include":"#parameter-object-binding-element"}]},{"begin":"(?<![:=])\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"name":"meta.paramter.array-binding-pattern.js.jsx","patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]}]},"destructuring-parameter-rest":{"captures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"variable.parameter.js.jsx"}},"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.js.jsx","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.js.jsx","patterns":[{"include":"#array-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-variable-rest":{"captures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"meta.definition.variable.js.jsx variable.other.readwrite.js.jsx"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"},"destructuring-variable-rest-const":{"captures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"meta.definition.variable.js.jsx variable.other.constant.js.jsx"}},"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.js.jsx"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.js.jsx","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.js.jsx"},"2":{"name":"entity.name.tag.directive.js.jsx"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.js.jsx"}},"name":"meta.tag.js.jsx","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.js.jsx"},{"match":"=","name":"keyword.operator.assignment.js.jsx"},{"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.js.jsx"}},"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.js.jsx"},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.type.enum.js.jsx"},"5":{"name":"entity.name.type.enum.js.jsx"}},"end":"(?<=})","name":"meta.enum.declaration.js.jsx","patterns":[{"include":"#comment"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"patterns":[{"include":"#comment"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.js.jsx"}},"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.js.jsx"},"2":{"name":"keyword.control.as.js.jsx"},"3":{"name":"storage.type.namespace.js.jsx"},"4":{"name":"entity.name.type.module.js.jsx"}},"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.js.jsx"},"2":{"name":"keyword.control.type.js.jsx"},"3":{"name":"keyword.operator.assignment.js.jsx"},"4":{"name":"keyword.control.default.js.jsx"}},"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.js.jsx","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.js.jsx"},"2":{"name":"keyword.control.type.js.jsx"}},"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.js.jsx","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.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"entity.name.function.js.jsx variable.language.this.js.jsx"},"4":{"name":"entity.name.function.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"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.js.jsx"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-operators":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(await)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.flow.js.jsx"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?=\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*\\\\*)","beginCaptures":{"1":{"name":"keyword.control.flow.js.jsx"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.generator.asterisk.js.jsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.control.flow.js.jsx"},"2":{"name":"keyword.generator.asterisk.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s*(\\\\*))?"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))delete(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.delete.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))in(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.in.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))of(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.of.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))instanceof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.instanceof.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.new.js.jsx"},{"include":"#typeof-operator"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))void(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.void.js.jsx"},{"captures":{"1":{"name":"keyword.control.as.js.jsx"},"2":{"name":"storage.modifier.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*($|[]),:;}]))"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.js.jsx"},"2":{"name":"keyword.control.satisfies.js.jsx"}},"end":"(?=^|[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisfies)\\\\s+)|(\\\\s+<))","patterns":[{"include":"#type"}]},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.js.jsx"},{"match":"(?:\\\\*|(?<!\\\\()/|[-%+])=","name":"keyword.operator.assignment.compound.js.jsx"},{"match":"(?:[\\\\&^]|<<|>>>??|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.js.jsx"},{"match":"<<|>>>?","name":"keyword.operator.bitwise.shift.js.jsx"},{"match":"[!=]==?","name":"keyword.operator.comparison.js.jsx"},{"match":"<=|>=|<>|[<>]","name":"keyword.operator.relational.js.jsx"},{"captures":{"1":{"name":"keyword.operator.logical.js.jsx"},"2":{"name":"keyword.operator.assignment.compound.js.jsx"},"3":{"name":"keyword.operator.arithmetic.js.jsx"}},"match":"(?<=[$_[:alnum:]])(!)\\\\s*(?:(/=)|(/)(?![*/]))"},{"match":"!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.js.jsx"},{"match":"[\\\\&^|~]","name":"keyword.operator.bitwise.js.jsx"},{"match":"=","name":"keyword.operator.assignment.js.jsx"},{"match":"--","name":"keyword.operator.decrement.js.jsx"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.js.jsx"},{"match":"[-%*+/]","name":"keyword.operator.arithmetic.js.jsx"},{"begin":"(?<=[]$)_[:alnum:]])\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)+(?:(/=)|(/)(?![*/])))","end":"(/=)|(/)(?!\\\\*([^*]|(\\\\*[^/]))*\\\\*/)","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.js.jsx"},"2":{"name":"keyword.operator.arithmetic.js.jsx"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.js.jsx"},"2":{"name":"keyword.operator.arithmetic.js.jsx"}},"match":"(?<=[]$)_[:alnum:]])\\\\s*(?:(/=)|(/)(?![*/]))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#jsx"},{"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.js.jsx"}},"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.js.jsx","patterns":[{"include":"#variable-initializer"},{"include":"#type-annotation"},{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"include":"#comment"},{"captures":{"1":{"name":"meta.definition.property.js.jsx entity.name.function.js.jsx"},"2":{"name":"keyword.operator.optional.js.jsx"},"3":{"name":"keyword.operator.definiteassignment.js.jsx"}},"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)(?:(\\\\?)|(!))?(?=\\\\s*\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx variable.object.property.js.jsx"},{"match":"\\\\?","name":"keyword.operator.optional.js.jsx"},{"match":"!","name":"keyword.operator.definiteassignment.js.jsx"}]},"for-loop":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))for(?=((\\\\s+|(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*))await)?\\\\s*(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)?(\\\\())","beginCaptures":{"0":{"name":"keyword.control.loop.js.jsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"match":"await","name":"keyword.control.loop.js.jsx"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"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.js.jsx"}]},"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.js.jsx","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.js.jsx","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.js.jsx punctuation.accessor.optional.js.jsx"},{"match":"!","name":"meta.function-call.js.jsx keyword.operator.definiteassignment.js.jsx"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(#?[$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.function.js.jsx"}]},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.async.js.jsx"},"4":{"name":"storage.type.function.js.jsx"},"5":{"name":"keyword.generator.asterisk.js.jsx"},"6":{"name":"meta.definition.function.js.jsx entity.name.function.js.jsx"}},"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.js.jsx","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.js.jsx"},"2":{"name":"storage.type.function.js.jsx"},"3":{"name":"keyword.generator.asterisk.js.jsx"},"4":{"name":"meta.definition.function.js.jsx entity.name.function.js.jsx"}},"end":"(?=;)|(?<=})","name":"meta.function.expression.js.jsx","patterns":[{"include":"#function-name"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#function-body"}]},"function-name":{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"meta.definition.function.js.jsx entity.name.function.js.jsx"},"function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.js.jsx"}},"name":"meta.parameters.js.jsx","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.js.jsx"}]},"identifiers":{"patterns":[{"include":"#object-identifiers"},{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"entity.name.function.js.jsx"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*=\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"variable.other.constant.property.js.jsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"variable.other.property.js.jsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"},{"match":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])","name":"variable.other.constant.js.jsx"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"variable.other.readwrite.js.jsx"}]},"if-statement":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\s*(\\\\(([^()]|(\\\\(([^()]|\\\\([^()]*\\\\))*\\\\)))*\\\\))\\\\s*(?!\\\\{))","end":"(?=;|$|})","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.js.jsx"},"2":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=\\\\))\\\\s*/(?![*/])(?=(?:[^/\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[([^]\\\\\\\\]|\\\\\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\\\*))(?!\\\\s*[$0-9A-Z_a-z]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js.jsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js.jsx"},"2":{"name":"keyword.other.js.jsx"}},"name":"string.regexp.js.jsx","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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"keyword.control.import.js.jsx"},"4":{"name":"keyword.control.type.js.jsx"}},"end":"(?<!(?:^|[^$._[:alnum:]])import)(?=;|$|^)","name":"meta.import.js.jsx","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.js.jsx"}},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"keyword.control.import.js.jsx"},"4":{"name":"keyword.control.type.js.jsx"},"5":{"name":"variable.other.readwrite.alias.js.jsx"},"6":{"name":"keyword.operator.assignment.js.jsx"},"7":{"name":"keyword.control.require.js.jsx"},"8":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"name":"meta.import-equals.external.js.jsx","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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"keyword.control.import.js.jsx"},"4":{"name":"keyword.control.type.js.jsx"},"5":{"name":"variable.other.readwrite.alias.js.jsx"},"6":{"name":"keyword.operator.assignment.js.jsx"}},"end":"(?=;|$|^)","name":"meta.import-equals.internal.js.jsx","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"captures":{"1":{"name":"entity.name.type.module.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.other.readwrite.js.jsx"}]}]},"import-export-assert-clause":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(with)|(assert))\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.with.js.jsx"},"2":{"name":"keyword.control.assert.js.jsx"},"3":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object-literal.key.js.jsx"},{"match":":","name":"punctuation.separator.key-value.js.jsx"}]},"import-export-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.block.js.jsx","patterns":[{"include":"#import-export-clause"}]},"import-export-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.type.js.jsx"},"2":{"name":"keyword.control.default.js.jsx"},"3":{"name":"constant.language.import-export-all.js.jsx"},"4":{"name":"variable.other.readwrite.js.jsx"},"5":{"name":"string.quoted.alias.js.jsx"},"12":{"name":"keyword.control.as.js.jsx"},"13":{"name":"keyword.control.default.js.jsx"},"14":{"name":"variable.other.readwrite.alias.js.jsx"},"15":{"name":"string.quoted.alias.js.jsx"}},"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.js.jsx"},{"match":"\\\\b(default)\\\\b","name":"keyword.control.default.js.jsx"},{"captures":{"1":{"name":"keyword.control.type.js.jsx"},"2":{"name":"variable.other.readwrite.alias.js.jsx"},"3":{"name":"string.quoted.alias.js.jsx"}},"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.js.jsx"},{"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.js.jsx"},"2":{"name":"meta.brace.square.js.jsx"},"3":{"name":"variable.parameter.js.jsx"}},"end":"(])\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.js.jsx"},"2":{"name":"keyword.operator.optional.js.jsx"}},"name":"meta.indexer.declaration.js.jsx","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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"meta.brace.square.js.jsx"},"4":{"name":"entity.name.type.js.jsx"},"5":{"name":"keyword.operator.expression.in.js.jsx"}},"end":"(])([-+])?\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.js.jsx"},"2":{"name":"keyword.operator.type.modifier.js.jsx"},"3":{"name":"keyword.operator.optional.js.jsx"}},"name":"meta.indexer.mappedtype.declaration.js.jsx","patterns":[{"captures":{"1":{"name":"keyword.control.as.js.jsx"}},"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.js.jsx"}},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.type.interface.js.jsx"}},"end":"(?<=})","name":"meta.interface.js.jsx","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.interface.js.jsx"}},"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"}]}]},"jsx":{"patterns":[{"include":"#jsx-tag-without-attributes-in-expression"},{"include":"#jsx-tag-in-expression"}]},"jsx-children":{"patterns":[{"include":"#jsx-tag-without-attributes"},{"include":"#jsx-tag"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-entities"}]},"jsx-entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.js.jsx"},"3":{"name":"punctuation.definition.entity.js.jsx"}},"match":"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.js.jsx"}]},"jsx-evaluated-code":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.js.jsx"}},"contentName":"meta.embedded.expression.js.jsx","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.js.jsx"}},"patterns":[{"include":"#expression"}]},"jsx-string-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js.jsx"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.js.jsx"}},"name":"string.quoted.double.js.jsx","patterns":[{"include":"#jsx-entities"}]},"jsx-string-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js.jsx"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.js.jsx"}},"name":"string.quoted.single.js.jsx","patterns":[{"include":"#jsx-entities"}]},"jsx-tag":{"begin":"(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(/>)|(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.js.jsx"},"2":{"name":"punctuation.definition.tag.begin.js.jsx"},"3":{"name":"entity.name.tag.namespace.js.jsx"},"4":{"name":"punctuation.separator.namespace.js.jsx"},"5":{"name":"entity.name.tag.js.jsx"},"6":{"name":"support.class.component.js.jsx"},"7":{"name":"punctuation.definition.tag.end.js.jsx"}},"name":"meta.tag.js.jsx","patterns":[{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"}},"end":"(?=/?>)","patterns":[{"include":"#comment"},{"include":"#type-arguments"},{"include":"#jsx-tag-attributes"}]},{"begin":"(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.end.js.jsx"}},"contentName":"meta.jsx.children.js.jsx","end":"(?=</)","patterns":[{"include":"#jsx-children"}]}]},"jsx-tag-attribute-assignment":{"match":"=(?=\\\\s*(?:[\\"'{]|/\\\\*|//|\\\\n))","name":"keyword.operator.assignment.js.jsx"},"jsx-tag-attribute-name":{"captures":{"1":{"name":"entity.other.attribute-name.namespace.js.jsx"},"2":{"name":"punctuation.separator.namespace.js.jsx"},"3":{"name":"entity.other.attribute-name.js.jsx"}},"match":"\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(:))?([$_[:alpha:]][-$_[:alnum:]]*)(?=[=\\\\s]|/?>|/\\\\*|//)"},"jsx-tag-attributes":{"begin":"\\\\s+","end":"(?=/?>)","name":"meta.tag.attributes.js.jsx","patterns":[{"include":"#comment"},{"include":"#jsx-tag-attribute-name"},{"include":"#jsx-tag-attribute-assignment"},{"include":"#jsx-string-double-quoted"},{"include":"#jsx-string-single-quoted"},{"include":"#jsx-evaluated-code"},{"include":"#jsx-tag-attributes-illegal"}]},"jsx-tag-attributes-illegal":{"match":"\\\\S+","name":"invalid.illegal.attribute.js.jsx"},"jsx-tag-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?!<\\\\s*[$_[:alpha:]][$_[:alnum:]]*((\\\\s+extends\\\\s+[^=>])|,))(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\\\s*)|(\\\\s+))(?!\\\\?)|/?>))","patterns":[{"include":"#jsx-tag"}]},"jsx-tag-without-attributes":{"begin":"(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"},"6":{"name":"punctuation.definition.tag.end.js.jsx"}},"contentName":"meta.jsx.children.js.jsx","end":"(</)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.js.jsx"},"2":{"name":"entity.name.tag.namespace.js.jsx"},"3":{"name":"punctuation.separator.namespace.js.jsx"},"4":{"name":"entity.name.tag.js.jsx"},"5":{"name":"support.class.component.js.jsx"},"6":{"name":"punctuation.definition.tag.end.js.jsx"}},"name":"meta.tag.without-attributes.js.jsx","patterns":[{"include":"#jsx-children"}]},"jsx-tag-without-attributes-in-expression":{"begin":"(?<!\\\\+\\\\+|--)(?<=[(*,:=>?\\\\[{]|&&|\\\\|\\\\||\\\\?|\\\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\\\s*(?=(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","end":"(?!(<)\\\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\\\s*(>))","patterns":[{"include":"#jsx-tag-without-attributes"}]},"label":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.js.jsx"},"2":{"name":"punctuation.separator.label.js.jsx"}},"end":"(?<=})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.js.jsx"},"2":{"name":"punctuation.separator.label.js.jsx"}},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.modifier.async.js.jsx"},"5":{"name":"storage.type.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js.jsx","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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.modifier.async.js.jsx"},"5":{"name":"keyword.operator.new.js.jsx"},"6":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js.jsx","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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.modifier.js.jsx"},"4":{"name":"storage.modifier.async.js.jsx"},"5":{"name":"storage.type.property.js.jsx"},"6":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}]|$)|(?<=})","name":"meta.method.declaration.js.jsx","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.js.jsx entity.name.function.js.jsx"},{"match":"\\\\?","name":"keyword.operator.optional.js.jsx"}]},"namespace-declaration":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(namespace|module)\\\\s+(?=[\\"$'_\`[:alpha:]])","beginCaptures":{"1":{"name":"keyword.control.export.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.type.namespace.js.jsx"}},"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.js.jsx","patterns":[{"include":"#comment"},{"include":"#string"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"entity.name.type.module.js.jsx"},{"include":"#punctuation-accessor"},{"include":"#decl-block"}]},"new-expr":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.new.js.jsx"}},"end":"(?<=\\\\))|(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\\\s*\\\\())))","name":"new.expr.js.jsx","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))null(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.null.js.jsx"},"numeric-literal":{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.bigint.js.jsx"}},"match":"\\\\b(?<!\\\\$)0[Xx]\\\\h[_\\\\h]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.hex.js.jsx"},{"captures":{"1":{"name":"storage.type.numeric.bigint.js.jsx"}},"match":"\\\\b(?<!\\\\$)0[Bb][01][01_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.binary.js.jsx"},{"captures":{"1":{"name":"storage.type.numeric.bigint.js.jsx"}},"match":"\\\\b(?<!\\\\$)0[Oo]?[0-7][0-7_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.octal.js.jsx"},{"captures":{"0":{"name":"constant.numeric.decimal.js.jsx"},"1":{"name":"meta.delimiter.decimal.period.js.jsx"},"2":{"name":"storage.type.numeric.bigint.js.jsx"},"3":{"name":"meta.delimiter.decimal.period.js.jsx"},"4":{"name":"storage.type.numeric.bigint.js.jsx"},"5":{"name":"meta.delimiter.decimal.period.js.jsx"},"6":{"name":"storage.type.numeric.bigint.js.jsx"},"7":{"name":"storage.type.numeric.bigint.js.jsx"},"8":{"name":"meta.delimiter.decimal.period.js.jsx"},"9":{"name":"storage.type.numeric.bigint.js.jsx"},"10":{"name":"meta.delimiter.decimal.period.js.jsx"},"11":{"name":"storage.type.numeric.bigint.js.jsx"},"12":{"name":"meta.delimiter.decimal.period.js.jsx"},"13":{"name":"storage.type.numeric.bigint.js.jsx"},"14":{"name":"storage.type.numeric.bigint.js.jsx"}},"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.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Infinity(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.infinity.js.jsx"}]},"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.js.jsx"}},"patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"([$_[:alpha:]][$_[:alnum:]]*)","name":"variable.object.property.js.jsx"}]},"object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"patterns":[{"include":"#object-binding-element"}]},"object-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"patterns":[{"include":"#object-binding-element-const"}]},"object-identifiers":{"patterns":[{"match":"([$_[:alpha:]][$_[:alnum:]]*)(?=\\\\s*\\\\??\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.js.jsx"},{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"variable.other.constant.object.property.js.jsx"},"4":{"name":"variable.other.object.property.js.jsx"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(?:(#?\\\\p{upper}[$_\\\\d[:upper:]]*)|(#?[$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.constant.object.js.jsx"},"2":{"name":"variable.other.object.js.jsx"}},"match":"(?:(\\\\p{upper}[$_\\\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.objectliteral.js.jsx","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.js.jsx"},"2":{"name":"storage.type.property.js.jsx"},"3":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js.jsx","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.js.jsx"},"2":{"name":"storage.type.property.js.jsx"},"3":{"name":"keyword.generator.asterisk.js.jsx"}},"end":"(?=[(<])","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=])(?=\\\\s*[(<]))","name":"meta.object.member.js.jsx meta.object-literal.key.js.jsx","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\"'\`])","end":"(?=:)|((?<=[\\"'\`])(?=((\\\\s*[(,<}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.js.jsx meta.object-literal.key.js.jsx","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.js.jsx meta.object-literal.key.js.jsx","patterns":[{"include":"#comment"},{"include":"#numeric-literal"}]},{"begin":"(?<=[]\\"'\`])(?=\\\\s*[(<])","end":"(?=[,;}])|(?<=})","name":"meta.method.declaration.js.jsx","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.js.jsx"},"1":{"name":"constant.numeric.decimal.js.jsx"}},"match":"(?![$_[:alpha:]])(\\\\d+)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js.jsx"},{"captures":{"0":{"name":"meta.object-literal.key.js.jsx"},"1":{"name":"entity.name.function.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:(\\\\s*/\\\\*([^*]|(\\\\*[^/]))*\\\\*/)*\\\\s*(((async\\\\s+)?((function\\\\s*[(*<])|(function\\\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},{"captures":{"0":{"name":"meta.object-literal.key.js.jsx"}},"match":"[$_[:alpha:]][$_[:alnum:]]*\\\\s*(?=(/\\\\*([^*]|(\\\\*[^/]))*\\\\*/\\\\s*)*:)","name":"meta.object.member.js.jsx"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.js.jsx"}},"end":"(?=[,}])","name":"meta.object.member.js.jsx","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js.jsx"},{"captures":{"1":{"name":"keyword.control.as.js.jsx"},"2":{"name":"storage.modifier.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.js.jsx"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.js.jsx"},"2":{"name":"keyword.control.satisfies.js.jsx"}},"end":"(?=[-\\\\])+,:;>?}]|\\\\|\\\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisifies)\\\\s+))","name":"meta.object.member.js.jsx","patterns":[{"include":"#type"}]},{"begin":"(?=[$_[:alpha:]][$_[:alnum:]]*\\\\s*=)","end":"(?=[,}]|$|//|/\\\\*)","name":"meta.object.member.js.jsx","patterns":[{"include":"#expression"}]},{"begin":":","beginCaptures":{"0":{"name":"meta.object-literal.key.js.jsx punctuation.separator.key-value.js.jsx"}},"end":"(?=[,}])","name":"meta.object.member.js.jsx","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.js.jsx"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"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.js.jsx"},"2":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.js.jsx"}},"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.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"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.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.js.jsx"}},"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.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"entity.name.function.js.jsx variable.language.this.js.jsx"},"4":{"name":"entity.name.function.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"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.js.jsx"},"2":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.js.jsx"}},"patterns":[{"include":"#parameter-object-binding-element"}]},"parameter-type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js.jsx"}},"end":"(?=[),])|(?==[^>])","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"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.js.jsx"}},"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.js.jsx"}},"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.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.js.jsx meta.return.type.arrow.js.jsx keyword.operator.type.annotation.js.jsx"}},"contentName":"meta.arrow.js.jsx meta.return.type.arrow.js.jsx","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.js.jsx"},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"}},"match":"(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.js.jsx"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.js.jsx"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js.jsx"}},"end":"(\\")|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.js.jsx"},"2":{"name":"invalid.illegal.newline.js.jsx"}},"name":"string.quoted.double.js.jsx","patterns":[{"include":"#string-character-escape"}]},"qstring-single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.js.jsx"}},"end":"(')|([^\\\\n\\\\\\\\])$","endCaptures":{"1":{"name":"punctuation.definition.string.end.js.jsx"},"2":{"name":"invalid.illegal.newline.js.jsx"}},"name":"string.quoted.single.js.jsx","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.js.jsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js.jsx"},"2":{"name":"keyword.other.js.jsx"}},"name":"string.regexp.js.jsx","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.js.jsx"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.js.jsx"},"2":{"name":"keyword.other.js.jsx"}},"name":"string.regexp.js.jsx","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.js.jsx"}},"end":"(?<![\\\\&:|])(?=$|^|[,;{}]|//)","name":"meta.return.type.js.jsx","patterns":[{"include":"#return-type-core"}]},{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js.jsx"}},"end":"(?<![\\\\&:|])((?=[,;{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.return.type.js.jsx","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.js.jsx"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.js.jsx"},"single-line-comment-consuming-line-ending":{"begin":"(^[\\\\t ]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js.jsx"},"2":{"name":"comment.line.double-slash.js.jsx"},"3":{"name":"punctuation.definition.comment.js.jsx"},"4":{"name":"storage.type.internaldeclaration.js.jsx"},"5":{"name":"punctuation.decorator.internaldeclaration.js.jsx"}},"contentName":"comment.line.double-slash.js.jsx","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.js.jsx"},"super-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))super\\\\b(?!\\\\$)","name":"variable.language.super.js.jsx"},"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.js.jsx"}]},"support-objects":{"patterns":[{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(arguments)\\\\b(?!\\\\$)","name":"variable.language.arguments.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(Promise)\\\\b(?!\\\\$)","name":"support.class.promise.js.jsx"},{"captures":{"1":{"name":"keyword.control.import.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"},"4":{"name":"support.variable.property.importmeta.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(import)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(meta)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"keyword.operator.new.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"},"4":{"name":"support.variable.property.target.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(target)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"punctuation.accessor.js.jsx"},"2":{"name":"punctuation.accessor.optional.js.jsx"},"3":{"name":"support.variable.property.js.jsx"},"4":{"name":"support.constant.js.jsx"}},"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.js.jsx"},"2":{"name":"support.type.object.module.js.jsx"},"3":{"name":"punctuation.accessor.js.jsx"},"4":{"name":"punctuation.accessor.optional.js.jsx"},"5":{"name":"support.type.object.module.js.jsx"}},"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.js.jsx"}},"name":"switch-statement.expr.js.jsx","patterns":[{"include":"#comment"},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(switch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.switch.js.jsx"},"2":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"name":"switch-expression.expr.js.jsx","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"(?=})","name":"switch-block.expr.js.jsx","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default(?=:))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.switch.js.jsx"}},"end":"(?=:)","name":"case-clause.expr.js.jsx","patterns":[{"include":"#expression"}]},{"begin":"(:)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"case-clause.expr.js.jsx punctuation.definition.section.case-statement.js.jsx"},"2":{"name":"meta.block.js.jsx punctuation.definition.block.js.jsx"}},"contentName":"meta.block.js.jsx","end":"}","endCaptures":{"0":{"name":"meta.block.js.jsx punctuation.definition.block.js.jsx"}},"patterns":[{"include":"#statements"}]},{"captures":{"0":{"name":"case-clause.expr.js.jsx punctuation.definition.section.case-statement.js.jsx"}},"match":"(:)"},{"include":"#statements"}]}]},"template":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js.jsx"},"2":{"name":"string.template.js.jsx punctuation.definition.string.template.begin.js.jsx"}},"contentName":"string.template.js.jsx","end":"\`","endCaptures":{"0":{"name":"string.template.js.jsx punctuation.definition.string.template.end.js.jsx"}},"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.js.jsx"}]},{"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.js.jsx"}},"end":"(?=\`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js.jsx"}},"contentName":"meta.embedded.line.js.jsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js.jsx"}},"name":"meta.template.expression.js.jsx","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)?(\`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.js.jsx"},"2":{"name":"string.template.js.jsx punctuation.definition.string.template.begin.js.jsx"}},"contentName":"string.template.js.jsx","end":"\`","endCaptures":{"0":{"name":"string.template.js.jsx punctuation.definition.string.template.end.js.jsx"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js.jsx"}},"contentName":"meta.embedded.line.js.jsx","end":"}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js.jsx"}},"name":"meta.template.expression.js.jsx","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*\\\\D)(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.js.jsx"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.js.jsx"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))this\\\\b(?!\\\\$)","name":"variable.language.this.js.jsx"},"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.js.jsx"}},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.type.type.js.jsx"},"4":{"name":"entity.name.type.alias.js.jsx"}},"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.js.jsx","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"begin":"(=)\\\\s*(intrinsic)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.assignment.js.jsx"},"2":{"name":"keyword.control.intrinsic.js.jsx"}},"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.js.jsx"}},"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.js.jsx"}},"end":"(?<![\\\\&:|])(?!\\\\s*[\\\\&|]\\\\s+)((?=^|[]),;}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.js.jsx"}},"end":"(?<![\\\\&:|])((?=[]),;}]|//)|(?==[^>])|(?=^\\\\s*$)|((?<=[]$)>_}[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.js.jsx","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.js.jsx"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.js.jsx"}},"name":"meta.type.parameters.js.jsx","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-builtin-literals":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(this|true|false|undefined|null|object)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.builtin.js.jsx"},"type-conditional":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.js.jsx"}},"end":"(?<=:)","patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.js.jsx"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.js.jsx"}},"patterns":[{"include":"#type"}]},{"include":"#type"}]}]},"type-fn-type-parameters":{"patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b(?=\\\\s*<)","beginCaptures":{"1":{"name":"meta.type.constructor.js.jsx storage.modifier.js.jsx"},"2":{"name":"meta.type.constructor.js.jsx keyword.control.new.js.jsx"}},"end":"(?<=>)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.control.new.js.jsx"}},"end":"(?<=\\\\))","name":"meta.type.constructor.js.jsx","patterns":[{"include":"#function-parameters"}]},{"begin":"((?=\\\\(\\\\s*((\\\\))|(\\\\.\\\\.\\\\.)|([$_[:alnum:]]+\\\\s*(([,:=?])|(\\\\)\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.js.jsx","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.js.jsx"}},"end":"(?<!=>)(?<![\\\\&|])(?=[]),:;=>?{}]|//|$)","name":"meta.type.function.return.js.jsx","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.js.jsx"}},"end":"(?<!=>)(?<![\\\\&|])((?=[]),:;=>?{}]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.js.jsx","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.js.jsx"},"2":{"name":"entity.name.type.js.jsx"},"3":{"name":"keyword.operator.expression.extends.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(infer)\\\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s+(extends)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))?","name":"meta.type.infer.js.jsx"}]},"type-name":{"patterns":[{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))\\\\s*(<)","captures":{"1":{"name":"entity.name.type.module.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"},"4":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.begin.js.jsx"}},"contentName":"meta.type.parameters.js.jsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.end.js.jsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.js.jsx"},"2":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.begin.js.jsx"}},"contentName":"meta.type.parameters.js.jsx","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.js.jsx punctuation.definition.typeparameters.end.js.jsx"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.js.jsx"},"2":{"name":"punctuation.accessor.js.jsx"},"3":{"name":"punctuation.accessor.optional.js.jsx"}},"match":"([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*\\\\d)))"},{"match":"[$_[:alpha:]][$_[:alnum:]]*","name":"entity.name.type.js.jsx"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.block.js.jsx"}},"name":"meta.object.type.js.jsx","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.js.jsx"}},"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.js.jsx"}},"end":"(?<=})","patterns":[{"include":"#type-object"}]},{"begin":"[\\\\&|]","beginCaptures":{"0":{"name":"keyword.operator.type.js.jsx"}},"end":"(?=\\\\S)"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))keyof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.keyof.js.jsx"},{"match":"([:?])","name":"keyword.operator.ternary.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\()","name":"keyword.operator.expression.import.js.jsx"}]},"type-parameters":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.js.jsx"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.js.jsx"}},"name":"meta.type.parameters.js.jsx","patterns":[{"include":"#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.js.jsx"},{"include":"#type"},{"include":"#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.js.jsx"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.js.jsx"}},"name":"meta.type.paren.cover.js.jsx","patterns":[{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"entity.name.function.js.jsx variable.language.this.js.jsx"},"4":{"name":"entity.name.function.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"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*((([\\\\[{]\\\\s*)?)$|((\\\\{([^{}]|(\\\\{([^{}]|\\\\{[^{}]*})*}))*})\\\\s*((:\\\\s*\\\\{?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*)))|((\\\\[([^]\\\\[]|(\\\\[([^]\\\\[]|\\\\[[^]\\\\[]*])*]))*])\\\\s*((:\\\\s*\\\\[?)$|((\\\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\\\([^()]+\\\\)|\\\\{[^{}]+})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.js.jsx"},"2":{"name":"keyword.operator.rest.js.jsx"},"3":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"4":{"name":"variable.parameter.js.jsx"},"5":{"name":"keyword.operator.optional.js.jsx"}},"match":"(?:(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s*(\\\\??)(?=:)"},{"include":"#type-annotation"},{"match":",","name":"punctuation.separator.parameter.js.jsx"},{"include":"#type"}]},"type-predicate-operator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.asserts.js.jsx"},"2":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"3":{"name":"variable.parameter.js.jsx"},"4":{"name":"keyword.operator.expression.is.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(asserts)\\\\s+)?(?!asserts)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\\\s(is)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"captures":{"1":{"name":"keyword.operator.type.asserts.js.jsx"},"2":{"name":"variable.parameter.js.jsx variable.language.this.js.jsx"},"3":{"name":"variable.parameter.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(asserts)\\\\s+(?!is)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))asserts(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.type.asserts.js.jsx"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))is(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.is.js.jsx"}]},"type-primitive":{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.js.jsx"},"type-string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template-type"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.js.jsx"}},"end":"]","endCaptures":{"0":{"name":"meta.brace.square.js.jsx"}},"name":"meta.type.tuple.js.jsx","patterns":[{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.js.jsx"},{"captures":{"1":{"name":"entity.name.label.js.jsx"},"2":{"name":"keyword.operator.optional.js.jsx"},"3":{"name":"punctuation.separator.label.js.jsx"}},"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([$_[:alpha:]][$_[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeof-operator":{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))typeof(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.operator.expression.typeof.js.jsx"}},"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.js.jsx"},"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.js.jsx","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(var|let)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.type.js.jsx"}},"end":"(?=\\\\S)"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.js.jsx"}},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.type.js.jsx"}},"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.js.jsx","patterns":[{"begin":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(export)\\\\s+)?(?:\\\\b(declare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.type.js.jsx"}},"end":"(?=\\\\S)"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|//)","beginCaptures":{"1":{"name":"punctuation.separator.comma.js.jsx"}},"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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.type.js.jsx"}},"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.js.jsx","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.js.jsx"},"2":{"name":"storage.modifier.js.jsx"},"3":{"name":"storage.type.js.jsx"}},"end":"(?=\\\\S)"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*((?!\\\\S)|(?=//))","beginCaptures":{"1":{"name":"punctuation.separator.comma.js.jsx"}},"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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx variable.other.constant.js.jsx entity.name.function.js.jsx"}},"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.js.jsx","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.js.jsx variable.other.constant.js.jsx"}},"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.js.jsx","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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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*((([\\\\[{]\\\\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*((([\\\\[{]\\\\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*[$_[:alpha:]][$_[:alnum:]]*\\\\s+extends\\\\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.js.jsx entity.name.function.js.jsx"},"2":{"name":"keyword.operator.definiteassignment.js.jsx"}},"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.js.jsx","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"(\\\\p{upper}[$_\\\\d[:upper:]]*)(?![$_[:alnum:]])(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.js.jsx variable.other.constant.js.jsx"},"2":{"name":"keyword.operator.definiteassignment.js.jsx"}},"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.js.jsx","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([$_[:alpha:]][$_[:alnum:]]*)(!)?","beginCaptures":{"1":{"name":"meta.definition.variable.js.jsx variable.other.readwrite.js.jsx"},"2":{"name":"keyword.operator.definiteassignment.js.jsx"}},"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.js.jsx","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.js.jsx"}},"end":"(?=$|^|[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","patterns":[{"include":"#expression"}]},{"begin":"(?<![!=])(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.js.jsx"}},"end":"(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))|(?=^\\\\s*$)|(?<![-\\\\&*+/|])(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]}},"scopeName":"source.js.jsx"}`)),jAe=[PAe]});var Hte={};fn(Hte,{default:()=>DAe});var OAe,DAe,Gte=tr(()=>{OAe=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"}')),DAe=[OAe]});var Ute={};fn(Ute,{default:()=>BAe});var FAe,BAe,Vte=tr(()=>{FAe=Object.freeze(JSON.parse('{"displayName":"JSON with Comments","name":"jsonc","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json.comments"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json.comments"}},"name":"meta.structure.array.json.comments","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json.comments"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json.comments"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json.comments"}},"end":"\\\\*/","name":"comment.block.documentation.json.comments"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json.comments"}},"end":"\\\\*/","name":"comment.block.json.comments"},{"captures":{"1":{"name":"punctuation.definition.comment.json.comments"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json.comments"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json.comments"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json.comments"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json.comments"}},"name":"meta.structure.dictionary.json.comments","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json.comments"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json.comments"}},"name":"meta.structure.dictionary.value.json.comments","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.comments"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json.comments"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json.comments"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json.comments"}},"name":"string.json.comments support.type.property-name.json.comments","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json.comments"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json.comments"}},"name":"string.quoted.double.json.comments","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json.comments"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json.comments"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json.comments"}')),BAe=[FAe]});var Zte={};fn(Zte,{default:()=>qAe});var zAe,qAe,Wte=tr(()=>{zAe=Object.freeze(JSON.parse('{"displayName":"Markdown","name":"markdown","patterns":[{"include":"#frontMatter"},{"include":"#block"}],"repository":{"ampersand":{"match":"&(?!([0-9A-Za-z]+|#[0-9]+|#x\\\\h+);)","name":"meta.other.valid-ampersand.markdown"},"block":{"patterns":[{"include":"#separator"},{"include":"#heading"},{"include":"#blockquote"},{"include":"#lists"},{"include":"#fenced_code_block"},{"include":"#raw_block"},{"include":"#link-def"},{"include":"#html"},{"include":"#table"},{"include":"#paragraph"}]},"blockquote":{"begin":"(^|\\\\G) {0,3}(>) ?","captures":{"2":{"name":"punctuation.definition.quote.begin.markdown"}},"name":"markup.quote.markdown","patterns":[{"include":"#block"}],"while":"(^|\\\\G)\\\\s*(>) ?"},"bold":{"begin":"(?<open>(\\\\*\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*\\\\*|(?<!\\\\w)\\\\b__))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=__\\\\b|\\\\*\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.bold.markdown"}},"end":"(?<=\\\\S)(\\\\1)","name":"markup.bold.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"bracket":{"match":"<(?![!$/?A-Za-z])","name":"meta.other.valid-bracket.markdown"},"escape":{"match":"\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]","name":"constant.character.escape.markdown"},"fenced_code_block":{"patterns":[{"include":"#fenced_code_block_css"},{"include":"#fenced_code_block_basic"},{"include":"#fenced_code_block_ini"},{"include":"#fenced_code_block_java"},{"include":"#fenced_code_block_lua"},{"include":"#fenced_code_block_makefile"},{"include":"#fenced_code_block_perl"},{"include":"#fenced_code_block_r"},{"include":"#fenced_code_block_ruby"},{"include":"#fenced_code_block_php"},{"include":"#fenced_code_block_sql"},{"include":"#fenced_code_block_vs_net"},{"include":"#fenced_code_block_xml"},{"include":"#fenced_code_block_xsl"},{"include":"#fenced_code_block_yaml"},{"include":"#fenced_code_block_dosbatch"},{"include":"#fenced_code_block_clojure"},{"include":"#fenced_code_block_coffee"},{"include":"#fenced_code_block_c"},{"include":"#fenced_code_block_cpp"},{"include":"#fenced_code_block_diff"},{"include":"#fenced_code_block_dockerfile"},{"include":"#fenced_code_block_git_commit"},{"include":"#fenced_code_block_git_rebase"},{"include":"#fenced_code_block_go"},{"include":"#fenced_code_block_groovy"},{"include":"#fenced_code_block_pug"},{"include":"#fenced_code_block_ignore"},{"include":"#fenced_code_block_js"},{"include":"#fenced_code_block_js_regexp"},{"include":"#fenced_code_block_json"},{"include":"#fenced_code_block_jsonc"},{"include":"#fenced_code_block_jsonl"},{"include":"#fenced_code_block_less"},{"include":"#fenced_code_block_objc"},{"include":"#fenced_code_block_swift"},{"include":"#fenced_code_block_scss"},{"include":"#fenced_code_block_perl6"},{"include":"#fenced_code_block_powershell"},{"include":"#fenced_code_block_python"},{"include":"#fenced_code_block_julia"},{"include":"#fenced_code_block_regexp_python"},{"include":"#fenced_code_block_rust"},{"include":"#fenced_code_block_scala"},{"include":"#fenced_code_block_shell"},{"include":"#fenced_code_block_ts"},{"include":"#fenced_code_block_tsx"},{"include":"#fenced_code_block_csharp"},{"include":"#fenced_code_block_fsharp"},{"include":"#fenced_code_block_dart"},{"include":"#fenced_code_block_handlebars"},{"include":"#fenced_code_block_markdown"},{"include":"#fenced_code_block_log"},{"include":"#fenced_code_block_erlang"},{"include":"#fenced_code_block_elixir"},{"include":"#fenced_code_block_latex"},{"include":"#fenced_code_block_bibtex"},{"include":"#fenced_code_block_twig"},{"include":"#fenced_code_block_yang"},{"include":"#fenced_code_block_abap"},{"include":"#fenced_code_block_restructuredtext"},{"include":"#fenced_code_block_unknown"}]},"fenced_code_block_abap":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(abap)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.abap","patterns":[{"include":"source.abap"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_basic":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(html?|shtml|xhtml|inc|tmpl|tpl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.html","patterns":[{"include":"text.html.basic"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_bibtex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bibtex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.bibtex","patterns":[{"include":"text.bibtex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_c":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([ch])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.c","patterns":[{"include":"source.c"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_clojure":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(cl(?:js??|ojure))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.clojure","patterns":[{"include":"source.clojure"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_coffee":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(coffee|Cakefile|coffee.erb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.coffee","patterns":[{"include":"source.coffee"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_cpp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:pp|\\\\+\\\\+|xx))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.cpp source.cpp","patterns":[{"include":"source.cpp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_csharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(c(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.csharp","patterns":[{"include":"source.cs"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_css":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(css(?:|.erb))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.css","patterns":[{"include":"source.css"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dart":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(dart)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dart","patterns":[{"include":"source.dart"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_diff":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(patch|diff|rej)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.diff","patterns":[{"include":"source.diff"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dockerfile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([Dd]ockerfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dockerfile","patterns":[{"include":"source.dockerfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_dosbatch":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(bat(?:|ch))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.dosbatch","patterns":[{"include":"source.batchfile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_elixir":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(elixir)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.elixir","patterns":[{"include":"source.elixir"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_erlang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(erlang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.erlang","patterns":[{"include":"source.erlang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_fsharp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(f(?:s|sharp|#))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.fsharp","patterns":[{"include":"source.fsharp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_commit":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:COMMIT_EDIT|MERGE_)MSG)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_commit","patterns":[{"include":"text.git-commit"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_git_rebase":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(git-rebase-todo)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.git_rebase","patterns":[{"include":"text.git-rebase"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_go":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(go(?:|lang))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.go","patterns":[{"include":"source.go"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_groovy":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(g(?:roovy|vy))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.groovy","patterns":[{"include":"source.groovy"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_handlebars":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(h(?:andlebars|bs))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.handlebars","patterns":[{"include":"text.html.handlebars"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ignore":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:git|)ignore)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ignore","patterns":[{"include":"source.ignore"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ini":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ini|conf)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ini","patterns":[{"include":"source.ini"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_java":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(java|bsh)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.java","patterns":[{"include":"source.java"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsx??|javascript|es6|mjs|cjs|dataviewjs|\\\\{\\\\.js.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.javascript","patterns":[{"include":"source.js"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_js_regexp":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(regexp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.js_regexp","patterns":[{"include":"source.js.regexp"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_json":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(json5??|sublime-settings|sublime-menu|sublime-keymap|sublime-mousemap|sublime-theme|sublime-build|sublime-project|sublime-completions)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.json","patterns":[{"include":"source.json"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonc)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonc","patterns":[{"include":"source.json.comments"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_jsonl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jsonl(?:|ines))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.jsonl","patterns":[{"include":"source.json.lines"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_julia":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(julia|\\\\{\\\\.julia.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.julia","patterns":[{"include":"source.julia"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_latex":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:la|)tex)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.latex","patterns":[{"include":"text.tex.latex"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_less":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(less)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.less","patterns":[{"include":"source.css.less"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_log":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(log)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.log","patterns":[{"include":"text.log"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_lua":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(lua)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.lua","patterns":[{"include":"source.lua"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_makefile":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:((?:[Mm]|GNUm|OCamlM)akefile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.makefile","patterns":[{"include":"source.makefile"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_markdown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(m(?:arkdown|d))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.markdown","patterns":[{"include":"text.html.markdown"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_objc":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(objectivec|objective-c|mm|objc|obj-c|[hm])((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.objc","patterns":[{"include":"source.objc"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl|pl|pm|pod|t|PL|psgi|vcl)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl","patterns":[{"include":"source.perl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_perl6":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(perl6|p6|pl6|pm6|nqp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.perl6","patterns":[{"include":"source.perl.6"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_php":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(php3??|php4|php5|phpt|phtml|aw|ctp)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.php","patterns":[{"include":"text.html.basic"},{"include":"source.php"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_powershell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(p(?:owershell|s1|sm1|sd1|wsh))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.powershell","patterns":[{"include":"source.powershell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_pug":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(jade|pug)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.pug","patterns":[{"include":"text.pug"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(python|py3??|rpy|pyw|cpy|SConstruct|Sconstruct|sconstruct|SConscript|gypi??|\\\\{\\\\.python.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.python","patterns":[{"include":"source.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_r":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:([RSrs]|Rprofile|\\\\{\\\\.r.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.r","patterns":[{"include":"source.r"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_regexp_python":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(re)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.regexp_python","patterns":[{"include":"source.regexp.python"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_restructuredtext":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(r(?:estructuredtext|st))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.restructuredtext","patterns":[{"include":"source.rst"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ruby":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ruby|rbx??|rjs|Rakefile|rake|cgi|fcgi|gemspec|irbrc|Capfile|ru|prawn|Cheffile|Gemfile|Guardfile|Hobofile|Vagrantfile|Appraisals|Rantfile|Berksfile|Berksfile.lock|Thorfile|Puppetfile)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.ruby","patterns":[{"include":"source.ruby"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_rust":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(rust|rs|\\\\{\\\\.rust.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.rust","patterns":[{"include":"source.rust"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scala":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(s(?:cala|bt))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scala","patterns":[{"include":"source.scala"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_scss":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(scss)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.scss","patterns":[{"include":"source.css.scss"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_shell":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(shell|sh|bash|zsh|bashrc|bash_profile|bash_login|profile|bash_logout|.textmate_init|\\\\{\\\\.bash.+?})((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.shellscript","patterns":[{"include":"source.shell"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_sql":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(sql|ddl|dml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.sql","patterns":[{"include":"source.sql"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_swift":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(swift)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.swift","patterns":[{"include":"source.swift"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_ts":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(t(?:ypescript|s))((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescript","patterns":[{"include":"source.ts"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_tsx":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(tsx)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.typescriptreact","patterns":[{"include":"source.tsx"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_twig":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(twig)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.twig","patterns":[{"include":"source.twig"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_unknown":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?=([^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown"},"fenced_code_block_vs_net":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vb)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.vs_net","patterns":[{"include":"source.asp.vb.net"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xml|xsd|tld|jsp|pt|cpt|dtml|rss|opml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xml","patterns":[{"include":"text.xml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_xsl":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(xslt??)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.xsl","patterns":[{"include":"text.xml.xsl"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yaml":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(ya?ml)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yaml","patterns":[{"include":"source.yaml"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"fenced_code_block_yang":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(yang)((\\\\s+|[,:?{])[^`]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.yang","patterns":[{"include":"source.yang"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]},"frontMatter":{"applyEndPatternLast":1,"begin":"\\\\A(?=(-{3,}))","end":"^(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$","endCaptures":{"0":{"name":"punctuation.definition.end.frontmatter"}},"patterns":[{"begin":"\\\\A(-{3,})(.*)$","beginCaptures":{"1":{"name":"punctuation.definition.begin.frontmatter"},"2":{"name":"comment.frontmatter"}},"contentName":"meta.embedded.block.frontmatter","patterns":[{"include":"source.yaml"}],"while":"^(?!(?: {0,3}\\\\1-*[\\\\t ]*|[\\\\t ]*\\\\.{3})$)"}]},"heading":{"captures":{"1":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{6})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.6.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{5})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.5.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{4})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.4.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{3})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.3.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{2})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.2.markdown"},{"captures":{"1":{"name":"punctuation.definition.heading.markdown"},"2":{"name":"entity.name.section.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"}]},"3":{"name":"punctuation.definition.heading.markdown"}},"match":"(#{1})\\\\s+(.*?)(?:\\\\s+(#+))?\\\\s*$","name":"heading.1.markdown"}]}},"match":"(?:^|\\\\G) {0,3}(#{1,6}\\\\s+(.*?)(\\\\s+#{1,6})?\\\\s*)$","name":"markup.heading.markdown"},"heading-setext":{"patterns":[{"match":"^(={3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.1.markdown"},{"match":"^(-{3,})(?=[\\\\t ]*$\\\\n?)","name":"markup.heading.setext.2.markdown"}]},"html":{"patterns":[{"begin":"(^|\\\\G)\\\\s*(<!--)","captures":{"1":{"name":"punctuation.definition.comment.html"},"2":{"name":"punctuation.definition.comment.html"}},"end":"(-->)","name":"comment.block.html"},{"begin":"(?i)(^|\\\\G)\\\\s*(?=<(script|style|pre)(\\\\s|$|>)(?!.*?</(script|style|pre)>))","end":"(?i)(.*)((</)(script|style|pre)(>))","endCaptures":{"1":{"patterns":[{"include":"text.html.derivative"}]},"2":{"name":"meta.tag.structure.$4.end.html"},"3":{"name":"punctuation.definition.tag.begin.html"},"4":{"name":"entity.name.tag.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"patterns":[{"begin":"(\\\\s*|$)","patterns":[{"include":"text.html.derivative"}],"while":"(?i)^(?!.*</(script|style|pre)>)"}]},{"begin":"(?i)(^|\\\\G)\\\\s*(?=</?[A-Za-z]+[^\\\\&/;gt\\\\s]*(\\\\s|$|/?>))","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"},{"begin":"(^|\\\\G)\\\\s*(?=(<(?:[-0-9A-Za-z](/?>|\\\\s.*?>)|/[-0-9A-Za-z]>))\\\\s*$)","patterns":[{"include":"text.html.derivative"}],"while":"^(?!\\\\s*$)"}]},"image-inline":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.image.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.image.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*(\\\\))","name":"meta.image.inline.markdown"},"image-ref":{"captures":{"1":{"name":"punctuation.definition.link.description.begin.markdown"},"2":{"name":"string.other.link.description.markdown"},"4":{"name":"punctuation.definition.link.description.end.markdown"},"5":{"name":"punctuation.definition.constant.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.markdown"}},"match":"(!\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(.*?)(])","name":"meta.image.reference.markdown"},"inline":{"patterns":[{"include":"#ampersand"},{"include":"#bracket"},{"include":"#bold"},{"include":"#italic"},{"include":"#raw"},{"include":"#strikethrough"},{"include":"#escape"},{"include":"#image-inline"},{"include":"#image-ref"},{"include":"#link-email"},{"include":"#link-inet"},{"include":"#link-inline"},{"include":"#link-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref-shortcut"}]},"italic":{"begin":"(?<open>(\\\\*(?=\\\\w)|(?<!\\\\w)\\\\*|(?<!\\\\w)\\\\b_))(?=\\\\S)(?=(<[^>]*+>|(?<raw>`+)([^`]|(?!(?<!`)\\\\k<raw>(?!`))`)*+\\\\k<raw>|\\\\\\\\[-\\\\]!#(-+.>\\\\[\\\\\\\\_`{}]?+|\\\\[((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+](( ?\\\\[[^]]*+])|(\\\\([\\\\t ]*+<?(.*?)>?[\\\\t ]*+((?<title>[\\"\'])(.*?)\\\\k<title>)?\\\\))))|\\\\k<open>\\\\k<open>|(?!(?<=\\\\S)\\\\k<open>).)++(?<=\\\\S)(?=_\\\\b|\\\\*)\\\\k<open>)","captures":{"1":{"name":"punctuation.definition.italic.markdown"}},"end":"(?<=\\\\S)(\\\\1)((?!\\\\1)|(?=\\\\1\\\\1))","name":"markup.italic.markdown","patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"},{"include":"#strikethrough"}]},"link-def":{"captures":{"1":{"name":"punctuation.definition.constant.markdown"},"2":{"name":"constant.other.reference.link.markdown"},"3":{"name":"punctuation.definition.constant.markdown"},"4":{"name":"punctuation.separator.key-value.markdown"},"5":{"name":"punctuation.definition.link.markdown"},"6":{"name":"markup.underline.link.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"string.other.link.description.title.markdown"},"10":{"name":"punctuation.definition.string.begin.markdown"},"11":{"name":"punctuation.definition.string.end.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"}},"match":"\\\\s*(\\\\[)([^]]+?)(])(:)[\\\\t ]*(?:(<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|(\\\\S+?))[\\\\t ]*(?:((\\\\().+?(\\\\)))|((\\").+?(\\"))|((\').+?(\')))?\\\\s*$","name":"meta.link.reference.def.markdown"},"link-email":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"4":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:mailto:)?[!#-\'*+\\\\--9=?A-Z^-~]+@[-0-9A-Za-z]+(?:\\\\.[-0-9A-Za-z]+)*)(>)","name":"meta.link.email.lt-gt.markdown"},"link-inet":{"captures":{"1":{"name":"punctuation.definition.link.markdown"},"2":{"name":"markup.underline.link.markdown"},"3":{"name":"punctuation.definition.link.markdown"}},"match":"(<)((?:https?|ftp)://.*?)(>)","name":"meta.link.inet.markdown"},"link-inline":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.metadata.markdown"},"7":{"name":"punctuation.definition.link.markdown"},"8":{"name":"markup.underline.link.markdown"},"9":{"name":"punctuation.definition.link.markdown"},"10":{"name":"markup.underline.link.markdown"},"12":{"name":"string.other.link.description.title.markdown"},"13":{"name":"punctuation.definition.string.begin.markdown"},"14":{"name":"punctuation.definition.string.end.markdown"},"15":{"name":"string.other.link.description.title.markdown"},"16":{"name":"punctuation.definition.string.begin.markdown"},"17":{"name":"punctuation.definition.string.end.markdown"},"18":{"name":"string.other.link.description.title.markdown"},"19":{"name":"punctuation.definition.string.begin.markdown"},"20":{"name":"punctuation.definition.string.end.markdown"},"21":{"name":"punctuation.definition.metadata.markdown"}},"match":"(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\()[\\\\t ]*((<)((?:\\\\\\\\[<>]|[^\\\\n<>])*)(>)|((?<url>(?>[^()\\\\s]+)|\\\\(\\\\g<url>*\\\\))*))[\\\\t ]*(?:((\\\\()[^()]*(\\\\)))|((\\")[^\\"]*(\\"))|((\')[^\']*(\')))?\\\\s*(\\\\))","name":"meta.link.inline.markdown"},"link-ref":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown","patterns":[{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#image-inline"}]},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"constant.other.reference.link.markdown"},"7":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(])(\\\\[)([^]]*+)(])","name":"meta.link.reference.markdown"},"link-ref-literal":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"4":{"name":"punctuation.definition.link.title.end.markdown"},"5":{"name":"punctuation.definition.constant.begin.markdown"},"6":{"name":"punctuation.definition.constant.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?<square>[^]\\\\[\\\\\\\\]|\\\\\\\\.|\\\\[\\\\g<square>*+])*+)(]) ?(\\\\[)(])","name":"meta.link.reference.literal.markdown"},"link-ref-shortcut":{"captures":{"1":{"name":"punctuation.definition.link.title.begin.markdown"},"2":{"name":"string.other.link.title.markdown"},"3":{"name":"punctuation.definition.link.title.end.markdown"}},"match":"(?<![]\\\\\\\\])(\\\\[)((?:[^]\\\\[\\\\\\\\\\\\s]|\\\\\\\\[]\\\\[])+?)((?<!\\\\\\\\)])","name":"meta.link.reference.markdown"},"list_paragraph":{"begin":"(^|\\\\G)(?=\\\\S)(?![*->]\\\\s|[0-9]+\\\\.\\\\s)","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)(?!\\\\s*$|#| {0,3}([-*>_] {2,}){3,}[\\\\t ]*$\\\\n?| {0,3}[*->]| {0,3}[0-9]+\\\\.)"},"lists":{"patterns":[{"begin":"(^|\\\\G)( {0,3})([-*+])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.unnumbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"},{"begin":"(^|\\\\G)( {0,3})([0-9]+[).])([\\\\t ])","beginCaptures":{"3":{"name":"punctuation.definition.list.begin.markdown"}},"name":"markup.list.numbered.markdown","patterns":[{"include":"#block"},{"include":"#list_paragraph"}],"while":"((^|\\\\G)( {2,4}|\\\\t))|^([\\\\t ]*)$"}]},"paragraph":{"begin":"(^|\\\\G) {0,3}(?=[^\\\\t\\\\n ])","name":"meta.paragraph.markdown","patterns":[{"include":"#inline"},{"include":"text.html.derivative"},{"include":"#heading-setext"}],"while":"(^|\\\\G)((?=\\\\s*[-=]{3,}\\\\s*$)| {4,}(?=[^\\\\t\\\\n ]))"},"raw":{"captures":{"1":{"name":"punctuation.definition.raw.markdown"},"3":{"name":"punctuation.definition.raw.markdown"}},"match":"(`+)((?:[^`]|(?!(?<!`)\\\\1(?!`))`)*+)(\\\\1)","name":"markup.inline.raw.string.markdown"},"raw_block":{"begin":"(^|\\\\G)( {4}|\\\\t)","name":"markup.raw.block.markdown","while":"(^|\\\\G)( {4}|\\\\t)"},"separator":{"match":"(^|\\\\G) {0,3}([-*_])( {0,2}\\\\2){2,}[\\\\t ]*$\\\\n?","name":"meta.separator.markdown"},"strikethrough":{"captures":{"1":{"name":"punctuation.definition.strikethrough.markdown"},"2":{"patterns":[{"applyEndPatternLast":1,"begin":"(?=<[^>]*?>)","end":"(?<=>)","patterns":[{"include":"text.html.derivative"}]},{"include":"#escape"},{"include":"#ampersand"},{"include":"#bracket"},{"include":"#raw"},{"include":"#bold"},{"include":"#italic"},{"include":"#image-inline"},{"include":"#link-inline"},{"include":"#link-inet"},{"include":"#link-email"},{"include":"#image-ref"},{"include":"#link-ref-literal"},{"include":"#link-ref"},{"include":"#link-ref-shortcut"}]},"3":{"name":"punctuation.definition.strikethrough.markdown"}},"match":"(?<!\\\\\\\\)(~{2,})(?!(?<=\\\\w~~)_)((?:[^~]|(?!(?<![\\\\\\\\~])\\\\1(?!~))~)*+)(\\\\1)(?!(?<=_\\\\1)\\\\w)","name":"markup.strikethrough.markdown"},"table":{"begin":"(^|\\\\G)(\\\\|)(?=[^|].+\\\\|\\\\s*$)","beginCaptures":{"2":{"name":"punctuation.definition.table.markdown"}},"name":"markup.table.markdown","patterns":[{"match":"\\\\|","name":"punctuation.definition.table.markdown"},{"captures":{"1":{"name":"punctuation.separator.table.markdown"}},"match":"(?<=\\\\|)\\\\s*(:?-+:?)\\\\s*(?=\\\\|)"},{"captures":{"1":{"patterns":[{"include":"#inline"}]}},"match":"(?<=\\\\|)\\\\s*(?=\\\\S)((\\\\\\\\\\\\||[^|])+)(?<=\\\\S)\\\\s*(?=\\\\|)"}],"while":"(^|\\\\G)(?=\\\\|)"}},"scopeName":"text.html.markdown","embeddedLangs":[],"aliases":["md"],"embeddedLangsLazy":["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","jsonl","less","objective-c","swift","scss","raku","powershell","python","julia","regexp","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","log","erlang","elixir","latex","bibtex","abap","rst","html-derivative"]}')),qAe=[zAe]});var Kte={};fn(Kte,{default:()=>A7});var HAe,A7,Zv=tr(()=>{HAe=Object.freeze(JSON.parse(`{"displayName":"CSS","name":"css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#combinators"},{"include":"#selector"},{"include":"#at-rules"},{"include":"#rule-list"}],"repository":{"at-rules":{"patterns":[{"begin":"\\\\A\\\\uFEFF?(?i:(?=\\\\s*@charset\\\\b))","end":";|(?=$)","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.charset.css","patterns":[{"captures":{"1":{"name":"invalid.illegal.not-lowercase.charset.css"},"2":{"name":"invalid.illegal.leading-whitespace.charset.css"},"3":{"name":"invalid.illegal.no-whitespace.charset.css"},"4":{"name":"invalid.illegal.whitespace.charset.css"},"5":{"name":"invalid.illegal.not-double-quoted.charset.css"},"6":{"name":"invalid.illegal.unclosed-string.charset.css"},"7":{"name":"invalid.illegal.unexpected-characters.charset.css"}},"match":"\\\\G((?!@charset)@\\\\w+)|\\\\G(\\\\s+)|(@charset\\\\S[^;]*)|(?<=@charset)( {2,}|\\\\t+)|(?<=@charset )([^\\";]+)|(\\"[^\\"]+)$|(?<=\\")([^;]+)"},{"captures":{"1":{"name":"keyword.control.at-rule.charset.css"},"2":{"name":"punctuation.definition.keyword.css"}},"match":"((@)charset)(?=\\\\s)"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\\"|$","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"begin":"(?:\\\\G|^)(?=[^\\"]+$)","end":"$","name":"invalid.illegal.unclosed.string.css"}]}]},{"begin":"(?i)((@)import)(?:\\\\s+|$|(?=[\\"']|/\\\\*))","beginCaptures":{"1":{"name":"keyword.control.at-rule.import.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.import.css","patterns":[{"begin":"\\\\G\\\\s*(?=/\\\\*)","end":"(?<=\\\\*/)\\\\s*","patterns":[{"include":"#comment-block"}]},{"include":"#string"},{"include":"#url"},{"include":"#media-query-list"}]},{"begin":"(?i)((@)font-face)(?=\\\\s*|\\\\{|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.font-face.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":"(?!\\\\G)","name":"meta.at-rule.font-face.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#rule-list"}]},{"begin":"(?i)(@)page(?=[:{\\\\s]|/\\\\*|$)","captures":{"0":{"name":"keyword.control.at-rule.page.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*($|[:;{]))","name":"meta.at-rule.page.css","patterns":[{"include":"#rule-list"}]},{"begin":"(?i)(?=@media([(\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)media","beginCaptures":{"0":{"name":"keyword.control.at-rule.media.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.media.header.css","patterns":[{"include":"#media-query-list"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.media.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.media.end.bracket.curly.css"}},"name":"meta.at-rule.media.body.css","patterns":[{"include":"$self"}]}]},{"begin":"(?i)(?=@counter-style([\\"';{\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)counter-style","beginCaptures":{"0":{"name":"keyword.control.at-rule.counter-style.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*\\\\{)","name":"meta.at-rule.counter-style.header.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"captures":{"0":{"patterns":[{"include":"#escapes"}]}},"match":"[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.parameter.style-name.css"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.css"}},"name":"meta.at-rule.counter-style.body.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#rule-list-innards"}]}]},{"begin":"(?i)(?=@document([\\"';{\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)document","beginCaptures":{"0":{"name":"keyword.control.at-rule.document.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.document.header.css","patterns":[{"begin":"(?i)(?<![-\\\\w])(url-prefix|domain|regexp)(\\\\()","beginCaptures":{"1":{"name":"support.function.document-rule.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.document-rule.css","patterns":[{"include":"#string"},{"include":"#comment-block"},{"include":"#escapes"},{"match":"[^\\"')\\\\s]+","name":"variable.parameter.document-rule.css"}]},{"include":"#url"},{"include":"#commas"},{"include":"#comment-block"},{"include":"#escapes"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.document.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.document.end.bracket.curly.css"}},"name":"meta.at-rule.document.body.css","patterns":[{"include":"$self"}]}]},{"begin":"(?i)(?=@(?:-(?:webkit|moz|o|ms)-)?keyframes([\\"';{\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)(?:-(?:webkit|moz|o|ms)-)?keyframes","beginCaptures":{"0":{"name":"keyword.control.at-rule.keyframes.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*\\\\{)","name":"meta.at-rule.keyframes.header.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"captures":{"0":{"patterns":[{"include":"#escapes"}]}},"match":"[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.parameter.keyframe-list.css"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.keyframes.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.keyframes.end.bracket.curly.css"}},"name":"meta.at-rule.keyframes.body.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"captures":{"1":{"name":"entity.other.keyframe-offset.css"},"2":{"name":"entity.other.keyframe-offset.percentage.css"}},"match":"(?i)(?<![-\\\\w])(from|to)(?![-\\\\w])|([-+]?(?:\\\\d+(?:\\\\.\\\\d+)?|\\\\.\\\\d+)%)"},{"include":"#rule-list"}]}]},{"begin":"(?i)(?=@supports([(\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)|(?=;)","patterns":[{"begin":"(?i)\\\\G(@)supports","beginCaptures":{"0":{"name":"keyword.control.at-rule.supports.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.supports.header.css","patterns":[{"include":"#feature-query-operators"},{"include":"#feature-query"},{"include":"#comment-block"},{"include":"#escapes"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.supports.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.supports.end.bracket.curly.css"}},"name":"meta.at-rule.supports.body.css","patterns":[{"include":"$self"}]}]},{"begin":"(?i)((@)(-(ms|o)-)?viewport)(?=[\\"';{\\\\s]|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.viewport.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;@{])","name":"meta.at-rule.viewport.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"}]},{"begin":"(?i)((@)font-feature-values)(?=[\\"';{\\\\s]|/\\\\*|$)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.at-rule.font-feature-values.css"},"2":{"name":"punctuation.definition.keyword.css"}},"contentName":"variable.parameter.font-name.css","end":"(?=\\\\s*[;@{])","name":"meta.at-rule.font-features.css","patterns":[{"include":"#comment-block"},{"include":"#escapes"}]},{"include":"#font-features"},{"begin":"(?i)((@)namespace)(?=[\\"';\\\\s]|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.namespace.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":";|(?=[@{])","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.namespace.css","patterns":[{"include":"#url"},{"captures":{"1":{"patterns":[{"include":"#comment-block"}]},"2":{"name":"entity.name.function.namespace-prefix.css","patterns":[{"include":"#escapes"}]}},"match":"(?i)(?:\\\\G|^|(?<=\\\\s))(?=(?<=\\\\s|^)[-A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\s*/\\\\*(?:[^*]|\\\\*[^/])*\\\\*/)(.*?)([-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*)"},{"include":"#comment-block"},{"include":"#escapes"},{"include":"#string"}]},{"begin":"(?i)(?=@[-\\\\w]+[^;]+;s*$)","end":"(?<=;)(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)[-\\\\w]+","beginCaptures":{"0":{"name":"keyword.control.at-rule.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.css"}},"name":"meta.at-rule.header.css"}]},{"begin":"(?i)(?=@[-\\\\w]+([({\\\\s]|/\\\\*|$))","end":"(?<=})(?!\\\\G)","patterns":[{"begin":"(?i)\\\\G(@)[-\\\\w]+","beginCaptures":{"0":{"name":"keyword.control.at-rule.css"},"1":{"name":"punctuation.definition.keyword.css"}},"end":"(?=\\\\s*[;{])","name":"meta.at-rule.header.css"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.end.bracket.curly.css"}},"name":"meta.at-rule.body.css","patterns":[{"include":"$self"}]}]}]},"color-keywords":{"patterns":[{"match":"(?i)(?<![-\\\\w])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![-\\\\w])","name":"support.constant.color.w3c-standard-color-name.css"},{"match":"(?i)(?<![-\\\\w])(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|transparent|turquoise|violet|wheat|whitesmoke|yellowgreen)(?![-\\\\w])","name":"support.constant.color.w3c-extended-color-name.css"},{"match":"(?i)(?<![-\\\\w])currentColor(?![-\\\\w])","name":"support.constant.color.current.css"},{"match":"(?i)(?<![-\\\\w])(ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText)(?![-\\\\w])","name":"invalid.deprecated.color.system.css"}]},"combinators":{"patterns":[{"match":"/deep/|>>>","name":"invalid.deprecated.combinator.css"},{"match":">>|[+>~]","name":"keyword.operator.combinator.css"}]},"commas":{"match":",","name":"punctuation.separator.list.comma.css"},"comment-block":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.css"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.css"}},"name":"comment.block.css"},"escapes":{"patterns":[{"match":"\\\\\\\\\\\\h{1,6}","name":"constant.character.escape.codepoint.css"},{"begin":"\\\\\\\\$\\\\s*","end":"^(?<!\\\\G)","name":"constant.character.escape.newline.css"},{"match":"\\\\\\\\.","name":"constant.character.escape.css"}]},"feature-query":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.condition.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.condition.end.bracket.round.css"}},"name":"meta.feature-query.css","patterns":[{"include":"#feature-query-operators"},{"include":"#feature-query"}]},"feature-query-operators":{"patterns":[{"match":"(?i)(?<=[()\\\\s]|^|\\\\*/)(and|not|or)(?=[()\\\\s]|/\\\\*|$)","name":"keyword.operator.logical.feature.$1.css"},{"include":"#rule-list-innards"}]},"font-features":{"begin":"(?i)((@)(annotation|character-variant|ornaments|styleset|stylistic|swash))(?=[\\"';@{\\\\s]|/\\\\*|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.\${3:/downcase}.css"},"2":{"name":"punctuation.definition.keyword.css"}},"end":"(?<=})","name":"meta.at-rule.\${3:/downcase}.css","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.css"}},"name":"meta.property-list.font-feature.css","patterns":[{"captures":{"0":{"patterns":[{"include":"#escapes"}]}},"match":"[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.font-feature.css"},{"include":"#rule-list-innards"}]}]},"functional-pseudo-classes":{"patterns":[{"begin":"(?i)((:)dir)(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"match":"(?i)(?<![-\\\\w])(ltr|rtl)(?![-\\\\w])","name":"support.constant.text-direction.css"},{"include":"#property-values"}]},{"begin":"(?i)((:)lang)(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"match":"(?<=[(,\\\\s])[A-Za-z]+(-[0-9A-Za-z]*|\\\\\\\\(?:\\\\h{1,6}|.))*(?=[),\\\\s])","name":"support.constant.language-range.css"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"include":"#escapes"},{"match":"(?<=[\\"\\\\s])[*A-Za-z]+(-[*0-9A-Za-z]*)*(?=[\\"\\\\s])","name":"support.constant.language-range.css"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"include":"#escapes"},{"match":"(?<=['\\\\s])[*A-Za-z]+(-[*0-9A-Za-z]*)*(?=['\\\\s])","name":"support.constant.language-range.css"}]},{"include":"#commas"}]},{"begin":"(?i)((:)(?:not|has|matches|where|is))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#selector-innards"}]},{"begin":"(?i)((:)nth-(?:last-)?(?:child|of-type))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"match":"(?i)[-+]?(\\\\d+n?|n)(\\\\s*[-+]\\\\s*\\\\d+)?","name":"constant.numeric.css"},{"match":"(?i)even|odd","name":"support.constant.parity.css"}]}]},"functions":{"patterns":[{"begin":"(?i)(?<![-\\\\w])(calc)(\\\\()","beginCaptures":{"1":{"name":"support.function.calc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.calc.css","patterns":[{"match":"[*/]|(?<=\\\\s|^)[-+](?=\\\\s|$)","name":"keyword.operator.arithmetic.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(rgba?|hsla?|hwb|lab|oklab|lch|oklch|color)(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.color.css","patterns":[{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])((?:-(?:webkit-|moz-|o-))?(?:repeating-)?(?:linear|radial|conic)-gradient)(\\\\()","beginCaptures":{"1":{"name":"support.function.gradient.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.gradient.css","patterns":[{"match":"(?i)(?<![-\\\\w])(from|to|at|in|hue)(?![-\\\\w])","name":"keyword.operator.gradient.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(-webkit-gradient)(\\\\()","beginCaptures":{"1":{"name":"invalid.deprecated.gradient.function.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.gradient.invalid.deprecated.gradient.css","patterns":[{"begin":"(?i)(?<![-\\\\w])(from|to|color-stop)(\\\\()","beginCaptures":{"1":{"name":"invalid.deprecated.function.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#property-values"}]},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(annotation|attr|blur|brightness|character-variant|clamp|contrast|counters?|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate|color-mix|image-set|invert|local|max|min|minmax|opacity|ornaments|repeat|saturate|sepia|styleset|stylistic|swash|symbols|cos|sin|tan|acos|asin|atan2??|hypot|sqrt|pow|log|exp|abs|sign)(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.misc.css","patterns":[{"match":"(?i)(?<=[\\",\\\\s]|\\\\*/|^)\\\\d+x(?=[\\"'),\\\\s]|/\\\\*|$)","name":"constant.numeric.other.density.css"},{"include":"#property-values"},{"match":"[^\\"'),\\\\s]+","name":"variable.parameter.misc.css"}]},{"begin":"(?i)(?<![-\\\\w])(circle|ellipse|inset|polygon|rect)(\\\\()","beginCaptures":{"1":{"name":"support.function.shape.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.shape.css","patterns":[{"match":"(?i)(?<=\\\\s|^|\\\\*/)(at|round)(?=\\\\s|/\\\\*|$)","name":"keyword.operator.shape.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])(cubic-bezier|steps)(\\\\()","beginCaptures":{"1":{"name":"support.function.timing-function.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.timing-function.css","patterns":[{"match":"(?i)(?<![-\\\\w])(start|end)(?=\\\\s*\\\\)|$)","name":"support.constant.step-direction.css"},{"include":"#property-values"}]},{"begin":"(?i)(?<![-\\\\w])((?:translate|scale|rotate)(?:[XYZ]|3D)?|matrix(?:3D)?|skew[XY]?|perspective)(\\\\()","beginCaptures":{"1":{"name":"support.function.transform.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"patterns":[{"include":"#property-values"}]},{"include":"#url"},{"begin":"(?i)(?<![-\\\\w])(var)(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.variable.css","patterns":[{"match":"--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.argument.css"},{"include":"#property-values"}]}]},"media-feature-keywords":{"match":"(?i)(?<=^|[:\\\\s]|\\\\*/)(?:portrait|landscape|progressive|interlace|fullscreen|standalone|minimal-ui|browser|hover)(?=[)\\\\s]|$)","name":"support.constant.property-value.css"},"media-features":{"captures":{"1":{"name":"support.type.property-name.media.css"},"2":{"name":"support.type.property-name.media.css"},"3":{"name":"support.type.vendored.property-name.media.css"}},"match":"(?i)(?<=^|[(\\\\s]|\\\\*/)(?:((?:m(?:in-|ax-))?(?:height|width|aspect-ratio|color|color-index|monochrome|resolution)|grid|scan|orientation|display-mode|hover)|((?:m(?:in-|ax-))?device-(?:height|width|aspect-ratio))|((?:[-_](?:webkit|apple|khtml|epub|moz|ms|o|xv|ah|rim|atsc|hp|tc|wap|ro)|(?:mso|prince))-[-\\\\w]+(?=\\\\s*(?:/\\\\*(?:[^*]|\\\\*[^/])*\\\\*/)?\\\\s*[):])))(?=\\\\s|$|[):<=>]|/\\\\*)"},"media-query":{"begin":"\\\\G","end":"(?=\\\\s*[;{])","patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#media-types"},{"match":"(?i)(?<=\\\\s|^|,|\\\\*/)(only|not)(?=[{\\\\s]|/\\\\*|$)","name":"keyword.operator.logical.$1.media.css"},{"match":"(?i)(?<=\\\\s|^|\\\\*/|\\\\))and(?=\\\\s|/\\\\*|$)","name":"keyword.operator.logical.and.media.css"},{"match":",(?:(?:\\\\s*,)+|(?=\\\\s*[);{]))","name":"invalid.illegal.comma.css"},{"include":"#commas"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.css"}},"patterns":[{"include":"#media-features"},{"include":"#media-feature-keywords"},{"match":":","name":"punctuation.separator.key-value.css"},{"match":">=|<=|[<=>]","name":"keyword.operator.comparison.css"},{"captures":{"1":{"name":"constant.numeric.css"},"2":{"name":"keyword.operator.arithmetic.css"},"3":{"name":"constant.numeric.css"}},"match":"(\\\\d+)\\\\s*(/)\\\\s*(\\\\d+)","name":"meta.ratio.css"},{"include":"#numeric-values"},{"include":"#comment-block"}]}]},"media-query-list":{"begin":"(?=\\\\s*[^;{])","end":"(?=\\\\s*[;{])","patterns":[{"include":"#media-query"}]},"media-types":{"captures":{"1":{"name":"support.constant.media.css"},"2":{"name":"invalid.deprecated.constant.media.css"}},"match":"(?i)(?<=^|[,\\\\s]|\\\\*/)(?:(all|print|screen|speech)|(aural|braille|embossed|handheld|projection|tty|tv))(?=$|[,;{\\\\s]|/\\\\*)"},"numeric-values":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.constant.css"}},"match":"(#)(?:\\\\h{3,4}|\\\\h{6}|\\\\h{8})\\\\b","name":"constant.other.color.rgb-value.hex.css"},{"captures":{"1":{"name":"keyword.other.unit.percentage.css"},"2":{"name":"keyword.other.unit.\${2:/downcase}.css"}},"match":"(?i)(?<![-\\\\w])[-+]?(?:[0-9]+(?:\\\\.[0-9]+)?|\\\\.[0-9]+)(?:(?<=[0-9])E[-+]?[0-9]+)?(?:(%)|(deg|grad|rad|turn|Hz|kHz|ch|cm|em|ex|fr|in|mm|mozmm|pc|pt|px|q|rem|rch|rex|rlh|ic|ric|rcap|vh|vw|vb|vi|svh|svw|svb|svi|dvh|dvw|dvb|dvi|lvh|lvw|lvb|lvi|vmax|vmin|cqw|cqi|cqh|cqb|cqmin|cqmax|dpi|dpcm|dppx|s|ms)\\\\b)?","name":"constant.numeric.css"}]},"property-keywords":{"patterns":[{"match":"(?i)(?<![-\\\\w])(above|absolute|active|add|additive|after-edge|alias|all|all-petite-caps|all-scroll|all-small-caps|alpha|alphabetic|alternate|alternate-reverse|always|antialiased|auto|auto-fill|auto-fit|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel|bidi-override|blink|block|block-axis|block-start|block-end|bold|bolder|border|border-box|both|bottom|bottom-outside|break-all|break-word|bullets|butt|capitalize|caption|cell|center|central|char|circle|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color|color-burn|color-dodge|column|column-reverse|common-ligatures|compact|condensed|contain|content|content-box|contents|context-menu|contextual|copy|cover|crisp-edges|crispEdges|crosshair|cyclic|dark|darken|dashed|decimal|default|dense|diagonal-fractions|difference|digits|disabled|disc|discretionary-ligatures|distribute|distribute-all-lines|distribute-letter|distribute-space|dot|dotted|double|double-circle|downleft|downright|e-resize|each-line|ease|ease-in|ease-in-out|ease-out|economy|ellipse|ellipsis|embed|end|evenodd|ew-resize|exact|exclude|exclusion|expanded|extends|extra-condensed|extra-expanded|fallback|farthest-corner|farthest-side|fill|fill-available|fill-box|filled|fit-content|fixed|flat|flex|flex-end|flex-start|flip|flow-root|forwards|freeze|from-image|full-width|geometricPrecision|georgian|grab|grabbing|grayscale|grid|groove|hand|hanging|hard-light|help|hidden|hide|historical-forms|historical-ligatures|horizontal|horizontal-tb|hue|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|infinite|inherit|initial|inline|inline-axis|inline-block|inline-end|inline-flex|inline-grid|inline-list-item|inline-start|inline-table|inset|inside|inter-character|inter-ideograph|inter-word|intersect|invert|isolate|isolate-override|italic|jis04|jis78|jis83|jis90|justify|justify-all|kannada|keep-all|landscape|larger??|left|light|lighten|lighter|line|line-edge|line-through|linear|linearRGB|lining-nums|list-item|local|loose|lowercase|lr|lr-tb|ltr|luminance|luminosity|main-size|mandatory|manipulation|manual|margin-box|match-parent|match-source|mathematical|max-content|medium|menu|message-box|middle|min-content|miter|mixed|move|multiply|n-resize|narrower|ne-resize|nearest-neighbor|nesw-resize|newspaper|no-change|no-clip|no-close-quote|no-common-ligatures|no-contextual|no-discretionary-ligatures|no-drop|no-historical-ligatures|no-open-quote|no-repeat|none|nonzero|normal|not-allowed|nowrap|ns-resize|numbers|numeric|nw-resize|nwse-resize|oblique|oldstyle-nums|open|open-quote|optimizeLegibility|optimizeQuality|optimizeSpeed|optional|ordinal|outset|outside|over|overlay|overline|padding|padding-box|page|painted|pan-down|pan-left|pan-right|pan-up|pan-x|pan-y|paused|petite-caps|pixelated|plaintext|pointer|portrait|pre|pre-line|pre-wrap|preserve-3d|progress|progressive|proportional-nums|proportional-width|proximity|radial|recto|region|relative|remove|repeat|repeat-[xy]|reset-size|reverse|revert|ridge|right|rl|rl-tb|round|row|row-resize|row-reverse|row-severse|rtl|ruby|ruby-base|ruby-base-container|ruby-text|ruby-text-container|run-in|running|s-resize|saturation|scale-down|screen|scroll|scroll-position|se-resize|semi-condensed|semi-expanded|separate|sesame|show|sideways|sideways-left|sideways-lr|sideways-right|sideways-rl|simplified|slashed-zero|slice|small|small-caps|small-caption|smaller|smooth|soft-light|solid|space|space-around|space-between|space-evenly|spell-out|square|sRGB|stacked-fractions|start|static|status-bar|swap|step-end|step-start|sticky|stretch|strict|stroke|stroke-box|style|sub|subgrid|subpixel-antialiased|subtract|super|sw-resize|symbolic|table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|tabular-nums|tb|tb-rl|text|text-after-edge|text-before-edge|text-bottom|text-top|thick|thin|titling-caps|top|top-outside|touch|traditional|transparent|triangle|ultra-condensed|ultra-expanded|under|underline|unicase|unset|upleft|uppercase|upright|use-glyph-orientation|use-script|verso|vertical|vertical-ideographic|vertical-lr|vertical-rl|vertical-text|view-box|visible|visibleFill|visiblePainted|visibleStroke|w-resize|wait|wavy|weight|whitespace|wider|words|wrap|wrap-reverse|x|x-large|x-small|xx-large|xx-small|y|zero|zoom-in|zoom-out)(?![-\\\\w])","name":"support.constant.property-value.css"},{"match":"(?i)(?<![-\\\\w])(arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|cjk-ideographic|decimal|decimal-leading-zero|devanagari|disc|disclosure-closed|disclosure-open|ethiopic-halehame-am|ethiopic-halehame-ti-e[rt]|ethiopic-numeric|georgian|gujarati|gurmukhi|hangul|hangul-consonant|hebrew|hiragana|hiragana-iroha|japanese-formal|japanese-informal|kannada|katakana|katakana-iroha|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman|urdu)(?![-\\\\w])","name":"support.constant.property-value.list-style-type.css"},{"match":"(?<![-\\\\w])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[-A-Za-z]+","name":"support.constant.vendored.property-value.css"},{"match":"(?<![-\\\\w])(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system-ui|system|tahoma|times|trebuchet|ui-monospace|ui-rounded|ui-sans-serif|ui-serif|utopia|verdana|webdings|sans-serif|serif|monospace)(?![-\\\\w])","name":"support.constant.font-name.css"}]},"property-names":{"patterns":[{"match":"(?i)(?<![-\\\\w])(?:accent-color|additive-symbols|align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|aspect-ratio|backdrop-filter|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-position-[xy]|background-repeat|background-size|bleed|block-size|border|border-block-end|border-block-end-color|border-block-end-style|border-block-end-width|border-block-start|border-block-start-color|border-block-start-style|border-block-start-width|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-end-end-radius|border-end-start-radius|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-inline-end|border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-start|border-inline-start-color|border-inline-start-style|border-inline-start-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-start-end-radius|border-start-start-radius|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-decoration-break|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|caret-color|clear|clip|clip-path|clip-rule|color|color-adjust|color-interpolation-filters|color-scheme|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|contain|container|container-name|container-type|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|enable-background|fallback|fill|fill-opacity|fill-rule|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|flood-color|flood-opacity|font|font-display|font-family|font-feature-settings|font-kerning|font-language-override|font-optical-sizing|font-size|font-size-adjust|font-stretch|font-style|font-synthesis|font-variant|font-variant-alternates|font-variant-caps|font-variant-east-asian|font-variant-ligatures|font-variant-numeric|font-variant-position|font-variation-settings|font-weight|gap|glyph-orientation-horizontal|glyph-orientation-vertical|grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-gap|grid-column-start|grid-gap|grid-row|grid-row-end|grid-row-gap|grid-row-start|grid-template|grid-template-areas|grid-template-columns|grid-template-rows|hanging-punctuation|height|hyphens|image-orientation|image-rendering|image-resolution|ime-mode|initial-letter|initial-letter-align|inline-size|inset|inset-block|inset-block-end|inset-block-start|inset-inline|inset-inline-end|inset-inline-start|isolation|justify-content|justify-items|justify-self|kerning|left|letter-spacing|lighting-color|line-break|line-clamp|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-block|margin-block-end|margin-block-start|margin-bottom|margin-inline|margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|marker-end|marker-mid|marker-start|marks|mask|mask-border|mask-border-mode|mask-border-outset|mask-border-repeat|mask-border-slice|mask-border-source|mask-border-width|mask-clip|mask-composite|mask-image|mask-mode|mask-origin|mask-position|mask-repeat|mask-size|mask-type|max-block-size|max-height|max-inline-size|max-lines|max-width|max-zoom|min-block-size|min-height|min-inline-size|min-width|min-zoom|mix-blend-mode|negative|object-fit|object-position|offset|offset-anchor|offset-distance|offset-path|offset-position|offset-rotation|opacity|order|orientation|orphans|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-anchor|overflow-block|overflow-inline|overflow-wrap|overflow-[xy]|overscroll-behavior|overscroll-behavior-block|overscroll-behavior-inline|overscroll-behavior-[xy]|pad|padding|padding-block|padding-block-end|padding-block-start|padding-bottom|padding-inline|padding-inline-end|padding-inline-start|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|paint-order|perspective|perspective-origin|place-content|place-items|place-self|pointer-events|position|prefix|quotes|range|resize|right|rotate|row-gap|ruby-align|ruby-merge|ruby-position|scale|scroll-behavior|scroll-margin|scroll-margin-block|scroll-margin-block-end|scroll-margin-block-start|scroll-margin-bottom|scroll-margin-inline|scroll-margin-inline-end|scroll-margin-inline-start|scroll-margin-left|scroll-margin-right|scroll-margin-top|scroll-padding|scroll-padding-block|scroll-padding-block-end|scroll-padding-block-start|scroll-padding-bottom|scroll-padding-inline|scroll-padding-inline-end|scroll-padding-inline-start|scroll-padding-left|scroll-padding-right|scroll-padding-top|scroll-snap-align|scroll-snap-coordinate|scroll-snap-destination|scroll-snap-stop|scroll-snap-type|scrollbar-color|scrollbar-gutter|scrollbar-width|shape-image-threshold|shape-margin|shape-outside|shape-rendering|size|speak-as|src|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|suffix|symbols|system|tab-size|table-layout|text-align|text-align-last|text-anchor|text-combine-upright|text-decoration|text-decoration-color|text-decoration-line|text-decoration-skip|text-decoration-skip-ink|text-decoration-style|text-decoration-thickness|text-emphasis|text-emphasis-color|text-emphasis-position|text-emphasis-style|text-indent|text-justify|text-orientation|text-overflow|text-rendering|text-shadow|text-size-adjust|text-transform|text-underline-offset|text-underline-position|top|touch-action|transform|transform-box|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|translate|unicode-bidi|unicode-range|user-select|user-zoom|vertical-align|visibility|white-space|widows|width|will-change|word-break|word-spacing|word-wrap|writing-mode|z-index|zoom|alignment-baseline|baseline-shift|clip-rule|color-interpolation|color-interpolation-filters|color-profile|color-rendering|cx|cy|dominant-baseline|enable-background|fill|fill-opacity|fill-rule|flood-color|flood-opacity|glyph-orientation-horizontal|glyph-orientation-vertical|height|kerning|lighting-color|marker-end|marker-mid|marker-start|rx??|ry|shape-rendering|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|text-anchor|width|[xy]|adjust|after|align|align-last|alignment|alignment-adjust|appearance|attachment|azimuth|background-break|balance|baseline|before|bidi|binding|bookmark|bookmark-label|bookmark-level|bookmark-target|border-length|bottom-color|bottom-left-radius|bottom-right-radius|bottom-style|bottom-width|box|box-align|box-direction|box-flex|box-flex-group|box-lines|box-ordinal-group|box-orient|box-pack|break|character|collapse|column|column-break-after|column-break-before|count|counter|crop|cue|cue-after|cue-before|decoration|decoration-break|delay|display-model|display-role|down|drop|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust|drop-initial-before-align|drop-initial-size|drop-initial-value|duration|elevation|emphasis|family|fit|fit-position|flex-group|float-offset|gap|grid-columns|grid-rows|hanging-punctuation|header|hyphenate|hyphenate-after|hyphenate-before|hyphenate-character|hyphenate-lines|hyphenate-resource|icon|image|increment|indent|index|initial-after-adjust|initial-after-align|initial-before-adjust|initial-before-align|initial-size|initial-value|inline-box-align|iteration-count|justify|label|left-color|left-style|left-width|length|level|line|line-stacking|line-stacking-ruby|line-stacking-shift|line-stacking-strategy|lines|list|mark|mark-after|mark-before|marks|marquee|marquee-direction|marquee-play-count|marquee-speed|marquee-style|max|min|model|move-to|name|nav|nav-down|nav-index|nav-left|nav-right|nav-up|new|numeral|offset|ordinal-group|orient|origin|overflow-style|overhang|pack|page|page-policy|pause|pause-after|pause-before|phonemes|pitch|pitch-range|play-count|play-during|play-state|point|presentation|presentation-level|profile|property|punctuation|punctuation-trim|radius|rate|rendering-intent|repeat|replace|reset|resolution|resource|respond-to|rest|rest-after|rest-before|richness|right-color|right-style|right-width|role|rotation|rotation-point|rows|ruby|ruby-overhang|ruby-span|rule|rule-color|rule-style|rule-width|shadow|size|size-adjust|sizing|space|space-collapse|spacing|span|speak|speak-header|speak-numeral|speak-punctuation|speech|speech-rate|speed|stacking|stacking-ruby|stacking-shift|stacking-strategy|stress|stretch|string-set|style|style-image|style-position|style-type|target|target-name|target-new|target-position|text|text-height|text-justify|text-outline|text-replace|text-wrap|timing-function|top-color|top-left-radius|top-right-radius|top-style|top-width|trim|unicode|up|user-select|variant|voice|voice-balance|voice-duration|voice-family|voice-pitch|voice-pitch-range|voice-rate|voice-stress|voice-volume|volume|weight|white|white-space-collapse|word|wrap)(?![-\\\\w])","name":"support.type.property-name.css"},{"match":"(?<![-\\\\w])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[-A-Za-z]+","name":"support.type.vendored.property-name.css"}]},"property-values":{"patterns":[{"include":"#commas"},{"include":"#comment-block"},{"include":"#escapes"},{"include":"#functions"},{"include":"#property-keywords"},{"include":"#unicode-range"},{"include":"#numeric-values"},{"include":"#color-keywords"},{"include":"#string"},{"match":"!\\\\s*important(?![-\\\\w])","name":"keyword.other.important.css"}]},"pseudo-classes":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"name":"invalid.illegal.colon.css"}},"match":"(?i)(:)(:*)(?:active|any-link|checked|default|disabled|empty|enabled|first|(?:first|last|only)-(?:child|of-type)|focus|focus-visible|focus-within|fullscreen|host|hover|in-range|indeterminate|invalid|left|link|optional|out-of-range|read-only|read-write|required|right|root|scope|target|unresolved|valid|visited)(?![-\\\\w]|\\\\s*[;}])","name":"entity.other.attribute-name.pseudo-class.css"},"pseudo-elements":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"name":"punctuation.definition.entity.css"}},"match":"(?i)(?:(::?)(?:after|before|first-letter|first-line|(?:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[-a-z]+)|(::)(?:backdrop|content|grammar-error|marker|placeholder|selection|shadow|spelling-error))(?![-\\\\w]|\\\\s*[;}])","name":"entity.other.attribute-name.pseudo-element.css"},"rule-list":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.css"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.css"}},"name":"meta.property-list.css","patterns":[{"include":"#rule-list-innards"}]},"rule-list-innards":{"patterns":[{"include":"#comment-block"},{"include":"#escapes"},{"include":"#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[)}])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"#comment-block"},{"include":"#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]},"selector":{"begin":"(?=\\\\|?(?:[-#*.:A-\\\\[_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)))","end":"(?=\\\\s*[)/@{])","name":"meta.selector.css","patterns":[{"include":"#selector-innards"}]},"selector-innards":{"patterns":[{"include":"#comment-block"},{"include":"#commas"},{"include":"#escapes"},{"include":"#combinators"},{"captures":{"1":{"name":"entity.other.namespace-prefix.css"},"2":{"name":"punctuation.separator.css"}},"match":"(?:^|(?<=[(,;}\\\\s]))(?![-*\\\\w]+\\\\|(?![-#*.:A-\\\\[_a-z[^\\\\x00-\\\\x7F]]))([-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*|\\\\*)?(\\\\|)"},{"include":"#tag-names"},{"match":"\\\\*","name":"entity.name.tag.wildcard.css"},{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#escapes"}]}},"match":"(?<![-@\\\\w])([#.])((?:-?[0-9]|-(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)|(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*(?:[]!\\"%-(*;<?@^\`|}]|/(?!\\\\*))+)(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*)","name":"invalid.illegal.bad-identifier.css"},{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#escapes"}]}},"match":"(\\\\.)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.class.css"},{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#escapes"}]}},"match":"(#)(-?(?![0-9])(?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.id.css"},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.entity.begin.bracket.square.css"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.entity.end.bracket.square.css"}},"name":"meta.attribute-selector.css","patterns":[{"include":"#comment-block"},{"include":"#string"},{"captures":{"1":{"name":"storage.modifier.ignore-case.css"}},"match":"(?<=[\\"'\\\\s]|^|\\\\*/)\\\\s*([Ii])\\\\s*(?=[]\\\\s]|/\\\\*|$)"},{"captures":{"1":{"name":"string.unquoted.attribute-value.css","patterns":[{"include":"#escapes"}]}},"match":"(?<==)\\\\s*((?!/\\\\*)(?:[^]\\"'\\\\\\\\\\\\s]|\\\\\\\\.)+)"},{"include":"#escapes"},{"match":"[$*^|~]?=","name":"keyword.operator.pattern.css"},{"match":"\\\\|","name":"punctuation.separator.css"},{"captures":{"1":{"name":"entity.other.namespace-prefix.css","patterns":[{"include":"#escapes"}]}},"match":"(-?(?!\\\\d)(?:[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+|\\\\*)(?=\\\\|(?![=\\\\s]|$|])(?:-?(?!\\\\d)|[-\\\\\\\\\\\\w[^\\\\x00-\\\\x7F]]))"},{"captures":{"1":{"name":"entity.other.attribute-name.css","patterns":[{"include":"#escapes"}]}},"match":"(-?(?!\\\\d)(?>[-\\\\w[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))+)\\\\s*(?=[]$*=^|~]|/\\\\*)"}]},{"include":"#pseudo-classes"},{"include":"#pseudo-elements"},{"include":"#functional-pseudo-classes"},{"match":"(?<![-@\\\\w])(?=[a-z]\\\\w*-)(?:(?![A-Z])[-\\\\w])+(?![-(\\\\w])","name":"entity.name.tag.custom.css"}]},"string":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"\\"|(?<!\\\\\\\\)(?=$|\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.double.css","patterns":[{"begin":"(?:\\\\G|^)(?=(?:[^\\"\\\\\\\\]|\\\\\\\\.)+$)","end":"$","name":"invalid.illegal.unclosed.string.css","patterns":[{"include":"#escapes"}]},{"include":"#escapes"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.css"}},"end":"'|(?<!\\\\\\\\)(?=$|\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.css"}},"name":"string.quoted.single.css","patterns":[{"begin":"(?:\\\\G|^)(?=(?:[^'\\\\\\\\]|\\\\\\\\.)+$)","end":"$","name":"invalid.illegal.unclosed.string.css","patterns":[{"include":"#escapes"}]},{"include":"#escapes"}]}]},"tag-names":{"match":"(?i)(?<![-:\\\\w])(?:a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset|figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i|iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|math|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rb|rp|rtc??|ruby|s|samp|script|section|select|shadow|slot|small|source|spacer|span|strike|strong|style|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|ul??|var|video|wbr|xmp|altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|animateMotion|animateTransform|circle|clipPath|color-profile|cursor|defs|desc|discard|ellipse|feBlend|feColorMatrix|feComponentTransfer|feComposite|feConvolveMatrix|feDiffuseLighting|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|feMergeNode|feMorphology|feOffset|fePointLight|feSpecularLighting|feSpotLight|feTile|feTurbulence|filter|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|foreignObject|g|glyph|glyphRef|hatch|hatchpath|hkern|line|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|metadata|missing-glyph|mpath|path|pattern|polygon|polyline|radialGradient|rect|set|solidcolor|stop|svg|switch|symbol|text|textPath|tref|tspan|use|view|vkern|annotation|annotation-xml|maction|maligngroup|malignmark|math|menclose|merror|mfenced|mfrac|mglyph|mi|mlabeledtr|mlongdiv|mmultiscripts|mn|mo|mover|mpadded|mphantom|mroot|mrow|ms|mscarries|mscarry|msgroup|msline|mspace|msqrt|msrow|mstack|mstyle|msub|msubsup|msup|mtable|mtd|mtext|mtr|munder|munderover|semantics)(?=[#)+,.:>\\\\[{|~\\\\s]|/\\\\*|$)","name":"entity.name.tag.css"},"unicode-range":{"captures":{"0":{"name":"constant.other.unicode-range.css"},"1":{"name":"punctuation.separator.dash.unicode-range.css"}},"match":"(?<![-\\\\w])[Uu]\\\\+[?\\\\h]{1,6}(?:(-)\\\\h{1,6})?(?![-\\\\w])"},"url":{"begin":"(?i)(?<![-@\\\\w])(url)(\\\\()","beginCaptures":{"1":{"name":"support.function.url.css"},"2":{"name":"punctuation.section.function.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.function.end.bracket.round.css"}},"name":"meta.function.url.css","patterns":[{"match":"[^\\"')\\\\s]+","name":"variable.parameter.url.css"},{"include":"#string"},{"include":"#comment-block"},{"include":"#escapes"}]}},"scopeName":"source.css"}`)),A7=[HAe]});var Xte={};fn(Xte,{default:()=>UAe});var GAe,UAe,Yte=tr(()=>{Zv();GAe=Object.freeze(JSON.parse(`{"displayName":"SCSS","name":"scss","patterns":[{"include":"#variable_setting"},{"include":"#at_rule_forward"},{"include":"#at_rule_use"},{"include":"#at_rule_include"},{"include":"#at_rule_import"},{"include":"#general"},{"include":"#flow_control"},{"include":"#rules"},{"include":"#property_list"},{"include":"#at_rule_mixin"},{"include":"#at_rule_media"},{"include":"#at_rule_function"},{"include":"#at_rule_charset"},{"include":"#at_rule_option"},{"include":"#at_rule_namespace"},{"include":"#at_rule_fontface"},{"include":"#at_rule_page"},{"include":"#at_rule_keyframes"},{"include":"#at_rule_at_root"},{"include":"#at_rule_supports"},{"match":";","name":"punctuation.terminator.rule.css"}],"repository":{"at_rule_at_root":{"begin":"\\\\s*((@)(at-root))(\\\\s+|$)","beginCaptures":{"1":{"name":"keyword.control.at-rule.at-root.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.at-root.scss","patterns":[{"include":"#function_attributes"},{"include":"#functions"},{"include":"#selectors"}]},"at_rule_charset":{"begin":"\\\\s*((@)charset)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.charset.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;|$))","name":"meta.at-rule.charset.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"}]},"at_rule_content":{"begin":"\\\\s*((@)content)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.content.scss"}},"end":"\\\\s*((?=;))","name":"meta.content.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_each":{"begin":"\\\\s*((@)each)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.each.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=}))","name":"meta.at-rule.each.scss","patterns":[{"match":"\\\\b(in|,)\\\\b","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_else":{"begin":"\\\\s*((@)else(\\\\s*(if)?))\\\\s*","captures":{"1":{"name":"keyword.control.else.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.else.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_extend":{"begin":"\\\\s*((@)extend)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.extend.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.extend.scss","patterns":[{"include":"#variable"},{"include":"#selectors"},{"include":"#property_values"}]},"at_rule_fontface":{"patterns":[{"begin":"^\\\\s*((@)font-face)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.fontface.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.fontface.scss","patterns":[{"include":"#function_attributes"}]}]},"at_rule_for":{"begin":"\\\\s*((@)for)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.for.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.for.scss","patterns":[{"match":"(==|!=|<=|>=|[<>]|from|to|through)","name":"keyword.control.operator"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"at_rule_forward":{"begin":"\\\\s*((@)forward)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.forward.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.forward.scss","patterns":[{"match":"\\\\b(as|hide|show)\\\\b","name":"keyword.control.operator"},{"captures":{"1":{"name":"entity.other.attribute-name.module.scss"},"2":{"name":"punctuation.definition.wildcard.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\*)"},{"match":"\\\\b[-\\\\w]+\\\\b","name":"entity.name.function.scss"},{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#comment_line"},{"include":"#comment_block"}]},"at_rule_function":{"patterns":[{"begin":"\\\\s*((@)function)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.function.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"1":{"name":"keyword.control.at-rule.function.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"match":"\\\\s*((@)function)\\\\b\\\\s*","name":"meta.at-rule.function.scss"}]},"at_rule_if":{"begin":"\\\\s*((@)if)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.if.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.if.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"}]},"at_rule_import":{"begin":"\\\\s*((@)import)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.import.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;)|(?=}))","name":"meta.at-rule.import.scss","patterns":[{"include":"#variable"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#functions"},{"include":"#comment_line"}]},"at_rule_include":{"patterns":[{"begin":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"name":"meta.at-rule.include.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"entity.name.function.scss"}},"match":"(?<=@include)\\\\s+(?:([-\\\\w]+)\\\\s*(\\\\.))?([-\\\\w]+)"},{"captures":{"0":{"name":"meta.at-rule.include.scss"},"1":{"name":"keyword.control.at-rule.include.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)include)\\\\b"}]},"at_rule_keyframes":{"begin":"(?<=^|\\\\s)(@)(?:-(?:webkit|moz)-)?keyframes\\\\b","beginCaptures":{"0":{"name":"keyword.control.at-rule.keyframes.scss"},"1":{"name":"punctuation.definition.keyword.scss"}},"end":"(?<=})","name":"meta.at-rule.keyframes.scss","patterns":[{"captures":{"1":{"name":"entity.name.function.scss"}},"match":"(?<=@keyframes)\\\\s+((?:[A-Z_a-z][-\\\\w]|-[A-Z_a-z])[-\\\\w]*)"},{"begin":"(?<=@keyframes)\\\\s+(\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"(?<=@keyframes)\\\\s+(')","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.scss"}},"contentName":"entity.name.function.scss","end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.keyframes.begin.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.keyframes.end.scss"}},"patterns":[{"match":"\\\\b(?:(?:100|[1-9]\\\\d|\\\\d)%|from|to)(?=\\\\s*\\\\{)","name":"entity.other.attribute-name.scss"},{"include":"#flow_control"},{"include":"#interpolation"},{"include":"#property_list"},{"include":"#rules"}]}]},"at_rule_media":{"patterns":[{"begin":"^\\\\s*((@)media)\\\\b","beginCaptures":{"1":{"name":"keyword.control.at-rule.media.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.media.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"match":"\\\\b(only)\\\\b","name":"keyword.control.operator.css.scss"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.media-query.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.media-query.end.bracket.round.scss"}},"name":"meta.property-list.media-query.scss","patterns":[{"begin":"(?<![-a-z])(?=[-a-z])","end":"$|(?![-a-z])","name":"meta.property-name.media-query.scss","patterns":[{"include":"source.css#media-features"},{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*(?!(\\\\s*\\\\{))","beginCaptures":{"1":{"name":"punctuation.separator.key-value.scss"}},"contentName":"meta.property-value.media-query.scss","end":"\\\\s*(;|(?=[)}]))","endCaptures":{"1":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},{"include":"#variable"},{"include":"#conditional_operators"},{"include":"source.css#media-types"}]}]},"at_rule_mixin":{"patterns":[{"begin":"(?<=@mixin)\\\\s+([-\\\\w]+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.scss"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"name":"meta.at-rule.mixin.scss","patterns":[{"include":"#function_attributes"}]},{"captures":{"1":{"name":"entity.name.function.scss"}},"match":"(?<=@mixin)\\\\s+([-\\\\w]+)","name":"meta.at-rule.mixin.scss"},{"captures":{"1":{"name":"keyword.control.at-rule.mixin.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)mixin)\\\\b","name":"meta.at-rule.mixin.scss"}]},"at_rule_namespace":{"patterns":[{"begin":"(?<=@namespace)\\\\s+(?=url)","end":"(?=;|$)","name":"meta.at-rule.namespace.scss","patterns":[{"include":"#property_values"},{"include":"#string_single"},{"include":"#string_double"}]},{"begin":"(?<=@namespace)\\\\s+([-\\\\w]*)","captures":{"1":{"name":"entity.name.namespace-prefix.scss"}},"end":"(?=;|$)","name":"meta.at-rule.namespace.scss","patterns":[{"include":"#variables"},{"include":"#property_values"},{"include":"#string_single"},{"include":"#string_double"}]},{"captures":{"1":{"name":"keyword.control.at-rule.namespace.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"((@)namespace)\\\\b","name":"meta.at-rule.namespace.scss"}]},"at_rule_option":{"captures":{"1":{"name":"keyword.control.at-rule.charset.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"match":"^\\\\s*((@)option)\\\\b\\\\s*","name":"meta.at-rule.option.scss"},"at_rule_page":{"patterns":[{"begin":"^\\\\s*((@)page)(?=[:\\\\s])\\\\s*([-:\\\\w]*)","captures":{"1":{"name":"keyword.control.at-rule.page.scss"},"2":{"name":"punctuation.definition.keyword.scss"},"3":{"name":"entity.name.function.scss"}},"end":"\\\\s*(?=\\\\{)","name":"meta.at-rule.page.scss"}]},"at_rule_return":{"begin":"\\\\s*((@)(return))\\\\b","captures":{"1":{"name":"keyword.control.return.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*((?=;))","name":"meta.at-rule.return.scss","patterns":[{"include":"#variable"},{"include":"#property_values"}]},"at_rule_supports":{"begin":"(?<=^|\\\\s)(@)supports\\\\b","captures":{"0":{"name":"keyword.control.at-rule.supports.scss"},"1":{"name":"punctuation.definition.keyword.scss"}},"end":"(?=\\\\{)|$","name":"meta.at-rule.supports.scss","patterns":[{"include":"#logical_operators"},{"include":"#properties"},{"match":"\\\\(","name":"punctuation.definition.condition.begin.bracket.round.scss"},{"match":"\\\\)","name":"punctuation.definition.condition.end.bracket.round.scss"}]},"at_rule_use":{"begin":"\\\\s*((@)use)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.at-rule.use.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.use.scss","patterns":[{"match":"\\\\b(as|with)\\\\b","name":"keyword.control.operator"},{"match":"\\\\b[-\\\\w]+\\\\b","name":"variable.scss"},{"match":"\\\\*","name":"variable.language.expanded-namespace.scss"},{"include":"#string_single"},{"include":"#string_double"},{"include":"#comment_line"},{"include":"#comment_block"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.scss"}},"patterns":[{"include":"#function_attributes"}]}]},"at_rule_warn":{"begin":"\\\\s*((@)(warn|debug|error))\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.warn.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=;)","name":"meta.at-rule.warn.scss","patterns":[{"include":"#variable"},{"include":"#string_double"},{"include":"#string_single"}]},"at_rule_while":{"begin":"\\\\s*((@)while)\\\\b\\\\s*","captures":{"1":{"name":"keyword.control.while.scss"},"2":{"name":"punctuation.definition.keyword.scss"}},"end":"\\\\s*(?=})","name":"meta.at-rule.while.scss","patterns":[{"include":"#conditional_operators"},{"include":"#variable"},{"include":"#property_values"},{"include":"$self"}]},"comment_block":{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"name":"comment.block.scss"},"comment_docblock":{"begin":"///","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"(?=$)","name":"comment.block.documentation.scss","patterns":[{"include":"source.sassdoc"}]},"comment_line":{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.scss"}},"end":"\\\\n","name":"comment.line.scss"},"comparison_operators":{"match":"==|!=|<=|>=|[<>]","name":"keyword.operator.comparison.scss"},"conditional_operators":{"patterns":[{"include":"#comparison_operators"},{"include":"#logical_operators"}]},"constant_default":{"match":"!default","name":"keyword.other.default.scss"},"constant_functions":{"begin":"(?:([-\\\\w]+)(\\\\.))?([-\\\\w]+)(\\\\()","beginCaptures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"support.function.misc.scss"},"4":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"constant_important":{"match":"!important","name":"keyword.other.important.scss"},"constant_mathematical_symbols":{"match":"\\\\b([-*+/])\\\\b","name":"support.constant.mathematical-symbols.scss"},"constant_optional":{"match":"!optional","name":"keyword.other.optional.scss"},"constant_sass_functions":{"begin":"(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:|svg-)gradient|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate[XY])(\\\\()","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},"flow_control":{"patterns":[{"include":"#at_rule_if"},{"include":"#at_rule_else"},{"include":"#at_rule_warn"},{"include":"#at_rule_for"},{"include":"#at_rule_while"},{"include":"#at_rule_each"},{"include":"#at_rule_return"}]},"function_attributes":{"patterns":[{"match":":","name":"punctuation.separator.key-value.scss"},{"include":"#general"},{"include":"#property_values"},{"match":"[;=?@{}]","name":"invalid.illegal.scss"}]},"functions":{"patterns":[{"begin":"([-\\\\w]+)(\\\\()\\\\s*","beginCaptures":{"1":{"name":"support.function.misc.scss"},"2":{"name":"punctuation.section.function.scss"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.function.scss"}},"patterns":[{"include":"#parameters"}]},{"match":"([-\\\\w]+)","name":"support.function.misc.scss"}]},"general":{"patterns":[{"include":"#variable"},{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"}]},"interpolation":{"begin":"#\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.interpolation.begin.bracket.curly.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.bracket.curly.scss"}},"name":"variable.interpolation.scss","patterns":[{"include":"#variable"},{"include":"#property_values"}]},"logical_operators":{"match":"\\\\b(not|or|and)\\\\b","name":"keyword.operator.logical.scss"},"map":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.map.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.map.end.bracket.round.scss"}},"name":"meta.definition.variable.map.scss","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"captures":{"1":{"name":"support.type.map.key.scss"},"2":{"name":"punctuation.separator.key-value.scss"}},"match":"\\\\b([-\\\\w]+)\\\\s*(:)"},{"match":",","name":"punctuation.separator.delimiter.scss"},{"include":"#map"},{"include":"#variable"},{"include":"#property_values"}]},"operators":{"match":"[-*+/](?!\\\\s*[-*+/])","name":"keyword.operator.css"},"parameters":{"patterns":[{"include":"#variable"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.scss"}},"patterns":[{"include":"#function_attributes"}]},{"include":"#property_values"},{"include":"#comment_block"},{"match":"[^\\\\t \\"'),]+","name":"variable.parameter.url.scss"},{"match":",","name":"punctuation.separator.delimiter.scss"}]},"parent_selector_suffix":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(?<=&)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|[$}])+)(?=$|[#)+,.:>\\\\[{|~\\\\s]|/\\\\*)","name":"entity.other.attribute-name.parent-selector-suffix.css"},"properties":{"patterns":[{"begin":"(?<![-a-z])(?=[-a-z])","end":"$|(?![-a-z])","name":"meta.property-name.scss","patterns":[{"include":"source.css#property-names"},{"include":"#at_rule_include"}]},{"begin":"(:)\\\\s*(?!(\\\\s*\\\\{))","beginCaptures":{"1":{"name":"punctuation.separator.key-value.scss"}},"contentName":"meta.property-value.scss","end":"\\\\s*(;|(?=[)}]))","endCaptures":{"1":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},"property_list":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.property-list.begin.bracket.curly.scss"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.property-list.end.bracket.curly.scss"}},"name":"meta.property-list.scss","patterns":[{"include":"#flow_control"},{"include":"#rules"},{"include":"#properties"},{"include":"$self"}]},"property_values":{"patterns":[{"include":"#string_single"},{"include":"#string_double"},{"include":"#constant_functions"},{"include":"#constant_sass_functions"},{"include":"#constant_important"},{"include":"#constant_default"},{"include":"#constant_optional"},{"include":"source.css#numeric-values"},{"include":"source.css#property-keywords"},{"include":"source.css#color-keywords"},{"include":"source.css#property-names"},{"include":"#constant_mathematical_symbols"},{"include":"#operators"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.scss"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.scss"}},"patterns":[{"include":"#general"},{"include":"#property_values"}]}]},"rules":{"patterns":[{"include":"#general"},{"include":"#at_rule_extend"},{"include":"#at_rule_content"},{"include":"#at_rule_include"},{"include":"#at_rule_media"},{"include":"#selectors"}]},"selector_attribute":{"captures":{"1":{"name":"punctuation.definition.attribute-selector.begin.bracket.square.scss"},"2":{"name":"entity.other.attribute-name.attribute.scss","patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"3":{"name":"keyword.operator.scss"},"4":{"name":"string.unquoted.attribute-value.scss","patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"5":{"name":"string.quoted.double.attribute-value.scss"},"6":{"name":"punctuation.definition.string.begin.scss"},"7":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"8":{"name":"punctuation.definition.string.end.scss"},"9":{"name":"string.quoted.single.attribute-value.scss"},"10":{"name":"punctuation.definition.string.begin.scss"},"11":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]},"12":{"name":"punctuation.definition.string.end.scss"},"13":{"name":"punctuation.definition.attribute-selector.end.bracket.square.scss"}},"match":"(?i)(\\\\[)\\\\s*((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+?)(?:\\\\s*([$*^|~]?=)\\\\s*(?:((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)|((\\")(.*?)(\\"))|((')(.*?)('))))?\\\\s*(])","name":"meta.attribute-selector.scss"},"selector_class":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.scss"}]}},"match":"(\\\\.)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)(?=$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*|;)","name":"entity.other.attribute-name.class.css"},"selector_custom":{"match":"\\\\b([0-9A-Za-z]+(-[0-9A-Za-z]+)+)(?=\\\\.|\\\\s++[^:]|\\\\s*[,\\\\[{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-((?:|last-)(?:child|of-type))|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\\\([0-9A-Za-z]*\\\\))?)","name":"entity.name.tag.custom.scss"},"selector_id":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(#)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.?\\\\$|})+)(?=$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.id.css"},"selector_placeholder":{"captures":{"1":{"name":"punctuation.definition.entity.css"},"2":{"patterns":[{"include":"#interpolation"},{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"match":"[$}]","name":"invalid.illegal.identifier.scss"}]}},"match":"(%)((?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.)|#\\\\{|\\\\.\\\\$|[$}])+)(?=;|$|[#)+,:>\\\\[{|~\\\\s]|\\\\.[^$]|/\\\\*)","name":"entity.other.attribute-name.placeholder.css"},"selector_pseudo_class":{"patterns":[{"begin":"((:)\\\\bnth-(?:|last-)(?:child|of-type))(\\\\()","beginCaptures":{"1":{"name":"entity.other.attribute-name.pseudo-class.css"},"2":{"name":"punctuation.definition.entity.css"},"3":{"name":"punctuation.definition.pseudo-class.begin.bracket.round.css"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.pseudo-class.end.bracket.round.css"}},"patterns":[{"include":"#interpolation"},{"match":"\\\\d+","name":"constant.numeric.css"},{"match":"(?:(?<=\\\\d)n|\\\\b(n|even|odd))\\\\b","name":"constant.other.scss"},{"match":"\\\\w+","name":"invalid.illegal.scss"}]},{"include":"source.css#pseudo-classes"},{"include":"source.css#pseudo-elements"},{"include":"source.css#functional-pseudo-classes"}]},"selectors":{"patterns":[{"include":"source.css#tag-names"},{"include":"#selector_custom"},{"include":"#selector_class"},{"include":"#selector_id"},{"include":"#selector_pseudo_class"},{"include":"#tag_wildcard"},{"include":"#tag_parent_reference"},{"include":"source.css#pseudo-elements"},{"include":"#selector_attribute"},{"include":"#selector_placeholder"},{"include":"#parent_selector_suffix"}]},"string_double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.double.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"string_single":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.scss"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.scss"}},"name":"string.quoted.single.scss","patterns":[{"match":"\\\\\\\\(\\\\h{1,6}|.)","name":"constant.character.escape.scss"},{"include":"#interpolation"}]},"tag_parent_reference":{"match":"&","name":"entity.name.tag.reference.scss"},"tag_wildcard":{"match":"\\\\*","name":"entity.name.tag.wildcard.scss"},"variable":{"patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"variable_setting":{"begin":"(?=\\\\$[-\\\\w]+\\\\s*:)","contentName":"meta.definition.variable.scss","end":";","endCaptures":{"0":{"name":"punctuation.terminator.rule.scss"}},"patterns":[{"match":"\\\\$[-\\\\w]+(?=\\\\s*:)","name":"variable.scss"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.key-value.scss"}},"end":"(?=;)","patterns":[{"include":"#comment_docblock"},{"include":"#comment_block"},{"include":"#comment_line"},{"include":"#map"},{"include":"#property_values"},{"include":"#variable"},{"match":",","name":"punctuation.separator.delimiter.scss"}]}]},"variables":{"patterns":[{"captures":{"1":{"name":"variable.scss"},"2":{"name":"punctuation.access.module.scss"},"3":{"name":"variable.scss"}},"match":"\\\\b([-\\\\w]+)(\\\\.)(\\\\$[-\\\\w]+)\\\\b"},{"match":"(\\\\$|--)[-0-9A-Z_a-z]+\\\\b","name":"variable.scss"}]}},"scopeName":"source.css.scss","embeddedLangs":["css"]}`)),UAe=[...A7,GAe]});var Qte={};fn(Qte,{default:()=>ZAe});var VAe,ZAe,Jte=tr(()=>{oP();Zv();VAe=Object.freeze(JSON.parse(`{"displayName":"HTML","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html","patterns":[{"include":"#xml-processing"},{"include":"#comment"},{"include":"#doctype"},{"include":"#cdata"},{"include":"#tags-valid"},{"include":"#tags-invalid"},{"include":"#entities"}],"repository":{"attribute":{"patterns":[{"begin":"(s(hape|cope|t(ep|art)|ize(s)?|p(ellcheck|an)|elected|lot|andbox|rc(set|doc|lang)?)|h(ttp-equiv|i(dden|gh)|e(ight|aders)|ref(lang)?)|n(o(nce|validate|module)|ame)|c(h(ecked|arset)|ite|o(nt(ent(editable)?|rols)|ords|l(s(pan)?|or))|lass|rossorigin)|t(ype(mustmatch)?|itle|a(rget|bindex)|ranslate)|i(s(map)?|n(tegrity|putmode)|tem(scope|type|id|prop|ref)|d)|op(timum|en)|d(i(sabled|r(name)?)|ownload|e(coding|f(er|ault))|at(etime|a)|raggable)|usemap|p(ing|oster|la(ysinline|ceholder)|attern|reload)|enctype|value|kind|for(m(novalidate|target|enctype|action|method)?)?|w(idth|rap)|l(ist|o(op|w)|a(ng|bel))|a(s(ync)?|c(ce(sskey|pt(-charset)?)|tion)|uto(c(omplete|apitalize)|play|focus)|l(t|low(usermedia|paymentrequest|fullscreen))|bbr)|r(ows(pan)?|e(versed|quired|ferrerpolicy|l|adonly))|m(in(length)?|u(ted|ltiple)|e(thod|dia)|a(nifest|x(length)?)))(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"style(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.style.html","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"begin":"(?=[^/<=>\`\\\\s]|/(?!>))","end":"(?!\\\\G)","name":"meta.embedded.line.css","patterns":[{"captures":{"0":{"name":"source.css"}},"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.html"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.css","end":"(\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.css"}},"name":"string.quoted.double.html","patterns":[{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.css","end":"(')","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.css"}},"name":"string.quoted.single.html","patterns":[{"include":"#entities"}]}]},{"match":"=","name":"invalid.illegal.unexpected-equals-sign.html"}]}]},{"begin":"on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o((?:n|ff)line)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d((?:|meta)data)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur))(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.event-handler.$1.html","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"begin":"(?=[^/<=>\`\\\\s]|/(?!>))","end":"(?!\\\\G)","name":"meta.embedded.line.js","patterns":[{"captures":{"0":{"name":"source.js"},"1":{"patterns":[{"include":"source.js"}]}},"match":"(([^\\"'/<=>\`\\\\s]|/(?!>))+)","name":"string.unquoted.html"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.js","end":"(\\")","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.js"}},"name":"string.quoted.double.html","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n\\"/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=\\")|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=\\")|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"contentName":"source.js","end":"(')","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"},"1":{"name":"source.js"}},"name":"string.quoted.single.html","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n'/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=')|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=')|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]}]},{"match":"=","name":"invalid.illegal.unexpected-equals-sign.html"}]}]},{"begin":"(data-[-a-z]+)(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.data-x.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"(align|bgcolor|border)(?![-:\\\\w])","beginCaptures":{"0":{"name":"invalid.deprecated.entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"attribute-interior":{"patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.html"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"match":"([^\\"'/<=>\`\\\\s]|/(?!>))+","name":"string.unquoted.html"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.double.html","patterns":[{"include":"#entities"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}},"name":"string.quoted.single.html","patterns":[{"include":"#entities"}]},{"match":"=","name":"invalid.illegal.unexpected-equals-sign.html"}]}]},"cdata":{"begin":"<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.html"}},"contentName":"string.other.inline-data.html","end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.cdata.html"},"comment":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.html"}},"end":"-->","name":"comment.block.html","patterns":[{"match":"\\\\G-?>","name":"invalid.illegal.characters-not-allowed-here.html"},{"match":"<!-(?:-(?!>)|(?=-->))","name":"invalid.illegal.characters-not-allowed-here.html"},{"match":"--!>","name":"invalid.illegal.characters-not-allowed-here.html"}]},"core-minus-invalid":{"patterns":[{"include":"#xml-processing"},{"include":"#comment"},{"include":"#doctype"},{"include":"#cdata"},{"include":"#tags-valid"},{"include":"#entities"}]},"doctype":{"begin":"<!(?=(?i:DOCTYPE\\\\s))","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.doctype.html","patterns":[{"match":"\\\\G(?i:DOCTYPE)","name":"entity.name.tag.html"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.html"},{"match":"[^>\\\\s]+","name":"entity.other.attribute-name.html"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.html"},"912":{"name":"punctuation.definition.entity.html"}},"match":"(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","name":"constant.character.entity.named.$2.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[0-9]+(;)","name":"constant.character.entity.numeric.decimal.html"},{"captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}},"match":"(&)#[Xx]\\\\h+(;)","name":"constant.character.entity.numeric.hexadecimal.html"},{"match":"&(?=[0-9A-Za-z]+;)","name":"invalid.illegal.ambiguous-ampersand.html"}]},"math":{"patterns":[{"begin":"(?i)(<)(math)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.structure.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]}],"repository":{"attribute":{"patterns":[{"begin":"(s(hift|ymmetric|cript(sizemultiplier|level|minsize)|t(ackalign|retchy)|ide|u([bp]scriptshift)|e(parator(s)?|lection)|rc)|h(eight|ref)|n(otation|umalign)|c(haralign|olumn(spa(n|cing)|width|lines|align)|lose|rossout)|i(n(dent(shift(first|last)?|target|align(first|last)?)|fixlinebreakstyle)|d)|o(pen|verflow)|d(i(splay(style)?|r)|e(nomalign|cimalpoint|pth))|position|e(dge|qual(columns|rows))|voffset|f(orm|ence|rame(spacing)?)|width|l(space|ine(thickness|leading|break(style|multchar)?)|o(ngdivstyle|cation)|ength|quote|argeop)|a(c(cent(under)?|tiontype)|l(t(text|img(-(height|valign|width))?)|ign(mentscope)?))|r(space|ow(spa(n|cing)|lines|align)|quote)|groupalign|x(link:href|mlns)|m(in(size|labelspacing)|ovablelimits|a(th(size|color|variant|background)|xsize))|bevelled)(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"tags":{"patterns":[{"include":"#comment"},{"include":"#cdata"},{"captures":{"0":{"name":"meta.tag.structure.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(annotation|annotation-xml|semantics|menclose|merror|mfenced|mfrac|mpadded|mphantom|mroot|mrow|msqrt|mstyle|mmultiscripts|mover|mprescripts|msub|msubsup|msup|munder|munderover|none|mlabeledtr|mtable|mtd|mtr|mlongdiv|mscarries|mscarry|msgroup|msline|msrow|mstack|maction)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.structure.math.$2.html"},{"begin":"(?i)(<)(annotation|annotation-xml|semantics|menclose|merror|mfenced|mfrac|mpadded|mphantom|mroot|mrow|msqrt|mstyle|mmultiscripts|mover|mprescripts|msub|msubsup|msup|munder|munderover|none|mlabeledtr|mtable|mtd|mtr|mlongdiv|mscarries|mscarry|msgroup|msline|msrow|mstack|maction)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.structure.math.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.math.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.inline.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(m(?:[inos]|space|text|aligngroup|alignmark))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.inline.math.$2.html"},{"begin":"(?i)(<)(m(?:[inos]|space|text|aligngroup|alignmark))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.inline.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.inline.math.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.inline.math.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.object.math.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(mglyph)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.object.math.$2.html"},{"begin":"(?i)(<)(mglyph)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.object.math.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.object.math.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.object.math.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.invalid.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(([:\\\\w]+))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.invalid.html"},{"begin":"(?i)(<)((\\\\w[^>\\\\s]*))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.invalid.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)((\\\\2))\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.other.invalid.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"name":"punctuation.definition.tag.end.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.other.invalid.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.invalid.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"include":"#tags-invalid"}]}}},"svg":{"patterns":[{"begin":"(?i)(<)(svg)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.structure.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]}],"repository":{"attribute":{"patterns":[{"begin":"(s(hape-rendering|ystemLanguage|cale|t(yle|itchTiles|op-(color|opacity)|dDeviation|em([hv])|artOffset|r(i(ng|kethrough-(thickness|position))|oke(-(opacity|dash(offset|array)|width|line(cap|join)|miterlimit))?))|urfaceScale|p(e(cular(Constant|Exponent)|ed)|acing|readMethod)|eed|lope)|h(oriz-(origin-x|adv-x)|eight|anging|ref(lang)?)|y([12]|ChannelSelector)?|n(umOctaves|ame)|c(y|o(ntentS((?:cript|tyle)Type)|lor(-(interpolation(-filters)?|profile|rendering))?)|ursor|l(ip(-(path|rule)|PathUnits)?|ass)|a(p-height|lcMode)|x)|t(ype|o|ext(-(decoration|anchor|rendering)|Length)|a(rget([XY])?|b(index|leValues))|ransform)|i(n(tercept|2)?|d(eographic)?|mage-rendering)|z(oomAndPan)?|o(p(erator|acity)|ver(flow|line-(thickness|position))|ffset|r(i(ent(ation)?|gin)|der))|d(y|i(splay|visor|ffuseConstant|rection)|ominant-baseline|ur|e(scent|celerate)|x)?|u(1|n(i(code(-(range|bidi))?|ts-per-em)|derline-(thickness|position))|2)|p(ing|oint(s(At([XYZ]))?|er-events)|a(nose-1|t(h(Length)?|tern(ContentUnits|Transform|Units))|int-order)|r(imitiveUnits|eserveA(spectRatio|lpha)))|e(n(d|able-background)|dgeMode|levation|x(ternalResourcesRequired|ponent))|v(i(sibility|ew(Box|Target))|-(hanging|ideographic|alphabetic|mathematical)|e(ctor-effect|r(sion|t-(origin-([xy])|adv-y)))|alues)|k([123]|e(y(Splines|Times|Points)|rn(ing|el(Matrix|UnitLength)))|4)?|f(y|il(ter(Res|Units)?|l(-(opacity|rule))?)|o(nt-(s(t(yle|retch)|ize(-adjust)?)|variant|family|weight)|rmat)|lood-(color|opacity)|r(om)?|x)|w(idth(s)?|ord-spacing|riting-mode)|l(i(ghting-color|mitingConeAngle)|ocal|e(ngthAdjust|tter-spacing)|ang)|a(scent|cc(umulate|ent-height)|ttribute(Name|Type)|zimuth|dditive|utoReverse|l(ignment-baseline|phabetic|lowReorder)|rabic-form|mplitude)|r(y|otate|e(s(tart|ult)|ndering-intent|peat(Count|Dur)|quired(Extensions|Features)|f([XY]|errerPolicy)|l)|adius|x)?|g([12]|lyph(Ref|-(name|orientation-(horizontal|vertical)))|radient(Transform|Units))|x([12]|ChannelSelector|-height|link:(show|href|t(ype|itle)|a(ctuate|rcrole)|role)|ml:(space|lang|base))?|m(in|ode|e(thod|dia)|a(sk((?:Content|)Units)?|thematical|rker(Height|-(start|end|mid)|Units|Width)|x))|b(y|ias|egin|ase(Profile|line-shift|Frequency)|box))(?![-:\\\\w])","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.html","patterns":[{"include":"#attribute-interior"}]},{"begin":"([^\\\\x00- \\"'/<=>\\\\x7F-\\\\x{9F}\uFDD0-\uFDEF\uFFFE\uFFFF\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\\\\x{4FFFE}\\\\x{4FFFF}\\\\x{5FFFE}\\\\x{5FFFF}\\\\x{6FFFE}\\\\x{6FFFF}\\\\x{7FFFE}\\\\x{7FFFF}\\\\x{8FFFE}\\\\x{8FFFF}\\\\x{9FFFE}\\\\x{9FFFF}\\\\x{AFFFE}\\\\x{AFFFF}\\\\x{BFFFE}\\\\x{BFFFF}\\\\x{CFFFE}\\\\x{CFFFF}\\\\x{DFFFE}\\\\x{DFFFF}\\\\x{EFFFE}\\\\x{EFFFF}\\\\x{FFFFE}\\\\x{FFFFF}\\\\x{10FFFE}\\\\x{10FFFF}]+)","beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.unrecognized.$1.html","patterns":[{"include":"#attribute-interior"}]},{"match":"[^>\\\\s]+","name":"invalid.illegal.character-not-allowed-here.html"}]},"tags":{"patterns":[{"include":"#comment"},{"include":"#cdata"},{"captures":{"0":{"name":"meta.tag.metadata.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(color-profile|desc|metadata|script|style|title)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.metadata.svg.$2.html"},{"begin":"(?i)(<)(color-profile|desc|metadata|script|style|title)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.metadata.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.metadata.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.metadata.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.structure.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(animateMotion|clipPath|defs|feComponentTransfer|feDiffuseLighting|feMerge|feSpecularLighting|filter|g|hatch|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|pattern|radialGradient|switch|text|textPath)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.structure.svg.$2.html"},{"begin":"(?i)(<)(animateMotion|clipPath|defs|feComponentTransfer|feDiffuseLighting|feMerge|feSpecularLighting|filter|g|hatch|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|pattern|radialGradient|switch|text|textPath)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.structure.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.structure.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.structure.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.inline.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(a|animate|discard|feBlend|feColorMatrix|feComposite|feConvolveMatrix|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feMergeNode|feMorphology|feOffset|fePointLight|feSpotLight|feTile|feTurbulence|hatchPath|mpath|set|solidcolor|stop|tspan)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.inline.svg.$2.html"},{"begin":"(?i)(<)(a|animate|discard|feBlend|feColorMatrix|feComposite|feConvolveMatrix|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feMergeNode|feMorphology|feOffset|fePointLight|feSpotLight|feTile|feTurbulence|hatchPath|mpath|set|solidcolor|stop|tspan)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.inline.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.inline.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.inline.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.object.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(circle|ellipse|feImage|foreignObject|image|line|path|polygon|polyline|rect|symbol|use|view)(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.object.svg.$2.html"},{"begin":"(?i)(<)(a|circle|ellipse|feImage|foreignObject|image|line|path|polygon|polyline|rect|symbol|use|view)(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.object.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"patterns":[{"include":"#attribute"}]},"5":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)(\\\\2)\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.object.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.object.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.svg.$2.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)((altGlyph|altGlyphDef|altGlyphItem|animateColor|animateTransform|cursor|font|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|glyph|glyphRef|hkern|missing-glyph|tref|vkern))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.svg.$2.html"},{"begin":"(?i)(<)((altGlyph|altGlyphDef|altGlyphItem|animateColor|animateTransform|cursor|font|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|glyph|glyphRef|hkern|missing-glyph|tref|vkern))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.svg.$2.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)((\\\\2))\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.other.svg.$2.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"},"4":{"name":"punctuation.definition.tag.end.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.other.svg.$2.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"captures":{"0":{"name":"meta.tag.other.invalid.void.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"match":"(?i)(<)(([:\\\\w]+))(?=\\\\s|/?>)(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(/>)","name":"meta.element.other.invalid.html"},{"begin":"(?i)(<)((\\\\w[^>\\\\s]*))(?=\\\\s|/?>)(?:(([^\\"'>]|\\"[^\\"]*\\"|'[^']*')*)(>))?","beginCaptures":{"0":{"name":"meta.tag.other.invalid.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"patterns":[{"include":"#attribute"}]},"6":{"name":"punctuation.definition.tag.end.html"}},"end":"(?i)(</)((\\\\2))\\\\s*(>)|(/>)|(?=</\\\\w+)","endCaptures":{"0":{"name":"meta.tag.other.invalid.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"},"4":{"name":"punctuation.definition.tag.end.html"},"5":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.element.other.invalid.html","patterns":[{"begin":"(?<!>)\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.invalid.start.html","patterns":[{"include":"#attribute"}]},{"include":"#tags"}]},{"include":"#tags-invalid"}]}}},"tags-invalid":{"patterns":[{"begin":"(</?)((\\\\w[^>\\\\s]*))(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.unrecognized-tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.html","patterns":[{"include":"#attribute"}]}]},"tags-valid":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))","beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"end":"(?!\\\\G)([\\\\t ]*$\\\\n?)?","endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}},"patterns":[{"begin":"(?i)(<)(style)(?=\\\\s|/?>)","beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(?i)((<)/)(style)\\\\s*(>)","endCaptures":{"0":{"name":"meta.tag.metadata.style.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.css-ignored-vscode"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","captures":{"1":{"name":"punctuation.definition.tag.end.html"}},"end":"(>)","name":"meta.tag.metadata.style.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=</(?i:style))","name":"source.css","patterns":[{"include":"source.css"}]}]}]},{"begin":"(^[\\\\t ]+)?(?=<(?i:script)\\\\b(?!-))","beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"end":"(?!\\\\G)([\\\\t ]*$\\\\n?)?","endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}},"patterns":[{"begin":"(<)((?i:script))\\\\b","beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"(/)((?i:script))(>)","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.embedded.block.html","patterns":[{"begin":"\\\\G","end":"(?=/)","patterns":[{"begin":"(>)","beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.end.html"}},"end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.js-ignored-vscode"}},"patterns":[{"begin":"\\\\G","end":"(?=</(?i:script))","name":"source.js","patterns":[{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=<\/script)|\\\\n","name":"comment.line.double-slash.js"}]},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"\\\\*/|(?=<\/script)","name":"comment.block.js"},{"include":"source.js"}]}]},{"begin":"\\\\G","end":"(?i:(?=>|type(?=[=\\\\s])(?!\\\\s*=\\\\s*(''|\\"\\"|([\\"']?)(text/(javascript(1\\\\.[0-5])?|x-javascript|jscript|livescript|(x-)?ecmascript|babel)|application/((?:(x-)?jav|(x-)?ecm)ascript)|module)[\\"'>\\\\s]))))","name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i:(?=type\\\\s*=\\\\s*([\\"']?)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\"'>\\\\s]))","end":"((<))(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"text.html.basic"}},"patterns":[{"begin":"\\\\G","end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=</(?i:script))","name":"text.html.basic","patterns":[{"include":"text.html.basic"}]}]},{"begin":"(?=(?i:type))","end":"(<)(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"}},"patterns":[{"begin":"\\\\G","end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.script.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?!\\\\G)","end":"(?=</(?i:script))","name":"source.unknown"}]}]}]}]},{"begin":"(?i)(<)(base|link|meta)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(noscript|title)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(noscript|title)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(col|hr|input)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(address|article|aside|blockquote|body|button|caption|colgroup|datalist|dd|details|dialog|div|dl|dt|fieldset|figcaption|figure|footer|form|head|header|hgroup|html|h[1-6]|label|legend|li|main|map|menu|meter|nav|ol|optgroup|option|output|p|pre|progress|section|select|slot|summary|table|tbody|td|template|textarea|tfoot|th|thead|tr|ul)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(address|article|aside|blockquote|body|button|caption|colgroup|datalist|dd|details|dialog|div|dl|dt|fieldset|figcaption|figure|footer|form|head|header|hgroup|html|h[1-6]|label|legend|li|main|map|menu|meter|nav|ol|optgroup|option|output|p|pre|progress|section|select|slot|summary|table|tbody|td|template|textarea|tfoot|th|thead|tr|ul)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(area|br|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(a|abbr|b|bdi|bdo|cite|code|data|del|dfn|em|i|ins|kbd|mark|q|rp|rt|ruby|s|samp|small|span|strong|sub|sup|time|u|var)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(a|abbr|b|bdi|bdo|cite|code|data|del|dfn|em|i|ins|kbd|mark|q|rp|rt|ruby|s|samp|small|span|strong|sub|sup|time|u|var)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(embed|img|param|source|track)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)(audio|canvas|iframe|object|picture|video)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)(audio|canvas|iframe|object|picture|video)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((basefont|isindex))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.metadata.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((center|frameset|noembed|noframes))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((center|frameset|noembed|noframes))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.structure.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((acronym|big|blink|font|strike|tt|xmp))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((acronym|big|blink|font|strike|tt|xmp))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.inline.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((frame))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.void.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((applet))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((applet))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.deprecated.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.object.$2.end.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(<)((dir|keygen|listing|menuitem|plaintext|spacer))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.no-longer-supported.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(?i)(</)((dir|keygen|listing|menuitem|plaintext|spacer))(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"invalid.illegal.no-longer-supported.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.$2.end.html","patterns":[{"include":"#attribute"}]},{"include":"#math"},{"include":"#svg"},{"begin":"(<)([A-Za-z][.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*-[-.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.custom.start.html","patterns":[{"include":"#attribute"}]},{"begin":"(</)([A-Za-z][.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*-[-.0-9A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\\\\x{EFFFF}]*)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.custom.end.html","patterns":[{"include":"#attribute"}]}]},"xml-processing":{"begin":"(<\\\\?)(xml)","captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"end":"(\\\\?>)","name":"meta.tag.metadata.processing.xml.html","patterns":[{"include":"#attribute"}]}},"scopeName":"text.html.basic","embeddedLangs":["javascript","css"]}`)),ZAe=[...iP,...A7,VAe]});var ene={};fn(ene,{default:()=>KAe});var WAe,KAe,tne=tr(()=>{WAe=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"]}`)),KAe=[WAe]});var nne={};fn(nne,{default:()=>YAe});var XAe,YAe,rne=tr(()=>{XAe=Object.freeze(JSON.parse(`{"displayName":"Python","name":"python","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated-parameter":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"}]},"assignment-operator":{"match":"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)","name":"keyword.operator.assignment.python"},"backticks":{"begin":"\`","end":"\`|(?<!\\\\\\\\)(\\\\n)","name":"invalid.deprecated.backtick.python","patterns":[{"include":"#expression"}]},"builtin-callables":{"patterns":[{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#builtin-exceptions"},{"include":"#builtin-functions"},{"include":"#builtin-types"}]},"builtin-exceptions":{"match":"(?<!\\\\.)\\\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\\\b","name":"support.type.exception.python"},"builtin-functions":{"patterns":[{"match":"(?<!\\\\.)\\\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\\\b","name":"support.function.builtin.python"},{"match":"(?<!\\\\.)\\\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\\\b","name":"variable.legacy.builtin.python"}]},"builtin-possible-callables":{"patterns":[{"include":"#builtin-callables"},{"include":"#magic-names"}]},"builtin-types":{"match":"(?<!\\\\.)\\\\b(bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\\\b","name":"support.type.python"},"call-wrapper-inheritance":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#inheritance-name"},{"include":"#function-arguments"}]},"class-declaration":{"patterns":[{"begin":"\\\\s*(class)\\\\s+(?=[_[:alpha:]]\\\\w*\\\\s*([(:]))","beginCaptures":{"1":{"name":"storage.type.class.python"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.section.class.begin.python"}},"name":"meta.class.python","patterns":[{"include":"#class-name"},{"include":"#class-inheritance"}]}]},"class-inheritance":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.inheritance.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.inheritance.end.python"}},"name":"meta.class.inheritance.python","patterns":[{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.arguments.python"},{"match":",","name":"punctuation.separator.inheritance.python"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"match":"\\\\bmetaclass\\\\b","name":"support.type.metaclass.python"},{"include":"#illegal-names"},{"include":"#class-kwarg"},{"include":"#call-wrapper-inheritance"},{"include":"#expression-base"},{"include":"#member-access-class"},{"include":"#inheritance-identifier"}]},"class-kwarg":{"captures":{"1":{"name":"entity.other.inherited-class.python variable.parameter.class.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},"class-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.type.class.python"}]},"codetags":{"captures":{"1":{"name":"keyword.codetag.notation.python"}},"match":"\\\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\\\b"},"comments":{"patterns":[{"begin":"#\\\\s*(type:)\\\\s*+(?!$|#)","beginCaptures":{"0":{"name":"meta.typehint.comment.python"},"1":{"name":"comment.typehint.directive.notation.python"}},"contentName":"meta.typehint.comment.python","end":"$|(?=#)","name":"comment.line.number-sign.python","patterns":[{"match":"\\\\Gignore(?=\\\\s*(?:$|#))","name":"comment.typehint.ignore.notation.python"},{"match":"(?<!\\\\.)\\\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\\\b","name":"comment.typehint.type.notation.python"},{"match":"([]()*,.=\\\\[]|(->))","name":"comment.typehint.punctuation.notation.python"},{"match":"([_[:alpha:]]\\\\w*)","name":"comment.typehint.variable.notation.python"}]},{"include":"#comments-base"}]},"comments-base":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"$()","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-double-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\\"\\"\\"))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-single-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?='''))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"curly-braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.python"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.python"}},"patterns":[{"match":":","name":"punctuation.separator.dict.python"},{"include":"#expression"}]},"decorator":{"begin":"^\\\\s*((@))\\\\s*(?=[_[:alpha:]]\\\\w*)","beginCaptures":{"1":{"name":"entity.name.function.decorator.python"},"2":{"name":"punctuation.definition.decorator.python"}},"end":"(\\\\))(.*?)(?=\\\\s*(?:#|$))|(?=[\\\\n#])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"invalid.illegal.decorator.python"}},"name":"meta.function.decorator.python","patterns":[{"include":"#decorator-name"},{"include":"#function-arguments"}]},"decorator-name":{"patterns":[{"include":"#builtin-callables"},{"include":"#illegal-object-name"},{"captures":{"2":{"name":"punctuation.separator.period.python"}},"match":"([_[:alpha:]]\\\\w*)|(\\\\.)","name":"entity.name.function.decorator.python"},{"include":"#line-continuation"},{"captures":{"1":{"name":"invalid.illegal.decorator.python"}},"match":"\\\\s*([^#(.\\\\\\\\_[:alpha:]\\\\s].*?)(?=#|$)","name":"invalid.illegal.decorator.python"}]},"docstring":{"patterns":[{"begin":"('''|\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.multi.python","patterns":[{"include":"#docstring-prompt"},{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.raw.multi.python","patterns":[{"include":"#string-consume-escape"},{"include":"#docstring-prompt"},{"include":"#codetags"}]},{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.single.python","patterns":[{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])([\\"'])","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.raw.single.python","patterns":[{"include":"#string-consume-escape"},{"include":"#codetags"}]}]},"docstring-guts-unicode":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"docstring-prompt":{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"(?:^|\\\\G)\\\\s*((?:>>>|\\\\.\\\\.\\\\.)\\\\s)(?=\\\\s*\\\\S)"},"docstring-statement":{"begin":"^(?=\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","end":"((?<=\\\\1)|^)(?!\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","patterns":[{"include":"#docstring"}]},"double-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-one-regexp-character-set"},{"include":"#double-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-one-regexp-lookahead"},{"include":"#double-one-regexp-lookahead-negative"},{"include":"#double-one-regexp-lookbehind"},{"include":"#double-one-regexp-lookbehind-negative"},{"include":"#double-one-regexp-conditional"},{"include":"#double-one-regexp-parentheses-non-capturing"},{"include":"#double-one-regexp-parentheses"}]},"double-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-three-regexp-character-set"},{"include":"#double-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-three-regexp-lookahead"},{"include":"#double-three-regexp-lookahead-negative"},{"include":"#double-three-regexp-lookbehind"},{"include":"#double-three-regexp-lookbehind-negative"},{"include":"#double-three-regexp-conditional"},{"include":"#double-three-regexp-parentheses-non-capturing"},{"include":"#double-three-regexp-parentheses"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"ellipsis":{"match":"\\\\.\\\\.\\\\.","name":"constant.other.ellipsis.python"},"escape-sequence":{"match":"\\\\\\\\(x\\\\h{2}|[0-7]{1,3}|[\\"'\\\\\\\\abfnrtv])","name":"constant.character.escape.python"},"escape-sequence-unicode":{"patterns":[{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8}|N\\\\{[\\\\w\\\\s]+?})","name":"constant.character.escape.python"}]},"expression":{"patterns":[{"include":"#expression-base"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"expression-bare":{"patterns":[{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#literal"},{"include":"#regexp"},{"include":"#string"},{"include":"#lambda"},{"include":"#generator"},{"include":"#illegal-operator"},{"include":"#operator"},{"include":"#curly-braces"},{"include":"#item-access"},{"include":"#list"},{"include":"#odd-function-call"},{"include":"#round-braces"},{"include":"#function-call"},{"include":"#builtin-functions"},{"include":"#builtin-types"},{"include":"#builtin-exceptions"},{"include":"#magic-names"},{"include":"#special-names"},{"include":"#illegal-names"},{"include":"#special-variables"},{"include":"#ellipsis"},{"include":"#punctuation"},{"include":"#line-continuation"}]},"expression-base":{"patterns":[{"include":"#comments"},{"include":"#expression-bare"},{"include":"#line-continuation"}]},"f-expression":{"patterns":[{"include":"#expression-bare"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"fregexp-base-expression":{"patterns":[{"include":"#fregexp-quantifier"},{"include":"#fstring-formatting-braces"},{"match":"\\\\{.*?}"},{"include":"#regexp-base-common"}]},"fregexp-quantifier":{"match":"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}}","name":"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{"begin":"\\\\b([Ff])([BUbu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{"begin":"\\\\b([Ff])([BUbu])?(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-formatting":{"patterns":[{"include":"#fstring-formatting-braces"},{"include":"#fstring-formatting-singe-brace"}]},"fstring-formatting-braces":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"2":{"name":"invalid.illegal.brace.python"},"3":{"name":"constant.character.format.placeholder.other.python"}},"match":"(\\\\{)(\\\\s*?)(})"},{"match":"(\\\\{\\\\{|}})","name":"constant.character.escape.python"}]},"fstring-formatting-singe-brace":{"match":"(}(?!}))","name":"invalid.illegal.brace.python"},"fstring-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#fstring-formatting"}]},"fstring-illegal-multi-brace":{"patterns":[{"include":"#impossible"}]},"fstring-illegal-single-brace":{"begin":"(\\\\{)(?=[^\\\\n}]*$\\\\n?)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-multi-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-multi"},{"include":"#f-expression"}]},"fstring-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.multi.python"},"fstring-normf-quoted-multi-line":{"begin":"\\\\b([BUbu])([Ff])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-normf-quoted-single-line":{"begin":"\\\\b([BUbu])([Ff])(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#fstring-formatting"}]},"fstring-raw-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.raw.multi.python"},"fstring-raw-quoted-multi-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.multi.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-raw-multi-core"}]},"fstring-raw-quoted-single-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.single.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.single.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-raw-single-core"}]},"fstring-raw-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.raw.single.python"},"fstring-single-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.single.python"},"fstring-terminator-multi":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})","patterns":[{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"fstring-terminator-single":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})|(?=\\\\n)","patterns":[{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"function-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.function-call.arguments.python","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.python"},{"captures":{"1":{"name":"keyword.operator.unpacking.arguments.python"}},"match":"(?:(?<=[(,])|^)\\\\s*(\\\\*{1,2})"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function-call.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"include":"#expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"punctuation.definition.arguments.begin.python"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"}]},"function-call":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#special-variables"},{"include":"#function-name"},{"include":"#function-arguments"}]},"function-declaration":{"begin":"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def)\\\\s+(?=[_[:alpha:]]\\\\p{word}*\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.async.python"},"2":{"name":"storage.type.function.python"}},"end":"(:|(?=[\\\\n\\"#']))","endCaptures":{"1":{"name":"punctuation.section.function.begin.python"}},"name":"meta.function.python","patterns":[{"include":"#function-def-name"},{"include":"#parameters"},{"include":"#line-continuation"},{"include":"#return-annotation"}]},"function-def-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.function.python"}]},"function-name":{"patterns":[{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.function-call.generic.python"}]},"generator":{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.python"}},"end":"\\\\bin\\\\b","endCaptures":{"0":{"name":"keyword.control.flow.python"}},"patterns":[{"include":"#expression"}]},"illegal-anno":{"match":"->","name":"invalid.illegal.annotation.python"},"illegal-names":{"captures":{"1":{"name":"keyword.control.flow.python"},"2":{"name":"keyword.control.import.python"}},"match":"\\\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\\\b"},"illegal-object-name":{"match":"\\\\b(True|False|None)\\\\b","name":"keyword.illegal.name.python"},"illegal-operator":{"patterns":[{"match":"&&|\\\\|\\\\||--|\\\\+\\\\+","name":"invalid.illegal.operator.python"},{"match":"[$?]","name":"invalid.illegal.operator.python"},{"match":"!\\\\b","name":"invalid.illegal.operator.python"}]},"import":{"patterns":[{"begin":"\\\\b(?<!\\\\.)(from)\\\\b(?=.+import)","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$|(?=import)","patterns":[{"match":"\\\\.+","name":"punctuation.separator.period.python"},{"include":"#expression"}]},{"begin":"\\\\b(?<!\\\\.)(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$","patterns":[{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"include":"#expression"}]}]},"impossible":{"match":"$.^"},"inheritance-identifier":{"captures":{"1":{"name":"entity.other.inherited-class.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"},"inheritance-name":{"patterns":[{"include":"#lambda-incomplete"},{"include":"#builtin-possible-callables"},{"include":"#inheritance-identifier"}]},"item-access":{"patterns":[{"begin":"\\\\b(?=[_[:alpha:]]\\\\w*\\\\s*\\\\[)","end":"(])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.item-access.python","patterns":[{"include":"#item-name"},{"include":"#item-index"},{"include":"#expression"}]}]},"item-index":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.item-access.arguments.python","end":"(?=])","patterns":[{"match":":","name":"punctuation.separator.slice.python"},{"include":"#expression"}]},"item-name":{"patterns":[{"include":"#special-variables"},{"include":"#builtin-functions"},{"include":"#special-names"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.indexed-name.python"}]},"lambda":{"patterns":[{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"((?<=\\\\.)lambda|lambda(?=\\\\s*[.=]))"},{"captures":{"1":{"name":"storage.type.function.lambda.python"}},"match":"\\\\b(lambda)\\\\s*?(?=[\\\\n,]|$)"},{"begin":"\\\\b(lambda)\\\\b","beginCaptures":{"1":{"name":"storage.type.function.lambda.python"}},"contentName":"meta.function.lambda.parameters.python","end":"(:)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.section.function.lambda.begin.python"}},"name":"meta.lambda-function.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-nested-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=:|$))"},{"include":"#comments"},{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#lambda-parameter-with-default"},{"include":"#line-continuation"},{"include":"#illegal-operator"}]}]},"lambda-incomplete":{"match":"\\\\blambda(?=\\\\s*[),])","name":"storage.type.function.lambda.python"},"lambda-nested-incomplete":{"match":"\\\\blambda(?=\\\\s*[),:])","name":"storage.type.function.lambda.python"},"lambda-parameter-with-default":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"keyword.operator.python"}},"end":"(,)|(?=:|$)","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"line-continuation":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.continuation.line.python"},"2":{"name":"invalid.illegal.line.continuation.python"}},"match":"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)"},{"begin":"(\\\\\\\\)\\\\s*$\\\\n?","beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.python"}},"end":"(?=^\\\\s*$)|(?!(\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))|\\\\G()$)","patterns":[{"include":"#regexp"},{"include":"#string"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.begin.python"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.end.python"}},"patterns":[{"include":"#expression"}]},"literal":{"patterns":[{"match":"\\\\b(True|False|None|NotImplemented|Ellipsis)\\\\b","name":"constant.language.python"},{"include":"#number"}]},"loose-default":{"begin":"(=)","beginCaptures":{"1":{"name":"keyword.operator.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"magic-function-names":{"captures":{"1":{"name":"support.function.magic.python"}},"match":"\\\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|get??|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|len??|long|lshift|lt|missing|mod|mul|neg??|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\\\b"},"magic-names":{"patterns":[{"include":"#magic-function-names"},{"include":"#magic-variable-names"}]},"magic-variable-names":{"captures":{"1":{"name":"support.variable.magic.python"}},"match":"\\\\b(__(?:all|annotations|bases|builtins|class|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\\\b"},"member-access":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|(^|(?<=\\\\s))(?=[^\\\\\\\\\\\\w\\\\s])|$","name":"meta.member.access.python","patterns":[{"include":"#function-call"},{"include":"#member-access-base"},{"include":"#member-access-attribute"}]},"member-access-attribute":{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.attribute.python"},"member-access-base":{"patterns":[{"include":"#magic-names"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#special-names"},{"include":"#line-continuation"},{"include":"#item-access"}]},"member-access-class":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|$","name":"meta.member.access.python","patterns":[{"include":"#call-wrapper-inheritance"},{"include":"#member-access-base"},{"include":"#inheritance-identifier"}]},"number":{"name":"constant.numeric.python","patterns":[{"include":"#number-float"},{"include":"#number-dec"},{"include":"#number-hex"},{"include":"#number-oct"},{"include":"#number-bin"},{"include":"#number-long"},{"match":"\\\\b[0-9]+\\\\w+","name":"invalid.illegal.name.python"}]},"number-bin":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Bb])(_?[01])+\\\\b","name":"constant.numeric.bin.python"},"number-dec":{"captures":{"1":{"name":"storage.type.imaginary.number.python"},"2":{"name":"invalid.illegal.dec.python"}},"match":"(?<![.\\\\w])(?:[1-9](?:_?[0-9])*|0+|[0-9](?:_?[0-9])*([Jj])|0([0-9]+)(?![.Ee]))\\\\b","name":"constant.numeric.dec.python"},"number-float":{"captures":{"1":{"name":"storage.type.imaginary.number.python"}},"match":"(?<!\\\\w)(?:(?:\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.)(?:[Ee][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[Ee][-+]?[0-9](?:_?[0-9])*)([Jj])?\\\\b","name":"constant.numeric.float.python"},"number-hex":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Xx])(_?\\\\h)+\\\\b","name":"constant.numeric.hex.python"},"number-long":{"captures":{"2":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])([1-9][0-9]*|0)([Ll])\\\\b","name":"constant.numeric.bin.python"},"number-oct":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Oo])(_?[0-7])+\\\\b","name":"constant.numeric.oct.python"},"odd-function-call":{"begin":"(?<=[])])\\\\s*(?=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"patterns":[{"include":"#function-arguments"}]},"operator":{"captures":{"1":{"name":"keyword.operator.logical.python"},"2":{"name":"keyword.control.flow.python"},"3":{"name":"keyword.operator.bitwise.python"},"4":{"name":"keyword.operator.arithmetic.python"},"5":{"name":"keyword.operator.comparison.python"},"6":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b(?<!\\\\.)(?:(and|or|not|in|is)|(for|if|else|await|yield(?:\\\\s+from)?))(?!\\\\s*:)\\\\b|(<<|>>|[\\\\&^|~])|(\\\\*\\\\*|[-%*+]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"},"parameter-special":{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"variable.parameter.function.language.special.self.python"},"3":{"name":"variable.parameter.function.language.special.cls.python"},"4":{"name":"punctuation.separator.parameters.python"}},"match":"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))"},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#parameter-special"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comments"},{"include":"#loose-default"},{"include":"#annotated-parameter"}]},"punctuation":{"patterns":[{"match":":","name":"punctuation.separator.colon.python"},{"match":",","name":"punctuation.separator.element.python"}]},"regexp":{"patterns":[{"include":"#regexp-single-three-line"},{"include":"#regexp-double-three-line"},{"include":"#regexp-single-one-line"},{"include":"#regexp-double-one-line"}]},"regexp-backreference":{"captures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},"2":{"name":"entity.name.tag.named.backreference.regexp"},"3":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},"match":"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+\\\\p{alnum}+)?)(\\\\))","name":"meta.backreference.named.regexp"},"regexp-backreference-number":{"captures":{"1":{"name":"entity.name.tag.backreference.regexp"}},"match":"(\\\\\\\\[1-9]\\\\d?)","name":"meta.backreference.regexp"},"regexp-base-common":{"patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"[*+?]\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.disjunction.regexp"},{"include":"#regexp-escape-sequence"}]},"regexp-base-expression":{"patterns":[{"include":"#regexp-quantifier"},{"include":"#regexp-base-common"}]},"regexp-charecter-set-escapes":{"patterns":[{"match":"\\\\\\\\[\\\\\\\\abfnrtv]","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-special"},{"match":"\\\\\\\\([0-7]{1,3})","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-escape-catchall"}]},"regexp-double-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\")|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#double-one-regexp-expression"}]},"regexp-double-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#double-three-regexp-expression"}]},"regexp-escape-catchall":{"match":"\\\\\\\\(.|\\\\n)","name":"constant.character.escape.regexp"},"regexp-escape-character":{"match":"\\\\\\\\(x\\\\h{2}|0[0-7]{1,2}|[0-7]{3})","name":"constant.character.escape.regexp"},"regexp-escape-sequence":{"patterns":[{"include":"#regexp-escape-special"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-backreference-number"},{"include":"#regexp-escape-catchall"}]},"regexp-escape-special":{"match":"\\\\\\\\([ABDSWZbdsw])","name":"support.other.escape.special.regexp"},"regexp-escape-unicode":{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8})","name":"constant.character.unicode.regexp"},"regexp-flags":{"match":"\\\\(\\\\?[Laimsux]+\\\\)","name":"storage.modifier.flag.regexp"},"regexp-quantifier":{"match":"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}","name":"keyword.operator.quantifier.regexp"},"regexp-single-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(')|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#single-one-regexp-expression"}]},"regexp-single-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(''')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(''')","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#single-three-regexp-expression"}]},"return-annotation":{"begin":"(->)","beginCaptures":{"1":{"name":"punctuation.separator.annotation.result.python"}},"end":"(?=:)","patterns":[{"include":"#expression"}]},"round-braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.python"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.python"}},"patterns":[{"include":"#expression"}]},"semicolon":{"patterns":[{"match":";$","name":"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-one-regexp-character-set"},{"include":"#single-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-one-regexp-lookahead"},{"include":"#single-one-regexp-lookahead-negative"},{"include":"#single-one-regexp-lookbehind"},{"include":"#single-one-regexp-lookbehind-negative"},{"include":"#single-one-regexp-conditional"},{"include":"#single-one-regexp-parentheses-non-capturing"},{"include":"#single-one-regexp-parentheses"}]},"single-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='''))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-three-regexp-character-set"},{"include":"#single-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-three-regexp-lookahead"},{"include":"#single-three-regexp-lookahead-negative"},{"include":"#single-three-regexp-lookbehind"},{"include":"#single-three-regexp-lookbehind-negative"},{"include":"#single-three-regexp-conditional"},{"include":"#single-three-regexp-parentheses-non-capturing"},{"include":"#single-three-regexp-parentheses"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"special-names":{"match":"\\\\b(_*\\\\p{upper}[_\\\\d]*\\\\p{upper})[[:upper:]\\\\d]*(_\\\\w*)?\\\\b","name":"constant.other.caps.python"},"special-variables":{"captures":{"1":{"name":"variable.language.special.self.python"},"2":{"name":"variable.language.special.cls.python"}},"match":"\\\\b(?<!\\\\.)(?:(self)|(cls))\\\\b"},"statement":{"patterns":[{"include":"#import"},{"include":"#class-declaration"},{"include":"#function-declaration"},{"include":"#generator"},{"include":"#statement-keyword"},{"include":"#assignment-operator"},{"include":"#decorator"},{"include":"#docstring-statement"},{"include":"#semicolon"}]},"statement-keyword":{"patterns":[{"match":"\\\\b((async\\\\s+)?\\\\s*def)\\\\b","name":"storage.type.function.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b(?=.*[:\\\\\\\\])","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"match":"\\\\b(?<!\\\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\\\b","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)(global|nonlocal)\\\\b","name":"storage.modifier.declaration.python"},{"match":"\\\\b(?<!\\\\.)(class)\\\\b","name":"storage.type.class.python"},{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"^\\\\s*(case|match)(?=\\\\s*([-\\"#'(+:\\\\[{\\\\w\\\\d]|$))\\\\b"}]},"string":{"patterns":[{"include":"#string-quoted-multi-line"},{"include":"#string-quoted-single-line"},{"include":"#string-bin-quoted-multi-line"},{"include":"#string-bin-quoted-single-line"},{"include":"#string-raw-quoted-multi-line"},{"include":"#string-raw-quoted-single-line"},{"include":"#string-raw-bin-quoted-multi-line"},{"include":"#string-raw-bin-quoted-single-line"},{"include":"#fstring-fnorm-quoted-multi-line"},{"include":"#fstring-fnorm-quoted-single-line"},{"include":"#fstring-normf-quoted-multi-line"},{"include":"#fstring-normf-quoted-single-line"},{"include":"#fstring-raw-quoted-multi-line"},{"include":"#fstring-raw-quoted-single-line"}]},"string-bin-quoted-multi-line":{"begin":"\\\\b([Bb])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.multi.python","patterns":[{"include":"#string-entity"}]},"string-bin-quoted-single-line":{"begin":"\\\\b([Bb])(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.single.python","patterns":[{"include":"#string-entity"}]},"string-brace-formatting":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\{|}}|\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.python"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:)[^\\\\n\\"'{}]*(?:\\\\{[^\\\\n\\"'}]*?}[^\\\\n\\"'{}]*)*})","name":"meta.format.brace.python"}]},"string-consume-escape":{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\]"},"string-entity":{"patterns":[{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#string-formatting"}]},"string-formatting":{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.python"},"string-line-continuation":{"match":"\\\\\\\\$","name":"constant.language.python"},"string-multi-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-quoted-multi-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-unicode"},{"include":"#string-multi-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-quoted-single-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-unicode"},{"include":"#string-single-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-raw-bin-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-raw-bin-quoted-multi-line":{"begin":"\\\\b(R[Bb]|[Bb]R)('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.multi.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-bin-quoted-single-line":{"begin":"\\\\b(R[Bb]|[Bb]R)(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.single.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"},{"include":"#string-brace-formatting"}]},"string-raw-quoted-multi-line":{"begin":"\\\\b(([Uu]R)|(R))('''|\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-raw"},{"include":"#string-multi-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-raw-quoted-single-line":{"begin":"\\\\b(([Uu]R)|(R))(([\\"']))","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-raw"},{"include":"#string-single-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-single-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"}]},"string-single-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-single-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-single-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-unicode-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"},{"include":"#string-brace-formatting"}]}},"scopeName":"source.python","aliases":["py"]}`)),YAe=[XAe]});var ine={};fn(ine,{default:()=>JAe});var QAe,JAe,one=tr(()=>{QAe=Object.freeze(JSON.parse(`{"displayName":"Rust","name":"rust","patterns":[{"begin":"(<)(\\\\[)","beginCaptures":{"1":{"name":"punctuation.brackets.angle.rust"},"2":{"name":"punctuation.brackets.square.rust"}},"end":">","endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}},"patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#gtypes"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"}]},{"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"3":{"name":"keyword.other.crate.rust"},"4":{"name":"entity.name.type.metavariable.rust"},"6":{"name":"keyword.operator.key-value.rust"},"7":{"name":"variable.other.metavariable.specifier.rust"}},"match":"(\\\\$)((crate)|([A-Z]\\\\w*))(\\\\s*(:)\\\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\\\b)?","name":"meta.macro.metavariable.type.rust","patterns":[{"include":"#keywords"}]},{"captures":{"1":{"name":"keyword.operator.macro.dollar.rust"},"2":{"name":"variable.other.metavariable.name.rust"},"4":{"name":"keyword.operator.key-value.rust"},"5":{"name":"variable.other.metavariable.specifier.rust"}},"match":"(\\\\$)([a-z]\\\\w*)(\\\\s*(:)\\\\s*(block|expr(?:_2021)?|ident|item|lifetime|literal|meta|pat(?:_param)?|path|stmt|tt|ty|vis)\\\\b)?","name":"meta.macro.metavariable.rust","patterns":[{"include":"#keywords"}]},{"captures":{"1":{"name":"entity.name.function.macro.rules.rust"},"3":{"name":"entity.name.function.macro.rust"},"4":{"name":"entity.name.type.macro.rust"},"5":{"name":"punctuation.brackets.curly.rust"}},"match":"\\\\b(macro_rules!)\\\\s+(([0-9_a-z]+)|([A-Z][0-9_a-z]*))\\\\s+(\\\\{)","name":"meta.macro.rules.rust"},{"captures":{"1":{"name":"storage.type.rust"},"2":{"name":"entity.name.module.rust"}},"match":"(mod)\\\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][0-9A-Z_a-z]*)"},{"begin":"\\\\b(extern)\\\\s+(crate)","beginCaptures":{"1":{"name":"storage.type.rust"},"2":{"name":"keyword.other.crate.rust"}},"end":";","endCaptures":{"0":{"name":"punctuation.semi.rust"}},"name":"meta.import.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#punctuation"}]},{"begin":"\\\\b(use)\\\\s","beginCaptures":{"1":{"name":"keyword.other.rust"}},"end":";","endCaptures":{"0":{"name":"punctuation.semi.rust"}},"name":"meta.use.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#types"},{"include":"#lvariables"}]},{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#types"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#variables"}],"repository":{"attributes":{"begin":"(#)(!?)(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.attribute.rust"},"3":{"name":"punctuation.brackets.attribute.rust"}},"end":"]","endCaptures":{"0":{"name":"punctuation.brackets.attribute.rust"}},"name":"meta.attribute.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#gtypes"},{"include":"#types"}]},"block-comments":{"patterns":[{"match":"/\\\\*\\\\*/","name":"comment.block.rust"},{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.documentation.rust","patterns":[{"include":"#block-comments"}]},{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.rust","patterns":[{"include":"#block-comments"}]}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.rust"}},"match":"(///).*$","name":"comment.line.documentation.rust"},{"captures":{"1":{"name":"punctuation.definition.comment.rust"}},"match":"(//).*$","name":"comment.line.double-slash.rust"}]},"constants":{"patterns":[{"match":"\\\\b[A-Z]{2}[0-9A-Z_]*\\\\b","name":"constant.other.caps.rust"},{"captures":{"1":{"name":"storage.type.rust"},"2":{"name":"constant.other.caps.rust"}},"match":"\\\\b(const)\\\\s+([A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"punctuation.separator.dot.decimal.rust"},"2":{"name":"keyword.operator.exponent.rust"},"3":{"name":"keyword.operator.exponent.sign.rust"},"4":{"name":"constant.numeric.decimal.exponent.mantissa.rust"},"5":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b\\\\d[_\\\\d]*(\\\\.?)[_\\\\d]*(?:([Ee])([-+]?)([_\\\\d]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.decimal.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0x[A-F_a-f\\\\d]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.hex.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.oct.rust"},{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"\\\\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\\\\b","name":"constant.numeric.bin.rust"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.bool.rust"}]},"escapes":{"captures":{"1":{"name":"constant.character.escape.backslash.rust"},"2":{"name":"constant.character.escape.bit.rust"},"3":{"name":"constant.character.escape.unicode.rust"},"4":{"name":"constant.character.escape.unicode.punctuation.rust"},"5":{"name":"constant.character.escape.unicode.punctuation.rust"}},"match":"(\\\\\\\\)(?:(x[0-7][A-Fa-f\\\\d])|(u(\\\\{)[A-Fa-f\\\\d]{4,6}(}))|.)","name":"constant.character.escape.rust"},"functions":{"patterns":[{"captures":{"1":{"name":"keyword.other.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"match":"\\\\b(pub)(\\\\()"},{"begin":"\\\\b(fn)\\\\s+((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)((\\\\()|(<))","beginCaptures":{"1":{"name":"keyword.other.fn.rust"},"2":{"name":"entity.name.function.rust"},"4":{"name":"punctuation.brackets.round.rust"},"5":{"name":"punctuation.brackets.angle.rust"}},"end":"(\\\\{)|(;)","endCaptures":{"1":{"name":"punctuation.brackets.curly.rust"},"2":{"name":"punctuation.semi.rust"}},"name":"meta.function.definition.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]},{"begin":"((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.rust"},"2":{"name":"punctuation.brackets.round.rust"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}},"name":"meta.function.call.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]},{"begin":"((?:r#(?!crate|[Ss]elf|super))?[0-9A-Z_a-z]+)(?=::<.*>\\\\()","beginCaptures":{"1":{"name":"entity.name.function.rust"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.brackets.round.rust"}},"name":"meta.function.call.rust","patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#constants"},{"include":"#gtypes"},{"include":"#functions"},{"include":"#lifetimes"},{"include":"#macros"},{"include":"#namespaces"},{"include":"#punctuation"},{"include":"#strings"},{"include":"#types"},{"include":"#variables"}]}]},"gtypes":{"patterns":[{"match":"\\\\b(Some|None)\\\\b","name":"entity.name.type.option.rust"},{"match":"\\\\b(Ok|Err)\\\\b","name":"entity.name.type.result.rust"}]},"interpolations":{"captures":{"1":{"name":"punctuation.definition.interpolation.rust"},"2":{"name":"punctuation.definition.interpolation.rust"}},"match":"(\\\\{)[^\\"{}]*(})","name":"meta.interpolation.rust"},"keywords":{"patterns":[{"match":"\\\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\\\b","name":"keyword.control.rust"},{"match":"\\\\b(extern|let|macro|mod)\\\\b","name":"keyword.other.rust storage.type.rust"},{"match":"\\\\b(const)\\\\b","name":"storage.modifier.rust"},{"match":"\\\\b(type)\\\\b","name":"keyword.declaration.type.rust storage.type.rust"},{"match":"\\\\b(enum)\\\\b","name":"keyword.declaration.enum.rust storage.type.rust"},{"match":"\\\\b(trait)\\\\b","name":"keyword.declaration.trait.rust storage.type.rust"},{"match":"\\\\b(struct)\\\\b","name":"keyword.declaration.struct.rust storage.type.rust"},{"match":"\\\\b(abstract|static)\\\\b","name":"storage.modifier.rust"},{"match":"\\\\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\\\b","name":"keyword.other.rust"},{"match":"\\\\bfn\\\\b","name":"keyword.other.fn.rust"},{"match":"\\\\bcrate\\\\b","name":"keyword.other.crate.rust"},{"match":"\\\\bmut\\\\b","name":"storage.modifier.mut.rust"},{"match":"([\\\\^|]|\\\\|\\\\||&&|<<|>>|!)(?!=)","name":"keyword.operator.logical.rust"},{"match":"&(?![\\\\&=])","name":"keyword.operator.borrow.and.rust"},{"match":"((?:[-%\\\\&*+/^|]|<<|>>)=)","name":"keyword.operator.assignment.rust"},{"match":"(?<![<>])=(?![=>])","name":"keyword.operator.assignment.equal.rust"},{"match":"(=(=)?(?!>)|!=|<=|(?<!=)>=)","name":"keyword.operator.comparison.rust"},{"match":"(([%+]|(\\\\*(?!\\\\w)))(?!=))|(-(?!>))|(/(?!/))","name":"keyword.operator.math.rust"},{"captures":{"1":{"name":"punctuation.brackets.round.rust"},"2":{"name":"punctuation.brackets.square.rust"},"3":{"name":"punctuation.brackets.curly.rust"},"4":{"name":"keyword.operator.comparison.rust"},"5":{"name":"punctuation.brackets.round.rust"},"6":{"name":"punctuation.brackets.square.rust"},"7":{"name":"punctuation.brackets.curly.rust"}},"match":"(?:\\\\b|(?:(\\\\))|(])|(})))[\\\\t ]+([<>])[\\\\t ]+(?:\\\\b|(?:(\\\\()|(\\\\[)|(\\\\{)))"},{"match":"::","name":"keyword.operator.namespace.rust"},{"captures":{"1":{"name":"keyword.operator.dereference.rust"}},"match":"(\\\\*)(?=\\\\w+)"},{"match":"@","name":"keyword.operator.subpattern.rust"},{"match":"\\\\.(?!\\\\.)","name":"keyword.operator.access.dot.rust"},{"match":"\\\\.{2}([.=])?","name":"keyword.operator.range.rust"},{"match":":(?!:)","name":"keyword.operator.key-value.rust"},{"match":"->|<-","name":"keyword.operator.arrow.skinny.rust"},{"match":"=>","name":"keyword.operator.arrow.fat.rust"},{"match":"\\\\$","name":"keyword.operator.macro.dollar.rust"},{"match":"\\\\?","name":"keyword.operator.question.rust"}]},"lifetimes":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.lifetime.rust"},"2":{"name":"entity.name.type.lifetime.rust"}},"match":"(')([A-Z_a-z][0-9A-Z_a-z]*)(?!')\\\\b"},{"captures":{"1":{"name":"keyword.operator.borrow.rust"},"2":{"name":"punctuation.definition.lifetime.rust"},"3":{"name":"entity.name.type.lifetime.rust"}},"match":"(&)(')([A-Z_a-z][0-9A-Z_a-z]*)(?!')\\\\b"}]},"lvariables":{"patterns":[{"match":"\\\\b[Ss]elf\\\\b","name":"variable.language.self.rust"},{"match":"\\\\bsuper\\\\b","name":"variable.language.super.rust"}]},"macros":{"patterns":[{"captures":{"2":{"name":"entity.name.function.macro.rust"},"3":{"name":"entity.name.type.macro.rust"}},"match":"(([_a-z][0-9A-Z_a-z]*!)|([A-Z_][0-9A-Z_a-z]*!))","name":"meta.macro.rust"}]},"namespaces":{"patterns":[{"captures":{"1":{"name":"entity.name.namespace.rust"},"2":{"name":"keyword.operator.namespace.rust"}},"match":"(?<![0-9A-Z_a-z])([0-9A-Z_a-z]+)((?<!s(?:uper|elf))::)"}]},"punctuation":{"patterns":[{"match":",","name":"punctuation.comma.rust"},{"match":"[{}]","name":"punctuation.brackets.curly.rust"},{"match":"[()]","name":"punctuation.brackets.round.rust"},{"match":";","name":"punctuation.semi.rust"},{"match":"[]\\\\[]","name":"punctuation.brackets.square.rust"},{"match":"(?<!=)[<>]","name":"punctuation.brackets.angle.rust"}]},"strings":{"patterns":[{"begin":"(b?)(\\")","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.rust"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.rust"}},"name":"string.quoted.double.rust","patterns":[{"include":"#escapes"},{"include":"#interpolations"}]},{"begin":"(b?r)(#*)(\\")","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.string.raw.rust"},"3":{"name":"punctuation.definition.string.rust"}},"end":"(\\")(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.rust"},"2":{"name":"punctuation.definition.string.raw.rust"}},"name":"string.quoted.double.rust"},{"begin":"(b)?(')","beginCaptures":{"1":{"name":"string.quoted.byte.raw.rust"},"2":{"name":"punctuation.definition.char.rust"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.char.rust"}},"name":"string.quoted.single.char.rust","patterns":[{"include":"#escapes"}]}]},"types":{"patterns":[{"captures":{"1":{"name":"entity.name.type.numeric.rust"}},"match":"(?<![A-Za-z])(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)\\\\b"},{"begin":"\\\\b(_?[A-Z][0-9A-Z_a-z]*)(<)","beginCaptures":{"1":{"name":"entity.name.type.rust"},"2":{"name":"punctuation.brackets.angle.rust"}},"end":">","endCaptures":{"0":{"name":"punctuation.brackets.angle.rust"}},"patterns":[{"include":"#block-comments"},{"include":"#comments"},{"include":"#keywords"},{"include":"#lvariables"},{"include":"#lifetimes"},{"include":"#punctuation"},{"include":"#types"},{"include":"#variables"}]},{"match":"\\\\b(bool|char|str)\\\\b","name":"entity.name.type.primitive.rust"},{"captures":{"1":{"name":"keyword.declaration.trait.rust storage.type.rust"},"2":{"name":"entity.name.type.trait.rust"}},"match":"\\\\b(trait)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.struct.rust storage.type.rust"},"2":{"name":"entity.name.type.struct.rust"}},"match":"\\\\b(struct)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.enum.rust storage.type.rust"},"2":{"name":"entity.name.type.enum.rust"}},"match":"\\\\b(enum)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.declaration.type.rust storage.type.rust"},"2":{"name":"entity.name.type.declaration.rust"}},"match":"\\\\b(type)\\\\s+(_?[A-Z][0-9A-Z_a-z]*)\\\\b"},{"match":"\\\\b_?[A-Z][0-9A-Z_a-z]*\\\\b(?!!)","name":"entity.name.type.rust"}]},"variables":{"patterns":[{"match":"\\\\b(?<!(?<!\\\\.)\\\\.)(?:r#(?!(crate|[Ss]elf|super)))?[0-9_a-z]+\\\\b","name":"variable.other.rust"}]}},"scopeName":"source.rust","aliases":["rs"]}`)),JAe=[QAe]});var ane={};fn(ane,{default:()=>t$e});var e$e,t$e,sne=tr(()=>{e$e=Object.freeze(JSON.parse(`{"displayName":"Go","name":"go","patterns":[{"include":"#statements"}],"repository":{"after_control_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"variable.other.go"}]}},"match":"(?<=\\\\brange\\\\b|;|\\\\bif\\\\b|\\\\bfor\\\\b|[<>]|<=|>=|==|!=|\\\\w[-%*+/]|\\\\w[-%*+/]=|\\\\|\\\\||&&)\\\\s*((?![]\\\\[]+)[-\\\\]!%*+./:<=>\\\\[_[:alnum:]]+)\\\\s*(?=\\\\{)"},"brackets":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"$self"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"$self"}]}]},"built_in_functions":{"patterns":[{"match":"\\\\b(append|cap|close|complex|copy|delete|imag|len|panic|print|println|real|recover|min|max|clear)\\\\b(?=\\\\()","name":"entity.name.function.support.builtin.go"},{"begin":"\\\\b(new)\\\\b(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.support.builtin.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#functions"},{"include":"#struct_variables_types"},{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#generic_types"},{"match":"\\\\w+","name":"entity.name.type.go"},{"include":"$self"}]},{"begin":"\\\\b(make)\\\\b(\\\\()((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?[]*\\\\[]+{0,1}(?:(?!\\\\bmap\\\\b)[.\\\\w]+)?(\\\\[(?:\\\\S+(?:,\\\\s*\\\\S+)*)?])?,?)?","beginCaptures":{"1":{"name":"entity.name.function.support.builtin.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"},"3":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"$self"}]}]},"comments":{"patterns":[{"begin":"(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"end":"(\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"name":"comment.block.go"},{"begin":"(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.go"}},"end":"\\\\n|$","name":"comment.line.double-slash.go"}]},"const_assignment":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.constant.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\bconst\\\\b)\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"begin":"(?<=\\\\bconst\\\\b)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.constant.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"include":"$self"}]}]},"delimiters":{"patterns":[{"match":",","name":"punctuation.other.comma.go"},{"match":"\\\\.(?!\\\\.\\\\.)","name":"punctuation.other.period.go"},{"match":":(?!=)","name":"punctuation.other.colon.go"}]},"double_parentheses_types":{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<!\\\\w)(\\\\([]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?\\\\))(?=\\\\()"},"function_declaration":{"begin":"^\\\\b(func)\\\\b\\\\s*(\\\\([^)]+\\\\)\\\\s*)?(?:(\\\\w+)(?=[(\\\\[]))?","beginCaptures":{"1":{"name":"keyword.function.go"},"2":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"captures":{"1":{"name":"variable.parameter.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(\\\\w+\\\\s+)?([*.\\\\w]+(?:\\\\[(?:[*.\\\\w]+(?:,\\\\s+)?)+{0,1}])?)"},{"include":"$self"}]}]},"3":{"patterns":[{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.function.go"}]}},"end":"(?<=\\\\))\\\\s*((?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b)[-\\\\]*.\\\\[\\\\w]+)?\\\\s*(?=\\\\{)","endCaptures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\))\\\\s*((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[-\\\\]*.<>\\\\[\\\\w]+\\\\s*(?:/[*/].*)?)$"},{"include":"$self"}]},"function_param_types":{"patterns":[{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#type-declarations-without-brackets"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+(?=(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b\\\\s*\\\\{)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"(?:(?<=\\\\()|^\\\\s*)((?:\\\\b\\\\w+,\\\\s*)+(?:/[*/].*)?)$"},{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.parameter.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?:[]*.\\\\[\\\\w]+{0,1}(?:\\\\bfunc\\\\b\\\\([^)]+{0,1}\\\\)(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*)+(?:[]*.\\\\[\\\\w]+|\\\\([^)]+{0,1}\\\\))?|(?:[]*\\\\[]+{0,1}[*.\\\\w]+(?:\\\\[[^]]+])?[*.\\\\w]+{0,1})+))"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"([.\\\\w]+)"},{"include":"$self"}]},"functions":{"begin":"\\\\b(func)\\\\b(?=\\\\()","beginCaptures":{"1":{"name":"keyword.function.go"}},"end":"(?<=\\\\))(\\\\s*(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+)?(\\\\s*(?:[]*\\\\[]+{0,1}[*.\\\\w]+)?(?:\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+]|\\\\([^)]+{0,1}\\\\))?[*.\\\\w]+{0,1}\\\\s*(?=\\\\{)|\\\\s*(?:[]*\\\\[]+{0,1}(?!\\\\bfunc\\\\b)[*.\\\\w]+(?:\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+])?[*.\\\\w]+{0,1}|\\\\([^)]+{0,1}\\\\)))?","endCaptures":{"1":{"patterns":[{"include":"#type-declarations"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"include":"#parameter-variable-types"}]},"functions_inline":{"captures":{"1":{"name":"keyword.function.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"},{"include":"$self"}]},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b(func)\\\\b(\\\\([^/]*?\\\\)\\\\s+\\\\([^/]*?\\\\))\\\\s+(?=\\\\{)"},"generic_param_types":{"patterns":[{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#type-declarations-without-brackets"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+(?=(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b\\\\s*\\\\{)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.parameter.go"}]}},"match":"(?:(?<=\\\\()|^\\\\s*)((?:\\\\b\\\\w+,\\\\s*)+(?:/[*/].*)?)$"},{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.parameter.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"3":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\b\\\\w+,\\\\s*)+{0,1}\\\\b\\\\w+)\\\\s+((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?:[]*.\\\\[\\\\w]+{0,1}(?:\\\\bfunc\\\\b\\\\([^)]+{0,1}\\\\)(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*)+(?:[*.\\\\w]+|\\\\([^)]+{0,1}\\\\))?|(?:(?:[*.~\\\\w]+|\\\\[(?:[*.\\\\w]+{0,1}(?:\\\\[[^]]+{0,1}])?(?:,\\\\s+)?)+])[*.\\\\w]+{0,1})+))"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b([.\\\\w]+)"},{"include":"$self"}]},"generic_types":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"patterns":[{"include":"#parameter-variable-types"}]}},"match":"([*.\\\\w]+)(\\\\[[^]]+{0,1}])"},"group-functions":{"patterns":[{"include":"#function_declaration"},{"include":"#functions_inline"},{"include":"#functions"},{"include":"#built_in_functions"},{"include":"#support_functions"}]},"group-types":{"patterns":[{"include":"#other_struct_interface_expressions"},{"include":"#type_assertion_inline"},{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#single_type"},{"include":"#multi_types"},{"include":"#struct_interface_declaration"},{"include":"#double_parentheses_types"},{"include":"#switch_types"},{"include":"#type-declarations"}]},"group-variables":{"patterns":[{"include":"#const_assignment"},{"include":"#var_assignment"},{"include":"#variable_assignment"},{"include":"#label_loop_variables"},{"include":"#slice_index_variables"},{"include":"#property_variables"},{"include":"#switch_variables"},{"include":"#other_variables"}]},"hover":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"match":"\\\\binvalid\\\\b\\\\s+\\\\btype\\\\b","name":"invalid.field.go"},{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=^\\\\bfield\\\\b)\\\\s+([*.\\\\w]+)\\\\s+([\\\\s\\\\S]+)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=^\\\\breturns\\\\b)\\\\s+([\\\\s\\\\S]+)"}]},"import":{"patterns":[{"begin":"\\\\b(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.import.go"}},"end":"(?!\\\\G)","patterns":[{"include":"#imports"}]}]},"imports":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.import.go"}]},"2":{"name":"string.quoted.double.go"},"3":{"name":"punctuation.definition.string.begin.go"},"4":{"name":"entity.name.import.go"},"5":{"name":"punctuation.definition.string.end.go"}},"match":"(\\\\s*[.\\\\w]+)?\\\\s*((\\")([^\\"]*)(\\"))"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.imports.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.imports.end.bracket.round.go"}},"patterns":[{"include":"#comments"},{"include":"#imports"}]},{"include":"$self"}]},"interface_variables_types":{"begin":"\\\\b(interface)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.interface.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#interface_variables_types_field"},{"include":"$self"}]},"interface_variables_types_field":{"patterns":[{"include":"#support_functions"},{"include":"#type-declarations-without-brackets"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"([.\\\\w]+)"}]},"keywords":{"patterns":[{"match":"\\\\b(break|case|continue|default|defer|else|fallthrough|for|go|goto|if|range|return|select|switch)\\\\b","name":"keyword.control.go"},{"match":"\\\\bchan\\\\b","name":"keyword.channel.go"},{"match":"\\\\bconst\\\\b","name":"keyword.const.go"},{"match":"\\\\bvar\\\\b","name":"keyword.var.go"},{"match":"\\\\bfunc\\\\b","name":"keyword.function.go"},{"match":"\\\\binterface\\\\b","name":"keyword.interface.go"},{"match":"\\\\bmap\\\\b","name":"keyword.map.go"},{"match":"\\\\bstruct\\\\b","name":"keyword.struct.go"},{"match":"\\\\bimport\\\\b","name":"keyword.control.import.go"},{"match":"\\\\btype\\\\b","name":"keyword.type.go"}]},"label_loop_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.label.go"}]}},"match":"^(\\\\s*\\\\w+:\\\\s*|\\\\s*\\\\b(?:break|goto|continue)\\\\b\\\\s+\\\\w+(?:\\\\s*/[*/]\\\\s*.*)?)$"},"language_constants":{"captures":{"1":{"name":"constant.language.boolean.go"},"2":{"name":"constant.language.null.go"},"3":{"name":"constant.language.iota.go"}},"match":"\\\\b(?:(true|false)|(nil)|(iota))\\\\b"},"map_types":{"begin":"\\\\b(map)\\\\b(\\\\[)","beginCaptures":{"1":{"name":"keyword.map.go"},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"(])((?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:func|struct|map)\\\\b)[]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?)?","endCaptures":{"1":{"name":"punctuation.definition.end.bracket.square.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"include":"#functions"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"multi_types":{"begin":"\\\\b(type)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.type.go"},"2":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#struct_variables_types"},{"include":"#interface_variables_types"},{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"numeric_literals":{"captures":{"0":{"patterns":[{"begin":"(?=.)","end":"\\\\n|$","patterns":[{"captures":{"1":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"2":{"name":"punctuation.separator.constant.numeric.go"},"3":{"name":"constant.numeric.decimal.point.go"},"4":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"5":{"name":"punctuation.separator.constant.numeric.go"},"6":{"name":"keyword.other.unit.exponent.decimal.go"},"7":{"name":"keyword.operator.plus.exponent.decimal.go"},"8":{"name":"keyword.operator.minus.exponent.decimal.go"},"9":{"name":"constant.numeric.exponent.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"10":{"name":"keyword.other.unit.imaginary.go"},"11":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"12":{"name":"punctuation.separator.constant.numeric.go"},"13":{"name":"keyword.other.unit.exponent.decimal.go"},"14":{"name":"keyword.operator.plus.exponent.decimal.go"},"15":{"name":"keyword.operator.minus.exponent.decimal.go"},"16":{"name":"constant.numeric.exponent.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"17":{"name":"keyword.other.unit.imaginary.go"},"18":{"name":"constant.numeric.decimal.point.go"},"19":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"20":{"name":"punctuation.separator.constant.numeric.go"},"21":{"name":"keyword.other.unit.exponent.decimal.go"},"22":{"name":"keyword.operator.plus.exponent.decimal.go"},"23":{"name":"keyword.operator.minus.exponent.decimal.go"},"24":{"name":"constant.numeric.exponent.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"25":{"name":"keyword.other.unit.imaginary.go"},"26":{"name":"keyword.other.unit.hexadecimal.go"},"27":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"28":{"name":"punctuation.separator.constant.numeric.go"},"29":{"name":"constant.numeric.hexadecimal.go"},"30":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"31":{"name":"punctuation.separator.constant.numeric.go"},"32":{"name":"keyword.other.unit.exponent.hexadecimal.go"},"33":{"name":"keyword.operator.plus.exponent.hexadecimal.go"},"34":{"name":"keyword.operator.minus.exponent.hexadecimal.go"},"35":{"name":"constant.numeric.exponent.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"36":{"name":"keyword.other.unit.imaginary.go"},"37":{"name":"keyword.other.unit.hexadecimal.go"},"38":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"39":{"name":"punctuation.separator.constant.numeric.go"},"40":{"name":"keyword.other.unit.exponent.hexadecimal.go"},"41":{"name":"keyword.operator.plus.exponent.hexadecimal.go"},"42":{"name":"keyword.operator.minus.exponent.hexadecimal.go"},"43":{"name":"constant.numeric.exponent.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"44":{"name":"keyword.other.unit.imaginary.go"},"45":{"name":"keyword.other.unit.hexadecimal.go"},"46":{"name":"constant.numeric.hexadecimal.go"},"47":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"48":{"name":"punctuation.separator.constant.numeric.go"},"49":{"name":"keyword.other.unit.exponent.hexadecimal.go"},"50":{"name":"keyword.operator.plus.exponent.hexadecimal.go"},"51":{"name":"keyword.operator.minus.exponent.hexadecimal.go"},"52":{"name":"constant.numeric.exponent.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"53":{"name":"keyword.other.unit.imaginary.go"}},"match":"\\\\G(?:(?:(?:(?:(?:(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)?(?:(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*))?(i(?!\\\\w))?(?:\\\\n|$)|(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(?:(?<!_)([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*))?(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)?(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(?<!_)([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)_(?=\\\\h))*)(i(?!\\\\w))?(?:\\\\n|$))"},{"captures":{"1":{"name":"constant.numeric.decimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"2":{"name":"punctuation.separator.constant.numeric.go"},"3":{"name":"keyword.other.unit.imaginary.go"},"4":{"name":"keyword.other.unit.binary.go"},"5":{"name":"constant.numeric.binary.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"6":{"name":"punctuation.separator.constant.numeric.go"},"7":{"name":"keyword.other.unit.imaginary.go"},"8":{"name":"keyword.other.unit.octal.go"},"9":{"name":"constant.numeric.octal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"10":{"name":"punctuation.separator.constant.numeric.go"},"11":{"name":"keyword.other.unit.imaginary.go"},"12":{"name":"keyword.other.unit.hexadecimal.go"},"13":{"name":"constant.numeric.hexadecimal.go","patterns":[{"match":"(?<=\\\\h)_(?=\\\\h)","name":"punctuation.separator.constant.numeric.go"}]},"14":{"name":"punctuation.separator.constant.numeric.go"},"15":{"name":"keyword.other.unit.imaginary.go"}},"match":"\\\\G(?:(?:(?:(?=[.0-9])(?!0[BOXbox])([0-9](?:[0-9]|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$)|(0[Bb])_?([01](?:[01]|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$))|(0[Oo]?)_?((?:[0-7]|((?<=\\\\h)_(?=\\\\h)))+)(i(?!\\\\w))?(?:\\\\n|$))|(0[Xx])_?(\\\\h(?:\\\\h|((?<=\\\\h)_(?=\\\\h)))*)(i(?!\\\\w))?(?:\\\\n|$))"},{"match":"(?:[.0-9A-Z_a-z]|(?<=[EPep])[-+])+","name":"invalid.illegal.constant.numeric.go"}]}]}},"match":"(?<!\\\\w)\\\\.?\\\\d(?:[.0-9A-Z_a-z]|(?<=[EPep])[-+])*"},"operators":{"patterns":[{"match":"(?<!\\\\w)[\\\\&*]+(?!\\\\d)(?=[]\\\\[\\\\w]|<-)","name":"keyword.operator.address.go"},{"match":"<-","name":"keyword.operator.channel.go"},{"match":"--","name":"keyword.operator.decrement.go"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.go"},{"match":"(==|!=|<=|>=|<(?!<)|>(?!>))","name":"keyword.operator.comparison.go"},{"match":"(&&|\\\\|\\\\||!)","name":"keyword.operator.logical.go"},{"match":"((?:|[-%*+/:^|]|<<|>>|&\\\\^?)=)","name":"keyword.operator.assignment.go"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.go"},{"match":"(&(?!\\\\^)|[\\\\^|]|&\\\\^|<<|>>|~)","name":"keyword.operator.arithmetic.bitwise.go"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.ellipsis.go"}]},"other_struct_interface_expressions":{"patterns":[{"include":"#after_control_variables"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b(?!(?:struct|interface)\\\\b)([.\\\\w]+)(?<brackets>\\\\[(?:[^]\\\\[]|\\\\g<brackets>)*])?(?=\\\\{)"}]},"other_variables":{"match":"\\\\w+","name":"variable.other.go"},"package_name":{"patterns":[{"begin":"\\\\b(package)\\\\s+","beginCaptures":{"1":{"name":"keyword.package.go"}},"end":"(?!\\\\G)","patterns":[{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.type.package.go"}]}]},"parameter-variable-types":{"patterns":[{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"begin":"([*.\\\\w]+)?(\\\\[)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"2":{"name":"punctuation.definition.begin.bracket.square.go"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.go"}},"patterns":[{"include":"#generic_param_types"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"}]}]},"property_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]}},"match":"\\\\b([.\\\\w]+:(?!=))"},"raw_string_literals":{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"end":"\`","endCaptures":{"0":{"name":"punctuation.definition.string.end.go"}},"name":"string.quoted.raw.go","patterns":[{"include":"#string_placeholder"}]},"runes":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.go"}},"name":"string.quoted.rune.go","patterns":[{"match":"\\\\G(\\\\\\\\([0-7]{3}|[\\"'\\\\\\\\abfnrtv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8})|.)(?=')","name":"constant.other.rune.go"},{"match":"[^']+","name":"invalid.illegal.unknown-rune.go"}]}]},"single_type":{"patterns":[{"captures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"3":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"},{"include":"$self"}]},{"include":"#type-declarations"},{"include":"#generic_types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b(type)\\\\b\\\\s*([*.\\\\w]+)\\\\s+(?!(?:=\\\\s*)?[]*\\\\[]+{0,1}\\\\b(?:struct|interface)\\\\b)([\\\\s\\\\S]+)"},{"begin":"(?:^|\\\\s+)\\\\b(type)\\\\b\\\\s*([*.\\\\w]+)(?=\\\\[)","beginCaptures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"end":"(?<=])(\\\\s+(?:=\\\\s*)?(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}(?![]*\\\\[]+{0,1}\\\\b(?:struct|interface|func)\\\\b)[-\\\\]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?","endCaptures":{"1":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"patterns":[{"include":"#struct_variables_types"},{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}]},"slice_index_variables":{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.go"}]}},"match":"(?<=\\\\w\\\\[)((?:\\\\b[-%\\\\&*+./<>|\\\\w]+:|:\\\\b[-%\\\\&*+./<>|\\\\w]+)(?:\\\\b[-%\\\\&*+./<>|\\\\w]+)?(?::\\\\b[-%\\\\&*+./<>|\\\\w]+)?)(?=])"},"statements":{"patterns":[{"include":"#package_name"},{"include":"#import"},{"include":"#syntax_errors"},{"include":"#group-functions"},{"include":"#group-types"},{"include":"#group-variables"},{"include":"#hover"}]},"storage_types":{"patterns":[{"match":"\\\\bbool\\\\b","name":"storage.type.boolean.go"},{"match":"\\\\bbyte\\\\b","name":"storage.type.byte.go"},{"match":"\\\\berror\\\\b","name":"storage.type.error.go"},{"match":"\\\\b(complex(64|128)|float(32|64)|u?int(8|16|32|64)?)\\\\b","name":"storage.type.numeric.go"},{"match":"\\\\brune\\\\b","name":"storage.type.rune.go"},{"match":"\\\\bstring\\\\b","name":"storage.type.string.go"},{"match":"\\\\buintptr\\\\b","name":"storage.type.uintptr.go"},{"match":"\\\\bany\\\\b","name":"entity.name.type.any.go"},{"match":"\\\\bcomparable\\\\b","name":"entity.name.type.comparable.go"}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([0-7]{3}|[\\"'\\\\\\\\abfnrtv]|x\\\\h{2}|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.go"},{"match":"\\\\\\\\[^\\"'0-7Uabfnrtuvx]","name":"invalid.illegal.unknown-escape.go"}]},"string_literals":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.go"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.go"}},"name":"string.quoted.double.go","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"}]}]},"string_placeholder":{"patterns":[{"match":"%(\\\\[\\\\d+])?([- #+0]{0,2}((\\\\d+|\\\\*)?(\\\\.?(\\\\d+|\\\\*|(\\\\[\\\\d+])\\\\*?)?(\\\\[\\\\d+])?)?))?[%EFGTUXb-gopqstvwx]","name":"constant.other.placeholder.go"}]},"struct_interface_declaration":{"captures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b(type)\\\\b\\\\s*([.\\\\w]+)"},"struct_variable_types_fields_multi":{"patterns":[{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(struct)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"name":"keyword.struct.go"},"3":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#struct_variables_types_fields"},{"include":"$self"}]},{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(interface)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"name":"keyword.interface.go"},"3":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#interface_variables_types_field"},{"include":"$self"}]},{"begin":"\\\\b(\\\\w+(?:,\\\\s*\\\\b\\\\w+)*(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}\\\\s*[]*\\\\[]+{0,1})\\\\b(func)\\\\b\\\\s*(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"name":"keyword.function.go"},"3":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"include":"#function_param_types"},{"include":"$self"}]},{"include":"#parameter-variable-types"}]},"struct_variables_types":{"begin":"\\\\b(struct)\\\\b\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.struct.go"},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"include":"#struct_variables_types_fields"},{"include":"$self"}]},"struct_variables_types_fields":{"patterns":[{"include":"#struct_variable_types_fields_multi"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\{)\\\\s*((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*.\\\\[\\\\w]+)\\\\s*(?=})"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\{)\\\\s*((?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*.\\\\[\\\\w]+)\\\\s*(?=})"},{"captures":{"1":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)?((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[^/\\\\s]+;?)"}]}},"match":"(?<=\\\\{)((?:\\\\s*(?:(?:\\\\w+,\\\\s*)+{0,1}\\\\w+\\\\s+)?(?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[^/\\\\s]+;?)+)\\\\s*(?=})"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[*.\\\\w]+\\\\s*)(?:(?=[\\"/\`])|$)"},{"captures":{"1":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.property.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#parameter-variable-types"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"\\\\b(\\\\w+(?:\\\\s*,\\\\s*\\\\b\\\\w+)*)\\\\s*([^\\"/\`]+)"}]},"support_functions":{"captures":{"1":{"name":"entity.name.function.support.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"entity.name.function.support.go"}]},"3":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?:((?<=\\\\.)\\\\b\\\\w+)|\\\\b(\\\\w+))(?<brackets>\\\\[(?:[^]\\\\[]|\\\\g<brackets>)*])?(?=\\\\()"},"switch_types":{"begin":"(?<=\\\\bswitch\\\\b)\\\\s*(\\\\w+\\\\s*:=)?\\\\s*([-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+)(\\\\.\\\\(\\\\btype\\\\b\\\\)\\\\s*)(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#operators"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]},"2":{"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"match":"\\\\w+","name":"variable.other.go"}]},"3":{"patterns":[{"include":"#delimiters"},{"include":"#brackets"},{"match":"\\\\btype\\\\b","name":"keyword.type.go"}]},"4":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"captures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},"3":{"name":"punctuation.other.colon.go"},"4":{"patterns":[{"include":"#comments"}]}},"match":"^\\\\s*\\\\b(case)\\\\b\\\\s+([!*,.<=>\\\\w\\\\s]+)(:)(\\\\s*/[*/]\\\\s*.*)?$"},{"begin":"\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.go"}},"end":":","endCaptures":{"0":{"name":"punctuation.other.colon.go"}},"patterns":[{"include":"#type-declarations"},{"match":"\\\\w+","name":"entity.name.type.go"}]},{"include":"$self"}]},"switch_variables":{"patterns":[{"captures":{"1":{"name":"keyword.control.go"},"2":{"patterns":[{"include":"#type-declarations"},{"include":"#support_functions"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]}},"match":"^\\\\s*\\\\b(case)\\\\b\\\\s+([\\\\s\\\\S]+:\\\\s*(?:/[*/].*)?)$"},{"begin":"(?<=\\\\bswitch\\\\b)\\\\s*((?:[.\\\\w]+(?:\\\\s*[-!%\\\\&+,/:<=>|]+\\\\s*[.\\\\w]+)*\\\\s*[-!%\\\\&+,/:<=>|]+)?\\\\s*[-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+{0,1}\\\\s*(?:;\\\\s*[-\\\\]%\\\\&(-+./<>\\\\[|\\\\w]+\\\\s*)?)(\\\\{)","beginCaptures":{"1":{"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]},"2":{"name":"punctuation.definition.begin.bracket.curly.go"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.curly.go"}},"patterns":[{"begin":"\\\\bcase\\\\b","beginCaptures":{"0":{"name":"keyword.control.go"}},"end":":","endCaptures":{"0":{"name":"punctuation.other.colon.go"}},"patterns":[{"include":"#support_functions"},{"include":"#type-declarations"},{"include":"#variable_assignment"},{"match":"\\\\w+","name":"variable.other.go"}]},{"include":"$self"}]}]},"syntax_errors":{"patterns":[{"captures":{"1":{"name":"invalid.illegal.slice.go"}},"match":"\\\\[](\\\\s+)"},{"match":"\\\\b0[0-7]*[89]\\\\d*\\\\b","name":"invalid.illegal.numeric.go"}]},"terminators":{"match":";","name":"punctuation.terminator.go"},"type-declarations":{"patterns":[{"include":"#language_constants"},{"include":"#comments"},{"include":"#map_types"},{"include":"#brackets"},{"include":"#delimiters"},{"include":"#keywords"},{"include":"#operators"},{"include":"#runes"},{"include":"#storage_types"},{"include":"#raw_string_literals"},{"include":"#string_literals"},{"include":"#numeric_literals"},{"include":"#terminators"}]},"type-declarations-without-brackets":{"patterns":[{"include":"#language_constants"},{"include":"#comments"},{"include":"#map_types"},{"include":"#delimiters"},{"include":"#keywords"},{"include":"#operators"},{"include":"#runes"},{"include":"#storage_types"},{"include":"#raw_string_literals"},{"include":"#string_literals"},{"include":"#numeric_literals"},{"include":"#terminators"}]},"type_assertion_inline":{"captures":{"1":{"name":"keyword.type.go"},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\{","name":"punctuation.definition.begin.bracket.curly.go"},{"match":"}","name":"punctuation.definition.end.bracket.curly.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\.\\\\()(?:\\\\b(type)\\\\b|((?:\\\\s*[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+{0,1}[]*\\\\[]+{0,1}[.\\\\w]+(?:\\\\[(?:[]*.\\\\[{}\\\\w]+(?:,\\\\s*[]*.\\\\[{}\\\\w]+)*)?])?))(?=\\\\))"},"var_assignment":{"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"(?<=\\\\bvar\\\\b)\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"begin":"(?<=\\\\bvar\\\\b)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.begin.bracket.round.go"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.round.go"}},"patterns":[{"captures":{"1":{"patterns":[{"include":"#delimiters"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]},"2":{"patterns":[{"include":"#type-declarations-without-brackets"},{"include":"#generic_types"},{"match":"\\\\(","name":"punctuation.definition.begin.bracket.round.go"},{"match":"\\\\)","name":"punctuation.definition.end.bracket.round.go"},{"match":"\\\\[","name":"punctuation.definition.begin.bracket.square.go"},{"match":"]","name":"punctuation.definition.end.bracket.square.go"},{"match":"\\\\w+","name":"entity.name.type.go"}]}},"match":"^\\\\s*\\\\b([.\\\\w]+(?:,\\\\s*[.\\\\w]+)*)\\\\s*((?:(?:[]*\\\\[]+{0,1}(?:<-\\\\s*)?\\\\bchan\\\\b(?:\\\\s*<-)?\\\\s*)+(?:\\\\([^)]+\\\\))?)?(?![]*\\\\[]+{0,1}\\\\b(?:struct|func|map)\\\\b)(?:[]*.\\\\[\\\\w]+(?:,\\\\s*[]*.\\\\[\\\\w]+)*)?\\\\s*=?)?"},{"include":"$self"}]}]},"variable_assignment":{"patterns":[{"captures":{"0":{"patterns":[{"include":"#delimiters"},{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]}},"match":"\\\\b\\\\w+(?:,\\\\s*\\\\w+)*(?=\\\\s*:=)"},{"captures":{"0":{"patterns":[{"include":"#delimiters"},{"include":"#operators"},{"match":"\\\\d\\\\w*","name":"invalid.illegal.identifier.go"},{"match":"\\\\w+","name":"variable.other.assignment.go"}]}},"match":"\\\\b[*.\\\\w]+(?:,\\\\s*[*.\\\\w]+)*(?=\\\\s*=(?!=))"}]}},"scopeName":"source.go"}`)),t$e=[e$e]});var lne={};fn(lne,{default:()=>r$e});var n$e,r$e,cne=tr(()=>{n$e=Object.freeze(JSON.parse('{"displayName":"Swift","fileTypes":["swift"],"firstLineMatch":"^#!/.*\\\\bswift","name":"swift","patterns":[{"include":"#root"}],"repository":{"async-throws":{"captures":{"1":{"name":"invalid.illegal.await-must-precede-throws.swift"},"2":{"name":"storage.modifier.exception.swift"},"3":{"name":"storage.modifier.async.swift"}},"match":"\\\\b(?:((?:throws\\\\s+|rethrows\\\\s+)async)|((?:|re)throws)|(async))\\\\b"},"attributes":{"patterns":[{"begin":"((@)available)(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.attribute.swift"},"2":{"name":"punctuation.definition.attribute.swift"},"3":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.attribute.available.swift","patterns":[{"captures":{"1":{"name":"keyword.other.platform.os.swift"},"2":{"name":"constant.numeric.swift"}},"match":"\\\\b(swift|(?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\\\b(?:\\\\s+([0-9]+(?:\\\\.[0-9]+)*)\\\\b)?"},{"begin":"\\\\b((?:introduc|deprecat|obsolet)ed)\\\\s*(:)\\\\s*","beginCaptures":{"1":{"name":"keyword.other.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)*\\\\b","name":"constant.numeric.swift"}]},{"begin":"\\\\b(message|renamed)\\\\s*(:)\\\\s*(?=\\")","beginCaptures":{"1":{"name":"keyword.other.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#literals"}]},{"captures":{"1":{"name":"keyword.other.platform.all.swift"},"2":{"name":"keyword.other.swift"},"3":{"name":"invalid.illegal.character-not-allowed-here.swift"}},"match":"(?:(\\\\*)|\\\\b(deprecated|unavailable|noasync)\\\\b)\\\\s*(.*?)(?=[),])"}]},{"begin":"((@)objc)(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.attribute.swift"},"2":{"name":"punctuation.definition.attribute.swift"},"3":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.attribute.objc.swift","patterns":[{"captures":{"1":{"name":"invalid.illegal.missing-colon-after-selector-piece.swift"}},"match":"\\\\w*(?::(?:\\\\w*:)*(\\\\w*))?","name":"entity.name.function.swift"}]},{"begin":"(@)(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)","beginCaptures":{"0":{"name":"storage.modifier.attribute.swift"},"1":{"name":"punctuation.definition.attribute.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G\\\\()","name":"meta.attribute.swift","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.arguments.attribute.swift","patterns":[{"include":"#expressions"}]}]}]},"builtin-functions":{"patterns":[{"match":"(?<=\\\\.)(?:s(?:ort(?:ed)?|plit)|contains|index|partition|f(?:i(?:lter|rst)|orEach|latMap)|with(?:MutableCharacters|CString|U(?:nsafe(?:Mutable(?:BufferPointer|Pointer(?:s|To(?:Header|Elements)))|BufferPointer)|TF8Buffer))|m(?:in|a[px]))(?=\\\\s*[({])\\\\b","name":"support.function.swift"},{"match":"(?<=\\\\.)(?:s(?:ymmetricDifference|t(?:oreBytes|arts|ride)|ortInPlace|u(?:ccessor|ffix|btract(?:ing|InPlace|WithOverflow)?)|quareRoot|amePosition)|h(?:oldsUnique(?:|OrPinned)Reference|as(?:Suf|Pre)fix)|ne(?:gated?|xt)|c(?:o(?:untByEnumerating|py(?:Bytes)?)|lamp(?:ed)?|reate)|t(?:o(?:IntMax|Opaque|UIntMax)|ake(?:R|Unr)etainedValue|r(?:uncatingRemainder|a(?:nscodedLength|ilSurrogate)))|i(?:s(?:MutableAndUniquelyReferenced(?:OrPinned)?|S(?:trictSu(?:perset(?:Of)?|bset(?:Of)?)|u(?:perset(?:Of)?|bset(?:Of)?))|Continuation|T(?:otallyOrdered|railSurrogate)|Disjoint(?:With)?|Unique(?:Reference|lyReferenced(?:OrPinned)?)|Equal|Le(?:ss(?:ThanOrEqualTo)?|adSurrogate))|n(?:sert(?:ContentsOf)?|tersect(?:ion|InPlace)?|itialize(?:Memory|From)?|dex(?:Of|ForKey)))|o(?:verlaps|bjectAt)|d(?:i(?:stance(?:To)?|vide(?:d|WithOverflow)?)|e(?:s(?:cendant|troy)|code(?:CString)?|initialize|alloc(?:ate(?:Capacity)?)?)|rop(?:First|Last))|u(?:n(?:ion(?:InPlace)?|derestimateCount|wrappedOrError)|p(?:date(?:Value)?|percased))|join(?:ed|WithSeparator)|p(?:op(?:First|Last)|ass(?:R|Unr)etained|re(?:decessor|fix))|e(?:scaped?|n(?:code|umerated?)|lementsEqual|xclusiveOr(?:InPlace)?)|f(?:orm(?:Remainder|S(?:ymmetricDifference|quareRoot)|TruncatingRemainder|In(?:tersection|dex)|Union)|latten|rom(?:CString(?:RepairingIllFormedUTF8)?|Opaque))|w(?:i(?:thMemoryRebound|dth)|rite(?:To)?)|l(?:o(?:wercased|ad)|e(?:adSurrogate|xicographical(?:Compare|lyPrecedes)))|a(?:ss(?:ign(?:(?:Backward|)From)?|umingMemoryBound)|d(?:d(?:ing(?:Product)?|Product|WithOverflow)?|vanced(?:By)?)|utorelease|ppend(?:ContentsOf)?|lloc(?:ate)?|bs)|r(?:ound(?:ed)?|e(?:serveCapacity|tain|duce|place(?:(?:R|Subr)ange)?|versed?|quest(?:Native|UniqueMutableBacking)Buffer|lease|m(?:ove(?:Range|Subrange|Value(?:ForKey)?|First|Last|A(?:tIndex|ll))?|ainder(?:WithOverflow)?)))|ge(?:nerate|t(?:Objects|Element))|m(?:in(?:imum(?:Magnitude)?|Element)|ove(?:Initialize(?:Memory|BackwardFrom|From)?|Assign(?:From)?)?|ultipl(?:y(?:WithOverflow)?|ied)|easure|a(?:ke(?:Iterator|Description)|x(?:imum(?:Magnitude)?|Element)))|bindMemory)(?=\\\\s*\\\\()","name":"support.function.swift"},{"match":"(?<=\\\\.)(?:s(?:uperclassMirror|amePositionIn|tartsWith)|nextObject|c(?:haracterAtIndex|o(?:untByEnumeratingWithState|pyWithZone)|ustom(?:Mirror|PlaygroundQuickLook))|is(?:EmptyInput|ASCII)|object(?:Enumerator|ForKey|AtIndex)|join|put|keyEnumerator|withUnsafeMutablePointerToValue|length|getMirror|m(?:oveInitializeAssignFrom|ember))(?=\\\\s*\\\\()","name":"support.function.swift"}]},"builtin-global-functions":{"patterns":[{"begin":"\\\\b(type)(\\\\()\\\\s*(of)(:)","beginCaptures":{"1":{"name":"support.function.dynamic-type.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"},"3":{"name":"support.variable.parameter.swift"},"4":{"name":"punctuation.separator.argument-label.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"include":"#expressions"}]},{"match":"\\\\ba(?:nyGenerator|utoreleasepool)(?=\\\\s*[({])\\\\b","name":"support.function.swift"},{"match":"\\\\b(?:s(?:tride(?:of(?:Value)?)?|izeof(?:Value)?|equence|wap)|numericCast|transcode|is(?:UniquelyReferenced(?:NonObjC)?|KnownUniquelyReferenced)|zip|d(?:ump|ebugPrint)|unsafe(?:BitCast|Downcast|Unwrap|Address(?:Of)?)|pr(?:int|econdition(?:Failure)?)|fatalError|with(?:Unsafe(?:Mutable|)Pointer|ExtendedLifetime|VaList)|a(?:ssert(?:ionFailure)?|lignof(?:Value)?|bs)|re(?:peatElement|adLine)|getVaList|m(?:in|ax))(?=\\\\s*\\\\()","name":"support.function.swift"},{"match":"\\\\b(?:s(?:ort|uffix|pli(?:ce|t))|insert|overlaps|d(?:istance|rop(?:First|Last))|join|prefix|extend|withUnsafe(?:Mutable|)Pointers|lazy|advance|re(?:flect|move(?:Range|Last|A(?:tIndex|ll))))(?=\\\\s*\\\\()","name":"support.function.swift"}]},"builtin-properties":{"patterns":[{"match":"(?<=(?:^|\\\\W)(?:Process\\\\.|CommandLine\\\\.))(arguments|argc|unsafeArgv)","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:s(?:t(?:artIndex|ri(?:ngValue|de))|i(?:ze|gn(?:BitIndex|ificand(?:Bit(?:Count|Pattern)|Width)?|alingNaN)?)|u(?:perclassMirror|mmary|bscriptBaseAddress))|h(?:eader|as(?:hValue|PointerRepresentation))|n(?:ulTerminatedUTF8|ext(?:Down|Up)|a(?:n|tiveOwner))|c(?:haracters|ount(?:TrailingZeros)?|ustom(?:Mirror|PlaygroundQuickLook)|apacity)|i(?:s(?:S(?:ign(?:Minus|aling(?:NaN)?)|ubnormal)|N(?:ormal|aN)|Canonical|Infinite|Zero|Empty|Finite|ASCII)|n(?:dices|finity)|dentity)|owner|de(?:|bugDe)scription|u(?:n(?:safelyUnwrapped|icodeScalars?|derestimatedCount)|tf(?:16|8(?:Start|C(?:String|odeUnitCount))?)|intValue|ppercaseString|lp(?:OfOne)?)|p(?:i|ointee)|e(?:ndIndex|lements|xponent(?:Bit(?:Count|Pattern))?)|values?|keys|quietNaN|f(?:irst(?:ElementAddress(?:IfContiguous)?)?|loatingPointClass)|l(?:ittleEndian|owercaseString|eastNo(?:nzero|rmal)Magnitude|a(?:st|zy))|a(?:l(?:ignment|l(?:ocatedElementCount|Zeros))|rray(?:PropertyIsNativeTypeChecked)?)|ra(?:dix|wValue)|greatestFiniteMagnitude|m(?:in|emory|ax)|b(?:yteS(?:ize|wapped)|i(?:nade|tPattern|gEndian)|uffer|ase(?:Address)?))\\\\b","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:boolValue|disposition|end|objectIdentifier|quickLookObject|start|valueType)\\\\b","name":"support.variable.swift"},{"match":"(?<=\\\\.)(?:s(?:calarValue|i(?:ze|gnalingNaN)|o(?:und|me)|uppressed|prite|et)|n(?:one|egative(?:Subnormal|Normal|Infinity|Zero))|c(?:ol(?:or|lection)|ustomized)|t(?:o(?:NearestOr(?:Even|AwayFromZero)|wardZero)|uple|ext)|i(?:nt|mage)|optional|d(?:ictionary|o(?:uble|wn))|u(?:Int|p|rl)|p(?:o(?:sitive(?:Subnormal|Normal|Infinity|Zero)|int)|lus)|e(?:rror|mptyInput)|view|quietNaN|float|a(?:ttributedString|wayFromZero)|r(?:ectangle|ange)|generated|minus|b(?:ool|ezierPath))\\\\b","name":"support.variable.swift"}]},"builtin-types":{"patterns":[{"include":"#builtin-types-builtin-class-type"},{"include":"#builtin-types-builtin-enum-type"},{"include":"#builtin-types-builtin-protocol-type"},{"include":"#builtin-types-builtin-struct-type"},{"include":"#builtin-types-builtin-typealias"},{"match":"\\\\bAny\\\\b","name":"support.type.any.swift"}]},"builtin-types-builtin-class-type":{"match":"\\\\b(Managed((?:|Proto)Buffer)|NonObjectiveCBase|AnyGenerator)\\\\b","name":"support.class.swift"},"builtin-types-builtin-enum-type":{"patterns":[{"match":"\\\\b(?:CommandLine|Process(?=\\\\.))\\\\b","name":"support.constant.swift"},{"match":"\\\\bNever\\\\b","name":"support.constant.never.swift"},{"match":"\\\\b(?:ImplicitlyUnwrappedOptional|Representation|MemoryLayout|FloatingPointClassification|SetIndexRepresentation|SetIteratorRepresentation|FloatingPointRoundingRule|UnicodeDecodingResult|Optional|DictionaryIndexRepresentation|AncestorRepresentation|DisplayStyle|PlaygroundQuickLook|Never|FloatingPointSign|Bit|DictionaryIteratorRepresentation)\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:MirrorDisposition|QuickLookObject)\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-protocol-type":{"patterns":[{"match":"\\\\b(?:Ra(?:n(?:domAccess(?:Collection|Indexable)|geReplaceable(?:Collection|Indexable))|wRepresentable)|M(?:irrorPath|utable(?:Collection|Indexable))|Bi(?:naryFloatingPoint|twiseOperations|directional(?:Collection|Indexable))|S(?:tr(?:ide|eam)able|igned(?:Number|Integer)|e(?:tAlgebra|quence))|Hashable|C(?:o(?:llection|mparable)|ustom(?:Reflecta|StringConverti|DebugStringConverti|PlaygroundQuickLooka|LeafReflecta)ble|VarArg)|TextOutputStream|I(?:n(?:teger(?:Arithmetic)?|dexable(?:Base)?)|teratorProtocol)|OptionSet|Un(?:signedInteger|icodeCodec)|E(?:quatable|rror|xpressibleBy(?:BooleanLiteral|String(?:Interpolation|Literal)|NilLiteral|IntegerLiteral|DictionaryLiteral|UnicodeScalarLiteral|ExtendedGraphemeClusterLiteral|FloatLiteral|ArrayLiteral))|FloatingPoint|L(?:osslessStringConvertible|azy(?:Sequence|Collection)Protocol)|A(?:nyObject|bsoluteValuable))\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:Ran(?:domAccessIndex|geReplaceableCollection)Type|GeneratorType|M(?:irror(?:|Path)Type|utable(?:Sliceable|CollectionType))|B(?:i(?:twiseOperations|directionalIndex)Type|oolean(?:Type|LiteralConvertible))|S(?:tring(?:Interpolation|Literal)Convertible|i(?:nk|gned(?:Numb|Integ)er)Type|e(?:tAlgebra|quence)Type|liceable)|NilLiteralConvertible|C(?:ollection|VarArg)Type|Inte(?:rvalType|ger(?:Type|LiteralConvertible|ArithmeticType))|O(?:utputStream|ptionSet)Type|DictionaryLiteralConvertible|Un(?:signedIntegerType|icode(?:ScalarLiteralConvertible|CodecType))|E(?:rrorType|xten(?:sibleCollectionType|dedGraphemeClusterLiteralConvertible))|F(?:orwardIndexType|loat(?:ingPointType|LiteralConvertible))|A(?:nyCollectionType|rrayLiteralConvertible))\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-struct-type":{"patterns":[{"match":"\\\\b(?:R(?:e(?:peat(?:ed)?|versed(?:RandomAccess(?:Collection|Index)|Collection|Index))|an(?:domAccessSlice|ge(?:Replaceable(?:RandomAccess|Bidirectional|)Slice|Generator)?))|Generator(?:Sequence|OfOne)|M(?:irror|utable(?:Ran(?:domAccess|geReplaceable(?:RandomAccess|Bidirectional|))|Bidirectional|)Slice|anagedBufferPointer)|B(?:idirectionalSlice|ool)|S(?:t(?:aticString|ri(?:ng|deT(?:hrough(?:(?:Gen|It)erator)?|o(?:(?:Gen|It)erator)?)))|et(?:I(?:ndex|terator))?|lice)|HalfOpenInterval|C(?:haracter(?:View)?|o(?:ntiguousArray|untable(?:|Closed)Range|llectionOfOne)|OpaquePointer|losed(?:Range(?:I(?:ndex|terator))?|Interval)|VaListPointer)|I(?:n(?:t(?:16|8|32|64)?|d(?:ices|ex(?:ing(?:Gen|It)erator)?))|terator(?:Sequence|OverOne)?)|Zip2(?:Sequence|Iterator)|O(?:paquePointer|bjectIdentifier)|D(?:ictionary(?:I(?:ndex|terator)|Literal)?|ouble|efault(?:RandomAccess|Bidirectional|)Indices)|U(?:n(?:safe(?:RawPointer|Mutable(?:Raw|Buffer|)Pointer|BufferPointer(?:(?:Gen|It)erator)?|Pointer)|icodeScalar(?:View)?|foldSequence|managed)|TF(?:16(?:View)?|8(?:View)?|32)|Int(?:16|8|32|64)?)|Join(?:Generator|ed(?:Sequence|Iterator))|PermutationGenerator|E(?:numerate(?:Generator|Sequence|d(?:Sequence|Iterator))|mpty(?:Generator|Collection|Iterator))|Fl(?:oat(?:80)?|atten(?:Generator|BidirectionalCollection(?:Index)?|Sequence|Collection(?:Index)?|Iterator))|L(?:egacyChildren|azy(?:RandomAccessCollection|Map(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Collection|Iterator)|BidirectionalCollection|Sequence|Collection|Filter(?:Generator|BidirectionalCollection|Sequence|Collection|I(?:ndex|terator))))|A(?:ny(?:RandomAccessCollection|Generator|BidirectionalCollection|Sequence|Hashable|Collection|I(?:ndex|terator))|utoreleasingUnsafeMutablePointer|rray(?:Slice)?))\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:R(?:everse(?:RandomAccess(?:Collection|Index)|Collection|Index)|awByte)|Map(?:Generator|Sequence|Collection)|S(?:inkOf|etGenerator)|Zip2Generator|DictionaryGenerator|Filter(?:Generator|Sequence|Collection(?:Index)?)|LazyForwardCollection|Any(?:RandomAccessIndex|BidirectionalIndex|Forward(?:Collection|Index)))\\\\b","name":"support.type.swift"}]},"builtin-types-builtin-typealias":{"patterns":[{"match":"\\\\b(?:Raw(?:Significand|Exponent|Value)|B(?:ooleanLiteralType|uffer|ase)|S(?:t(?:orage|r(?:i(?:ngLiteralType|de)|eam[12]))|ubSequence)|NativeBuffer|C(?:hild(?:ren)?|Bool|S(?:hort|ignedChar)|odeUnit|Char(?:16|32)?|Int|Double|Unsigned(?:Short|Char|Int|Long(?:Long)?)|Float|WideChar|Long(?:Long)?)|I(?:n(?:t(?:Max|egerLiteralType)|d(?:ices|ex(?:Distance)?))|terator)|Distance|U(?:n(?:icodeScalar(?:Type|Index|View|LiteralType)|foldFirstSequence)|TF(?:16(?:Index|View)|8Index)|IntMax)|E(?:lements?|x(?:tendedGraphemeCluster(?:|Literal)Type|ponent))|V(?:oid|alue)|Key|Float(?:32|LiteralType|64)|AnyClass)\\\\b","name":"support.type.swift"},{"match":"\\\\b(?:Generator|PlaygroundQuickLook|UWord|Word)\\\\b","name":"support.type.swift"}]},"code-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.scope.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.scope.end.swift"}},"patterns":[{"include":"$self"}]},"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.swift"}},"match":"\\\\A^(#!).*$\\\\n?","name":"comment.line.number-sign.swift"},{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.documentation.swift","patterns":[{"include":"#comments-nested"}]},{"begin":"/\\\\*:","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.documentation.playground.swift","patterns":[{"include":"#comments-nested"}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.swift"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.swift"}},"name":"comment.block.swift","patterns":[{"include":"#comments-nested"}]},{"match":"\\\\*/","name":"invalid.illegal.unexpected-end-of-block-comment.swift"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.swift"}},"end":"(?!\\\\G)","patterns":[{"begin":"///","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.triple-slash.documentation.swift"},{"begin":"//:","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.double-slash.documentation.swift"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.swift"}},"end":"$","name":"comment.line.double-slash.swift"}]}]},"comments-nested":{"begin":"/\\\\*","end":"\\\\*/","patterns":[{"include":"#comments-nested"}]},"compiler-control":{"patterns":[{"begin":"^\\\\s*(#)(if|elseif)\\\\s+(false)\\\\b.*?(?=$|//|/\\\\*)","beginCaptures":{"0":{"name":"meta.preprocessor.conditional.swift"},"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"},"3":{"name":"constant.language.boolean.swift"}},"contentName":"comment.block.preprocessor.swift","end":"(?=^\\\\s*(#(e(?:lseif|lse|ndif)))\\\\b)"},{"begin":"^\\\\s*(#)(if|elseif)\\\\s+","captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"}},"end":"(?=\\\\s*/[*/])|$","name":"meta.preprocessor.conditional.swift","patterns":[{"match":"(&&|\\\\|\\\\|)","name":"keyword.operator.logical.swift"},{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.swift"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"support.constant.platform.architecture.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(arch)\\\\s*(\\\\()\\\\s*(?:(arm|arm64|powerpc64|powerpc64le|i386|x86_64|s390x)|\\\\w+)\\\\s*(\\\\))"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"support.constant.platform.os.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(os)\\\\s*(\\\\()\\\\s*(?:(macOS|OSX|iOS|tvOS|watchOS|visionOS|Android|Linux|FreeBSD|Windows|PS4)|\\\\w+)\\\\s*(\\\\))"},{"captures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"},"3":{"name":"entity.name.type.module.swift"},"4":{"name":"punctuation.definition.parameters.end.swift"}},"match":"\\\\b(canImport)\\\\s*(\\\\()([_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*)(\\\\))"},{"begin":"\\\\b(targetEnvironment)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))|$","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"match":"\\\\b(simulator|UIKitForMac)\\\\b","name":"support.constant.platform.environment.swift"}]},{"begin":"\\\\b(swift|compiler)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other.condition.swift"},"2":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))|$","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"match":">=|<","name":"keyword.operator.comparison.swift"},{"match":"\\\\b[0-9]+(?:\\\\.[0-9]+)*\\\\b","name":"constant.numeric.swift"}]}]},{"captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.conditional.swift"},"3":{"patterns":[{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"match":"^\\\\s*(#)(e(?:lse|ndif))(.*?)(?=$|//|/\\\\*)","name":"meta.preprocessor.conditional.swift"},{"captures":{"1":{"name":"punctuation.definition.preprocessor.swift"},"2":{"name":"keyword.control.import.preprocessor.sourcelocation.swift"},"4":{"name":"punctuation.definition.parameters.begin.swift"},"5":{"patterns":[{"begin":"(file)\\\\s*(:)\\\\s*(?=\\")","beginCaptures":{"1":{"name":"support.variable.parameter.swift"},"2":{"name":"punctuation.separator.key-value.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#literals"}]},{"captures":{"1":{"name":"support.variable.parameter.swift"},"2":{"name":"punctuation.separator.key-value.swift"},"3":{"name":"constant.numeric.integer.swift"}},"match":"(line)\\\\s*(:)\\\\s*([0-9]+)"},{"match":",","name":"punctuation.separator.parameters.swift"},{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"6":{"name":"punctuation.definition.parameters.begin.swift"},"7":{"patterns":[{"match":"\\\\S+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"match":"^\\\\s*(#)(sourceLocation)((\\\\()([^)]*)(\\\\)))(.*?)(?=$|//|/\\\\*)","name":"meta.preprocessor.sourcelocation.swift"}]},"conditionals":{"patterns":[{"begin":"(?<!\\\\.)\\\\b(if|guard|switch|for)\\\\b","beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]}},"end":"(?=\\\\{)","patterns":[{"include":"#expressions-without-trailing-closures"}]},{"begin":"(?<!\\\\.)\\\\b(while)\\\\b","beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]}},"end":"(?=\\\\{)|$","patterns":[{"include":"#expressions-without-trailing-closures"}]}]},"declarations":{"patterns":[{"include":"#declarations-function"},{"include":"#declarations-function-initializer"},{"include":"#declarations-function-subscript"},{"include":"#declarations-typed-variable-declaration"},{"include":"#declarations-import"},{"include":"#declarations-operator"},{"include":"#declarations-precedencegroup"},{"include":"#declarations-protocol"},{"include":"#declarations-type"},{"include":"#declarations-extension"},{"include":"#declarations-typealias"},{"include":"#declarations-macro"}]},"declarations-available-types":{"patterns":[{"include":"#comments"},{"include":"#builtin-types"},{"include":"#attributes"},{"match":"\\\\basync\\\\b","name":"storage.modifier.async.swift"},{"match":"\\\\b(?:|re)throws\\\\b","name":"storage.modifier.exception.swift"},{"match":"\\\\bsome\\\\b","name":"keyword.other.operator.type.opaque.swift"},{"match":"\\\\bany\\\\b","name":"keyword.other.operator.type.existential.swift"},{"match":"\\\\b(?:repeat|each)\\\\b","name":"keyword.control.loop.swift"},{"match":"\\\\b(?:inout|isolated|borrowing|consuming)\\\\b","name":"storage.modifier.swift"},{"match":"\\\\bSelf\\\\b","name":"variable.language.swift"},{"captures":{"1":{"name":"keyword.operator.type.function.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(->)(?![-!%\\\\&*+./<=>^|~])"},{"captures":{"1":{"name":"keyword.operator.type.composition.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(&)(?![-!%\\\\&*+./<=>^|~])"},{"match":"[!?]","name":"keyword.operator.type.optional.swift"},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.function.variadic-parameter.swift"},{"match":"\\\\bprotocol\\\\b","name":"keyword.other.type.composition.swift"},{"match":"(?<=\\\\.)(?:Protocol|Type)\\\\b","name":"keyword.other.type.metatype.swift"},{"include":"#declarations-available-types-tuple-type"},{"include":"#declarations-available-types-collection-type"},{"include":"#declarations-generic-argument-clause"}]},"declarations-available-types-collection-type":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.collection-type.begin.swift"}},"end":"]|(?=[)>{}])","endCaptures":{"0":{"name":"punctuation.section.collection-type.end.swift"}},"patterns":[{"include":"#declarations-available-types"},{"include":"#literals-numeric"},{"match":"\\\\b_\\\\b","name":"support.variable.inferred.swift"},{"match":"(?<=\\\\s)\\\\bof\\\\b(?=\\\\s+[(\\\\[_\\\\p{L}\\\\d\\\\p{N}\\\\p{M}])","name":"keyword.other.inline-array.swift"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.key-value.swift"}},"end":"(?=[])>{}])","patterns":[{"match":":","name":"invalid.illegal.extra-colon-in-dictionary-type.swift"},{"include":"#declarations-available-types"}]}]},"declarations-available-types-tuple-type":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.tuple-type.begin.swift"}},"end":"\\\\)|(?=[]>{}])","endCaptures":{"0":{"name":"punctuation.section.tuple-type.end.swift"}},"patterns":[{"include":"#declarations-available-types"}]},"declarations-extension":{"begin":"\\\\b(extension)\\\\s+","beginCaptures":{"1":{"name":"storage.type.$1.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"begin":"\\\\G(?!\\\\s*[\\\\n:{])","end":"(?=\\\\s*[\\\\n:{])|(?!\\\\G)(?=\\\\s*where\\\\b)","name":"entity.name.type.swift","patterns":[{"include":"#declarations-available-types"}]},{"include":"#comments"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function":{"begin":"\\\\b(func)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)|(?:((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)+)))\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})|$","name":"meta.definition.function.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.swift"}},"name":"meta.definition.function.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function-initializer":{"begin":"(?<!\\\\.)\\\\b(init[!?]*)\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift","patterns":[{"match":"(?<=[!?])[!?]+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"end":"(?<=})|$","name":"meta.definition.function.initializer.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.swift"}},"name":"meta.definition.function.body.swift","patterns":[{"include":"$self"}]}]},"declarations-function-result":{"begin":"(?<![-!%\\\\&*+./<=>^|~])(->)(?![-!%\\\\&*+./<=>^|~])\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.function-result.swift"}},"end":"(?!\\\\G)(?=\\\\{|\\\\bwhere\\\\b|[;=])|$","name":"meta.function-result.swift","patterns":[{"match":"\\\\bsending\\\\b","name":"storage.modifier.swift"},{"include":"#declarations-available-types"}]},"declarations-function-subscript":{"begin":"(?<!\\\\.)\\\\b(subscript)\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"}},"end":"(?<=})|$","name":"meta.definition.function.subscript.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"punctuation.section.function.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.function.end.swift"}},"name":"meta.definition.function.body.swift","patterns":[{"include":"$self"}]}]},"declarations-generic-argument-clause":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.separator.generic-argument-clause.begin.swift"}},"end":">|(?=[]){}])","endCaptures":{"0":{"name":"punctuation.separator.generic-argument-clause.end.swift"}},"name":"meta.generic-argument-clause.swift","patterns":[{"include":"#literals-numeric"},{"include":"#declarations-available-types"}]},"declarations-generic-parameter-clause":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.separator.generic-parameter-clause.begin.swift"}},"end":">|(?=[^\\\\&,:<=>`\\\\w\\\\d\\\\s])","endCaptures":{"0":{"name":"punctuation.separator.generic-parameter-clause.end.swift"}},"name":"meta.generic-parameter-clause.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-where-clause"},{"match":"\\\\blet\\\\b","name":"keyword.other.declaration-specifier.swift"},{"match":"\\\\beach\\\\b","name":"keyword.control.loop.swift"},{"captures":{"1":{"name":"variable.language.generic-parameter.swift"}},"match":"\\\\b((?!\\\\d)\\\\w[\\\\w\\\\d]*)\\\\b"},{"match":",","name":"punctuation.separator.generic-parameters.swift"},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.generic-parameter-constraint.swift"}},"end":"(?=[,>]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.generic-parameter-constraint.swift","patterns":[{"begin":"\\\\G","end":"(?=[,>]|(?!\\\\G)\\\\bwhere\\\\b)","name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-type-identifier"},{"include":"#declarations-type-operators"}]}]}]},"declarations-generic-where-clause":{"begin":"\\\\b(where)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.generic-constraint-introducer.swift"}},"end":"(?!\\\\G)$|(?=[\\\\n;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-where-clause-requirement-list"}]},"declarations-generic-where-clause-requirement-list":{"begin":"\\\\G|,\\\\s*","end":"(?=[\\\\n,;>{}]|//|/\\\\*)","patterns":[{"include":"#comments"},{"include":"#constraint"},{"include":"#declarations-available-types"},{"begin":"(?<![-!%\\\\&*+./<=>^|~])(==)(?![-!%\\\\&*+./<=>^|~])","beginCaptures":{"1":{"name":"keyword.operator.generic-constraint.same-type.swift"}},"end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.same-type-requirement.swift","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(?<![-!%\\\\&*+./<=>^|~])(:)(?![-!%\\\\&*+./<=>^|~])","beginCaptures":{"1":{"name":"keyword.operator.generic-constraint.conforms-to.swift"}},"end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","name":"meta.generic-where-clause.conformance-requirement.swift","patterns":[{"begin":"\\\\G\\\\s*","contentName":"entity.other.inherited-class.swift","end":"(?=\\\\s*[\\\\n,;>{}]|//|/\\\\*)","patterns":[{"include":"#declarations-available-types"}]}]}]},"declarations-import":{"begin":"(?<!\\\\.)\\\\b(import)\\\\s+","beginCaptures":{"1":{"name":"keyword.control.import.swift"}},"end":"(;)|$\\\\n?|(?=/[*/])","endCaptures":{"1":{"name":"punctuation.terminator.statement.swift"}},"name":"meta.import.swift","patterns":[{"begin":"\\\\G(?!;|$|//|/\\\\*)(?:(typealias|struct|class|actor|enum|protocol|var|func)\\\\s+)?","beginCaptures":{"1":{"name":"storage.modifier.swift"}},"end":"(?=;|$|//|/\\\\*)","patterns":[{"captures":{"1":{"name":"punctuation.definition.identifier.swift"},"2":{"name":"punctuation.definition.identifier.swift"}},"match":"(?<=\\\\G|\\\\.)(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)","name":"entity.name.type.swift"},{"match":"(?<=\\\\G|\\\\.)\\\\$[0-9]+","name":"entity.name.type.swift"},{"captures":{"1":{"patterns":[{"match":"\\\\.","name":"invalid.illegal.dot-not-allowed-here.swift"}]}},"match":"(?<=\\\\G|\\\\.)(?:((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)+))(?=[.;]|$|//|/\\\\*|\\\\s)","name":"entity.name.type.swift"},{"match":"\\\\.","name":"punctuation.separator.import.swift"},{"begin":"(?!\\\\s*(;|$|//|/\\\\*))","end":"(?=\\\\s*(;|$|//|/\\\\*))","name":"invalid.illegal.character-not-allowed-here.swift"}]}]},"declarations-inheritance-clause":{"begin":"(:)(?=\\\\s*\\\\{)|(:)\\\\s*","beginCaptures":{"1":{"name":"invalid.illegal.empty-inheritance-clause.swift"},"2":{"name":"punctuation.separator.inheritance-clause.swift"}},"end":"(?!\\\\G)$|(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.inheritance-clause.swift","patterns":[{"begin":"\\\\bclass\\\\b","beginCaptures":{"0":{"name":"storage.type.class.swift"}},"end":"(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","patterns":[{"include":"#comments"},{"include":"#declarations-inheritance-clause-more-types"}]},{"begin":"\\\\G","end":"(?!\\\\G)$|(?=[={}]|(?!\\\\G)\\\\bwhere\\\\b)","patterns":[{"include":"#attributes"},{"include":"#comments"},{"include":"#declarations-inheritance-clause-inherited-type"},{"include":"#declarations-inheritance-clause-more-types"},{"include":"#declarations-type-operators"}]}]},"declarations-inheritance-clause-inherited-type":{"begin":"(?=[_`\\\\p{L}])","end":"(?!\\\\G)","name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-type-identifier"}]},"declarations-inheritance-clause-more-types":{"begin":",\\\\s*","end":"(?!\\\\G)(?!/[*/])|(?=[,={}]|(?!\\\\G)\\\\bwhere\\\\b)","name":"meta.inheritance-list.more-types","patterns":[{"include":"#attributes"},{"include":"#comments"},{"include":"#declarations-inheritance-clause-inherited-type"},{"include":"#declarations-inheritance-clause-more-types"},{"include":"#declarations-type-operators"}]},"declarations-macro":{"begin":"\\\\b(macro)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(?=[(<=])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"$|(?=;|//|/\\\\*|[=}])","name":"meta.definition.macro.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"}]},"declarations-operator":{"begin":"(?:\\\\b((?:pre|in|post)fix)\\\\s+)?\\\\b(operator)\\\\s+(((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|\\\\.|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*+)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)++))\\\\s*","beginCaptures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"storage.type.function.operator.swift"},"3":{"name":"entity.name.function.operator.swift"},"4":{"name":"entity.name.function.operator.swift","patterns":[{"match":"\\\\.","name":"invalid.illegal.dot-not-allowed-here.swift"}]}},"end":"(;)|$\\\\n?|(?=/[*/])","endCaptures":{"1":{"name":"punctuation.terminator.statement.swift"}},"name":"meta.definition.operator.swift","patterns":[{"include":"#declarations-operator-swift2"},{"include":"#declarations-operator-swift3"},{"match":"((?!$|;|//|/\\\\*)\\\\S)+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"declarations-operator-swift2":{"begin":"\\\\G(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.operator.begin.swift"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.operator.end.swift"}},"patterns":[{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"keyword.other.operator.associativity.swift"}},"match":"\\\\b(associativity)\\\\s+(left|right)\\\\b"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"constant.numeric.integer.swift"}},"match":"\\\\b(precedence)\\\\s+([0-9]+)\\\\b"},{"captures":{"1":{"name":"storage.modifier.swift"}},"match":"\\\\b(assignment)\\\\b"}]},"declarations-operator-swift3":{"captures":{"2":{"name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-types-precedencegroup"}]},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"\\\\G(:)\\\\s*((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))"},"declarations-parameter-clause":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"(\\\\))(?:\\\\s*(async)\\\\b)?","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.swift"},"2":{"name":"storage.modifier.async.swift"}},"name":"meta.parameter-clause.swift","patterns":[{"include":"#declarations-parameter-list"}]},"declarations-parameter-list":{"patterns":[{"captures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"variable.parameter.function.swift"},"5":{"name":"punctuation.definition.identifier.swift"},"6":{"name":"punctuation.definition.identifier.swift"}},"match":"((?<q1>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q1>))\\\\s+((?<q2>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q2>))(?=\\\\s*:)"},{"captures":{"1":{"name":"variable.parameter.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"(((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)))(?=\\\\s*:)"},{"begin":":\\\\s*(?!\\\\s)","end":"(?=[),])","patterns":[{"match":"\\\\bsending\\\\b","name":"storage.modifier.swift"},{"include":"#declarations-available-types"},{"match":":","name":"invalid.illegal.extra-colon-in-parameter-list.swift"},{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.assignment.swift"}},"end":"(?=[),])","patterns":[{"include":"#expressions"}]}]}]},"declarations-precedencegroup":{"begin":"\\\\b(precedencegroup)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(?=\\\\{)","beginCaptures":{"1":{"name":"storage.type.precedencegroup.swift"},"2":{"name":"entity.name.type.precedencegroup.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)","name":"meta.definition.precedencegroup.swift","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.precedencegroup.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.precedencegroup.end.swift"}},"patterns":[{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"entity.other.inherited-class.swift","patterns":[{"include":"#declarations-types-precedencegroup"}]},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"match":"\\\\b((?:high|low)erThan)\\\\s*:\\\\s*((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"keyword.other.operator.associativity.swift"}},"match":"\\\\b(associativity)\\\\b(?:\\\\s*:\\\\s*(right|left|none)\\\\b)?"},{"captures":{"1":{"name":"storage.modifier.swift"},"2":{"name":"constant.language.boolean.swift"}},"match":"\\\\b(assignment)\\\\b(?:\\\\s*:\\\\s*(true|false)\\\\b)?"}]}]},"declarations-protocol":{"begin":"\\\\b(protocol)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.protocol.swift","patterns":[{"include":"#comments"},{"include":"#declarations-inheritance-clause"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"#declarations-protocol-protocol-method"},{"include":"#declarations-protocol-protocol-initializer"},{"include":"#declarations-protocol-associated-type"},{"include":"$self"}]}]},"declarations-protocol-associated-type":{"begin":"\\\\b(associatedtype)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration-specifier.swift"},"2":{"name":"variable.language.associatedtype.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)$|(?=[;}]|$)","name":"meta.definition.associatedtype.swift","patterns":[{"include":"#declarations-inheritance-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-typealias-assignment"}]},"declarations-protocol-protocol-initializer":{"begin":"(?<!\\\\.)\\\\b(init[!?]*)\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift","patterns":[{"match":"(?<=[!?])[!?]+","name":"invalid.illegal.character-not-allowed-here.swift"}]}},"end":"$|(?=;|//|/\\\\*|})","name":"meta.definition.function.initializer.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.function.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.function.end.swift"}},"name":"invalid.illegal.function-body-not-allowed-in-protocol.swift","patterns":[{"include":"$self"}]}]},"declarations-protocol-protocol-method":{"begin":"\\\\b(func)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)|(?:((?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])(\\\\g<oph>|(?<opc>[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))*)|(\\\\.(\\\\g<oph>|\\\\g<opc>|\\\\.)+)))\\\\s*(?=[(<])","beginCaptures":{"1":{"name":"storage.type.function.swift"},"2":{"name":"entity.name.function.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"$|(?=;|//|/\\\\*|})","name":"meta.definition.function.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-parameter-clause"},{"include":"#declarations-function-result"},{"include":"#async-throws"},{"include":"#declarations-generic-where-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.function.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.function.end.swift"}},"name":"invalid.illegal.function-body-not-allowed-in-protocol.swift","patterns":[{"include":"$self"}]}]},"declarations-type":{"patterns":[{"begin":"\\\\b(class(?!\\\\s+(?:func|var|let)\\\\b)|struct|actor)\\\\b\\\\s*((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"$self"}]}]},{"include":"#declarations-type-enum"}]},"declarations-type-enum":{"begin":"\\\\b(enum)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","beginCaptures":{"1":{"name":"storage.type.$1.swift"},"2":{"name":"entity.name.type.$1.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?<=})","name":"meta.definition.type.$1.swift","patterns":[{"include":"#comments"},{"include":"#declarations-generic-parameter-clause"},{"include":"#declarations-generic-where-clause"},{"include":"#declarations-inheritance-clause"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.type.begin.swift"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.type.end.swift"}},"name":"meta.definition.type.body.swift","patterns":[{"include":"#declarations-type-enum-enum-case-clause"},{"include":"$self"}]}]},"declarations-type-enum-associated-values":{"begin":"\\\\G\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.swift"}},"patterns":[{"include":"#comments"},{"begin":"(?:(_)|((?<q1>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k<q1>))\\\\s+(((?<q2>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k<q2>))\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"invalid.illegal.distinct-labels-not-allowed.swift"},"5":{"name":"variable.parameter.function.swift"},"7":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*\\\\k<q>))\\\\s*(:)","beginCaptures":{"1":{"name":"entity.name.function.swift"},"2":{"name":"variable.parameter.function.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"}]},{"begin":"(?![]),])(?=\\\\S)","end":"(?=[]),])","patterns":[{"include":"#declarations-available-types"},{"match":":","name":"invalid.illegal.extra-colon-in-parameter-list.swift"}]}]},"declarations-type-enum-enum-case":{"begin":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"variable.other.enummember.swift"}},"end":"(?<=\\\\))|(?![(=])","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-associated-values"},{"include":"#declarations-type-enum-raw-value-assignment"}]},"declarations-type-enum-enum-case-clause":{"begin":"\\\\b(case)\\\\b\\\\s*","beginCaptures":{"1":{"name":"storage.type.enum.case.swift"}},"end":"(?=[;}])|(?!\\\\G)(?!/[*/])(?=[^,\\\\s])","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-enum-case"},{"include":"#declarations-type-enum-more-cases"}]},"declarations-type-enum-more-cases":{"begin":",\\\\s*","end":"(?!\\\\G)(?!/[*/])(?=[;}[^,\\\\s]])","name":"meta.enum-case.more-cases","patterns":[{"include":"#comments"},{"include":"#declarations-type-enum-enum-case"},{"include":"#declarations-type-enum-more-cases"}]},"declarations-type-enum-raw-value-assignment":{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.swift"}},"end":"(?!\\\\G)","patterns":[{"include":"#comments"},{"include":"#literals"}]},"declarations-type-identifier":{"begin":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"meta.type-name.swift","patterns":[{"include":"#builtin-types"}]},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!<)","patterns":[{"begin":"(?=<)","end":"(?!\\\\G)","patterns":[{"include":"#declarations-generic-argument-clause"}]}]},"declarations-type-operators":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.composition.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(&)(?![-!%\\\\&*+./<=>^|~])"},{"captures":{"1":{"name":"keyword.operator.type.requirement-suppression.swift"}},"match":"(?<![-!%\\\\&*+./<=>^|~])(~)(?![-!%\\\\&*+./<=>^|~])"}]},"declarations-typealias":{"begin":"\\\\b(typealias)\\\\s+((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*","beginCaptures":{"1":{"name":"keyword.other.declaration-specifier.swift"},"2":{"name":"entity.name.type.typealias.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.identifier.swift"}},"end":"(?!\\\\G)$|(?=;|//|/\\\\*|$)","name":"meta.definition.typealias.swift","patterns":[{"begin":"\\\\G(?=<)","end":"(?!\\\\G)","patterns":[{"include":"#declarations-generic-parameter-clause"}]},{"include":"#declarations-typealias-assignment"}]},"declarations-typealias-assignment":{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.swift"}},"end":"(?!\\\\G)$|(?=;|//|/\\\\*|$)","patterns":[{"include":"#declarations-available-types"}]},"declarations-typed-variable-declaration":{"begin":"\\\\b(?:(async)\\\\s+)?(let|var)\\\\b\\\\s+(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>)\\\\s*:","beginCaptures":{"1":{"name":"storage.modifier.async.swift"},"2":{"name":"keyword.other.declaration-specifier.swift"}},"end":"(?=$|[={])","patterns":[{"include":"#declarations-available-types"}]},"declarations-types-precedencegroup":{"patterns":[{"match":"\\\\b(?:BitwiseShift|Assignment|RangeFormation|Casting|Addition|NilCoalescing|Comparison|LogicalConjunction|LogicalDisjunction|Default|Ternary|Multiplication|FunctionArrow)Precedence\\\\b","name":"support.type.swift"}]},"expressions":{"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references"},{"include":"#expressions-trailing-closure"},{"include":"#member-reference"}]},"expressions-trailing-closure":{"patterns":[{"captures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"match":"(#?(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))(?=\\\\s*\\\\{)","name":"meta.function-call.trailing-closure-only.swift"},{"captures":{"1":{"name":"support.function.any-method.trailing-closure-label.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"match":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(:)(?=\\\\s*\\\\{)"}]},"expressions-without-trailing-closures":{"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references"},{"include":"#member-references"}]},"expressions-without-trailing-closures-or-member-references":{"patterns":[{"include":"#comments"},{"include":"#code-block"},{"include":"#attributes"},{"include":"#expressions-without-trailing-closures-or-member-references-closure-parameter"},{"include":"#literals"},{"include":"#operators"},{"include":"#builtin-types"},{"include":"#builtin-functions"},{"include":"#builtin-global-functions"},{"include":"#builtin-properties"},{"include":"#expressions-without-trailing-closures-or-member-references-compound-name"},{"include":"#conditionals"},{"include":"#keywords"},{"include":"#expressions-without-trailing-closures-or-member-references-availability-condition"},{"include":"#expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression"},{"include":"#expressions-without-trailing-closures-or-member-references-macro-expansion"},{"include":"#expressions-without-trailing-closures-or-member-references-subscript-expression"},{"include":"#expressions-without-trailing-closures-or-member-references-parenthesized-expression"},{"match":"\\\\b_\\\\b","name":"support.variable.discard-value.swift"}]},"expressions-without-trailing-closures-or-member-references-availability-condition":{"begin":"\\\\B(#(?:un)?available)(\\\\()","beginCaptures":{"1":{"name":"support.function.availability-condition.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"captures":{"1":{"name":"keyword.other.platform.os.swift"},"2":{"name":"constant.numeric.swift"}},"match":"\\\\s*\\\\b((?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\\\\b\\\\s+([0-9]+(?:\\\\.[0-9]+)*)\\\\b"},{"captures":{"1":{"name":"keyword.other.platform.all.swift"},"2":{"name":"invalid.illegal.character-not-allowed-here.swift"}},"match":"(\\\\*)\\\\s*(.*?)(?=[),])"},{"match":"[^),\\\\s]+","name":"invalid.illegal.character-not-allowed-here.swift"}]},"expressions-without-trailing-closures-or-member-references-closure-parameter":{"match":"\\\\$[0-9]+","name":"variable.language.closure-parameter.swift"},"expressions-without-trailing-closures-or-member-references-compound-name":{"captures":{"1":{"name":"entity.name.function.compound-name.swift"},"2":{"name":"punctuation.definition.entity.swift"},"3":{"name":"punctuation.definition.entity.swift"},"4":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.swift"},"2":{"name":"punctuation.definition.entity.swift"}},"match":"(?<q>`?)(?!_:)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>):","name":"entity.name.function.compound-name.swift"}]}},"match":"((?<q1>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q1>))\\\\(((((?<q2>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q2>)):)+)\\\\)"},"expressions-without-trailing-closures-or-member-references-expression-element-list":{"patterns":[{"include":"#comments"},{"begin":"((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(:)","beginCaptures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"(?=[]),])","patterns":[{"include":"#expressions"}]},{"begin":"(?![]),])(?=\\\\S)","end":"(?=[]),])","patterns":[{"include":"#expressions"}]}]},"expressions-without-trailing-closures-or-member-references-function-or-macro-call-expression":{"patterns":[{"begin":"(#?(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"support.function.any-method.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"},"4":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.function-call.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},{"begin":"(?<=[])>_`}\\\\p{L}\\\\p{N}\\\\p{M}])\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.function-call.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]}]},"expressions-without-trailing-closures-or-member-references-macro-expansion":{"match":"(#(?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))","name":"support.function.any-method.swift"},"expressions-without-trailing-closures-or-member-references-parenthesized-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.tuple.begin.swift"}},"end":"(\\\\))\\\\s*((?:\\\\b(?:async|throws|rethrows)\\\\s)*)","endCaptures":{"1":{"name":"punctuation.section.tuple.end.swift"},"2":{"patterns":[{"match":"\\\\brethrows\\\\b","name":"invalid.illegal.rethrows-only-allowed-on-function-declarations.swift"},{"include":"#async-throws"}]}},"patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},"expressions-without-trailing-closures-or-member-references-subscript-expression":{"begin":"(?<=[_`\\\\p{L}\\\\p{N}\\\\p{M}])\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.swift"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"name":"meta.subscript-expression.swift","patterns":[{"include":"#expressions-without-trailing-closures-or-member-references-expression-element-list"}]},"keywords":{"patterns":[{"match":"(?<!\\\\.)\\\\b(?:if|else|guard|where|switch|case|default|fallthrough)\\\\b","name":"keyword.control.branch.swift"},{"match":"(?<!\\\\.)\\\\b(?:continue|break|fallthrough|return|yield)\\\\b","name":"keyword.control.transfer.swift"},{"match":"(?<!\\\\.)\\\\b(?:while|for|in|each)\\\\b","name":"keyword.control.loop.swift"},{"match":"(?<=\\\\s)\\\\bof\\\\b(?=\\\\s+[(\\\\[_\\\\p{L}\\\\d\\\\p{N}\\\\p{M}])","name":"keyword.other.inline-array.swift"},{"match":"\\\\bany\\\\b(?=\\\\s*`?[_\\\\p{L}])","name":"keyword.other.operator.type.existential.swift"},{"captures":{"1":{"name":"keyword.control.loop.swift"},"2":{"name":"punctuation.whitespace.trailing.repeat.swift"}},"match":"(?<!\\\\.)\\\\b(repeat)\\\\b(\\\\s*)"},{"match":"(?<!\\\\.)\\\\bdefer\\\\b","name":"keyword.control.defer.swift"},{"captures":{"1":{"name":"invalid.illegal.try-must-precede-await.swift"},"2":{"name":"keyword.control.await.swift"}},"match":"(?<!\\\\.)\\\\b(?:(await\\\\s+try)|(await))\\\\b"},{"match":"(?<!\\\\.)\\\\b(?:catch|throw|try)\\\\b|\\\\btry[!?]\\\\B","name":"keyword.control.exception.swift"},{"match":"(?<!\\\\.)\\\\b(?:|re)throws\\\\b","name":"storage.modifier.exception.swift"},{"captures":{"1":{"name":"keyword.control.exception.swift"},"2":{"name":"punctuation.whitespace.trailing.do.swift"}},"match":"(?<!\\\\.)\\\\b(do)\\\\b(\\\\s*)"},{"captures":{"1":{"name":"storage.modifier.async.swift"},"2":{"name":"keyword.other.declaration-specifier.swift"}},"match":"(?<!\\\\.)\\\\b(?:(async)\\\\s+)?(let|var)\\\\b"},{"match":"(?<!\\\\.)\\\\b(?:associatedtype|operator|typealias)\\\\b","name":"keyword.other.declaration-specifier.swift"},{"match":"(?<!\\\\.)\\\\b(class|enum|extension|precedencegroup|protocol|struct|actor)\\\\b(?=\\\\s*`?[_\\\\p{L}])","name":"storage.type.$1.swift"},{"match":"(?<!\\\\.)\\\\b(?:inout|static|final|lazy|mutating|nonmutating|optional|indirect|required|override|dynamic|convenience|infix|prefix|postfix|distributed|nonisolated|borrowing|consuming)\\\\b","name":"storage.modifier.swift"},{"match":"\\\\binit[!?]|\\\\binit\\\\b|(?<!\\\\.)\\\\b(?:func|deinit|subscript|didSet|get|set|willSet|yielding\\\\s+borrow|yielding\\\\s+mutate)\\\\b","name":"storage.type.function.swift"},{"match":"(?<!\\\\.)\\\\b(?:fileprivate|private|internal|public|open|package)\\\\b","name":"keyword.other.declaration-specifier.accessibility.swift"},{"match":"(?<!\\\\.)\\\\bunowned\\\\((?:|un)safe\\\\)|(?<!\\\\.)\\\\b(?:weak|unowned)\\\\b","name":"keyword.other.capture-specifier.swift"},{"captures":{"1":{"name":"keyword.other.type.swift"},"2":{"name":"keyword.other.type.metatype.swift"}},"match":"(?<=\\\\.)(?:(dynamicType|self)|(Protocol|Type))\\\\b"},{"match":"(?<!\\\\.)\\\\b(?:super|self|Self)\\\\b","name":"variable.language.swift"},{"match":"(?:\\\\B#(?:file|filePath|fileID|line|column|function|dsohandle)|\\\\b__(?:FILE|LINE|COLUMN|FUNCTION|DSO_HANDLE)__)\\\\b","name":"support.variable.swift"},{"match":"(?<!\\\\.)\\\\bimport\\\\b","name":"keyword.control.import.swift"},{"match":"(?<!\\\\.)\\\\bconsume(?=\\\\s+`?[_\\\\p{L}])","name":"keyword.control.consume.swift"},{"match":"(?<!\\\\.)\\\\bcopy(?=\\\\s+`?[_\\\\p{L}])","name":"keyword.control.copy.swift"}]},"literals":{"patterns":[{"include":"#literals-boolean"},{"include":"#literals-numeric"},{"include":"#literals-string"},{"match":"\\\\bnil\\\\b","name":"constant.language.nil.swift"},{"match":"\\\\B#((?:color|image|file)Literal)\\\\b","name":"support.function.object-literal.swift"},{"match":"\\\\B#externalMacro\\\\b","name":"support.function.builtin-macro.swift"},{"match":"\\\\B#keyPath\\\\b","name":"support.function.key-path.swift"},{"begin":"\\\\B(#selector)(\\\\()(?:\\\\s*([gs]etter)\\\\s*(:))?","beginCaptures":{"1":{"name":"support.function.selector-reference.swift"},"2":{"name":"punctuation.definition.arguments.begin.swift"},"3":{"name":"support.variable.parameter.swift"},"4":{"name":"punctuation.separator.argument-label.swift"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.arguments.end.swift"}},"patterns":[{"include":"#expressions"}]},{"include":"#literals-regular-expression-literal"}]},"literals-boolean":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.swift"},"literals-numeric":{"patterns":[{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)[0-9][0-9_]*(?=\\\\.[0-9]|[Ee])(?:\\\\.[0-9][0-9_]*)?(?:[Ee][-+]?[0-9][0-9_]*)?\\\\b(?!\\\\.[0-9])","name":"constant.numeric.float.decimal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)(0x\\\\h[_\\\\h]*)(?:\\\\.\\\\h[_\\\\h]*)?[Pp][-+]?[0-9][0-9_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.float.hexadecimal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)(0x\\\\h[_\\\\h]*)(?:\\\\.\\\\h[_\\\\h]*)?[Pp][-+]?\\\\w*\\\\b(?!\\\\.[0-9])","name":"invalid.illegal.numeric.float.invalid-exponent.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)(0x\\\\h[_\\\\h]*)\\\\.[0-9][.\\\\w]*","name":"invalid.illegal.numeric.float.missing-exponent.swift"},{"match":"(?<=\\\\s|^)-?\\\\.[0-9][.\\\\w]*","name":"invalid.illegal.numeric.float.missing-leading-zero.swift"},{"match":"(\\\\B-|\\\\b)0[box]_[_\\\\h]*(?:[EPep][-+]?\\\\w+)?[.\\\\w]+","name":"invalid.illegal.numeric.leading-underscore.swift"},{"match":"(?<=[]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)[0-9]+\\\\b"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)0b[01][01_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.binary.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)0o[0-7][0-7_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.octal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)[0-9][0-9_]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.decimal.swift"},{"match":"(\\\\B-|\\\\b)(?<![]()\\\\[_{}\\\\p{L}\\\\p{N}\\\\p{M}]\\\\.)0x\\\\h[_\\\\h]*\\\\b(?!\\\\.[0-9])","name":"constant.numeric.integer.hexadecimal.swift"},{"match":"(\\\\B-|\\\\b)[0-9][.\\\\w]*","name":"invalid.illegal.numeric.other.swift"}]},"literals-regular-expression-literal":{"patterns":[{"begin":"(#+)/\\\\n","end":"/\\\\1","name":"string.regexp.block.swift","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"},{"include":"#literals-regular-expression-literal-line-comment"}]},{"captures":{"0":{"patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},"1":{"name":"punctuation.definition.string.begin.regexp.swift"},"3":{"name":"punctuation.definition.string.end.regexp.swift"}},"match":"(/)(?!\\\\s)(?!/)(?:\\\\\\\\\\\\s(?=/)|(?<guts>(?>(?:\\\\\\\\Q(?:(?!\\\\\\\\E)(?!/).)*+(?:\\\\\\\\E|(?=/))|\\\\\\\\.|\\\\(\\\\?#[^)]*\\\\)|\\\\(\\\\?(?>\\\\{(?:[^{].*?|\\\\{[^{].*?}|\\\\{\\\\{[^{].*?}}|\\\\{\\\\{\\\\{[^{].*?}}}|\\\\{\\\\{\\\\{\\\\{[^{].*?}}}}|\\\\{\\\\{\\\\{\\\\{\\\\{.+?}}}}})})(?:\\\\[(?!\\\\d)\\\\w+])?[<>X]?\\\\)|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\])+])+])+])+]|\\\\(\\\\g<guts>?+\\\\)|(?:(?!/)[^()\\\\[\\\\\\\\])+)+))?+(?<!\\\\s))(/)","name":"string.regexp.line.swift"},{"captures":{"0":{"patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},"1":{"name":"punctuation.definition.string.begin.regexp.swift"},"4":{"name":"punctuation.definition.string.end.regexp.swift"},"5":{"name":"invalid.illegal.returns-not-allowed.regexp"}},"match":"((#+)/)(?<guts>(?>(?:\\\\\\\\Q(?:(?!\\\\\\\\E)(?!/\\\\2).)*+(?:\\\\\\\\E|(?=/\\\\2))|\\\\\\\\.|\\\\(\\\\?#[^)]*\\\\)|\\\\(\\\\?(?>\\\\{(?:[^{].*?|\\\\{[^{].*?}|\\\\{\\\\{[^{].*?}}|\\\\{\\\\{\\\\{[^{].*?}}}|\\\\{\\\\{\\\\{\\\\{[^{].*?}}}}|\\\\{\\\\{\\\\{\\\\{\\\\{.+?}}}}})})(?:\\\\[(?!\\\\d)\\\\w+])?[<>X]?\\\\)|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\]|\\\\[(?:\\\\\\\\.|[^]\\\\[\\\\\\\\])+])+])+])+]|\\\\(\\\\g<guts>?+\\\\)|(?:(?!/\\\\2)[^()\\\\[\\\\\\\\])+)+))?+(/\\\\2)|#+/.+(\\\\n)","name":"string.regexp.line.extended.swift"}]},"literals-regular-expression-literal-backreference-or-subpattern":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\g\\\\{)(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(})"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"constant.numeric.integer.decimal.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"}},"match":"(\\\\\\\\g)([-+]?\\\\d+)(?:([-+])(\\\\d+))?"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\[gk]<)(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(>)"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.numeric.integer.decimal.regexp"},"6":{"name":"keyword.operator.recursion-level.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\[gk]\')(?:((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?|([-+]?\\\\d+)(?:([-+])(\\\\d+))?)(\')"},{"captures":{"1":{"name":"constant.character.escape.backslash.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"constant.character.escape.backslash.regexp"}},"match":"(\\\\\\\\k\\\\{)((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?(})"},{"match":"\\\\\\\\[1-9][0-9]+","name":"keyword.other.back-reference.regexp"},{"captures":{"1":{"name":"keyword.other.back-reference.regexp"},"2":{"name":"variable.other.group-name.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.other.back-reference.regexp"}},"match":"(\\\\(\\\\?(?:P[=>]|&))((?!\\\\d)\\\\w+)(?:([-+])(\\\\d+))?(\\\\))"},{"match":"\\\\(\\\\?R\\\\)","name":"keyword.other.back-reference.regexp"},{"captures":{"1":{"name":"keyword.other.back-reference.regexp"},"2":{"name":"constant.numeric.integer.decimal.regexp"},"3":{"name":"keyword.operator.recursion-level.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.other.back-reference.regexp"}},"match":"(\\\\(\\\\?)([-+]?\\\\d+)(?:([-+])(\\\\d+))?(\\\\))"}]},"literals-regular-expression-literal-backtracking-directive-or-global-matching-option":{"captures":{"1":{"name":"keyword.control.directive.regexp"},"2":{"name":"keyword.control.directive.regexp"},"3":{"name":"keyword.control.directive.regexp"},"4":{"name":"variable.language.tag.regexp"},"5":{"name":"keyword.control.directive.regexp"},"6":{"name":"keyword.operator.assignment.regexp"},"7":{"name":"constant.numeric.integer.decimal.regexp"},"8":{"name":"keyword.control.directive.regexp"},"9":{"name":"keyword.control.directive.regexp"}},"match":"(\\\\(\\\\*)(?:(ACCEPT|FAIL|F|MARK(?=:)|(?=:)|COMMIT|PRUNE|SKIP|THEN)(?:(:)([^)]+))?|(LIMIT_(?:DEPTH|HEAP|MATCH))(=)(\\\\d+)|(CRLF|CR|ANYCRLF|ANY|LF|NUL|BSR_ANYCRLF|BSR_UNICODE|NOTEMPTY_ATSTART|NOTEMPTY|NO_AUTO_POSSESS|NO_DOTSTAR_ANCHOR|NO_JIT|NO_START_OPT|UTF|UCP))(\\\\))"},"literals-regular-expression-literal-callout":{"captures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.callout.regexp"},"3":{"name":"constant.numeric.integer.decimal.regexp"},"4":{"name":"entity.name.function.callout.regexp"},"5":{"name":"entity.name.function.callout.regexp"},"6":{"name":"entity.name.function.callout.regexp"},"7":{"name":"entity.name.function.callout.regexp"},"8":{"name":"entity.name.function.callout.regexp"},"9":{"name":"entity.name.function.callout.regexp"},"10":{"name":"entity.name.function.callout.regexp"},"11":{"name":"entity.name.function.callout.regexp"},"12":{"name":"punctuation.definition.group.regexp"},"13":{"name":"punctuation.definition.group.regexp"},"14":{"name":"keyword.control.callout.regexp"},"15":{"name":"entity.name.function.callout.regexp"},"16":{"name":"variable.language.tag-name.regexp"},"17":{"name":"punctuation.definition.group.regexp"},"18":{"name":"punctuation.definition.group.regexp"},"19":{"name":"keyword.control.callout.regexp"},"21":{"name":"variable.language.tag-name.regexp"},"22":{"name":"keyword.control.callout.regexp"},"23":{"name":"punctuation.definition.group.regexp"}},"match":"(\\\\()(?<keyw>\\\\?C)(?:(?<num>\\\\d+)|`(?<name>(?:[^`]|``)*)`|\'(?<name>(?:[^\']|\'\')*)\'|\\"(?<name>(?:[^\\"]|\\"\\")*)\\"|\\\\^(?<name>(?:[^^]|\\\\^\\\\^)*)\\\\^|%(?<name>(?:[^%]|%%)*)%|#(?<name>(?:[^#]|##)*)#|\\\\$(?<name>(?:[^$]|\\\\$\\\\$)*)\\\\$|\\\\{(?<name>(?:[^}]|}})*)})?(\\\\))|(\\\\()(?<keyw>\\\\*)(?<name>(?!\\\\d)\\\\w+)(?:\\\\[(?<tag>(?!\\\\d)\\\\w+)])?(?:\\\\{[^,}]+(?:,[^,}]+)*})?(\\\\))|(\\\\()(?<keyw>\\\\?)(?>(\\\\{(?:\\\\g<20>|(?!\\\\{).*?)}))(?:\\\\[(?<tag>(?!\\\\d)\\\\w+)])?(?<keyw>[<>X]?)(\\\\))","name":"meta.callout.regexp"},"literals-regular-expression-literal-character-properties":{"captures":{"1":{"name":"support.variable.character-property.regexp"},"2":{"name":"punctuation.definition.character-class.regexp"},"3":{"name":"support.variable.character-property.regexp"},"4":{"name":"punctuation.definition.character-class.regexp"}},"match":"\\\\\\\\[Pp]\\\\{([-\\\\s\\\\w]+(?:=[-\\\\s\\\\w]+)?)}|(\\\\[:)([-\\\\s\\\\w]+(?:=[-\\\\s\\\\w]+)?)(:])","name":"constant.other.character-class.set.regexp"},"literals-regular-expression-literal-custom-char-class":{"patterns":[{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"include":"#literals-regular-expression-literal-custom-char-class-members"}]}]},"literals-regular-expression-literal-custom-char-class-members":{"patterns":[{"match":"\\\\\\\\b","name":"constant.character.escape.backslash.regexp"},{"include":"#literals-regular-expression-literal-custom-char-class"},{"include":"#literals-regular-expression-literal-quote"},{"include":"#literals-regular-expression-literal-set-operators"},{"include":"#literals-regular-expression-literal-unicode-scalars"},{"include":"#literals-regular-expression-literal-character-properties"}]},"literals-regular-expression-literal-group-option-toggle":{"match":"\\\\(\\\\?(?:\\\\^(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})+|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*-(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*)\\\\)","name":"keyword.other.option-toggle.regexp"},"literals-regular-expression-literal-group-or-conditional":{"patterns":[{"begin":"(\\\\()(\\\\?~)","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.conditional.absent.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.absent.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},{"begin":"(\\\\()(?<cond>\\\\?\\\\()(?:(?<NumberRef>(?<num>[-+]?\\\\d+)(?:(?<op>[-+])(?<num>\\\\d+))?)|(?<cond>R)\\\\g<NumberRef>?|(?<cond>R&)(?<NamedRef>(?<name>(?!\\\\d)\\\\w+)(?:(?<op>[-+])(?<num>\\\\d+))?)|(?<cond><)(?:\\\\g<NamedRef>|\\\\g<NumberRef>)(?<cond>>)|(?<cond>\')(?:\\\\g<NamedRef>|\\\\g<NumberRef>)(?<cond>\')|(?<cond>DEFINE)|(?<cond>VERSION)(?<compar>>?=)(?<num>\\\\d+\\\\.\\\\d+))(?<cond>\\\\))|(\\\\()(?<cond>\\\\?)(?=\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.control.conditional.regexp"},"4":{"name":"constant.numeric.integer.decimal.regexp"},"5":{"name":"keyword.operator.recursion-level.regexp"},"6":{"name":"constant.numeric.integer.decimal.regexp"},"7":{"name":"keyword.control.conditional.regexp"},"8":{"name":"keyword.control.conditional.regexp"},"10":{"name":"variable.other.group-name.regexp"},"11":{"name":"keyword.operator.recursion-level.regexp"},"12":{"name":"constant.numeric.integer.decimal.regexp"},"13":{"name":"keyword.control.conditional.regexp"},"14":{"name":"keyword.control.conditional.regexp"},"15":{"name":"keyword.control.conditional.regexp"},"16":{"name":"keyword.control.conditional.regexp"},"17":{"name":"keyword.control.conditional.regexp"},"18":{"name":"keyword.control.conditional.regexp"},"19":{"name":"keyword.operator.comparison.regexp"},"20":{"name":"constant.numeric.integer.decimal.regexp"},"21":{"name":"keyword.control.conditional.regexp"},"22":{"name":"punctuation.definition.group.regexp"},"23":{"name":"keyword.control.conditional.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.conditional.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]},{"begin":"(\\\\()((\\\\?)(?:([!*:=>|]|<[!*=])|P?<(?:((?!\\\\d)\\\\w+)(-))?((?!\\\\d)\\\\w+)>|\'(?:((?!\\\\d)\\\\w+)(-))?((?!\\\\d)\\\\w+)\'|(?:\\\\^(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})+|(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*-(?:[DJPSUWimnswx]|xx|y\\\\{[gw]})*):)|\\\\*(atomic|pla|positive_lookahead|nla|negative_lookahead|plb|positive_lookbehind|nlb|negative_lookbehind|napla|non_atomic_positive_lookahead|naplb|non_atomic_positive_lookbehind|sr|script_run|asr|atomic_script_run):)?+","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"keyword.other.group-options.regexp"},"3":{"name":"punctuation.definition.group.regexp"},"4":{"name":"punctuation.definition.group.regexp"},"5":{"name":"variable.other.group-name.regexp"},"6":{"name":"keyword.operator.balancing-group.regexp"},"7":{"name":"variable.other.group-name.regexp"},"8":{"name":"variable.other.group-name.regexp"},"9":{"name":"keyword.operator.balancing-group.regexp"},"10":{"name":"variable.other.group-name.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#literals-regular-expression-literal-regex-guts"}]}]},"literals-regular-expression-literal-line-comment":{"captures":{"1":{"name":"punctuation.definition.comment.regexp"}},"match":"(#).*$","name":"comment.line.regexp"},"literals-regular-expression-literal-quote":{"begin":"\\\\\\\\Q","beginCaptures":{"0":{"name":"constant.character.escape.backslash.regexp"}},"end":"\\\\\\\\E|(\\\\n)","endCaptures":{"0":{"name":"constant.character.escape.backslash.regexp"},"1":{"name":"invalid.illegal.returns-not-allowed.regexp"}},"name":"string.quoted.other.regexp.swift"},"literals-regular-expression-literal-regex-guts":{"patterns":[{"include":"#literals-regular-expression-literal-quote"},{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.end.regexp"}},"name":"comment.block.regexp"},{"begin":"<\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.regexp"}},"end":"}>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.regexp"}},"name":"meta.embedded.expression.regexp"},{"include":"#literals-regular-expression-literal-unicode-scalars"},{"include":"#literals-regular-expression-literal-character-properties"},{"match":"[$^]|\\\\\\\\[ABGYZbyz]|\\\\\\\\K","name":"keyword.control.anchor.regexp"},{"include":"#literals-regular-expression-literal-backtracking-directive-or-global-matching-option"},{"include":"#literals-regular-expression-literal-callout"},{"include":"#literals-regular-expression-literal-backreference-or-subpattern"},{"match":"\\\\.|\\\\\\\\[CDHNORSVWXdhsvw]","name":"constant.character.character-class.regexp"},{"match":"\\\\\\\\c.","name":"constant.character.entity.control-character.regexp"},{"match":"\\\\\\\\[^c]","name":"constant.character.escape.backslash.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"match":"[*+?]","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\{(?:\\\\s*\\\\d+\\\\s*(?:,\\\\s*\\\\d*\\\\s*)?}|\\\\s*,\\\\s*\\\\d+\\\\s*})","name":"keyword.operator.quantifier.regexp"},{"include":"#literals-regular-expression-literal-custom-char-class"},{"include":"#literals-regular-expression-literal-group-option-toggle"},{"include":"#literals-regular-expression-literal-group-or-conditional"}]},"literals-regular-expression-literal-set-operators":{"patterns":[{"match":"&&","name":"keyword.operator.intersection.regexp.swift"},{"match":"--","name":"keyword.operator.subtraction.regexp.swift"},{"match":"~~","name":"keyword.operator.symmetric-difference.regexp.swift"}]},"literals-regular-expression-literal-unicode-scalars":{"match":"\\\\\\\\(?:u\\\\{\\\\s*(?:\\\\h+\\\\s*)+}|u\\\\h{4}|x\\\\{\\\\h+}|x\\\\h{0,2}|U\\\\h{8}|o\\\\{[0-7]+}|0[0-7]{0,3}|N\\\\{(?:U\\\\+\\\\h{1,8}|[-\\\\s\\\\w]+)})","name":"constant.character.numeric.regexp"},"literals-string":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"},{"match":"\\\\\\\\\\\\s*\\\\n","name":"constant.character.escape.newline.swift"},{"include":"#literals-string-string-guts"},{"match":"\\\\S((?!\\\\\\\\\\\\().)*(?=\\"\\"\\")","name":"invalid.illegal.content-before-closing-delimiter.swift"}]},{"begin":"#\\"\\"\\"(?!#)(?=(?:[^\\"]|\\"(?!#))*$)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"#(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.raw.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"},{"match":"\\\\\\\\#\\\\s*\\\\n","name":"constant.character.escape.newline.swift"},{"include":"#literals-string-raw-string-guts"},{"match":"\\\\S((?!\\\\\\\\#\\\\().)*(?=\\"\\"\\")","name":"invalid.illegal.content-before-closing-delimiter.swift"}]},{"begin":"(?<!#)(##+)\\"\\"\\"(?!\\\\1)(?=(?:[^\\"]|\\"(?!\\\\1))*$)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"\\"\\"\\\\1(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.block.raw.swift","patterns":[{"match":"\\\\G(?:.+(?=\\"\\"\\")|.+)","name":"invalid.illegal.content-after-opening-delimiter.swift"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.swift"}},"end":"\\"(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"},{"include":"#literals-string-string-guts"}]},{"begin":"(?<!#)(##+)\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.raw.swift"}},"end":"\\"\\\\1(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.raw.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.raw.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"}]},{"begin":"#\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.raw.swift"}},"end":"\\"#(#*)","endCaptures":{"0":{"name":"punctuation.definition.string.end.raw.swift"},"1":{"name":"invalid.illegal.extra-closing-delimiter.swift"}},"name":"string.quoted.double.single-line.raw.swift","patterns":[{"match":"[\\\\n\\\\r]","name":"invalid.illegal.returns-not-allowed.swift"},{"include":"#literals-string-raw-string-guts"}]}]},"literals-string-raw-string-guts":{"patterns":[{"match":"\\\\\\\\#[\\"\'0\\\\\\\\nrt]","name":"constant.character.escape.swift"},{"match":"\\\\\\\\#u\\\\{\\\\h{1,8}}","name":"constant.character.escape.unicode.swift"},{"begin":"\\\\\\\\#\\\\(","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.swift"}},"contentName":"source.swift","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.swift"}},"name":"meta.embedded.line.swift","patterns":[{"include":"$self"},{"begin":"\\\\(","end":"\\\\)"}]},{"match":"\\\\\\\\#.","name":"invalid.illegal.escape-not-recognized"}]},"literals-string-string-guts":{"patterns":[{"match":"\\\\\\\\[\\"\'0\\\\\\\\nrt]","name":"constant.character.escape.swift"},{"match":"\\\\\\\\u\\\\{\\\\h{1,8}}","name":"constant.character.escape.unicode.swift"},{"begin":"\\\\\\\\\\\\(","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.swift"}},"contentName":"source.swift","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.embedded.end.swift"}},"name":"meta.embedded.line.swift","patterns":[{"include":"$self"},{"begin":"\\\\(","end":"\\\\)"}]},{"match":"\\\\\\\\.","name":"invalid.illegal.escape-not-recognized"}]},"member-reference":{"patterns":[{"captures":{"1":{"name":"variable.other.swift"},"2":{"name":"punctuation.definition.identifier.swift"},"3":{"name":"punctuation.definition.identifier.swift"}},"match":"(?<=\\\\.)((?<q>`?)[_\\\\p{L}][_\\\\p{L}\\\\p{N}\\\\p{M}]*(\\\\k<q>))"}]},"operators":{"patterns":[{"match":"\\\\b(is\\\\b|as([!?]\\\\B|\\\\b))","name":"keyword.operator.type-casting.swift"},{"begin":"(?=(?<oph>[-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030])|\\\\.(\\\\g<oph>|[.\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))","end":"(?!\\\\G)","patterns":[{"captures":{"0":{"patterns":[{"match":"\\\\G(\\\\+\\\\+|--)$","name":"keyword.operator.increment-or-decrement.swift"},{"match":"\\\\G([-+])$","name":"keyword.operator.arithmetic.unary.swift"},{"match":"\\\\G!$","name":"keyword.operator.logical.not.swift"},{"match":"\\\\G~$","name":"keyword.operator.bitwise.not.swift"},{"match":".+","name":"keyword.operator.custom.prefix.swift"}]}},"match":"\\\\G(?<=^|[(,:;\\\\[{\\\\s])((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?![]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":"\\\\G(\\\\+\\\\+|--)$","name":"keyword.operator.increment-or-decrement.swift"},{"match":"\\\\G!$","name":"keyword.operator.increment-or-decrement.swift"},{"match":".+","name":"keyword.operator.custom.postfix.swift"}]}},"match":"\\\\G(?<!^|[(,:;\\\\[{\\\\s])((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?=[]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":"\\\\G=$","name":"keyword.operator.assignment.swift"},{"match":"\\\\G([-%*+/]|<<|>>|[\\\\&^|]|&&|\\\\|\\\\|)=$","name":"keyword.operator.assignment.compound.swift"},{"match":"\\\\G([-*+/])$","name":"keyword.operator.arithmetic.swift"},{"match":"\\\\G&([-*+])$","name":"keyword.operator.arithmetic.overflow.swift"},{"match":"\\\\G%$","name":"keyword.operator.arithmetic.remainder.swift"},{"match":"\\\\G(==|!=|[<>]|>=|<=|~=)$","name":"keyword.operator.comparison.swift"},{"match":"\\\\G\\\\?\\\\?$","name":"keyword.operator.coalescing.swift"},{"match":"\\\\G(&&|\\\\|\\\\|)$","name":"keyword.operator.logical.swift"},{"match":"\\\\G([\\\\&^|]|<<|>>)$","name":"keyword.operator.bitwise.swift"},{"match":"\\\\G([!=]==)$","name":"keyword.operator.bitwise.swift"},{"match":"\\\\G\\\\?$","name":"keyword.operator.ternary.swift"},{"match":".+","name":"keyword.operator.custom.infix.swift"}]}},"match":"\\\\G((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+/<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++"},{"captures":{"0":{"patterns":[{"match":".+","name":"keyword.operator.custom.prefix.dot.swift"}]}},"match":"\\\\G(?<=^|[(,:;\\\\[{\\\\s])\\\\.((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+./<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?![]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":".+","name":"keyword.operator.custom.postfix.dot.swift"}]}},"match":"\\\\G(?<!^|[(,:;\\\\[{\\\\s])\\\\.((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+./<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++(?=[]),:;}\\\\s]|\\\\z)"},{"captures":{"0":{"patterns":[{"match":"\\\\G\\\\.\\\\.[.<]$","name":"keyword.operator.range.swift"},{"match":".+","name":"keyword.operator.custom.infix.dot.swift"}]}},"match":"\\\\G\\\\.((?!(//|/\\\\*|\\\\*/))([-!%\\\\&*+./<-?^|~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u0300-\u036F\u1DC0-\u1DFF\u2016\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u20D0-\u20FF\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001\u3002\u3003\u3008-\u3030\uFE00-\uFE0F\uFE20-\uFE2F\\\\x{E0100}-\\\\x{E01EF}]))++"}]},{"match":":","name":"keyword.operator.ternary.swift"}]},"root":{"patterns":[{"include":"#compiler-control"},{"include":"#declarations"},{"include":"#expressions"}]}},"scopeName":"source.swift"}')),r$e=[n$e]});var une={};fn(une,{default:()=>o$e});var i$e,o$e,dne=tr(()=>{i$e=Object.freeze(JSON.parse(`{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"''","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}`)),o$e=[i$e]});var pne={};fn(pne,{default:()=>s$e});var a$e,s$e,mne=tr(()=>{a$e=Object.freeze(JSON.parse(`{"displayName":"TOML","fileTypes":["toml"],"name":"toml","patterns":[{"include":"#comments"},{"include":"#groups"},{"include":"#key_pair"},{"include":"#invalid"}],"repository":{"comments":{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.toml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.toml"}},"end":"\\\\n","name":"comment.line.number-sign.toml"}]},"groups":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.section.begin.toml"},"2":{"patterns":[{"match":"[^.\\\\s]+","name":"entity.name.section.toml"}]},"3":{"name":"punctuation.definition.section.begin.toml"}},"match":"^\\\\s*(\\\\[)([^]\\\\[]*)(])","name":"meta.group.toml"},{"captures":{"1":{"name":"punctuation.definition.section.begin.toml"},"2":{"patterns":[{"match":"[^.\\\\s]+","name":"entity.name.section.toml"}]},"3":{"name":"punctuation.definition.section.begin.toml"}},"match":"^\\\\s*(\\\\[\\\\[)([^]\\\\[]*)(]])","name":"meta.group.double.toml"}]},"invalid":{"match":"\\\\S+(\\\\s*(?=\\\\S))?","name":"invalid.illegal.not-allowed-here.toml"},"key_pair":{"patterns":[{"begin":"([-0-9A-Z_a-z]+)\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml"},"2":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]},{"begin":"((\\")(.*?)(\\"))\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml"},"2":{"name":"punctuation.definition.variable.begin.toml"},"3":{"patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"},{"match":"\\"","name":"invalid.illegal.not-allowed-here.toml"}]},"4":{"name":"punctuation.definition.variable.end.toml"},"5":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]},{"begin":"((')([^']*)('))\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml"},"2":{"name":"punctuation.definition.variable.begin.toml"},"4":{"name":"punctuation.definition.variable.end.toml"},"5":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]},{"begin":"(((?:[-0-9A-Z_a-z]+|\\"(?:[^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'[^']*')(?:\\\\s*\\\\.\\\\s*|(?=\\\\s*=))){2,})\\\\s*(=)\\\\s*","captures":{"1":{"name":"variable.other.key.toml","patterns":[{"match":"\\\\.","name":"punctuation.separator.variable.toml"},{"captures":{"1":{"name":"punctuation.definition.variable.begin.toml"},"2":{"patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"}]},"3":{"name":"punctuation.definition.variable.end.toml"}},"match":"(\\")((?:[^\\"\\\\\\\\]|\\\\\\\\.)*)(\\")"},{"captures":{"1":{"name":"punctuation.definition.variable.begin.toml"},"2":{"name":"punctuation.definition.variable.end.toml"}},"match":"(')[^']*(')"}]},"3":{"name":"punctuation.separator.key-value.toml"}},"end":"(?<=\\\\S)(?<!=)|$","patterns":[{"include":"#primatives"}]}]},"primatives":{"patterns":[{"begin":"\\\\G\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"\\"{3,5}","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.triple.double.toml","patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\\\n\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"}]},{"begin":"\\\\G\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.double.toml","patterns":[{"match":"\\\\\\\\([\\"\\\\\\\\bfnrt]|u\\\\h{4}|U\\\\h{8})","name":"constant.character.escape.toml"},{"match":"\\\\\\\\[^\\"\\\\\\\\bfnrt]","name":"invalid.illegal.escape.toml"}]},{"begin":"\\\\G'''","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"'{3,5}","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.triple.single.toml"},{"begin":"\\\\G'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.toml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.toml"}},"name":"string.quoted.single.toml"},{"match":"\\\\G[0-9]{4}-(0[1-9]|1[012])-(?!00|3[2-9])[0-3][0-9]([ Tt](?!2[5-9])[012][0-9]:[0-5][0-9]:(?!6[1-9])[0-6][0-9](\\\\.[0-9]+)?(Z|[-+](?!2[5-9])[012][0-9]:[0-5][0-9])?)?","name":"constant.other.date.toml"},{"match":"\\\\G(?!2[5-9])[012][0-9]:[0-5][0-9]:(?!6[1-9])[0-6][0-9](\\\\.[0-9]+)?","name":"constant.other.time.toml"},{"match":"\\\\G(true|false)","name":"constant.language.boolean.toml"},{"match":"\\\\G0x\\\\h(_??\\\\h)*","name":"constant.numeric.hex.toml"},{"match":"\\\\G0o[0-7]([0-7]|_[0-7])*","name":"constant.numeric.octal.toml"},{"match":"\\\\G0b[01]([01]|_[01])*","name":"constant.numeric.binary.toml"},{"match":"\\\\G[-+]?(inf|nan)","name":"constant.numeric.toml"},{"match":"\\\\G([-+]?(0|([1-9](([0-9]|_[0-9])+)?)))(?=[.Ee])(\\\\.([0-9](([0-9]|_[0-9])+)?))?([Ee]([-+]?[0-9](([0-9]|_[0-9])+)?))?","name":"constant.numeric.float.toml"},{"match":"\\\\G([-+]?(0|([1-9](([0-9]|_[0-9])+)?)))","name":"constant.numeric.integer.toml"},{"begin":"\\\\G\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.toml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.toml"}},"name":"meta.array.toml","patterns":[{"begin":"(?=[\\"']|[-+]?[0-9]|[-+]?(inf|nan)|true|false|[\\\\[{])","end":",|(?=])","endCaptures":{"0":{"name":"punctuation.separator.array.toml"}},"patterns":[{"include":"#primatives"},{"include":"#comments"},{"include":"#invalid"}]},{"include":"#comments"},{"include":"#invalid"}]},{"begin":"\\\\G\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.inline-table.begin.toml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.inline-table.end.toml"}},"name":"meta.inline-table.toml","patterns":[{"begin":"(?=\\\\S)","end":",|(?=})","endCaptures":{"0":{"name":"punctuation.separator.inline-table.toml"}},"patterns":[{"include":"#key_pair"}]},{"include":"#comments"}]}]}},"scopeName":"source.toml"}`)),s$e=[a$e]});var fne={};fn(fne,{default:()=>c$e});var l$e,c$e,hne=tr(()=>{l$e=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^]]*(])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\\"\'`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?i)\\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?|\\\\b(timestamp)(s|tz)?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with(?:|out))\\\\stime\\\\szone\\\\b)?"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\s+(delete|update)(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|[<>]","name":"keyword.operator.comparison.sql"},{"match":"[-+/]","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdevp??|varp??)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b((?:bit_coun|get_bi|left_shif|right_shif|set_bi)t)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.vector.sql"}},"match":"(?i)\\\\b(vector_(?:distance|norm|normalize))\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime2??|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|sessions??|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablockx??|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|top??|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|values??|varbinary|varchar|vector|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|windows??|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^}]*)(})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(N)?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(`)[^\\\\\\\\`]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),c$e=[l$e]});var gne={};fn(gne,{default:()=>d$e});var u$e,d$e,bne=tr(()=>{u$e=Object.freeze(JSON.parse('{"displayName":"Diff","name":"diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\\\*{15})|(={67})|(-{3}))$\\\\n?","name":"meta.separator.diff"},{"match":"^\\\\d+(,\\\\d+)*([acd])\\\\d+(,\\\\d+)*$\\\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\\\s*(.+?)\\\\s*(@@)($\\\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((-{3}) .+ (-{4}))|((\\\\*{3}) .+ (\\\\*{4})))$\\\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\\\S+\\\\s+\\\\S+).*$\\\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"^((((-{3}) .+)|((\\\\*{3}) .+))$\\\\n?|(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\\\+{3}) .+$\\\\n?| (-) .* (={4})$\\\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\\\+).*))$\\\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"end":"\\\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\\\.\\\\.[0-9a-f]{7,40}.*$\\\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\\\n?","name":"meta.diff.only-in"}],"scopeName":"source.diff"}')),d$e=[u$e]});var yne={};fn(yne,{default:()=>aP});var p$e,aP,sP=tr(()=>{p$e=Object.freeze(JSON.parse(`{"displayName":"C","name":"c","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-conditional"},{"include":"#predefined_macros"},{"include":"#comments"},{"include":"#switch_statement"},{"include":"#anon_pattern_1"},{"include":"#storage_types"},{"include":"#anon_pattern_2"},{"include":"#anon_pattern_3"},{"include":"#anon_pattern_4"},{"include":"#anon_pattern_5"},{"include":"#anon_pattern_6"},{"include":"#anon_pattern_7"},{"include":"#operators"},{"include":"#numbers"},{"include":"#strings"},{"include":"#anon_pattern_range_1"},{"include":"#anon_pattern_range_2"},{"include":"#anon_pattern_range_3"},{"include":"#pragma-mark"},{"include":"#anon_pattern_range_4"},{"include":"#anon_pattern_range_5"},{"include":"#anon_pattern_range_6"},{"include":"#anon_pattern_8"},{"include":"#anon_pattern_9"},{"include":"#anon_pattern_10"},{"include":"#anon_pattern_11"},{"include":"#anon_pattern_12"},{"include":"#anon_pattern_13"},{"include":"#block"},{"include":"#parens"},{"include":"#anon_pattern_range_7"},{"include":"#line_continuation_character"},{"include":"#anon_pattern_range_8"},{"include":"#anon_pattern_range_9"},{"include":"#anon_pattern_14"},{"include":"#anon_pattern_15"}],"repository":{"access-method":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))\\\\s*(?:(\\\\.)|(->))((?:[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(?:\\\\.|->))*)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(\\\\()","beginCaptures":{"1":{"name":"variable.object.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"match":"\\\\.","name":"punctuation.separator.dot-access.c"},{"match":"->","name":"punctuation.separator.pointer-access.c"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.object.c"},{"match":".+","name":"everything.else.c"}]},"5":{"name":"entity.name.function.member.c"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.function.member.c"}},"name":"meta.function-call.member.c","patterns":[{"include":"#function-call-innards"}]},"anon_pattern_1":{"match":"\\\\b(break|continue|do|else|for|goto|if|_Pragma|return|while)\\\\b","name":"keyword.control.c"},"anon_pattern_10":{"match":"\\\\b((?:int8|int16|int32|int64|uint8|uint16|uint32|uint64|int_least8|int_least16|int_least32|int_least64|uint_least8|uint_least16|uint_least32|uint_least64|int_fast8|int_fast16|int_fast32|int_fast64|uint_fast8|uint_fast16|uint_fast32|uint_fast64|intptr|uintptr|intmax|uintmax)_t)\\\\b","name":"support.type.stdint.c"},"anon_pattern_11":{"match":"\\\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\\\b","name":"support.constant.mac-classic.c"},"anon_pattern_12":{"match":"\\\\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\\\\b","name":"support.type.mac-classic.c"},"anon_pattern_13":{"match":"\\\\b([0-9A-Z_a-z]+_t)\\\\b","name":"support.type.posix-reserved.c"},"anon_pattern_14":{"match":";","name":"punctuation.terminator.statement.c"},"anon_pattern_15":{"match":",","name":"punctuation.separator.delimiter.c"},"anon_pattern_2":{"match":"typedef","name":"keyword.other.typedef.c"},"anon_pattern_3":{"match":"\\\\b(const|extern|register|restrict|static|volatile|inline)\\\\b","name":"storage.modifier.c"},"anon_pattern_4":{"match":"\\\\bk[A-Z]\\\\w*\\\\b","name":"constant.other.variable.mac-classic.c"},"anon_pattern_5":{"match":"\\\\bg[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.global.mac-classic.c"},"anon_pattern_6":{"match":"\\\\bs[A-Z]\\\\w*\\\\b","name":"variable.other.readwrite.static.mac-classic.c"},"anon_pattern_7":{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.c"},"anon_pattern_8":{"match":"\\\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\\\b","name":"support.type.sys-types.c"},"anon_pattern_9":{"match":"\\\\b(pthread_(?:attr_|cond_|condattr_|mutex_|mutexattr_|once_|rwlock_|rwlockattr_||key_)t)\\\\b","name":"support.type.pthread.c"},"anon_pattern_range_1":{"begin":"((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))((#)\\\\s*define)\\\\b\\\\s+((?<!\\\\w)[A-Z_a-z]\\\\w*(?!\\\\w))(?:(\\\\()([^()\\\\\\\\]+)(\\\\)))?","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.control.directive.define.c"},"6":{"name":"punctuation.definition.directive.c"},"7":{"name":"entity.name.function.preprocessor.c"},"8":{"name":"punctuation.definition.parameters.begin.c"},"9":{"patterns":[{"captures":{"1":{"name":"variable.parameter.preprocessor.c"}},"match":"(?<=[(,])\\\\s*((?<!\\\\w)[A-Z_a-z]\\\\w*(?!\\\\w))\\\\s*"},{"match":",","name":"punctuation.separator.parameters.c"},{"match":"\\\\.\\\\.\\\\.","name":"ellipses.c punctuation.vararg-ellipses.variable.parameter.preprocessor.c"}]},"10":{"name":"punctuation.definition.parameters.end.c"}},"end":"(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.macro.c","patterns":[{"include":"#preprocessor-rule-define-line-contents"}]},"anon_pattern_range_2":{"begin":"^\\\\s*((#)\\\\s*(error|warning))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.diagnostic.$3.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.diagnostic.c","patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.c","patterns":[{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.single.c","patterns":[{"include":"#line_continuation_character"}]},{"begin":"[^\\"']","end":"(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"string.unquoted.single.c","patterns":[{"include":"#line_continuation_character"},{"include":"#comments"}]}]},"anon_pattern_range_3":{"begin":"^\\\\s*((#)\\\\s*(i(?:nclude(?:_next)?|mport)))\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.control.directive.$3.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.include.c","patterns":[{"include":"#line_continuation_character"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.include.c"},{"begin":"<","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":">","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.other.lt-gt.include.c"}]},"anon_pattern_range_4":{"begin":"^\\\\s*((#)\\\\s*line)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.line.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},"anon_pattern_range_5":{"begin":"^\\\\s*((#)\\\\s*undef)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.undef.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.c"},{"include":"#line_continuation_character"}]},"anon_pattern_range_6":{"begin":"^\\\\s*((#)\\\\s*pragma)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.pragma.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=/[*/])|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.pragma.c","patterns":[{"include":"#strings"},{"match":"[$A-Z_a-z][-$\\\\w]*","name":"entity.other.attribute-name.pragma.preprocessor.c"},{"include":"#numbers"},{"include":"#line_continuation_character"}]},"anon_pattern_range_7":{"begin":"(?<!\\\\w)(?!\\\\s*(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|pthread_rwlock_t|atomic_uintptr_t|atomic_ptrdiff_t|atomic_uintmax_t|atomic_intmax_t|atomic_char32_t|atomic_intptr_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|uint_least8_t|int_least32_t|int_least16_t|pthread_key_t|uint_fast32_t|uint_fast64_t|uint_fast16_t|atomic_size_t|atomic_ushort|atomic_ullong|int_least64_t|atomic_ulong|int_least8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|memory_order|atomic_schar|atomic_uchar|atomic_short|atomic_llong|thread_local|atomic_bool|atomic_uint|atomic_long|int_fast8_t|suseconds_t|atomic_char|atomic_int|useconds_t|_Imaginary|uintmax_t|in_addr_t|in_port_t|_Noreturn|blksize_t|pthread_t|uintptr_t|volatile|u_quad_t|blkcnt_t|intmax_t|intptr_t|_Complex|uint16_t|uint32_t|uint64_t|_Alignof|_Alignas|continue|unsigned|restrict|intmax_t|register|int64_t|qaddr_t|segsz_t|_Atomic|alignas|default|caddr_t|nlink_t|typedef|u_short|fixpt_t|clock_t|swblk_t|ssize_t|alignof|daddr_t|int16_t|int32_t|uint8_t|struct|mode_t|size_t|time_t|ushort|u_long|u_char|int8_t|double|signed|static|extern|inline|return|switch|xor_eq|and_eq|bitand|not_eq|sizeof|quad_t|uid_t|bitor|union|off_t|key_t|ino_t|compl|u_int|short|const|false|while|float|pid_t|break|_Bool|or_eq|div_t|dev_t|gid_t|id_t|long|case|goto|else|bool|auto|id_t|enum|uint|true|NULL|void|char|for|not|int|and|xor|do|or|if)\\\\s*\\\\()(?=[A-Z_a-z]\\\\w*\\\\s*\\\\()","end":"(?!\\\\G)(?<=\\\\))","name":"meta.function.c","patterns":[{"include":"#function-innards"}]},"anon_pattern_range_8":{"begin":"([A-Z_a-z][0-9A-Z_a-z]*|(?<=[])]))?(\\\\[)(?!])","beginCaptures":{"1":{"name":"variable.object.c"},"2":{"name":"punctuation.definition.begin.bracket.square.c"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.end.bracket.square.c"}},"name":"meta.bracket.square.access.c","patterns":[{"include":"#function-call-innards"}]},"anon_pattern_range_9":{"match":"\\\\[\\\\s*]","name":"storage.modifier.array.bracket.square.c"},"backslash_escapes":{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3][0-7]{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.c"},"block":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"name":"meta.block.c","patterns":[{"include":"#block_innards"}]}]},"block_comment":{"patterns":[{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.c"}},"name":"comment.block.c"},{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.c"}},"name":"comment.block.c"}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-conditional-block"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#c_function_call"},{"begin":"(?=\\\\s)(?<!else|new|return)(?<=\\\\w)\\\\s+(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"variable.other.c"},"2":{"name":"punctuation.section.parens.begin.bracket.round.initialization.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.initialization.c"}},"name":"meta.initialization.c","patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"patterns":[{"include":"#block_innards"}]},{"include":"#parens-block"},{"include":"$self"}]},"c_conditional_context":{"patterns":[{"include":"$self"},{"include":"#block_innards"}]},"c_function_call":{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)","name":"meta.function-call.c","patterns":[{"include":"#function-call-innards"}]},"case_statement":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)case(?!\\\\w))","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.control.case.c"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.colon.case.c"}},"name":"meta.conditional.case.c","patterns":[{"include":"#evaluation_context"},{"include":"#c_conditional_context"}]},"comments":{"patterns":[{"patterns":[{"patterns":[{"begin":"^(?>\\\\s*)(//[!/]+)","beginCaptures":{"1":{"name":"punctuation.definition.comment.documentation.c"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","name":"comment.line.double-slash.documentation.c","patterns":[{"include":"#line_continuation_character"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},{"captures":{"1":{"name":"punctuation.definition.comment.begin.documentation.c"},"2":{"patterns":[{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},"3":{"name":"punctuation.definition.comment.end.documentation.c"}},"match":"(/\\\\*[!*]+(?=\\\\s))(.+)([!*]*\\\\*/)","name":"comment.block.documentation.c"},{"begin":"((?>\\\\s*)/\\\\*[!*]+(?:(?:\\\\n|$)|(?=\\\\s)))","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.documentation.c"}},"end":"([!*]*\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.end.documentation.c"}},"name":"comment.block.documentation.c","patterns":[{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:callergraph|callgraph|else|endif|f\\\\$|f\\\\[|f]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|[\\"-%.<=>]|::|\\\\||---??)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.italic.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\](?:a|em?))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.bold.doxygen.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]b)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"name":"markup.inline.raw.string.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\][cp])\\\\s+(\\\\S+)"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:a|anchor|[bc]|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|em??|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"captures":{"1":{"name":"storage.type.class.doxygen.c"},"2":{"patterns":[{"match":"in|out","name":"keyword.other.parameter.direction.$0.c"}]},"3":{"name":"variable.parameter.c"}},"match":"((?<=[!*/\\\\s])[@\\\\\\\\]param)(?:\\\\s*\\\\[((?:,?\\\\s*(?:in|out)\\\\s*)+)])?\\\\s+\\\\b(\\\\w+)\\\\b"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:arg|attention|authors??|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remarks??|result|returns??|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"(?<=[!*/\\\\s])[@\\\\\\\\](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\\\\b(?:\\\\{[^}]*})?","name":"storage.type.class.doxygen.c"},{"match":"\\\\b[A-Z]+:|@[_a-z]+:","name":"storage.type.class.gtkdoc"}]},{"captures":{"1":{"name":"meta.toc-list.banner.block.c"}},"match":"^/\\\\* =(\\\\s*.*?)\\\\s*= \\\\*/$\\\\n?","name":"comment.block.banner.c"},{"begin":"(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.c"}},"end":"(\\\\*/)","endCaptures":{"1":{"name":"punctuation.definition.comment.end.c"}},"name":"comment.block.c"},{"captures":{"1":{"name":"meta.toc-list.banner.line.c"}},"match":"^// =(\\\\s*.*?)\\\\s*=$\\\\n?","name":"comment.line.banner.c"},{"begin":"((?:^[\\\\t ]+)?)(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.c"}},"end":"(?!\\\\G)","patterns":[{"begin":"(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?=\\\\n)","name":"comment.line.double-slash.c","patterns":[{"include":"#line_continuation_character"}]}]}]},{"include":"#block_comment"},{"include":"#line_comment"}]},{"include":"#block_comment"},{"include":"#line_comment"}]},"default_statement":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)default(?!\\\\w))","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.control.default.c"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.separator.colon.case.default.c"}},"name":"meta.conditional.case.c","patterns":[{"include":"#evaluation_context"},{"include":"#c_conditional_context"}]},"disabled":{"begin":"^\\\\s*#\\\\s*if(n?def)?\\\\b.*$","end":"^\\\\s*#\\\\s*endif\\\\b","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"evaluation_context":{"patterns":[{"include":"#function-call-innards"},{"include":"$self"}]},"function-call-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arguments.end.bracket.round.c"}},"patterns":[{"include":"#function-call-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#function-call-innards"}]},{"include":"#block_innards"}]},"function-innards":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#operators"},{"include":"#vararg_ellipses"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.parameters.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parameters.end.bracket.round.c"}},"name":"meta.function.definition.parameters.c","patterns":[{"include":"#probably_a_parameter"},{"include":"#function-innards"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#function-innards"}]},{"include":"$self"}]},"inline_comment":{"patterns":[{"patterns":[{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/))"},{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"}]},{"captures":{"1":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"2":{"name":"comment.block.c"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"}]},"line_comment":{"patterns":[{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.c","patterns":[{"include":"#line_continuation_character"}]},{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.c"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.c","patterns":[{"include":"#line_continuation_character"}]}]},"line_continuation_character":{"patterns":[{"captures":{"1":{"name":"constant.character.escape.line-continuation.c"}},"match":"(\\\\\\\\)\\\\n"}]},"member_access":{"captures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"variable.other.member.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*\\\\b((?!(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|atomic_uintptr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintmax_t|pthread_mutex_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_attr_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_cond_t|pthread_once_t|uint_fast64_t|uint_fast16_t|atomic_size_t|uint_least8_t|int_least64_t|int_least32_t|int_least16_t|pthread_key_t|atomic_ullong|atomic_ushort|uint_fast32_t|atomic_schar|atomic_short|uint_fast8_t|int_fast64_t|int_fast32_t|int_fast16_t|atomic_ulong|atomic_llong|int_least8_t|atomic_uchar|memory_order|suseconds_t|int_fast8_t|atomic_bool|atomic_char|atomic_uint|atomic_long|atomic_int|useconds_t|_Imaginary|blksize_t|pthread_t|in_addr_t|uintptr_t|in_port_t|uintmax_t|blkcnt_t|uint16_t|unsigned|_Complex|uint32_t|intptr_t|intmax_t|uint64_t|u_quad_t|int64_t|int32_t|ssize_t|caddr_t|clock_t|uint8_t|u_short|swblk_t|segsz_t|int16_t|fixpt_t|daddr_t|nlink_t|qaddr_t|size_t|time_t|mode_t|signed|quad_t|ushort|u_long|u_char|double|int8_t|ino_t|uid_t|pid_t|_Bool|float|dev_t|div_t|short|gid_t|off_t|u_int|key_t|id_t|uint|long|void|char|bool|id_t|int)\\\\b)[A-Z_a-z]\\\\w*\\\\b(?!\\\\())"},"method_access":{"begin":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))((?:[A-Z_a-z]\\\\w*\\\\s*(?:\\\\.\\\\*?|->\\\\*?)\\\\s*)*)\\\\s*([A-Z_a-z]\\\\w*)(\\\\()","beginCaptures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"},"4":{"patterns":[{"include":"#member_access"},{"include":"#method_access"},{"captures":{"1":{"name":"variable.other.object.access.c"},"2":{"name":"punctuation.separator.dot-access.c"},"3":{"name":"punctuation.separator.pointer-access.c"}},"match":"((?:[A-Z_a-z]\\\\w*|(?<=[])]))\\\\s*)(?:(\\\\.\\\\*?)|(->\\\\*?))"}]},"5":{"name":"entity.name.function.member.c"},"6":{"name":"punctuation.section.arguments.begin.bracket.round.function.member.c"}},"contentName":"meta.function-call.member.c","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.function.member.c"}},"patterns":[{"include":"#function-call-innards"}]},"numbers":{"captures":{"0":{"patterns":[{"begin":"(?=.)","end":"$","patterns":[{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.c"},"2":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"constant.numeric.hexadecimal.c"},"5":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"6":{"name":"punctuation.separator.constant.numeric"},"8":{"name":"keyword.other.unit.exponent.hexadecimal.c"},"9":{"name":"keyword.operator.plus.exponent.hexadecimal.c"},"10":{"name":"keyword.operator.minus.exponent.hexadecimal.c"},"11":{"name":"constant.numeric.exponent.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.c"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<=\\\\h)\\\\.|\\\\.(?=\\\\h))(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?([FLfl](?!\\\\w))?$"},{"captures":{"2":{"name":"constant.numeric.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"constant.numeric.decimal.point.c"},"5":{"name":"constant.numeric.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"6":{"name":"punctuation.separator.constant.numeric"},"8":{"name":"keyword.other.unit.exponent.decimal.c"},"9":{"name":"keyword.operator.plus.exponent.decimal.c"},"10":{"name":"keyword.operator.minus.exponent.decimal.c"},"11":{"name":"constant.numeric.exponent.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"12":{"name":"keyword.other.unit.suffix.floating-point.c"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<=[0-9])\\\\.|\\\\.(?=[0-9]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)?((?<!')([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?([FLfl](?!\\\\w))?$"},{"captures":{"1":{"name":"keyword.other.unit.binary.c"},"2":{"name":"constant.numeric.binary.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G(0[Bb])([01](?:[01]|((?<=\\\\h)'(?=\\\\h)))*)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"captures":{"1":{"name":"keyword.other.unit.octal.c"},"2":{"name":"constant.numeric.octal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"4":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G(0)((?:[0-7]|((?<=\\\\h)'(?=\\\\h)))+)((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"captures":{"1":{"name":"keyword.other.unit.hexadecimal.c"},"2":{"name":"constant.numeric.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"5":{"name":"keyword.other.unit.exponent.hexadecimal.c"},"6":{"name":"keyword.operator.plus.exponent.hexadecimal.c"},"7":{"name":"keyword.operator.minus.exponent.hexadecimal.c"},"8":{"name":"constant.numeric.exponent.hexadecimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"9":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G(0[Xx])(\\\\h(?:\\\\h|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Pp])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"captures":{"2":{"name":"constant.numeric.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"3":{"name":"punctuation.separator.constant.numeric"},"5":{"name":"keyword.other.unit.exponent.decimal.c"},"6":{"name":"keyword.operator.plus.exponent.decimal.c"},"7":{"name":"keyword.operator.minus.exponent.decimal.c"},"8":{"name":"constant.numeric.exponent.decimal.c","patterns":[{"match":"(?<=\\\\h)'(?=\\\\h)","name":"punctuation.separator.constant.numeric"}]},"9":{"name":"keyword.other.unit.suffix.integer.c"}},"match":"\\\\G((?=[.0-9])(?!0[BXbx]))([0-9](?:[0-9]|((?<=\\\\h)'(?=\\\\h)))*)((?<!')([Ee])(\\\\+?)(-?)([0-9](?:[0-9]|(?<=\\\\h)'(?=\\\\h))*))?((?:(?:(?:(?:(?:[Uu]|[Uu]ll?)|[Uu]LL?)|ll?[Uu]?)|LL?[Uu]?)|[Ff])(?!\\\\w))?$"},{"match":"(?:['.0-9A-Z_a-z]|(?<=[EPep])[-+])+","name":"invalid.illegal.constant.numeric"}]}]}},"match":"(?<!\\\\w)\\\\.?\\\\d(?:['.0-9A-Z_a-z]|(?<=[EPep])[-+])*"},"operators":{"patterns":[{"match":"(?<![$\\\\w])(sizeof)(?![$\\\\w])","name":"keyword.operator.sizeof.c"},{"match":"--","name":"keyword.operator.decrement.c"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.c"},{"match":"(?:[-%*+]|(?<!\\\\()/)=","name":"keyword.operator.assignment.compound.c"},{"match":"(?:[\\\\&^]|<<|>>|\\\\|)=","name":"keyword.operator.assignment.compound.bitwise.c"},{"match":"<<|>>","name":"keyword.operator.bitwise.shift.c"},{"match":"!=|<=|>=|==|[<>]","name":"keyword.operator.comparison.c"},{"match":"&&|!|\\\\|\\\\|","name":"keyword.operator.logical.c"},{"match":"[\\\\&^|~]","name":"keyword.operator.c"},{"match":"=","name":"keyword.operator.assignment.c"},{"match":"[-%*+/]","name":"keyword.operator.c"},{"begin":"(\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.c"}},"end":"(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.c"}},"patterns":[{"include":"#function-call-innards"},{"include":"$self"}]}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"name":"meta.parens.c","patterns":[{"include":"$self"}]},"parens-block":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"name":"meta.parens.block.c","patterns":[{"include":"#block_innards"},{"match":"(?-im:(?<!:):(?!:))","name":"punctuation.range-based.c"}]},"pragma-mark":{"captures":{"1":{"name":"meta.preprocessor.pragma.c"},"2":{"name":"keyword.control.directive.pragma.pragma-mark.c"},"3":{"name":"punctuation.definition.directive.c"},"4":{"name":"entity.name.tag.pragma-mark.c"}},"match":"^\\\\s*(((#)\\\\s*pragma\\\\s+mark)\\\\s+(.*))","name":"meta.section.c"},"predefined_macros":{"patterns":[{"captures":{"1":{"name":"entity.name.other.preprocessor.macro.predefined.$1.c"}},"match":"\\\\b(__cplusplus|__DATE__|__FILE__|__LINE__|__STDC__|__STDC_HOSTED__|__STDC_NO_COMPLEX__|__STDC_VERSION__|__STDCPP_THREADS__|__TIME__|NDEBUG|__OBJC__|__ASSEMBLER__|__ATOM__|__AVX__|__AVX2__|_CHAR_UNSIGNED|__CLR_VER|_CONTROL_FLOW_GUARD|__COUNTER__|__cplusplus_cli|__cplusplus_winrt|_CPPRTTI|_CPPUNWIND|_DEBUG|_DLL|__FUNCDNAME__|__FUNCSIG__|__FUNCTION__|_INTEGRAL_MAX_BITS|__INTELLISENSE__|_ISO_VOLATILE|_KERNEL_MODE|_M_AMD64|_M_ARM|_M_ARM_ARMV7VE|_M_ARM_FP|_M_ARM64|_M_CEE|_M_CEE_PURE|_M_CEE_SAFE|_M_FP_EXCEPT|_M_FP_FAST|_M_FP_PRECISE|_M_FP_STRICT|_M_IX86|_M_IX86_FP|_M_X64|_MANAGED|_MSC_BUILD|_MSC_EXTENSIONS|_MSC_FULL_VER|_MSC_VER|_MSVC_LANG|__MSVC_RUNTIME_CHECKS|_MT|_NATIVE_WCHAR_T_DEFINED|_OPENMP|_PREFAST|__TIMESTAMP__|_VC_NO_DEFAULTLIB|_WCHAR_T_DEFINED|_WIN32|_WIN64|_WINRT_DLL|_ATL_VER|_MFC_VER|__GFORTRAN__|__GNUC__|__GNUC_MINOR__|__GNUC_PATCHLEVEL__|__GNUG__|__STRICT_ANSI__|__BASE_FILE__|__INCLUDE_LEVEL__|__ELF__|__VERSION__|__OPTIMIZE__|__OPTIMIZE_SIZE__|__NO_INLINE__|__GNUC_STDC_INLINE__|__CHAR_UNSIGNED__|__WCHAR_UNSIGNED__|__REGISTER_PREFIX__|__SIZE_TYPE__|__PTRDIFF_TYPE__|__WCHAR_TYPE__|__WINT_TYPE__|__INTMAX_TYPE__|__UINTMAX_TYPE__|__SIG_ATOMIC_TYPE__|__INT8_TYPE__|__INT16_TYPE__|__INT32_TYPE__|__INT64_TYPE__|__UINT8_TYPE__|__UINT16_TYPE__|__UINT32_TYPE__|__UINT64_TYPE__|__INT_LEAST8_TYPE__|__INT_LEAST16_TYPE__|__INT_LEAST32_TYPE__|__INT_LEAST64_TYPE__|__UINT_LEAST8_TYPE__|__UINT_LEAST16_TYPE__|__UINT_LEAST32_TYPE__|__UINT_LEAST64_TYPE__|__INT_FAST8_TYPE__|__INT_FAST16_TYPE__|__INT_FAST32_TYPE__|__INT_FAST64_TYPE__|__UINT_FAST8_TYPE__|__UINT_FAST16_TYPE__|__UINT_FAST32_TYPE__|__UINT_FAST64_TYPE__|__INTPTR_TYPE__|__UINTPTR_TYPE__|__CHAR_BIT__|__SCHAR_MAX__|__WCHAR_MAX__|__SHRT_MAX__|__INT_MAX__|__LONG_MAX__|__LONG_LONG_MAX__|__WINT_MAX__|__SIZE_MAX__|__PTRDIFF_MAX__|__INTMAX_MAX__|__UINTMAX_MAX__|__SIG_ATOMIC_MAX__|__INT8_MAX__|__INT16_MAX__|__INT32_MAX__|__INT64_MAX__|__UINT8_MAX__|__UINT16_MAX__|__UINT32_MAX__|__UINT64_MAX__|__INT_LEAST8_MAX__|__INT_LEAST16_MAX__|__INT_LEAST32_MAX__|__INT_LEAST64_MAX__|__UINT_LEAST8_MAX__|__UINT_LEAST16_MAX__|__UINT_LEAST32_MAX__|__UINT_LEAST64_MAX__|__INT_FAST8_MAX__|__INT_FAST16_MAX__|__INT_FAST32_MAX__|__INT_FAST64_MAX__|__UINT_FAST8_MAX__|__UINT_FAST16_MAX__|__UINT_FAST32_MAX__|__UINT_FAST64_MAX__|__INTPTR_MAX__|__UINTPTR_MAX__|__WCHAR_MIN__|__WINT_MIN__|__SIG_ATOMIC_MIN__|__SCHAR_WIDTH__|__SHRT_WIDTH__|__INT_WIDTH__|__LONG_WIDTH__|__LONG_LONG_WIDTH__|__PTRDIFF_WIDTH__|__SIG_ATOMIC_WIDTH__|__SIZE_WIDTH__|__WCHAR_WIDTH__|__WINT_WIDTH__|__INT_LEAST8_WIDTH__|__INT_LEAST16_WIDTH__|__INT_LEAST32_WIDTH__|__INT_LEAST64_WIDTH__|__INT_FAST8_WIDTH__|__INT_FAST16_WIDTH__|__INT_FAST32_WIDTH__|__INT_FAST64_WIDTH__|__INTPTR_WIDTH__|__INTMAX_WIDTH__|__SIZEOF_INT__|__SIZEOF_LONG__|__SIZEOF_LONG_LONG__|__SIZEOF_SHORT__|__SIZEOF_POINTER__|__SIZEOF_FLOAT__|__SIZEOF_DOUBLE__|__SIZEOF_LONG_DOUBLE__|__SIZEOF_SIZE_T__|__SIZEOF_WCHAR_T__|__SIZEOF_WINT_T__|__SIZEOF_PTRDIFF_T__|__BYTE_ORDER__|__ORDER_LITTLE_ENDIAN__|__ORDER_BIG_ENDIAN__|__ORDER_PDP_ENDIAN__|__FLOAT_WORD_ORDER__|__DEPRECATED|__EXCEPTIONS|__GXX_RTTI|__USING_SJLJ_EXCEPTIONS__|__GXX_EXPERIMENTAL_CXX0X__|__GXX_WEAK__|__NEXT_RUNTIME__|__LP64__|_LP64|__SSP__|__SSP_ALL__|__SSP_STRONG__|__SSP_EXPLICIT__|__SANITIZE_ADDRESS__|__SANITIZE_THREAD__|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16|__HAVE_SPECULATION_SAFE_VALUE|__GCC_HAVE_DWARF2_CFI_ASM|__FP_FAST_FMAF??|__FP_FAST_FMAL|__FP_FAST_FMAF16|__FP_FAST_FMAF32|__FP_FAST_FMAF64|__FP_FAST_FMAF128|__FP_FAST_FMAF32X|__FP_FAST_FMAF64X|__FP_FAST_FMAF128X|__GCC_IEC_559|__GCC_IEC_559_COMPLEX|__NO_MATH_ERRNO__|__has_builtin|__has_feature|__has_extension|__has_cpp_attribute|__has_c_attribute|__has_attribute|__has_declspec_attribute|__is_identifier|__has_include|__has_include_next|__has_warning|__BASE_FILE__|__FILE_NAME__|__clang__|__clang_major__|__clang_minor__|__clang_patchlevel__|__clang_version__|__fp16|_Float16)\\\\b"},{"match":"\\\\b__([A-Z_]+)__\\\\b","name":"entity.name.other.preprocessor.macro.predefined.probably.$1.c"}]},"preprocessor-rule-conditional":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$self"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.c"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if(?:n?def)?)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"captures":{"0":{"name":"invalid.illegal.stray-$1.c"}},"match":"^\\\\s*#\\\\s*(e(?:lse|lif|ndif))\\\\b"}]},"preprocessor-rule-conditional-line":{"patterns":[{"match":"\\\\bdefined\\\\b(?:\\\\s*$|(?=\\\\s*\\\\(*\\\\s*(?!defined\\\\b)[$A-Z_a-z][$\\\\w]*\\\\b\\\\s*\\\\)*\\\\s*(?:\\\\n|//|/\\\\*|[:?]|&&|\\\\|\\\\||\\\\\\\\\\\\s*\\\\n)))","name":"keyword.control.directive.conditional.c"},{"match":"\\\\bdefined\\\\b","name":"invalid.illegal.macro-name.c"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.c"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.c"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#operators"},{"match":"\\\\b(NULL|true|false|TRUE|FALSE)\\\\b","name":"constant.language.c"},{"match":"[$A-Z_a-z][$\\\\w]*","name":"entity.name.function.preprocessor.c"},{"include":"#line_continuation_character"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"\\\\)|(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#preprocessor-rule-conditional-line"}]}]},"preprocessor-rule-define-line-blocks":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"patterns":[{"include":"#preprocessor-rule-define-line-blocks"},{"include":"#preprocessor-rule-define-line-contents"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-define-line-contents":{"patterns":[{"include":"#vararg_ellipses"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.c"}},"end":"}|(?=\\\\s*#\\\\s*e(?:lif|lse|ndif)\\\\b)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.c"}},"name":"meta.block.c","patterns":[{"include":"#preprocessor-rule-define-line-blocks"}]},{"match":"\\\\(","name":"punctuation.section.parens.begin.bracket.round.c"},{"match":"\\\\)","name":"punctuation.section.parens.end.bracket.round.c"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\\\s*\\\\()(?=(?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++\\\\s*\\\\(|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[])\\\\s*\\\\()","end":"(?<=\\\\))(?!\\\\w)|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","name":"meta.function.c","patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.c","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"'|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.single.c","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]},{"include":"#method_access"},{"include":"#member_access"},{"include":"$self"}]},"preprocessor-rule-define-line-functions":{"patterns":[{"include":"#comments"},{"include":"#storage_types"},{"include":"#vararg_ellipses"},{"include":"#method_access"},{"include":"#member_access"},{"include":"#operators"},{"begin":"(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\\\s*\\\\()((?:[A-Z_a-z][0-9A-Z_a-z]*+|::)++|(?<=operator)(?:[-!\\\\&*+<=>]+|\\\\(\\\\)|\\\\[]))\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.c"},"2":{"name":"punctuation.section.arguments.begin.bracket.round.c"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.c"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.c"}},"end":"(\\\\))|(?<!\\\\\\\\)(?=\\\\s*\\\\n)","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.c"}},"patterns":[{"include":"#preprocessor-rule-define-line-functions"}]},{"include":"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-disabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif"},{"include":"#preprocessor-rule-enabled-else"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"$self"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"include":"#preprocessor-rule-enabled-elif-block"},{"include":"#preprocessor-rule-enabled-else-block"},{"include":"#preprocessor-rule-disabled-elif"},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#block_innards"}]},{"begin":"\\\\n","contentName":"comment.block.preprocessor.if-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0+\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*e(?:lif|lse|ndif))\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}]},"preprocessor-rule-enabled":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"},"3":{"name":"constant.numeric.preprocessor.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.else-branch.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.if-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"$self"}]}]}]},"preprocessor-rule-enabled-block":{"patterns":[{"begin":"^\\\\s*((#)\\\\s*if)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"^\\\\s*((#)\\\\s*endif)\\\\b","endCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.else-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.if-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#block_innards"}]}]}]},"preprocessor-rule-enabled-elif":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"$self"}]}]},"preprocessor-rule-enabled-elif-block":{"begin":"^\\\\s*((#)\\\\s*elif)\\\\b(?=\\\\s*\\\\(*\\\\b0*1\\\\b\\\\)*\\\\s*(?:$|//|/\\\\*))","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"\\\\G(?=.)(?!/(?:/|\\\\*(?!.*\\\\\\\\\\\\s*\\\\n)))","end":"(?=//)|(?=/\\\\*(?!.*\\\\\\\\\\\\s*\\\\n))|(?<!\\\\\\\\)(?=\\\\n)","name":"meta.preprocessor.c","patterns":[{"include":"#preprocessor-rule-conditional-line"}]},{"include":"#comments"},{"begin":"\\\\n","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"begin":"^\\\\s*((#)\\\\s*(else))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.in-block.c","end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"begin":"^\\\\s*((#)\\\\s*(elif))\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"contentName":"comment.block.preprocessor.elif-branch.c","end":"(?=^\\\\s*((#)\\\\s*e(?:lse|lif|ndif))\\\\b)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},{"include":"#block_innards"}]}]},"preprocessor-rule-enabled-else":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"$self"}]},"preprocessor-rule-enabled-else-block":{"begin":"^\\\\s*((#)\\\\s*else)\\\\b","beginCaptures":{"0":{"name":"meta.preprocessor.c"},"1":{"name":"keyword.control.directive.conditional.c"},"2":{"name":"punctuation.definition.directive.c"}},"end":"(?=^\\\\s*((#)\\\\s*endif)\\\\b)","patterns":[{"include":"#block_innards"}]},"probably_a_parameter":{"captures":{"1":{"name":"variable.parameter.probably.c"}},"match":"(?<=[0-9A-Z_a-z] |[]\\\\&)*>])\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(?:\\\\[]\\\\s*)?[),])"},"static_assert":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)static_assert|_Static_assert(?!\\\\w))((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"keyword.other.static_assert.c"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"8":{"name":"comment.block.c"},"9":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"10":{"name":"punctuation.section.arguments.begin.bracket.round.static_assert.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.arguments.end.bracket.round.static_assert.c"}},"patterns":[{"begin":"(,)\\\\s*(?=(?:L|u8?|U\\\\s*\\")?)","beginCaptures":{"1":{"name":"punctuation.separator.delimiter.comma.c"}},"end":"(?=\\\\))","name":"meta.static_assert.message.c","patterns":[{"include":"#string_context"}]},{"include":"#evaluation_context"}]},"storage_types":{"patterns":[{"match":"(?-im:(?<!\\\\w)(?:unsigned|signed|double|_Bool|short|float|long|void|char|bool|int)(?!\\\\w))","name":"storage.type.built-in.primitive.c"},{"match":"(?-im:(?<!\\\\w)(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|pthread_rwlockattr_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_uint_fast16_t|atomic_int_least64_t|atomic_int_least32_t|atomic_int_least16_t|atomic_uint_least8_t|atomic_uint_fast8_t|atomic_int_least8_t|atomic_int_fast16_t|pthread_mutexattr_t|atomic_int_fast32_t|atomic_int_fast64_t|atomic_int_fast8_t|pthread_condattr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintptr_t|atomic_uintmax_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|int_least32_t|pthread_key_t|int_least16_t|int_least64_t|uint_least8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|atomic_ushort|atomic_ullong|atomic_size_t|int_fast16_t|int_fast64_t|uint_fast8_t|atomic_short|atomic_uchar|atomic_schar|int_least8_t|memory_order|atomic_llong|atomic_ulong|int_fast32_t|atomic_long|atomic_uint|atomic_char|int_fast8_t|suseconds_t|atomic_bool|atomic_int|_Imaginary|useconds_t|in_port_t|uintmax_t|pthread_t|blksize_t|in_addr_t|uintptr_t|blkcnt_t|uint16_t|uint32_t|uint64_t|u_quad_t|_Complex|intptr_t|intmax_t|segsz_t|u_short|nlink_t|uint8_t|int64_t|int32_t|int16_t|fixpt_t|daddr_t|caddr_t|qaddr_t|ssize_t|clock_t|swblk_t|u_long|mode_t|int8_t|time_t|ushort|u_char|quad_t|size_t|pid_t|gid_t|uid_t|dev_t|div_t|off_t|u_int|key_t|ino_t|uint|id_t)(?!\\\\w))","name":"storage.type.built-in.c"},{"match":"(?-im:\\\\b(enum|struct|union)\\\\b)","name":"storage.type.$1.c"},{"begin":"\\\\b(__asm__|asm)\\\\b\\\\s*((?:volatile)?)","beginCaptures":{"1":{"name":"storage.type.asm.c"},"2":{"name":"storage.modifier.c"}},"end":"(?!\\\\G)","name":"meta.asm.c","patterns":[{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"^((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))(?:\\\\n|$)"},{"include":"#comments"},{"begin":"(((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.assembly.c"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"4":{"name":"comment.block.c"},"5":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.assembly.c"}},"patterns":[{"begin":"(R?)(\\")","beginCaptures":{"1":{"name":"meta.encoding.c"},"2":{"name":"punctuation.definition.string.begin.assembly.c"}},"contentName":"meta.embedded.assembly.c","end":"(\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.assembly.c"}},"name":"string.quoted.double.c","patterns":[{"include":"source.asm"},{"include":"source.x86"},{"include":"source.x86_64"},{"include":"source.arm"},{"include":"#backslash_escapes"},{"include":"#string_escaped_char"}]},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.section.parens.begin.bracket.round.assembly.inner.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.assembly.inner.c"}},"patterns":[{"include":"#evaluation_context"}]},{"captures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"variable.other.asm.label.c"},"6":{"patterns":[{"include":"#inline_comment"}]},"7":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"8":{"name":"comment.block.c"},"9":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]}},"match":"\\\\[((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))([A-Z_a-z]\\\\w*)((?:(?>\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+?|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z))]"},{"match":":","name":"punctuation.separator.delimiter.colon.assembly.c"},{"include":"#comments"}]}]}]},"string_escaped_char":{"patterns":[{"match":"\\\\\\\\([\\"'?\\\\\\\\abefnprtv]|[0-3]\\\\d{0,2}|[4-7]\\\\d?|x\\\\h{0,2}|u\\\\h{0,4}|U\\\\h{0,8})","name":"constant.character.escape.c"},{"match":"\\\\\\\\.","name":"invalid.illegal.unknown-escape.c"}]},"string_placeholder":{"patterns":[{"match":"%(\\\\d+\\\\$)?[- #'+0]*[,:;_]?((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?(\\\\.((-?\\\\d+)|\\\\*(-?\\\\d+\\\\$)?)?)?(hh?|ll|[Ljlqtz]|vh|vl?|hv|hl)?[%AC-GOSUXac-ginopsux]","name":"constant.other.placeholder.c"},{"captures":{"1":{"name":"invalid.illegal.placeholder.c"}},"match":"(%)(?!\\"\\\\s*(PRI|SCN))"}]},"strings":{"patterns":[{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.double.c","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}},"name":"string.quoted.single.c","patterns":[{"include":"#string_escaped_char"},{"include":"#line_continuation_character"}]}]},"switch_conditional_parentheses":{"begin":"((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))(\\\\()","beginCaptures":{"1":{"patterns":[{"include":"#inline_comment"}]},"2":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"3":{"name":"comment.block.c"},"4":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"5":{"name":"punctuation.section.parens.begin.bracket.round.conditional.switch.c"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.conditional.switch.c"}},"name":"meta.conditional.switch.c","patterns":[{"include":"#evaluation_context"},{"include":"#c_conditional_context"}]},"switch_statement":{"begin":"(((?>(?:(?>(?<!\\\\s)\\\\s+)|(/\\\\*)((?>(?:[^*]|(?>\\\\*+)[^/])*)((?>\\\\*+)/)))+|(?:(?:(?:(?:\\\\b|(?<=\\\\W))|(?=\\\\W))|\\\\A)|\\\\Z)))((?<!\\\\w)switch(?!\\\\w)))","beginCaptures":{"1":{"name":"meta.head.switch.c"},"2":{"patterns":[{"include":"#inline_comment"}]},"3":{"name":"comment.block.c punctuation.definition.comment.begin.c"},"4":{"name":"comment.block.c"},"5":{"patterns":[{"match":"\\\\*/","name":"comment.block.c punctuation.definition.comment.end.c"},{"match":"\\\\*","name":"comment.block.c"}]},"6":{"name":"keyword.control.switch.c"}},"end":"(?<=}|%>|\\\\?\\\\?>)|(?=[];=>\\\\[])","name":"meta.block.switch.c","patterns":[{"begin":"\\\\G ?","end":"(\\\\{|<%|\\\\?\\\\?<|(?=;))","endCaptures":{"1":{"name":"punctuation.section.block.begin.bracket.curly.switch.c"}},"name":"meta.head.switch.c","patterns":[{"include":"#switch_conditional_parentheses"},{"include":"$self"}]},{"begin":"(?<=\\\\{|<%|\\\\?\\\\?<)","end":"(}|%>|\\\\?\\\\?>)","endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.switch.c"}},"name":"meta.body.switch.c","patterns":[{"include":"#default_statement"},{"include":"#case_statement"},{"include":"$self"},{"include":"#block_innards"}]},{"begin":"(?<=}|%>|\\\\?\\\\?>)[\\\\n\\\\s]*","end":"[\\\\n\\\\s]*(?=;)","name":"meta.tail.switch.c","patterns":[{"include":"$self"}]}]},"vararg_ellipses":{"match":"(?<!\\\\.)\\\\.\\\\.\\\\.(?!\\\\.)","name":"punctuation.vararg-ellipses.c"}},"scopeName":"source.c"}`)),aP=[p$e]});var xne={};fn(xne,{default:()=>f$e});var m$e,f$e,wne=tr(()=>{m$e=Object.freeze(JSON.parse(`{"displayName":"Java","name":"java","patterns":[{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.other.package.java"}},"contentName":"storage.modifier.package.java","end":"\\\\s*(;)","endCaptures":{"1":{"name":"punctuation.terminator.java"}},"name":"meta.package.java","patterns":[{"include":"#comments"},{"match":"(?<=\\\\.)\\\\s*\\\\.|\\\\.(?=\\\\s*;)","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"(?<!_)_(?=\\\\s*([.;]))|\\\\b\\\\d+|-+","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"[A-Z]+","name":"invalid.deprecated.package_name_not_lowercase.java"},{"match":"\\\\b(?<!\\\\$)(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|non-sealed|package|permits|private|protected|public|return|sealed|short|static|strictfp|super|switch|syncronized|this|throws??|transient|try|void|volatile|while|yield|true|false|null)\\\\b","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"\\\\.","name":"punctuation.separator.java"}]},{"begin":"\\\\b(import)\\\\b\\\\s*\\\\b(static)?\\\\b\\\\s","beginCaptures":{"1":{"name":"keyword.other.import.java"},"2":{"name":"storage.modifier.java"}},"contentName":"storage.modifier.import.java","end":"\\\\s*(;)","endCaptures":{"1":{"name":"punctuation.terminator.java"}},"name":"meta.import.java","patterns":[{"include":"#comments"},{"match":"(?<=\\\\.)\\\\s*\\\\.|\\\\.(?=\\\\s*;)","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"(?<!\\\\.)\\\\s*\\\\*","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"(?<!_)_(?=\\\\s*([.;]))|\\\\b\\\\d+|-+","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"\\\\b(?<!\\\\$)(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|non-sealed|package|permits|private|protected|public|return|sealed|short|static|strictfp|super|switch|syncronized|this|throws??|transient|try|void|volatile|while|yield|true|false|null)\\\\b","name":"invalid.illegal.character_not_allowed_here.java"},{"match":"\\\\.","name":"punctuation.separator.java"},{"match":"\\\\*","name":"variable.language.wildcard.java"}]},{"include":"#comments-javadoc"},{"include":"#code"},{"include":"#module"}],"repository":{"all-types":{"patterns":[{"include":"#primitive-arrays"},{"include":"#primitive-types"},{"include":"#object-types"}]},"annotations":{"patterns":[{"begin":"((@)\\\\s*([^(\\\\s]+))(\\\\()","beginCaptures":{"2":{"name":"punctuation.definition.annotation.java"},"3":{"name":"storage.type.annotation.java"},"4":{"name":"punctuation.definition.annotation-arguments.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.annotation-arguments.end.bracket.round.java"}},"name":"meta.declaration.annotation.java","patterns":[{"captures":{"1":{"name":"constant.other.key.java"},"2":{"name":"keyword.operator.assignment.java"}},"match":"(\\\\w*)\\\\s*(=)"},{"include":"#code"}]},{"captures":{"1":{"name":"punctuation.definition.annotation.java"},"2":{"name":"storage.modifier.java"},"3":{"name":"storage.type.annotation.java"},"5":{"name":"punctuation.definition.annotation.java"},"6":{"name":"storage.type.annotation.java"}},"match":"(@)(interface)\\\\s+(\\\\w*)|((@)\\\\s*(\\\\w+))","name":"meta.declaration.annotation.java"}]},"anonymous-block-and-instance-initializer":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.block.end.bracket.curly.java"}},"patterns":[{"include":"#code"}]},"anonymous-classes-and-new":{"begin":"\\\\bnew\\\\b","beginCaptures":{"0":{"name":"keyword.control.new.java"}},"end":"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])","patterns":[{"include":"#comments"},{"include":"#function-call"},{"include":"#all-types"},{"begin":"(?<=\\\\))","end":"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])","patterns":[{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.inner-class.begin.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.inner-class.end.bracket.curly.java"}},"name":"meta.inner-class.java","patterns":[{"include":"#class-body"}]}]},{"begin":"(?<=])","end":"(?=[])-.:;?}]|/(?![*/])|[!%\\\\&=^|])","patterns":[{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.array-initializer.begin.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.array-initializer.end.bracket.curly.java"}},"name":"meta.array-initializer.java","patterns":[{"include":"#code"}]}]},{"include":"#parens"}]},"assertions":{"patterns":[{"begin":"\\\\b(assert)\\\\s","beginCaptures":{"1":{"name":"keyword.control.assert.java"}},"end":"$","name":"meta.declaration.assertion.java","patterns":[{"match":":","name":"keyword.operator.assert.expression-separator.java"},{"include":"#code"}]}]},"class":{"begin":"(?=\\\\w?[-\\\\w\\\\s]*\\\\b(?:class|(?<!@)interface|enum)\\\\s+[$\\\\w]+)","end":"}","endCaptures":{"0":{"name":"punctuation.section.class.end.bracket.curly.java"}},"name":"meta.class.java","patterns":[{"include":"#storage-modifiers"},{"include":"#generics"},{"include":"#comments"},{"captures":{"1":{"name":"storage.modifier.java"},"2":{"name":"entity.name.type.class.java"}},"match":"(class|(?<!@)interface|enum)\\\\s+([$\\\\w]+)","name":"meta.class.identifier.java"},{"begin":"extends","beginCaptures":{"0":{"name":"storage.modifier.extends.java"}},"end":"(?=\\\\{|implements|permits)","name":"meta.definition.class.inherited.classes.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"(implements)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.implements.java"}},"end":"(?=\\\\s*extends|permits|\\\\{)","name":"meta.definition.class.implemented.interfaces.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"(permits)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.permits.java"}},"end":"(?=\\\\s*extends|implements|\\\\{)","name":"meta.definition.class.permits.classes.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.class.begin.bracket.curly.java"}},"contentName":"meta.class.body.java","end":"(?=})","patterns":[{"include":"#class-body"}]}]},"class-body":{"patterns":[{"include":"#comments-javadoc"},{"include":"#comments"},{"include":"#enums"},{"include":"#class"},{"include":"#generics"},{"include":"#static-initializer"},{"include":"#class-fields-and-methods"},{"include":"#annotations"},{"include":"#storage-modifiers"},{"include":"#member-variables"},{"include":"#code"}]},"class-fields-and-methods":{"patterns":[{"begin":"(?==)","end":"(?=;)","patterns":[{"include":"#code"}]},{"include":"#methods"}]},"code":{"patterns":[{"include":"#annotations"},{"include":"#comments"},{"include":"#enums"},{"include":"#class"},{"include":"#record"},{"include":"#anonymous-block-and-instance-initializer"},{"include":"#try-catch-finally"},{"include":"#assertions"},{"include":"#parens"},{"include":"#constants-and-special-vars"},{"include":"#numbers"},{"include":"#anonymous-classes-and-new"},{"include":"#lambda-expression"},{"include":"#keywords"},{"include":"#storage-modifiers"},{"include":"#method-call"},{"include":"#function-call"},{"include":"#variables"},{"include":"#variables-local"},{"include":"#objects"},{"include":"#properties"},{"include":"#strings"},{"include":"#all-types"},{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"},{"match":";","name":"punctuation.terminator.java"}]},"comments":{"patterns":[{"captures":{"0":{"name":"punctuation.definition.comment.java"}},"match":"/\\\\*\\\\*/","name":"comment.block.empty.java"},{"include":"#comments-inline"}]},"comments-inline":{"patterns":[{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.java"}},"end":"\\\\*/","name":"comment.block.java"},{"begin":"(^[\\\\t ]+)?(?=//)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.java"}},"end":"(?!\\\\G)","patterns":[{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.java"}},"end":"\\\\n","name":"comment.line.double-slash.java"}]}]},"comments-javadoc":{"patterns":[{"begin":"^\\\\s*(/\\\\*\\\\*)(?!/)","beginCaptures":{"1":{"name":"punctuation.definition.comment.java"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.java"}},"name":"comment.block.javadoc.java","patterns":[{"match":"@(author|deprecated|return|see|serial|since|version)\\\\b","name":"keyword.other.documentation.javadoc.java"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.java"},"2":{"name":"variable.parameter.java"}},"match":"(@param)\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.java"},"2":{"name":"entity.name.type.class.java"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.java"},"2":{"name":"entity.name.type.class.java"},"3":{"name":"variable.parameter.java"}},"match":"\\\\{(@link)\\\\s+(\\\\S+)?#([$\\\\w]+\\\\s*\\\\([^()]*\\\\)).*?}"}]}]},"constants-and-special-vars":{"patterns":[{"match":"\\\\b(true|false|null)\\\\b","name":"constant.language.java"},{"match":"\\\\bthis\\\\b","name":"variable.language.this.java"},{"match":"\\\\bsuper\\\\b","name":"variable.language.java"}]},"enums":{"begin":"^\\\\s*([\\\\w\\\\s]*)(enum)\\\\s+(\\\\w+)","beginCaptures":{"1":{"patterns":[{"include":"#storage-modifiers"}]},"2":{"name":"storage.modifier.java"},"3":{"name":"entity.name.type.enum.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.enum.end.bracket.curly.java"}},"name":"meta.enum.java","patterns":[{"begin":"\\\\b(extends)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.extends.java"}},"end":"(?=\\\\{|\\\\bimplements\\\\b)","name":"meta.definition.class.inherited.classes.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"\\\\b(implements)\\\\b","beginCaptures":{"1":{"name":"storage.modifier.implements.java"}},"end":"(?=\\\\{|\\\\bextends\\\\b)","name":"meta.definition.class.implemented.interfaces.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.enum.begin.bracket.curly.java"}},"end":"(?=})","patterns":[{"begin":"(?<=\\\\{)","end":"(?=[;}])","patterns":[{"include":"#comments-javadoc"},{"include":"#comments"},{"begin":"\\\\b(\\\\w+)\\\\b","beginCaptures":{"1":{"name":"constant.other.enum.java"}},"end":"(,)|(?=[;}])","endCaptures":{"1":{"name":"punctuation.separator.delimiter.java"}},"patterns":[{"include":"#comments-javadoc"},{"include":"#comments"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"patterns":[{"include":"#code"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"patterns":[{"include":"#class-body"}]}]}]},{"include":"#class-body"}]}]},"function-call":{"begin":"([$A-Z_a-z][$\\\\w]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.java"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.function-call.java","patterns":[{"include":"#code"}]},"generics":{"begin":"<","beginCaptures":{"0":{"name":"punctuation.bracket.angle.java"}},"end":">","endCaptures":{"0":{"name":"punctuation.bracket.angle.java"}},"patterns":[{"match":"\\\\b(extends|super)\\\\b","name":"storage.modifier.$1.java"},{"captures":{"1":{"name":"storage.type.java"}},"match":"(?<!\\\\.)([$A-Z_a-z][$0-9A-Z_a-z]*)(?=\\\\s*<)"},{"include":"#primitive-arrays"},{"match":"[$A-Z_a-z][$0-9A-Z_a-z]*","name":"storage.type.generic.java"},{"match":"\\\\?","name":"storage.type.generic.wildcard.java"},{"match":"&","name":"punctuation.separator.types.java"},{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"},{"include":"#parens"},{"include":"#generics"},{"include":"#comments"}]},"keywords":{"patterns":[{"match":"\\\\bthrow\\\\b","name":"keyword.control.throw.java"},{"match":"[:?]","name":"keyword.control.ternary.java"},{"match":"\\\\b(return|yield|break|case|continue|default|do|while|for|switch|if|else)\\\\b","name":"keyword.control.java"},{"match":"\\\\b(instanceof)\\\\b","name":"keyword.operator.instanceof.java"},{"match":"(<<|>>>?|[\\\\^~])","name":"keyword.operator.bitwise.java"},{"match":"(([\\\\&^|]|<<|>>>?)=)","name":"keyword.operator.assignment.bitwise.java"},{"match":"(===?|!=|<=|>=|<>|[<>])","name":"keyword.operator.comparison.java"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.java"},{"match":"(=)","name":"keyword.operator.assignment.java"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.java"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.java"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.java"},{"match":"([\\\\&|])","name":"keyword.operator.bitwise.java"},{"match":"\\\\b(const|goto)\\\\b","name":"keyword.reserved.java"}]},"lambda-expression":{"patterns":[{"match":"->","name":"storage.type.function.arrow.java"}]},"member-variables":{"begin":"(?=private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)","end":"(?=[;=])","patterns":[{"include":"#storage-modifiers"},{"include":"#variables"},{"include":"#primitive-arrays"},{"include":"#object-types"}]},"method-call":{"begin":"(\\\\.)\\\\s*([$A-Z_a-z][$\\\\w]*)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"entity.name.function.java"},"3":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.method-call.java","patterns":[{"include":"#code"}]},"methods":{"begin":"(?!new)(?=[<\\\\w].*\\\\s+)(?=([^/=]|/(?!/))+\\\\()","end":"(})|(?=;)","endCaptures":{"1":{"name":"punctuation.section.method.end.bracket.curly.java"}},"name":"meta.method.java","patterns":[{"include":"#storage-modifiers"},{"begin":"(\\\\w+)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"entity.name.function.java"},"2":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.method.identifier.java","patterns":[{"include":"#parameters"},{"include":"#parens"},{"include":"#comments"}]},{"include":"#generics"},{"begin":"(?=\\\\w.*\\\\s+\\\\w+\\\\s*\\\\()","end":"(?=\\\\s+\\\\w+\\\\s*\\\\()","name":"meta.method.return-type.java","patterns":[{"include":"#all-types"},{"include":"#parens"},{"include":"#comments"}]},{"include":"#throws"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.method.begin.bracket.curly.java"}},"contentName":"meta.method.body.java","end":"(?=})","patterns":[{"include":"#code"}]},{"include":"#comments"}]},"module":{"begin":"((open)\\\\s)?(module)\\\\s+(\\\\w+)","beginCaptures":{"1":{"name":"storage.modifier.java"},"3":{"name":"storage.modifier.java"},"4":{"name":"entity.name.type.module.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.module.end.bracket.curly.java"}},"name":"meta.module.java","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.module.begin.bracket.curly.java"}},"contentName":"meta.module.body.java","end":"(?=})","patterns":[{"include":"#comments"},{"include":"#comments-javadoc"},{"match":"\\\\b(requires|transitive|exports|opens|to|uses|provides|with)\\\\b","name":"keyword.module.java"}]}]},"numbers":{"patterns":[{"match":"\\\\b(?<!\\\\$)0([Xx])((?<!\\\\.)\\\\h([_\\\\h]*\\\\h)?[Ll]?(?!\\\\.)|(\\\\h([_\\\\h]*\\\\h)?\\\\.?|(\\\\h([_\\\\h]*\\\\h)?)?\\\\.\\\\h([_\\\\h]*\\\\h)?)[Pp][-+]?[0-9]([0-9_]*[0-9])?[DFdf]?)\\\\b(?!\\\\$)","name":"constant.numeric.hex.java"},{"match":"\\\\b(?<!\\\\$)0([Bb])[01]([01_]*[01])?[Ll]?\\\\b(?!\\\\$)","name":"constant.numeric.binary.java"},{"match":"\\\\b(?<!\\\\$)0[0-7]([0-7_]*[0-7])?[Ll]?\\\\b(?!\\\\$)","name":"constant.numeric.octal.java"},{"match":"(?<!\\\\$)(\\\\b[0-9]([0-9_]*[0-9])?\\\\.\\\\B(?!\\\\.)|\\\\b[0-9]([0-9_]*[0-9])?\\\\.([Ee][-+]?[0-9]([0-9_]*[0-9])?)[DFdf]?\\\\b|\\\\b[0-9]([0-9_]*[0-9])?\\\\.([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]\\\\b|\\\\b[0-9]([0-9_]*[0-9])?\\\\.([0-9]([0-9_]*[0-9])?)([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]?\\\\b|(?<!\\\\.)\\\\B\\\\.[0-9]([0-9_]*[0-9])?([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]?\\\\b|\\\\b[0-9]([0-9_]*[0-9])?([Ee][-+]?[0-9]([0-9_]*[0-9])?)[DFdf]?\\\\b|\\\\b[0-9]([0-9_]*[0-9])?([Ee][-+]?[0-9]([0-9_]*[0-9])?)?[DFdf]\\\\b|\\\\b(0|[1-9]([0-9_]*[0-9])?)(?!\\\\.)[Ll]?\\\\b)(?!\\\\$)","name":"constant.numeric.decimal.java"}]},"object-types":{"patterns":[{"include":"#generics"},{"begin":"\\\\b((?:[A-Z_a-z]\\\\w*\\\\s*\\\\.\\\\s*)*)([A-Z_]\\\\w*)\\\\s*(?=\\\\[)","beginCaptures":{"1":{"patterns":[{"match":"[A-Z_a-z]\\\\w*","name":"storage.type.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"}]},"2":{"name":"storage.type.object.array.java"}},"end":"(?!\\\\s*\\\\[)","patterns":[{"include":"#comments"},{"include":"#parens"}]},{"captures":{"1":{"patterns":[{"match":"[A-Z_a-z]\\\\w*","name":"storage.type.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"}]}},"match":"\\\\b((?:[A-Z_a-z]\\\\w*\\\\s*\\\\.\\\\s*)*[A-Z_]\\\\w*)\\\\s*(?=<)"},{"captures":{"1":{"patterns":[{"match":"[A-Z_a-z]\\\\w*","name":"storage.type.java"},{"match":"\\\\.","name":"punctuation.separator.period.java"}]}},"match":"\\\\b((?:[A-Z_a-z]\\\\w*\\\\s*\\\\.\\\\s*)*[A-Z_]\\\\w*)\\\\b((?=\\\\s*[\\\\n$A-Z_a-z])|(?=\\\\s*\\\\.\\\\.\\\\.))"}]},"object-types-inherited":{"patterns":[{"include":"#generics"},{"captures":{"1":{"name":"punctuation.separator.period.java"}},"match":"\\\\b(?:[A-Z]\\\\w*\\\\s*(\\\\.)\\\\s*)*[A-Z]\\\\w*\\\\b","name":"entity.other.inherited-class.java"},{"match":",","name":"punctuation.separator.delimiter.java"}]},"objects":{"match":"(?<![$\\\\w])[$A-Z_a-z][$\\\\w]*(?=\\\\s*\\\\.\\\\s*[$\\\\w]+)","name":"variable.other.object.java"},"parameters":{"patterns":[{"match":"\\\\bfinal\\\\b","name":"storage.modifier.java"},{"include":"#annotations"},{"include":"#all-types"},{"include":"#strings"},{"match":"\\\\w+","name":"variable.parameter.java"},{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"\\\\.\\\\.\\\\.","name":"punctuation.definition.parameters.varargs.java"}]},"parens":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.bracket.round.java"}},"patterns":[{"include":"#code"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.bracket.square.java"}},"end":"]","endCaptures":{"0":{"name":"punctuation.bracket.square.java"}},"patterns":[{"include":"#code"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.bracket.curly.java"}},"patterns":[{"include":"#code"}]}]},"primitive-arrays":{"patterns":[{"begin":"\\\\b(void|boolean|byte|char|short|int|float|long|double)\\\\b\\\\s*(?=\\\\[)","beginCaptures":{"1":{"name":"storage.type.primitive.array.java"}},"end":"(?!\\\\s*\\\\[)","patterns":[{"include":"#comments"},{"include":"#parens"}]}]},"primitive-types":{"match":"\\\\b(void|boolean|byte|char|short|int|float|long|double)\\\\b","name":"storage.type.primitive.java"},"properties":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"keyword.control.new.java"}},"match":"(\\\\.)\\\\s*(new)"},{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"variable.other.object.property.java"}},"match":"(\\\\.)\\\\s*([$A-Z_a-z][$\\\\w]*)(?=\\\\s*\\\\.\\\\s*[$A-Z_a-z][$\\\\w]*)"},{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"variable.other.object.property.java"}},"match":"(\\\\.)\\\\s*([$A-Z_a-z][$\\\\w]*)"},{"captures":{"1":{"name":"punctuation.separator.period.java"},"2":{"name":"invalid.illegal.identifier.java"}},"match":"(\\\\.)\\\\s*([0-9][$\\\\w]*)"}]},"record":{"begin":"(?=\\\\w?[\\\\w\\\\s]*\\\\brecord\\\\s+[$\\\\w]+)","end":"}","endCaptures":{"0":{"name":"punctuation.section.class.end.bracket.curly.java"}},"name":"meta.record.java","patterns":[{"include":"#storage-modifiers"},{"include":"#generics"},{"include":"#comments"},{"begin":"(record)\\\\s+([$\\\\w]+)(<[$\\\\w]+>)?(\\\\()","beginCaptures":{"1":{"name":"storage.modifier.java"},"2":{"name":"entity.name.type.record.java"},"3":{"patterns":[{"include":"#generics"}]},"4":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"name":"meta.record.identifier.java","patterns":[{"include":"#code"}]},{"begin":"(implements)\\\\s","beginCaptures":{"1":{"name":"storage.modifier.implements.java"}},"end":"(?=\\\\s*\\\\{)","name":"meta.definition.class.implemented.interfaces.java","patterns":[{"include":"#object-types-inherited"},{"include":"#comments"}]},{"include":"#record-body"}]},"record-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.class.begin.bracket.curly.java"}},"end":"(?=})","name":"meta.record.body.java","patterns":[{"include":"#record-constructor"},{"include":"#class-body"}]},"record-constructor":{"begin":"(?!new)(?=[<\\\\w].*\\\\s+)(?=([^(/=]|/(?!/))+(?=\\\\{))","end":"(})|(?=;)","endCaptures":{"1":{"name":"punctuation.section.method.end.bracket.curly.java"}},"name":"meta.method.java","patterns":[{"include":"#storage-modifiers"},{"begin":"(\\\\w+)","beginCaptures":{"1":{"name":"entity.name.function.java"}},"end":"(?=\\\\s*\\\\{)","name":"meta.method.identifier.java","patterns":[{"include":"#comments"}]},{"include":"#comments"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.method.begin.bracket.curly.java"}},"contentName":"meta.method.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},"static-initializer":{"patterns":[{"include":"#anonymous-block-and-instance-initializer"},{"match":"static","name":"storage.modifier.java"}]},"storage-modifiers":{"match":"\\\\b(public|private|protected|static|final|native|synchronized|abstract|threadsafe|transient|volatile|default|strictfp|sealed|non-sealed)\\\\b","name":"storage.modifier.java"},"strings":{"patterns":[{"begin":"\\"\\"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"\\"\\"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.triple.java","patterns":[{"match":"(\\\\\\\\\\"\\"\\")(?!\\")|(\\\\\\\\.)","name":"constant.character.escape.java"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.double.java","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.java"}]},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.java"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.java"}},"name":"string.quoted.single.java","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.java"}]}]},"throws":{"begin":"throws","beginCaptures":{"0":{"name":"storage.modifier.java"}},"end":"(?=[;{])","name":"meta.throwables.java","patterns":[{"match":",","name":"punctuation.separator.delimiter.java"},{"match":"[$A-Z_a-z][$.0-9A-Z_a-z]*","name":"storage.type.java"},{"include":"#comments"}]},"try-catch-finally":{"patterns":[{"begin":"\\\\btry\\\\b","beginCaptures":{"0":{"name":"keyword.control.try.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.try.end.bracket.curly.java"}},"name":"meta.try.java","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.try.resources.begin.bracket.round.java"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.try.resources.end.bracket.round.java"}},"name":"meta.try.resources.java","patterns":[{"include":"#code"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.try.begin.bracket.curly.java"}},"contentName":"meta.try.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},{"begin":"\\\\b(catch)\\\\b","beginCaptures":{"1":{"name":"keyword.control.catch.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.catch.end.bracket.curly.java"}},"name":"meta.catch.java","patterns":[{"include":"#comments"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.bracket.round.java"}},"contentName":"meta.catch.parameters.java","end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.bracket.round.java"}},"patterns":[{"include":"#comments"},{"include":"#storage-modifiers"},{"begin":"[$A-Z_a-z][$.0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"storage.type.java"}},"end":"(\\\\|)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.catch.separator.java"}},"patterns":[{"include":"#comments"},{"captures":{"0":{"name":"variable.parameter.java"}},"match":"\\\\w+"}]}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.catch.begin.bracket.curly.java"}},"contentName":"meta.catch.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]},{"begin":"\\\\bfinally\\\\b","beginCaptures":{"0":{"name":"keyword.control.finally.java"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.finally.end.bracket.curly.java"}},"name":"meta.finally.java","patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.finally.begin.bracket.curly.java"}},"contentName":"meta.finally.body.java","end":"(?=})","patterns":[{"include":"#code"}]}]}]},"variables":{"begin":"(?=\\\\b((void|boolean|byte|char|short|int|float|long|double)|(?>(\\\\w+\\\\.)*[A-Z_]+\\\\w*))\\\\b\\\\s*(<[],.<>?\\\\[\\\\w\\\\s]*>)?\\\\s*((\\\\[])*)?\\\\s+[$A-Z_a-z][$\\\\w]*([]$,\\\\[\\\\w][],\\\\[\\\\w\\\\s]*)?\\\\s*([:;=]))","end":"(?=[:;=])","name":"meta.definition.variable.java","patterns":[{"captures":{"1":{"name":"variable.other.definition.java"}},"match":"([$A-Z_a-z][$\\\\w]*)(?=\\\\s*(\\\\[])*\\\\s*([,:;=]))"},{"include":"#all-types"},{"include":"#code"}]},"variables-local":{"begin":"(?=\\\\b(var)\\\\b\\\\s+[$A-Z_a-z][$\\\\w]*\\\\s*([:;=]))","end":"(?=[:;=])","name":"meta.definition.variable.local.java","patterns":[{"match":"\\\\bvar\\\\b","name":"storage.type.local.java"},{"captures":{"1":{"name":"variable.other.definition.java"}},"match":"([$A-Z_a-z][$\\\\w]*)(?=\\\\s*(\\\\[])*\\\\s*([:;=]))"},{"include":"#code"}]}},"scopeName":"source.java"}`)),f$e=[m$e]});var vne={};fn(vne,{default:()=>g$e});var h$e,g$e,kne=tr(()=>{h$e=Object.freeze(JSON.parse('{"displayName":"Kotlin","fileTypes":["kt","kts"],"name":"kotlin","patterns":[{"include":"#import"},{"include":"#package"},{"include":"#code"}],"repository":{"annotation-simple":{"match":"(?<!\\\\w)@[.\\\\w]+\\\\b(?!:)","name":"entity.name.type.annotation.kotlin"},"annotation-site":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*(?!\\\\[)","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"$","patterns":[{"include":"#unescaped-annotation"}]},"annotation-site-list":{"begin":"(?<!\\\\w)(@\\\\w+):\\\\s*\\\\[","beginCaptures":{"1":{"name":"entity.name.type.annotation-site.kotlin"}},"end":"]","patterns":[{"include":"#unescaped-annotation"}]},"binary-literal":{"match":"0([Bb])[01][01_]*","name":"constant.numeric.binary.kotlin"},"boolean-literal":{"match":"\\\\b(true|false)\\\\b","name":"constant.language.boolean.kotlin"},"character":{"begin":"\'","end":"\'","name":"string.quoted.single.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"}]},"class-declaration":{"captures":{"1":{"name":"keyword.hard.class.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(class|(?:fun\\\\s+)?interface)\\\\s+(\\\\b\\\\w+\\\\b|`[^`]+`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"code":{"patterns":[{"include":"#comments"},{"include":"#keywords"},{"include":"#annotation-simple"},{"include":"#annotation-site-list"},{"include":"#annotation-site"},{"include":"#class-declaration"},{"include":"#object"},{"include":"#type-alias"},{"include":"#function"},{"include":"#variable-declaration"},{"include":"#type-constraint"},{"include":"#type-annotation"},{"include":"#function-call"},{"include":"#method-reference"},{"include":"#key"},{"include":"#string"},{"include":"#string-empty"},{"include":"#string-multiline"},{"include":"#character"},{"include":"#lambda-arrow"},{"include":"#operators"},{"include":"#self-reference"},{"include":"#decimal-literal"},{"include":"#hex-literal"},{"include":"#binary-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"}]},"comment-block":{"begin":"/\\\\*(?!\\\\*)","end":"\\\\*/","name":"comment.block.kotlin"},"comment-javadoc":{"patterns":[{"begin":"/\\\\*\\\\*","end":"\\\\*/","name":"comment.block.javadoc.kotlin","patterns":[{"match":"@(return|constructor|receiver|sample|see|author|since|suppress)\\\\b","name":"keyword.other.documentation.javadoc.kotlin"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@p(?:aram|roperty))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"variable.parameter.kotlin"}},"match":"(@param)\\\\[(\\\\S+)]"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"}},"match":"(@(?:exception|throws))\\\\s+(\\\\S+)"},{"captures":{"1":{"name":"keyword.other.documentation.javadoc.kotlin"},"2":{"name":"entity.name.type.class.kotlin"},"3":{"name":"variable.parameter.kotlin"}},"match":"\\\\{(@link)\\\\s+(\\\\S+)?#([$\\\\w]+\\\\s*\\\\([^()]*\\\\)).*}"}]}]},"comment-line":{"begin":"//","end":"$","name":"comment.line.double-slash.kotlin"},"comments":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#comment-javadoc"}]},"control-keywords":{"match":"\\\\b(if|else|while|do|when|try|throw|break|continue|return|for)\\\\b","name":"keyword.control.kotlin"},"decimal-literal":{"match":"\\\\b\\\\d[_\\\\d]*(\\\\.[_\\\\d]+)?(([Ee])\\\\d+)?([Uu])?([FLf])?\\\\b","name":"constant.numeric.decimal.kotlin"},"function":{"captures":{"1":{"name":"keyword.hard.fun.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]},"4":{"name":"entity.name.type.class.extension.kotlin"},"5":{"name":"entity.name.function.declaration.kotlin"}},"match":"\\\\b(fun)\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?:(?:(\\\\w+)\\\\.)?(\\\\b\\\\w+\\\\b|`[^`]+`))?"},"function-call":{"captures":{"1":{"name":"entity.name.function.call.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\??\\\\.?(\\\\b\\\\w+\\\\b|`[^`]+`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?\\\\s*(?=[({])"},"hard-keywords":{"match":"\\\\b(as|typeof|is|in)\\\\b","name":"keyword.hard.kotlin"},"hex-literal":{"match":"0([Xx])\\\\h[_\\\\h]*([Uu])?","name":"constant.numeric.hex.kotlin"},"import":{"begin":"\\\\b(import)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.soft.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.import.kotlin","patterns":[{"include":"#comments"},{"include":"#hard-keywords"},{"match":"\\\\*","name":"variable.language.wildcard.kotlin"}]},"key":{"captures":{"1":{"name":"variable.parameter.kotlin"},"2":{"name":"keyword.operator.assignment.kotlin"}},"match":"\\\\b(\\\\w=)\\\\s*(=)"},"keywords":{"patterns":[{"include":"#prefix-modifiers"},{"include":"#postfix-modifiers"},{"include":"#soft-keywords"},{"include":"#hard-keywords"},{"include":"#control-keywords"}]},"lambda-arrow":{"match":"->","name":"storage.type.function.arrow.kotlin"},"method-reference":{"captures":{"1":{"name":"entity.name.function.reference.kotlin"}},"match":"\\\\??::(\\\\b\\\\w+\\\\b|`[^`]+`)"},"null-literal":{"match":"\\\\bnull\\\\b","name":"constant.language.null.kotlin"},"object":{"captures":{"1":{"name":"keyword.hard.object.kotlin"},"2":{"name":"entity.name.type.object.kotlin"}},"match":"\\\\b(object)(?:\\\\s+(\\\\b\\\\w+\\\\b|`[^`]+`))?"},"operators":{"patterns":[{"match":"(===?|!==?|<=|>=|[<>])","name":"keyword.operator.comparison.kotlin"},{"match":"([-%*+/]=)","name":"keyword.operator.assignment.arithmetic.kotlin"},{"match":"(=)","name":"keyword.operator.assignment.kotlin"},{"match":"([-%*+/])","name":"keyword.operator.arithmetic.kotlin"},{"match":"(!|&&|\\\\|\\\\|)","name":"keyword.operator.logical.kotlin"},{"match":"(--|\\\\+\\\\+)","name":"keyword.operator.increment-decrement.kotlin"},{"match":"(\\\\.\\\\.)","name":"keyword.operator.range.kotlin"}]},"package":{"begin":"\\\\b(package)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.hard.package.kotlin"}},"contentName":"entity.name.package.kotlin","end":";|$","name":"meta.package.kotlin","patterns":[{"include":"#comments"}]},"postfix-modifiers":{"match":"\\\\b(where|by|get|set)\\\\b","name":"storage.modifier.other.kotlin"},"prefix-modifiers":{"match":"\\\\b(abstract|final|enum|open|annotation|sealed|data|override|final|lateinit|private|protected|public|internal|inner|companion|noinline|crossinline|vararg|reified|tailrec|operator|infix|inline|external|const|suspend|value)\\\\b","name":"storage.modifier.other.kotlin"},"self-reference":{"match":"\\\\b(this|super)(@\\\\w+)?\\\\b","name":"variable.language.this.kotlin"},"soft-keywords":{"match":"\\\\b(init|catch|finally|field)\\\\b","name":"keyword.soft.kotlin"},"string":{"begin":"(?<!\\")\\"(?!\\")","end":"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"string-empty":{"match":"(?<!\\")\\"\\"(?!\\")","name":"string.quoted.double.kotlin"},"string-escape-bracketed":{"begin":"(?<!\\\\\\\\)(\\\\$\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.template-expression.begin"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.definition.template-expression.end"}},"name":"meta.template.expression.kotlin","patterns":[{"include":"#code"}]},"string-escape-simple":{"match":"(?<!\\\\\\\\)\\\\$\\\\w+\\\\b","name":"variable.string-escape.kotlin"},"string-multiline":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"string.quoted.double.kotlin","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.kotlin"},{"include":"#string-escape-simple"},{"include":"#string-escape-bracketed"}]},"type-alias":{"captures":{"1":{"name":"keyword.hard.typealias.kotlin"},"2":{"name":"entity.name.type.kotlin"},"3":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(typealias)\\\\s+(\\\\b\\\\w+\\\\b|`[^`]+`)\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"},"type-annotation":{"captures":{"0":{"patterns":[{"include":"#type-parameter"}]}},"match":"(?<![:?]):\\\\s*([?\\\\w\\\\s]|->|(?<GROUP>[(<]([^\\"\'()<>]|\\\\g<GROUP>)+[)>]))+"},"type-parameter":{"patterns":[{"match":"\\\\b\\\\w+\\\\b","name":"entity.name.type.kotlin"},{"match":"\\\\b(in|out)\\\\b","name":"storage.modifier.kotlin"}]},"unescaped-annotation":{"match":"\\\\b[.\\\\w]+\\\\b","name":"entity.name.type.annotation.kotlin"},"variable-declaration":{"captures":{"1":{"name":"keyword.hard.kotlin"},"2":{"patterns":[{"include":"#type-parameter"}]}},"match":"\\\\b(va[lr])\\\\b\\\\s*(?<GROUP><([^<>]|\\\\g<GROUP>)+>)?"}},"scopeName":"source.kotlin","aliases":["kt","kts"]}')),g$e=[h$e]});var Cne={};fn(Cne,{default:()=>y$e});var b$e,y$e,_ne=tr(()=>{b$e=Object.freeze(JSON.parse(`{"displayName":"Zig","fileTypes":["zig","zon"],"name":"zig","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#keywords"},{"include":"#operators"},{"include":"#punctuation"},{"include":"#numbers"},{"include":"#support"},{"include":"#variables"}],"repository":{"commentContents":{"patterns":[{"match":"\\\\b(TODO|FIXME|XXX|NOTE)\\\\b:?","name":"keyword.todo.zig"}]},"comments":{"patterns":[{"begin":"//[!/](?=[^/])","end":"$","name":"comment.line.documentation.zig","patterns":[{"include":"#commentContents"}]},{"begin":"//","end":"$","name":"comment.line.double-slash.zig","patterns":[{"include":"#commentContents"}]}]},"keywords":{"patterns":[{"match":"\\\\binline\\\\b(?!\\\\s*\\\\bfn\\\\b)","name":"keyword.control.repeat.zig"},{"match":"\\\\b(while|for)\\\\b","name":"keyword.control.repeat.zig"},{"match":"\\\\b(extern|packed|export|pub|noalias|inline|comptime|volatile|align|linksection|threadlocal|allowzero|noinline|callconv)\\\\b","name":"keyword.storage.zig"},{"match":"\\\\b(struct|enum|union|opaque)\\\\b","name":"keyword.structure.zig"},{"match":"\\\\b(asm|unreachable)\\\\b","name":"keyword.statement.zig"},{"match":"\\\\b(break|return|continue|defer|errdefer)\\\\b","name":"keyword.control.flow.zig"},{"match":"\\\\b(resume|suspend|nosuspend)\\\\b","name":"keyword.control.async.zig"},{"match":"\\\\b(try|catch)\\\\b","name":"keyword.control.trycatch.zig"},{"match":"\\\\b(if|else|switch|orelse)\\\\b","name":"keyword.control.conditional.zig"},{"match":"\\\\b(null|undefined)\\\\b","name":"keyword.constant.default.zig"},{"match":"\\\\b(true|false)\\\\b","name":"keyword.constant.bool.zig"},{"match":"\\\\b(test|and|or)\\\\b","name":"keyword.default.zig"},{"match":"\\\\b(bool|void|noreturn|type|error|anyerror|anyframe|anytype|anyopaque)\\\\b","name":"keyword.type.zig"},{"match":"\\\\b(f16|f32|f64|f80|f128|u\\\\d+|i\\\\d+|isize|usize|comptime_int|comptime_float)\\\\b","name":"keyword.type.integer.zig"},{"match":"\\\\b(c_(?:char|short|ushort|int|uint|long|ulong|longlong|ulonglong|longdouble))\\\\b","name":"keyword.type.c.zig"}]},"numbers":{"patterns":[{"match":"\\\\b0x\\\\h[_\\\\h]*(\\\\.\\\\h[_\\\\h]*)?([Pp][-+]?[_\\\\h]+)?\\\\b","name":"constant.numeric.hexfloat.zig"},{"match":"\\\\b[0-9][0-9_]*(\\\\.[0-9][0-9_]*)?([Ee][-+]?[0-9_]+)?\\\\b","name":"constant.numeric.float.zig"},{"match":"\\\\b[0-9][0-9_]*\\\\b","name":"constant.numeric.decimal.zig"},{"match":"\\\\b0x[_\\\\h]+\\\\b","name":"constant.numeric.hexadecimal.zig"},{"match":"\\\\b0o[0-7_]+\\\\b","name":"constant.numeric.octal.zig"},{"match":"\\\\b0b[01_]+\\\\b","name":"constant.numeric.binary.zig"},{"match":"\\\\b[0-9](([EPep][-+])|[0-9A-Z_a-z])*(\\\\.(([EPep][-+])|[0-9A-Z_a-z])*)?([EPep][-+])?[0-9A-Z_a-z]*\\\\b","name":"constant.numeric.invalid.zig"}]},"operators":{"patterns":[{"match":"(?<=\\\\[)\\\\*c(?=])","name":"keyword.operator.c-pointer.zig"},{"match":"\\\\b((and|or))\\\\b|(==|!=|<=|>=|[<>])","name":"keyword.operator.comparison.zig"},{"match":"(-%?|\\\\+%?|\\\\*%?|[%/])=?","name":"keyword.operator.arithmetic.zig"},{"match":"(<<%?|>>|[!\\\\&^|~])=?","name":"keyword.operator.bitwise.zig"},{"match":"(==|\\\\+\\\\+|\\\\*\\\\*|->)","name":"keyword.operator.special.zig"},{"match":"=","name":"keyword.operator.assignment.zig"},{"match":"\\\\?","name":"keyword.operator.question.zig"}]},"punctuation":{"patterns":[{"match":"\\\\.","name":"punctuation.accessor.zig"},{"match":",","name":"punctuation.comma.zig"},{"match":":","name":"punctuation.separator.key-value.zig"},{"match":";","name":"punctuation.terminator.statement.zig"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\([\\"'\\\\\\\\nrt]|(x\\\\h{2})|(u\\\\{\\\\h+}))","name":"constant.character.escape.zig"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.zig"}]},"strings":{"patterns":[{"begin":"\\"","end":"\\"","name":"string.quoted.double.zig","patterns":[{"include":"#stringcontent"}]},{"begin":"\\\\\\\\\\\\\\\\","end":"$","name":"string.multiline.zig"},{"match":"'([^'\\\\\\\\]|\\\\\\\\(x\\\\h{2}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.))'","name":"string.quoted.single.zig"}]},"support":{"patterns":[{"match":"@[A-Z_a-z][0-9A-Z_a-z]*","name":"support.function.builtin.zig"}]},"variables":{"patterns":[{"name":"meta.function.declaration.zig","patterns":[{"captures":{"1":{"name":"storage.type.function.zig"},"2":{"name":"entity.name.type.zig"}},"match":"\\\\b(fn)\\\\s+([A-Z][0-9A-Za-z]*)\\\\b"},{"captures":{"1":{"name":"storage.type.function.zig"},"2":{"name":"entity.name.function.zig"}},"match":"\\\\b(fn)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"begin":"\\\\b(fn)\\\\s+@\\"","beginCaptures":{"1":{"name":"storage.type.function.zig"}},"end":"\\"","name":"entity.name.function.string.zig","patterns":[{"include":"#stringcontent"}]},{"match":"\\\\b(const|var|fn)\\\\b","name":"keyword.default.zig"}]},{"name":"meta.function.call.zig","patterns":[{"match":"([A-Z][0-9A-Za-z]*)(?=\\\\s*\\\\()","name":"entity.name.type.zig"},{"match":"([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\()","name":"entity.name.function.zig"}]},{"name":"meta.variable.zig","patterns":[{"match":"\\\\b[A-Z_a-z][0-9A-Z_a-z]*\\\\b","name":"variable.zig"},{"begin":"@\\"","end":"\\"","name":"variable.string.zig","patterns":[{"include":"#stringcontent"}]}]}]}},"scopeName":"source.zig"}`)),y$e=[b$e]});var Sne={};fn(Sne,{default:()=>w$e});var x$e,w$e,Lne=tr(()=>{sP();x$e=Object.freeze(JSON.parse(`{"displayName":"Lua","name":"lua","patterns":[{"begin":"\\\\b(?:(local)\\\\s+)?(function)\\\\b(?![,:])","beginCaptures":{"1":{"name":"keyword.local.lua"},"2":{"name":"keyword.control.lua"}},"end":"(?<=[-\\\\]\\"')\\\\[{}])","name":"meta.function.lua","patterns":[{"include":"#comment"},{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.lua"}},"end":"(\\\\))|(?=[-\\\\]\\"'\\\\[{}])|(?<!\\\\.)\\\\.(?!\\\\.)","endCaptures":{"1":{"name":"punctuation.definition.parameters.finish.lua"}},"name":"meta.parameter.lua","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"constant.language.lua"},"2":{"name":"variable.parameter.function.lua"}},"match":"(\\\\.{3})\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.parameter.function.lua"},{"match":",","name":"punctuation.separator.arguments.lua"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.arguments.lua"}},"end":"(?=[),])","patterns":[{"include":"#emmydoc.type"}]}]},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b\\\\s*(?=:)","name":"entity.name.class.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","name":"entity.name.function.lua"}]},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(\\\\.\\\\h*)?([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\.\\\\h+([Ee]-?\\\\d*)?([Pp][-+]\\\\d+)?","name":"constant.numeric.float.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])0[Xx]\\\\h+(?![.0-9EPep])","name":"constant.numeric.integer.hexadecimal.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(\\\\.\\\\d*)?([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\.\\\\d+([Ee]-?\\\\d*)?","name":"constant.numeric.float.lua"},{"match":"(?<![.\\\\w\\\\d])\\\\d+(?![.0-9EPep])","name":"constant.numeric.integer.lua"},{"include":"#string"},{"captures":{"1":{"name":"punctuation.definition.comment.lua"}},"match":"\\\\A(#!).*$\\\\n?","name":"comment.line.shebang.lua"},{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.goto.lua"},"2":{"name":"string.tag.lua"}},"match":"\\\\b(goto)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)"},{"captures":{"1":{"name":"punctuation.section.embedded.begin.lua"},"2":{"name":"punctuation.section.embedded.end.lua"}},"match":"(::)\\\\s*[A-Z_a-z][0-9A-Z_a-z]*\\\\s*(::)","name":"string.tag.lua"},{"captures":{"0":{"name":"storage.type.attribute.lua"}},"match":"<\\\\s*(c(?:onst|lose))\\\\s*>"},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\\\b","name":"keyword.control.lua"},{"match":"\\\\b(local)\\\\b","name":"keyword.local.lua"},{"captures":{"1":{"name":"keyword.global.lua"}},"match":"^\\\\s*(global)\\\\b(?!\\\\s*=)"},{"match":"\\\\b(function)\\\\b(?![,:])","name":"keyword.control.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\\\.(pi|huge|maxinteger|mininteger)|utf8\\\\.charpattern|io\\\\.(std(?:in|out|err))|package\\\\.(config|cpath|loaded|loaders|path|preload|searchers))\\\\b|(?<!\\\\.)\\\\.{3}(?!\\\\.)","name":"constant.language.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(self)\\\\b","name":"variable.language.self.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\\\b(?!\\\\s*=(?!=))","name":"support.function.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(async)\\\\b(?!\\\\s*=(?!=))","name":"entity.name.tag.lua"},{"match":"(?<![^.]\\\\.|:)\\\\b(coroutine\\\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\\\.(concat|create|insert|maxn|move|pack|remove|sort|unpack)|math\\\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\\\.(loadlib|seeall|searchpath)|debug\\\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\\\.(char|codes|codepoint|len|offset))\\\\b(?!\\\\s*=(?!=))","name":"support.function.library.lua"},{"match":"\\\\b(\\\\|\\\\||&&|!)\\\\b","name":"keyword.operator.lua"},{"match":"\\\\b(and|or|not)\\\\b","name":"keyword.operator.logical.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*(?:[\\"'({]|\\\\[\\\\[))","name":"support.function.any-method.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*\\\\??:)","name":"entity.name.class.lua"},{"match":"(?<=[^.]\\\\.|:)\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.other.attribute.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"variable.other.lua"},{"match":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?=\\\\s*=\\\\s*\\\\b(function)\\\\b)","name":"entity.name.function.lua"},{"match":"[-#%*+/^]|==?|~=|!=|<=?|>=?|(?<!\\\\.)\\\\.{2}(?!\\\\.)","name":"keyword.operator.lua"}],"repository":{"comment":{"patterns":[{"begin":"(^[\\\\t ]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.lua"}},"end":"(?!\\\\G)((?!^)[\\\\t ]+\\\\n)?","endCaptures":{"1":{"name":"punctuation.whitespace.comment.trailing.lua"}},"patterns":[{"begin":"--\\\\[(=*)\\\\[@@@","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"","patterns":[{"include":"source.lua"}]},{"begin":"--\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"(--)?]\\\\1]","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"----","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua"},{"begin":"---","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.documentation.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]},{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.lua"}},"end":"\\\\n","name":"comment.line.double-dash.lua","patterns":[{"include":"#ldoc_tag"}]}]},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.lua"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.lua"}},"name":"comment.block.lua","patterns":[{"include":"#emmydoc"},{"include":"#ldoc_tag"}]}]},"emmydoc":{"patterns":[{"begin":"(?<=---)[\\\\t ]*@class","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"[,:]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@enum","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=\\\\n)"}]},{"begin":"(?<=---)[\\\\t ]*@type","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@alias","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*(@operator)\\\\s*(\\\\b[a-z]+)?","beginCaptures":{"1":{"name":"storage.type.annotation.lua"},"2":{"name":"support.function.library.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@cast","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.other.lua"}},"end":"(?=\\\\n)","patterns":[{"include":"#emmydoc.type"},{"match":"([+-|])","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@param","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(\\\\??)","beginCaptures":{"1":{"name":"entity.name.variable.lua"},"2":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@return","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\?","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@field","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"(\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b|(\\\\[))(\\\\??)","beginCaptures":{"2":{"name":"entity.name.variable.lua"},"3":{"name":"keyword.operator.lua"}},"end":"(?=[\\\\n#])","patterns":[{"include":"#string"},{"include":"#emmydoc.type"},{"match":"]","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@generic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b","beginCaptures":{"0":{"name":"storage.type.generic.lua"}},"end":"(?=\\\\n)|(,)","endCaptures":{"0":{"name":"keyword.operator.lua"}},"patterns":[{"match":":","name":"keyword.operator.lua"},{"include":"#emmydoc.type"}]}]},{"begin":"(?<=---)[\\\\t ]*@vararg","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@overload","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#emmydoc.type"}]},{"begin":"(?<=---)[\\\\t ]*@deprecated","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@meta","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@private","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@protected","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@package","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])"},{"begin":"(?<=---)[\\\\t ]*@version","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b(5\\\\.1|5\\\\.2|5\\\\.3|5\\\\.4|JIT)\\\\b","name":"support.class.lua"},{"match":"[,<>]","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@see","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"match":"\\\\b([*A-Z_a-z][-*.0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":"#","name":"keyword.operator.lua"}]},{"begin":"(?<=---)[\\\\t ]*@diagnostic","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"begin":"([-0-9A-Z_a-z]+)[\\\\t ]*(:)?","beginCaptures":{"1":{"name":"keyword.other.unit"},"2":{"name":"keyword.operator.unit"}},"end":"(?=\\\\n)","patterns":[{"match":"\\\\b([*A-Z_a-z][-0-9A-Z_a-z]*)","name":"support.class.lua"},{"match":",","name":"keyword.operator.lua"}]}]},{"begin":"(?<=---)[\\\\t ]*@module","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]},{"match":"(?<=---)[\\\\t ]*@(async|nodiscard)","name":"storage.type.annotation.lua"},{"begin":"(?<=---)\\\\|\\\\s*[+>]?","beginCaptures":{"0":{"name":"storage.type.annotation.lua"}},"end":"(?=[\\\\n#@])","patterns":[{"include":"#string"}]}]},"emmydoc.type":{"patterns":[{"begin":"\\\\bfun\\\\b","beginCaptures":{"0":{"name":"keyword.control.lua"}},"end":"(?=[#\\\\s])","patterns":[{"match":"[](),:<>?\\\\[][\\\\t ]*","name":"keyword.operator.lua"},{"match":"([A-Z_a-z][-*.0-9A-Z_a-z]*)(?<!,)[\\\\t ]*(?=\\\\??:)","name":"entity.name.variable.lua"},{"include":"#emmydoc.type"},{"include":"#string"}]},{"match":"<[*A-Z_a-z][-*.0-9A-Z_a-z]*>","name":"storage.type.generic.lua"},{"match":"\\\\basync\\\\b","name":"entity.name.tag.lua"},{"match":"[,:?\`{|}][\\\\t ]*","name":"keyword.operator.lua"},{"begin":"(?=[\\"'*.A-\\\\[_a-z])","end":"(?=[#),:?|}\\\\s])","patterns":[{"match":"([-\\\\]*,.0-9<>A-\\\\[_a-z]+)(?<!,)[\\\\t ]*","name":"support.type.lua"},{"match":"(\\\\.\\\\.\\\\.)[\\\\t ]*","name":"constant.language.lua"},{"include":"#string"}]}]},"escaped_char":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\abfnrtv]","name":"constant.character.escape.lua"},{"match":"\\\\\\\\z[\\\\t\\\\n ]*","name":"constant.character.escape.lua"},{"match":"\\\\\\\\\\\\d{1,3}","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\x\\\\h\\\\h","name":"constant.character.escape.byte.lua"},{"match":"\\\\\\\\u\\\\{\\\\h+}","name":"constant.character.escape.unicode.lua"},{"match":"\\\\\\\\.","name":"invalid.illegal.character.escape.lua"}]},"ldoc_tag":{"captures":{"1":{"name":"punctuation.definition.block.tag.ldoc"},"2":{"name":"storage.type.class.ldoc"}},"match":"\\\\G[\\\\t ]*(@)(alias|annotation|author|charset|class|classmod|comment|constructor|copyright|description|example|export|factory|field|file|fixme|function|include|lfunction|license|local|module|name|param|pragma|private|raise|release|return|script|section|see|set|static|submodule|summary|tfield|thread|tparam|treturn|todo|topic|type|usage|warning|within)\\\\b"},"string":{"patterns":[{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"'[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.single.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\\"[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua","patterns":[{"include":"#escaped_char"}]},{"begin":"\`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"\`[\\\\t ]*|(?=\\\\n)","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.double.lua"},{"begin":"(?<=\\\\.cdef)\\\\s*(\\\\[(=*)\\\\[)","beginCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.begin.lua"}},"contentName":"meta.embedded.lua","end":"(]\\\\2])[\\\\t ]*","endCaptures":{"0":{"name":"string.quoted.other.multiline.lua"},"1":{"name":"punctuation.definition.string.end.lua"}},"patterns":[{"include":"source.c"}]},{"begin":"(?<!--)\\\\[(=*)\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.lua"}},"end":"]\\\\1][\\\\t ]*","endCaptures":{"0":{"name":"punctuation.definition.string.end.lua"}},"name":"string.quoted.other.multiline.lua"}]}},"scopeName":"source.lua","embeddedLangs":["c"]}`)),w$e=[...aP,x$e]});var Mne={};fn(Mne,{default:()=>k$e});var v$e,k$e,Ene=tr(()=>{v$e=Object.freeze(JSON.parse('{"displayName":"Makefile","name":"make","patterns":[{"include":"#comment"},{"include":"#variables"},{"include":"#variable-assignment"},{"include":"#directives"},{"include":"#recipe"},{"include":"#target"}],"repository":{"another-variable-braces":{"patterns":[{"begin":"(?<=\\\\{)(?!})","end":"(?=}|((?<!\\\\\\\\)\\\\n))","name":"variable.other.makefile","patterns":[{"include":"#variables"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"another-variable-parentheses":{"patterns":[{"begin":"(?<=\\\\()(?!\\\\))","end":"(?=\\\\)|((?<!\\\\\\\\)\\\\n))","name":"variable.other.makefile","patterns":[{"include":"#variables"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"braces-interpolation":{"begin":"\\\\{","end":"}","patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"builtin-variable-braces":{"patterns":[{"match":"(?<=\\\\{)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*})","name":"variable.language.makefile"}]},"builtin-variable-parentheses":{"patterns":[{"match":"(?<=\\\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\\\.LIBPATTERNS)(?=\\\\s*\\\\))","name":"variable.language.makefile"}]},"comma":{"match":",","name":"punctuation.separator.delimeter.comma.makefile"},"comment":{"begin":"(^ +)?((?<!\\\\\\\\)(\\\\\\\\\\\\\\\\)*)(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.makefile"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.makefile"}},"end":"(?=[^\\\\\\\\])$","name":"comment.line.number-sign.makefile","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"directives":{"patterns":[{"begin":"^ *([-s]?include)\\\\b","beginCaptures":{"1":{"name":"keyword.control.include.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variables"},{"match":"%","name":"constant.other.placeholder.makefile"}]},{"begin":"^ *(vpath)\\\\b","beginCaptures":{"1":{"name":"keyword.control.vpath.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variables"},{"match":"%","name":"constant.other.placeholder.makefile"}]},{"begin":"^\\\\s*(?:(override)\\\\s*)?(define)\\\\s*(\\\\S+)\\\\s*([+:?]??=)?(?=\\\\s)","captures":{"1":{"name":"keyword.control.override.makefile"},"2":{"name":"keyword.control.define.makefile"},"3":{"name":"variable.other.makefile"},"4":{"name":"punctuation.separator.key-value.makefile"}},"end":"^\\\\s*(endef)\\\\b","name":"meta.scope.conditional.makefile","patterns":[{"begin":"\\\\G(?!\\\\n)","end":"^","patterns":[{"include":"#comment"}]},{"include":"#variables"},{"include":"#directives"}]},{"begin":"^ *(export)\\\\b","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variable-assignment"},{"match":"\\\\S+","name":"variable.other.makefile"}]},{"begin":"^ *(override|private)\\\\b","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"include":"#variable-assignment"}]},{"begin":"^ *(un(?:export|define))\\\\b","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^","patterns":[{"include":"#comment"},{"match":"\\\\S+","name":"variable.other.makefile"}]},{"begin":"^\\\\s*(ifn??(?:eq|def))(?=\\\\s)","captures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"^\\\\s*(endif)\\\\b","name":"meta.scope.conditional.makefile","patterns":[{"begin":"\\\\G","end":"^","name":"meta.scope.condition.makefile","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#comment"}]},{"begin":"^\\\\s*else(?=\\\\s)\\\\s*(ifn??(?:eq|def))*(?=\\\\s)","beginCaptures":{"0":{"name":"keyword.control.else.makefile"}},"end":"^","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#comment"}]},{"include":"$self"}]}]},"flavor-variable-braces":{"patterns":[{"begin":"(?<=\\\\{)(origin|flavor)\\\\s(?=[^}\\\\s]+\\\\s*})","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"contentName":"variable.other.makefile","end":"(?=})","name":"meta.scope.function-call.makefile","patterns":[{"include":"#variables"}]}]},"flavor-variable-parentheses":{"patterns":[{"begin":"(?<=\\\\()(origin|flavor)\\\\s(?=[^)\\\\s]+\\\\s*\\\\))","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"contentName":"variable.other.makefile","end":"(?=\\\\))","name":"meta.scope.function-call.makefile","patterns":[{"include":"#variables"}]}]},"function-variable-braces":{"patterns":[{"begin":"(?<=\\\\{)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"end":"(?=}|((?<!\\\\\\\\)\\\\n))","name":"meta.scope.function-call.makefile","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#interpolation"},{"match":"[%*]","name":"constant.other.placeholder.makefile"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"function-variable-parentheses":{"patterns":[{"begin":"(?<=\\\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\\\s","beginCaptures":{"1":{"name":"support.function.$1.makefile"}},"end":"(?=\\\\)|((?<!\\\\\\\\)\\\\n))","name":"meta.scope.function-call.makefile","patterns":[{"include":"#comma"},{"include":"#variables"},{"include":"#interpolation"},{"match":"[%*]","name":"constant.other.placeholder.makefile"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"}]}]},"interpolation":{"patterns":[{"include":"#parentheses-interpolation"},{"include":"#braces-interpolation"}]},"parentheses-interpolation":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#variables"},{"include":"#interpolation"}]},"recipe":{"begin":"^\\\\t([-+@]*)","beginCaptures":{"1":{"name":"keyword.control.$1.makefile"}},"end":"[^\\\\\\\\]$","name":"meta.scope.recipe.makefile","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"},{"include":"#variables"}]},"simple-variable":{"patterns":[{"match":"\\\\$[^(){}]","name":"variable.language.makefile"}]},"target":{"begin":"^(?!\\\\t)([^:]*)(:)(?!=)","beginCaptures":{"1":{"patterns":[{"captures":{"1":{"name":"support.function.target.$1.makefile"}},"match":"^\\\\s*(\\\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\\\s*$"},{"begin":"(?=\\\\S)","end":"(?=\\\\s|$)","name":"entity.name.function.target.makefile","patterns":[{"include":"#variables"},{"match":"%","name":"constant.other.placeholder.makefile"}]}]},"2":{"name":"punctuation.separator.key-value.makefile"}},"end":"[^\\\\\\\\]$","name":"meta.scope.target.makefile","patterns":[{"begin":"\\\\G","end":"(?=[^\\\\\\\\])$","name":"meta.scope.prerequisites.makefile","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"},{"match":"[%*]","name":"constant.other.placeholder.makefile"},{"include":"#comment"},{"include":"#variables"}]}]},"variable-assignment":{"begin":"(^ *|\\\\G\\\\s*)([^#:=\\\\s]+)\\\\s*((?:(?<![!+:?])|[!+:?])=)","beginCaptures":{"2":{"name":"variable.other.makefile","patterns":[{"include":"#variables"}]},"3":{"name":"punctuation.separator.key-value.makefile"}},"end":"\\\\n","patterns":[{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.continuation.makefile"},{"include":"#comment"},{"include":"#variables"}]},"variable-braces":{"patterns":[{"begin":"\\\\$\\\\{","captures":{"0":{"name":"punctuation.definition.variable.makefile"}},"end":"}|((?<!\\\\\\\\)\\\\n)","name":"string.interpolated.makefile","patterns":[{"include":"#variables"},{"include":"#builtin-variable-braces"},{"include":"#function-variable-braces"},{"include":"#flavor-variable-braces"},{"include":"#another-variable-braces"}]}]},"variable-parentheses":{"patterns":[{"begin":"\\\\$\\\\(","captures":{"0":{"name":"punctuation.definition.variable.makefile"}},"end":"\\\\)|((?<!\\\\\\\\)\\\\n)","name":"string.interpolated.makefile","patterns":[{"include":"#variables"},{"include":"#builtin-variable-parentheses"},{"include":"#function-variable-parentheses"},{"include":"#flavor-variable-parentheses"},{"include":"#another-variable-parentheses"}]}]},"variables":{"patterns":[{"include":"#simple-variable"},{"include":"#variable-parentheses"},{"include":"#variable-braces"}]}},"scopeName":"source.makefile","aliases":["makefile"]}')),k$e=[v$e]});var C$e,Tne,Rne=tr(()=>{C$e=Object.freeze(JSON.parse(`{"displayName":"Dockerfile","name":"docker","patterns":[{"captures":{"1":{"name":"keyword.other.special-method.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*\\\\b(?i:(FROM))\\\\b.*?\\\\b(?i:(AS))\\\\b"},{"captures":{"1":{"name":"keyword.control.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\\\s"},{"captures":{"1":{"name":"keyword.operator.dockerfile"},"2":{"name":"keyword.other.special-method.dockerfile"}},"match":"^\\\\s*(?i:(ONBUILD)\\\\s+)?(?i:(CMD|ENTRYPOINT))\\\\s"},{"include":"#string-character-escape"},{"begin":"\\"","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"\\"","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.double.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"begin":"'","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dockerfile"}},"end":"'","endCaptures":{"1":{"name":"punctuation.definition.string.end.dockerfile"}},"name":"string.quoted.single.dockerfile","patterns":[{"include":"#string-character-escape"}]},{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.dockerfile"},"2":{"name":"comment.line.number-sign.dockerfile"},"3":{"name":"punctuation.definition.comment.dockerfile"}},"match":"^(\\\\s*)((#).*$\\\\n?)"}],"repository":{"string-character-escape":{"match":"\\\\\\\\.","name":"constant.character.escaped.dockerfile"}},"scopeName":"source.dockerfile","aliases":["dockerfile"]}`)),Tne=[C$e]});var Ane={};fn(Ane,{default:()=>Tne});var $ne=tr(()=>{Rne()});var Nne={};fn(Nne,{default:()=>M$e});var M$e,Pne=tr(()=>{"use strict";M$e=void 0});var jne={};fn(jne,{default:()=>E$e});var E$e,One=tr(()=>{E$e=Object.freeze(JSON.parse('{"name":"Pierre Dark","type":"dark","colors":{"editor.background":"#0a0a0a","editor.foreground":"#fafafa","foreground":"#fafafa","focusBorder":"#009fff","selection.background":"#19283c","editor.selectionBackground":"#009fff4d","editor.lineHighlightBackground":"#19283c8c","editorCursor.foreground":"#009fff","editorLineNumber.foreground":"#737373","editorLineNumber.activeForeground":"#a3a3a3","editorIndentGuide.background":"#1d1d1d","editorIndentGuide.activeBackground":"#262626","diffEditor.insertedTextBackground":"#07c4801a","diffEditor.deletedTextBackground":"#ff2e3f1a","sideBar.background":"#171717","sideBar.foreground":"#a3a3a3","sideBar.border":"#0a0a0a","sideBarTitle.foreground":"#fafafa","sideBarSectionHeader.background":"#171717","sideBarSectionHeader.foreground":"#a3a3a3","sideBarSectionHeader.border":"#0a0a0a","activityBar.background":"#171717","activityBar.foreground":"#fafafa","activityBar.border":"#0a0a0a","activityBar.activeBorder":"#009fff","activityBarBadge.background":"#009fff","activityBarBadge.foreground":"#0a0a0a","titleBar.activeBackground":"#171717","titleBar.activeForeground":"#fafafa","titleBar.inactiveBackground":"#171717","titleBar.inactiveForeground":"#737373","titleBar.border":"#0a0a0a","list.activeSelectionBackground":"#19283c99","list.activeSelectionForeground":"#fafafa","list.inactiveSelectionBackground":"#19283c73","list.hoverBackground":"#19283c59","list.focusOutline":"#009fff","tab.activeBackground":"#0a0a0a","tab.activeForeground":"#fafafa","tab.activeBorderTop":"#009fff","tab.inactiveBackground":"#171717","tab.inactiveForeground":"#737373","tab.border":"#0a0a0a","editorGroupHeader.tabsBackground":"#171717","editorGroupHeader.tabsBorder":"#0a0a0a","panel.background":"#171717","panel.border":"#0a0a0a","panelTitle.activeBorder":"#009fff","panelTitle.activeForeground":"#fafafa","panelTitle.inactiveForeground":"#737373","statusBar.background":"#171717","statusBar.foreground":"#a3a3a3","statusBar.border":"#0a0a0a","statusBar.noFolderBackground":"#171717","statusBar.debuggingBackground":"#ffca00","statusBar.debuggingForeground":"#0a0a0a","statusBarItem.remoteBackground":"#171717","statusBarItem.remoteForeground":"#a3a3a3","input.background":"#1d1d1d","input.border":"#1d1d1d","input.foreground":"#fafafa","input.placeholderForeground":"#636363","dropdown.background":"#1d1d1d","dropdown.border":"#1d1d1d","dropdown.foreground":"#fafafa","button.background":"#009fff","button.foreground":"#0a0a0a","button.hoverBackground":"#0190e7","textLink.foreground":"#009fff","textLink.activeForeground":"#009fff","notifications.background":"#101010","notifications.foreground":"#fafafa","notifications.border":"#1d1d1d","notificationToast.border":"#1d1d1d","notificationCenter.border":"#1d1d1d","notificationCenterHeader.background":"#101010","notificationCenterHeader.foreground":"#a3a3a3","notificationLink.foreground":"#009fff","notificationsErrorIcon.foreground":"#ff2e3f","notificationsWarningIcon.foreground":"#ffca00","notificationsInfoIcon.foreground":"#08c0ef","quickInput.background":"#101010","quickInput.foreground":"#fafafa","quickInputTitle.background":"#101010","widget.border":"#1d1d1d","gitDecoration.addedResourceForeground":"#07c480","gitDecoration.conflictingResourceForeground":"#7b43f8","gitDecoration.modifiedResourceForeground":"#009fff","gitDecoration.deletedResourceForeground":"#ff2e3f","gitDecoration.untrackedResourceForeground":"#07c480","gitDecoration.ignoredResourceForeground":"#737373","merge.currentHeaderBackground":"#7b43f84d","merge.currentContentBackground":"#7b43f81f","merge.incomingHeaderBackground":"#08c0ef4d","merge.incomingContentBackground":"#08c0ef1f","editorOverviewRuler.currentContentForeground":"#7b43f8","editorOverviewRuler.incomingContentForeground":"#08c0ef","terminal.titleForeground":"#a3a3a3","terminal.titleInactiveForeground":"#737373","terminal.background":"#171717","terminal.foreground":"#a3a3a3","terminal.ansiBlack":"#171717","terminal.ansiRed":"#ff2e3f","terminal.ansiGreen":"#0dbe4e","terminal.ansiYellow":"#ffca00","terminal.ansiBlue":"#009fff","terminal.ansiMagenta":"#e130ac","terminal.ansiCyan":"#08c0ef","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#171717","terminal.ansiBrightRed":"#ff2e3f","terminal.ansiBrightGreen":"#86c427","terminal.ansiBrightYellow":"#ffca00","terminal.ansiBrightBlue":"#009fff","terminal.ansiBrightMagenta":"#e130ac","terminal.ansiBrightCyan":"#08c0ef","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#737373"}},{"scope":"comment markup.link","settings":{"foreground":"#737373"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#5ecc71"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#5ecc71"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#68cdf2"}},{"scope":"constant","settings":{"foreground":"#ffd452"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#ffd452"}},{"scope":"constant.language","settings":{"foreground":"#68cdf2"}},{"scope":"variable.other.constant","settings":{"foreground":"#ffab16"}},{"scope":"keyword","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control","settings":{"foreground":"#ff678d"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#ff678d"}},{"scope":"token.storage","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#ff678d"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#ffa359"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#ffa359"}},{"scope":"variable.language","settings":{"foreground":"#ffab16"}},{"scope":"variable.parameter.function","settings":{"foreground":"#a3a3a3"}},{"scope":"function.parameter","settings":{"foreground":"#a3a3a3"}},{"scope":"variable.parameter","settings":{"foreground":"#a3a3a3"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#ffd452"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#ffd452"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#9d6afb"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.function","settings":{"foreground":"#9d6afb"}},{"scope":"support.function.console","settings":{"foreground":"#9d6afb"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#d568ea"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#d568ea"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#d568ea"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#ffab16"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.namespace","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator","settings":{"foreground":"#636363"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#ff678d"}},{"scope":"punctuation","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#636363"}},{"scope":"punctuation.terminator","settings":{"foreground":"#636363"}},{"scope":"meta.brace","settings":{"foreground":"#636363"}},{"scope":"meta.brace.square","settings":{"foreground":"#636363"}},{"scope":"meta.brace.round","settings":{"foreground":"#636363"}},{"scope":"function.brace","settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#636363"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#636363"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#9d6afb"}},{"scope":"keyword.operator.module","settings":{"foreground":"#ff678d"}},{"scope":"support.type.object.console","settings":{"foreground":"#ffa359"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#ffab16"}},{"scope":"support.constant.math","settings":{"foreground":"#ffab16"}},{"scope":"support.constant.property.math","settings":{"foreground":"#ffd452"}},{"scope":"support.constant.json","settings":{"foreground":"#ffd452"}},{"scope":"support.type.object.dom","settings":{"foreground":"#08c0ef"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#ffa359"}},{"scope":"support.variable.property.process","settings":{"foreground":"#ffd452"}},{"scope":"meta.property.object","settings":{"foreground":"#ffa359"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#ffa359"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#5ecc71"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#5ecc71"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#ff678d"}},{"scope":"meta.template.expression","settings":{"foreground":"#636363"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#ffa359"}},{"scope":"variable.interpolation","settings":{"foreground":"#ffa359"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#ff678d"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#ff678d"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#d568ea"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#9d6afb"}},{"scope":"support.type.primitive","settings":{"foreground":"#d568ea"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#69b1ff"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#ff855e"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#ffab16"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#636363"}},{"scope":"support.type.python","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#ff678d"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#9d6afb"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#ffd452"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#9d6afb"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#08c0ef"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#636363"}},{"scope":"support.function.std.rust","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#ffab16"}},{"scope":"variable.language.rust","settings":{"foreground":"#ff855e"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#636363"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#ff678d"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#ffd452"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#ff855e"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#636363"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.c","settings":{"foreground":"#636363"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#ffab16"}},{"scope":"source.java","settings":{"foreground":"#ff855e"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#636363"}},{"scope":"meta.method.java","settings":{"foreground":"#9d6afb"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#ff678d"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#ff855e"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#636363"}},{"scope":"import.storage.java","settings":{"foreground":"#ffab16"}},{"scope":"token.package.keyword","settings":{"foreground":"#ff678d"}},{"scope":"token.package","settings":{"foreground":"#636363"}},{"scope":"token.storage.type.java","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#ffab16"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#ff678d"}},{"scope":"entity.name.package.go","settings":{"foreground":"#ffab16"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#ff678d"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#636363"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#ffab16"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#636363"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#ffd452"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.other.class.php","settings":{"foreground":"#ff855e"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#fafafa"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#ff678d"}},{"scope":"storage.type.haskell","settings":{"foreground":"#ffd452"}},{"scope":"storage.type.cs","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#ff855e"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#ffab16"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#ffab16"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#ff855e"}},{"scope":"support.constant.edge","settings":{"foreground":"#ff678d"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#08c0ef"}},{"scope":"support.constant.elm","settings":{"foreground":"#ffd452"}},{"scope":"entity.global.clojure","settings":{"foreground":"#ffab16"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#ff855e"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#08c0ef"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#ff855e"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#ffab16"}},{"scope":"meta.method.groovy","settings":{"foreground":"#9d6afb"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#ff855e"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#5ecc71"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#ffab16"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#ff678d"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#ff855e"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#ffab16"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#ff855e"}},{"scope":"source.makefile","settings":{"foreground":"#ffab16"}},{"scope":"source.ini","settings":{"foreground":"#5ecc71"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#08c0ef"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#636363"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#08c0ef"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#08c0ef"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#ff855e"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control.xi","settings":{"foreground":"#08c0ef"}},{"scope":"invalid.xi","settings":{"foreground":"#636363"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#5ecc71"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#737373"}},{"scope":"constant.character.xi","settings":{"foreground":"#9d6afb"}},{"scope":"accent.xi","settings":{"foreground":"#9d6afb"}},{"scope":"wikiword.xi","settings":{"foreground":"#ffd452"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#fafafa"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#737373"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#ffd452"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#08c0ef"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#ffd452"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#636363"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name","settings":{"foreground":"#636363"}},{"scope":"support.constant.property-value","settings":{"foreground":"#636363"}},{"scope":"support.constant.font-name","settings":{"foreground":"#ffd452"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#60d199","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#9d6afb","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#08c0ef"}},{"scope":"meta.selector","settings":{"foreground":"#ff678d"}},{"scope":"selector.sass","settings":{"foreground":"#ff855e"}},{"scope":"rgb-value","settings":{"foreground":"#08c0ef"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#ffd452"}},{"scope":"less rgb-value","settings":{"foreground":"#ffd452"}},{"scope":"control.elements","settings":{"foreground":"#ffd452"}},{"scope":"keyword.operator.less","settings":{"foreground":"#ffd452"}},{"scope":"entity.name.tag","settings":{"foreground":"#ff855e"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#60d199","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#ff855e"}},{"scope":"meta.tag","settings":{"foreground":"#636363"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#636363"}},{"scope":"markup.heading","settings":{"foreground":"#ff855e"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#ff855e"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#ff855e"}},{"scope":"markup.heading.setext","settings":{"foreground":"#636363"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#ff855e"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#ffd452"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#ffab16"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#ffd452"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#ff678d","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#ff678d"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#ff678d"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#9d6afb"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ff855e"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#5ecc71"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ff855e"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#ff855e"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#ff855e"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#ff855e"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#737373"}},{"scope":"keyword.other.unit","settings":{"foreground":"#ff855e"}},{"scope":"markup.changed.diff","settings":{"foreground":"#ffab16"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#9d6afb"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#5ecc71"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#ff855e"}},{"scope":"string.regexp","settings":{"foreground":"#64d1db"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#ff855e"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#ffd452"}},{"scope":"constant.character.escape","settings":{"foreground":"#61d5c0"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#ff855e"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#ff855e"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#5ecc71"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#ff855e"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#ff855e"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#636363"}},{"scope":"block.scope.end","settings":{"foreground":"#636363"}},{"scope":"block.scope.begin","settings":{"foreground":"#636363"}},{"scope":"token.info-token","settings":{"foreground":"#9d6afb"}},{"scope":"token.warn-token","settings":{"foreground":"#ffd452"}},{"scope":"token.error-token","settings":{"foreground":"#fafafa"}},{"scope":"token.debug-token","settings":{"foreground":"#ff678d"}},{"scope":"invalid.illegal","settings":{"foreground":"#fafafa"}},{"scope":"invalid.broken","settings":{"foreground":"#fafafa"}},{"scope":"invalid.deprecated","settings":{"foreground":"#fafafa"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#fafafa"}}],"semanticTokenColors":{"comment":"#737373","string":"#5ecc71","number":"#68cdf2","regexp":"#64d1db","keyword":"#ff678d","variable":"#ffa359","parameter":"#a3a3a3","property":"#ffa359","function":"#9d6afb","method":"#9d6afb","type":"#d568ea","class":"#d568ea","namespace":"#ffab16","enumMember":"#08c0ef","variable.constant":"#ffd452","variable.defaultLibrary":"#ffab16","decorator":"#69b1ff"}}'))});var Dne={};fn(Dne,{default:()=>T$e});var T$e,Fne=tr(()=>{T$e=Object.freeze(JSON.parse('{"name":"Pierre Dark Soft","type":"dark","colors":{"editor.background":"#171717","editor.foreground":"#d4d4d4","foreground":"#d4d4d4","focusBorder":"#69b1ff","selection.background":"#1f3e5e","editor.selectionBackground":"#69b1ff4d","editor.lineHighlightBackground":"#1f3e5e8c","editorCursor.foreground":"#69b1ff","editorLineNumber.foreground":"#636363","editorLineNumber.activeForeground":"#8a8a8a","editorIndentGuide.background":"#262626","editorIndentGuide.activeBackground":"#2c2c2c","diffEditor.insertedTextBackground":"#60d1991a","diffEditor.deletedTextBackground":"#ff67621a","sideBar.background":"#101010","sideBar.foreground":"#8a8a8a","sideBar.border":"#1d1d1d","sideBarTitle.foreground":"#d4d4d4","sideBarSectionHeader.background":"#101010","sideBarSectionHeader.foreground":"#8a8a8a","sideBarSectionHeader.border":"#1d1d1d","activityBar.background":"#101010","activityBar.foreground":"#d4d4d4","activityBar.border":"#1d1d1d","activityBar.activeBorder":"#69b1ff","activityBarBadge.background":"#69b1ff","activityBarBadge.foreground":"#171717","titleBar.activeBackground":"#101010","titleBar.activeForeground":"#d4d4d4","titleBar.inactiveBackground":"#101010","titleBar.inactiveForeground":"#636363","titleBar.border":"#1d1d1d","list.activeSelectionBackground":"#1f3e5e99","list.activeSelectionForeground":"#d4d4d4","list.inactiveSelectionBackground":"#1f3e5e73","list.hoverBackground":"#1f3e5e59","list.focusOutline":"#69b1ff","tab.activeBackground":"#171717","tab.activeForeground":"#d4d4d4","tab.activeBorderTop":"#69b1ff","tab.inactiveBackground":"#101010","tab.inactiveForeground":"#636363","tab.border":"#1d1d1d","editorGroupHeader.tabsBackground":"#101010","editorGroupHeader.tabsBorder":"#1d1d1d","panel.background":"#101010","panel.border":"#1d1d1d","panelTitle.activeBorder":"#69b1ff","panelTitle.activeForeground":"#d4d4d4","panelTitle.inactiveForeground":"#636363","statusBar.background":"#101010","statusBar.foreground":"#8a8a8a","statusBar.border":"#1d1d1d","statusBar.noFolderBackground":"#101010","statusBar.debuggingBackground":"#ffd452","statusBar.debuggingForeground":"#171717","statusBarItem.remoteBackground":"#101010","statusBarItem.remoteForeground":"#8a8a8a","input.background":"#262626","input.border":"#2c2c2c","input.foreground":"#d4d4d4","input.placeholderForeground":"#525252","dropdown.background":"#262626","dropdown.border":"#2c2c2c","dropdown.foreground":"#d4d4d4","button.background":"#69b1ff","button.foreground":"#171717","button.hoverBackground":"#61a2e8","textLink.foreground":"#69b1ff","textLink.activeForeground":"#69b1ff","notifications.background":"#1d1d1d","notifications.foreground":"#d4d4d4","notifications.border":"#262626","notificationToast.border":"#262626","notificationCenter.border":"#262626","notificationCenterHeader.background":"#1d1d1d","notificationCenterHeader.foreground":"#8a8a8a","notificationLink.foreground":"#69b1ff","notificationsErrorIcon.foreground":"#ff6762","notificationsWarningIcon.foreground":"#ffd452","notificationsInfoIcon.foreground":"#68cdf2","quickInput.background":"#1d1d1d","quickInput.foreground":"#d4d4d4","quickInputTitle.background":"#1d1d1d","widget.border":"#262626","gitDecoration.addedResourceForeground":"#60d199","gitDecoration.conflictingResourceForeground":"#9d6afb","gitDecoration.modifiedResourceForeground":"#69b1ff","gitDecoration.deletedResourceForeground":"#ff6762","gitDecoration.untrackedResourceForeground":"#60d199","gitDecoration.ignoredResourceForeground":"#636363","merge.currentHeaderBackground":"#9d6afb4d","merge.currentContentBackground":"#9d6afb1f","merge.incomingHeaderBackground":"#68cdf24d","merge.incomingContentBackground":"#68cdf21f","editorOverviewRuler.currentContentForeground":"#9d6afb","editorOverviewRuler.incomingContentForeground":"#68cdf2","terminal.titleForeground":"#8a8a8a","terminal.titleInactiveForeground":"#636363","terminal.background":"#101010","terminal.foreground":"#8a8a8a","terminal.ansiBlack":"#171717","terminal.ansiRed":"#ff2e3f","terminal.ansiGreen":"#0dbe4e","terminal.ansiYellow":"#ffca00","terminal.ansiBlue":"#009fff","terminal.ansiMagenta":"#e130ac","terminal.ansiCyan":"#08c0ef","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#171717","terminal.ansiBrightRed":"#ff2e3f","terminal.ansiBrightGreen":"#86c427","terminal.ansiBrightYellow":"#ffca00","terminal.ansiBrightBlue":"#009fff","terminal.ansiBrightMagenta":"#e130ac","terminal.ansiBrightCyan":"#08c0ef","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#636363"}},{"scope":"comment markup.link","settings":{"foreground":"#636363"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#8cda94"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#8cda94"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#96d9f6"}},{"scope":"constant","settings":{"foreground":"#ffde80"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#ffde80"}},{"scope":"constant.language","settings":{"foreground":"#96d9f6"}},{"scope":"variable.other.constant","settings":{"foreground":"#ffbc56"}},{"scope":"keyword","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.control","settings":{"foreground":"#ff91a8"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#ff91a8"}},{"scope":"token.storage","settings":{"foreground":"#ff91a8"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#ff91a8"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#ffba82"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#ffba82"}},{"scope":"variable.language","settings":{"foreground":"#ffbc56"}},{"scope":"variable.parameter.function","settings":{"foreground":"#8a8a8a"}},{"scope":"function.parameter","settings":{"foreground":"#8a8a8a"}},{"scope":"variable.parameter","settings":{"foreground":"#8a8a8a"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#ffde80"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#ffde80"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#ba8ffd"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#ba8ffd"}},{"scope":"entity.name.function","settings":{"foreground":"#ba8ffd"}},{"scope":"support.function.console","settings":{"foreground":"#ba8ffd"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#e290f0"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#e290f0"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e290f0"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e290f0"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#ffbc56"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#e290f0"}},{"scope":"entity.name.namespace","settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator","settings":{"foreground":"#737373"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#ff91a8"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#ff91a8"}},{"scope":"punctuation","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#737373"}},{"scope":"punctuation.terminator","settings":{"foreground":"#737373"}},{"scope":"meta.brace","settings":{"foreground":"#737373"}},{"scope":"meta.brace.square","settings":{"foreground":"#737373"}},{"scope":"meta.brace.round","settings":{"foreground":"#737373"}},{"scope":"function.brace","settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#737373"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#737373"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#ba8ffd"}},{"scope":"keyword.operator.module","settings":{"foreground":"#ff91a8"}},{"scope":"support.type.object.console","settings":{"foreground":"#ffba82"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#ffbc56"}},{"scope":"support.constant.math","settings":{"foreground":"#ffbc56"}},{"scope":"support.constant.property.math","settings":{"foreground":"#ffde80"}},{"scope":"support.constant.json","settings":{"foreground":"#ffde80"}},{"scope":"support.type.object.dom","settings":{"foreground":"#68cdf2"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#ffba82"}},{"scope":"support.variable.property.process","settings":{"foreground":"#ffde80"}},{"scope":"meta.property.object","settings":{"foreground":"#ffba82"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#ffba82"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#8cda94"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#8cda94"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#ff91a8"}},{"scope":"meta.template.expression","settings":{"foreground":"#737373"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#ffba82"}},{"scope":"variable.interpolation","settings":{"foreground":"#ffba82"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#ff91a8"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#ff91a8"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#e290f0"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#ba8ffd"}},{"scope":"support.type.primitive","settings":{"foreground":"#e290f0"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#97c4ff"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#97c4ff"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#97c4ff"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#ffa685"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#ffbc56"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#737373"}},{"scope":"support.type.python","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#ff91a8"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#ba8ffd"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#ffde80"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#ba8ffd"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#68cdf2"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#737373"}},{"scope":"support.function.std.rust","settings":{"foreground":"#ba8ffd"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#ffbc56"}},{"scope":"variable.language.rust","settings":{"foreground":"#ffa685"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#737373"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#ff91a8"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#ffde80"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#ffa685"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#737373"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#ff91a8"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#ff91a8"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#ff91a8"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#ff91a8"}},{"scope":"variable.c","settings":{"foreground":"#737373"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#ffbc56"}},{"scope":"source.java","settings":{"foreground":"#ffa685"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#737373"}},{"scope":"meta.method.java","settings":{"foreground":"#ba8ffd"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#ff91a8"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#ffa685"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#737373"}},{"scope":"import.storage.java","settings":{"foreground":"#ffbc56"}},{"scope":"token.package.keyword","settings":{"foreground":"#ff91a8"}},{"scope":"token.package","settings":{"foreground":"#737373"}},{"scope":"token.storage.type.java","settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#ffbc56"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#ff91a8"}},{"scope":"entity.name.package.go","settings":{"foreground":"#ffbc56"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#ffbc56"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#ff91a8"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#737373"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#ffbc56"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#ba8ffd"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#737373"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#ffde80"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#ba8ffd"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#ff91a8"}},{"scope":"variable.other.class.php","settings":{"foreground":"#ffa685"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#d4d4d4"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#ff91a8"}},{"scope":"storage.type.haskell","settings":{"foreground":"#ffde80"}},{"scope":"storage.type.cs","settings":{"foreground":"#ffbc56"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#ffa685"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#ffbc56"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#ffbc56"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#ffa685"}},{"scope":"support.constant.edge","settings":{"foreground":"#ff91a8"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#68cdf2"}},{"scope":"support.constant.elm","settings":{"foreground":"#ffde80"}},{"scope":"entity.global.clojure","settings":{"foreground":"#ffbc56"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#ffa685"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#68cdf2"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#ffa685"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#ffbc56"}},{"scope":"meta.method.groovy","settings":{"foreground":"#ba8ffd"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#ffa685"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#8cda94"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#ffbc56"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#ff91a8"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#ffa685"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#ffbc56"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#ffa685"}},{"scope":"source.makefile","settings":{"foreground":"#ffbc56"}},{"scope":"source.ini","settings":{"foreground":"#8cda94"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#68cdf2"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#737373"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#68cdf2"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#ff91a8"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#ff91a8"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#ffbc56"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#68cdf2"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#ffa685"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#ff91a8"}},{"scope":"keyword.control.xi","settings":{"foreground":"#68cdf2"}},{"scope":"invalid.xi","settings":{"foreground":"#737373"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#8cda94"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#636363"}},{"scope":"constant.character.xi","settings":{"foreground":"#ba8ffd"}},{"scope":"accent.xi","settings":{"foreground":"#ba8ffd"}},{"scope":"wikiword.xi","settings":{"foreground":"#ffde80"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#d4d4d4"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#636363"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#ffde80"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#68cdf2"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#ffde80"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#737373"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name","settings":{"foreground":"#737373"}},{"scope":"support.constant.property-value","settings":{"foreground":"#737373"}},{"scope":"support.constant.font-name","settings":{"foreground":"#ffde80"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#8eddb2","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#ba8ffd","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#68cdf2"}},{"scope":"meta.selector","settings":{"foreground":"#ff91a8"}},{"scope":"selector.sass","settings":{"foreground":"#ffa685"}},{"scope":"rgb-value","settings":{"foreground":"#68cdf2"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#ffde80"}},{"scope":"less rgb-value","settings":{"foreground":"#ffde80"}},{"scope":"control.elements","settings":{"foreground":"#ffde80"}},{"scope":"keyword.operator.less","settings":{"foreground":"#ffde80"}},{"scope":"entity.name.tag","settings":{"foreground":"#ffa685"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#8eddb2","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#ffa685"}},{"scope":"meta.tag","settings":{"foreground":"#737373"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#737373"}},{"scope":"markup.heading","settings":{"foreground":"#ffa685"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#ba8ffd"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#ffa685"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#ffa685"}},{"scope":"markup.heading.setext","settings":{"foreground":"#737373"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#ffa685"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#ffde80"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#ffbc56"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#ffde80"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#ff91a8","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#ff91a8"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#ff91a8"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#ba8ffd"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ffa685"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#8cda94"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffa685"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#ffa685"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#ffa685"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#ffa685"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#636363"}},{"scope":"keyword.other.unit","settings":{"foreground":"#ffa685"}},{"scope":"markup.changed.diff","settings":{"foreground":"#ffbc56"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#ba8ffd"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#8cda94"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#ffa685"}},{"scope":"string.regexp","settings":{"foreground":"#92dde4"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#ffa685"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#ffde80"}},{"scope":"constant.character.escape","settings":{"foreground":"#8fe0d0"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#ffa685"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#ffa685"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#8cda94"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#ffa685"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#ffa685"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#737373"}},{"scope":"block.scope.end","settings":{"foreground":"#737373"}},{"scope":"block.scope.begin","settings":{"foreground":"#737373"}},{"scope":"token.info-token","settings":{"foreground":"#ba8ffd"}},{"scope":"token.warn-token","settings":{"foreground":"#ffde80"}},{"scope":"token.error-token","settings":{"foreground":"#d4d4d4"}},{"scope":"token.debug-token","settings":{"foreground":"#ff91a8"}},{"scope":"invalid.illegal","settings":{"foreground":"#d4d4d4"}},{"scope":"invalid.broken","settings":{"foreground":"#d4d4d4"}},{"scope":"invalid.deprecated","settings":{"foreground":"#d4d4d4"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#d4d4d4"}}],"semanticTokenColors":{"comment":"#636363","string":"#8cda94","number":"#96d9f6","regexp":"#92dde4","keyword":"#ff91a8","variable":"#ffba82","parameter":"#8a8a8a","property":"#ffba82","function":"#ba8ffd","method":"#ba8ffd","type":"#e290f0","class":"#e290f0","namespace":"#ffbc56","enumMember":"#68cdf2","variable.constant":"#ffde80","variable.defaultLibrary":"#ffbc56","decorator":"#97c4ff"}}'))});var Bne={};fn(Bne,{default:()=>R$e});var R$e,zne=tr(()=>{R$e=Object.freeze(JSON.parse('{"name":"Pierre Light","type":"light","colors":{"editor.background":"#ffffff","editor.foreground":"#0a0a0a","foreground":"#0a0a0a","focusBorder":"#009fff","selection.background":"#dfebff","editor.selectionBackground":"#009fff2e","editor.lineHighlightBackground":"#dfebff8c","editorCursor.foreground":"#009fff","editorLineNumber.foreground":"#737373","editorLineNumber.activeForeground":"#525252","editorIndentGuide.background":"#e5e5e5","editorIndentGuide.activeBackground":"#d4d4d4","diffEditor.insertedTextBackground":"#18a46c33","diffEditor.deletedTextBackground":"#d52c3633","sideBar.background":"#f5f5f5","sideBar.foreground":"#525252","sideBar.border":"#e5e5e5","sideBarTitle.foreground":"#0a0a0a","sideBarSectionHeader.background":"#f5f5f5","sideBarSectionHeader.foreground":"#525252","sideBarSectionHeader.border":"#e5e5e5","activityBar.background":"#f5f5f5","activityBar.foreground":"#0a0a0a","activityBar.border":"#e5e5e5","activityBar.activeBorder":"#009fff","activityBarBadge.background":"#009fff","activityBarBadge.foreground":"#ffffff","titleBar.activeBackground":"#f5f5f5","titleBar.activeForeground":"#0a0a0a","titleBar.inactiveBackground":"#f5f5f5","titleBar.inactiveForeground":"#737373","titleBar.border":"#e5e5e5","list.activeSelectionBackground":"#dfebffcc","list.activeSelectionForeground":"#0a0a0a","list.inactiveSelectionBackground":"#dfebff73","list.hoverBackground":"#dfebff59","list.focusOutline":"#009fff","tab.activeBackground":"#ffffff","tab.activeForeground":"#0a0a0a","tab.activeBorderTop":"#009fff","tab.inactiveBackground":"#f5f5f5","tab.inactiveForeground":"#737373","tab.border":"#e5e5e5","editorGroupHeader.tabsBackground":"#f5f5f5","editorGroupHeader.tabsBorder":"#e5e5e5","panel.background":"#f5f5f5","panel.border":"#e5e5e5","panelTitle.activeBorder":"#009fff","panelTitle.activeForeground":"#0a0a0a","panelTitle.inactiveForeground":"#737373","statusBar.background":"#f5f5f5","statusBar.foreground":"#525252","statusBar.border":"#e5e5e5","statusBar.noFolderBackground":"#f5f5f5","statusBar.debuggingBackground":"#d5a910","statusBar.debuggingForeground":"#ffffff","statusBarItem.remoteBackground":"#f5f5f5","statusBarItem.remoteForeground":"#525252","input.background":"#ededed","input.border":"#d4d4d4","input.foreground":"#0a0a0a","input.placeholderForeground":"#8a8a8a","dropdown.background":"#ededed","dropdown.border":"#d4d4d4","dropdown.foreground":"#0a0a0a","button.background":"#009fff","button.foreground":"#ffffff","button.hoverBackground":"#1aa9ff","textLink.foreground":"#009fff","textLink.activeForeground":"#009fff","notifications.background":"#f7f7f7","notifications.foreground":"#0a0a0a","notifications.border":"#e5e5e5","notificationToast.border":"#e5e5e5","notificationCenter.border":"#e5e5e5","notificationCenterHeader.background":"#f7f7f7","notificationCenterHeader.foreground":"#525252","notificationLink.foreground":"#009fff","notificationsErrorIcon.foreground":"#d52c36","notificationsWarningIcon.foreground":"#d5a910","notificationsInfoIcon.foreground":"#1ca1c7","quickInput.background":"#f7f7f7","quickInput.foreground":"#0a0a0a","quickInputTitle.background":"#f7f7f7","widget.border":"#e5e5e5","gitDecoration.addedResourceForeground":"#18a46c","gitDecoration.conflictingResourceForeground":"#693acf","gitDecoration.modifiedResourceForeground":"#009fff","gitDecoration.deletedResourceForeground":"#d52c36","gitDecoration.untrackedResourceForeground":"#18a46c","gitDecoration.ignoredResourceForeground":"#737373","merge.currentHeaderBackground":"#693acf33","merge.currentContentBackground":"#693acf14","merge.incomingHeaderBackground":"#1ca1c733","merge.incomingContentBackground":"#1ca1c714","editorOverviewRuler.currentContentForeground":"#693acf","editorOverviewRuler.incomingContentForeground":"#1ca1c7","terminal.titleForeground":"#525252","terminal.titleInactiveForeground":"#737373","terminal.background":"#f5f5f5","terminal.foreground":"#525252","terminal.ansiBlack":"#1d1d1d","terminal.ansiRed":"#d52c36","terminal.ansiGreen":"#18a46c","terminal.ansiYellow":"#d5a910","terminal.ansiBlue":"#1a85d4","terminal.ansiMagenta":"#bd2e90","terminal.ansiCyan":"#1ca1c7","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#1d1d1d","terminal.ansiBrightRed":"#d52c36","terminal.ansiBrightGreen":"#77a42a","terminal.ansiBrightYellow":"#d5a910","terminal.ansiBrightBlue":"#1a85d4","terminal.ansiBrightMagenta":"#bd2e90","terminal.ansiBrightCyan":"#1ca1c7","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#737373"}},{"scope":"comment markup.link","settings":{"foreground":"#737373"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#199f43"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#199f43"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#1ca1c7"}},{"scope":"constant","settings":{"foreground":"#d5a910"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#d5a910"}},{"scope":"constant.language","settings":{"foreground":"#1ca1c7"}},{"scope":"variable.other.constant","settings":{"foreground":"#d5901c"}},{"scope":"keyword","settings":{"foreground":"#d32a61"}},{"scope":"keyword.control","settings":{"foreground":"#d32a61"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#d32a61"}},{"scope":"token.storage","settings":{"foreground":"#d32a61"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#d32a61"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#d47628"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#d47628"}},{"scope":"variable.language","settings":{"foreground":"#d5901c"}},{"scope":"variable.parameter.function","settings":{"foreground":"#636363"}},{"scope":"function.parameter","settings":{"foreground":"#636363"}},{"scope":"variable.parameter","settings":{"foreground":"#636363"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#d5a910"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#d5a910"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#693acf"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#693acf"}},{"scope":"entity.name.function","settings":{"foreground":"#693acf"}},{"scope":"support.function.console","settings":{"foreground":"#693acf"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#a631be"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#a631be"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#a631be"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#a631be"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#d5901c"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#a631be"}},{"scope":"entity.name.namespace","settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator","settings":{"foreground":"#636363"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#d32a61"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#d32a61"}},{"scope":"punctuation","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#636363"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#636363"}},{"scope":"punctuation.terminator","settings":{"foreground":"#636363"}},{"scope":"meta.brace","settings":{"foreground":"#636363"}},{"scope":"meta.brace.square","settings":{"foreground":"#636363"}},{"scope":"meta.brace.round","settings":{"foreground":"#636363"}},{"scope":"function.brace","settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#636363"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#636363"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#693acf"}},{"scope":"keyword.operator.module","settings":{"foreground":"#d32a61"}},{"scope":"support.type.object.console","settings":{"foreground":"#d47628"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#d5901c"}},{"scope":"support.constant.math","settings":{"foreground":"#d5901c"}},{"scope":"support.constant.property.math","settings":{"foreground":"#d5a910"}},{"scope":"support.constant.json","settings":{"foreground":"#d5a910"}},{"scope":"support.type.object.dom","settings":{"foreground":"#08c0ef"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#d47628"}},{"scope":"support.variable.property.process","settings":{"foreground":"#d5a910"}},{"scope":"meta.property.object","settings":{"foreground":"#d47628"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#d47628"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#199f43"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#199f43"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#d32a61"}},{"scope":"meta.template.expression","settings":{"foreground":"#636363"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#d47628"}},{"scope":"variable.interpolation","settings":{"foreground":"#d47628"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#d32a61"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#d32a61"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#a631be"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#693acf"}},{"scope":"support.type.primitive","settings":{"foreground":"#a631be"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#1a85d4"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#1a85d4"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#1a85d4"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#d5512f"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#d5901c"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#636363"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#636363"}},{"scope":"support.type.python","settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#d32a61"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#693acf"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d5a910"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#693acf"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#08c0ef"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#636363"}},{"scope":"support.function.std.rust","settings":{"foreground":"#693acf"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#d5901c"}},{"scope":"variable.language.rust","settings":{"foreground":"#d5512f"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#636363"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#d32a61"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#d5a910"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#d5512f"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#636363"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#d32a61"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#d32a61"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#d32a61"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#d32a61"}},{"scope":"variable.c","settings":{"foreground":"#636363"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#d5901c"}},{"scope":"source.java","settings":{"foreground":"#d5512f"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#636363"}},{"scope":"meta.method.java","settings":{"foreground":"#693acf"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#d32a61"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#d5512f"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#636363"}},{"scope":"import.storage.java","settings":{"foreground":"#d5901c"}},{"scope":"token.package.keyword","settings":{"foreground":"#d32a61"}},{"scope":"token.package","settings":{"foreground":"#636363"}},{"scope":"token.storage.type.java","settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#d5901c"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#d32a61"}},{"scope":"entity.name.package.go","settings":{"foreground":"#d5901c"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#d5901c"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#d32a61"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#636363"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#d5901c"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#693acf"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#636363"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#d5a910"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#693acf"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#08c0ef"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#d32a61"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#08c0ef"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#d32a61"}},{"scope":"variable.other.class.php","settings":{"foreground":"#d5512f"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#0a0a0a"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#d32a61"}},{"scope":"storage.type.haskell","settings":{"foreground":"#d5a910"}},{"scope":"storage.type.cs","settings":{"foreground":"#d5901c"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#d5512f"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#d5901c"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#d5901c"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#d5512f"}},{"scope":"support.constant.edge","settings":{"foreground":"#d32a61"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#08c0ef"}},{"scope":"support.constant.elm","settings":{"foreground":"#d5a910"}},{"scope":"entity.global.clojure","settings":{"foreground":"#d5901c"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#d5512f"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#08c0ef"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#d5512f"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#d5901c"}},{"scope":"meta.method.groovy","settings":{"foreground":"#693acf"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#d5512f"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#199f43"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#d5901c"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#d32a61"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#d5512f"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#d5901c"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#d5512f"}},{"scope":"source.makefile","settings":{"foreground":"#d5901c"}},{"scope":"source.ini","settings":{"foreground":"#199f43"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#08c0ef"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#636363"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#08c0ef"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#d32a61"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#d32a61"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#d5901c"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#08c0ef"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#d5512f"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#d32a61"}},{"scope":"keyword.control.xi","settings":{"foreground":"#08c0ef"}},{"scope":"invalid.xi","settings":{"foreground":"#636363"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#199f43"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#737373"}},{"scope":"constant.character.xi","settings":{"foreground":"#693acf"}},{"scope":"accent.xi","settings":{"foreground":"#693acf"}},{"scope":"wikiword.xi","settings":{"foreground":"#d5a910"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#0a0a0a"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#737373"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#d5a910"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#08c0ef"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#d5a910"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#636363"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name","settings":{"foreground":"#636363"}},{"scope":"support.constant.property-value","settings":{"foreground":"#636363"}},{"scope":"support.constant.font-name","settings":{"foreground":"#d5a910"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#18a46c","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#693acf","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#08c0ef"}},{"scope":"meta.selector","settings":{"foreground":"#d32a61"}},{"scope":"selector.sass","settings":{"foreground":"#d5512f"}},{"scope":"rgb-value","settings":{"foreground":"#08c0ef"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d5a910"}},{"scope":"less rgb-value","settings":{"foreground":"#d5a910"}},{"scope":"control.elements","settings":{"foreground":"#d5a910"}},{"scope":"keyword.operator.less","settings":{"foreground":"#d5a910"}},{"scope":"entity.name.tag","settings":{"foreground":"#d5512f"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#18a46c","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#d5512f"}},{"scope":"meta.tag","settings":{"foreground":"#636363"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#636363"}},{"scope":"markup.heading","settings":{"foreground":"#d5512f"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#693acf"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#d5512f"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#d5512f"}},{"scope":"markup.heading.setext","settings":{"foreground":"#636363"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#d5512f"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#d5a910"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#d5901c"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d5a910"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#d32a61","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#d32a61"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#d32a61"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#693acf"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#d5512f"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#199f43"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d5512f"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#d5512f"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#d5512f"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#d5512f"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#737373"}},{"scope":"keyword.other.unit","settings":{"foreground":"#d5512f"}},{"scope":"markup.changed.diff","settings":{"foreground":"#d5901c"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#693acf"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#199f43"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#d5512f"}},{"scope":"string.regexp","settings":{"foreground":"#17a5af"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#d5512f"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d5a910"}},{"scope":"constant.character.escape","settings":{"foreground":"#16a994"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#d5512f"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#d5512f"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#199f43"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#08c0ef"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#d5512f"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#d5512f"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#636363"}},{"scope":"block.scope.end","settings":{"foreground":"#636363"}},{"scope":"block.scope.begin","settings":{"foreground":"#636363"}},{"scope":"token.info-token","settings":{"foreground":"#693acf"}},{"scope":"token.warn-token","settings":{"foreground":"#d5a910"}},{"scope":"token.error-token","settings":{"foreground":"#0a0a0a"}},{"scope":"token.debug-token","settings":{"foreground":"#d32a61"}},{"scope":"invalid.illegal","settings":{"foreground":"#0a0a0a"}},{"scope":"invalid.broken","settings":{"foreground":"#0a0a0a"}},{"scope":"invalid.deprecated","settings":{"foreground":"#0a0a0a"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#0a0a0a"}}],"semanticTokenColors":{"comment":"#737373","string":"#199f43","number":"#1ca1c7","regexp":"#17a5af","keyword":"#d32a61","variable":"#d47628","parameter":"#636363","property":"#d47628","function":"#693acf","method":"#693acf","type":"#a631be","class":"#a631be","namespace":"#d5901c","enumMember":"#08c0ef","variable.constant":"#d5a910","variable.defaultLibrary":"#d5901c","decorator":"#1a85d4"}}'))});var qne={};fn(qne,{default:()=>A$e});var A$e,Hne=tr(()=>{A$e=Object.freeze(JSON.parse('{"name":"Pierre Light Soft","type":"light","colors":{"editor.background":"#ffffff","editor.foreground":"#525252","foreground":"#525252","focusBorder":"#009fff","selection.background":"#dfebff","editor.selectionBackground":"#009fff2e","editor.lineHighlightBackground":"#dfebff8c","editorCursor.foreground":"#009fff","editorLineNumber.foreground":"#8a8a8a","editorLineNumber.activeForeground":"#737373","editorIndentGuide.background":"#ededed","editorIndentGuide.activeBackground":"#e5e5e5","diffEditor.insertedTextBackground":"#07c48033","diffEditor.deletedTextBackground":"#ff2e3f33","sideBar.background":"#f7f7f7","sideBar.foreground":"#737373","sideBar.border":"#ededed","sideBarTitle.foreground":"#525252","sideBarSectionHeader.background":"#f7f7f7","sideBarSectionHeader.foreground":"#737373","sideBarSectionHeader.border":"#ededed","activityBar.background":"#f7f7f7","activityBar.foreground":"#525252","activityBar.border":"#ededed","activityBar.activeBorder":"#009fff","activityBarBadge.background":"#009fff","activityBarBadge.foreground":"#ffffff","titleBar.activeBackground":"#f7f7f7","titleBar.activeForeground":"#525252","titleBar.inactiveBackground":"#f7f7f7","titleBar.inactiveForeground":"#8a8a8a","titleBar.border":"#ededed","list.activeSelectionBackground":"#dfebffcc","list.activeSelectionForeground":"#525252","list.inactiveSelectionBackground":"#dfebff73","list.hoverBackground":"#dfebff59","list.focusOutline":"#009fff","tab.activeBackground":"#ffffff","tab.activeForeground":"#525252","tab.activeBorderTop":"#009fff","tab.inactiveBackground":"#f7f7f7","tab.inactiveForeground":"#8a8a8a","tab.border":"#ededed","editorGroupHeader.tabsBackground":"#f7f7f7","editorGroupHeader.tabsBorder":"#ededed","panel.background":"#f7f7f7","panel.border":"#ededed","panelTitle.activeBorder":"#009fff","panelTitle.activeForeground":"#525252","panelTitle.inactiveForeground":"#8a8a8a","statusBar.background":"#f7f7f7","statusBar.foreground":"#737373","statusBar.border":"#ededed","statusBar.noFolderBackground":"#f7f7f7","statusBar.debuggingBackground":"#ffca00","statusBar.debuggingForeground":"#ffffff","statusBarItem.remoteBackground":"#f7f7f7","statusBarItem.remoteForeground":"#737373","input.background":"#f5f5f5","input.border":"#d4d4d4","input.foreground":"#525252","input.placeholderForeground":"#a3a3a3","dropdown.background":"#f5f5f5","dropdown.border":"#d4d4d4","dropdown.foreground":"#525252","button.background":"#009fff","button.foreground":"#ffffff","button.hoverBackground":"#1aa9ff","textLink.foreground":"#009fff","textLink.activeForeground":"#009fff","notifications.background":"#fafafa","notifications.foreground":"#525252","notifications.border":"#e5e5e5","notificationToast.border":"#e5e5e5","notificationCenter.border":"#e5e5e5","notificationCenterHeader.background":"#fafafa","notificationCenterHeader.foreground":"#737373","notificationLink.foreground":"#009fff","notificationsErrorIcon.foreground":"#ff2e3f","notificationsWarningIcon.foreground":"#ffca00","notificationsInfoIcon.foreground":"#08c0ef","quickInput.background":"#fafafa","quickInput.foreground":"#525252","quickInputTitle.background":"#fafafa","widget.border":"#e5e5e5","gitDecoration.addedResourceForeground":"#07c480","gitDecoration.conflictingResourceForeground":"#7b43f8","gitDecoration.modifiedResourceForeground":"#009fff","gitDecoration.deletedResourceForeground":"#ff2e3f","gitDecoration.untrackedResourceForeground":"#07c480","gitDecoration.ignoredResourceForeground":"#8a8a8a","merge.currentHeaderBackground":"#7b43f833","merge.currentContentBackground":"#7b43f814","merge.incomingHeaderBackground":"#08c0ef33","merge.incomingContentBackground":"#08c0ef14","editorOverviewRuler.currentContentForeground":"#7b43f8","editorOverviewRuler.incomingContentForeground":"#08c0ef","terminal.titleForeground":"#737373","terminal.titleInactiveForeground":"#8a8a8a","terminal.background":"#f7f7f7","terminal.foreground":"#737373","terminal.ansiBlack":"#1d1d1d","terminal.ansiRed":"#ff2e3f","terminal.ansiGreen":"#0dbe4e","terminal.ansiYellow":"#ffca00","terminal.ansiBlue":"#009fff","terminal.ansiMagenta":"#e130ac","terminal.ansiCyan":"#08c0ef","terminal.ansiWhite":"#bcbcbc","terminal.ansiBrightBlack":"#1d1d1d","terminal.ansiBrightRed":"#ff2e3f","terminal.ansiBrightGreen":"#86c427","terminal.ansiBrightYellow":"#ffca00","terminal.ansiBrightBlue":"#009fff","terminal.ansiBrightMagenta":"#e130ac","terminal.ansiBrightCyan":"#08c0ef","terminal.ansiBrightWhite":"#bcbcbc"},"tokenColors":[{"scope":["comment","punctuation.definition.comment"],"settings":{"foreground":"#8a8a8a"}},{"scope":"comment markup.link","settings":{"foreground":"#8a8a8a"}},{"scope":["string","constant.other.symbol"],"settings":{"foreground":"#0dbe4e"}},{"scope":["punctuation.definition.string.begin","punctuation.definition.string.end"],"settings":{"foreground":"#0dbe4e"}},{"scope":["constant.numeric","constant.language.boolean"],"settings":{"foreground":"#08c0ef"}},{"scope":"constant","settings":{"foreground":"#ffca00"}},{"scope":"punctuation.definition.constant","settings":{"foreground":"#ffca00"}},{"scope":"constant.language","settings":{"foreground":"#08c0ef"}},{"scope":"variable.other.constant","settings":{"foreground":"#ffab16"}},{"scope":"keyword","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control","settings":{"foreground":"#ff678d"}},{"scope":["storage","storage.type","storage.modifier"],"settings":{"foreground":"#ff678d"}},{"scope":"token.storage","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.new","keyword.operator.expression.instanceof","keyword.operator.expression.typeof","keyword.operator.expression.void","keyword.operator.expression.delete","keyword.operator.expression.in","keyword.operator.expression.of","keyword.operator.expression.keyof"],"settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.delete","settings":{"foreground":"#ff678d"}},{"scope":["variable","identifier","meta.definition.variable"],"settings":{"foreground":"#fe8c2c"}},{"scope":["variable.other.readwrite","meta.object-literal.key","support.variable.property","support.variable.object.process","support.variable.object.node"],"settings":{"foreground":"#fe8c2c"}},{"scope":"variable.language","settings":{"foreground":"#ffab16"}},{"scope":"variable.parameter.function","settings":{"foreground":"#737373"}},{"scope":"function.parameter","settings":{"foreground":"#737373"}},{"scope":"variable.parameter","settings":{"foreground":"#737373"}},{"scope":"variable.parameter.function.language.python","settings":{"foreground":"#ffca00"}},{"scope":"variable.parameter.function.python","settings":{"foreground":"#ffca00"}},{"scope":["support.function","entity.name.function","meta.function-call","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#9d6afb"}},{"scope":"keyword.other.special-method","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.function","settings":{"foreground":"#9d6afb"}},{"scope":"support.function.console","settings":{"foreground":"#9d6afb"}},{"scope":["support.type","entity.name.type","entity.name.class","storage.type"],"settings":{"foreground":"#d568ea"}},{"scope":["support.class","entity.name.type.class"],"settings":{"foreground":"#d568ea"}},{"scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#d568ea"}},{"scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.type.namespace","settings":{"foreground":"#ffab16"}},{"scope":"entity.other.inherited-class","settings":{"foreground":"#d568ea"}},{"scope":"entity.name.namespace","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator","settings":{"foreground":"#737373"}},{"scope":["keyword.operator.logical","keyword.operator.bitwise","keyword.operator.channel"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.arithmetic","keyword.operator.comparison","keyword.operator.relational","keyword.operator.increment","keyword.operator.decrement"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.assignment.compound","settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.compound.js","keyword.operator.assignment.compound.ts"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.ternary","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.optional","settings":{"foreground":"#ff678d"}},{"scope":"punctuation","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.delimiter","settings":{"foreground":"#737373"}},{"scope":"punctuation.separator.key-value","settings":{"foreground":"#737373"}},{"scope":"punctuation.terminator","settings":{"foreground":"#737373"}},{"scope":"meta.brace","settings":{"foreground":"#737373"}},{"scope":"meta.brace.square","settings":{"foreground":"#737373"}},{"scope":"meta.brace.round","settings":{"foreground":"#737373"}},{"scope":"function.brace","settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.parameters","punctuation.definition.typeparameters"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.block","punctuation.definition.tag"],"settings":{"foreground":"#737373"}},{"scope":["meta.tag.tsx","meta.tag.jsx","meta.tag.js","meta.tag.ts"],"settings":{"foreground":"#737373"}},{"scope":"keyword.operator.expression.import","settings":{"foreground":"#9d6afb"}},{"scope":"keyword.operator.module","settings":{"foreground":"#ff678d"}},{"scope":"support.type.object.console","settings":{"foreground":"#fe8c2c"}},{"scope":["support.module.node","support.type.object.module","entity.name.type.module"],"settings":{"foreground":"#ffab16"}},{"scope":"support.constant.math","settings":{"foreground":"#ffab16"}},{"scope":"support.constant.property.math","settings":{"foreground":"#ffca00"}},{"scope":"support.constant.json","settings":{"foreground":"#ffca00"}},{"scope":"support.type.object.dom","settings":{"foreground":"#68cdf2"}},{"scope":["support.variable.dom","support.variable.property.dom"],"settings":{"foreground":"#fe8c2c"}},{"scope":"support.variable.property.process","settings":{"foreground":"#ffca00"}},{"scope":"meta.property.object","settings":{"foreground":"#fe8c2c"}},{"scope":"variable.parameter.function.js","settings":{"foreground":"#fe8c2c"}},{"scope":["keyword.other.template.begin","keyword.other.template.end"],"settings":{"foreground":"#0dbe4e"}},{"scope":["keyword.other.substitution.begin","keyword.other.substitution.end"],"settings":{"foreground":"#0dbe4e"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end"],"settings":{"foreground":"#ff678d"}},{"scope":"meta.template.expression","settings":{"foreground":"#737373"}},{"scope":"punctuation.section.embedded","settings":{"foreground":"#fe8c2c"}},{"scope":"variable.interpolation","settings":{"foreground":"#fe8c2c"}},{"scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#ff678d"}},{"scope":"punctuation.quasi.element","settings":{"foreground":"#ff678d"}},{"scope":["support.type.primitive.ts","support.type.builtin.ts","support.type.primitive.tsx","support.type.builtin.tsx"],"settings":{"foreground":"#d568ea"}},{"scope":"support.type.type.flowtype","settings":{"foreground":"#9d6afb"}},{"scope":"support.type.primitive","settings":{"foreground":"#d568ea"}},{"scope":["meta.decorator","meta.decorator punctuation.decorator"],"settings":{"foreground":"#69b1ff"}},{"scope":"entity.name.function.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"punctuation.definition.decorator","settings":{"foreground":"#69b1ff"}},{"scope":"support.variable.magic.python","settings":{"foreground":"#ff5d36"}},{"scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#ffab16"}},{"scope":["punctuation.separator.period.python","punctuation.separator.element.python","punctuation.parenthesis.begin.python","punctuation.parenthesis.end.python"],"settings":{"foreground":"#737373"}},{"scope":["punctuation.definition.arguments.begin.python","punctuation.definition.arguments.end.python","punctuation.separator.arguments.python","punctuation.definition.list.begin.python","punctuation.definition.list.end.python"],"settings":{"foreground":"#737373"}},{"scope":"support.type.python","settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.logical.python","settings":{"foreground":"#ff678d"}},{"scope":"meta.function-call.generic.python","settings":{"foreground":"#9d6afb"}},{"scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#ffca00"}},{"scope":"meta.function.decorator.python","settings":{"foreground":"#9d6afb"}},{"scope":["support.token.decorator.python","meta.function.decorator.identifier.python"],"settings":{"foreground":"#68cdf2"}},{"scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#737373"}},{"scope":"support.function.std.rust","settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.lifetime.rust","settings":{"foreground":"#ffab16"}},{"scope":"variable.language.rust","settings":{"foreground":"#ff5d36"}},{"scope":"keyword.operator.misc.rust","settings":{"foreground":"#737373"}},{"scope":"keyword.operator.sigil.rust","settings":{"foreground":"#ff678d"}},{"scope":"support.constant.core.rust","settings":{"foreground":"#ffca00"}},{"scope":["meta.function.c","meta.function.cpp"],"settings":{"foreground":"#ff5d36"}},{"scope":["punctuation.section.block.begin.bracket.curly.cpp","punctuation.section.block.end.bracket.curly.cpp","punctuation.terminator.statement.c","punctuation.section.block.begin.bracket.curly.c","punctuation.section.block.end.bracket.curly.c","punctuation.section.parens.begin.bracket.round.c","punctuation.section.parens.end.bracket.round.c","punctuation.section.parameters.begin.bracket.round.c","punctuation.section.parameters.end.bracket.round.c"],"settings":{"foreground":"#737373"}},{"scope":["keyword.operator.assignment.c","keyword.operator.comparison.c","keyword.operator.c","keyword.operator.increment.c","keyword.operator.decrement.c","keyword.operator.bitwise.shift.c"],"settings":{"foreground":"#ff678d"}},{"scope":["keyword.operator.assignment.cpp","keyword.operator.comparison.cpp","keyword.operator.cpp","keyword.operator.increment.cpp","keyword.operator.decrement.cpp","keyword.operator.bitwise.shift.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["punctuation.separator.c","punctuation.separator.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":["support.type.posix-reserved.c","support.type.posix-reserved.cpp"],"settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.sizeof.c","keyword.operator.sizeof.cpp"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.c","settings":{"foreground":"#737373"}},{"scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#ffab16"}},{"scope":"source.java","settings":{"foreground":"#ff5d36"}},{"scope":["punctuation.section.block.begin.java","punctuation.section.block.end.java","punctuation.definition.method-parameters.begin.java","punctuation.definition.method-parameters.end.java","meta.method.identifier.java","punctuation.section.method.begin.java","punctuation.section.method.end.java","punctuation.terminator.java","punctuation.section.class.begin.java","punctuation.section.class.end.java","punctuation.section.inner-class.begin.java","punctuation.section.inner-class.end.java","meta.method-call.java","punctuation.section.class.begin.bracket.curly.java","punctuation.section.class.end.bracket.curly.java","punctuation.section.method.begin.bracket.curly.java","punctuation.section.method.end.bracket.curly.java","punctuation.separator.period.java","punctuation.bracket.angle.java","punctuation.definition.annotation.java","meta.method.body.java"],"settings":{"foreground":"#737373"}},{"scope":"meta.method.java","settings":{"foreground":"#9d6afb"}},{"scope":["storage.modifier.import.java","storage.type.java","storage.type.generic.java"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.instanceof.java","settings":{"foreground":"#ff678d"}},{"scope":"meta.definition.variable.name.java","settings":{"foreground":"#ff5d36"}},{"scope":"token.variable.parameter.java","settings":{"foreground":"#737373"}},{"scope":"import.storage.java","settings":{"foreground":"#ffab16"}},{"scope":"token.package.keyword","settings":{"foreground":"#ff678d"}},{"scope":"token.package","settings":{"foreground":"#737373"}},{"scope":"token.storage.type.java","settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.assignment.go","settings":{"foreground":"#ffab16"}},{"scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#ff678d"}},{"scope":"entity.name.package.go","settings":{"foreground":"#ffab16"}},{"scope":["support.other.namespace.use.php","support.other.namespace.use-as.php","support.other.namespace.php","entity.other.alias.php","meta.interface.php"],"settings":{"foreground":"#ffab16"}},{"scope":"keyword.operator.error-control.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.type.php","settings":{"foreground":"#ff678d"}},{"scope":["punctuation.section.array.begin.php","punctuation.section.array.end.php"],"settings":{"foreground":"#737373"}},{"scope":["storage.type.php","meta.other.type.phpdoc.php","keyword.other.type.php","keyword.other.array.phpdoc.php"],"settings":{"foreground":"#ffab16"}},{"scope":["meta.function-call.php","meta.function-call.object.php","meta.function-call.static.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["punctuation.definition.parameters.begin.bracket.round.php","punctuation.definition.parameters.end.bracket.round.php","punctuation.separator.delimiter.php","punctuation.section.scope.begin.php","punctuation.section.scope.end.php","punctuation.terminator.expression.php","punctuation.definition.arguments.begin.bracket.round.php","punctuation.definition.arguments.end.bracket.round.php","punctuation.definition.storage-type.begin.bracket.round.php","punctuation.definition.storage-type.end.bracket.round.php","punctuation.definition.array.begin.bracket.round.php","punctuation.definition.array.end.bracket.round.php","punctuation.definition.begin.bracket.round.php","punctuation.definition.end.bracket.round.php","punctuation.definition.begin.bracket.curly.php","punctuation.definition.end.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php","punctuation.definition.section.switch-block.start.bracket.curly.php","punctuation.definition.section.switch-block.begin.bracket.curly.php","punctuation.definition.section.switch-block.end.bracket.curly.php"],"settings":{"foreground":"#737373"}},{"scope":["support.constant.ext.php","support.constant.std.php","support.constant.core.php","support.constant.parser-token.php"],"settings":{"foreground":"#ffca00"}},{"scope":["entity.name.goto-label.php","support.other.php"],"settings":{"foreground":"#9d6afb"}},{"scope":["keyword.operator.logical.php","keyword.operator.bitwise.php","keyword.operator.arithmetic.php"],"settings":{"foreground":"#68cdf2"}},{"scope":"keyword.operator.regexp.php","settings":{"foreground":"#ff678d"}},{"scope":"keyword.operator.comparison.php","settings":{"foreground":"#68cdf2"}},{"scope":["keyword.operator.heredoc.php","keyword.operator.nowdoc.php"],"settings":{"foreground":"#ff678d"}},{"scope":"variable.other.class.php","settings":{"foreground":"#ff5d36"}},{"scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#171717"}},{"scope":"variable.other.generic-type.haskell","settings":{"foreground":"#ff678d"}},{"scope":"storage.type.haskell","settings":{"foreground":"#ffca00"}},{"scope":"storage.type.cs","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.variable.local.cs","settings":{"foreground":"#ff5d36"}},{"scope":"entity.name.label.cs","settings":{"foreground":"#ffab16"}},{"scope":["entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#ffab16"}},{"scope":["punctuation.definition.delayed.unison","punctuation.definition.list.begin.unison","punctuation.definition.list.end.unison","punctuation.definition.ability.begin.unison","punctuation.definition.ability.end.unison","punctuation.operator.assignment.as.unison","punctuation.separator.pipe.unison","punctuation.separator.delimiter.unison","punctuation.definition.hash.unison"],"settings":{"foreground":"#ff5d36"}},{"scope":"support.constant.edge","settings":{"foreground":"#ff678d"}},{"scope":"support.type.prelude.elm","settings":{"foreground":"#68cdf2"}},{"scope":"support.constant.elm","settings":{"foreground":"#ffca00"}},{"scope":"entity.global.clojure","settings":{"foreground":"#ffab16"}},{"scope":"meta.symbol.clojure","settings":{"foreground":"#ff5d36"}},{"scope":"constant.keyword.clojure","settings":{"foreground":"#68cdf2"}},{"scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#ff5d36"}},{"scope":"storage.modifier.import.groovy","settings":{"foreground":"#ffab16"}},{"scope":"meta.method.groovy","settings":{"foreground":"#9d6afb"}},{"scope":"meta.definition.variable.name.groovy","settings":{"foreground":"#ff5d36"}},{"scope":"meta.definition.class.inherited.classes.groovy","settings":{"foreground":"#0dbe4e"}},{"scope":"support.variable.semantic.hlsl","settings":{"foreground":"#ffab16"}},{"scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#ff678d"}},{"scope":["text.variable","text.bracketed"],"settings":{"foreground":"#ff5d36"}},{"scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#ffab16"}},{"scope":"meta.scope.prerequisites.makefile","settings":{"foreground":"#ff5d36"}},{"scope":"source.makefile","settings":{"foreground":"#ffab16"}},{"scope":"source.ini","settings":{"foreground":"#0dbe4e"}},{"scope":"constant.language.symbol.ruby","settings":{"foreground":"#68cdf2"}},{"scope":["function.parameter.ruby","function.parameter.cs"],"settings":{"foreground":"#737373"}},{"scope":"constant.language.symbol.elixir","settings":{"foreground":"#68cdf2"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#ff678d"}},{"scope":"entity.name.function.xi","settings":{"foreground":"#ffab16"}},{"scope":"entity.name.class.xi","settings":{"foreground":"#68cdf2"}},{"scope":"constant.character.character-class.regexp.xi","settings":{"foreground":"#ff5d36"}},{"scope":"constant.regexp.xi","settings":{"foreground":"#ff678d"}},{"scope":"keyword.control.xi","settings":{"foreground":"#68cdf2"}},{"scope":"invalid.xi","settings":{"foreground":"#737373"}},{"scope":"beginning.punctuation.definition.quote.markdown.xi","settings":{"foreground":"#0dbe4e"}},{"scope":"beginning.punctuation.definition.list.markdown.xi","settings":{"foreground":"#8a8a8a"}},{"scope":"constant.character.xi","settings":{"foreground":"#9d6afb"}},{"scope":"accent.xi","settings":{"foreground":"#9d6afb"}},{"scope":"wikiword.xi","settings":{"foreground":"#ffca00"}},{"scope":"constant.other.color.rgb-value.xi","settings":{"foreground":"#171717"}},{"scope":"punctuation.definition.tag.xi","settings":{"foreground":"#8a8a8a"}},{"scope":["support.constant.property-value.scss","support.constant.property-value.css"],"settings":{"foreground":"#ffca00"}},{"scope":["keyword.operator.css","keyword.operator.scss","keyword.operator.less"],"settings":{"foreground":"#68cdf2"}},{"scope":["support.constant.color.w3c-standard-color-name.css","support.constant.color.w3c-standard-color-name.scss"],"settings":{"foreground":"#ffca00"}},{"scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#737373"}},{"scope":"support.type.vendored.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.css","settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name","settings":{"foreground":"#737373"}},{"scope":"support.constant.property-value","settings":{"foreground":"#737373"}},{"scope":"support.constant.font-name","settings":{"foreground":"#ffca00"}},{"scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#07c480","fontStyle":"normal"}},{"scope":"entity.other.attribute-name.id","settings":{"foreground":"#9d6afb","fontStyle":"normal"}},{"scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#68cdf2"}},{"scope":"meta.selector","settings":{"foreground":"#ff678d"}},{"scope":"selector.sass","settings":{"foreground":"#ff5d36"}},{"scope":"rgb-value","settings":{"foreground":"#68cdf2"}},{"scope":"inline-color-decoration rgb-value","settings":{"foreground":"#ffca00"}},{"scope":"less rgb-value","settings":{"foreground":"#ffca00"}},{"scope":"control.elements","settings":{"foreground":"#ffca00"}},{"scope":"keyword.operator.less","settings":{"foreground":"#ffca00"}},{"scope":"entity.name.tag","settings":{"foreground":"#ff5d36"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#07c480","fontStyle":"normal"}},{"scope":"constant.character.entity","settings":{"foreground":"#ff5d36"}},{"scope":"meta.tag","settings":{"foreground":"#737373"}},{"scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#737373"}},{"scope":"markup.heading","settings":{"foreground":"#ff5d36"}},{"scope":["markup.heading punctuation.definition.heading","entity.name.section"],"settings":{"foreground":"#9d6afb"}},{"scope":"entity.name.section.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"markup.heading.setext","settings":{"foreground":"#737373"}},{"scope":["markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#ff5d36"}},{"scope":["markup.bold","todo.bold"],"settings":{"foreground":"#ffca00"}},{"scope":"punctuation.definition.bold","settings":{"foreground":"#ffab16"}},{"scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#ffca00"}},{"scope":["markup.italic","punctuation.definition.italic","todo.emphasis"],"settings":{"foreground":"#ff678d","fontStyle":"italic"}},{"scope":"emphasis md","settings":{"foreground":"#ff678d"}},{"scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"foreground":"#ff678d"}},{"scope":["string.other.link.title.markdown","string.other.link.description.markdown"],"settings":{"foreground":"#9d6afb"}},{"scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#ff5d36"}},{"scope":["markup.inline.raw.markdown","markup.inline.raw.string.markdown"],"settings":{"foreground":"#0dbe4e"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"punctuation.definition.list.markdown","settings":{"foreground":"#ff5d36"}},{"scope":"beginning.punctuation.definition.list.markdown","settings":{"foreground":"#ff5d36"}},{"scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#ff5d36"}},{"scope":"markup.quote.markdown","settings":{"foreground":"#8a8a8a"}},{"scope":"keyword.other.unit","settings":{"foreground":"#ff5d36"}},{"scope":"markup.changed.diff","settings":{"foreground":"#ffab16"}},{"scope":["meta.diff.header.from-file","meta.diff.header.to-file","punctuation.definition.from-file.diff","punctuation.definition.to-file.diff"],"settings":{"foreground":"#9d6afb"}},{"scope":"markup.inserted.diff","settings":{"foreground":"#0dbe4e"}},{"scope":"markup.deleted.diff","settings":{"foreground":"#ff5d36"}},{"scope":"string.regexp","settings":{"foreground":"#00c5d2"}},{"scope":"constant.other.character-class.regexp","settings":{"foreground":"#ff5d36"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#ffca00"}},{"scope":"constant.character.escape","settings":{"foreground":"#00cab1"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#ff5d36"}},{"scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#ff5d36"}},{"scope":["source.json meta.structure.dictionary.json > value.json > string.quoted.json","source.json meta.structure.array.json > value.json > string.quoted.json","source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation","source.json meta.structure.array.json > value.json > string.quoted.json > punctuation"],"settings":{"foreground":"#0dbe4e"}},{"scope":["source.json meta.structure.dictionary.json > constant.language.json","source.json meta.structure.array.json > constant.language.json"],"settings":{"foreground":"#68cdf2"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#ff5d36"}},{"scope":"support.type.property-name.json punctuation","settings":{"foreground":"#ff5d36"}},{"scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#737373"}},{"scope":"block.scope.end","settings":{"foreground":"#737373"}},{"scope":"block.scope.begin","settings":{"foreground":"#737373"}},{"scope":"token.info-token","settings":{"foreground":"#9d6afb"}},{"scope":"token.warn-token","settings":{"foreground":"#ffca00"}},{"scope":"token.error-token","settings":{"foreground":"#171717"}},{"scope":"token.debug-token","settings":{"foreground":"#ff678d"}},{"scope":"invalid.illegal","settings":{"foreground":"#171717"}},{"scope":"invalid.broken","settings":{"foreground":"#171717"}},{"scope":"invalid.deprecated","settings":{"foreground":"#171717"}},{"scope":"invalid.unimplemented","settings":{"foreground":"#171717"}}],"semanticTokenColors":{"comment":"#8a8a8a","string":"#0dbe4e","number":"#08c0ef","regexp":"#00c5d2","keyword":"#ff678d","variable":"#fe8c2c","parameter":"#737373","property":"#fe8c2c","function":"#9d6afb","method":"#9d6afb","type":"#d568ea","class":"#d568ea","namespace":"#ffab16","enumMember":"#68cdf2","variable.constant":"#ffca00","variable.defaultLibrary":"#ffab16","decorator":"#69b1ff"}}'))});var Kre=_o((Vk,Wre)=>{(function(t,e){typeof Vk=="object"&&typeof Wre<"u"?e(Vk):typeof define=="function"&&define.amd?define(["exports"],e):e((t=t||self).lru_map=t.lru_map||{})})(Vk,function(t){let e=Symbol("newer"),n=Symbol("older");class r{constructor(c,u){typeof c!="number"&&(u=c,c=0),this.size=0,this.limit=c,this.oldest=this.newest=void 0,this._keymap=new Map,u&&(this.assign(u),c<1&&(this.limit=this.size))}_markEntryAsUsed(c){c!==this.newest&&(c[e]&&(c===this.oldest&&(this.oldest=c[e]),c[e][n]=c[n]),c[n]&&(c[n][e]=c[e]),c[e]=void 0,c[n]=this.newest,this.newest&&(this.newest[e]=c),this.newest=c)}assign(c){let u,d=this.limit||Number.MAX_VALUE;this._keymap.clear();let p=c[Symbol.iterator]();for(let m=p.next();!m.done;m=p.next()){let f=new i(m.value[0],m.value[1]);if(this._keymap.set(f.key,f),u?(u[e]=f,f[n]=u):this.oldest=f,u=f,d--==0)throw new Error("overflow")}this.newest=u,this.size=this._keymap.size}get(c){var u=this._keymap.get(c);return u?(this._markEntryAsUsed(u),u.value):void 0}set(c,u){var d=this._keymap.get(c);return d?(d.value=u,this._markEntryAsUsed(d),this):(this._keymap.set(c,d=new i(c,u)),this.newest?(this.newest[e]=d,d[n]=this.newest):this.oldest=d,this.newest=d,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var c=this.oldest;if(c)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),c[e]=c[n]=void 0,this._keymap.delete(c.key),--this.size,[c.key,c.value]}find(c){let u=this._keymap.get(c);return u?u.value:void 0}has(c){return this._keymap.has(c)}delete(c){var u=this._keymap.get(c);return u?(this._keymap.delete(u.key),u[e]&&u[n]?(u[n][e]=u[e],u[e][n]=u[n]):u[e]?(u[e][n]=void 0,this.oldest=u[e]):u[n]?(u[n][e]=void 0,this.newest=u[n]):this.oldest=this.newest=void 0,this.size--,u.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new a(this.oldest)}values(){return new s(this.oldest)}entries(){return this}[Symbol.iterator](){return new o(this.oldest)}forEach(c,u){typeof u!="object"&&(u=this);let d=this.oldest;for(;d;)c.call(u,d.value,d.key,this),d=d[e]}toJSON(){for(var c=new Array(this.size),u=0,d=this.oldest;d;)c[u++]={key:d.key,value:d.value},d=d[e];return c}toString(){for(var c="",u=this.oldest;u;)c+=String(u.key)+":"+u.value,u=u[e],u&&(c+=" < ");return c}}t.LRUMap=r;function i(l,c){this.key=l,this.value=c,this[e]=void 0,this[n]=void 0}function o(l){this.entry=l}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let l=this.entry;return l?(this.entry=l[e],{done:!1,value:[l.key,l.value]}):{done:!0,value:void 0}};function a(l){this.entry=l}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let l=this.entry;return l?(this.entry=l[e],{done:!1,value:l.key}):{done:!0,value:void 0}};function s(l){this.entry=l}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let l=this.entry;return l?(this.entry=l[e],{done:!1,value:l.value}):{done:!0,value:void 0}}})});var tue=_o(eue=>{"use strict";var V2=Q();function WBe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var KBe=typeof Object.is=="function"?Object.is:WBe,XBe=V2.useState,YBe=V2.useEffect,QBe=V2.useLayoutEffect,JBe=V2.useDebugValue;function eze(t,e){var n=e(),r=XBe({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return QBe(function(){i.value=n,i.getSnapshot=e,zD(i)&&o({inst:i})},[t,n,e]),YBe(function(){return zD(i)&&o({inst:i}),t(function(){zD(i)&&o({inst:i})})},[t]),JBe(n),n}function zD(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!KBe(t,n)}catch{return!0}}function tze(t,e){return e()}var nze=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tze:eze;eue.useSyncExternalStore=V2.useSyncExternalStore!==void 0?V2.useSyncExternalStore:nze});var pS=_o((B9t,nue)=>{"use strict";nue.exports=tue()});var iue=_o(rue=>{"use strict";var mS=Q(),rze=pS();function ize(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var oze=typeof Object.is=="function"?Object.is:ize,aze=rze.useSyncExternalStore,sze=mS.useRef,lze=mS.useEffect,cze=mS.useMemo,uze=mS.useDebugValue;rue.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=sze(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=cze(function(){function l(m){if(!c){if(c=!0,u=m,m=r(m),i!==void 0&&a.hasValue){var f=a.value;if(i(f,m))return d=f}return d=m}if(f=d,oze(u,m))return f;var h=r(m);return i!==void 0&&i(f,h)?(u=m,f):(u=m,d=h)}var c=!1,u,d,p=n===void 0?null:n;return[function(){return l(e())},p===null?void 0:function(){return l(p())}]},[e,n,r,i]);var s=aze(t,o[0],o[1]);return lze(function(){a.hasValue=!0,a.value=s},[s]),uze(s),s}});var aue=_o((q9t,oue)=>{"use strict";oue.exports=iue()});var C0e=_o((yUt,k0e)=>{"use strict";var zM=Object.prototype.hasOwnProperty,v0e=Object.prototype.toString,h0e=Object.defineProperty,g0e=Object.getOwnPropertyDescriptor,b0e=function(e){return typeof Array.isArray=="function"?Array.isArray(e):v0e.call(e)==="[object Array]"},y0e=function(e){if(!e||v0e.call(e)!=="[object Object]")return!1;var n=zM.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&zM.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||zM.call(e,i)},x0e=function(e,n){h0e&&n.name==="__proto__"?h0e(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},w0e=function(e,n){if(n==="__proto__")if(zM.call(e,n)){if(g0e)return g0e(e,n).value}else return;return e[n]};k0e.exports=function t(){var e,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(e=arguments[l],e!=null)for(n in e)r=w0e(s,n),i=w0e(e,n),s!==i&&(u&&i&&(y0e(i)||(o=b0e(i)))?(o?(o=!1,a=r&&b0e(r)?r:[]):a=r&&y0e(r)?r:{},x0e(s,{name:n,newValue:t(u,a,i)})):typeof i<"u"&&x0e(s,{name:n,newValue:i}));return s}});var U3="data-cmux-scrolling";var gR={set:(t,e)=>setTimeout(t,e),clear:t=>clearTimeout(t)},hR=new WeakMap;function Lve(t,e=gR){let n=hR.get(t);n!==void 0&&e.clear(n),t.setAttribute(U3,""),hR.set(t,e.set(()=>{hR.delete(t),t.removeAttribute(U3)},800))}function Mve(t,e,n){let r=n!==0&&t.scrollHeight>t.clientHeight,i=e!==0&&t.scrollWidth>t.clientWidth;if(!r&&!i)return!1;let a=t.ownerDocument.defaultView?.getComputedStyle(t);if(!a)return!1;let s=l=>l==="auto"||l==="scroll"||l==="overlay";return r&&s(a.overflowY)||i&&s(a.overflowX)}function Eve(t){for(let e of t.composedPath()){let n=e;if(!(typeof n.getAttribute!="function"||typeof n.scrollHeight!="number")&&Mve(n,t.deltaX,t.deltaY))return n}return null}var xV=new WeakSet;function Tve(t,e=gR){xV.has(t)||(xV.add(t),t.addEventListener("wheel",n=>{let r=Eve(n);r&&Lve(r,e)},{capture:!0,passive:!0}))}var Rve=` +html:not([data-scrollers="legacy"]) .monaco-editor:not([${U3}]) .monaco-scrollable-element > .scrollbar:not(:hover) > .slider:not(.active) { opacity: 0; transition: opacity 0.4s; } @@ -16,7 +16,7 @@ html:not([data-scrollers="legacy"]) .monaco-editor:not([${G3}]) .monaco-scrollab :is([data-diff], [data-file]):hover [data-code]::-webkit-scrollbar-thumb { background-color: var(--cmux-scroller-rest, transparent); } -[data-code][${G3}]::-webkit-scrollbar-thumb { +[data-code][${U3}]::-webkit-scrollbar-thumb { background-color: var(--diffs-bg-context); } `,vV=` @@ -24,24 +24,24 @@ html:not([data-scrollers="legacy"]) .monaco-editor:not([${G3}]) .monaco-scrollab [data-file-tree-virtualized-scroll='true']:hover { --trees-scrollbar-thumb-current: var(--cmux-scroller-rest, transparent); } -[data-file-tree-virtualized-scroll='true'][${G3}] { +[data-file-tree-virtualized-scroll='true'][${U3}] { --trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb); } `,Ave=` html[data-scrollers="legacy"] { --cmux-scroller-rest: color-mix(in srgb, currentColor 30%, transparent); } -`;function kV(t,e=mR){if(!t.getElementById("cmux-scrollers")){let n=t.createElement("style");n.id="cmux-scrollers",n.textContent=Ave+Rve,(t.head??t.documentElement).appendChild(n)}Tve(t,e)}function $ve(t,e,n){let r=t.top+t.height+6,i=r+e.height+6<=n.height?r:Math.max(6,t.top-6-e.height),o=t.left+t.width/2-e.width/2,a=Math.min(Math.max(6,o),Math.max(6,n.width-6-e.width));return{left:Math.round(a),top:Math.round(i)}}function CV(t){let e=t.defaultView;if(!e)return()=>{};let n=t.createElement("div");n.className="ui-title-tooltip",n.setAttribute("role","tooltip"),n.hidden=!0,t.body.append(n);let r,i,o=Number.NEGATIVE_INFINITY,a=p=>{let m=p.getAttribute("title");return m!==null&&(p.removeAttribute("title"),m&&!p.hasAttribute("aria-label")&&!p.textContent?.trim()&&p.setAttribute("aria-label",m),m?p.setAttribute("data-tooltip",m):p.removeAttribute("data-tooltip")),p.getAttribute("data-tooltip")??""},s=()=>{if(i=void 0,!r?.isConnected)return;let p=a(r);if(!p)return;n.textContent=p,n.hidden=!1;let m=$ve(r.getBoundingClientRect(),n.getBoundingClientRect(),{width:t.documentElement.clientWidth,height:t.documentElement.clientHeight});n.style.left=`${m.left}px`,n.style.top=`${m.top}px`},l=()=>{i!==void 0&&clearTimeout(i),i=void 0,n.hidden||(o=performance.now()),n.hidden=!0,r=void 0},c=p=>{if(p.pointerType&&p.pointerType!=="mouse")return;let m=p.target?.closest?.("[title], [data-tooltip]")??void 0;if(m===r)return;let f=!n.hidden||performance.now()-o<400;l(),!(!m||!a(m))&&(r=m,f?s():i=setTimeout(s,500))},u=p=>{r&&!r.contains(p.relatedTarget)&&l()},d=()=>{l(),o=Number.NEGATIVE_INFINITY};return t.addEventListener("pointerover",c),t.addEventListener("pointerout",u),t.addEventListener("pointerdown",d,!0),t.addEventListener("keydown",d,!0),t.addEventListener("scroll",d,!0),e.addEventListener("blur",d),()=>{d(),t.removeEventListener("pointerover",c),t.removeEventListener("pointerout",u),t.removeEventListener("pointerdown",d,!0),t.removeEventListener("keydown",d,!0),t.removeEventListener("scroll",d,!0),e.removeEventListener("blur",d),n.remove()}}var _V="data-cmux-desktop",Ive="cmux.app.window.title_bar_double_click",SV=null;function Nve(t){return t instanceof Element?t.closest("[data-titlebar]")!==null&&t.closest("button, input, textarea, select, a, [role='button']")===null:!1}function Pve(t=document){let e=t.documentElement;if(e.hasAttribute(_V))return;e.setAttribute(_V,""),e.spellcheck=!1,kV(t),CV(t);let n=t.defaultView;n&&(n.addEventListener("dragover",r=>{!r.defaultPrevented&&r.dataTransfer&&(r.dataTransfer.dropEffect="none"),r.preventDefault()}),n.addEventListener("drop",r=>r.preventDefault()),n.addEventListener("dblclick",r=>{SV&&Nve(r.target)&&SV.call(Ive,{}).catch(()=>{})}))}typeof document<"u"&&Pve();var yve=R(fY(),1);var pl=R(qe(),1),fe=R(Q(),1),fV=R(Ms(),1);var wb=R(Q(),1),vY=R(ee(),1),J$=wb.createContext(void 0),V4=t=>{let e=wb.useContext(J$);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},eI=({client:t,children:e})=>(wb.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,vY.jsx)(J$.Provider,{value:t,children:e}));var R_e={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},A_e=class{#e=R_e;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},rd=new A_e;function kY(t){setTimeout(t,0)}var nI=typeof window>"u"||"Deno"in globalThis;function Ni(){}function SY(t,e){return typeof t=="function"?t(e):t}function Tw(t){return typeof t=="number"&&t>=0&&t!==1/0}function Rw(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ar(t,e){return typeof t=="function"?t(e):t}function Aw(t,e){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=t;if(a){if(r){if(e.queryHash!==Z4(a,e.options))return!1}else if(!jf(e.queryKey,a))return!1}if(n!=="all"){let l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||i&&i!==e.state.fetchStatus||o&&!o(e))}function $w(t,e){let{exact:n,status:r,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(Jh(e.options.mutationKey)!==Jh(o))return!1}else if(!jf(e.options.mutationKey,o))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function Z4(t,e){return(e?.queryKeyHashFn||Jh)(t)}function Jh(t){return JSON.stringify(t,(e,n)=>tI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function jf(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(e.length>t.length)return!1;for(let r=0;r<e.length;r++)if(!jf(t[r],e[r]))return!1;return!0}let n=Object.keys(e);for(let r of n)if(!jf(t[r],e[r]))return!1;return!0}return!1}var $_e=Object.prototype.hasOwnProperty;function rI(t,e,n=0){if(t===e)return t;if(n>500)return e;let r=CY(t)&&CY(e);if(!r&&!(tI(t)&&tI(e)))return e;let i=(r?t:Object.keys(t)).length,o=r?e:Object.keys(e),a=o.length,s=r?new Array(a):{},l=0;for(let c=0;c<a;c++){let u=r?c:o[c],d=t[u],p=e[u];if(d===p){s[u]=d,(r?c<i:$_e.call(t,u))&&l++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){s[u]=p;continue}let m=rI(d,p,n+1);s[u]=m,m===d&&l++}return i===a&&l===i?t:s}function Iw(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let n in t)if(t[n]!==e[n])return!1;return!0}function CY(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function tI(t){if(!_Y(t))return!1;let e=Object.getPrototypeOf(t),n=e?.constructor;if(n===void 0)return!0;if(typeof n!="function")return!1;let r=n.prototype;return!(!_Y(r)||!r.hasOwnProperty("isPrototypeOf")||e!==Object.prototype)}function _Y(t){return Object.prototype.toString.call(t)==="[object Object]"}function LY(t){return new Promise(e=>{rd.setTimeout(e,t)})}function W4(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?rI(t,e):e}function iI(t){return t}function MY(t,e,n=0){let r=[...t,e];return n&&r.length>n?r.slice(1):r}function EY(t,e,n=0){let r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var vb=Symbol();function Nw(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===vb?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Pw(t,e){return typeof t=="function"?t(...e):!!t}function TY(t,e,n){let r=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),t}var I_e=()=>nI,kb=()=>I_e();var id=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var N_e=class extends id{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Cb=new N_e;var RY=kY;function P_e(){let t=[],e=0,n=s=>{s()},r=s=>{s()},i=RY,o=s=>{e?t.push(s):i(()=>{n(s)})},a=()=>{let s=t;t=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;e++;try{l=s()}finally{e--,e||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Kr=P_e();var j_e=class extends id{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#e}},_b=new j_e;function O_e(t){return Math.min(1e3*2**t,3e4)}function oI(t){return(t??"online")==="online"?_b.isOnline():!0}var jw=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ow(t){let e=!1,n=0,r,i="pending",o,a,s=new Promise((y,b)=>{o=y,a=b});s.catch(Ni);let l=()=>i!=="pending",c=y=>{if(!l()){let b=new jw(y);h(b),t.onCancel?.(b)}},u=()=>{e=!0},d=()=>{e=!1},p=()=>Cb.isFocused()&&(t.networkMode==="always"||_b.isOnline())&&t.canRun(),m=()=>oI(t.networkMode)&&t.canRun(),f=y=>{l()||(r?.(),i="resolved",o(y))},h=y=>{l()||(r?.(),i="rejected",a(y))},x=()=>new Promise(y=>{r=b=>{(l()||p())&&y(b)},t.onPause?.()}).then(()=>{r=void 0,l()||t.onContinue?.()}),g=()=>{if(l())return;let y,b=n===0?t.initialPromise:void 0;try{y=b??t.fn()}catch(w){y=Promise.reject(w)}Promise.resolve(y).then(f).catch(w=>{if(l())return;let v=t.retry??(kb()?0:3),k=t.retryDelay??O_e,_=typeof k=="function"?k(n,w):k,L=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,w);if(e||!L){h(w);return}n++,t.onFail?.(n,w),LY(_).then(()=>p()?void 0:x()).then(()=>{e?h(w):g()})})};return{promise:s,status:()=>i,cancel:c,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?g():x().then(g),s)}}var Dw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tw(this.gcTime)&&(this.#e=rd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(kb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(rd.clearTimeout(this.#e),this.#e=void 0)}};function $Y(t){return{onFetch:(e,n)=>{let r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],a=e.state.data?.pageParams||[],s={pages:[],pageParams:[]},l=0,c=async()=>{let u=!1,d=f=>{TY(f,()=>e.signal,()=>u=!0)},p=Nw(e.options,e.fetchOptions),m=async(f,h,x)=>{if(u)return Promise.reject(e.signal.reason);if(h==null&&f.pages.length)return Promise.resolve(f);let y=(()=>{let k={client:e.client,queryKey:e.queryKey,pageParam:h,direction:x?"backward":"forward",meta:e.options.meta};return d(k),k})(),b=await p(y),{maxPages:w}=e.options,v=x?EY:MY;return{pages:v(f.pages,b,w),pageParams:v(f.pageParams,h,w)}};if(i&&o.length){let f=i==="backward",h=f?D_e:AY,x={pages:o,pageParams:a};s=await m(x,h(r,x),f)}else{let f=t??o.length;do{let h=l===0?a[0]??r.initialPageParam:AY(r,s);if(l>0&&h==null)break;s=await m(s,h),l++}while(l<f)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=c}}}function AY(t,{pages:e,pageParams:n}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function D_e(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var PY=class extends Dw{#e;#t;#n;#r;#i;#o;#s;#c;constructor(t){super(),this.#c=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#r=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=NY(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#o?.promise}setOptions(t){if(this.options={...this.#s,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=NY(this.options);e.data!==void 0&&(this.setState(IY(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(t,e){let n=W4(this.state.data,t,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t){this.#a({type:"setState",state:t})}cancel(t){let e=this.#o?.promise;return this.#o?.cancel(t),e?e.then(Ni).catch(Ni):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Ar(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ar(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Rw(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){let e=this.observers.indexOf(t);e!==-1&&(this.observers.splice(e,1),this.observers.length||(this.#o&&(this.#c||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(t&&this.setOptions(t),!this.options.queryFn){let l=this.observers.find(c=>c.options.queryFn);l&&this.setOptions(l.options)}let n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#c=!0,n.signal)})},i=()=>{let l=Nw(this.options,e),u=(()=>{let d={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#c=!1,this.options.persister?this.options.persister(l,u,this):l(u)},a=(()=>{let l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(l),l})();(this.#e==="infinite"?$Y(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let s=this.#o=Ow({initialPromise:e?.initialPromise,fn:a.fetchFn,onCancel:l=>{l instanceof jw&&l.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(l,c)=>{this.#a({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let l=await s.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#r.config.onSuccess?.(l,this),this.#r.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof jw){if(l.silent)return this.#o.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#a({type:"error",error:l}),this.#r.config.onError?.(l,this),this.#r.config.onSettled?.(this.state.data,l,this),l}finally{this.#o===s&&(this.#o=void 0),this.scheduleGc()}}#a(t){let e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...aI(n.data,this.options),fetchMeta:t.meta??null};case"success":let r={...n,...IY(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?r:void 0,r;case"error":let i=t.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Kr.batch(()=>{this.observers.slice().forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:t})})}};function aI(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oI(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function IY(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function NY(t){let e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var lI=class extends id{#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#s;#c;#a;#g;#f;#d;#p;#m=new Set;constructor(t,e){super(),this.options=e,this.#e=t,this.#s=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),jY(this.#t,this.options)?this.#b():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sI(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sI(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#u(),this.#N(),this.#t.removeObserver(this)}setOptions(t){let e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ar(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#P(),this.#t.setOptions(this.options),e._defaulted&&!Iw(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let r=this.hasListeners();r&&OY(this.#t,n,this.options,e)&&this.#b(),this.updateResult(),r&&(this.#t!==n||Ar(this.options.enabled,this.#t)!==Ar(e.enabled,this.#t)||Ar(this.options.staleTime,this.#t)!==Ar(e.staleTime,this.#t))&&this.#w();let i=this.#$();r&&(this.#t!==n||Ar(this.options.enabled,this.#t)!==Ar(e.enabled,this.#t)||i!==this.#p)&&this.#I(i)}getOptimisticResult(t){let e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return Iw(this.getCurrentResult(),n)||(this.#r=n,this.#o=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(n,r)=>(this.trackProp(r),e?.(r),Reflect.get(n,r))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e),r=()=>{},i,o=new Promise(a=>{i=a,r=this.#e.getQueryCache().subscribe(s=>{s.type==="updated"&&s.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),a(this.createResult(n,e)))})});return Promise.race([n.fetch().then(()=>{let a=this.createResult(n,e);return i?.(a),a}).finally(()=>{r()}),o])}fetch(t){return this.#b({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#b(t){this.#P();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Ni)),e}#C(t){return!kb()&&Ar(this.options.enabled,this.#t)!==!1&&Tw(t)}#w(){this.#u();let t=Ar(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#C(t))return;let e=Rw(this.#r.dataUpdatedAt,t)+1;this.#f=rd.setTimeout(()=>{this.#r.isStale||this.updateResult()},e)}#$(){return Ar(this.options.refetchInterval,this.#t)??!1}#I(t){this.#N(),this.#p=t,!(this.#p===0||!this.#C(this.#p))&&(this.#d=rd.setInterval(()=>{(this.options.refetchIntervalInBackground||Cb.isFocused())&&this.#b()},this.#p))}#E(){this.#w(),this.#I(this.#$())}#u(){this.#f!==void 0&&(rd.clearTimeout(this.#f),this.#f=void 0)}#N(){this.#d!==void 0&&(rd.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){let n=this.#t,r=this.options,i=this.#r,o=this.#i,a=this.#o,s=t!==n?t.state:this.#n,{state:l}=t,c={...l},u=!1,d;if(e._optimisticResults){let v=this.hasListeners(),k=!v&&jY(t,e),_=v&&OY(t,n,e,r);(k||_)&&(c={...c,...aI(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:f}=c;d=c.data;let h=!1;if(e.placeholderData!==void 0&&d===void 0&&f==="pending"){let v;i?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(v=i.data,h=!0):v=typeof e.placeholderData=="function"?e.placeholderData(this.#g?.state.data,this.#g):e.placeholderData,v!==void 0&&(f="success",d=W4(i?.data,v,e),u=!0)}if(e.select&&d!==void 0&&!h)if(i&&d===o?.data&&e.select===this.#c)d=this.#a;else try{this.#c=e.select,d=e.select(d),d=W4(i?.data,d,e),this.#a=d,this.#s=null}catch(v){this.#s=v}else d===void 0&&(this.#s=null);this.#s&&(p=this.#s,d=this.#a,m=Date.now(),f="error",u=!1);let x=c.fetchStatus==="fetching",g=f==="pending",y=f==="error",b=g&&x,w=d!==void 0;return{status:f,fetchStatus:c.fetchStatus,isPending:g,isSuccess:f==="success",isError:y,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>s.dataUpdateCount||c.errorUpdateCount>s.errorUpdateCount,isFetching:x,isRefetching:x&&!g,isLoadingError:y&&!w,isPaused:c.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:y&&w,isStale:cI(t,e),refetch:this.refetch,isEnabled:Ar(e.enabled,t)!==!1}}updateResult(){let t=this.#r,e=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#g=this.#t),Iw(e,t))return;this.#r=e;let r=(()=>{if(!t)return!0;let{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!this.#m.size)return!0;let a=new Set(o??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#r).some(s=>{let l=s;return this.#r[l]!==t[l]&&a.has(l)})})();Kr.batch(()=>{r&&this.listeners.forEach(i=>{i(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#P(){let t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;let e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}};function F_e(t,e){return Ar(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Ar(e.retryOnMount,t)===!1)}function jY(t,e){return F_e(t,e)||t.state.data!==void 0&&sI(t,e,e.refetchOnMount)}function sI(t,e,n){if(Ar(e.enabled,t)!==!1&&Ar(e.staleTime,t)!=="static"){let r=Ar(n,t);return r==="always"||r!==!1&&cI(t,e)}return!1}function OY(t,e,n,r){return(t!==e||Ar(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&cI(t,n)}function cI(t,e){return Ar(e.enabled,t)!==!1&&t.isStaleByTime(Ar(e.staleTime,t))}var DY=class extends Dw{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||B_e(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){let e=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Ow({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#i({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status==="pending",o=!r.canStart();try{if(i)e();else{this.#i({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);let s=await this.options.onMutate?.(t,n);s!==this.state.context&&this.#i({type:"pending",context:s,variables:t,isPaused:o})}let a=await r.start();return await this.#n.config.onSuccess?.(a,t,this.state.context,this,n),await this.options.onSuccess?.(a,t,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,t,this.state.context,n),this.#i({type:"success",data:a}),a}catch(a){try{await this.#n.config.onError?.(a,t,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onError?.(a,t,this.state.context,n)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,a,t,this.state.context,n)}catch(s){Promise.reject(s)}throw this.#i({type:"error",error:a}),a}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(t){let e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Kr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function B_e(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var FY=class extends id{#e;#t;#n;constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}build(t,e,n){let r=new DY({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);let e=Fw(t);if(typeof e=="string"){let n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){let e=Fw(t);if(typeof e=="string"){let n=this.#t.get(e);if(n)if(n.length>1){let r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=Fw(t);if(typeof e=="string"){let n=this.#t.get(e)?.find(r=>r.state.status==="pending");return!n||n===t}else return!0}runNext(t){let e=Fw(t);return typeof e=="string"?this.#t.get(e)?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Kr.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){let e={exact:!0,...t};return this.getAll().find(n=>$w(e,n))}findAll(t={}){return this.getAll().filter(e=>$w(t,e))}notify(t){Kr.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(e=>e.state.isPaused);return Kr.batch(()=>Promise.all(t.map(e=>e.continue().catch(Ni))))}};function Fw(t){return t.options.scope?.id}var BY=class extends id{#e;constructor(t={}){super(),this.config=t,this.#e=new Map}build(t,e,n){let r=e.queryKey,i=e.queryHash??Z4(r,e),o=this.get(i);return o||(o=new PY({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){this.#e.get(t.queryHash)===t&&(t.destroy(),this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Kr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(n=>Aw(e,n))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(n=>Aw(t,n)):e}notify(t){Kr.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Kr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Kr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}};var uI=class{#e;#t;#n;#r;#i;#o;#s;#c;constructor(t={}){this.#e=t.queryCache||new BY,this.#t=t.mutationCache||new FY,this.#n=t.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=Cb.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#c=_b.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#c?.(),this.#c=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),n=this.#e.build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Ar(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>[e,n.data])}setQueryData(t,e,n){let r=this.defaultQueryOptions({queryKey:t}),i=this.#e.get(r.queryHash)?.state.data,o=SY(e,i);if(o!==void 0)return this.#e.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return Kr.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){let e=this.#e;Kr.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){let n=this.#e;return Kr.batch(()=>{let r=n.findAll(t),i=new Set(r);return r.forEach(o=>{o.reset()}),this.refetchQueries({type:"active",predicate:o=>i.has(o)},e)})}cancelQueries(t,e={}){let n={revert:!0,...e},r=Kr.batch(()=>this.#e.findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(Ni).catch(Ni)}invalidateQueries(t,e={}){return Kr.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){let n={...e,cancelRefetch:e.cancelRefetch??!0},r=Kr.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ni)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ni)}async query(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);let n=this.#e.build(this,e),r=n.isStaleByTime(Ar(e.staleTime,n))?await n.fetch(e):n.state.data,i=e.select;return i?i(r):r}fetchQuery(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);let n=this.#e.build(this,e);return n.isStaleByTime(Ar(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ni).catch(Ni)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ni).catch(Ni)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return _b.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(Jh(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#r.values()],n={};return e.forEach(r=>{jf(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){this.#i.set(Jh(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#i.values()],n={};return e.forEach(r=>{jf(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=Z4(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===vb&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};var Bw=R(Q(),1),zY=Bw.createContext(!1),qY=()=>Bw.useContext(zY),Jst=zY.Provider;var K4=R(Q(),1),z_e=R(ee(),1);function q_e(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var H_e=K4.createContext(q_e()),HY=()=>K4.useContext(H_e);var GY=R(Q(),1);var UY=(t,e,n)=>{let r=n?.state.error&&typeof t.throwOnError=="function"?Pw(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||r)&&(e.isReset()||(t.retryOnMount=!1))},VY=t=>{GY.useEffect(()=>{t.clearReset()},[t])},ZY=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||Pw(n,[t.error,r]));var WY=t=>{if(t.suspense){let n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},KY=(t,e)=>t?.suspense&&e.isPending,XY=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});var Of=R(Q(),1);function YY(t,e,n){let r=qY(),i=HY(),o=V4(n),a=o.defaultQueryOptions(t),s=o.getQueryCache().get(a.queryHash),l=t.subscribed!==!1;a._optimisticResults=r?"isRestoring":l?"optimistic":void 0,WY(a),UY(a,i,s),VY(i);let[c]=Of.useState(()=>new e(o,a)),u=c.getOptimisticResult(a),d=!r&&l;if(Of.useSyncExternalStore(Of.useCallback(p=>{let m=d?c.subscribe(Kr.batchCalls(p)):Ni;return c.updateResult(),m},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),Of.useEffect(()=>{c.setOptions(a)},[a,c]),KY(a,u))throw XY(a,c,i);if(ZY({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw u.error;return a.notifyOnChangeProps?u:c.trackResult(u)}function dI(t,e){return YY(t,lI,e)}var G_e={isDark:null,pageBackground:"--agent-page-bg",surfaceBackground:"--agent-surface",surfaceElevatedBackground:"--agent-surface-elevated",inputBackground:"--agent-input-bg",border:"--agent-border",borderStrong:"--agent-border-strong",text:"--agent-text",mutedText:"--agent-muted",softText:"--agent-soft",accent:"--agent-accent",accentSoft:"--agent-accent-soft",accentText:"--agent-accent-text",danger:"--agent-danger",warning:"--agent-warning",highlight:"--agent-highlight",highlightText:"--agent-highlight-text",shadow:"--agent-shadow",palette:null,borders:null,motion:null},U_e={hover:"--agent-motion-hover",focus:"--agent-motion-focus",fadeIn:"--agent-motion-in",fadeOut:"--agent-motion-out"};function QY(t){if(typeof document>"u")return;let e=document.documentElement;e.dataset.theme=t.isDark?"dark":"light",V_e(),e.classList.toggle("dark",t.isDark),e.classList.toggle("light",!t.isDark),e.style.colorScheme=t.isDark?"dark":"light",t.borders==="none"?e.dataset.borders="none":delete e.dataset.borders;for(let[n,r]of Object.entries(G_e))if(r){if(t[n]===void 0){e.style.removeProperty(r);continue}e.style.setProperty(r,String(t[n]))}for(let[n,r]of Object.entries(U_e)){let i=t.motion?.[n];typeof i=="number"&&Number.isFinite(i)&&i>=0?e.style.setProperty(r,`${Math.round(i*1e3)}ms`):e.style.removeProperty(r)}for(let n=0;n<16;n+=1){let r=t.palette?.[n];r?e.style.setProperty(`--agent-ansi-${n}`,r):e.style.removeProperty(`--agent-ansi-${n}`)}}function V_e(){if(typeof document>"u")return;let t=document.documentElement;t.dataset.agentOs=Z_e()}function Z_e(){if(typeof navigator>"u")return"unknown";let t=navigator,e=(t.userAgentData?.platform??t.platform??t.userAgent).toLowerCase();return e.includes("win")?"win32":e.includes("mac")||e.includes("darwin")?"darwin":e.includes("linux")?"linux":"unknown"}var pI=["file_path","filePath","notebook_path","notebookPath","absolute_path","path","target_file"],W_e=["patch","patchText","input"],K_e=/^\*\*\* (?:Add|Update|Delete) File: (.+)$/gm,X_e=/^\*\*\* Move to: (.+)$/gm;function mI(t){let e=[],n=i=>{if(typeof i!="string")return;let o=i.trim();o&&o.length<=4096&&!o.includes(` -`)&&!e.includes(o)&&e.push(o)},r=tSe(t.inputSummary);if(r&&Q_e(r,n),!e.length)for(let i of t.locations??[])n(i.path);return!e.length&&t.inputSummary&&!r&&(/^\s*[[{]/.test(t.inputSummary)?J_e(t.inputSummary,n):n(tQ(t.inputSummary.trim()))),e.length||n(eSe(t.title)),e}function eQ(t,e,n){let r=JY(t.title),i=JY(e,t.kind)||"Tool",o=mI(t),a=t.command?.trim();if(t.kind==="execute"&&a)return n(a);if(o.length){let s=Y_e(r||i);return r.includes(o[0])?r:`${s} ${o[0]}`}return r||i}function Y_e(t){return t.trim().split(/\s+/,1)[0]??t.trim()}function JY(t,e){let n=t?.trim()??"";return n&&!n.startsWith("{")&&!n.startsWith("[")?n:e?.trim()??""}function Q_e(t,e){for(let o of pI)e(t[o]);for(let o of W_e)typeof t[o]=="string"&&zw(t[o],e);let n=t.command;if(Array.isArray(n)&&n[0]==="apply_patch")for(let o of n)zw(o,e);else typeof n=="string"&&n.includes("*** Begin Patch")&&zw(n,e);let r=t.changes;if(Array.isArray(r))for(let o of r)o&&typeof o=="object"&&e(o.path);else if(r&&typeof r=="object")for(let o of Object.keys(r))e(o);let i=t.edits;if(Array.isArray(i)){for(let o of i)if(o&&typeof o=="object")for(let a of pI)e(o[a])}}function zw(t,e){if(!(typeof t!="string"||!t.includes("*** "))){for(let n of t.matchAll(K_e))e(n[1]);for(let n of t.matchAll(X_e))e(n[1])}}function J_e(t,e){let n=pI.join("|");for(let r of t.matchAll(new RegExp(`"(?:${n})"\\s*:\\s*"((?:[^"\\\\]|\\\\.)*)"`,"g")))try{e(JSON.parse(`"${r[1]}"`))}catch{}zw(t.replace(/\\n/g,` -`),e)}function eSe(t){return tQ(t.trim().split(/\s+/).slice(1).join(" ").replace(/^`|`$/g,""))}function tQ(t){if(!(!t||/[\n{}"]/.test(t)))return/\//.test(t)||/^[\w.-]+\.[A-Za-z0-9]{1,12}$/.test(t)?t:void 0}function tSe(t){if(t)try{let e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}catch{return}}function X4(t){if(!/^https?:/i.test(t.trim()))return;let e;try{e=new URL(t)}catch{return}if(!(e.protocol!=="http:"&&e.protocol!=="https:")&&!(e.username||e.password||!e.hostname))return e.href}var nQ=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],fI=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function nSe(t){if(t<=255)return nQ[t];let e=0,n=fI.length-1;for(;e<=n;){let r=e+n>>1,i=fI[r];if(t<i[0]){n=r-1;continue}if(t>i[1]){e=r+1;continue}return i[2]}return"L"}function rSe(t){let e=t.length;if(e===0)return null;let n=new Array(e),r=!1,i=0,o=null;for(let a=0;a<e;){let s=t.charCodeAt(a),l=s,c=1;if(s>=55296&&s<=56319&&a+1<e){let d=t.charCodeAt(a+1);d>=56320&&d<=57343&&(l=(s-55296<<10)+(d-56320)+65536,c=2)}let u=nSe(l);(u==="R"||u==="AL"||u==="AN")&&(r=!0);for(let d=0;d<c;d++)n[a+d]=u;u==="B"&&(r&&(o??=new Int8Array(e),o[a]=rQ(n,o,i,a)),i=a+c,r=!1),a+=c}return r&&(o??=new Int8Array(e),rQ(n,o,i,e)),o}function rQ(t,e,n,r){let i=0;for(let l=n;l<r;l++){let c=t[l];if(c==="L"){i=0;break}if(c==="R"||c==="AL"){i=1;break}}let o=i&1?"R":"L",a=o,s=a;for(let l=n;l<r;l++)t[l]==="NSM"?t[l]=s:s=t[l];s=a;for(let l=n;l<r;l++){let c=t[l];c==="EN"?t[l]=s==="AL"?"AN":"EN":(c==="R"||c==="L"||c==="AL")&&(s=c)}for(let l=n;l<r;l++)t[l]==="AL"&&(t[l]="R");for(let l=n+1;l<r-1;l++)t[l]==="ES"&&t[l-1]==="EN"&&t[l+1]==="EN"&&(t[l]="EN"),t[l]==="CS"&&(t[l-1]==="EN"||t[l-1]==="AN")&&t[l+1]===t[l-1]&&(t[l]=t[l-1]);for(let l=n;l<r;l++){if(t[l]!=="EN")continue;let c;for(c=l-1;c>=n&&t[c]==="ET";c--)t[c]="EN";for(c=l+1;c<r&&t[c]==="ET";c++)t[c]="EN"}for(let l=n;l<r;l++){let c=t[l];(c==="WS"||c==="ES"||c==="ET"||c==="CS")&&(t[l]="ON")}s=a;for(let l=n;l<r;l++){let c=t[l];c==="EN"?t[l]=s==="L"?"L":"EN":(c==="R"||c==="L")&&(s=c)}for(let l=n;l<r;l++){if(t[l]!=="ON")continue;let c=l+1;for(;c<r&&t[c]==="ON";)c++;let u=l>n?t[l-1]:a,d=c<r?t[c]:a,p=u!=="L"?"R":"L";if(p===(d!=="L"?"R":"L"))for(let f=l;f<c;f++)t[f]=p;l=c-1}for(let l=n;l<r;l++)t[l]==="ON"&&(t[l]=o);for(let l=n;l<r;l++){let c=t[l],u=i;(i&1)===0?c==="R"?u++:(c==="AN"||c==="EN")&&(u+=2):(c==="L"||c==="AN"||c==="EN")&&u++,e[l]=u}return i}function iQ(t,e){let n=rSe(t);if(n===null)return null;let r=new Int8Array(e.length);for(let i=0;i<e.length;i++)r[i]=n[e[i]];return r}var iSe=/[ \t\n\r\f]+/g,oSe=/[\t\n\r\f]| {2,}|^ | $/;function aSe(t){if(!oSe.test(t))return t;let e=t.replace(iSe," ");return e.charCodeAt(0)===32&&(e=e.slice(1)),e.length>0&&e.charCodeAt(e.length-1)===32&&(e=e.slice(0,-1)),e}function sSe(t){return/[\r\f]/.test(t)?t.replace(/\r\n/g,` +`;function kV(t,e=gR){if(!t.getElementById("cmux-scrollers")){let n=t.createElement("style");n.id="cmux-scrollers",n.textContent=Ave+Rve,(t.head??t.documentElement).appendChild(n)}Tve(t,e)}function $ve(t,e,n){let r=t.top+t.height+6,i=r+e.height+6<=n.height?r:Math.max(6,t.top-6-e.height),o=t.left+t.width/2-e.width/2,a=Math.min(Math.max(6,o),Math.max(6,n.width-6-e.width));return{left:Math.round(a),top:Math.round(i)}}function CV(t){let e=t.defaultView;if(!e)return()=>{};let n=t.createElement("div");n.className="ui-title-tooltip",n.setAttribute("role","tooltip"),n.hidden=!0,t.body.append(n);let r,i,o=Number.NEGATIVE_INFINITY,a=p=>{let m=p.getAttribute("title");return m!==null&&(p.removeAttribute("title"),m&&!p.hasAttribute("aria-label")&&!p.textContent?.trim()&&p.setAttribute("aria-label",m),m?p.setAttribute("data-tooltip",m):p.removeAttribute("data-tooltip")),p.getAttribute("data-tooltip")??""},s=()=>{if(i=void 0,!r?.isConnected)return;let p=a(r);if(!p)return;n.textContent=p,n.hidden=!1;let m=$ve(r.getBoundingClientRect(),n.getBoundingClientRect(),{width:t.documentElement.clientWidth,height:t.documentElement.clientHeight});n.style.left=`${m.left}px`,n.style.top=`${m.top}px`},l=()=>{i!==void 0&&clearTimeout(i),i=void 0,n.hidden||(o=performance.now()),n.hidden=!0,r=void 0},c=p=>{if(p.pointerType&&p.pointerType!=="mouse")return;let m=p.target?.closest?.("[title], [data-tooltip]")??void 0;if(m===r)return;let f=!n.hidden||performance.now()-o<400;l(),!(!m||!a(m))&&(r=m,f?s():i=setTimeout(s,500))},u=p=>{r&&!r.contains(p.relatedTarget)&&l()},d=()=>{l(),o=Number.NEGATIVE_INFINITY};return t.addEventListener("pointerover",c),t.addEventListener("pointerout",u),t.addEventListener("pointerdown",d,!0),t.addEventListener("keydown",d,!0),t.addEventListener("scroll",d,!0),e.addEventListener("blur",d),()=>{d(),t.removeEventListener("pointerover",c),t.removeEventListener("pointerout",u),t.removeEventListener("pointerdown",d,!0),t.removeEventListener("keydown",d,!0),t.removeEventListener("scroll",d,!0),e.removeEventListener("blur",d),n.remove()}}var _V="data-cmux-desktop",Ive="cmux.app.window.title_bar_double_click",SV=null;function Nve(t){return t instanceof Element?t.closest("[data-titlebar]")!==null&&t.closest("button, input, textarea, select, a, [role='button']")===null:!1}function Pve(t=document){let e=t.documentElement;if(e.hasAttribute(_V))return;e.setAttribute(_V,""),e.spellcheck=!1,kV(t),CV(t);let n=t.defaultView;n&&(n.addEventListener("dragover",r=>{!r.defaultPrevented&&r.dataTransfer&&(r.dataTransfer.dropEffect="none"),r.preventDefault()}),n.addEventListener("drop",r=>r.preventDefault()),n.addEventListener("dblclick",r=>{SV&&Nve(r.target)&&SV.call(Ive,{}).catch(()=>{})}))}typeof document<"u"&&Pve();var yve=R(fY(),1);var ml=R(qe(),1),fe=R(Q(),1),fV=R(Ms(),1);var vb=R(Q(),1),vY=R(ee(),1),nI=vb.createContext(void 0),Z4=t=>{let e=vb.useContext(nI);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},rI=({client:t,children:e})=>(vb.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,vY.jsx)(nI.Provider,{value:t,children:e}));var R_e={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},A_e=class{#e=R_e;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},rd=new A_e;function kY(t){setTimeout(t,0)}var oI=typeof window>"u"||"Deno"in globalThis;function Ni(){}function SY(t,e){return typeof t=="function"?t(e):t}function Tw(t){return typeof t=="number"&&t>=0&&t!==1/0}function Rw(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ar(t,e){return typeof t=="function"?t(e):t}function Aw(t,e){let{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=t;if(a){if(r){if(e.queryHash!==W4(a,e.options))return!1}else if(!Of(e.queryKey,a))return!1}if(n!=="all"){let l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||i&&i!==e.state.fetchStatus||o&&!o(e))}function $w(t,e){let{exact:n,status:r,predicate:i,mutationKey:o}=t;if(o){if(!e.options.mutationKey)return!1;if(n){if(t0(e.options.mutationKey)!==t0(o))return!1}else if(!Of(e.options.mutationKey,o))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function W4(t,e){return(e?.queryKeyHashFn||t0)(t)}function t0(t){return JSON.stringify(t,(e,n)=>iI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Of(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(Array.isArray(t)&&Array.isArray(e)){if(e.length>t.length)return!1;for(let r=0;r<e.length;r++)if(!Of(t[r],e[r]))return!1;return!0}let n=Object.keys(e);for(let r of n)if(!Of(t[r],e[r]))return!1;return!0}return!1}var $_e=Object.prototype.hasOwnProperty;function aI(t,e,n=0){if(t===e)return t;if(n>500)return e;let r=CY(t)&&CY(e);if(!r&&!(iI(t)&&iI(e)))return e;let i=(r?t:Object.keys(t)).length,o=r?e:Object.keys(e),a=o.length,s=r?new Array(a):{},l=0;for(let c=0;c<a;c++){let u=r?c:o[c],d=t[u],p=e[u];if(d===p){s[u]=d,(r?c<i:$_e.call(t,u))&&l++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){s[u]=p;continue}let m=aI(d,p,n+1);s[u]=m,m===d&&l++}return i===a&&l===i?t:s}function Iw(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let n in t)if(t[n]!==e[n])return!1;return!0}function CY(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function iI(t){if(!_Y(t))return!1;let e=Object.getPrototypeOf(t),n=e?.constructor;if(n===void 0)return!0;if(typeof n!="function")return!1;let r=n.prototype;return!(!_Y(r)||!r.hasOwnProperty("isPrototypeOf")||e!==Object.prototype)}function _Y(t){return Object.prototype.toString.call(t)==="[object Object]"}function LY(t){return new Promise(e=>{rd.setTimeout(e,t)})}function K4(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?aI(t,e):e}function sI(t){return t}function MY(t,e,n=0){let r=[...t,e];return n&&r.length>n?r.slice(1):r}function EY(t,e,n=0){let r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var kb=Symbol();function Nw(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===kb?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Pw(t,e){return typeof t=="function"?t(...e):!!t}function TY(t,e,n){let r=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),t}var I_e=()=>oI,Cb=()=>I_e();var id=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};var N_e=class extends id{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},_b=new N_e;var RY=kY;function P_e(){let t=[],e=0,n=s=>{s()},r=s=>{s()},i=RY,o=s=>{e?t.push(s):i(()=>{n(s)})},a=()=>{let s=t;t=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;e++;try{l=s()}finally{e--,e||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Kr=P_e();var j_e=class extends id{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#e}},Sb=new j_e;function O_e(t){return Math.min(1e3*2**t,3e4)}function lI(t){return(t??"online")==="online"?Sb.isOnline():!0}var jw=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ow(t){let e=!1,n=0,r,i="pending",o,a,s=new Promise((y,b)=>{o=y,a=b});s.catch(Ni);let l=()=>i!=="pending",c=y=>{if(!l()){let b=new jw(y);h(b),t.onCancel?.(b)}},u=()=>{e=!0},d=()=>{e=!1},p=()=>_b.isFocused()&&(t.networkMode==="always"||Sb.isOnline())&&t.canRun(),m=()=>lI(t.networkMode)&&t.canRun(),f=y=>{l()||(r?.(),i="resolved",o(y))},h=y=>{l()||(r?.(),i="rejected",a(y))},x=()=>new Promise(y=>{r=b=>{(l()||p())&&y(b)},t.onPause?.()}).then(()=>{r=void 0,l()||t.onContinue?.()}),g=()=>{if(l())return;let y,b=n===0?t.initialPromise:void 0;try{y=b??t.fn()}catch(w){y=Promise.reject(w)}Promise.resolve(y).then(f).catch(w=>{if(l())return;let v=t.retry??(Cb()?0:3),k=t.retryDelay??O_e,_=typeof k=="function"?k(n,w):k,L=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,w);if(e||!L){h(w);return}n++,t.onFail?.(n,w),LY(_).then(()=>p()?void 0:x()).then(()=>{e?h(w):g()})})};return{promise:s,status:()=>i,cancel:c,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?g():x().then(g),s)}}var Dw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tw(this.gcTime)&&(this.#e=rd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Cb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(rd.clearTimeout(this.#e),this.#e=void 0)}};function $Y(t){return{onFetch:(e,n)=>{let r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],a=e.state.data?.pageParams||[],s={pages:[],pageParams:[]},l=0,c=async()=>{let u=!1,d=f=>{TY(f,()=>e.signal,()=>u=!0)},p=Nw(e.options,e.fetchOptions),m=async(f,h,x)=>{if(u)return Promise.reject(e.signal.reason);if(h==null&&f.pages.length)return Promise.resolve(f);let y=(()=>{let k={client:e.client,queryKey:e.queryKey,pageParam:h,direction:x?"backward":"forward",meta:e.options.meta};return d(k),k})(),b=await p(y),{maxPages:w}=e.options,v=x?EY:MY;return{pages:v(f.pages,b,w),pageParams:v(f.pageParams,h,w)}};if(i&&o.length){let f=i==="backward",h=f?D_e:AY,x={pages:o,pageParams:a};s=await m(x,h(r,x),f)}else{let f=t??o.length;do{let h=l===0?a[0]??r.initialPageParam:AY(r,s);if(l>0&&h==null)break;s=await m(s,h),l++}while(l<f)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=c}}}function AY(t,{pages:e,pageParams:n}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function D_e(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var PY=class extends Dw{#e;#t;#n;#r;#i;#o;#s;#c;constructor(t){super(),this.#c=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#r=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=NY(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#o?.promise}setOptions(t){if(this.options={...this.#s,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=NY(this.options);e.data!==void 0&&(this.setState(IY(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(t,e){let n=K4(this.state.data,t,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t){this.#a({type:"setState",state:t})}cancel(t){let e=this.#o?.promise;return this.#o?.cancel(t),e?e.then(Ni).catch(Ni):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Ar(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===kb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ar(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Rw(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){let e=this.observers.indexOf(t);e!==-1&&(this.observers.splice(e,1),this.observers.length||(this.#o&&(this.#c||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(t&&this.setOptions(t),!this.options.queryFn){let l=this.observers.find(c=>c.options.queryFn);l&&this.setOptions(l.options)}let n=new AbortController,r=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#c=!0,n.signal)})},i=()=>{let l=Nw(this.options,e),u=(()=>{let d={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#c=!1,this.options.persister?this.options.persister(l,u,this):l(u)},a=(()=>{let l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(l),l})();(this.#e==="infinite"?$Y(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#a({type:"fetch",meta:a.fetchOptions?.meta});let s=this.#o=Ow({initialPromise:e?.initialPromise,fn:a.fetchFn,onCancel:l=>{l instanceof jw&&l.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(l,c)=>{this.#a({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let l=await s.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#r.config.onSuccess?.(l,this),this.#r.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof jw){if(l.silent)return this.#o.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#a({type:"error",error:l}),this.#r.config.onError?.(l,this),this.#r.config.onSettled?.(this.state.data,l,this),l}finally{this.#o===s&&(this.#o=void 0),this.scheduleGc()}}#a(t){let e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...cI(n.data,this.options),fetchMeta:t.meta??null};case"success":let r={...n,...IY(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?r:void 0,r;case"error":let i=t.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Kr.batch(()=>{this.observers.slice().forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:t})})}};function cI(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lI(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function IY(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function NY(t){let e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var dI=class extends id{#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#s;#c;#a;#g;#f;#d;#p;#m=new Set;constructor(t,e){super(),this.options=e,this.#e=t,this.#s=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),jY(this.#t,this.options)?this.#b():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return uI(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return uI(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#u(),this.#N(),this.#t.removeObserver(this)}setOptions(t){let e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ar(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#P(),this.#t.setOptions(this.options),e._defaulted&&!Iw(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let r=this.hasListeners();r&&OY(this.#t,n,this.options,e)&&this.#b(),this.updateResult(),r&&(this.#t!==n||Ar(this.options.enabled,this.#t)!==Ar(e.enabled,this.#t)||Ar(this.options.staleTime,this.#t)!==Ar(e.staleTime,this.#t))&&this.#w();let i=this.#$();r&&(this.#t!==n||Ar(this.options.enabled,this.#t)!==Ar(e.enabled,this.#t)||i!==this.#p)&&this.#I(i)}getOptimisticResult(t){let e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return Iw(this.getCurrentResult(),n)||(this.#r=n,this.#o=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(n,r)=>(this.trackProp(r),e?.(r),Reflect.get(n,r))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e),r=()=>{},i,o=new Promise(a=>{i=a,r=this.#e.getQueryCache().subscribe(s=>{s.type==="updated"&&s.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),a(this.createResult(n,e)))})});return Promise.race([n.fetch().then(()=>{let a=this.createResult(n,e);return i?.(a),a}).finally(()=>{r()}),o])}fetch(t){return this.#b({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#b(t){this.#P();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Ni)),e}#C(t){return!Cb()&&Ar(this.options.enabled,this.#t)!==!1&&Tw(t)}#w(){this.#u();let t=Ar(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#C(t))return;let e=Rw(this.#r.dataUpdatedAt,t)+1;this.#f=rd.setTimeout(()=>{this.#r.isStale||this.updateResult()},e)}#$(){return Ar(this.options.refetchInterval,this.#t)??!1}#I(t){this.#N(),this.#p=t,!(this.#p===0||!this.#C(this.#p))&&(this.#d=rd.setInterval(()=>{(this.options.refetchIntervalInBackground||_b.isFocused())&&this.#b()},this.#p))}#E(){this.#w(),this.#I(this.#$())}#u(){this.#f!==void 0&&(rd.clearTimeout(this.#f),this.#f=void 0)}#N(){this.#d!==void 0&&(rd.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){let n=this.#t,r=this.options,i=this.#r,o=this.#i,a=this.#o,s=t!==n?t.state:this.#n,{state:l}=t,c={...l},u=!1,d;if(e._optimisticResults){let v=this.hasListeners(),k=!v&&jY(t,e),_=v&&OY(t,n,e,r);(k||_)&&(c={...c,...cI(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:f}=c;d=c.data;let h=!1;if(e.placeholderData!==void 0&&d===void 0&&f==="pending"){let v;i?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(v=i.data,h=!0):v=typeof e.placeholderData=="function"?e.placeholderData(this.#g?.state.data,this.#g):e.placeholderData,v!==void 0&&(f="success",d=K4(i?.data,v,e),u=!0)}if(e.select&&d!==void 0&&!h)if(i&&d===o?.data&&e.select===this.#c)d=this.#a;else try{this.#c=e.select,d=e.select(d),d=K4(i?.data,d,e),this.#a=d,this.#s=null}catch(v){this.#s=v}else d===void 0&&(this.#s=null);this.#s&&(p=this.#s,d=this.#a,m=Date.now(),f="error",u=!1);let x=c.fetchStatus==="fetching",g=f==="pending",y=f==="error",b=g&&x,w=d!==void 0;return{status:f,fetchStatus:c.fetchStatus,isPending:g,isSuccess:f==="success",isError:y,isInitialLoading:b,isLoading:b,data:d,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>s.dataUpdateCount||c.errorUpdateCount>s.errorUpdateCount,isFetching:x,isRefetching:x&&!g,isLoadingError:y&&!w,isPaused:c.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:y&&w,isStale:pI(t,e),refetch:this.refetch,isEnabled:Ar(e.enabled,t)!==!1}}updateResult(){let t=this.#r,e=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#g=this.#t),Iw(e,t))return;this.#r=e;let r=(()=>{if(!t)return!0;let{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!this.#m.size)return!0;let a=new Set(o??this.#m);return this.options.throwOnError&&a.add("error"),Object.keys(this.#r).some(s=>{let l=s;return this.#r[l]!==t[l]&&a.has(l)})})();Kr.batch(()=>{r&&this.listeners.forEach(i=>{i(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#P(){let t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;let e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}};function F_e(t,e){return Ar(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Ar(e.retryOnMount,t)===!1)}function jY(t,e){return F_e(t,e)||t.state.data!==void 0&&uI(t,e,e.refetchOnMount)}function uI(t,e,n){if(Ar(e.enabled,t)!==!1&&Ar(e.staleTime,t)!=="static"){let r=Ar(n,t);return r==="always"||r!==!1&&pI(t,e)}return!1}function OY(t,e,n,r){return(t!==e||Ar(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&pI(t,n)}function pI(t,e){return Ar(e.enabled,t)!==!1&&t.isStaleByTime(Ar(e.staleTime,t))}var DY=class extends Dw{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||B_e(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){let e=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Ow({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#i({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status==="pending",o=!r.canStart();try{if(i)e();else{this.#i({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);let s=await this.options.onMutate?.(t,n);s!==this.state.context&&this.#i({type:"pending",context:s,variables:t,isPaused:o})}let a=await r.start();return await this.#n.config.onSuccess?.(a,t,this.state.context,this,n),await this.options.onSuccess?.(a,t,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,t,this.state.context,n),this.#i({type:"success",data:a}),a}catch(a){try{await this.#n.config.onError?.(a,t,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onError?.(a,t,this.state.context,n)}catch(s){Promise.reject(s)}try{await this.#n.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n)}catch(s){Promise.reject(s)}try{await this.options.onSettled?.(void 0,a,t,this.state.context,n)}catch(s){Promise.reject(s)}throw this.#i({type:"error",error:a}),a}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(t){let e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Kr.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function B_e(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var FY=class extends id{#e;#t;#n;constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}build(t,e,n){let r=new DY({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);let e=Fw(t);if(typeof e=="string"){let n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){let e=Fw(t);if(typeof e=="string"){let n=this.#t.get(e);if(n)if(n.length>1){let r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=Fw(t);if(typeof e=="string"){let n=this.#t.get(e)?.find(r=>r.state.status==="pending");return!n||n===t}else return!0}runNext(t){let e=Fw(t);return typeof e=="string"?this.#t.get(e)?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Kr.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){let e={exact:!0,...t};return this.getAll().find(n=>$w(e,n))}findAll(t={}){return this.getAll().filter(e=>$w(t,e))}notify(t){Kr.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(e=>e.state.isPaused);return Kr.batch(()=>Promise.all(t.map(e=>e.continue().catch(Ni))))}};function Fw(t){return t.options.scope?.id}var BY=class extends id{#e;constructor(t={}){super(),this.config=t,this.#e=new Map}build(t,e,n){let r=e.queryKey,i=e.queryHash??W4(r,e),o=this.get(i);return o||(o=new PY({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){this.#e.get(t.queryHash)===t&&(t.destroy(),this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Kr.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(n=>Aw(e,n))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(n=>Aw(t,n)):e}notify(t){Kr.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Kr.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Kr.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}};var mI=class{#e;#t;#n;#r;#i;#o;#s;#c;constructor(t={}){this.#e=t.queryCache||new BY,this.#t=t.mutationCache||new FY,this.#n=t.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=_b.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#c=Sb.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#c?.(),this.#c=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),n=this.#e.build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Ar(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>[e,n.data])}setQueryData(t,e,n){let r=this.defaultQueryOptions({queryKey:t}),i=this.#e.get(r.queryHash)?.state.data,o=SY(e,i);if(o!==void 0)return this.#e.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return Kr.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){let e=this.#e;Kr.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){let n=this.#e;return Kr.batch(()=>{let r=n.findAll(t),i=new Set(r);return r.forEach(o=>{o.reset()}),this.refetchQueries({type:"active",predicate:o=>i.has(o)},e)})}cancelQueries(t,e={}){let n={revert:!0,...e},r=Kr.batch(()=>this.#e.findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(Ni).catch(Ni)}invalidateQueries(t,e={}){return Kr.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){let n={...e,cancelRefetch:e.cancelRefetch??!0},r=Kr.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ni)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ni)}async query(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);let n=this.#e.build(this,e),r=n.isStaleByTime(Ar(e.staleTime,n))?await n.fetch(e):n.state.data,i=e.select;return i?i(r):r}fetchQuery(t){let e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);let n=this.#e.build(this,e);return n.isStaleByTime(Ar(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ni).catch(Ni)}infiniteQuery(t){return t._type="infinite",this.query(t)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ni).catch(Ni)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return Sb.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(t0(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#r.values()],n={};return e.forEach(r=>{Of(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){this.#i.set(t0(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#i.values()],n={};return e.forEach(r=>{Of(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=W4(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===kb&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};var Bw=R(Q(),1),zY=Bw.createContext(!1),qY=()=>Bw.useContext(zY),nlt=zY.Provider;var X4=R(Q(),1),z_e=R(ee(),1);function q_e(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var H_e=X4.createContext(q_e()),HY=()=>X4.useContext(H_e);var GY=R(Q(),1);var UY=(t,e,n)=>{let r=n?.state.error&&typeof t.throwOnError=="function"?Pw(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||r)&&(e.isReset()||(t.retryOnMount=!1))},VY=t=>{GY.useEffect(()=>{t.clearReset()},[t])},ZY=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||Pw(n,[t.error,r]));var WY=t=>{if(t.suspense){let n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},KY=(t,e)=>t?.suspense&&e.isPending,XY=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});var Df=R(Q(),1);function YY(t,e,n){let r=qY(),i=HY(),o=Z4(n),a=o.defaultQueryOptions(t),s=o.getQueryCache().get(a.queryHash),l=t.subscribed!==!1;a._optimisticResults=r?"isRestoring":l?"optimistic":void 0,WY(a),UY(a,i,s),VY(i);let[c]=Df.useState(()=>new e(o,a)),u=c.getOptimisticResult(a),d=!r&&l;if(Df.useSyncExternalStore(Df.useCallback(p=>{let m=d?c.subscribe(Kr.batchCalls(p)):Ni;return c.updateResult(),m},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),Df.useEffect(()=>{c.setOptions(a)},[a,c]),KY(a,u))throw XY(a,c,i);if(ZY({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw u.error;return a.notifyOnChangeProps?u:c.trackResult(u)}function fI(t,e){return YY(t,dI,e)}var G_e={isDark:null,pageBackground:"--agent-page-bg",surfaceBackground:"--agent-surface",surfaceElevatedBackground:"--agent-surface-elevated",inputBackground:"--agent-input-bg",border:"--agent-border",borderStrong:"--agent-border-strong",text:"--agent-text",mutedText:"--agent-muted",softText:"--agent-soft",accent:"--agent-accent",accentSoft:"--agent-accent-soft",accentText:"--agent-accent-text",danger:"--agent-danger",warning:"--agent-warning",highlight:"--agent-highlight",highlightText:"--agent-highlight-text",shadow:"--agent-shadow",palette:null,borders:null,motion:null},U_e={hover:"--agent-motion-hover",focus:"--agent-motion-focus",fadeIn:"--agent-motion-in",fadeOut:"--agent-motion-out"};function QY(t){if(typeof document>"u")return;let e=document.documentElement;e.dataset.theme=t.isDark?"dark":"light",V_e(),e.classList.toggle("dark",t.isDark),e.classList.toggle("light",!t.isDark),e.style.colorScheme=t.isDark?"dark":"light",t.borders==="none"?e.dataset.borders="none":delete e.dataset.borders;for(let[n,r]of Object.entries(G_e))if(r){if(t[n]===void 0){e.style.removeProperty(r);continue}e.style.setProperty(r,String(t[n]))}for(let[n,r]of Object.entries(U_e)){let i=t.motion?.[n];typeof i=="number"&&Number.isFinite(i)&&i>=0?e.style.setProperty(r,`${Math.round(i*1e3)}ms`):e.style.removeProperty(r)}for(let n=0;n<16;n+=1){let r=t.palette?.[n];r?e.style.setProperty(`--agent-ansi-${n}`,r):e.style.removeProperty(`--agent-ansi-${n}`)}}function V_e(){if(typeof document>"u")return;let t=document.documentElement;t.dataset.agentOs=Z_e()}function Z_e(){if(typeof navigator>"u")return"unknown";let t=navigator,e=(t.userAgentData?.platform??t.platform??t.userAgent).toLowerCase();return e.includes("win")?"win32":e.includes("mac")||e.includes("darwin")?"darwin":e.includes("linux")?"linux":"unknown"}var hI=["file_path","filePath","notebook_path","notebookPath","absolute_path","path","target_file"],W_e=["patch","patchText","input"],K_e=/^\*\*\* (?:Add|Update|Delete) File: (.+)$/gm,X_e=/^\*\*\* Move to: (.+)$/gm;function gI(t){let e=[],n=i=>{if(typeof i!="string")return;let o=i.trim();o&&o.length<=4096&&!o.includes(` +`)&&!e.includes(o)&&e.push(o)},r=tSe(t.inputSummary);if(r&&Q_e(r,n),!e.length)for(let i of t.locations??[])n(i.path);return!e.length&&t.inputSummary&&!r&&(/^\s*[[{]/.test(t.inputSummary)?J_e(t.inputSummary,n):n(tQ(t.inputSummary.trim()))),e.length||n(eSe(t.title)),e}function eQ(t,e,n){let r=JY(t.title),i=JY(e,t.kind)||"Tool",o=gI(t),a=t.command?.trim();if(t.kind==="execute"&&a)return n(a);if(o.length){let s=Y_e(r||i);return r.includes(o[0])?r:`${s} ${o[0]}`}return r||i}function Y_e(t){return t.trim().split(/\s+/,1)[0]??t.trim()}function JY(t,e){let n=t?.trim()??"";return n&&!n.startsWith("{")&&!n.startsWith("[")?n:e?.trim()??""}function Q_e(t,e){for(let o of hI)e(t[o]);for(let o of W_e)typeof t[o]=="string"&&zw(t[o],e);let n=t.command;if(Array.isArray(n)&&n[0]==="apply_patch")for(let o of n)zw(o,e);else typeof n=="string"&&n.includes("*** Begin Patch")&&zw(n,e);let r=t.changes;if(Array.isArray(r))for(let o of r)o&&typeof o=="object"&&e(o.path);else if(r&&typeof r=="object")for(let o of Object.keys(r))e(o);let i=t.edits;if(Array.isArray(i)){for(let o of i)if(o&&typeof o=="object")for(let a of hI)e(o[a])}}function zw(t,e){if(!(typeof t!="string"||!t.includes("*** "))){for(let n of t.matchAll(K_e))e(n[1]);for(let n of t.matchAll(X_e))e(n[1])}}function J_e(t,e){let n=hI.join("|");for(let r of t.matchAll(new RegExp(`"(?:${n})"\\s*:\\s*"((?:[^"\\\\]|\\\\.)*)"`,"g")))try{e(JSON.parse(`"${r[1]}"`))}catch{}zw(t.replace(/\\n/g,` +`),e)}function eSe(t){return tQ(t.trim().split(/\s+/).slice(1).join(" ").replace(/^`|`$/g,""))}function tQ(t){if(!(!t||/[\n{}"]/.test(t)))return/\//.test(t)||/^[\w.-]+\.[A-Za-z0-9]{1,12}$/.test(t)?t:void 0}function tSe(t){if(t)try{let e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}catch{return}}function Y4(t){if(!/^https?:/i.test(t.trim()))return;let e;try{e=new URL(t)}catch{return}if(!(e.protocol!=="http:"&&e.protocol!=="https:")&&!(e.username||e.password||!e.hostname))return e.href}var nQ=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],bI=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function nSe(t){if(t<=255)return nQ[t];let e=0,n=bI.length-1;for(;e<=n;){let r=e+n>>1,i=bI[r];if(t<i[0]){n=r-1;continue}if(t>i[1]){e=r+1;continue}return i[2]}return"L"}function rSe(t){let e=t.length;if(e===0)return null;let n=new Array(e),r=!1,i=0,o=null;for(let a=0;a<e;){let s=t.charCodeAt(a),l=s,c=1;if(s>=55296&&s<=56319&&a+1<e){let d=t.charCodeAt(a+1);d>=56320&&d<=57343&&(l=(s-55296<<10)+(d-56320)+65536,c=2)}let u=nSe(l);(u==="R"||u==="AL"||u==="AN")&&(r=!0);for(let d=0;d<c;d++)n[a+d]=u;u==="B"&&(r&&(o??=new Int8Array(e),o[a]=rQ(n,o,i,a)),i=a+c,r=!1),a+=c}return r&&(o??=new Int8Array(e),rQ(n,o,i,e)),o}function rQ(t,e,n,r){let i=0;for(let l=n;l<r;l++){let c=t[l];if(c==="L"){i=0;break}if(c==="R"||c==="AL"){i=1;break}}let o=i&1?"R":"L",a=o,s=a;for(let l=n;l<r;l++)t[l]==="NSM"?t[l]=s:s=t[l];s=a;for(let l=n;l<r;l++){let c=t[l];c==="EN"?t[l]=s==="AL"?"AN":"EN":(c==="R"||c==="L"||c==="AL")&&(s=c)}for(let l=n;l<r;l++)t[l]==="AL"&&(t[l]="R");for(let l=n+1;l<r-1;l++)t[l]==="ES"&&t[l-1]==="EN"&&t[l+1]==="EN"&&(t[l]="EN"),t[l]==="CS"&&(t[l-1]==="EN"||t[l-1]==="AN")&&t[l+1]===t[l-1]&&(t[l]=t[l-1]);for(let l=n;l<r;l++){if(t[l]!=="EN")continue;let c;for(c=l-1;c>=n&&t[c]==="ET";c--)t[c]="EN";for(c=l+1;c<r&&t[c]==="ET";c++)t[c]="EN"}for(let l=n;l<r;l++){let c=t[l];(c==="WS"||c==="ES"||c==="ET"||c==="CS")&&(t[l]="ON")}s=a;for(let l=n;l<r;l++){let c=t[l];c==="EN"?t[l]=s==="L"?"L":"EN":(c==="R"||c==="L")&&(s=c)}for(let l=n;l<r;l++){if(t[l]!=="ON")continue;let c=l+1;for(;c<r&&t[c]==="ON";)c++;let u=l>n?t[l-1]:a,d=c<r?t[c]:a,p=u!=="L"?"R":"L";if(p===(d!=="L"?"R":"L"))for(let f=l;f<c;f++)t[f]=p;l=c-1}for(let l=n;l<r;l++)t[l]==="ON"&&(t[l]=o);for(let l=n;l<r;l++){let c=t[l],u=i;(i&1)===0?c==="R"?u++:(c==="AN"||c==="EN")&&(u+=2):(c==="L"||c==="AN"||c==="EN")&&u++,e[l]=u}return i}function iQ(t,e){let n=rSe(t);if(n===null)return null;let r=new Int8Array(e.length);for(let i=0;i<e.length;i++)r[i]=n[e[i]];return r}var iSe=/[ \t\n\r\f]+/g,oSe=/[\t\n\r\f]| {2,}|^ | $/;function aSe(t){if(!oSe.test(t))return t;let e=t.replace(iSe," ");return e.charCodeAt(0)===32&&(e=e.slice(1)),e.length>0&&e.charCodeAt(e.length-1)===32&&(e=e.slice(0,-1)),e}function sSe(t){return/[\r\f]/.test(t)?t.replace(/\r\n/g,` `).replace(/[\r\f]/g,` -`):t}var hI=null;function Ff(){return hI===null&&(hI=new Intl.Segmenter(void 0,{granularity:"grapheme"})),hI}var gI=null,lSe;function cSe(){return gI===null&&(gI=new Intl.Segmenter(lSe,{granularity:"word"})),gI}var uSe=/\p{Script=Arabic}/u,Tp=/\p{M}/u,Q4=/\p{Nd}/u;function oQ(t){return uSe.test(t)}var dSe=/[\u3000-\u30FF\u3130-\u318F\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF\u{20000}-\u{2A6DF}\u{2A700}-\u{2EE5D}\u{2F800}-\u{2FA1F}\u{30000}-\u{33479}]/u;function Ps(t){return dSe.test(t)}function pSe(t){let e=J4(t);return e!==null&&(wI.has(e)||e0.has(e))}var mSe=new Set(["\xA0","\u202F","\u2060","\uFEFF"]),fSe=new Set(["-","\u2010","\u2013","\u2014"]);function hSe(t){let e=J4(t);return e!==null&&mSe.has(e)}function gSe(t){let e=J4(t);return e!==null&&fSe.has(e)}function dQ(t,e){return hSe(t)?!1:e?!(pSe(t)||gSe(t)):!0}var wI=new Set(["\uFF0C","\uFF0E","\uFF01","\uFF1A","\uFF1B","\uFF1F","\u3001","\u3002","\u30FB","\uFF09","\u3015","\u3009","\u300B","\u300D","\u300F","\u3011","\u3017","\u3019","\u301B","\u30FC","\u3005","\u303B","\u309D","\u309E","\u30FD","\u30FE"]),Hw=new Set(['"',"(","[","{","\xA1","\xBF","\u201C","\u2018","\u201A","\u201E","\xAB","\u2039","\u2E18","\uFF08","\u3014","\u3008","\u300A","\u300C","\u300E","\u3010","\u3016","\u3018","\u301A"]),vI=new Set(["'","\u2019"]),e0=new Set([".",",","!","?",":",";","\u060C","\u061B","\u061F","\u0964","\u0965","\u104A","\u104B","\u104C","\u104D","\u104F",")","]","}","%",'"',"\u201D","\u2019","\xBB","\u203A","\u2026"]),bSe=new Set([":",".","\u060C","\u061B"]),ySe=new Set(["\u104F"]),xSe=new Set(["\u201D","\u2019","\xBB","\u203A","\u300D","\u300F","\u3011","\u300B","\u3009","\u3015","\uFF09"]);function wSe(t){if(kI(t))return!0;let e=!1;for(let n of t){if(e0.has(n)||t0(n)){e=!0;continue}if(!(e&&Tp.test(n)))return!1}return e}function vSe(t){for(let e of t)if(!wI.has(e)&&!e0.has(e))return!1;return t.length>0}function kSe(t){if(kI(t))return!0;for(let e of t)if(!Hw.has(e)&&!vI.has(e)&&!Tp.test(e)&&!t0(e))return!1;return t.length>0}function kI(t){let e=!1;for(let n of t)if(!(n==="\\"||Tp.test(n))){if(Hw.has(n)||e0.has(n)||vI.has(n)){e=!0;continue}return!1}return e}function Sb(t,e){let n=e-1;if(n<=0)return Math.max(n,0);let r=t.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let o=t.charCodeAt(i);return o>=55296&&o<=56319?i:n}function J4(t){if(t.length===0)return null;let e=Sb(t,t.length);return t.slice(e)}function CSe(t){for(let e of t)if(!Tp.test(e))return e;return null}function CI(t,e=t.length){for(;e>0;){let n=Sb(t,e),r=t.slice(n,e);if(!Tp.test(r))return r;e=n}return null}var _Se=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function SSe(t,e){for(let n=0;n<e.length;n+=2)if(t>=e[n]&&t<=e[n+1])return!0;return!1}function t0(t){let e=t.codePointAt(0);return e!==void 0&&SSe(e,_Se)}function LSe(t){let e=CI(t);return e!==null&&t0(e)}function MSe(t){let e=CSe(t);return e!==null&&Q4.test(e)}function ESe(t){let e=t.length;for(;e>0;){let n=Sb(t,e),r=t.slice(n,e);if(Tp.test(r)||Hw.has(r)||vI.has(r)){e=n;continue}break}return e<=0||e===t.length?null:{head:t.slice(0,e),tail:t.slice(e)}}function TSe(t,e,n){return n==="text"&&!e&&t.length===1&&t!=="-"&&t!=="\u2014"?t:null}function aQ(t,e){return t&&e!==null&&bSe.has(e)}function RSe(t){let e=J4(t);return e!==null&&ySe.has(e)}function ASe(t){if(t.length<2||t[0]!==" ")return null;let e=t.slice(1);return/^\p{M}+$/u.test(e)?{space:" ",marks:e}:null}function yI(t){let e=t.length;for(;e>0;){let n=Sb(t,e),r=t.slice(n,e);if(xSe.has(r))return!0;if(!e0.has(r))return!1;e=n}return!1}function $Se(t,e){if(e==="pre-wrap"){if(t===" ")return"preserved-space";if(t===" ")return"tab";if(t===` -`)return"hard-break"}return t===" "?"space":t==="\xA0"||t==="\u202F"||t==="\u2060"||t==="\uFEFF"?"glue":t==="\u200B"?"zero-width-break":t==="\xAD"?"soft-hyphen":"text"}var ISe=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function Df(t){return t.length===1?t[0]:t.join("")}function sQ(t,e){let n=[];for(let r=t.length-1;r>=0;r--)n.push(t[r]);return n.push(e),Df(n)}function NSe(t,e,n,r){if(!ISe.test(t))return[{text:t,isWordLike:e,kind:"text",start:n}];let i=[],o=null,a=0,s=!1,l=0;for(let c of t){let u=$Se(c,r),d=u==="text"&&e;if(o!==null&&u===o&&d===s){l+=c.length;continue}o!==null&&i.push({text:t.slice(a,l),isWordLike:s,kind:o,start:n+a}),o=u,a=l,s=d,l+=c.length}return o!==null&&i.push({text:t.slice(a),isWordLike:s,kind:o,start:n+a}),i}function bI(t){return t==="space"||t==="preserved-space"||t==="zero-width-break"||t==="hard-break"}var PSe=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function lQ(t,e){let n=t.texts[e];return n.startsWith("www.")?!0:PSe.test(n)&&e+1<t.len&&t.kinds[e+1]==="text"&&t.texts[e+1]==="//"}function jSe(t){return t.includes("?")&&(t.includes("://")||t.startsWith("www."))}function OSe(t,e,n){let r=[],i=[],o=[],a=[];for(let s=0;s<t.len;s++){let l=t.starts[s],c=t.texts[s],u=t.isWordLike[s],d=t.kinds[s],p=-1;if(d==="text"&&lQ(t,s)){let g=[c],y=s+1;for(;y<t.len&&!bI(t.kinds[y])&&Ep(e,t.starts[y],n)!==!1;){p<0&&lQ(t,y)&&(p=t.starts[y]);let b=t.texts[y];if(g.push(b),u=!0,y++,b.includes("?"))break}c=Df(g),s=y-1}if(r.push(c),i.push(u),o.push(d),a.push(l),!jSe(c))continue;let m=s+1;if(m>=t.len||bI(t.kinds[m]))continue;let f=[],h=p<0?t.starts[m]:p,x=m;for(;x<t.len&&!bI(t.kinds[x])&&Ep(e,t.starts[x],n)!==!1;)f.push(t.texts[x]),x++;f.length>0&&(r.push(Df(f)),i.push(!0),o.push("text"),a.push(h),s=x-1)}return{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}var DSe=new Set([":","-","/","\xD7",",",".","+","\u2013","\u2014"]),FSe=/[\p{P}\p{S}\p{Co}]/u,pQ=/\p{Emoji_Presentation}/u,BSe=new Set(["?","\u058A","-","\u2010","\u2012","\u2013","\u2014","\u2026","\u203C","\u203D","\u2049"]);function zSe(t){return t>=33&&t<=47&&t!==45||t>=58&&t<=64&&t!==63||t>=91&&t<=96||t>=123&&t<=126}function mQ(t){let e=t.charCodeAt(0);return e<128?zSe(e):!BSe.has(t)&&!pQ.test(t)&&FSe.test(t)}function cQ(t){let e=!1;for(let n of t)if(!Tp.test(n)){if(!mQ(n))return!1;e=!0}return e}function qSe(t){for(let e=t.length;e>0;){let n=Sb(t,e),r=t.slice(n,e);if(Tp.test(r)){e=n;continue}return mQ(r)||t0(r)}return!1}var xI=/[A-Za-z#&*<=>@^_`~]/;function fQ(t,e){return t.charCodeAt(0)<128&&e.charCodeAt(0)<128}function Ep(t,e,n){if(!n.geckoAsciiLineBreaks||e<=0||e>=t.length)return null;let r=CI(t,e),i=String.fromCodePoint(t.codePointAt(e));if(r===null||!fQ(r,i))return null;let o=t0(r),a=t0(i);return!o&&!a?null:!!(i===")"||i==="]"||i==="}"||"!,.:;?/".includes(i)||"([{".includes(r)||r==='"'||r==="'"||i==='"'||i==="'"||i==="|"||i==="-"||o&&xI.test(i)||xI.test(r)&&a||a&&(")]}".includes(r)||/[0-9]/.test(r))||o&&("([{".includes(i)||/[0-9]/.test(i)))}function qw(t,e,n,r=t.length){let i=e[0];if(i===void 0||!"([{".includes(i))return null;let o=CI(t,r);return o===null?null:n.geckoAsciiLineBreaks&&fQ(o,i)?xI.test(o)||Q4.test(o)||`"'([{`.includes(o)||t0(o):o.charCodeAt(0)>=128?!Ps(o)&&/[\p{L}\p{N}]/u.test(o)?!0:null:/[A-Za-z0-9]/.test(o)||"$'(/<@[^_`{".includes(o)}function HSe(t,e,n,r,i){if(n[0]==="-"&&Ps(t))return!0;if(Ps(t)||Ps(n))return!1;let o=qw(t,n,i);if(o!==null)return o;let a=!e&&cQ(t),s=!r&&cQ(n),l=LSe(t),c=(e||l)&&qSe(t);return!a&&!s&&!c?!1:(e||a||l)&&(r||s)}function uQ(t){for(let e of t)if(Q4.test(e))return!0;return!1}function Y4(t){if(t.length===0)return!1;for(let e of t)if(!(Q4.test(e)||DSe.has(e)))return!1;return!0}function GSe(t,e,n){let r=[],i=[],o=[],a=[];function s(l,c){if(l.includes("-")){let u=l.split("-"),d=u.length>1;for(let p=0;p<u.length;p++){let m=u[p];if(!d)break;(m.length===0||!uQ(m)||!Y4(m))&&(d=!1)}if(d){let p=0;for(let m=0;m<u.length;m++){let f=u[m],h=m<u.length-1?`${f}-`:f;r.push(h),i.push(!0),o.push("text"),a.push(c+p),p+=h.length}return}}r.push(l),i.push(!0),o.push("text"),a.push(c)}for(let l=0;l<t.len;l++){let c=t.texts[l],u=t.kinds[l];if(u==="text"&&Y4(c)&&uQ(c)){let d=[c],p=l+1;for(;p<t.len&&t.kinds[p]==="text"&&Y4(t.texts[p])&&Ep(e,t.starts[p],n)!==!1;)d.push(t.texts[p]),p++;s(Df(d),t.starts[l]),l=p-1;continue}r.push(c),i.push(t.isWordLike[l]),o.push(u),a.push(t.starts[l])}return{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}function USe(t,e,n){let r=[],i=[],o=[],a=[],s=0;for(;s<t.len;){let l=t.texts[s],c=t.kinds[s],u=t.isWordLike[s];if(c==="text"){let d=[l],p=s+1,m=u;for(;p<t.len&&t.kinds[p]==="text"&&(Ep(e,t.starts[p],n)??HSe(t.texts[p-1],t.isWordLike[p-1],t.texts[p],t.isWordLike[p],n));){let f=t.texts[p];d.push(f),m=m||t.isWordLike[p],p++}if(p>s+1){r.push(Df(d)),i.push(m),o.push("text"),a.push(t.starts[s]),s=p;continue}}r.push(l),i.push(u),o.push(c),a.push(t.starts[s]),s++}return{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}function VSe(t){let e=[],n=[],r=[],i=[],o=0;for(;o<t.len;){let a=[t.texts[o]],s=t.isWordLike[o],l=t.kinds[o],c=t.starts[o];if(l==="glue"){let u=[a[0]],d=c;for(o++;o<t.len&&t.kinds[o]==="glue";)u.push(t.texts[o]),o++;let p=Df(u);if(o<t.len&&t.kinds[o]==="text")a[0]=p,a.push(t.texts[o]),s=t.isWordLike[o],l="text",c=d,o++;else{e.push(p),n.push(!1),r.push("glue"),i.push(d);continue}}else o++;if(l==="text")for(;o<t.len&&t.kinds[o]==="glue";){let u=[];for(;o<t.len&&t.kinds[o]==="glue";)u.push(t.texts[o]),o++;let d=Df(u);if(o<t.len&&t.kinds[o]==="text"){a.push(d,t.texts[o]),s=s||t.isWordLike[o],o++;continue}a.push(d)}e.push(Df(a)),n.push(s),r.push(l),i.push(c)}return{len:e.length,texts:e,isWordLike:n,kinds:r,starts:i}}function ZSe(t){let{texts:e,kinds:n,starts:r}=t;for(let i=0;i<e.length-1;i++){if(n[i]!=="text"||n[i+1]!=="text"||!Ps(e[i])||!Ps(e[i+1]))continue;let o=ESe(e[i]);o!==null&&(e[i]=o.head,e[i+1]=o.tail+e[i+1],r[i+1]=r[i]+o.head.length)}}function WSe(t,e,n){let r=cSe(),i=0,o=[],a=[],s=[],l=[],c=!1,u=0,d=0,p=!1,m="text",f=null,h=!1,x=!1,g=!1,y=!1,b=!1;for(let S of r.segment(t))for(let C of NSe(S.segment,S.isWordLike??!1,S.index,n)){let T=C.kind==="text",M=TSe(C.text,C.isWordLike,C.kind),A=Ps(C.text),$=oQ(C.text),N=J4(C.text),F=yI(C.text),D=RSe(C.text),O=C.start+C.text.length,B=Ep(t,C.start,e)??(h||A?null:qw(t,C.text,e,C.start)),P=!1;if(e.carryCJKAfterClosingQuote&&T&&c&&m==="text"&&A&&h&&g)P=!0;else if(T&&c&&m==="text"&&vSe(C.text)&&h)P=!0;else if(T&&c&&m==="text"&&y)P=!0;else if(T&&c&&m==="text"&&C.isWordLike&&$&&b)P=!0;else if(M!==null&&c&&m==="text"&&f===M&&B!==!1){d=O;continue}else T&&!C.isWordLike&&c&&m==="text"&&!h&&(wSe(C.text)||C.text==="-"&&p)&&(P=!0);T&&c&&m==="text"&&B!==null&&(P=B),P?(d=O,p=p||C.isWordLike,f=null,h=h||A,x=x||$,g=F,y=D,b=aQ(x,N)):(c&&(o[i]=t.slice(u,d),a[i]=p,s[i]=m,l[i]=u,i++),c=!0,u=C.start,d=O,p=C.isWordLike,m=C.kind,f=M,h=A,x=$,g=F,y=D,b=aQ($,N))}c&&(o[i]=t.slice(u,d),a[i]=p,s[i]=m,l[i]=u,i++);for(let S=1;S<i;S++)s[S]==="text"&&!a[S]&&kI(o[S])&&s[S-1]==="text"&&!Ps(o[S-1])&&(Ep(t,l[S],e)??qw(t,o[S],e,l[S]))!==!1&&(o[S-1]+=o[S],a[S-1]=a[S-1]||a[S],o[S]="");let w=-1,v=null;for(let S=i-1;S>=0;S--){let C=o[S];if(C.length===0)continue;let T=v?.at(-1)??(w>=0?o[w]:null);if(s[S]==="text"&&!a[S]&&T!==null&&s[w]==="text"&&((Ep(t,l[S]+C.length,e)??(kSe(C)&&qw(C,T,e)!==!1))||C==="-"&&MSe(T))){v===null&&(v=[]),v.push(C),l[w]=l[S],o[S]="";continue}v!==null&&(o[w]=sQ(v,o[w]),v=null),w=S}v!==null&&(o[w]=sQ(v,o[w]));let k=0;for(let S=0;S<i;S++){let C=o[S];C.length!==0&&(k!==S&&(o[k]=C,a[k]=a[S],s[k]=s[S],l[k]=l[S]),k++)}o.length=k,a.length=k,s.length=k,l.length=k;let _=VSe({len:k,texts:o,isWordLike:a,kinds:s,starts:l}),L=USe(GSe(OSe(_,t,e),t,e),t,e);ZSe(L);for(let S=0;S<L.len-1;S++){let C=ASe(L.texts[S]);C!==null&&(L.kinds[S]!=="space"&&L.kinds[S]!=="preserved-space"||L.kinds[S+1]!=="text"||!oQ(L.texts[S+1])||(L.texts[S]=C.space,L.isWordLike[S]=!1,L.kinds[S]=L.kinds[S]==="preserved-space"?"preserved-space":"space",L.texts[S+1]=C.marks+L.texts[S+1],L.starts[S+1]=L.starts[S]+C.space.length))}return L}function KSe(t,e,n){if(e.len<=1)return e;let r=[],i=[],o=[],a=[],s=-1,l=!1;function c(p){r.push(e.texts[p]),i.push(e.isWordLike[p]),o.push("text"),a.push(e.starts[p])}function u(p,m){let f=!1;for(let g=p;g<m;g++)f=f||e.isWordLike[g];let h=e.starts[p],x=m<e.len?e.starts[m]:t.length;r.push(t.slice(h,x)),i.push(f),o.push("text"),a.push(h)}function d(p){if(!(s<0)){if(l)s+1===p?c(s):u(s,p);else for(let m=s;m<p;m++)c(m);s=-1,l=!1}}for(let p=0;p<e.len;p++){let m=e.texts[p],f=e.kinds[p];if(f==="text"){s>=0&&(!dQ(e.texts[p-1],n.breakKeepAllAfterPunctuation)||Ep(t,e.starts[p],n)===!1)&&d(p),s<0&&(s=p),l=l||Ps(m);continue}d(p),r.push(m),i.push(e.isWordLike[p]),o.push(f),a.push(e.starts[p])}return d(e.len),{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}function hQ(t,e){let n=t.charCodeAt(e+1);if(n<128){if(n<48||n>57)return!1}else{let r=t.codePointAt(e+1);if(r===void 0||!Q4.test(String.fromCodePoint(r)))return!1}for(let r=e;r>0;){let i=Sb(t,r),o=t.slice(i,r);if(!Tp.test(o))return Ps(o)||!/[\p{L}\p{N}]/u.test(o);r=i}return!0}function XSe(t,e){let n=[],r=0,i=0,o=!1,a=!1,s=!1,l=!1,c=!1;function u(){i!==r&&(n.push({text:t.slice(r,i),start:r,overflow:o?l?"grapheme":"none":"word-like"}),r=i,o=!1,a=!1,s=!1,l=!1,c=!1)}function d(m,f,h){r=f,i=f+m.length,o=h,l=m==="-",a=yI(m),s=Hw.has(m)}function p(m,f){i+=m.length,o=o||f,l=l||m==="-";let h=yI(m);m.length===1&&e0.has(m)?a=a||h:a=h,s=!1}for(let m of Ff().segment(t)){let f=m.segment,h=Ps(f);if(i===r){d(f,m.index,h);continue}let x=f==="-"&&o;if(x&&hQ(t,m.index)&&(c=!0),s||wI.has(f)||e0.has(f)||x||c&&!h||e.carryCJKAfterClosingQuote&&h&&a){p(f,h);continue}if(!o&&!h){p(f,h);continue}u(),d(f,m.index,h)}return u(),n}function YSe(t,e,n){if(e.length<=1)return e;let r=[],i=-1,o=!1;function a(l,c){let u=e[l].start,d=c<e.length?e[c].start:t.length;r.push({text:t.slice(u,d),start:u,overflow:"word-like"})}function s(l){if(!(i<0)){if(o)i+1===l?r.push(e[i]):a(i,l);else for(let c=i;c<l;c++)r.push(e[c]);i=-1,o=!1}}for(let l=0;l<e.length;l++){let c=e[l];i>=0&&(!dQ(e[l-1].text,n.breakKeepAllAfterPunctuation)||Ep(t,c.start,n)===!1)&&s(l),i<0&&(i=l),o=o||Ps(c.text)}return s(e.length),r}function gQ(t,e,n){let r=XSe(t,e);return n==="keep-all"?YSe(t,r,e):r}function QSe(t){return t==="-"||t==="\u058A"||t==="\u2010"||t==="\u2012"||t==="\u2013"||t==="\u2014"}function bQ(t){if(t.length===0||/\p{Cf}/u.test(t))return!1;for(let{segment:e}of Ff().segment(t)){let n=String.fromCodePoint(e.codePointAt(0));if(!/[\p{P}\p{S}]/u.test(n)||pQ.test(n)||e.includes("\uFE0F")||/\p{Emoji_Modifier}/u.test(n))return!1}return!0}function yQ(t){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(t))return null;let e=[],n=0;for(let r of Ff().segment(t)){n++;let i=r.segment==="-"&&hQ(t,r.index);QSe(r.segment)&&!i&&e.push(n)}return e.length===0?null:e}function xQ(t,e,n="normal",r="normal"){let i=n==="pre-wrap"?sSe(t):aSe(t);if(i.length===0)return{normalized:i,len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=WSe(i,e,n),a=r==="keep-all"?KSe(i,o,e):o;return{normalized:i,...a}}var Lb=null,wQ=new Map,Mb=null,JSe=96,eLe=/\p{Emoji_Presentation}/u,tLe=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,vQ=new Map;function _I(){if(Lb!==null)return Lb;if(typeof OffscreenCanvas<"u")return Lb=new OffscreenCanvas(1,1).getContext("2d"),Lb;if(typeof document<"u")return Lb=document.createElement("canvas").getContext("2d"),Lb;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function nLe(t){let e=wQ.get(t);return e||(e=new Map,wQ.set(t,e)),e}function Rp(t,e){let n=e.get(t);return n===void 0&&(n={width:_I().measureText(t).width},e.set(t,n)),n}function Eb(){if(Mb!==null)return Mb;if(typeof navigator>"u")return Mb={geckoAsciiLineBreaks:!1,lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1},Mb;let t=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&t.includes("Safari/")&&!t.includes("Chrome/")&&!t.includes("Chromium/")&&!t.includes("CriOS/")&&!t.includes("FxiOS/")&&!t.includes("EdgiOS/"),r=t.includes("Chrome/")||t.includes("Chromium/")||t.includes("CriOS/")||t.includes("Edg/");return Mb={geckoAsciiLineBreaks:t.includes("Firefox/")&&!t.includes("FxiOS/"),lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,breakKeepAllAfterPunctuation:!n,preferPrefixWidthsForBreakableRuns:n},Mb}function rLe(t){let e=t.match(/(?:^|\D)(\d+(?:\.\d+)?)\s*px/);return e?parseFloat(e[1]):16}function iLe(t){return eLe.test(t)||t.includes("\uFE0F")}function kQ(t){return tLe.test(t)}function oLe(t){let e=vQ.get(t);if(e!==void 0)return e;let n=rLe(t),r=_I();r.font=t;let i=r.measureText("\u{1F600}").width;if(e=0,i>n+.5&&typeof document<"u"&&document.body!==null){let o=document.createElement("span");o.style.font=t,o.style.display="inline-block",o.style.visibility="hidden",o.style.position="absolute",o.textContent="\u{1F600}",document.body.appendChild(o);let a=o.getBoundingClientRect().width;document.body.removeChild(o),i-a>.5&&(e=i-a)}return vQ.set(t,e),e}function aLe(t){let e=0,n=Ff();for(let r of n.segment(t))iLe(r.segment)&&e++;return e}function sLe(t,e){return e.emojiCount===void 0&&(e.emojiCount=aLe(t)),e.emojiCount}function Bf(t,e,n){return n===0?e.width:e.width-sLe(t,e)*n}function CQ(t,e,n,r,i){if(e.breakableFitAdvances!==void 0&&e.breakableFitMode===i)return e.breakableFitAdvances;e.breakableFitMode=i;let o=Ff(),a=[];for(let u of o.segment(t))a.push(u.segment);if(a.length<=1)return e.breakableFitAdvances=null,e.breakableFitAdvances;if(i==="sum-graphemes"){let u=[];for(let d of a){let p=Rp(d,n);u.push(Bf(d,p,r))}return e.breakableFitAdvances=u,e.breakableFitAdvances}if(i==="pair-context"||a.length>JSe){let u=[],d=null,p=0;for(let m of a){let f=Rp(m,n),h=Bf(m,f,r);if(d===null)u.push(h);else{let x=d+m,g=Rp(x,n);u.push(Bf(x,g,r)-p)}d=m,p=h}return e.breakableFitAdvances=u,e.breakableFitAdvances}let s=[],l="",c=0;for(let u of a){l+=u;let d=Rp(l,n),p=Bf(l,d,r);s.push(p-c),c=p}return e.breakableFitAdvances=s,e.breakableFitAdvances}function _Q(t,e){let n=_I();n.font=t;let r=nLe(t),i=e?oLe(t):0;return{cache:r,emojiCorrection:i}}function lLe(t,e,n){return n===0&&e>0&&e<t.length&&t[e-1]==="soft-hyphen"}function cLe(t){return t==="space"||t==="zero-width-break"||t==="soft-hyphen"}function MQ(t){return t==="space"||t==="preserved-space"||t==="tab"||t==="zero-width-break"||t==="soft-hyphen"}function EQ(t,e,n=t.widths.length){for(;e<n;){let r=t.kinds[e];if(!cLe(r))break;e++}return e}function uLe(t,e){if(e<=0)return 0;let n=t%e;return Math.abs(n)<=1e-6?e:e-n}function dLe(t,e,n){return t.letterSpacing!==0&&e&&t.spacingGraphemeCounts[n]>0?t.letterSpacing:0}function LI(t,e){return e===0?0:t+e}function pLe(t,e){return t.letterSpacing!==0&&t.spacingGraphemeCounts[e]>0?t.letterSpacing:0}function mLe(t,e,n,r,i){let o=e==="tab"?i+pLe(t,n):t.lineEndFitAdvances[n];return LI(r,o)}function SQ(t,e,n,r){let i=e==="tab"?0:t.lineEndFitAdvances[n];return LI(r,i)}function LQ(t,e,n,r,i){let o=e==="tab"?i:t.lineEndPaintAdvances[n];return LI(r,o)}function fLe(t,e,n){return t.letterSpacing!==0&&e?n+t.letterSpacing:n}function hLe(t,e){return t.letterSpacing===0?e:e+t.letterSpacing}function SI(t,e,n){let r=e;if(r>=t.length||t[r]>=n)return r;let i=t.length;for(r++;r<i;){let o=Math.floor((r+i)/2);t[o]<n?r=o+1:i=o}return r}function gLe(t,e,n,r,i){if(t.letterSpacing===0)return 0;if(i>0)return t.spacingGraphemeCounts[r]>0?t.letterSpacing:0;if(lLe(t.kinds,r,i))return 0;for(let o=r-1;o>=e;o--){let a=t.kinds[o];if(!(a==="space"||a==="zero-width-break"||a==="hard-break"||a==="soft-hyphen"))return o===e&&n>0||t.spacingGraphemeCounts[o]>0?t.letterSpacing:0}return 0}function bLe(t,e,n,r,i,o){return e+gLe(t,n,r,i,o)}function yLe(t,e){let n=0,r=t.chunks.length;for(;n<r;){let i=Math.floor((n+r)/2);e<t.chunks[i].consumedEndSegmentIndex?r=i:n=i+1}return n<t.chunks.length?n:-1}function TQ(t,e,n){let r=n.segmentIndex;if(n.graphemeIndex>0)return e;for(let i=e;i<t.chunks.length;i++){let o=t.chunks[i];if(o.startSegmentIndex===o.endSegmentIndex&&r===o.startSegmentIndex||(r<o.startSegmentIndex&&(r=o.startSegmentIndex),r=EQ(t,r,o.endSegmentIndex),r<o.endSegmentIndex))return n.segmentIndex=r,n.graphemeIndex=0,i;if(o.consumedEndSegmentIndex>=t.widths.length)return-1;r=o.consumedEndSegmentIndex,n.segmentIndex=r,n.graphemeIndex=0}return-1}function RQ(t,e){if(e.segmentIndex>=t.widths.length)return-1;let n=yLe(t,e.segmentIndex);return n<0?-1:TQ(t,n,e)}function xLe(t,e,n){if(n.segmentIndex>=t.widths.length)return-1;let r=e;for(;r<t.chunks.length&&n.segmentIndex>=t.chunks[r].consumedEndSegmentIndex;)r++;return r>=t.chunks.length?-1:TQ(t,r,n)}function AQ(t,e){return $Q(t,e)}function wLe(t,e,n){let{widths:r,kinds:i,breakableFitAdvances:o,breakablePreferredBreaks:a}=t;if(r.length===0)return 0;let l=Eb().lineFitEpsilon,c=e+l,u=0,d=0,p=!1,m=0,f=0,h=0,x=0,g=-1,y=0;function b(){g=-1,y=0}function w(C=h,T=x,M=d){u++,n?.(M,m,f,C,T),d=0,p=!1,b()}function v(C,T){p=!0,m=C,f=0,h=C+1,x=0,d=T}function k(C,T,M){p=!0,m=C,f=T,h=C,x=T+1,d=M}function _(C,T){if(!p){v(C,T);return}d+=T,h=C+1,x=0}function L(C,T){let M=o[C],A=a[C]??null,$=A===null?-1:SI(A,0,T+1),N=-1,F=0,D=T;for(;D<M.length;){let O=M[D];if(!p)k(C,D,O);else if(d+O>c){if(A!==null&&N>T){w(C,N,F),D=N,$=SI(A,$,D+1),N=-1,F=0;continue}w(),k(C,D,O)}else d+=O,h=C,x=D+1;let B=D+1;A!==null&&A[$]===B&&(N=B,F=d,$++),D++}p&&h===C&&x===M.length&&(h=C+1,x=0)}let S=0;for(;S<r.length&&!(!p&&(S=EQ(t,S),S>=r.length));){let C=r[S],T=i[S],M=MQ(T);if(!p){C>c&&o[S]!==null?L(S,0):v(S,C),M&&(g=S+1,y=d-C),S++;continue}if(d+C>c){if(M){_(S,C),w(S+1,0,d-C),S++;continue}if(g>=0){if(h>g||h===g&&x>0){w();continue}w(g,0,y);continue}if(C>c&&o[S]!==null){w(),L(S,0),S++;continue}w();continue}_(S,C),M&&(g=S+1,y=d-C),S++}return p&&w(),u}function $Q(t,e,n){if(t.simpleLineWalkFastPath)return wLe(t,e,n);let r={segmentIndex:0,graphemeIndex:0},i=RQ(t,r);return vLe(t,r,i,e,n).lineCount}function vLe(t,e,n,r,i,o=Number.POSITIVE_INFINITY){let{widths:a,kinds:s,breakableFitAdvances:l,breakablePreferredBreaks:c,discretionaryHyphenWidth:u}=t,p=Eb().lineFitEpsilon,m=r+p,f,h,x,g,y,b,w,v,k,_;function L(){return _==="soft-hyphen"&&w===y&&b===0?k:x}function S(D=y,O=b,B=L()){return g?(e.segmentIndex=D,e.graphemeIndex=O,bLe(t,B,f,h,D,O)):null}function C(D,O){g=!0,y=D+1,b=0,x=O}function T(D,O,B){g=!0,y=D,b=O+1,x=B}function M(D,O){if(!g){C(D,O);return}x+=O,y=D+1,b=0}function A(D,O,B,P,U,G){if(!O)return;let j=SQ(t,D,B,U),V=LQ(t,D,B,U,P);w=B+1,v=x-G+j,k=x-G+V,_=D}function $(D,O){let B=l[D],P=c[D]??null,U=P===null?-1:SI(P,0,O+1),G=-1,j=0;for(let V=O;V<B.length;V++){let H=B[V];if(!g)T(D,V,H);else{let J=fLe(t,!0,H),W=x+J;if(hLe(t,W)>m)return P!==null&&G>O?S(D,G,j):S();x=W,y=D,b=V+1}let ne=V+1;P!==null&&P[U]===ne&&(G=ne,j=x,U++)}return g&&y===D&&b===B.length&&(y=D+1,b=0),null}let N=0,F=null;for(;n>=0&&N<o;){f=e.segmentIndex,h=e.graphemeIndex,x=0,g=!1,y=e.segmentIndex,b=e.graphemeIndex,w=-1,v=0,k=0,_=null;let D=t.chunks[n],O=null;if(D.startSegmentIndex===D.endSegmentIndex)e.segmentIndex=D.consumedEndSegmentIndex,e.graphemeIndex=0,O=0;else{e:for(let B=e.segmentIndex;B<D.endSegmentIndex;B++){let P=s[B],U=MQ(P),G=B===e.segmentIndex?e.graphemeIndex:0,j=dLe(t,g,B),V=P==="tab"?uLe(x+j,t.tabStopAdvance):a[B],H=j+V,ne=mLe(t,P,B,j,V);if(P==="soft-hyphen"&&G===0){g&&(y=B+1,b=0,B+1<D.endSegmentIndex&&(w=B+1,v=x+u,k=x+u,_=P));continue}if(!g){if(G>0){let W=$(B,G);if(W!==null){O=W;break e}}else if(ne>m&&l[B]!==null){let W=$(B,0);if(W!==null){O=W;break e}}else C(B,V);A(P,U,B,V,j,H);continue}if(x+ne>m){let W=x+SQ(t,P,B,j),ie=x+LQ(t,P,B,j,V);if(U&&W<=m){M(B,H),O=S(B+1,0,ie);break e}if(w>=0&&v<=m){if(y>w||y===w&&b>0){O=S();break e}O=S(w,0,k);break e}O=S();break e}M(B,H),A(P,U,B,V,j,H)}O===null&&(O=w===D.consumedEndSegmentIndex&&b===0?S(D.consumedEndSegmentIndex,0,k):S(D.consumedEndSegmentIndex,0,x))}if(O===null)break;F=O,N++,i?.(O,f,h,e.segmentIndex,e.graphemeIndex),N<o&&(n=xLe(t,n,e))}return{lineCount:N,lastLineWidth:F}}function kLe(t){return t?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function IQ(t,e){if(e==="zero-width-break"||e==="soft-hyphen"||e==="hard-break")return 0;if(e==="tab")return 1;let n=0,r=Ff();for(let i of r.segment(t))n++;return n}function CLe(t,e,n){return e>1?t+(e-1)*n:t}function _Le(t,e,n,r,i){let o=Eb(),{cache:a,emojiCorrection:s}=_Q(e,kQ(t.normalized)),l=Bf("-",Rp("-",a),s)+(i===0?0:i*2),u=Bf(" ",Rp(" ",a),s)*8,d=i!==0;if(t.len===0)return kLe(n);let p=[],m=[],f=[],h=[],x=!d,g=n?[]:null,y=[],b=[],w=[],v=n?[]:null,k=[],_=0;function L(T,M,A,$,N,F,D,O,B){N!=="text"&&N!=="space"&&N!=="zero-width-break"&&(x=!1),p.push(M),m.push(A),f.push($),h.push(N),g?.push(F),y.push(D),b.push(O),d&&w.push(B),v!==null&&v.push(T)}function S(T,M,A,$,N){let F=d?IQ(T,A):0,D=CLe(Bf(T,M,s),F,i),O=A==="space"||A==="preserved-space"||A==="zero-width-break"?0:D,B=O===0?0:O+(F>0?i:0),P=A==="space"||A==="zero-width-break"?0:D;if(N&&T.length>1){let U="sum-graphemes";i!==0?U="segment-prefixes":Y4(T)?U="pair-context":o.preferPrefixWidthsForBreakableRuns&&(U="segment-prefixes");let G=CQ(T,M,a,s,U),j=G===null||r==="keep-all"?null:yQ(T);L(T,D,B,P,A,$,G,j,F);return}L(T,D,B,P,A,$,null,null,F)}for(let T=0;T<t.len;T++){let M=t.texts[T],A=t.kinds[T],$=t.starts[T];if(A==="soft-hyphen"){L(M,0,l,l,A,$,null,null,0);continue}if(A==="hard-break"){let N=p.length;L(M,0,0,0,A,$,null,null,0),k.push({startSegmentIndex:_,endSegmentIndex:N,consumedEndSegmentIndex:p.length}),_=p.length;continue}if(A==="tab"){L(M,0,0,0,A,$,null,null,d?IQ(M,A):0);continue}if(A==="text"&&Ps(M)){let N=gQ(M,o,r);for(let F=0;F<N.length;F++){let D=N[F],O=Rp(D.text,a);S(D.text,O,"text",$+D.start,D.overflow==="grapheme"||t.isWordLike[T]&&(r==="keep-all"||D.overflow==="word-like"))}continue}S(M,Rp(M,a),A,$,A==="text"&&(t.isWordLike[T]||bQ(M)))}_<p.length&&k.push({startSegmentIndex:_,endSegmentIndex:p.length,consumedEndSegmentIndex:p.length});let C=g===null?null:iQ(t.normalized,g);return v!==null?{widths:p,lineEndFitAdvances:m,lineEndPaintAdvances:f,kinds:h,simpleLineWalkFastPath:x,segLevels:C,breakableFitAdvances:y,breakablePreferredBreaks:b,letterSpacing:i,spacingGraphemeCounts:w,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:k,segments:v}:{widths:p,lineEndFitAdvances:m,lineEndPaintAdvances:f,kinds:h,simpleLineWalkFastPath:x,segLevels:C,breakableFitAdvances:y,breakablePreferredBreaks:b,letterSpacing:i,spacingGraphemeCounts:w,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:k}}function SLe(t,e,n,r){let i=r?.wordBreak??"normal",o=r?.letterSpacing??0,a=xQ(t,Eb(),r?.whiteSpace,i);return _Le(a,e,n,i,o)}function NQ(t,e,n){return SLe(t,e,!1,n)}function PQ(t,e,n){let r=AQ(t,e);return{lineCount:r,height:r*n}}function RI(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var i0=RI();function qQ(t){i0=t}var n0={exec:()=>null};function Yn(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(Ja.caret,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,e)};return r}var LLe=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ja={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},MLe=/^(?:[ \t]*(?:\n|$))+/,ELe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,TLe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,r7=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,RLe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,AI=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,HQ=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,GQ=Yn(HQ).replace(/bull/g,AI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ALe=Yn(HQ).replace(/bull/g,AI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),$I=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$Le=/^[^\n]+/,II=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ILe=Yn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",II).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),NLe=Yn(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,AI).getRegex(),Ww="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",NI=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,PLe=Yn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",NI).replace("tag",Ww).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),UQ=Yn($I).replace("hr",r7).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ww).getRegex(),jLe=Yn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",UQ).getRegex(),PI={blockquote:jLe,code:ELe,def:ILe,fences:TLe,heading:RLe,hr:r7,html:PLe,lheading:GQ,list:NLe,newline:MLe,paragraph:UQ,table:n0,text:$Le},jQ=Yn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",r7).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ww).getRegex(),OLe={...PI,lheading:ALe,table:jQ,paragraph:Yn($I).replace("hr",r7).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jQ).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ww).getRegex()},DLe={...PI,html:Yn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",NI).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:n0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Yn($I).replace("hr",r7).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",GQ).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},FLe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,BLe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,VQ=/^( {2,}|\\)\n(?!\s*$)/,zLe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Tb=/[\p{P}\p{S}]/u,Kw=/[\s\p{P}\p{S}]/u,jI=/[^\s\p{P}\p{S}]/u,qLe=Yn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Kw).getRegex(),ZQ=/(?!~)[\p{P}\p{S}]/u,HLe=/(?!~)[\s\p{P}\p{S}]/u,GLe=/(?:[^\s\p{P}\p{S}]|~)/u,ULe=Yn(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",LLe?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),WQ=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,VLe=Yn(WQ,"u").replace(/punct/g,Tb).getRegex(),ZLe=Yn(WQ,"u").replace(/punct/g,ZQ).getRegex(),KQ="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",WLe=Yn(KQ,"gu").replace(/notPunctSpace/g,jI).replace(/punctSpace/g,Kw).replace(/punct/g,Tb).getRegex(),KLe=Yn(KQ,"gu").replace(/notPunctSpace/g,GLe).replace(/punctSpace/g,HLe).replace(/punct/g,ZQ).getRegex(),XLe=Yn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,jI).replace(/punctSpace/g,Kw).replace(/punct/g,Tb).getRegex(),YLe=Yn(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Tb).getRegex(),QLe="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",JLe=Yn(QLe,"gu").replace(/notPunctSpace/g,jI).replace(/punctSpace/g,Kw).replace(/punct/g,Tb).getRegex(),eMe=Yn(/\\(punct)/,"gu").replace(/punct/g,Tb).getRegex(),tMe=Yn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nMe=Yn(NI).replace("(?:-->|$)","-->").getRegex(),rMe=Yn("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nMe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Uw=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,iMe=Yn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Uw).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),XQ=Yn(/^!?\[(label)\]\[(ref)\]/).replace("label",Uw).replace("ref",II).getRegex(),YQ=Yn(/^!?\[(ref)\](?:\[\])?/).replace("ref",II).getRegex(),oMe=Yn("reflink|nolink(?!\\()","g").replace("reflink",XQ).replace("nolink",YQ).getRegex(),OQ=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,OI={_backpedal:n0,anyPunctuation:eMe,autolink:tMe,blockSkip:ULe,br:VQ,code:BLe,del:n0,delLDelim:n0,delRDelim:n0,emStrongLDelim:VLe,emStrongRDelimAst:WLe,emStrongRDelimUnd:XLe,escape:FLe,link:iMe,nolink:YQ,punctuation:qLe,reflink:XQ,reflinkSearch:oMe,tag:rMe,text:zLe,url:n0},aMe={...OI,link:Yn(/^!?\[(label)\]\((.*?)\)/).replace("label",Uw).getRegex(),reflink:Yn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Uw).getRegex()},MI={...OI,emStrongRDelimAst:KLe,emStrongLDelim:ZLe,delLDelim:YLe,delRDelim:JLe,url:Yn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",OQ).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Yn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",OQ).getRegex()},sMe={...MI,br:Yn(VQ).replace("{2,}","*").getRegex(),text:Yn(MI.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Gw={normal:PI,gfm:OLe,pedantic:DLe},e7={normal:OI,gfm:MI,breaks:sMe,pedantic:aMe},lMe={"&":"&","<":"<",">":">",'"':""","'":"'"},DQ=t=>lMe[t];function od(t,e){if(e){if(Ja.escapeTest.test(t))return t.replace(Ja.escapeReplace,DQ)}else if(Ja.escapeTestNoEncode.test(t))return t.replace(Ja.escapeReplaceNoEncode,DQ);return t}function FQ(t){try{t=encodeURI(t).replace(Ja.percentDecode,"%")}catch{return null}return t}function BQ(t,e){let n=t.replace(Ja.findPipe,(o,a,s)=>{let l=!1,c=a;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),r=n.split(Ja.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Ja.slashPipe,"|");return r}function t7(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r;){let o=t.charAt(r-i-1);if(o===e&&!n)i++;else if(o!==e&&n)i++;else break}return t.slice(0,r-i)}function cMe(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function uMe(t,e=0){let n=e,r="";for(let i of t)if(i===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=i,n++;return r}function zQ(t,e,n,r,i){let o=e.href,a=e.title||null,s=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function dMe(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(` +`):t}var yI=null;function Bf(){return yI===null&&(yI=new Intl.Segmenter(void 0,{granularity:"grapheme"})),yI}var xI=null,lSe;function cSe(){return xI===null&&(xI=new Intl.Segmenter(lSe,{granularity:"word"})),xI}var uSe=/\p{Script=Arabic}/u,Tp=/\p{M}/u,J4=/\p{Nd}/u;function oQ(t){return uSe.test(t)}var dSe=/[\u3000-\u30FF\u3130-\u318F\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF\uFF00-\uFFEF\u{20000}-\u{2A6DF}\u{2A700}-\u{2EE5D}\u{2F800}-\u{2FA1F}\u{30000}-\u{33479}]/u;function Ps(t){return dSe.test(t)}function pSe(t){let e=e7(t);return e!==null&&(CI.has(e)||n0.has(e))}var mSe=new Set(["\xA0","\u202F","\u2060","\uFEFF"]),fSe=new Set(["-","\u2010","\u2013","\u2014"]);function hSe(t){let e=e7(t);return e!==null&&mSe.has(e)}function gSe(t){let e=e7(t);return e!==null&&fSe.has(e)}function dQ(t,e){return hSe(t)?!1:e?!(pSe(t)||gSe(t)):!0}var CI=new Set(["\uFF0C","\uFF0E","\uFF01","\uFF1A","\uFF1B","\uFF1F","\u3001","\u3002","\u30FB","\uFF09","\u3015","\u3009","\u300B","\u300D","\u300F","\u3011","\u3017","\u3019","\u301B","\u30FC","\u3005","\u303B","\u309D","\u309E","\u30FD","\u30FE"]),Hw=new Set(['"',"(","[","{","\xA1","\xBF","\u201C","\u2018","\u201A","\u201E","\xAB","\u2039","\u2E18","\uFF08","\u3014","\u3008","\u300A","\u300C","\u300E","\u3010","\u3016","\u3018","\u301A"]),_I=new Set(["'","\u2019"]),n0=new Set([".",",","!","?",":",";","\u060C","\u061B","\u061F","\u0964","\u0965","\u104A","\u104B","\u104C","\u104D","\u104F",")","]","}","%",'"',"\u201D","\u2019","\xBB","\u203A","\u2026"]),bSe=new Set([":",".","\u060C","\u061B"]),ySe=new Set(["\u104F"]),xSe=new Set(["\u201D","\u2019","\xBB","\u203A","\u300D","\u300F","\u3011","\u300B","\u3009","\u3015","\uFF09"]);function wSe(t){if(SI(t))return!0;let e=!1;for(let n of t){if(n0.has(n)||r0(n)){e=!0;continue}if(!(e&&Tp.test(n)))return!1}return e}function vSe(t){for(let e of t)if(!CI.has(e)&&!n0.has(e))return!1;return t.length>0}function kSe(t){if(SI(t))return!0;for(let e of t)if(!Hw.has(e)&&!_I.has(e)&&!Tp.test(e)&&!r0(e))return!1;return t.length>0}function SI(t){let e=!1;for(let n of t)if(!(n==="\\"||Tp.test(n))){if(Hw.has(n)||n0.has(n)||_I.has(n)){e=!0;continue}return!1}return e}function Lb(t,e){let n=e-1;if(n<=0)return Math.max(n,0);let r=t.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let o=t.charCodeAt(i);return o>=55296&&o<=56319?i:n}function e7(t){if(t.length===0)return null;let e=Lb(t,t.length);return t.slice(e)}function CSe(t){for(let e of t)if(!Tp.test(e))return e;return null}function LI(t,e=t.length){for(;e>0;){let n=Lb(t,e),r=t.slice(n,e);if(!Tp.test(r))return r;e=n}return null}var _Se=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function SSe(t,e){for(let n=0;n<e.length;n+=2)if(t>=e[n]&&t<=e[n+1])return!0;return!1}function r0(t){let e=t.codePointAt(0);return e!==void 0&&SSe(e,_Se)}function LSe(t){let e=LI(t);return e!==null&&r0(e)}function MSe(t){let e=CSe(t);return e!==null&&J4.test(e)}function ESe(t){let e=t.length;for(;e>0;){let n=Lb(t,e),r=t.slice(n,e);if(Tp.test(r)||Hw.has(r)||_I.has(r)){e=n;continue}break}return e<=0||e===t.length?null:{head:t.slice(0,e),tail:t.slice(e)}}function TSe(t,e,n){return n==="text"&&!e&&t.length===1&&t!=="-"&&t!=="\u2014"?t:null}function aQ(t,e){return t&&e!==null&&bSe.has(e)}function RSe(t){let e=e7(t);return e!==null&&ySe.has(e)}function ASe(t){if(t.length<2||t[0]!==" ")return null;let e=t.slice(1);return/^\p{M}+$/u.test(e)?{space:" ",marks:e}:null}function vI(t){let e=t.length;for(;e>0;){let n=Lb(t,e),r=t.slice(n,e);if(xSe.has(r))return!0;if(!n0.has(r))return!1;e=n}return!1}function $Se(t,e){if(e==="pre-wrap"){if(t===" ")return"preserved-space";if(t===" ")return"tab";if(t===` +`)return"hard-break"}return t===" "?"space":t==="\xA0"||t==="\u202F"||t==="\u2060"||t==="\uFEFF"?"glue":t==="\u200B"?"zero-width-break":t==="\xAD"?"soft-hyphen":"text"}var ISe=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function Ff(t){return t.length===1?t[0]:t.join("")}function sQ(t,e){let n=[];for(let r=t.length-1;r>=0;r--)n.push(t[r]);return n.push(e),Ff(n)}function NSe(t,e,n,r){if(!ISe.test(t))return[{text:t,isWordLike:e,kind:"text",start:n}];let i=[],o=null,a=0,s=!1,l=0;for(let c of t){let u=$Se(c,r),d=u==="text"&&e;if(o!==null&&u===o&&d===s){l+=c.length;continue}o!==null&&i.push({text:t.slice(a,l),isWordLike:s,kind:o,start:n+a}),o=u,a=l,s=d,l+=c.length}return o!==null&&i.push({text:t.slice(a),isWordLike:s,kind:o,start:n+a}),i}function wI(t){return t==="space"||t==="preserved-space"||t==="zero-width-break"||t==="hard-break"}var PSe=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function lQ(t,e){let n=t.texts[e];return n.startsWith("www.")?!0:PSe.test(n)&&e+1<t.len&&t.kinds[e+1]==="text"&&t.texts[e+1]==="//"}function jSe(t){return t.includes("?")&&(t.includes("://")||t.startsWith("www."))}function OSe(t,e,n){let r=[],i=[],o=[],a=[];for(let s=0;s<t.len;s++){let l=t.starts[s],c=t.texts[s],u=t.isWordLike[s],d=t.kinds[s],p=-1;if(d==="text"&&lQ(t,s)){let g=[c],y=s+1;for(;y<t.len&&!wI(t.kinds[y])&&Ep(e,t.starts[y],n)!==!1;){p<0&&lQ(t,y)&&(p=t.starts[y]);let b=t.texts[y];if(g.push(b),u=!0,y++,b.includes("?"))break}c=Ff(g),s=y-1}if(r.push(c),i.push(u),o.push(d),a.push(l),!jSe(c))continue;let m=s+1;if(m>=t.len||wI(t.kinds[m]))continue;let f=[],h=p<0?t.starts[m]:p,x=m;for(;x<t.len&&!wI(t.kinds[x])&&Ep(e,t.starts[x],n)!==!1;)f.push(t.texts[x]),x++;f.length>0&&(r.push(Ff(f)),i.push(!0),o.push("text"),a.push(h),s=x-1)}return{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}var DSe=new Set([":","-","/","\xD7",",",".","+","\u2013","\u2014"]),FSe=/[\p{P}\p{S}\p{Co}]/u,pQ=/\p{Emoji_Presentation}/u,BSe=new Set(["?","\u058A","-","\u2010","\u2012","\u2013","\u2014","\u2026","\u203C","\u203D","\u2049"]);function zSe(t){return t>=33&&t<=47&&t!==45||t>=58&&t<=64&&t!==63||t>=91&&t<=96||t>=123&&t<=126}function mQ(t){let e=t.charCodeAt(0);return e<128?zSe(e):!BSe.has(t)&&!pQ.test(t)&&FSe.test(t)}function cQ(t){let e=!1;for(let n of t)if(!Tp.test(n)){if(!mQ(n))return!1;e=!0}return e}function qSe(t){for(let e=t.length;e>0;){let n=Lb(t,e),r=t.slice(n,e);if(Tp.test(r)){e=n;continue}return mQ(r)||r0(r)}return!1}var kI=/[A-Za-z#&*<=>@^_`~]/;function fQ(t,e){return t.charCodeAt(0)<128&&e.charCodeAt(0)<128}function Ep(t,e,n){if(!n.geckoAsciiLineBreaks||e<=0||e>=t.length)return null;let r=LI(t,e),i=String.fromCodePoint(t.codePointAt(e));if(r===null||!fQ(r,i))return null;let o=r0(r),a=r0(i);return!o&&!a?null:!!(i===")"||i==="]"||i==="}"||"!,.:;?/".includes(i)||"([{".includes(r)||r==='"'||r==="'"||i==='"'||i==="'"||i==="|"||i==="-"||o&&kI.test(i)||kI.test(r)&&a||a&&(")]}".includes(r)||/[0-9]/.test(r))||o&&("([{".includes(i)||/[0-9]/.test(i)))}function qw(t,e,n,r=t.length){let i=e[0];if(i===void 0||!"([{".includes(i))return null;let o=LI(t,r);return o===null?null:n.geckoAsciiLineBreaks&&fQ(o,i)?kI.test(o)||J4.test(o)||`"'([{`.includes(o)||r0(o):o.charCodeAt(0)>=128?!Ps(o)&&/[\p{L}\p{N}]/u.test(o)?!0:null:/[A-Za-z0-9]/.test(o)||"$'(/<@[^_`{".includes(o)}function HSe(t,e,n,r,i){if(n[0]==="-"&&Ps(t))return!0;if(Ps(t)||Ps(n))return!1;let o=qw(t,n,i);if(o!==null)return o;let a=!e&&cQ(t),s=!r&&cQ(n),l=LSe(t),c=(e||l)&&qSe(t);return!a&&!s&&!c?!1:(e||a||l)&&(r||s)}function uQ(t){for(let e of t)if(J4.test(e))return!0;return!1}function Q4(t){if(t.length===0)return!1;for(let e of t)if(!(J4.test(e)||DSe.has(e)))return!1;return!0}function GSe(t,e,n){let r=[],i=[],o=[],a=[];function s(l,c){if(l.includes("-")){let u=l.split("-"),d=u.length>1;for(let p=0;p<u.length;p++){let m=u[p];if(!d)break;(m.length===0||!uQ(m)||!Q4(m))&&(d=!1)}if(d){let p=0;for(let m=0;m<u.length;m++){let f=u[m],h=m<u.length-1?`${f}-`:f;r.push(h),i.push(!0),o.push("text"),a.push(c+p),p+=h.length}return}}r.push(l),i.push(!0),o.push("text"),a.push(c)}for(let l=0;l<t.len;l++){let c=t.texts[l],u=t.kinds[l];if(u==="text"&&Q4(c)&&uQ(c)){let d=[c],p=l+1;for(;p<t.len&&t.kinds[p]==="text"&&Q4(t.texts[p])&&Ep(e,t.starts[p],n)!==!1;)d.push(t.texts[p]),p++;s(Ff(d),t.starts[l]),l=p-1;continue}r.push(c),i.push(t.isWordLike[l]),o.push(u),a.push(t.starts[l])}return{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}function USe(t,e,n){let r=[],i=[],o=[],a=[],s=0;for(;s<t.len;){let l=t.texts[s],c=t.kinds[s],u=t.isWordLike[s];if(c==="text"){let d=[l],p=s+1,m=u;for(;p<t.len&&t.kinds[p]==="text"&&(Ep(e,t.starts[p],n)??HSe(t.texts[p-1],t.isWordLike[p-1],t.texts[p],t.isWordLike[p],n));){let f=t.texts[p];d.push(f),m=m||t.isWordLike[p],p++}if(p>s+1){r.push(Ff(d)),i.push(m),o.push("text"),a.push(t.starts[s]),s=p;continue}}r.push(l),i.push(u),o.push(c),a.push(t.starts[s]),s++}return{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}function VSe(t){let e=[],n=[],r=[],i=[],o=0;for(;o<t.len;){let a=[t.texts[o]],s=t.isWordLike[o],l=t.kinds[o],c=t.starts[o];if(l==="glue"){let u=[a[0]],d=c;for(o++;o<t.len&&t.kinds[o]==="glue";)u.push(t.texts[o]),o++;let p=Ff(u);if(o<t.len&&t.kinds[o]==="text")a[0]=p,a.push(t.texts[o]),s=t.isWordLike[o],l="text",c=d,o++;else{e.push(p),n.push(!1),r.push("glue"),i.push(d);continue}}else o++;if(l==="text")for(;o<t.len&&t.kinds[o]==="glue";){let u=[];for(;o<t.len&&t.kinds[o]==="glue";)u.push(t.texts[o]),o++;let d=Ff(u);if(o<t.len&&t.kinds[o]==="text"){a.push(d,t.texts[o]),s=s||t.isWordLike[o],o++;continue}a.push(d)}e.push(Ff(a)),n.push(s),r.push(l),i.push(c)}return{len:e.length,texts:e,isWordLike:n,kinds:r,starts:i}}function ZSe(t){let{texts:e,kinds:n,starts:r}=t;for(let i=0;i<e.length-1;i++){if(n[i]!=="text"||n[i+1]!=="text"||!Ps(e[i])||!Ps(e[i+1]))continue;let o=ESe(e[i]);o!==null&&(e[i]=o.head,e[i+1]=o.tail+e[i+1],r[i+1]=r[i]+o.head.length)}}function WSe(t,e,n){let r=cSe(),i=0,o=[],a=[],s=[],l=[],c=!1,u=0,d=0,p=!1,m="text",f=null,h=!1,x=!1,g=!1,y=!1,b=!1;for(let S of r.segment(t))for(let C of NSe(S.segment,S.isWordLike??!1,S.index,n)){let T=C.kind==="text",M=TSe(C.text,C.isWordLike,C.kind),A=Ps(C.text),$=oQ(C.text),N=e7(C.text),F=vI(C.text),D=RSe(C.text),O=C.start+C.text.length,B=Ep(t,C.start,e)??(h||A?null:qw(t,C.text,e,C.start)),P=!1;if(e.carryCJKAfterClosingQuote&&T&&c&&m==="text"&&A&&h&&g)P=!0;else if(T&&c&&m==="text"&&vSe(C.text)&&h)P=!0;else if(T&&c&&m==="text"&&y)P=!0;else if(T&&c&&m==="text"&&C.isWordLike&&$&&b)P=!0;else if(M!==null&&c&&m==="text"&&f===M&&B!==!1){d=O;continue}else T&&!C.isWordLike&&c&&m==="text"&&!h&&(wSe(C.text)||C.text==="-"&&p)&&(P=!0);T&&c&&m==="text"&&B!==null&&(P=B),P?(d=O,p=p||C.isWordLike,f=null,h=h||A,x=x||$,g=F,y=D,b=aQ(x,N)):(c&&(o[i]=t.slice(u,d),a[i]=p,s[i]=m,l[i]=u,i++),c=!0,u=C.start,d=O,p=C.isWordLike,m=C.kind,f=M,h=A,x=$,g=F,y=D,b=aQ($,N))}c&&(o[i]=t.slice(u,d),a[i]=p,s[i]=m,l[i]=u,i++);for(let S=1;S<i;S++)s[S]==="text"&&!a[S]&&SI(o[S])&&s[S-1]==="text"&&!Ps(o[S-1])&&(Ep(t,l[S],e)??qw(t,o[S],e,l[S]))!==!1&&(o[S-1]+=o[S],a[S-1]=a[S-1]||a[S],o[S]="");let w=-1,v=null;for(let S=i-1;S>=0;S--){let C=o[S];if(C.length===0)continue;let T=v?.at(-1)??(w>=0?o[w]:null);if(s[S]==="text"&&!a[S]&&T!==null&&s[w]==="text"&&((Ep(t,l[S]+C.length,e)??(kSe(C)&&qw(C,T,e)!==!1))||C==="-"&&MSe(T))){v===null&&(v=[]),v.push(C),l[w]=l[S],o[S]="";continue}v!==null&&(o[w]=sQ(v,o[w]),v=null),w=S}v!==null&&(o[w]=sQ(v,o[w]));let k=0;for(let S=0;S<i;S++){let C=o[S];C.length!==0&&(k!==S&&(o[k]=C,a[k]=a[S],s[k]=s[S],l[k]=l[S]),k++)}o.length=k,a.length=k,s.length=k,l.length=k;let _=VSe({len:k,texts:o,isWordLike:a,kinds:s,starts:l}),L=USe(GSe(OSe(_,t,e),t,e),t,e);ZSe(L);for(let S=0;S<L.len-1;S++){let C=ASe(L.texts[S]);C!==null&&(L.kinds[S]!=="space"&&L.kinds[S]!=="preserved-space"||L.kinds[S+1]!=="text"||!oQ(L.texts[S+1])||(L.texts[S]=C.space,L.isWordLike[S]=!1,L.kinds[S]=L.kinds[S]==="preserved-space"?"preserved-space":"space",L.texts[S+1]=C.marks+L.texts[S+1],L.starts[S+1]=L.starts[S]+C.space.length))}return L}function KSe(t,e,n){if(e.len<=1)return e;let r=[],i=[],o=[],a=[],s=-1,l=!1;function c(p){r.push(e.texts[p]),i.push(e.isWordLike[p]),o.push("text"),a.push(e.starts[p])}function u(p,m){let f=!1;for(let g=p;g<m;g++)f=f||e.isWordLike[g];let h=e.starts[p],x=m<e.len?e.starts[m]:t.length;r.push(t.slice(h,x)),i.push(f),o.push("text"),a.push(h)}function d(p){if(!(s<0)){if(l)s+1===p?c(s):u(s,p);else for(let m=s;m<p;m++)c(m);s=-1,l=!1}}for(let p=0;p<e.len;p++){let m=e.texts[p],f=e.kinds[p];if(f==="text"){s>=0&&(!dQ(e.texts[p-1],n.breakKeepAllAfterPunctuation)||Ep(t,e.starts[p],n)===!1)&&d(p),s<0&&(s=p),l=l||Ps(m);continue}d(p),r.push(m),i.push(e.isWordLike[p]),o.push(f),a.push(e.starts[p])}return d(e.len),{len:r.length,texts:r,isWordLike:i,kinds:o,starts:a}}function hQ(t,e){let n=t.charCodeAt(e+1);if(n<128){if(n<48||n>57)return!1}else{let r=t.codePointAt(e+1);if(r===void 0||!J4.test(String.fromCodePoint(r)))return!1}for(let r=e;r>0;){let i=Lb(t,r),o=t.slice(i,r);if(!Tp.test(o))return Ps(o)||!/[\p{L}\p{N}]/u.test(o);r=i}return!0}function XSe(t,e){let n=[],r=0,i=0,o=!1,a=!1,s=!1,l=!1,c=!1;function u(){i!==r&&(n.push({text:t.slice(r,i),start:r,overflow:o?l?"grapheme":"none":"word-like"}),r=i,o=!1,a=!1,s=!1,l=!1,c=!1)}function d(m,f,h){r=f,i=f+m.length,o=h,l=m==="-",a=vI(m),s=Hw.has(m)}function p(m,f){i+=m.length,o=o||f,l=l||m==="-";let h=vI(m);m.length===1&&n0.has(m)?a=a||h:a=h,s=!1}for(let m of Bf().segment(t)){let f=m.segment,h=Ps(f);if(i===r){d(f,m.index,h);continue}let x=f==="-"&&o;if(x&&hQ(t,m.index)&&(c=!0),s||CI.has(f)||n0.has(f)||x||c&&!h||e.carryCJKAfterClosingQuote&&h&&a){p(f,h);continue}if(!o&&!h){p(f,h);continue}u(),d(f,m.index,h)}return u(),n}function YSe(t,e,n){if(e.length<=1)return e;let r=[],i=-1,o=!1;function a(l,c){let u=e[l].start,d=c<e.length?e[c].start:t.length;r.push({text:t.slice(u,d),start:u,overflow:"word-like"})}function s(l){if(!(i<0)){if(o)i+1===l?r.push(e[i]):a(i,l);else for(let c=i;c<l;c++)r.push(e[c]);i=-1,o=!1}}for(let l=0;l<e.length;l++){let c=e[l];i>=0&&(!dQ(e[l-1].text,n.breakKeepAllAfterPunctuation)||Ep(t,c.start,n)===!1)&&s(l),i<0&&(i=l),o=o||Ps(c.text)}return s(e.length),r}function gQ(t,e,n){let r=XSe(t,e);return n==="keep-all"?YSe(t,r,e):r}function QSe(t){return t==="-"||t==="\u058A"||t==="\u2010"||t==="\u2012"||t==="\u2013"||t==="\u2014"}function bQ(t){if(t.length===0||/\p{Cf}/u.test(t))return!1;for(let{segment:e}of Bf().segment(t)){let n=String.fromCodePoint(e.codePointAt(0));if(!/[\p{P}\p{S}]/u.test(n)||pQ.test(n)||e.includes("\uFE0F")||/\p{Emoji_Modifier}/u.test(n))return!1}return!0}function yQ(t){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(t))return null;let e=[],n=0;for(let r of Bf().segment(t)){n++;let i=r.segment==="-"&&hQ(t,r.index);QSe(r.segment)&&!i&&e.push(n)}return e.length===0?null:e}function xQ(t,e,n="normal",r="normal"){let i=n==="pre-wrap"?sSe(t):aSe(t);if(i.length===0)return{normalized:i,len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=WSe(i,e,n),a=r==="keep-all"?KSe(i,o,e):o;return{normalized:i,...a}}var Mb=null,wQ=new Map,Eb=null,JSe=96,eLe=/\p{Emoji_Presentation}/u,tLe=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,vQ=new Map;function MI(){if(Mb!==null)return Mb;if(typeof OffscreenCanvas<"u")return Mb=new OffscreenCanvas(1,1).getContext("2d"),Mb;if(typeof document<"u")return Mb=document.createElement("canvas").getContext("2d"),Mb;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function nLe(t){let e=wQ.get(t);return e||(e=new Map,wQ.set(t,e)),e}function Rp(t,e){let n=e.get(t);return n===void 0&&(n={width:MI().measureText(t).width},e.set(t,n)),n}function Tb(){if(Eb!==null)return Eb;if(typeof navigator>"u")return Eb={geckoAsciiLineBreaks:!1,lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1},Eb;let t=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&t.includes("Safari/")&&!t.includes("Chrome/")&&!t.includes("Chromium/")&&!t.includes("CriOS/")&&!t.includes("FxiOS/")&&!t.includes("EdgiOS/"),r=t.includes("Chrome/")||t.includes("Chromium/")||t.includes("CriOS/")||t.includes("Edg/");return Eb={geckoAsciiLineBreaks:t.includes("Firefox/")&&!t.includes("FxiOS/"),lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,breakKeepAllAfterPunctuation:!n,preferPrefixWidthsForBreakableRuns:n},Eb}function rLe(t){let e=t.match(/(?:^|\D)(\d+(?:\.\d+)?)\s*px/);return e?parseFloat(e[1]):16}function iLe(t){return eLe.test(t)||t.includes("\uFE0F")}function kQ(t){return tLe.test(t)}function oLe(t){let e=vQ.get(t);if(e!==void 0)return e;let n=rLe(t),r=MI();r.font=t;let i=r.measureText("\u{1F600}").width;if(e=0,i>n+.5&&typeof document<"u"&&document.body!==null){let o=document.createElement("span");o.style.font=t,o.style.display="inline-block",o.style.visibility="hidden",o.style.position="absolute",o.textContent="\u{1F600}",document.body.appendChild(o);let a=o.getBoundingClientRect().width;document.body.removeChild(o),i-a>.5&&(e=i-a)}return vQ.set(t,e),e}function aLe(t){let e=0,n=Bf();for(let r of n.segment(t))iLe(r.segment)&&e++;return e}function sLe(t,e){return e.emojiCount===void 0&&(e.emojiCount=aLe(t)),e.emojiCount}function zf(t,e,n){return n===0?e.width:e.width-sLe(t,e)*n}function CQ(t,e,n,r,i){if(e.breakableFitAdvances!==void 0&&e.breakableFitMode===i)return e.breakableFitAdvances;e.breakableFitMode=i;let o=Bf(),a=[];for(let u of o.segment(t))a.push(u.segment);if(a.length<=1)return e.breakableFitAdvances=null,e.breakableFitAdvances;if(i==="sum-graphemes"){let u=[];for(let d of a){let p=Rp(d,n);u.push(zf(d,p,r))}return e.breakableFitAdvances=u,e.breakableFitAdvances}if(i==="pair-context"||a.length>JSe){let u=[],d=null,p=0;for(let m of a){let f=Rp(m,n),h=zf(m,f,r);if(d===null)u.push(h);else{let x=d+m,g=Rp(x,n);u.push(zf(x,g,r)-p)}d=m,p=h}return e.breakableFitAdvances=u,e.breakableFitAdvances}let s=[],l="",c=0;for(let u of a){l+=u;let d=Rp(l,n),p=zf(l,d,r);s.push(p-c),c=p}return e.breakableFitAdvances=s,e.breakableFitAdvances}function _Q(t,e){let n=MI();n.font=t;let r=nLe(t),i=e?oLe(t):0;return{cache:r,emojiCorrection:i}}function lLe(t,e,n){return n===0&&e>0&&e<t.length&&t[e-1]==="soft-hyphen"}function cLe(t){return t==="space"||t==="zero-width-break"||t==="soft-hyphen"}function MQ(t){return t==="space"||t==="preserved-space"||t==="tab"||t==="zero-width-break"||t==="soft-hyphen"}function EQ(t,e,n=t.widths.length){for(;e<n;){let r=t.kinds[e];if(!cLe(r))break;e++}return e}function uLe(t,e){if(e<=0)return 0;let n=t%e;return Math.abs(n)<=1e-6?e:e-n}function dLe(t,e,n){return t.letterSpacing!==0&&e&&t.spacingGraphemeCounts[n]>0?t.letterSpacing:0}function TI(t,e){return e===0?0:t+e}function pLe(t,e){return t.letterSpacing!==0&&t.spacingGraphemeCounts[e]>0?t.letterSpacing:0}function mLe(t,e,n,r,i){let o=e==="tab"?i+pLe(t,n):t.lineEndFitAdvances[n];return TI(r,o)}function SQ(t,e,n,r){let i=e==="tab"?0:t.lineEndFitAdvances[n];return TI(r,i)}function LQ(t,e,n,r,i){let o=e==="tab"?i:t.lineEndPaintAdvances[n];return TI(r,o)}function fLe(t,e,n){return t.letterSpacing!==0&&e?n+t.letterSpacing:n}function hLe(t,e){return t.letterSpacing===0?e:e+t.letterSpacing}function EI(t,e,n){let r=e;if(r>=t.length||t[r]>=n)return r;let i=t.length;for(r++;r<i;){let o=Math.floor((r+i)/2);t[o]<n?r=o+1:i=o}return r}function gLe(t,e,n,r,i){if(t.letterSpacing===0)return 0;if(i>0)return t.spacingGraphemeCounts[r]>0?t.letterSpacing:0;if(lLe(t.kinds,r,i))return 0;for(let o=r-1;o>=e;o--){let a=t.kinds[o];if(!(a==="space"||a==="zero-width-break"||a==="hard-break"||a==="soft-hyphen"))return o===e&&n>0||t.spacingGraphemeCounts[o]>0?t.letterSpacing:0}return 0}function bLe(t,e,n,r,i,o){return e+gLe(t,n,r,i,o)}function yLe(t,e){let n=0,r=t.chunks.length;for(;n<r;){let i=Math.floor((n+r)/2);e<t.chunks[i].consumedEndSegmentIndex?r=i:n=i+1}return n<t.chunks.length?n:-1}function TQ(t,e,n){let r=n.segmentIndex;if(n.graphemeIndex>0)return e;for(let i=e;i<t.chunks.length;i++){let o=t.chunks[i];if(o.startSegmentIndex===o.endSegmentIndex&&r===o.startSegmentIndex||(r<o.startSegmentIndex&&(r=o.startSegmentIndex),r=EQ(t,r,o.endSegmentIndex),r<o.endSegmentIndex))return n.segmentIndex=r,n.graphemeIndex=0,i;if(o.consumedEndSegmentIndex>=t.widths.length)return-1;r=o.consumedEndSegmentIndex,n.segmentIndex=r,n.graphemeIndex=0}return-1}function RQ(t,e){if(e.segmentIndex>=t.widths.length)return-1;let n=yLe(t,e.segmentIndex);return n<0?-1:TQ(t,n,e)}function xLe(t,e,n){if(n.segmentIndex>=t.widths.length)return-1;let r=e;for(;r<t.chunks.length&&n.segmentIndex>=t.chunks[r].consumedEndSegmentIndex;)r++;return r>=t.chunks.length?-1:TQ(t,r,n)}function AQ(t,e){return $Q(t,e)}function wLe(t,e,n){let{widths:r,kinds:i,breakableFitAdvances:o,breakablePreferredBreaks:a}=t;if(r.length===0)return 0;let l=Tb().lineFitEpsilon,c=e+l,u=0,d=0,p=!1,m=0,f=0,h=0,x=0,g=-1,y=0;function b(){g=-1,y=0}function w(C=h,T=x,M=d){u++,n?.(M,m,f,C,T),d=0,p=!1,b()}function v(C,T){p=!0,m=C,f=0,h=C+1,x=0,d=T}function k(C,T,M){p=!0,m=C,f=T,h=C,x=T+1,d=M}function _(C,T){if(!p){v(C,T);return}d+=T,h=C+1,x=0}function L(C,T){let M=o[C],A=a[C]??null,$=A===null?-1:EI(A,0,T+1),N=-1,F=0,D=T;for(;D<M.length;){let O=M[D];if(!p)k(C,D,O);else if(d+O>c){if(A!==null&&N>T){w(C,N,F),D=N,$=EI(A,$,D+1),N=-1,F=0;continue}w(),k(C,D,O)}else d+=O,h=C,x=D+1;let B=D+1;A!==null&&A[$]===B&&(N=B,F=d,$++),D++}p&&h===C&&x===M.length&&(h=C+1,x=0)}let S=0;for(;S<r.length&&!(!p&&(S=EQ(t,S),S>=r.length));){let C=r[S],T=i[S],M=MQ(T);if(!p){C>c&&o[S]!==null?L(S,0):v(S,C),M&&(g=S+1,y=d-C),S++;continue}if(d+C>c){if(M){_(S,C),w(S+1,0,d-C),S++;continue}if(g>=0){if(h>g||h===g&&x>0){w();continue}w(g,0,y);continue}if(C>c&&o[S]!==null){w(),L(S,0),S++;continue}w();continue}_(S,C),M&&(g=S+1,y=d-C),S++}return p&&w(),u}function $Q(t,e,n){if(t.simpleLineWalkFastPath)return wLe(t,e,n);let r={segmentIndex:0,graphemeIndex:0},i=RQ(t,r);return vLe(t,r,i,e,n).lineCount}function vLe(t,e,n,r,i,o=Number.POSITIVE_INFINITY){let{widths:a,kinds:s,breakableFitAdvances:l,breakablePreferredBreaks:c,discretionaryHyphenWidth:u}=t,p=Tb().lineFitEpsilon,m=r+p,f,h,x,g,y,b,w,v,k,_;function L(){return _==="soft-hyphen"&&w===y&&b===0?k:x}function S(D=y,O=b,B=L()){return g?(e.segmentIndex=D,e.graphemeIndex=O,bLe(t,B,f,h,D,O)):null}function C(D,O){g=!0,y=D+1,b=0,x=O}function T(D,O,B){g=!0,y=D,b=O+1,x=B}function M(D,O){if(!g){C(D,O);return}x+=O,y=D+1,b=0}function A(D,O,B,P,U,G){if(!O)return;let j=SQ(t,D,B,U),V=LQ(t,D,B,U,P);w=B+1,v=x-G+j,k=x-G+V,_=D}function $(D,O){let B=l[D],P=c[D]??null,U=P===null?-1:EI(P,0,O+1),G=-1,j=0;for(let V=O;V<B.length;V++){let H=B[V];if(!g)T(D,V,H);else{let J=fLe(t,!0,H),W=x+J;if(hLe(t,W)>m)return P!==null&&G>O?S(D,G,j):S();x=W,y=D,b=V+1}let ne=V+1;P!==null&&P[U]===ne&&(G=ne,j=x,U++)}return g&&y===D&&b===B.length&&(y=D+1,b=0),null}let N=0,F=null;for(;n>=0&&N<o;){f=e.segmentIndex,h=e.graphemeIndex,x=0,g=!1,y=e.segmentIndex,b=e.graphemeIndex,w=-1,v=0,k=0,_=null;let D=t.chunks[n],O=null;if(D.startSegmentIndex===D.endSegmentIndex)e.segmentIndex=D.consumedEndSegmentIndex,e.graphemeIndex=0,O=0;else{e:for(let B=e.segmentIndex;B<D.endSegmentIndex;B++){let P=s[B],U=MQ(P),G=B===e.segmentIndex?e.graphemeIndex:0,j=dLe(t,g,B),V=P==="tab"?uLe(x+j,t.tabStopAdvance):a[B],H=j+V,ne=mLe(t,P,B,j,V);if(P==="soft-hyphen"&&G===0){g&&(y=B+1,b=0,B+1<D.endSegmentIndex&&(w=B+1,v=x+u,k=x+u,_=P));continue}if(!g){if(G>0){let W=$(B,G);if(W!==null){O=W;break e}}else if(ne>m&&l[B]!==null){let W=$(B,0);if(W!==null){O=W;break e}}else C(B,V);A(P,U,B,V,j,H);continue}if(x+ne>m){let W=x+SQ(t,P,B,j),ie=x+LQ(t,P,B,j,V);if(U&&W<=m){M(B,H),O=S(B+1,0,ie);break e}if(w>=0&&v<=m){if(y>w||y===w&&b>0){O=S();break e}O=S(w,0,k);break e}O=S();break e}M(B,H),A(P,U,B,V,j,H)}O===null&&(O=w===D.consumedEndSegmentIndex&&b===0?S(D.consumedEndSegmentIndex,0,k):S(D.consumedEndSegmentIndex,0,x))}if(O===null)break;F=O,N++,i?.(O,f,h,e.segmentIndex,e.graphemeIndex),N<o&&(n=xLe(t,n,e))}return{lineCount:N,lastLineWidth:F}}function kLe(t){return t?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function IQ(t,e){if(e==="zero-width-break"||e==="soft-hyphen"||e==="hard-break")return 0;if(e==="tab")return 1;let n=0,r=Bf();for(let i of r.segment(t))n++;return n}function CLe(t,e,n){return e>1?t+(e-1)*n:t}function _Le(t,e,n,r,i){let o=Tb(),{cache:a,emojiCorrection:s}=_Q(e,kQ(t.normalized)),l=zf("-",Rp("-",a),s)+(i===0?0:i*2),u=zf(" ",Rp(" ",a),s)*8,d=i!==0;if(t.len===0)return kLe(n);let p=[],m=[],f=[],h=[],x=!d,g=n?[]:null,y=[],b=[],w=[],v=n?[]:null,k=[],_=0;function L(T,M,A,$,N,F,D,O,B){N!=="text"&&N!=="space"&&N!=="zero-width-break"&&(x=!1),p.push(M),m.push(A),f.push($),h.push(N),g?.push(F),y.push(D),b.push(O),d&&w.push(B),v!==null&&v.push(T)}function S(T,M,A,$,N){let F=d?IQ(T,A):0,D=CLe(zf(T,M,s),F,i),O=A==="space"||A==="preserved-space"||A==="zero-width-break"?0:D,B=O===0?0:O+(F>0?i:0),P=A==="space"||A==="zero-width-break"?0:D;if(N&&T.length>1){let U="sum-graphemes";i!==0?U="segment-prefixes":Q4(T)?U="pair-context":o.preferPrefixWidthsForBreakableRuns&&(U="segment-prefixes");let G=CQ(T,M,a,s,U),j=G===null||r==="keep-all"?null:yQ(T);L(T,D,B,P,A,$,G,j,F);return}L(T,D,B,P,A,$,null,null,F)}for(let T=0;T<t.len;T++){let M=t.texts[T],A=t.kinds[T],$=t.starts[T];if(A==="soft-hyphen"){L(M,0,l,l,A,$,null,null,0);continue}if(A==="hard-break"){let N=p.length;L(M,0,0,0,A,$,null,null,0),k.push({startSegmentIndex:_,endSegmentIndex:N,consumedEndSegmentIndex:p.length}),_=p.length;continue}if(A==="tab"){L(M,0,0,0,A,$,null,null,d?IQ(M,A):0);continue}if(A==="text"&&Ps(M)){let N=gQ(M,o,r);for(let F=0;F<N.length;F++){let D=N[F],O=Rp(D.text,a);S(D.text,O,"text",$+D.start,D.overflow==="grapheme"||t.isWordLike[T]&&(r==="keep-all"||D.overflow==="word-like"))}continue}S(M,Rp(M,a),A,$,A==="text"&&(t.isWordLike[T]||bQ(M)))}_<p.length&&k.push({startSegmentIndex:_,endSegmentIndex:p.length,consumedEndSegmentIndex:p.length});let C=g===null?null:iQ(t.normalized,g);return v!==null?{widths:p,lineEndFitAdvances:m,lineEndPaintAdvances:f,kinds:h,simpleLineWalkFastPath:x,segLevels:C,breakableFitAdvances:y,breakablePreferredBreaks:b,letterSpacing:i,spacingGraphemeCounts:w,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:k,segments:v}:{widths:p,lineEndFitAdvances:m,lineEndPaintAdvances:f,kinds:h,simpleLineWalkFastPath:x,segLevels:C,breakableFitAdvances:y,breakablePreferredBreaks:b,letterSpacing:i,spacingGraphemeCounts:w,discretionaryHyphenWidth:l,tabStopAdvance:u,chunks:k}}function SLe(t,e,n,r){let i=r?.wordBreak??"normal",o=r?.letterSpacing??0,a=xQ(t,Tb(),r?.whiteSpace,i);return _Le(a,e,n,i,o)}function NQ(t,e,n){return SLe(t,e,!1,n)}function PQ(t,e,n){let r=AQ(t,e);return{lineCount:r,height:r*n}}function II(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var a0=II();function qQ(t){a0=t}var i0={exec:()=>null};function Yn(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(Ja.caret,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,e)};return r}var LLe=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ja={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},MLe=/^(?:[ \t]*(?:\n|$))+/,ELe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,TLe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,i7=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,RLe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,NI=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,HQ=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,GQ=Yn(HQ).replace(/bull/g,NI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ALe=Yn(HQ).replace(/bull/g,NI).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),PI=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,$Le=/^[^\n]+/,jI=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ILe=Yn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",jI).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),NLe=Yn(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,NI).getRegex(),Ww="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",OI=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,PLe=Yn("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",OI).replace("tag",Ww).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),UQ=Yn(PI).replace("hr",i7).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ww).getRegex(),jLe=Yn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",UQ).getRegex(),DI={blockquote:jLe,code:ELe,def:ILe,fences:TLe,heading:RLe,hr:i7,html:PLe,lheading:GQ,list:NLe,newline:MLe,paragraph:UQ,table:i0,text:$Le},jQ=Yn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",i7).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ww).getRegex(),OLe={...DI,lheading:ALe,table:jQ,paragraph:Yn(PI).replace("hr",i7).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",jQ).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ww).getRegex()},DLe={...DI,html:Yn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",OI).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:i0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Yn(PI).replace("hr",i7).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",GQ).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},FLe=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,BLe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,VQ=/^( {2,}|\\)\n(?!\s*$)/,zLe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Rb=/[\p{P}\p{S}]/u,Kw=/[\s\p{P}\p{S}]/u,FI=/[^\s\p{P}\p{S}]/u,qLe=Yn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Kw).getRegex(),ZQ=/(?!~)[\p{P}\p{S}]/u,HLe=/(?!~)[\s\p{P}\p{S}]/u,GLe=/(?:[^\s\p{P}\p{S}]|~)/u,ULe=Yn(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",LLe?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),WQ=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,VLe=Yn(WQ,"u").replace(/punct/g,Rb).getRegex(),ZLe=Yn(WQ,"u").replace(/punct/g,ZQ).getRegex(),KQ="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",WLe=Yn(KQ,"gu").replace(/notPunctSpace/g,FI).replace(/punctSpace/g,Kw).replace(/punct/g,Rb).getRegex(),KLe=Yn(KQ,"gu").replace(/notPunctSpace/g,GLe).replace(/punctSpace/g,HLe).replace(/punct/g,ZQ).getRegex(),XLe=Yn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,FI).replace(/punctSpace/g,Kw).replace(/punct/g,Rb).getRegex(),YLe=Yn(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Rb).getRegex(),QLe="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",JLe=Yn(QLe,"gu").replace(/notPunctSpace/g,FI).replace(/punctSpace/g,Kw).replace(/punct/g,Rb).getRegex(),eMe=Yn(/\\(punct)/,"gu").replace(/punct/g,Rb).getRegex(),tMe=Yn(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nMe=Yn(OI).replace("(?:-->|$)","-->").getRegex(),rMe=Yn("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nMe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Uw=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,iMe=Yn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Uw).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),XQ=Yn(/^!?\[(label)\]\[(ref)\]/).replace("label",Uw).replace("ref",jI).getRegex(),YQ=Yn(/^!?\[(ref)\](?:\[\])?/).replace("ref",jI).getRegex(),oMe=Yn("reflink|nolink(?!\\()","g").replace("reflink",XQ).replace("nolink",YQ).getRegex(),OQ=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,BI={_backpedal:i0,anyPunctuation:eMe,autolink:tMe,blockSkip:ULe,br:VQ,code:BLe,del:i0,delLDelim:i0,delRDelim:i0,emStrongLDelim:VLe,emStrongRDelimAst:WLe,emStrongRDelimUnd:XLe,escape:FLe,link:iMe,nolink:YQ,punctuation:qLe,reflink:XQ,reflinkSearch:oMe,tag:rMe,text:zLe,url:i0},aMe={...BI,link:Yn(/^!?\[(label)\]\((.*?)\)/).replace("label",Uw).getRegex(),reflink:Yn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Uw).getRegex()},RI={...BI,emStrongRDelimAst:KLe,emStrongLDelim:ZLe,delLDelim:YLe,delRDelim:JLe,url:Yn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",OQ).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Yn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",OQ).getRegex()},sMe={...RI,br:Yn(VQ).replace("{2,}","*").getRegex(),text:Yn(RI.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Gw={normal:DI,gfm:OLe,pedantic:DLe},t7={normal:BI,gfm:RI,breaks:sMe,pedantic:aMe},lMe={"&":"&","<":"<",">":">",'"':""","'":"'"},DQ=t=>lMe[t];function od(t,e){if(e){if(Ja.escapeTest.test(t))return t.replace(Ja.escapeReplace,DQ)}else if(Ja.escapeTestNoEncode.test(t))return t.replace(Ja.escapeReplaceNoEncode,DQ);return t}function FQ(t){try{t=encodeURI(t).replace(Ja.percentDecode,"%")}catch{return null}return t}function BQ(t,e){let n=t.replace(Ja.findPipe,(o,a,s)=>{let l=!1,c=a;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),r=n.split(Ja.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Ja.slashPipe,"|");return r}function n7(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r;){let o=t.charAt(r-i-1);if(o===e&&!n)i++;else if(o!==e&&n)i++;else break}return t.slice(0,r-i)}function cMe(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function uMe(t,e=0){let n=e,r="";for(let i of t)if(i===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=i,n++;return r}function zQ(t,e,n,r,i){let o=e.href,a=e.title||null,s=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:a,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function dMe(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(` `).map(o=>{let a=o.match(n.other.beginningSpace);if(a===null)return o;let[s]=a;return s.length>=i.length?o.slice(i.length):o}).join(` -`)}var Vw=class{options;rules;lexer;constructor(t){this.options=t||i0}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:t7(n,` -`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],r=dMe(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let r=t7(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:t7(e[0],` -`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=t7(e[0],` +`)}var Vw=class{options;rules;lexer;constructor(t){this.options=t||a0}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:n7(n,` +`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],r=dMe(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let r=n7(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:n7(e[0],` +`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=n7(e[0],` `).split(` `),r="",i="",o=[];for(;n.length>0;){let a=!1,s=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))s.push(n[l]),a=!0;else if(!a)s.push(n[l]);else break;n=n.slice(l);let c=s.join(` `),u=c.replace(this.rules.other.blockquoteSetextReplace,` @@ -61,7 +61,7 @@ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo `+p}m=!p.trim(),c+=v+` `,t=t.substring(v.length+1),d=k.slice(f)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0)),i.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),i.raw+=c}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let l of i.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let c=this.rules.other.listTaskCheckbox.exec(l.raw);if(c){let u={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};l.checked=u.checked,i.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=u.raw+l.tokens[0].raw,l.tokens[0].text=u.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(u)):l.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):l.tokens.unshift(u)}}if(!i.loose){let c=l.tokens.filter(d=>d.type==="space"),u=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=u}}if(i.loose)for(let l of i.items){l.loose=!0;for(let c of l.tokens)c.type==="text"&&(c.type="paragraph")}return i}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:r,title:i}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=BQ(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(` `):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let a of r)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<n.length;a++)o.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:o.align[a]});for(let a of i)o.rows.push(BQ(a,o.header.length).map((s,l)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:o.align[l]})));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let n=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let n=e[1].charAt(e[1].length-1)===` -`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=t7(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=cMe(e[2],"()");if(o===-2)return;if(o>-1){let a=(e[0].indexOf("!")===0?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),zQ(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[r.toLowerCase()];if(!i){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return zQ(n,i,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,a,s=i,l=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+i);(r=c.exec(e))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(a=[...o].length,r[3]||r[4]){s+=a;continue}else if((r[5]||r[6])&&i%3&&!((i+a)%3)){l+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s+l);let u=[...r[0]][0].length,d=t.slice(0,i+r.index+u+a);if(Math.min(i,a)%2){let m=d.slice(1,-1);return{type:"em",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,a,s=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,e=e.slice(-1*t.length+i);(r=l.exec(e))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(a=[...o].length,a!==i))continue;if(r[3]||r[4]){s+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s);let c=[...r[0]][0].length,u=t.slice(0,i+r.index+c+a),d=u.slice(i,-i);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,r;if(e[2]==="@")n=e[0],r="mailto:"+n;else{let i;do i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(i!==e[0]);n=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},hu=class EI{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i0,this.options.tokenizer=this.options.tokenizer||new Vw,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ja,block:Gw.normal,inline:e7.normal};this.options.pedantic?(n.block=Gw.pedantic,n.inline=e7.pedantic):this.options.gfm&&(n.block=Gw.gfm,this.options.breaks?n.inline=e7.breaks:n.inline=e7.gfm),this.tokenizer.rules=n}static get rules(){return{block:Gw,inline:e7}}static lex(e,n){return new EI(n).lex(e)}static lexInline(e,n){return new EI(n).inlineTokens(e)}lex(e){e=e.replace(Ja.carriageReturn,` +`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=n7(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=cMe(e[2],"()");if(o===-2)return;if(o>-1){let a=(e[0].indexOf("!")===0?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),zQ(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[r.toLowerCase()];if(!i){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return zQ(n,i,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,a,s=i,l=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+i);(r=c.exec(e))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(a=[...o].length,r[3]||r[4]){s+=a;continue}else if((r[5]||r[6])&&i%3&&!((i+a)%3)){l+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s+l);let u=[...r[0]][0].length,d=t.slice(0,i+r.index+u+a);if(Math.min(i,a)%2){let m=d.slice(1,-1);return{type:"em",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,o,a,s=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,e=e.slice(-1*t.length+i);(r=l.exec(e))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(a=[...o].length,a!==i))continue;if(r[3]||r[4]){s+=a;continue}if(s-=a,s>0)continue;a=Math.min(a,a+s);let c=[...r[0]][0].length,u=t.slice(0,i+r.index+c+a),d=u.slice(i,-i);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,r;if(e[2]==="@")n=e[0],r="mailto:"+n;else{let i;do i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(i!==e[0]);n=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},hu=class AI{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||a0,this.options.tokenizer=this.options.tokenizer||new Vw,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ja,block:Gw.normal,inline:t7.normal};this.options.pedantic?(n.block=Gw.pedantic,n.inline=t7.pedantic):this.options.gfm&&(n.block=Gw.gfm,this.options.breaks?n.inline=t7.breaks:n.inline=t7.gfm),this.tokenizer.rules=n}static get rules(){return{block:Gw,inline:t7}}static lex(e,n){return new AI(n).lex(e)}static lexInline(e,n){return new AI(n).inlineTokens(e)}lex(e){e=e.replace(Ja.carriageReturn,` `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Ja.tabCharGlobal," ").replace(Ja.spaceLine,""));e;){let i;if(this.options.extensions?.block?.some(a=>(i=a.call({lexer:this},e,n))?(e=e.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let a=n.at(-1);i.raw.length===1&&a!==void 0?a.raw+=` `:n.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let a=n.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(` `)?"":` @@ -75,7 +75,7 @@ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(i),r=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let a=n.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(` `)?"":` `)+i.raw,a.text+=` -`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let r=e,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)o=i[2]?i[2].length:0,r=r.slice(0,i.index+o)+"["+"a".repeat(i[0].length-o-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,s="";for(;e;){a||(s=""),a=!1;let l;if(this.options.extensions?.inline?.some(u=>(l=u.call({lexer:this},e,n))?(e=e.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let u=n.at(-1);l.type==="text"&&u?.type==="text"?(u.raw+=l.raw,u.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(e,r,s)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(e,r,s)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),n.push(l);continue}let c=e;if(this.options.extensions?.startInline){let u=1/0,d=e.slice(1),p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(c=e.substring(0,u+1))}if(l=this.tokenizer.inlineText(c)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),a=!0;let u=n.at(-1);u?.type==="text"?(u.raw+=l.raw,u.text+=l.text):n.push(l);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},Zw=class{options;parser;constructor(t){this.options=t||i0}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(Ja.notSpaceStart)?.[0],i=t.replace(Ja.endingNewline,"")+` +`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let r=e,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)o=i[2]?i[2].length:0,r=r.slice(0,i.index+o)+"["+"a".repeat(i[0].length-o-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,s="";for(;e;){a||(s=""),a=!1;let l;if(this.options.extensions?.inline?.some(u=>(l=u.call({lexer:this},e,n))?(e=e.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let u=n.at(-1);l.type==="text"&&u?.type==="text"?(u.raw+=l.raw,u.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(e,r,s)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(e,r,s)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),n.push(l);continue}let c=e;if(this.options.extensions?.startInline){let u=1/0,d=e.slice(1),p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(c=e.substring(0,u+1))}if(l=this.tokenizer.inlineText(c)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),a=!0;let u=n.at(-1);u?.type==="text"?(u.raw+=l.raw,u.text+=l.text):n.push(l);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},Zw=class{options;parser;constructor(t){this.options=t||a0}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(Ja.notSpaceStart)?.[0],i=t.replace(Ja.endingNewline,"")+` `;return r?'<pre><code class="language-'+od(r)+'">'+(n?i:od(i,!0))+`</code></pre> `:"<pre><code>"+(n?i:od(i,!0))+`</code></pre> `}blockquote({tokens:t}){return`<blockquote> @@ -93,8 +93,8 @@ ${this.parser.parse(t)}</blockquote> `}tablerow({text:t}){return`<tr> ${t}</tr> `}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}> -`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${od(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),i=FQ(t);if(i===null)return r;t=i;let o='<a href="'+t+'"';return e&&(o+=' title="'+od(e)+'"'),o+=">"+r+"</a>",o}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=FQ(t);if(i===null)return od(n);t=i;let o=`<img src="${t}" alt="${od(n)}"`;return e&&(o+=` title="${od(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:od(t.text)}},DI=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},gu=class TI{options;renderer;textRenderer;constructor(e){this.options=e||i0,this.options.renderer=this.options.renderer||new Zw,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new DI}static parse(e,n){return new TI(n).parse(e)}static parseInline(e,n){return new TI(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let a=i,s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=s||"";continue}}let o=i;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<e.length;i++){let o=e[i];if(this.options.extensions?.renderers?.[o.type]){let s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=s||"";continue}}let a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"checkbox":{r+=n.checkbox(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}},n7=class{options;block;constructor(t){this.options=t||i0}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?hu.lex:hu.lexInline}provideParser(){return this.block?gu.parse:gu.parseInline}},pMe=class{defaults=RI();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=gu;Renderer=Zw;TextRenderer=DI;Lexer=hu;Tokenizer=Vw;Hooks=n7;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let i=r;for(let o of i.header)n=n.concat(this.walkTokens(o.tokens,e));for(let o of i.rows)for(let a of o)n=n.concat(this.walkTokens(a.tokens,e));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,e));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{let a=i[o].flat(1/0);n=n.concat(this.walkTokens(a,e))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=e.renderers[i.name];o?e.renderers[i.name]=function(...a){let s=i.renderer.apply(this,a);return s===!1&&(s=o.apply(this,a)),s}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=e[i.level];o?o.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),n.renderer){let i=this.defaults.renderer||new Zw(this.defaults);for(let o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let a=o,s=n.renderer[a],l=i[a];i[a]=(...c)=>{let u=s.apply(i,c);return u===!1&&(u=l.apply(i,c)),u||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Vw(this.defaults);for(let o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let a=o,s=n.tokenizer[a],l=i[a];i[a]=(...c)=>{let u=s.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new n7;for(let o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let a=o,s=n.hooks[a],l=i[a];n7.passThroughHooks.has(o)?i[a]=c=>{if(this.defaults.async&&n7.passThroughHooksRespectAsync.has(o))return(async()=>{let d=await s.call(i,c);return l.call(i,d)})();let u=s.call(i,c);return l.call(i,u)}:i[a]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await s.apply(i,c);return d===!1&&(d=await l.apply(i,c)),d})();let u=s.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(a){let s=[];return s.push(o.call(this,a)),i&&(s=s.concat(i.call(this,a))),s}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return hu.lex(t,e??this.defaults)}parser(t,e){return gu.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let a=i.hooks?await i.hooks.preprocess(e):e,s=await(i.hooks?await i.hooks.provideLexer():t?hu.lex:hu.lexInline)(a,i),l=i.hooks?await i.hooks.processAllTokens(s):s;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser():t?gu.parse:gu.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(o);try{i.hooks&&(e=i.hooks.preprocess(e));let a=(i.hooks?i.hooks.provideLexer():t?hu.lex:hu.lexInline)(e,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let s=(i.hooks?i.hooks.provideParser():t?gu.parse:gu.parseInline)(a,i);return i.hooks&&(s=i.hooks.postprocess(s)),s}catch(a){return o(a)}}}onError(t,e){return n=>{if(n.message+=` -Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+od(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},r0=new pMe;function _r(t,e){return r0.parse(t,e)}_r.options=_r.setOptions=function(t){return r0.setOptions(t),_r.defaults=r0.defaults,qQ(_r.defaults),_r};_r.getDefaults=RI;_r.defaults=i0;_r.use=function(...t){return r0.use(...t),_r.defaults=r0.defaults,qQ(_r.defaults),_r};_r.walkTokens=function(t,e){return r0.walkTokens(t,e)};_r.parseInline=r0.parseInline;_r.Parser=gu;_r.parser=gu.parse;_r.Renderer=Zw;_r.TextRenderer=DI;_r.Lexer=hu;_r.lexer=hu.lex;_r.Tokenizer=Vw;_r.Hooks=n7;_r.parse=_r;var Blt=_r.options,zlt=_r.setOptions,qlt=_r.use,Hlt=_r.walkTokens,Glt=_r.parseInline;var Ult=gu.parse,QQ=hu.lex;var mMe=["used","edited","read","searched","web","ran"];function JQ(t){switch(t){case"edit":case"delete":case"move":case"fileChange":return"edited";case"read":return"read";case"search":return"searched";case"fetch":return"web";case"execute":return"ran";default:return"used"}}function Xw(t){return t.filter(e=>e.tool).length>=2}function FI(t){let e=new Set(t.filter(n=>n.tool).map(n=>JQ(n.tool.kind)));return e.has("read")&&e.delete("searched"),mMe.filter(n=>e.has(n))}function eJ(t){let e=t.filter(o=>o.tool),n=o=>e.filter(a=>{let s=JQ(a.tool.kind);return s===o||o==="read"&&s==="searched"}).length,r=o=>{let a=n(o)===1;switch(o){case"used":return a?"used a tool":"used tools";case"edited":return a?"edited a file":"edited files";case"read":return a?"read a file":"read files";case"searched":return"searched the code";case"web":return"searched the web";case"ran":return a?"ran a command":"ran commands"}},i=FI(t).map(r).join(", ");return i.charAt(0).toUpperCase()+i.slice(1)}var fMe=/\bhttps?:\/\/(?:localhost|127\.0\.0\.1|0\.0\.0\.0)(?![\w-]|\.[\w-])(?::\d{1,5}(?!\d)|(?!:))(?:[/?#][^\s"'`<>()[\]{}]*)?/gi,hMe=/\x1b\[[0-9;]*[A-Za-z]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g;function gMe(t){let e;for(let n of t)if(n)for(let r of n.replace(hMe,"").matchAll(fMe)){let i=bMe(r[0].replace(/[.,;:!?*_]+$/,""));i&&(e=i)}return e}function bMe(t){try{let e=new URL(t);e.hostname==="0.0.0.0"&&(e.hostname="localhost");let n=e.port?Number(e.port):void 0;return n!==void 0&&(n<1||n>65535)?void 0:e.href}catch{return}}function tJ(t,e){return gMe([t.text,...e.flatMap(n=>[n.kind==="assistant"?n.text:void 0,...(n.items??[]).flatMap(r=>r.tool?.kind==="execute"?[r.tool.command,r.tool.output]:[])])])}function nJ(t){let e=new URL(t);return`${e.origin}${e.pathname}${e.search}`}function Yw(t){return typeof t=="number"&&t!==0&&Number.isFinite(new Date(t).getTime())}function iJ(t,e,n){let r;return t.map((i,o)=>{let a=Yw(i.promptAt)&&(o===0&&n&&e-i.promptAt>36e5||r!==void 0&&i.promptAt-r>36e5);return r=Yw(i.answerAt)?i.answerAt:void 0,a})}function rJ(t,e){let n=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric"}).formatToParts(t),r=i=>Number(n.find(o=>o.type===i)?.value);return Date.UTC(r("year"),r("month")-1,r("day"))/864e5}function oJ(t,e){let{timeZone:n}=e,r=e.locale??new Intl.DateTimeFormat().resolvedOptions().locale,i=Math.max(rJ(e.now,n)-rJ(t,n),0),o=l=>new Intl.DateTimeFormat(r,{timeZone:n,...l}).format(t),a;if(i<=1){let l=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(-i,"day");a=r.startsWith("en")?l[0].toUpperCase()+l.slice(1):l}else i<=7?a=o({weekday:"long"}):i<=365?a=o({weekday:"short",month:"short",day:"numeric"}):a=o({month:"short",day:"numeric",year:"numeric"});let s=o({hour:"numeric",minute:"2-digit"});return i>7?`${a} at ${s}`:`${a} ${s}`}var zf="worked",Ab="date",$b="thinking",Ib="working",Nb="preview",BI=":fold";function zI(t){let e=Math.floor(t/1e3);if(e<=0)return"0s";let n=Math.floor(e/3600),r=Math.floor(e%3600/60),i=e%60;return[n&&`${n}h`,r&&`${r}m`,i&&`${i}s`].filter(Boolean).join(" ")}var yMe=(t=0)=>t===1?"1 tool call":`${t} tool calls`;function qI(t,e){if(e.previous!==void 0)return e.previous===1?t("turn.previous.one"):t("turn.previous.other",{n:e.previous});if(e.durationMs===void 0)return yMe(e.toolCount);let n=zI(e.durationMs);return e.status==="cancelled"?t("turn.stopped",{time:n}):t("turn.worked",{time:n})}var Rb=t=>t.kind==="activity"&&(t.items??[]).some(e=>e.tool?.kind==="edit"||e.tool?.kind==="fileChange");function aJ(t,e,{now:n=Date.now(),working:r=!1}={}){let i=[],o=0;for(;o<t.length&&t[o].kind!=="user";)i.push(t[o++]);let a=o===0,s=[];for(;o<t.length;){let c=t[o++],u=[],d=[];for(;o<t.length&&(t[o].kind!=="user"||wMe(t[o]));){let p=t[o++];(p.kind==="user"?d:u).push(p)}s.push({user:c,turn:u,held:d})}let l=iJ(s.map(({user:c,turn:u})=>({promptAt:c.at,answerAt:[...u].reverse().find(xMe)?.at})),n,a);return s.forEach(({user:c,turn:u,held:d},p)=>{l[p]&&i.push({id:`${Ab}-${c.id}`,version:1,at:c.at,kind:Ab});let m=p===s.length-1;i.push(c,...vMe(c,u,e,r&&m,m,m&&d.length===0),...d)}),i}var xMe=t=>t.kind==="assistant",wMe=t=>!!(t.pending||t.failed);function vMe(t,e,n,r,i,o){let a=e.findIndex(y=>y.kind==="turnSummary");if(a<0)return r?_Me(t,e):i?e:CMe(t,e,n);let s=e[a],l=e.slice(0,a),c=-1;for(let y=l.length-1;y>=0;y-=1)if(l[y].kind==="assistant"){c=y;break}let u=c>=0?l[c]:void 0,d=(c>=0?l.slice(0,c):l).filter(y=>y.kind!=="typing"),p=c>=0?l.slice(c+1):[],m=[...d.filter(Rb),...p.filter(Rb)],f=p.filter(y=>!Rb(y)),h=[],x=s.version*kMe+(u?.version??0);if(d.length){let y=`${zf}-${t.id}`,b=n.has(y);h.push({id:y,version:x*2+(b?1:0),at:t.at,kind:zf,status:s.status,toolCount:s.toolCount,durationMs:u?Math.max(0,u.at-t.at):s.durationMs??Math.max(0,s.at-t.at)}),b&&h.push(...d.map(w=>({...w,id:Rb(w)?`${w.id}${BI}`:w.id,settled:!0})))}u&&h.push(u),h.push(...f,...sJ(m));let g=tJ(t,e);return g&&h.push({id:`${Nb}-${t.id}`,version:x,at:s.at,kind:Nb,text:g}),h.push({...s,folded:d.length>0,text:u?.text??s.text,...o&&t.text&&{prompt:t.text},version:x*2+(o?1:0)}),h.push(...e.slice(a+1)),h}var kMe=1e6;function sJ(t){if(t.length===0)return[];let[e]=t;return[{...e,version:t.reduce((n,r)=>n+r.version,0)*2+1,items:t.flatMap(n=>n.items??[]),toolCount:t.reduce((n,r)=>n+(r.toolCount??0),0),ended:!0}]}function CMe(t,e,n){let r=e.filter(d=>d.kind!=="typing"),i=-1;for(let d=r.length-1;d>=0;d-=1)if(r[d].kind==="assistant"){i=d;break}let o=i>=0?r.slice(0,i):r;if(o.length===0)return r;let a=`${zf}-${t.id}`,s=n.has(a),l=o.filter(Rb),c=o.reduce((d,p)=>d+(p.kind==="activity"?p.items?.length??1:1),0),u=o.reduce((d,p)=>d+p.version,0);return[{id:a,version:u*2+(s?1:0),at:t.at,kind:zf,previous:c},...s?o.map(d=>({...d,id:Rb(d)?`${d.id}${BI}`:d.id,settled:!0})):[],...i>=0?r.slice(i):[],...sJ(l)]}function _Me(t,e){let n=e.filter(a=>a.kind!=="typing"),r=n.at(-1);if(!r)return[{id:`${$b}-${t.id}`,version:1,at:t.at,kind:$b}];let i=r.kind==="assistant";if(i&&n.length===1)return n;let o={id:`${Ib}-${t.id}`,version:1,at:t.at,kind:Ib};return i&&Object.assign(o,{version:2,durationMs:Math.max(0,r.at-t.at)}),[o,...n]}var Pb=t=>t.id.endsWith(BI);function lJ(t){let e=t?.split(/[-_\s]+/).find(Boolean);return e?e.toLowerCase():void 0}var cJ={claude:"Claude Code",codex:"Codex",gemini:"Gemini CLI",opencode:"OpenCode",cursor:"Cursor",pi:"Pi",goose:"Goose",amp:"Amp",qwen:"Qwen Code",copilot:"GitHub Copilot",aider:"Aider"};function qf(t){let e=t.split(/[-_\s]+/).filter(Boolean),n=lJ(t),r=n&&Object.hasOwn(cJ,n)?cJ[n]:void 0;return r||e.map(i=>i[0].toUpperCase()+i.slice(1)).join(" ")||t}function Hf(t,e){return e&&e!==t?e:qf(t)}var pJ=R(qe(),1),mJ=R(Q(),1);function uJ(t,e){let n=new Set(e);for(let r of t){let i=r.replace(/_/g,"-");if(n.has(i))return i;let[o,...a]=i.split("-"),s=o.toLowerCase();if(s==="zh"){let c=a.some(u=>/^(hant|tw|hk|mo)$/i.test(u))?"zh-Hant":"zh-Hans";if(n.has(c))return c;continue}if(s==="pt"&&n.has("pt-BR"))return"pt-BR";if((s==="no"||s==="nn")&&n.has("nb"))return"nb";if(n.has(s))return s}return"en"}function HI(t){let e=globalThis.document?.documentElement;e&&(e.lang=t,e.dir=/^(ar|fa|he|ur|ps|sd|ug|yi)(-|$)/i.test(t)?"rtl":"ltr")}var Qw=()=>globalThis.__cmuxPaneStrings??{};function fJ(t=globalThis.navigator?.languages??[]){return uJ(t,Object.keys(Qw()))}var i7=fJ();HI(i7);var GI=new Set;function jb(){return i7}function SMe(t){if(HI(t),t!==i7){i7=t;for(let e of GI)e()}}function LMe(t){return GI.add(t),()=>GI.delete(t)}globalThis.window?.addEventListener("languagechange",()=>SMe(fJ()));function UI(t,e,n){return(Qw()[n]?.[t]??Qw().en?.[t]??t).replace(/\{(\w+)\}/g,(i,o)=>o in e?String(e[o]):i)}function ve(t,e={},n=i7){return UI(t,e,n)}var dJ=new Map;function VI(t){let e=dJ.get(t);return e||(e=(n,r)=>ve(n,r,t),dJ.set(t,e)),e}function ZI(){return(0,mJ.useSyncExternalStore)(LMe,jb,jb)}function we(){let t=(0,pJ.c)(2),e=ZI(),n;return t[0]!==e?(n=VI(e),t[0]=e,t[1]=n):n=t[1],n}var cct=Qw();var y6=R(qe(),1),Ws=R(Q(),1);var KP=R(qe(),1),Al=R(Q(),1);var kc="diffs-container",MMe=(()=>{try{return!1}catch{return!1}})(),WI=/(?=^From [a-f0-9]+ .+$)/m,Jw=/(?=^diff --git)/gm,ev=/(?=^---\s+\S)/gm;var KI=/(?<=\n)/,XI=/^(---|\+\+\+)\s+([^\t\r\n]+)/,YI=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,QI=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,JI=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i;var Ap="header-prefix",$p="header-metadata",Ip="header-custom",nr={dark:"pierre-dark",light:"pierre-light"},Np="data-theme-css",Pp="data-unsafe-css";var eN="data-diffs-scrollbar-measure",o7="--diffs-scrollbar-gutter-measured",Eo=1,ad=1e5,tv={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},EMe={...tv,hunkLineCount:1};var tN=Object.freeze({fromStart:0,fromEnd:0}),o0={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},a7={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function s7(t,e,n){if(t===e||t==null||e==null)return t===e;let r=new Set(n),i=Object.keys(t),o=new Set(Object.keys(e));for(let a of i)if(o.delete(a),!r.has(a)&&(!(a in e)||t[a]!==e[a]))return!1;for(let a of Array.from(o))if(!r.has(a))return!1;return!0}function Cc(t,e){return t==null||e==null||typeof t=="string"||typeof e=="string"?t===e:t.dark===e.dark&&t.light===e.light}function nv(t,e){let n=t?.theme??nr,r=e?.theme??nr,i=hJ(t),o=hJ(e);return Cc(n,r)&&s7(t,e,["theme","parseDiffOptions"])&&s7(i,o)}function hJ(t){if(t!=null&&"parseDiffOptions"in t)return t.parseDiffOptions}function nN(t,e){return t?.start===e?.start&&t?.end===e?.end&&t?.side===e?.side&&t?.endSide===e?.endSide}function js(t){return{type:"text",value:t}}function zt({tagName:t,children:e=[],properties:n={}}){return{type:"element",tagName:t,properties:n,children:e}}function a0({name:t,width:e=16,height:n=16,properties:r}){return zt({tagName:"svg",properties:{width:e,height:n,viewBox:"0 0 16 16",...r},children:[zt({tagName:"use",properties:{href:`#${t.replace(/^#/,"")}`}})]})}function gJ(t){let e=t.children[0];for(;e!=null;){if(e.type==="element"&&e.tagName==="code")return e;"children"in e?e=e.children[0]:e=null}}function Gf(t){return zt({tagName:"div",properties:{"data-gutter":""},children:t})}function rv(t,e,n,r={}){return zt({tagName:"div",properties:{"data-line-type":t,"data-column-number":e,"data-line-index":n,...r},children:e!=null?[zt({tagName:"span",properties:{"data-line-number-content":""},children:[js(`${e}`)]})]:void 0})}function Os(t,e,n){return zt({tagName:"div",properties:{"data-gutter-buffer":e,"data-buffer-size":n,"data-line-type":e==="annotation"?void 0:t,style:e==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function bJ(){return zt({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[a0({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function yJ(t,e){return t.lineNumber===e.lineNumber&&t.side===e.side}var xJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var jp=class{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}};jp.prototype.normal={};jp.prototype.property={};jp.prototype.space=void 0;function rN(t,e){let n={},r={};for(let i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new jp(n,r,e)}function l7(t){return t.toLowerCase()}var To=class{constructor(e,n){this.attribute=n,this.property=e}};To.prototype.attribute="";To.prototype.booleanish=!1;To.prototype.boolean=!1;To.prototype.commaOrSpaceSeparated=!1;To.prototype.commaSeparated=!1;To.prototype.defined=!1;To.prototype.mustUseProperty=!1;To.prototype.number=!1;To.prototype.overloadedBoolean=!1;To.prototype.property="";To.prototype.spaceSeparated=!1;To.prototype.space=void 0;var c7={};fn(c7,{boolean:()=>sn,booleanish:()=>xi,commaOrSpaceSeparated:()=>Ds,commaSeparated:()=>Op,number:()=>He,overloadedBoolean:()=>iv,spaceSeparated:()=>ur});var TMe=0,sn=s0(),xi=s0(),iv=s0(),He=s0(),ur=s0(),Op=s0(),Ds=s0();function s0(){return 2**++TMe}var iN=Object.keys(c7),l0=class extends To{constructor(e,n,r,i){let o=-1;if(super(e,n),wJ(this,"space",i),typeof r=="number")for(;++o<iN.length;){let a=iN[o];wJ(this,iN[o],(r&c7[a])===c7[a])}}};l0.prototype.defined=!0;function wJ(t,e,n){n&&(t[e]=n)}function _c(t){let e={},n={};for(let[r,i]of Object.entries(t.properties)){let o=new l0(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[l7(r)]=r,n[l7(o.attribute)]=r}return new jp(e,n,t.space)}var oN=_c({properties:{ariaActiveDescendant:null,ariaAtomic:xi,ariaAutoComplete:null,ariaBusy:xi,ariaChecked:xi,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:ur,ariaCurrent:null,ariaDescribedBy:ur,ariaDetails:null,ariaDisabled:xi,ariaDropEffect:ur,ariaErrorMessage:null,ariaExpanded:xi,ariaFlowTo:ur,ariaGrabbed:xi,ariaHasPopup:null,ariaHidden:xi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ur,ariaLevel:He,ariaLive:null,ariaModal:xi,ariaMultiLine:xi,ariaMultiSelectable:xi,ariaOrientation:null,ariaOwns:ur,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:xi,ariaReadOnly:xi,ariaRelevant:null,ariaRequired:xi,ariaRoleDescription:ur,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:xi,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function ov(t,e){return e in t?t[e]:e}function av(t,e){return ov(t,e.toLowerCase())}var vJ=_c({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Op,acceptCharset:ur,accessKey:ur,action:null,allow:null,allowFullScreen:sn,allowPaymentRequest:sn,allowUserMedia:sn,alpha:sn,alt:null,as:null,async:sn,autoCapitalize:null,autoComplete:ur,autoFocus:sn,autoPlay:sn,blocking:ur,capture:null,charSet:null,checked:sn,cite:null,className:ur,closedBy:null,colorSpace:null,cols:He,colSpan:He,command:null,commandFor:null,content:null,contentEditable:xi,controls:sn,controlsList:ur,coords:He|Op,crossOrigin:null,data:null,dateTime:null,decoding:null,default:sn,defer:sn,dir:null,dirName:null,disabled:sn,download:iv,draggable:xi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:sn,formTarget:null,headers:ur,height:He,hidden:iv,high:He,href:null,hrefLang:null,htmlFor:ur,httpEquiv:ur,id:null,imageSizes:null,imageSrcSet:null,inert:sn,inputMode:null,integrity:null,is:null,isMap:sn,itemId:null,itemProp:ur,itemRef:ur,itemScope:sn,itemType:ur,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:sn,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:sn,muted:sn,name:null,nonce:null,noModule:sn,noValidate:sn,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:sn,optimum:He,pattern:null,ping:ur,placeholder:null,playsInline:sn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:sn,referrerPolicy:null,rel:ur,required:sn,reversed:sn,rows:He,rowSpan:He,sandbox:ur,scope:null,scoped:sn,seamless:sn,selected:sn,shadowRootClonable:sn,shadowRootCustomElementRegistry:sn,shadowRootDelegatesFocus:sn,shadowRootMode:null,shadowRootSerializable:sn,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:xi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:sn,useMap:null,value:xi,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ur,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:sn,declare:sn,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:sn,noHref:sn,noShade:sn,noWrap:sn,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:xi,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:sn,disablePictureInPicture:sn,disableRemotePlayback:sn,exportParts:Op,part:ur,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:av});var kJ=_c({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:Ds,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:ur,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:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:sn,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,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:Op,g2:Op,glyphName:Op,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:Ds,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,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:He,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:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ur,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ds,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ds,rev:Ds,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ds,requiredFeatures:Ds,requiredFonts:Ds,requiredFormats:Ds,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:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:Ds,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ds,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ds,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ov});var aN=_c({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var sN=_c({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:av});var lN=_c({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var RMe=/[A-Z]/g,CJ=/-[a-z]/g,AMe=/^data[-\w.:]+$/i;function cN(t,e){let n=l7(e),r=e,i=To;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&AMe.test(e)){if(e.charAt(4)==="-"){let o=e.slice(5).replace(CJ,IMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=e.slice(4);if(!CJ.test(o)){let a=o.replace(RMe,$Me);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=l0}return new i(r,e)}function $Me(t){return"-"+t.toLowerCase()}function IMe(t){return t.charAt(1).toUpperCase()}var _J=rN([oN,vJ,aN,sN,lN],"html"),sv=rN([oN,kJ,aN,sN,lN],"svg");var SJ={}.hasOwnProperty;function lv(t,e){let n=e||{};function r(i,...o){let a=r.invalid,s=r.handlers;if(i&&SJ.call(i,t)){let l=String(i[t]);a=SJ.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var NMe=/["&'<>`]/g,PMe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jMe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,OMe=/[|\\{}()[\]^$+*?.]/g,LJ=new WeakMap;function MJ(t,e){if(t=t.replace(e.subset?DMe(e.subset):NMe,r),e.subset||e.escapeOnly)return t;return t.replace(PMe,n).replace(jMe,r);function n(i,o,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function r(i,o,a){return e.format(i.charCodeAt(0),a.charCodeAt(o+1),e)}}function DMe(t){let e=LJ.get(t);return e||(e=FMe(t),LJ.set(t,e)),e}function FMe(t){let e=[],n=-1;for(;++n<t.length;)e.push(t[n].replace(OMe,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var BMe=/[\dA-Fa-f]/;function EJ(t,e,n){let r="&#x"+t.toString(16).toUpperCase();return n&&e&&!BMe.test(String.fromCharCode(e))?r:r+";"}var zMe=/\d/;function TJ(t,e,n){let r="&#"+String(t);return n&&e&&!zMe.test(String.fromCharCode(e))?r:r+";"}var RJ=["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"];var cv={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var AJ=["cent","copy","divide","gt","lt","not","para","times"];var $J={}.hasOwnProperty,uN={},uv;for(uv in cv)$J.call(cv,uv)&&(uN[cv[uv]]=uv);var qMe=/[^\dA-Za-z]/;function IJ(t,e,n,r){let i=String.fromCharCode(t);if($J.call(uN,i)){let o=uN[i],a="&"+o;return n&&RJ.includes(o)&&!AJ.includes(o)&&(!r||e&&e!==61&&qMe.test(String.fromCharCode(e)))?a:a+";"}return""}function NJ(t,e,n){let r=EJ(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=IJ(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let o=TJ(t,e,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Dp(t,e){return MJ(t,Object.assign({format:NJ},e))}var HMe=/^>|^->|<!--|-->|--!>|<!-$/g,GMe=[">"],UMe=["<",">"];function PJ(t,e,n,r){return r.settings.bogusComments?"<?"+Dp(t.value,Object.assign({},r.settings.characterReferences,{subset:GMe}))+">":"<!--"+t.value.replace(HMe,i)+"-->";function i(o){return Dp(o,Object.assign({},r.settings.characterReferences,{subset:UMe}))}}function jJ(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Ob(t,e){let n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function OJ(t,e){let n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function DJ(t){return t.join(" ").trim()}var VMe=/[ \t\n\f\r]/g;function c0(t){return typeof t=="object"?t.type==="text"?FJ(t.value):!1:FJ(t)}function FJ(t){return t.replace(VMe,"")===""}var Pi=BJ(1),dN=BJ(-1),ZMe=[];function BJ(t){return e;function e(n,r,i){let o=n?n.children:ZMe,a=(r||0)+t,s=o[a];if(!i)for(;s&&c0(s);)a+=t,s=o[a];return s}}var WMe={}.hasOwnProperty;function dv(t){return e;function e(n,r,i){return WMe.call(t,n.tagName)&&t[n.tagName](n,r,i)}}var u7=dv({body:XMe,caption:pN,colgroup:pN,dd:eEe,dt:JMe,head:pN,html:KMe,li:QMe,optgroup:tEe,option:nEe,p:YMe,rp:zJ,rt:zJ,tbody:iEe,td:qJ,tfoot:oEe,th:qJ,thead:rEe,tr:aEe});function pN(t,e,n){let r=Pi(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&c0(r.value.charAt(0)))}function KMe(t,e,n){let r=Pi(n,e);return!r||r.type!=="comment"}function XMe(t,e,n){let r=Pi(n,e);return!r||r.type!=="comment"}function YMe(t,e,n){let r=Pi(n,e);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 QMe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&r.tagName==="li"}function JMe(t,e,n){let r=Pi(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function eEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function zJ(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function tEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function nEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function rEe(t,e,n){let r=Pi(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function iEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function oEe(t,e,n){return!Pi(n,e)}function aEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function qJ(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var HJ=dv({body:cEe,colgroup:uEe,head:lEe,html:sEe,tbody:dEe});function sEe(t){let e=Pi(t,-1);return!e||e.type!=="comment"}function lEe(t){let e=new Set;for(let r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}let n=t.children[0];return!n||n.type==="element"}function cEe(t){let e=Pi(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&c0(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function uEe(t,e,n){let r=dN(n,e),i=Pi(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&u7(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function dEe(t,e,n){let r=dN(n,e),i=Pi(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&u7(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}var pv={name:[[` +`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${od(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),i=FQ(t);if(i===null)return r;t=i;let o='<a href="'+t+'"';return e&&(o+=' title="'+od(e)+'"'),o+=">"+r+"</a>",o}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=FQ(t);if(i===null)return od(n);t=i;let o=`<img src="${t}" alt="${od(n)}"`;return e&&(o+=` title="${od(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:od(t.text)}},zI=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},gu=class $I{options;renderer;textRenderer;constructor(e){this.options=e||a0,this.options.renderer=this.options.renderer||new Zw,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new zI}static parse(e,n){return new $I(n).parse(e)}static parseInline(e,n){return new $I(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let a=i,s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=s||"";continue}}let o=i;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<e.length;i++){let o=e[i];if(this.options.extensions?.renderers?.[o.type]){let s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=s||"";continue}}let a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"checkbox":{r+=n.checkbox(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return r}},r7=class{options;block;constructor(t){this.options=t||a0}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?hu.lex:hu.lexInline}provideParser(){return this.block?gu.parse:gu.parseInline}},pMe=class{defaults=II();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=gu;Renderer=Zw;TextRenderer=zI;Lexer=hu;Tokenizer=Vw;Hooks=r7;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let i=r;for(let o of i.header)n=n.concat(this.walkTokens(o.tokens,e));for(let o of i.rows)for(let a of o)n=n.concat(this.walkTokens(a.tokens,e));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,e));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{let a=i[o].flat(1/0);n=n.concat(this.walkTokens(a,e))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=e.renderers[i.name];o?e.renderers[i.name]=function(...a){let s=i.renderer.apply(this,a);return s===!1&&(s=o.apply(this,a)),s}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=e[i.level];o?o.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),n.renderer){let i=this.defaults.renderer||new Zw(this.defaults);for(let o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let a=o,s=n.renderer[a],l=i[a];i[a]=(...c)=>{let u=s.apply(i,c);return u===!1&&(u=l.apply(i,c)),u||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Vw(this.defaults);for(let o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let a=o,s=n.tokenizer[a],l=i[a];i[a]=(...c)=>{let u=s.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new r7;for(let o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let a=o,s=n.hooks[a],l=i[a];r7.passThroughHooks.has(o)?i[a]=c=>{if(this.defaults.async&&r7.passThroughHooksRespectAsync.has(o))return(async()=>{let d=await s.call(i,c);return l.call(i,d)})();let u=s.call(i,c);return l.call(i,u)}:i[a]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await s.apply(i,c);return d===!1&&(d=await l.apply(i,c)),d})();let u=s.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(a){let s=[];return s.push(o.call(this,a)),i&&(s=s.concat(i.call(this,a))),s}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return hu.lex(t,e??this.defaults)}parser(t,e){return gu.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let a=i.hooks?await i.hooks.preprocess(e):e,s=await(i.hooks?await i.hooks.provideLexer():t?hu.lex:hu.lexInline)(a,i),l=i.hooks?await i.hooks.processAllTokens(s):s;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser():t?gu.parse:gu.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(o);try{i.hooks&&(e=i.hooks.preprocess(e));let a=(i.hooks?i.hooks.provideLexer():t?hu.lex:hu.lexInline)(e,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let s=(i.hooks?i.hooks.provideParser():t?gu.parse:gu.parseInline)(a,i);return i.hooks&&(s=i.hooks.postprocess(s)),s}catch(a){return o(a)}}}onError(t,e){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+od(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},o0=new pMe;function _r(t,e){return o0.parse(t,e)}_r.options=_r.setOptions=function(t){return o0.setOptions(t),_r.defaults=o0.defaults,qQ(_r.defaults),_r};_r.getDefaults=II;_r.defaults=a0;_r.use=function(...t){return o0.use(...t),_r.defaults=o0.defaults,qQ(_r.defaults),_r};_r.walkTokens=function(t,e){return o0.walkTokens(t,e)};_r.parseInline=o0.parseInline;_r.Parser=gu;_r.parser=gu.parse;_r.Renderer=Zw;_r.TextRenderer=zI;_r.Lexer=hu;_r.lexer=hu.lex;_r.Tokenizer=Vw;_r.Hooks=r7;_r.parse=_r;var Hlt=_r.options,Glt=_r.setOptions,Ult=_r.use,Vlt=_r.walkTokens,Zlt=_r.parseInline;var Wlt=gu.parse,QQ=hu.lex;var mMe=["used","edited","read","searched","web","ran"];function JQ(t){switch(t){case"edit":case"delete":case"move":case"fileChange":return"edited";case"read":return"read";case"search":return"searched";case"fetch":return"web";case"execute":return"ran";default:return"used"}}function Xw(t){return t.filter(e=>e.tool).length>=2}function qI(t){let e=new Set(t.filter(n=>n.tool).map(n=>JQ(n.tool.kind)));return e.has("read")&&e.delete("searched"),mMe.filter(n=>e.has(n))}function eJ(t){let e=t.filter(o=>o.tool),n=o=>e.filter(a=>{let s=JQ(a.tool.kind);return s===o||o==="read"&&s==="searched"}).length,r=o=>{let a=n(o)===1;switch(o){case"used":return a?"used a tool":"used tools";case"edited":return a?"edited a file":"edited files";case"read":return a?"read a file":"read files";case"searched":return"searched the code";case"web":return"searched the web";case"ran":return a?"ran a command":"ran commands"}},i=qI(t).map(r).join(", ");return i.charAt(0).toUpperCase()+i.slice(1)}var fMe=/\bhttps?:\/\/(?:localhost|127\.0\.0\.1|0\.0\.0\.0)(?![\w-]|\.[\w-])(?::\d{1,5}(?!\d)|(?!:))(?:[/?#][^\s"'`<>()[\]{}]*)?/gi,hMe=/\x1b\[[0-9;]*[A-Za-z]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g;function gMe(t){let e;for(let n of t)if(n)for(let r of n.replace(hMe,"").matchAll(fMe)){let i=bMe(r[0].replace(/[.,;:!?*_]+$/,""));i&&(e=i)}return e}function bMe(t){try{let e=new URL(t);e.hostname==="0.0.0.0"&&(e.hostname="localhost");let n=e.port?Number(e.port):void 0;return n!==void 0&&(n<1||n>65535)?void 0:e.href}catch{return}}function tJ(t,e){return gMe([t.text,...e.flatMap(n=>[n.kind==="assistant"?n.text:void 0,...(n.items??[]).flatMap(r=>r.tool?.kind==="execute"?[r.tool.command,r.tool.output]:[])])])}function nJ(t){let e=new URL(t);return`${e.origin}${e.pathname}${e.search}`}function Yw(t){return typeof t=="number"&&t!==0&&Number.isFinite(new Date(t).getTime())}function iJ(t,e,n){let r;return t.map((i,o)=>{let a=Yw(i.promptAt)&&(o===0&&n&&e-i.promptAt>36e5||r!==void 0&&i.promptAt-r>36e5);return r=Yw(i.answerAt)?i.answerAt:void 0,a})}function rJ(t,e){let n=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric"}).formatToParts(t),r=i=>Number(n.find(o=>o.type===i)?.value);return Date.UTC(r("year"),r("month")-1,r("day"))/864e5}function oJ(t,e){let{timeZone:n}=e,r=e.locale??new Intl.DateTimeFormat().resolvedOptions().locale,i=Math.max(rJ(e.now,n)-rJ(t,n),0),o=l=>new Intl.DateTimeFormat(r,{timeZone:n,...l}).format(t),a;if(i<=1){let l=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(-i,"day");a=r.startsWith("en")?l[0].toUpperCase()+l.slice(1):l}else i<=7?a=o({weekday:"long"}):i<=365?a=o({weekday:"short",month:"short",day:"numeric"}):a=o({month:"short",day:"numeric",year:"numeric"});let s=o({hour:"numeric",minute:"2-digit"});return i>7?`${a} at ${s}`:`${a} ${s}`}var qf="worked",$b="date",Ib="thinking",Nb="working",Pb="preview",HI=":fold";function GI(t){let e=Math.floor(t/1e3);if(e<=0)return"0s";let n=Math.floor(e/3600),r=Math.floor(e%3600/60),i=e%60;return[n&&`${n}h`,r&&`${r}m`,i&&`${i}s`].filter(Boolean).join(" ")}var yMe=(t=0)=>t===1?"1 tool call":`${t} tool calls`;function UI(t,e){if(e.previous!==void 0)return e.previous===1?t("turn.previous.one"):t("turn.previous.other",{n:e.previous});if(e.durationMs===void 0)return yMe(e.toolCount);let n=GI(e.durationMs);return e.status==="cancelled"?t("turn.stopped",{time:n}):t("turn.worked",{time:n})}var Ab=t=>t.kind==="activity"&&(t.items??[]).some(e=>e.tool?.kind==="edit"||e.tool?.kind==="fileChange");function aJ(t,e,{now:n=Date.now(),working:r=!1}={}){let i=[],o=0;for(;o<t.length&&t[o].kind!=="user";)i.push(t[o++]);let a=o===0,s=[];for(;o<t.length;){let c=t[o++],u=[],d=[];for(;o<t.length&&(t[o].kind!=="user"||wMe(t[o]));){let p=t[o++];(p.kind==="user"?d:u).push(p)}s.push({user:c,turn:u,held:d})}let l=iJ(s.map(({user:c,turn:u})=>({promptAt:c.at,answerAt:[...u].reverse().find(xMe)?.at})),n,a);return s.forEach(({user:c,turn:u,held:d},p)=>{l[p]&&i.push({id:`${$b}-${c.id}`,version:1,at:c.at,kind:$b});let m=p===s.length-1;i.push(c,...vMe(c,u,e,r&&m,m,m&&d.length===0),...d)}),i}var xMe=t=>t.kind==="assistant",wMe=t=>!!(t.pending||t.failed);function vMe(t,e,n,r,i,o){let a=e.findIndex(y=>y.kind==="turnSummary");if(a<0)return r?_Me(t,e):i?e:CMe(t,e,n);let s=e[a],l=e.slice(0,a),c=-1;for(let y=l.length-1;y>=0;y-=1)if(l[y].kind==="assistant"){c=y;break}let u=c>=0?l[c]:void 0,d=(c>=0?l.slice(0,c):l).filter(y=>y.kind!=="typing"),p=c>=0?l.slice(c+1):[],m=[...d.filter(Ab),...p.filter(Ab)],f=p.filter(y=>!Ab(y)),h=[],x=s.version*kMe+(u?.version??0);if(d.length){let y=`${qf}-${t.id}`,b=n.has(y);h.push({id:y,version:x*2+(b?1:0),at:t.at,kind:qf,status:s.status,toolCount:s.toolCount,durationMs:u?Math.max(0,u.at-t.at):s.durationMs??Math.max(0,s.at-t.at)}),b&&h.push(...d.map(w=>({...w,id:Ab(w)?`${w.id}${HI}`:w.id,settled:!0})))}u&&h.push(u),h.push(...f,...sJ(m));let g=tJ(t,e);return g&&h.push({id:`${Pb}-${t.id}`,version:x,at:s.at,kind:Pb,text:g}),h.push({...s,folded:d.length>0,text:u?.text??s.text,...o&&t.text&&{prompt:t.text},version:x*2+(o?1:0)}),h.push(...e.slice(a+1)),h}var kMe=1e6;function sJ(t){if(t.length===0)return[];let[e]=t;return[{...e,version:t.reduce((n,r)=>n+r.version,0)*2+1,items:t.flatMap(n=>n.items??[]),toolCount:t.reduce((n,r)=>n+(r.toolCount??0),0),ended:!0}]}function CMe(t,e,n){let r=e.filter(d=>d.kind!=="typing"),i=-1;for(let d=r.length-1;d>=0;d-=1)if(r[d].kind==="assistant"){i=d;break}let o=i>=0?r.slice(0,i):r;if(o.length===0)return r;let a=`${qf}-${t.id}`,s=n.has(a),l=o.filter(Ab),c=o.reduce((d,p)=>d+(p.kind==="activity"?p.items?.length??1:1),0),u=o.reduce((d,p)=>d+p.version,0);return[{id:a,version:u*2+(s?1:0),at:t.at,kind:qf,previous:c},...s?o.map(d=>({...d,id:Ab(d)?`${d.id}${HI}`:d.id,settled:!0})):[],...i>=0?r.slice(i):[],...sJ(l)]}function _Me(t,e){let n=e.filter(a=>a.kind!=="typing"),r=n.at(-1);if(!r)return[{id:`${Ib}-${t.id}`,version:1,at:t.at,kind:Ib}];let i=r.kind==="assistant";if(i&&n.length===1)return n;let o={id:`${Nb}-${t.id}`,version:1,at:t.at,kind:Nb};return i&&Object.assign(o,{version:2,durationMs:Math.max(0,r.at-t.at)}),[o,...n]}var jb=t=>t.id.endsWith(HI);function lJ(t){let e=t?.split(/[-_\s]+/).find(Boolean);return e?e.toLowerCase():void 0}var cJ={claude:"Claude Code",codex:"Codex",gemini:"Gemini CLI",opencode:"OpenCode",cursor:"Cursor",pi:"Pi",goose:"Goose",amp:"Amp",qwen:"Qwen Code",copilot:"GitHub Copilot",aider:"Aider"};function Hf(t){let e=t.split(/[-_\s]+/).filter(Boolean),n=lJ(t),r=n&&Object.hasOwn(cJ,n)?cJ[n]:void 0;return r||e.map(i=>i[0].toUpperCase()+i.slice(1)).join(" ")||t}function Gf(t,e){return e&&e!==t?e:Hf(t)}var pJ=R(qe(),1),mJ=R(Q(),1);function uJ(t,e){let n=new Set(e);for(let r of t){let i=r.replace(/_/g,"-");if(n.has(i))return i;let[o,...a]=i.split("-"),s=o.toLowerCase();if(s==="zh"){let c=a.some(u=>/^(hant|tw|hk|mo)$/i.test(u))?"zh-Hant":"zh-Hans";if(n.has(c))return c;continue}if(s==="pt"&&n.has("pt-BR"))return"pt-BR";if((s==="no"||s==="nn")&&n.has("nb"))return"nb";if(n.has(s))return s}return"en"}function VI(t){let e=globalThis.document?.documentElement;e&&(e.lang=t,e.dir=/^(ar|fa|he|ur|ps|sd|ug|yi)(-|$)/i.test(t)?"rtl":"ltr")}var Qw=()=>globalThis.__cmuxPaneStrings??{};function fJ(t=globalThis.navigator?.languages??[]){return uJ(t,Object.keys(Qw()))}var o7=fJ();VI(o7);var ZI=new Set;function Ob(){return o7}function SMe(t){if(VI(t),t!==o7){o7=t;for(let e of ZI)e()}}function LMe(t){return ZI.add(t),()=>ZI.delete(t)}globalThis.window?.addEventListener("languagechange",()=>SMe(fJ()));function WI(t,e,n){return(Qw()[n]?.[t]??Qw().en?.[t]??t).replace(/\{(\w+)\}/g,(i,o)=>o in e?String(e[o]):i)}function we(t,e={},n=o7){return WI(t,e,n)}var dJ=new Map;function KI(t){let e=dJ.get(t);return e||(e=(n,r)=>we(n,r,t),dJ.set(t,e)),e}function XI(){return(0,mJ.useSyncExternalStore)(LMe,Ob,Ob)}function ve(){let t=(0,pJ.c)(2),e=XI(),n;return t[0]!==e?(n=KI(e),t[0]=e,t[1]=n):n=t[1],n}var pct=Qw();var x6=R(qe(),1),Ws=R(Q(),1);var QP=R(qe(),1),$l=R(Q(),1);var kc="diffs-container",MMe=(()=>{try{return!1}catch{return!1}})(),YI=/(?=^From [a-f0-9]+ .+$)/m,Jw=/(?=^diff --git)/gm,ev=/(?=^---\s+\S)/gm;var QI=/(?<=\n)/,JI=/^(---|\+\+\+)\s+([^\t\r\n]+)/,eN=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,tN=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,nN=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i;var Ap="header-prefix",$p="header-metadata",Ip="header-custom",nr={dark:"pierre-dark",light:"pierre-light"},Np="data-theme-css",Pp="data-unsafe-css";var rN="data-diffs-scrollbar-measure",a7="--diffs-scrollbar-gutter-measured",Eo=1,ad=1e5,tv={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},EMe={...tv,hunkLineCount:1};var iN=Object.freeze({fromStart:0,fromEnd:0}),s0={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},s7={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function l7(t,e,n){if(t===e||t==null||e==null)return t===e;let r=new Set(n),i=Object.keys(t),o=new Set(Object.keys(e));for(let a of i)if(o.delete(a),!r.has(a)&&(!(a in e)||t[a]!==e[a]))return!1;for(let a of Array.from(o))if(!r.has(a))return!1;return!0}function Cc(t,e){return t==null||e==null||typeof t=="string"||typeof e=="string"?t===e:t.dark===e.dark&&t.light===e.light}function nv(t,e){let n=t?.theme??nr,r=e?.theme??nr,i=hJ(t),o=hJ(e);return Cc(n,r)&&l7(t,e,["theme","parseDiffOptions"])&&l7(i,o)}function hJ(t){if(t!=null&&"parseDiffOptions"in t)return t.parseDiffOptions}function oN(t,e){return t?.start===e?.start&&t?.end===e?.end&&t?.side===e?.side&&t?.endSide===e?.endSide}function js(t){return{type:"text",value:t}}function qt({tagName:t,children:e=[],properties:n={}}){return{type:"element",tagName:t,properties:n,children:e}}function l0({name:t,width:e=16,height:n=16,properties:r}){return qt({tagName:"svg",properties:{width:e,height:n,viewBox:"0 0 16 16",...r},children:[qt({tagName:"use",properties:{href:`#${t.replace(/^#/,"")}`}})]})}function gJ(t){let e=t.children[0];for(;e!=null;){if(e.type==="element"&&e.tagName==="code")return e;"children"in e?e=e.children[0]:e=null}}function Uf(t){return qt({tagName:"div",properties:{"data-gutter":""},children:t})}function rv(t,e,n,r={}){return qt({tagName:"div",properties:{"data-line-type":t,"data-column-number":e,"data-line-index":n,...r},children:e!=null?[qt({tagName:"span",properties:{"data-line-number-content":""},children:[js(`${e}`)]})]:void 0})}function Os(t,e,n){return qt({tagName:"div",properties:{"data-gutter-buffer":e,"data-buffer-size":n,"data-line-type":e==="annotation"?void 0:t,style:e==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function bJ(){return qt({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[l0({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function yJ(t,e){return t.lineNumber===e.lineNumber&&t.side===e.side}var xJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var jp=class{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}};jp.prototype.normal={};jp.prototype.property={};jp.prototype.space=void 0;function aN(t,e){let n={},r={};for(let i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new jp(n,r,e)}function c7(t){return t.toLowerCase()}var To=class{constructor(e,n){this.attribute=n,this.property=e}};To.prototype.attribute="";To.prototype.booleanish=!1;To.prototype.boolean=!1;To.prototype.commaOrSpaceSeparated=!1;To.prototype.commaSeparated=!1;To.prototype.defined=!1;To.prototype.mustUseProperty=!1;To.prototype.number=!1;To.prototype.overloadedBoolean=!1;To.prototype.property="";To.prototype.spaceSeparated=!1;To.prototype.space=void 0;var u7={};fn(u7,{boolean:()=>sn,booleanish:()=>xi,commaOrSpaceSeparated:()=>Ds,commaSeparated:()=>Op,number:()=>He,overloadedBoolean:()=>iv,spaceSeparated:()=>ur});var TMe=0,sn=c0(),xi=c0(),iv=c0(),He=c0(),ur=c0(),Op=c0(),Ds=c0();function c0(){return 2**++TMe}var sN=Object.keys(u7),u0=class extends To{constructor(e,n,r,i){let o=-1;if(super(e,n),wJ(this,"space",i),typeof r=="number")for(;++o<sN.length;){let a=sN[o];wJ(this,sN[o],(r&u7[a])===u7[a])}}};u0.prototype.defined=!0;function wJ(t,e,n){n&&(t[e]=n)}function _c(t){let e={},n={};for(let[r,i]of Object.entries(t.properties)){let o=new u0(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[c7(r)]=r,n[c7(o.attribute)]=r}return new jp(e,n,t.space)}var lN=_c({properties:{ariaActiveDescendant:null,ariaAtomic:xi,ariaAutoComplete:null,ariaBusy:xi,ariaChecked:xi,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:ur,ariaCurrent:null,ariaDescribedBy:ur,ariaDetails:null,ariaDisabled:xi,ariaDropEffect:ur,ariaErrorMessage:null,ariaExpanded:xi,ariaFlowTo:ur,ariaGrabbed:xi,ariaHasPopup:null,ariaHidden:xi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ur,ariaLevel:He,ariaLive:null,ariaModal:xi,ariaMultiLine:xi,ariaMultiSelectable:xi,ariaOrientation:null,ariaOwns:ur,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:xi,ariaReadOnly:xi,ariaRelevant:null,ariaRequired:xi,ariaRoleDescription:ur,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:xi,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function ov(t,e){return e in t?t[e]:e}function av(t,e){return ov(t,e.toLowerCase())}var vJ=_c({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Op,acceptCharset:ur,accessKey:ur,action:null,allow:null,allowFullScreen:sn,allowPaymentRequest:sn,allowUserMedia:sn,alpha:sn,alt:null,as:null,async:sn,autoCapitalize:null,autoComplete:ur,autoFocus:sn,autoPlay:sn,blocking:ur,capture:null,charSet:null,checked:sn,cite:null,className:ur,closedBy:null,colorSpace:null,cols:He,colSpan:He,command:null,commandFor:null,content:null,contentEditable:xi,controls:sn,controlsList:ur,coords:He|Op,crossOrigin:null,data:null,dateTime:null,decoding:null,default:sn,defer:sn,dir:null,dirName:null,disabled:sn,download:iv,draggable:xi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:sn,formTarget:null,headers:ur,height:He,hidden:iv,high:He,href:null,hrefLang:null,htmlFor:ur,httpEquiv:ur,id:null,imageSizes:null,imageSrcSet:null,inert:sn,inputMode:null,integrity:null,is:null,isMap:sn,itemId:null,itemProp:ur,itemRef:ur,itemScope:sn,itemType:ur,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:sn,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:sn,muted:sn,name:null,nonce:null,noModule:sn,noValidate:sn,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:sn,optimum:He,pattern:null,ping:ur,placeholder:null,playsInline:sn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:sn,referrerPolicy:null,rel:ur,required:sn,reversed:sn,rows:He,rowSpan:He,sandbox:ur,scope:null,scoped:sn,seamless:sn,selected:sn,shadowRootClonable:sn,shadowRootCustomElementRegistry:sn,shadowRootDelegatesFocus:sn,shadowRootMode:null,shadowRootSerializable:sn,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:xi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:sn,useMap:null,value:xi,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ur,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:sn,declare:sn,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:sn,noHref:sn,noShade:sn,noWrap:sn,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:xi,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:sn,disablePictureInPicture:sn,disableRemotePlayback:sn,exportParts:Op,part:ur,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:av});var kJ=_c({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:Ds,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:ur,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:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:sn,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,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:Op,g2:Op,glyphName:Op,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:Ds,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,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:He,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:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ur,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ds,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ds,rev:Ds,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ds,requiredFeatures:Ds,requiredFonts:Ds,requiredFormats:Ds,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:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:Ds,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ds,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ds,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ov});var cN=_c({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var uN=_c({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:av});var dN=_c({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var RMe=/[A-Z]/g,CJ=/-[a-z]/g,AMe=/^data[-\w.:]+$/i;function pN(t,e){let n=c7(e),r=e,i=To;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&AMe.test(e)){if(e.charAt(4)==="-"){let o=e.slice(5).replace(CJ,IMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=e.slice(4);if(!CJ.test(o)){let a=o.replace(RMe,$Me);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=u0}return new i(r,e)}function $Me(t){return"-"+t.toLowerCase()}function IMe(t){return t.charAt(1).toUpperCase()}var _J=aN([lN,vJ,cN,uN,dN],"html"),sv=aN([lN,kJ,cN,uN,dN],"svg");var SJ={}.hasOwnProperty;function lv(t,e){let n=e||{};function r(i,...o){let a=r.invalid,s=r.handlers;if(i&&SJ.call(i,t)){let l=String(i[t]);a=SJ.call(s,l)?s[l]:r.unknown}if(a)return a.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var NMe=/["&'<>`]/g,PMe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jMe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,OMe=/[|\\{}()[\]^$+*?.]/g,LJ=new WeakMap;function MJ(t,e){if(t=t.replace(e.subset?DMe(e.subset):NMe,r),e.subset||e.escapeOnly)return t;return t.replace(PMe,n).replace(jMe,r);function n(i,o,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function r(i,o,a){return e.format(i.charCodeAt(0),a.charCodeAt(o+1),e)}}function DMe(t){let e=LJ.get(t);return e||(e=FMe(t),LJ.set(t,e)),e}function FMe(t){let e=[],n=-1;for(;++n<t.length;)e.push(t[n].replace(OMe,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var BMe=/[\dA-Fa-f]/;function EJ(t,e,n){let r="&#x"+t.toString(16).toUpperCase();return n&&e&&!BMe.test(String.fromCharCode(e))?r:r+";"}var zMe=/\d/;function TJ(t,e,n){let r="&#"+String(t);return n&&e&&!zMe.test(String.fromCharCode(e))?r:r+";"}var RJ=["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"];var cv={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var AJ=["cent","copy","divide","gt","lt","not","para","times"];var $J={}.hasOwnProperty,mN={},uv;for(uv in cv)$J.call(cv,uv)&&(mN[cv[uv]]=uv);var qMe=/[^\dA-Za-z]/;function IJ(t,e,n,r){let i=String.fromCharCode(t);if($J.call(mN,i)){let o=mN[i],a="&"+o;return n&&RJ.includes(o)&&!AJ.includes(o)&&(!r||e&&e!==61&&qMe.test(String.fromCharCode(e)))?a:a+";"}return""}function NJ(t,e,n){let r=EJ(t,e,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=IJ(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let o=TJ(t,e,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Dp(t,e){return MJ(t,Object.assign({format:NJ},e))}var HMe=/^>|^->|<!--|-->|--!>|<!-$/g,GMe=[">"],UMe=["<",">"];function PJ(t,e,n,r){return r.settings.bogusComments?"<?"+Dp(t.value,Object.assign({},r.settings.characterReferences,{subset:GMe}))+">":"<!--"+t.value.replace(HMe,i)+"-->";function i(o){return Dp(o,Object.assign({},r.settings.characterReferences,{subset:UMe}))}}function jJ(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Db(t,e){let n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function OJ(t,e){let n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function DJ(t){return t.join(" ").trim()}var VMe=/[ \t\n\f\r]/g;function d0(t){return typeof t=="object"?t.type==="text"?FJ(t.value):!1:FJ(t)}function FJ(t){return t.replace(VMe,"")===""}var Pi=BJ(1),fN=BJ(-1),ZMe=[];function BJ(t){return e;function e(n,r,i){let o=n?n.children:ZMe,a=(r||0)+t,s=o[a];if(!i)for(;s&&d0(s);)a+=t,s=o[a];return s}}var WMe={}.hasOwnProperty;function dv(t){return e;function e(n,r,i){return WMe.call(t,n.tagName)&&t[n.tagName](n,r,i)}}var d7=dv({body:XMe,caption:hN,colgroup:hN,dd:eEe,dt:JMe,head:hN,html:KMe,li:QMe,optgroup:tEe,option:nEe,p:YMe,rp:zJ,rt:zJ,tbody:iEe,td:qJ,tfoot:oEe,th:qJ,thead:rEe,tr:aEe});function hN(t,e,n){let r=Pi(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&d0(r.value.charAt(0)))}function KMe(t,e,n){let r=Pi(n,e);return!r||r.type!=="comment"}function XMe(t,e,n){let r=Pi(n,e);return!r||r.type!=="comment"}function YMe(t,e,n){let r=Pi(n,e);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 QMe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&r.tagName==="li"}function JMe(t,e,n){let r=Pi(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function eEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function zJ(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function tEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function nEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function rEe(t,e,n){let r=Pi(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function iEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function oEe(t,e,n){return!Pi(n,e)}function aEe(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function qJ(t,e,n){let r=Pi(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var HJ=dv({body:cEe,colgroup:uEe,head:lEe,html:sEe,tbody:dEe});function sEe(t){let e=Pi(t,-1);return!e||e.type!=="comment"}function lEe(t){let e=new Set;for(let r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}let n=t.children[0];return!n||n.type==="element"}function cEe(t){let e=Pi(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&d0(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function uEe(t,e,n){let r=fN(n,e),i=Pi(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&d7(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function dEe(t,e,n){let r=fN(n,e),i=Pi(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&d7(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}var pv={name:[[` \f\r &/=>`.split(""),` \f\r "&'/=>\``.split("")],[`\0 \f\r "&'/<=>`.split(""),`\0 @@ -102,10 +102,10 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error \f\r &>`.split(""),`\0 \f\r "&'<=>\``.split("")],[`\0 \f\r "&'<=>\``.split(""),`\0 -\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function GJ(t,e,n,r){let i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags,a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase()),s=[],l;i.space==="html"&&t.tagName==="svg"&&(r.schema=sv);let c=pEe(r,t.properties),u=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,u&&(a=!1),(c||!o||!HJ(t,e,n))&&(s.push("<",t.tagName,c?" "+c:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!o||!u7(t,e,n))&&s.push("</"+t.tagName+">"),s.join("")}function pEe(t,e){let n=[],r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){let o=mEe(t,i,e[i]);o&&n.push(o)}}for(;++r<n.length;){let o=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function mEe(t,e,n){let r=cN(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1,a=t.quote,s;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"";let l=Dp(r.attribute,Object.assign({},t.settings.characterReferences,{subset:pv.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?OJ:DJ)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(s=Dp(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:pv.unquoted[i][o]}))),s!==n&&(t.settings.quoteSmart&&Ob(n,a)>Ob(n,t.alternative)&&(a=t.alternative),s=a+Dp(n,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?pv.single:pv.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}var fEe=["<","&"];function mv(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Dp(t.value,Object.assign({},r.settings.characterReferences,{subset:fEe}))}function UJ(t,e,n,r){return r.settings.allowDangerousHtml?t.value:mv(t,e,n,r)}function VJ(t,e,n,r){return r.all(t)}var ZJ=lv("type",{invalid:hEe,unknown:gEe,handlers:{comment:PJ,doctype:jJ,element:GJ,raw:UJ,root:VJ,text:mv}});function hEe(t){throw new Error("Expected node, not `"+t+"`")}function gEe(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}var bEe={},yEe={},xEe=[];function Vo(t,e){let n=e||bEe,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:wEe,all:vEe,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||xJ,characterReferences:n.characterReferences||yEe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?sv:_J,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function wEe(t,e,n){return ZJ(t,e,n,this)}function vEe(t){let e=[],n=t&&t.children||xEe,r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}var bv=class{hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:"idle"};constructor(t,e){this.mode=t,this.options=e}setOptions(t){this.options=t}cleanUp(){this.pre?.removeEventListener("click",this.handlePointerClick),this.pre?.removeEventListener("pointerdown",this.handlePointerDown),this.pre?.removeEventListener("pointermove",this.handlePointerMove),this.pre?.removeEventListener("pointerleave",this.handlePointerLeave),this.pre?.removeAttribute("data-interactive-lines"),this.pre?.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(t){this.setSelectionDirty();let{usesCustomGutterUtility:e=!1,enableGutterUtility:n=!1}=this.options;this.pre!==t&&(this.cleanUp(),this.pre=t),n?this.ensureGutterUtilityNode(e):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode==="gutterSelecting"&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(t),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(t,e){let n=!(t===this.selectedRange||nN(t??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.proposedSelectedRange=void 0,this.selectedRange=t,this.renderSelection(),this.placeUtility(),n&&e?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{let t=this.gutterUtilityLine??this.hoveredLine;if(t!=null){if(this.mode==="diff"&&t.type==="diff-line")return{lineNumber:t.lineNumber,side:t.annotationSide};if(this.mode==="file"&&t.type==="line")return{lineNumber:t.lineNumber}}};handlePointerClick=t=>{let{onHunkExpand:e,onLineClick:n,onLineNumberClick:r,onTokenClick:i,onMergeConflictActionClick:o}=this.options;e==null&&n==null&&r==null&&o==null&&i==null||this.options.onGutterUtilityClick!=null&&hv(t.composedPath())||(Fp(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",t),this.handlePointerEvent({eventType:"click",event:t}))};handlePointerMove=t=>{if(t.pointerType!=="mouse")return;let{lineHoverHighlight:e="disabled",onLineEnter:n,onLineLeave:r,onTokenEnter:i,onTokenLeave:o,enableGutterUtility:a=!1}=this.options;e==="disabled"&&!a&&n==null&&r==null&&i==null&&o==null||(Fp(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",t),this.handlePointerEvent({eventType:"move",event:t}))};handlePointerLeave=t=>{let{__debugPointerEvents:e}=this.options;if(Fp(e,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null&&this.hoveredToken==null){Fp(e,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token");return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,t),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:t,event:e}){let{__debugPointerEvents:n}=this.options,r=e.composedPath();Fp(n,t,"FileDiff.DEBUG.handlePointerEvent:",{eventType:t,composedPath:r});let i=this.resolvePointerTarget(r);Fp(n,t,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",i);let{onLineClick:o,onLineNumberClick:a,onLineEnter:s,onLineLeave:l,onTokenClick:c,onTokenEnter:u,onTokenLeave:d,onHunkExpand:p,onMergeConflictActionClick:m}=this.options;switch(t){case"move":{let f=mN(i)&&this.hoveredLine?.lineElement===i.lineElement;gv(i)&&this.hoveredToken?.tokenElement===i.tokenElement||(this.hoveredToken!=null&&(d?.(this.hoveredToken,e),this.clearHoveredToken()),gv(i)&&(this.setHoveredToken(this.toTokenEventBaseProps(i)),u?.(this.hoveredToken,e))),f||(this.hoveredLine!=null&&(l?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),mN(i)?(this.setHoveredLine(this.toEventBaseProps(i)),this.placeUtility(),s?.({...this.hoveredLine,event:e})):this.placeUtility());break}case"click":{if(i==null)break;if(_Ee(i)&&m!=null){m(i);break}if(CEe(i)&&p!=null){p(i.hunkIndex,i.all||e.shiftKey?"both":i.direction,i.all||e.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!mN(i))break;gv(i)&&c!=null&&c(this.toTokenEventBaseProps(i),e);let f=this.toEventBaseProps(i);a!=null&&i.numberColumn?a({...f,event:e}):o?.({...f,event:e});break}}}syncPointerListeners(t){let{__debugPointerEvents:e,lineHoverHighlight:n="disabled",onLineClick:r,onLineNumberClick:i,onLineEnter:o,onLineLeave:a,onTokenClick:s,onTokenEnter:l,onTokenLeave:c,onHunkExpand:u,onMergeConflictActionClick:d,enableGutterUtility:p=!1,enableLineSelection:m=!1,onGutterUtilityClick:f}=this.options,h=f!=null,x=n!=="disabled"||r!=null||i!=null||o!=null||a!=null||s!=null||l!=null||c!=null||u!=null||d!=null||p||m||h;x&&!this.hasPointerListeners?(t.addEventListener("click",this.handlePointerClick),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointermove",this.handlePointerMove),t.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,Fp(e,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{let b=[];return(e==="both"||e==="click")&&(r!=null&&b.push("onLineClick"),i!=null&&b.push("onLineNumberClick"),u!=null&&b.push("expandable hunk separators"),d!=null&&b.push("merge conflict actions")),b})()),Fp(e,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),Fp(e,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!x&&this.hasPointerListeners&&(t.removeEventListener("click",this.handlePointerClick),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointermove",this.handlePointerMove),t.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);let g=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",y=this.pointerSession.mode==="gutterSelecting";(!m&&g||!h&&y)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;let{onLineClick:t,onLineNumberClick:e,enableLineSelection:n=!1}=this.options,r=t!=null,i=e!=null||n;r&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!r&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),i&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!i&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}handlePointerDown=t=>{if(t.pointerType==="mouse"&&t.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;let e=t.composedPath();hv(e)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(t):(t.pointerType!=="mouse"&&this.revealUtilityFromGutterPath(e),this.startLineSelectionFromPointerDown(t))};startLineSelectionFromPointerDown(t){let{enableLineSelection:e=!1}=this.options;if(!e)return;let n=this.resolveSelectionInfo(t,{source:"event-path",requireNumberColumn:!0});if(n==null)return;let{pre:r}=this;if(r==null)return;t.preventDefault();let{lineNumber:i,eventSide:o,lineIndex:a}=n;if(t.shiftKey&&this.selectedRange!=null){let s=this.getIndexesFromSelection(this.selectedRange,r.getAttribute("data-diff-type")==="split");if(s==null)return;let l=s.start<=s.end?a>=s.start:a<=s.end;this.selectionAnchor={lineNumber:l?this.selectedRange.start:this.selectedRange.end,side:l?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(i,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:t.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===i&&this.selectedRange?.end===i){let s={lineNumber:i,side:o};this.selectionAnchor=s,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:t.pointerId,anchor:s,pending:s},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:i,side:o},this.updateSelection(i,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:t.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(t){let{enableLineSelection:e=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;let r=this.currentSelectionEnds(),i=r?.bottom??this.resolveSelectionPoint(t,{source:"event-path",excludeUtility:!1}),o=r?.top??i;i==null||o==null||(t.preventDefault(),t.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:t.pointerId,anchor:o,current:i},e&&(this.selectionAnchor={lineNumber:o.lineNumber,side:o.side},this.updateSelection(i.lineNumber,i.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=t=>{let{enableLineSelection:e=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let n=this.resolveSelectionPoint(t,{source:"coordinates-first"});if(n==null)return;this.pointerSession.current=n,e===!0&&this.updateSelection(n.lineNumber,n.side);return}case"selecting":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let n=this.resolveSelectionInfo(t,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;this.updateSelection(n.lineNumber,n.eventSide);return}case"pendingSingleLineUnselect":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let n=this.resolveSelectionInfo(t,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;let r={lineNumber:n.lineNumber,side:n.eventSide};if(yJ(this.pointerSession.pending,r))return;this.updateSelection(n.lineNumber,n.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:t.pointerId};return}}};handleDocumentPointerUp=t=>{let{enableLineSelection:e=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let r=this.resolveSelectionPoint(t,{source:"coordinates-first"});r!=null&&(this.pointerSession.current=r,e&&this.updateSelection(r.lineNumber,r.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,e&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case"selecting":if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=t=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&t.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(t){let{lineHoverHighlight:e="disabled"}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=t,e!=="disabled"&&((e==="both"||e==="line")&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),(e==="both"||e==="number")&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(t){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=t}ensureGutterUtilityNode(t){if(this.gutterUtilityContainer==null&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),t)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot==null&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){let e=document.createElement("div");e.innerHTML=Vo(bJ());let n=e.firstElementChild;if(!(n instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");n.remove(),this.gutterUtilityButton=n}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(t){if(this.placeUtilityFromSelection())return;let e=this.resolvePointerTarget(t);d7(e)&&e.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(e))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){let t=this.currentSelectionEnds();if(t==null)return!1;let e=this.targetForSelectionPoint(t.bottom);return e==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(e)),!0}showUtilityOnLine(t){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=t,t.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){let t=this.getCurrentSelectionRange();return t==null?void 0:this.selectionEnds(t)}selectionEnds(t){let e={lineNumber:t.start,side:t.side},n={lineNumber:t.end,side:t.endSide??t.side},r=this.selectionPointRowIndex(e),i=this.selectionPointRowIndex(n);if(!(r==null||i==null))return r>i?{top:n,bottom:e}:{top:e,bottom:n}}selectionPointRowIndex(t){let e=this.getLineIndex(t.lineNumber,t.side);if(e!=null)return this.isSplitDiff()?e[1]:e[0]}targetForSelectionPoint(t){if(this.pre==null)return;let e=this.getLineIndex(t.lineNumber,t.side);if(e==null)return;let n=this.mode==="diff"?`${e[0]},${e[1]}`:`${e[0]}`,r=this.pre.querySelectorAll(`[data-column-number="${t.lineNumber}"][data-line-index="${n}"]`);for(let i of r){if(!(i instanceof HTMLElement))continue;let o=this.resolvePointerTarget(fv(i));if(d7(o)&&!(this.mode==="diff"&&t.side!=null&&o.side!==t.side))return o}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){this.pointerSession.mode==="pendingSingleLineUnselect"&&(this.pointerSession={mode:"idle"})}selectionInfoFromPath(t,e){let n=this.resolvePointerTarget(t);if(d7(n)&&!(e&&!n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode==="diff"?n.side:void 0}}resolveSelectionInfo(t,e){let n=this.resolveSelectionPath(t,e);return n!=null?this.selectionInfoFromPath(n,e.requireNumberColumn):void 0}selectionPointFromPath(t){let e=this.resolvePointerTarget(t);if(d7(e))return{lineNumber:e.lineNumber,side:this.mode==="diff"?e.side:void 0}}resolveSelectionPoint(t,e){let n=this.resolveSelectionPath(t,e);return n!=null?this.selectionPointFromPath(n):void 0}resolveSelectionPath(t,e){let n=e.excludeUtility!==!1;switch(e.source){case"event-path":return this.pathFromEventPath(t.composedPath(),n);case"coordinates-first":{let r=this.pathFromCoordinates(t,n);return r!==void 0?r??void 0:this.pathFromEventPath(t.composedPath(),n)}}}pathFromCoordinates(t,e){let n=this.hitTest(t);if(n!==void 0)return n===null?null:this.pathFromElement(n,e)??null}pathFromEventPath(t,e){if(!(e&&hv(t))){for(let n of t)if(n instanceof Element)return this.pathFromElement(n,e)}}pathFromElement(t,e){let n=fv(t);if(e&&hv(n))return;let r=LEe(t);return r!=null?fv(r):this.pathFromAnnotationSlot(t)}pathFromAnnotationSlot(t){let e=EEe(MEe(t));if(e==null)return;let n=this.targetForSelectionPoint(e);return n!=null?fv(n.lineElement):void 0}hitTest(t){if(!Number.isFinite(t.clientX)||!Number.isFinite(t.clientY))return;let e=this.pre?.getRootNode(),n=KJ(e)?e:KJ(document)?document:void 0;if(n!=null)return n.elementFromPoint(t.clientX,t.clientY)}getLineIndex(t,e){let{getLineIndex:n}=this.options;return n!=null?n(t,e):[t-1,t-1]}getCurrentSelectionRange(){return this.proposedSelectedRange!==void 0?this.proposedSelectedRange:this.selectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(t,e,n=!0){let r=this.getCurrentSelectionRange(),i;if(t==null)i=null;else{let o=this.selectionAnchor?.side??e,a=this.selectionAnchor?.lineNumber??t;i=this.buildSelectionRange(a,t,o,e)}nN(r??void 0,i??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=i:(this.selectedRange=i,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(t,e){if(this.pre==null)return;let n=this.getLineIndex(t.start,t.side),r=this.getLineIndex(t.end,t.endSide??t.side);return n!=null&&r!=null?{start:e?n[1]:n[0],end:e?r[1]:r[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;let t=this.pre.querySelectorAll("[data-selected-line]");for(let s of t)s.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;let{children:e}=this.pre;if(e.length===0)return;if(e.length>2)throw console.error(e),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");let n=this.pre.getAttribute("data-diff-type")==="split",r=this.getIndexesFromSelection(this.selectedRange,n);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),new Error("InteractionManager.renderSelection: No valid rowRange");let i=r.start===r.end,o=Math.min(r.start,r.end),a=Math.max(r.start,r.end);for(let s of e){let[l,c]=s.children,u=c.children.length;if(u!==l.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let d=0;d<u;d++){let p=c.children[d],m=l.children[d];if(!(p instanceof HTMLElement)||!(m instanceof HTMLElement))continue;let f=this.parseLineIndex(p,n);if((f??0)>a)break;if(f==null||f<o)continue;let h=i?"single":f===o?"first":f===a?"last":"";p.setAttribute("data-selected-line",h),m.setAttribute("data-selected-line",h),m.nextSibling instanceof HTMLElement&&p.nextSibling instanceof HTMLElement&&(p.nextSibling.hasAttribute("data-line-annotation")||p.nextSibling.hasAttribute("data-merge-conflict-actions"))&&(i?(h="last",p.setAttribute("data-selected-line","first")):f===o?h="":f===a&&p.setAttribute("data-selected-line",""),p.nextSibling.setAttribute("data-selected-line",h),m.nextSibling.setAttribute("data-selected-line",h))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.getCurrentSelectionRange()??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.getCurrentSelectionRange()??null)}notifySelectionStart(t){this.options.onLineSelectionStart?.(t)}notifySelectionEnd(t){this.options.onLineSelectionEnd?.(t)}toEventBaseProps(t){return this.mode==="file"?{type:"line",lineElement:t.lineElement,lineNumber:t.lineNumber,numberColumn:t.numberColumn,numberElement:t.numberElement}:{type:"diff-line",annotationSide:t.side,lineType:t.lineType,lineElement:t.lineElement,numberElement:t.numberElement,lineNumber:t.lineNumber,numberColumn:t.numberColumn}}toTokenEventBaseProps({lineCharEnd:t,lineCharStart:e,lineNumber:n,side:r,tokenElement:i,tokenText:o}){return this.mode==="file"?{type:"token",lineCharEnd:t,lineCharStart:e,lineNumber:n,tokenElement:i,tokenText:o}:{type:"token",lineCharEnd:t,lineCharStart:e,lineNumber:n,side:r,tokenElement:i,tokenText:o}}buildSelectedLineRange(t,e){return this.buildSelectionRange(t.lineNumber,e.lineNumber,t.side,e.side)}buildSelectionRange(t,e,n,r){return{start:t,end:e,...n!=null?{side:n}:{},...n!==r&&r!=null?{endSide:r}:{}}}resolvePointerTarget(t){let e=!1,n,r,i,o,a,s,l,c,u,d;for(let m of t){if(!(m instanceof HTMLElement))continue;if(d==null&&m.hasAttribute("data-merge-conflict-action")){let g=m.getAttribute("data-merge-conflict-action")??void 0,y=m.getAttribute("data-merge-conflict-conflict-index")??void 0,b=y!=null?Number.parseInt(y,10):NaN;SEe(g)&&Number.isFinite(b)&&(d={kind:"merge-conflict-action",resolution:g,conflictIndex:b})}if(s==null&&m.hasAttribute("data-char")){s=m;let g=m.getAttribute("data-char");if(g!=null){let y=Number.parseInt(g,10);if(!Number.isNaN(y)){let b=m.textContent??"",w=y+b.length;(b.trim()!==""||this.options.enableTokenInteractionsOnWhitespace===!0)&&(l={tokenElement:s,lineCharStart:y,lineCharEnd:w,tokenText:b});continue}}}let f=a==null?m.getAttribute("data-column-number")??void 0:void 0;if(f!=null){a=m,u=Number.parseInt(f,10),e=!0,n=YJ(m),o=m.getAttribute("data-line-index")??void 0;continue}let h=i==null?m.getAttribute("data-line")??void 0:void 0;if(h!=null){i=m,u=Number.parseInt(h,10),n=YJ(m),o=m.getAttribute("data-line-index")??void 0;continue}if(c==null&&(m.hasAttribute("data-expand-button")||m.hasAttribute("data-unmodified-lines"))){c={hunkIndex:void 0,direction:m.hasAttribute("data-expand-up")?"up":m.hasAttribute("data-expand-down")?"down":"both",all:m.hasAttribute("data-expand-all-button")};continue}let x=c!=null?m.getAttribute("data-expand-index")??void 0:void 0;if(c!=null&&x!=null){let g=Number.parseInt(x,10);Number.isNaN(g)||(c.hunkIndex=g);continue}if(r==null&&m.hasAttribute("data-code")){r=m;break}}if(d!=null)return d;if(c?.hunkIndex!=null)return{type:"line-info",hunkIndex:c.hunkIndex,direction:c.direction,all:c.all};if(i??=o!=null?WJ(r,`[data-line][data-line-index="${o}"]`):void 0,a??=o!=null?WJ(r,`[data-column-number][data-line-index="${o}"]`):void 0,r==null||i==null||a==null||n==null||u==null||Number.isNaN(u))return;let p=this.parseLineIndex(i,this.isSplitDiff());return l!=null?this.mode==="file"?{kind:"token",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:void 0,splitLineIndex:p,...l}:{kind:"token",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:XJ(n,r),splitLineIndex:p,...l}:this.mode==="file"?{kind:"line",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:void 0,splitLineIndex:p}:{kind:"line",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:XJ(n,r),splitLineIndex:p}}isSplitDiff(){return this.pre?.getAttribute("data-diff-type")==="split"}parseLineIndex(t,e){let n=(t.getAttribute("data-line-index")??"").split(",").map(r=>Number.parseInt(r,10)).filter(r=>!Number.isNaN(r));if(e&&n.length===2)return n[1];if(!e)return n[0]}};function Db({enableTokenInteractionsOnWhitespace:t,enableGutterUtility:e,lineHoverHighlight:n,onGutterUtilityClick:r,onLineClick:i,onLineEnter:o,onLineLeave:a,onLineNumberClick:s,onTokenClick:l,onTokenEnter:c,onTokenLeave:u,renderGutterUtility:d,__debugPointerEvents:p,enableLineSelection:m,controlledSelection:f,onLineSelected:h,onLineSelectionStart:x,onLineSelectionChange:g,onLineSelectionEnd:y},b,w,v){return{enableTokenInteractionsOnWhitespace:t,enableGutterUtility:kEe({enableGutterUtility:e,renderGutterUtility:d,onGutterUtilityClick:r}),usesCustomGutterUtility:d!=null,lineHoverHighlight:n,onGutterUtilityClick:r,onHunkExpand:b,onMergeConflictActionClick:v,onLineClick:i,onLineEnter:o,onLineLeave:a,onLineNumberClick:s,onTokenClick:l,onTokenEnter:c,onTokenLeave:u,__debugPointerEvents:p,enableLineSelection:m,controlledSelection:f,onLineSelected:h,onLineSelectionStart:x,onLineSelectionChange:g,onLineSelectionEnd:y,getLineIndex:w}}function kEe({enableGutterUtility:t,renderGutterUtility:e,onGutterUtilityClick:n}){if(n!=null&&e!=null)throw new Error("Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.");return t??!1}function d7(t){return t!=null&&"kind"in t&&t.kind==="line"}function gv(t){return t!=null&&"kind"in t&&t.kind==="token"}function mN(t){return d7(t)||gv(t)}function CEe(t){return"type"in t&&t.type==="line-info"}function _Ee(t){return"kind"in t&&t.kind==="merge-conflict-action"}function SEe(t){return t==="current"||t==="incoming"||t==="both"}function WJ(t,e){let n=t?.querySelector(e);return n instanceof HTMLElement?n:void 0}function fv(t){let e=[],n=t;for(;n!=null;)e.push(n),n=n.parentNode;return e}function LEe(t){let e=t.closest("[data-line], [data-column-number]");if(e instanceof HTMLElement)return e;let n=t.closest('[data-line-annotation], [data-gutter-buffer="annotation"]');if(!(n instanceof HTMLElement))return;let r=n.previousElementSibling;return r instanceof HTMLElement&&(r.hasAttribute("data-line")||r.hasAttribute("data-column-number"))?r:void 0}function MEe(t){let e=t.closest('[slot^="annotation-"]');if(e instanceof HTMLElement)return e.getAttribute("slot")??void 0;if(t instanceof HTMLElement){let n=t.getAttribute("name")??void 0;return n!=null&&n.startsWith("annotation-")?n:void 0}}function EEe(t){if(t==null)return;let e=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(t);if(e==null)return;let n=Number.parseInt(e[2],10);if(Number.isFinite(n))return{lineNumber:n,side:e[1]}}function KJ(t){return t!=null&&typeof t.elementFromPoint=="function"}function XJ(t,e){switch(t){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return e.hasAttribute("data-deletions")?"deletions":"additions"}}function YJ(t){let e=t.getAttribute("data-line-type");if(e!=null)switch(e){case"change-deletion":case"change-addition":case"context":case"context-expanded":return e;default:return}}function hv(t){for(let e of t)if(e instanceof HTMLElement&&(e.hasAttribute("data-utility-button")||e.hasAttribute("data-gutter-utility-slot")||e.getAttribute("slot")==="gutter-utility-slot"||e.getAttribute("name")==="gutter-utility-slot"))return!0;return!1}function Fp(t="none",e,...n){switch(t){case"none":return;case"both":break;case"click":if(e!=="click")return;break;case"move":if(e!=="move")return;break}console.log(...n)}var yv=class Bp{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){let e=Bp.resizeObserver??new ResizeObserver(Bp.handleSharedResizeEntries);return Bp.resizeObserver=e,e}static handleSharedResizeEntries(e){let n=new Map;for(let r of e){let i=Bp.managersByElement.get(r.target);if(i==null)continue;let o=n.get(i);o==null?n.set(i,[r]):o.push(r)}for(let[r,i]of n)r.handleResizeEntries(i)}observedNodes=new Map;setup(e,n){let r=new Set,i=0,o=new Map(this.observedNodes);this.observedNodes.clear();for(let a of e.children){if(i===2)break;let s=(()=>{if(a instanceof HTMLElement&&a.tagName==="CODE")return a})();if(s==null)continue;i++;let l=o.get(s);if(l!=null&&l.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let c=s.firstElementChild;c instanceof HTMLElement||(c=null),l!=null?(this.observedNodes.set(s,l),o.delete(s),l.numberElement!==c?(l.numberElement!=null&&(this.unobserve(l.numberElement),o.delete(l.numberElement)),c!=null&&(this.observe(c),o.delete(c),this.observedNodes.set(c,l)),l.numberElement=c,l.numberWidth=0):l.numberElement!=null?(o.delete(l.numberElement),this.observedNodes.set(l.numberElement,l)):l.numberWidth=0):(l={type:"code",codeElement:s,numberElement:c,codeWidth:"auto",numberWidth:0},this.observedNodes.set(s,l),this.observe(s),c!=null&&(this.observedNodes.set(c,l),this.observe(c)))}if(i>1&&!n){let a=e.querySelectorAll('[data-line-annotation*=","]'),s=new Map;for(let l of a){if(!(l instanceof HTMLElement))continue;let c=l.getAttribute("data-line-annotation")??"";if(!/^\d+,\d+$/.test(c)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:c,element:l});continue}let u=s.get(c);u==null&&(u=[],s.set(c,u)),u.push(l)}for(let[l,c]of s){if(c.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",l,c);continue}let[u,d]=c,p=u.firstElementChild,m=d.firstElementChild;if(!(u instanceof HTMLElement)||!(d instanceof HTMLElement)||!(p instanceof HTMLElement)||!(m instanceof HTMLElement))continue;let f=o.get(p);if(f!=null){this.observedNodes.set(p,f),this.observedNodes.set(m,f),o.delete(p),o.delete(m);continue}let h=p.getBoundingClientRect().height,x=m.getBoundingClientRect().height;f={type:"annotations",column1:{container:u,child:p,childHeight:h},column2:{container:d,child:m,childHeight:x},currentHeight:"auto"},r.add({child1:p,child2:m,item:f,newHeight:Math.max(h,x)})}for(let l of r)this.applyNewHeight(l.item,l.newHeight),this.observedNodes.set(l.child1,l.item),this.observedNodes.set(l.child2,l.item),this.observe(l.child1),this.observe(l.child2);r.clear()}for(let[a,s]of o)this.unobserve(a),s.type==="code"?AEe(s):$Ee(s);o.clear()}cleanUp(){for(let e of this.observedNodes.keys())this.unobserve(e);this.observedNodes.clear()}observe(e){let{managersByElement:n}=Bp,r=n.get(e);if(r!==this){if(r!=null&&r!==this)throw new Error("ResizeManager.observe: element is already owned by another ResizeManager");n.set(e,this),Bp.getResizeObserver().observe(e)}}unobserve(e){let{managersByElement:n,resizeObserver:r}=Bp,i=n.get(e);if(i!=null){if(i!==this)throw new Error("ResizeManager.unobserve: element is owned by another ResizeManager");n.delete(e),r?.unobserve(e),r!=null&&n.size===0&&(r.disconnect(),Bp.resizeObserver=void 0)}}handleResizeEntries(e){let n=new Map,r=new Set;for(let i of e){let{target:o,borderBoxSize:a,contentBoxSize:s}=i;if(!(o instanceof HTMLElement)){console.error("ResizeManager.handleResizeEntries: Invalid element for ResizeObserver",i);continue}let l=this.observedNodes.get(o);if(l==null){console.error("ResizeManager.handleResizeEntries: Not a valid observed node",i);continue}if(l.type==="annotations"){let c=(()=>{if(o===l.column1.child)return l.column1;if(o===l.column2.child)return l.column2})();if(c==null){console.error("ResizeManager.handleResizeEntries: Couldn't find a column for",{item:l,target:o});continue}c.childHeight=a[0].blockSize,r.add(l)}else if(l.type==="code"){let c=n.get(l)??{},u=s[0].inlineSize;o===l.codeElement?c.codeInlineSize=u:o===l.numberElement&&(c.numberInlineSize=u),n.set(l,c)}}this.applyAnnotationUpdates(r),r.clear(),this.applyColumnUpdates(n),n.clear()}applyAnnotationUpdates(e){for(let n of e)this.applyNewHeight(n,Math.max(n.column1.childHeight,n.column2.childHeight))}applyColumnUpdates=e=>{for(let[n,r]of e){let i=r.codeInlineSize!=null?TEe(r.codeInlineSize):n.codeWidth,o=r.numberInlineSize!=null?REe(r.numberInlineSize):n.numberWidth,a=i!==n.codeWidth,s=o!==n.numberWidth;if(!(!a&&!s)&&(n.codeWidth=i,n.numberWidth=o,a&&n.codeElement.style.setProperty("--diffs-column-width",`${typeof i=="number"?`${i}px`:"auto"}`),s&&n.codeElement.style.setProperty("--diffs-column-number-width",`${o===0?"auto":`${o}px`}`),a||s&&i!=="auto")){let l=typeof i=="number"?Math.max(i-o,0):0;n.codeElement.style.setProperty("--diffs-column-content-width",`${l>0?`${l}px`:"auto"}`)}}};applyNewHeight(e,n){n!==e.currentHeight&&(e.currentHeight=Math.max(n,0),e.column1.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`),e.column2.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`))}};function TEe(t){let e=Math.max(Math.floor(t),0);return e===0?"auto":e}function REe(t){return Math.max(Math.ceil(t),0)}function AEe(t){t.codeElement.isConnected&&(t.codeElement.style.removeProperty("--diffs-column-content-width"),t.codeElement.style.removeProperty("--diffs-column-number-width"),t.codeElement.style.removeProperty("--diffs-column-width"))}function $Ee(t){t.column1.container.isConnected&&t.column1.container.style.removeProperty("--diffs-annotation-min-height"),t.column2.container.isConnected&&t.column2.container.style.removeProperty("--diffs-annotation-min-height")}var Sc=new Map,xv=new Map,QJ=new Map,p7=new Set;function Fb(t){for(let e of Array.isArray(t)?t:[t])if(!(e==="text"||e==="ansi")&&!p7.has(e))return!1;return!0}function fN(t,e){t=Array.isArray(t)?t:[t];for(let n of t){if(p7.has(n.name))continue;let r=Sc.get(n.name);r==null&&(r=n,Sc.set(n.name,r)),p7.add(r.name),e.loadLanguageSync(r.data)}}function wv(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var ai=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function IEe(t){return _N(t)}function _N(t){return Array.isArray(t)?NEe(t):t instanceof RegExp?t:typeof t=="object"?PEe(t):t}function NEe(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=_N(t[n]);return e}function PEe(t){let e={};for(let n in t)e[n]=_N(t[n]);return e}function see(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function lee(t){let e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?lee(t.substring(0,t.length-1)):t.substr(~e+1)}var hN=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vv=class{static hasCaptures(t){return t===null?!1:(hN.lastIndex=0,hN.test(t))}static replaceCaptures(t,e,n){return t.replace(hN,(r,i,o,a)=>{let s=n[parseInt(i||o,10)];if(s){let l=e.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function cee(t,e){return t<e?-1:t>e?1:0}function uee(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let o=cee(t[i],e[i]);if(o!==0)return o}return 0}return n-r}function JJ(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function dee(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var pee=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);let e=this.fn(t);return this.cache.set(t,e),e}},h7=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(DEe(t),e)}static createFromParsedTheme(t,e){return BEe(t,e)}_cachedMatchRoot=new pee(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;let e=t.scopeName,r=this._cachedMatchRoot.get(e).find(i=>jEe(t.parent,i.parentScopes));return r?new mee(r.fontStyle,r.foreground,r.background):null}},gN=class kv{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(let r of n)e=new kv(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new kv(n,e[r]);return n}push(e){return new kv(this,e)}getSegments(){let e=this,n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function jEe(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],i=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],i=!0}for(;t&&!OEe(t.scopeName,r);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function OEe(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var mee=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function DEe(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,o=e.length;i<o;i++){let a=e[i];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let d=a.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let d=a.settings.fontStyle.split(" ");for(let p=0,m=d.length;p<m;p++)switch(d[p]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof a.settings.foreground=="string"&&JJ(a.settings.foreground)&&(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&JJ(a.settings.background)&&(u=a.settings.background);for(let d=0,p=s.length;d<p;d++){let f=s[d].trim().split(" "),h=f[f.length-1],x=null;f.length>1&&(x=f.slice(0,f.length-1),x.reverse()),n[r++]=new FEe(h,x,i,l,c,u)}}return n}var FEe=class{constructor(t,e,n,r,i,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},Zo=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(Zo||{});function BEe(t,e){t.sort((l,c)=>{let u=cee(l.scope,c.scope);return u!==0||(u=uee(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let o=new zEe(e),a=new mee(n,o.getId(r),o.getId(i)),s=new HEe(new yN(0,null,-1,0,0),[]);for(let l=0,c=t.length;l<c;l++){let u=t[l];s.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new h7(o,a,s)}var zEe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},qEe=Object.freeze([]),yN=class fee{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,i,o){this.scopeDepth=e,this.parentScopes=n||qEe,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new fee(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},HEe=class xN{constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=n.parentScopes.length);){let o=n.parentScopes[i].length-e.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,o;if(r===-1?(i=e,o=""):(i=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(xN._cmpBySpecificity),n}insert(e,n,r,i,o,a){if(n===""){this._doInsertHere(e,r,i,o,a);return}let s=n.indexOf("."),l,c;s===-1?(l=n,c=""):(l=n.substring(0,s),c=n.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new xN(this._mainRule.clone(),yN.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(e+1,c,r,i,o,a)}_doInsertHere(e,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(e,r,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(uee(l.parentScopes,n)===0){l.acceptOverwrite(e,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new yN(e,n,r,i,o))}},d0=class Lc{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){let n=Lc.getLanguageId(e),r=Lc.getTokenType(e),i=Lc.getFontStyle(e),o=Lc.getForeground(e),a=Lc.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,i,o,a,s){let l=Lc.getLanguageId(e),c=Lc.getTokenType(e),u=Lc.containsBalancedBrackets(e)?1:0,d=Lc.getFontStyle(e),p=Lc.getForeground(e),m=Lc.getBackground(e);return n!==0&&(l=n),r!==8&&(c=r),i!==null&&(u=i?1:0),o!==-1&&(d=o),a!==0&&(p=a),s!==0&&(m=s),(l<<0|c<<8|u<<10|d<<11|p<<15|m<<24)>>>0}};function _v(t,e){let n=[],r=GEe(t),i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=a();if(n.push({matcher:c,priority:l}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();let l=o();return c=>!!l&&!l(c)}if(i==="("){i=r.next();let l=s();return i===")"&&(i=r.next()),l}if(eee(i)){let l=[];do l.push(i),i=r.next();while(eee(i));return c=>e(l,c)}return null}function a(){let l=[],c=o();for(;c;)l.push(c),c=o();return u=>l.every(d=>d(u))}function s(){let l=[],c=a();for(;c&&(l.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=a()}return u=>l.some(d=>d(u))}}function eee(t){return!!t&&!!t.match(/[\w\.:]+/)}function GEe(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;let r=n[0];return n=e.exec(t),r}}}function hee(t){typeof t.dispose=="function"&&t.dispose()}var g7=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},UEe=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},VEe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){let e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},ZEe=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new g7(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let t=this.Q;this.Q=[];let e=new VEe;for(let n of t)WEe(n,this.initialScopeName,this.repo,e);for(let n of e.references)if(n instanceof g7){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 WEe(t,e,n,r){let i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}let o=n.lookup(e);t instanceof g7?Cv({baseGrammar:o,selfGrammar:i},r):wN(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);let a=n.injections(t.scopeName);if(a)for(let s of a)r.add(new g7(s))}function wN(t,e,n){if(e.repository&&e.repository[t]){let r=e.repository[t];Sv([r],e,n)}}function Cv(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Sv(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Sv(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Sv(t,e,n){for(let r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let i=r.repository?see({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&Sv(r.patterns,{...e,repository:i},n);let o=r.include;if(!o)continue;let a=gee(o);switch(a.kind){case 0:Cv({...e,selfGrammar:e.baseGrammar},n);break;case 1:Cv(e,n);break;case 2:wN(a.ruleName,{...e,repository:i},n);break;case 3:case 4:let s=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(s){let l={baseGrammar:e.baseGrammar,selfGrammar:s,repository:i};a.kind===4?wN(a.ruleName,l,n):Cv(l,n)}else a.kind===4?n.add(new UEe(a.scopeName,a.ruleName)):n.add(new g7(a.scopeName));break}}}var KEe=class{kind=0},XEe=class{kind=1},YEe=class{constructor(t){this.ruleName=t}kind=2},QEe=class{constructor(t){this.scopeName=t}kind=3},JEe=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function gee(t){if(t==="$base")return new KEe;if(t==="$self")return new XEe;let e=t.indexOf("#");if(e===-1)return new QEe(t);if(e===0)return new YEe(t.substring(1));{let n=t.substring(0,e),r=t.substring(e+1);return new JEe(n,r)}}var eTe=/\\(\d+)/,tee=/\\(\d+)/g;var tTe=-1,bee=-2;var x7=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,r){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=vv.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=vv.hasCaptures(this._contentName)}get debugName(){let t=this.$location?`${lee(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:vv.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vv.replaceCaptures(this._contentName,t,e)}},nTe=class extends x7{retokenizeCapturedWithRuleId;constructor(t,e,n,r,i){super(t,e,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,r){throw new Error("Not supported!")}},rTe=class extends x7{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,r,i){super(t,e,n,null),this._match=new b7(r,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,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new y7,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},nee=class extends x7{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,i){super(t,e,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(let n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new y7,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vN=class extends x7{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,i,o,a,s,l,c){super(t,e,n,r),this._begin=new b7(i,this.id),this.beginCaptures=o,this._end=new b7(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.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,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,r)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new y7;for(let n of this.patterns)t.getRule(n).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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Lv=class extends x7{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,r,i,o,a,s,l){super(t,e,n,r),this._begin=new b7(i,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=new b7(a,bee),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.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,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new y7;for(let e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,r){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,r)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new y7,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"\uFFFF"),this._cachedCompiledWhilePatterns}},yee=class ha{static createCaptureRule(e,n,r,i,o){return e.registerRule(a=>new nTe(n,a,r,i,o))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new rTe(e.$vscodeTextmateLocation,e.id,e.name,e.match,ha._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=see({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new nee(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,ha._compilePatterns(o,n,r))}return e.while?new Lv(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ha._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,ha._compileCaptures(e.whileCaptures||e.captures,n,r),ha._compilePatterns(e.patterns,n,r)):new vN(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ha._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,ha._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,ha._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let o=0;for(let a in e){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(let a in e){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10),l=0;e[a].patterns&&(l=ha.getCompiledRuleId(e[a],n,r)),i[s]=ha.createCaptureRule(n,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,l)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let o=0,a=e.length;o<a;o++){let s=e[o],l=-1;if(s.include){let c=gee(s.include);switch(c.kind){case 0:case 1:l=ha.getCompiledRuleId(r[s.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=ha.getCompiledRuleId(u,n,r));break;case 3:case 4:let d=c.scopeName,p=c.kind===4?c.ruleName:null,m=n.getExternalGrammar(d,r);if(m)if(p){let f=m.repository[p];f&&(l=ha.getCompiledRuleId(f,n,m.repository))}else l=ha.getCompiledRuleId(m.repository.$self,n,m.repository);break}}else l=ha.getCompiledRuleId(s,n,r);if(l!==-1){let c=n.getRule(l),u=!1;if((c instanceof nee||c instanceof vN||c instanceof Lv)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},b7=class xee{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e=="string"){let r=e.length,i=0,o=[],a=!1;for(let s=0;s<r;s++)if(e.charAt(s)==="\\"&&s+1<r){let c=e.charAt(s+1);c==="z"?(o.push(e.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(c==="A"||c==="G")&&(a=!0),s++}this.hasAnchor=a,i===0?this.source=e:(o.push(e.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=eTe.test(this.source):this.hasBackReferences=!1}clone(){return new xee(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,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(i=>e.substring(i.start,i.end));return tee.lastIndex=0,this.source.replace(tee,(i,o)=>dee(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],i=[],o,a,s,l;for(o=0,a=this.source.length;o<a;o++)s=this.source.charAt(o),e[o]=s,n[o]=s,r[o]=s,i[o]=s,s==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="\uFFFF",n[o+1]="\uFFFF",r[o+1]="A",i[o+1]="A"):l==="G"?(e[o+1]="\uFFFF",n[o+1]="G",r[o+1]="\uFFFF",i[o+1]="G"):(e[o+1]=l,n[o+1]=l,r[o+1]=l,i[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},y7=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new ree(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(i=>i.resolveAnchors(e,n));return new ree(t,r,this._items.map(i=>i.ruleId))}},ree=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(` -`)}findNextMatchSync(t,e,n){let r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},bN=class{constructor(t,e){this.languageId=t,this.tokenType=e}},iTe=class kN{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new bN(e,8),this._embeddedLanguagesMatcher=new oTe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?kN._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new bN(0,0);_getBasicScopeAttributes=new pee(e=>{let n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new bN(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let n=e.match(kN.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},oTe=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);let e=t.map(([n,r])=>dee(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;let e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},zdt={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},wee=!1,iee=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function vee(t,e,n,r,i,o,a,s){let l=e.content.length,c=!1,u=-1;if(a){let m=aTe(t,e,n,r,i,o);i=m.stack,r=m.linePos,n=m.isFirstLine,u=m.anchorPosition}let d=Date.now();for(;!c;){if(s!==0&&Date.now()-d>s)return new iee(i,!0);p()}return new iee(i,!1);function p(){let m=sTe(t,e,n,r,i,u);if(!m){o.produce(i,l),c=!0;return}let f=m.captureIndices,h=m.matchedRuleId,x=f&&f.length>0?f[0].end>r:!1;if(h===tTe){let g=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),m7(t,e,n,i,o,g.endCaptures,f),o.produce(i,f[0].end);let y=i;if(i=i.parent,u=y.getAnchorPos(),!x&&y.getEnterPos()===r){i=y,o.produce(i,l),c=!0;return}}else{let g=t.getRule(h);o.produce(i,f[0].start);let y=i,b=g.getName(e.content,f),w=i.contentNameScopesList.pushAttributed(b,t);if(i=i.push(h,r,u,f[0].end===l,null,w,w),g instanceof vN){let v=g;m7(t,e,n,i,o,v.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;let k=v.getContentName(e.content,f),_=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(_),v.endHasBackReferences&&(i=i.withEndRule(v.getEndWithResolvedBackReferences(e.content,f))),!x&&y.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(g instanceof Lv){let v=g;m7(t,e,n,i,o,v.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;let k=v.getContentName(e.content,f),_=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(_),v.whileHasBackReferences&&(i=i.withEndRule(v.getWhileWithResolvedBackReferences(e.content,f))),!x&&y.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(m7(t,e,n,i,o,g.captures,f),o.produce(i,f[0].end),i=i.pop(),!x){i=i.safePop(),o.produce(i,l),c=!0;return}}f[0].end>r&&(r=f[0].end,n=!1)}}function aTe(t,e,n,r,i,o){let a=i.beginRuleCapturedEOL?0:-1,s=[];for(let l=i;l;l=l.pop()){let c=l.getRule(t);c instanceof Lv&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){let{ruleScanner:c,findOptions:u}=uTe(l.rule,t,l.stack.endRule,n,r===a),d=c.findNextMatchSync(e,r,u);if(d){if(d.ruleId!==bee){i=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),m7(t,e,n,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),a=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:a,isFirstLine:n}}function sTe(t,e,n,r,i,o){let a=lTe(t,e,n,r,i,o),s=t.getInjections();if(s.length===0)return a;let l=cTe(s,t,e,n,r,i,o);if(!l)return a;if(!a)return l;let c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:a}function lTe(t,e,n,r,i,o){let a=i.getRule(t),{ruleScanner:s,findOptions:l}=kee(a,t,i.endRule,n,r===o),c=s.findNextMatchSync(e,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function cTe(t,e,n,r,i,o,a){let s=Number.MAX_VALUE,l=null,c,u=0,d=o.contentNameScopesList.getScopeNames();for(let p=0,m=t.length;p<m;p++){let f=t[p];if(!f.matcher(d))continue;let h=e.getRule(f.ruleId),{ruleScanner:x,findOptions:g}=kee(h,e,null,r,i===a),y=x.findNextMatchSync(n,i,g);if(!y)continue;let b=y.captureIndices[0].start;if(!(b>=s)&&(s=b,l=y.captureIndices,c=y.ruleId,u=f.priority,s===i))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function kee(t,e,n,r,i){if(wee){let a=t.compile(e,n),s=Cee(r,i);return{ruleScanner:a,findOptions:s}}return{ruleScanner:t.compileAG(e,n,r,i),findOptions:0}}function uTe(t,e,n,r,i){if(wee){let a=t.compileWhile(e,n),s=Cee(r,i);return{ruleScanner:a,findOptions:s}}return{ruleScanner:t.compileWhileAG(e,n,r,i),findOptions:0}}function Cee(t,e){let n=0;return t||(n|=1),e||(n|=4),n}function m7(t,e,n,r,i,o,a){if(o.length===0)return;let s=e.content,l=Math.min(o.length,a.length),c=[],u=a[0].end;for(let d=0;d<l;d++){let p=o[d];if(p===null)continue;let m=a[d];if(m.length===0)continue;if(m.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=m.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,m.start):i.produce(r,m.start),p.retokenizeCapturedWithRuleId){let h=p.getName(s,a),x=r.contentNameScopesList.pushAttributed(h,t),g=p.getContentName(s,a),y=x.pushAttributed(g,t),b=r.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,x,y),w=t.createOnigString(s.substring(0,m.end));vee(t,w,n&&m.start===0,m.start,b,i,!1,0),hee(w);continue}let f=p.getName(s,a);if(f!==null){let x=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(f,t);c.push(new dTe(x,m.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var dTe=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function pTe(t,e,n,r,i,o,a,s){return new fTe(t,e,n,r,i,o,a,s)}function oee(t,e,n,r,i){let o=_v(e,Mv),a=yee.getCompiledRuleId(n,r,i.repository);for(let s of o)t.push({debugSelector:e,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function Mv(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let i=n;i<e.length;i++)if(mTe(e[i],r))return n=i+1,!0;return!1})}function mTe(t,e){if(!t)return!1;if(t===e)return!0;let n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var fTe=class{constructor(t,e,n,r,i,o,a,s){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new iTe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=aee(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let l of Object.keys(i)){let c=_v(l,Mv);for(let u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){let t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){let i=r.injections;if(i)for(let a in i)oee(e,a,i[a],this,r);let o=this._grammarRepository.injections(n);o&&o.forEach(a=>{let s=this.getExternalGrammar(a);if(s){let l=s.injectionSelector;l&&oee(e,l,s,this,s)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){let e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){let n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=aee(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){let r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){let r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=yee.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===CN.NULL){i=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=d0.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null),m;p?m=f7.createRootAndLookUpScopeName(p,d,this):m=f7.createRoot("unknown",d),e=new CN(null,this._rootId,-1,-1,!1,null,m,m)}else i=!1,e.reset();t=t+` -`;let o=this.createOnigString(t),a=o.content.length,s=new gTe(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=vee(this,o,i,0,e,s,!0,r);return hee(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function aee(t,e){return t=IEe(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var f7=class sd{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,i=e?.scopePath??null;for(let o of n)i=gN.push(i,o.scopeNames),r=new sd(r,i,o.encodedTokenAttributes);return r}static createRoot(e,n){return new sd(null,new gN(null,e),n)}static createRootAndLookUpScopeName(e,n,r){let i=r.getMetadataForScope(e),o=new gN(null,e),a=r.themeProvider.themeMatch(o),s=sd.mergeAttributes(n,i,a);return new sd(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return sd.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let i=-1,o=0,a=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,a=r.backgroundId),d0.set(e,n.languageId,n.tokenType,null,i,o,a)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return sd._pushAttributed(this,e,n);let r=e.split(/ /g),i=this;for(let o of r)i=sd._pushAttributed(i,o,n);return i}static _pushAttributed(e,n,r){let i=r.getMetadataForScope(n),o=e.scopePath.push(n),a=r.themeProvider.themeMatch(o),s=sd.mergeAttributes(e.tokenAttributes,i,a);return new sd(e,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},CN=class u0{constructor(e,n,r,i,o,a,s,l){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new u0(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:u0._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?f7.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){u0._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,i,o,a,s){return new u0(this,e,n,r,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new u0(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){let r=f7.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new u0(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,f7.fromExtension(r,n.contentNameScopesList))}},hTe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):_v(n,Mv).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>_v(n,Mv).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(let e of this.unbalancedBracketScopes)if(e(t))return!1;for(let e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},gTe=class{constructor(t,e,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=t?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(o)&&(r=d0.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(r=d0.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}let n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},bTe=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,pTe(t,o,e,n,r,i,this,this._onigLib))}return this._grammars.get(t)}},_ee=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new bTe(h7.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(h7.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new hTe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,i){let o=new ZEe(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(a=>this._loadSingleGrammar(a.scopeName)),o.processQueue();return this._grammarForScopeName(t,e,n,r,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){let e=this._options.loadGrammar(t);if(e){let n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,i)}},Ev=CN.NULL;function Tv(t,e){let n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(let[i,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function Vf(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function yTe(t){return Array.isArray(t)?t:[t]}async function Aee(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function RN(t){return!t||["plaintext","txt","text","plain"].includes(t)}function $ee(t){return t==="ansi"||RN(t)}function AN(t){return t==="none"}function Iee(t){return AN(t)}function Nee(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);let n=Array.isArray(e)?e:e.split(/\s+/g);for(let r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}function Nv(t,e=!1){if(t.length===0)return[["",0]];let n=t.split(/(\r?\n)/g),r=0,i=[];for(let o=0;o<n.length;o+=2){let a=e?n[o]+(n[o+1]||""):n[o];i.push([a,r]),r+=n[o].length,r+=n[o+1]?.length||0}return i}function xTe(t){let e=Nv(t,!0).map(([i])=>i);function n(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,a=0;for(let s of e){if(o<s.length)break;o-=s.length,a++}return{line:a,character:o}}function r(i,o){let a=0;for(let s=0;s<i;s++)a+=e[s].length;return a+=o,a}return{lines:e,indexToPos:n,posToIndex:r}}var $N="light-dark()",wTe=["color","background-color"];function vTe(t,e){let n=0,r=[];for(let i of e)i>n&&r.push({...t,content:t.content.slice(n,i),offset:t.offset+n}),n=i;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function kTe(t,e){let n=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return n.length?t.map(r=>r.flatMap(i=>{let o=n.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,s)=>a-s);return o.length?vTe(i,o):i})):t}function CTe(t,e,n,r,i="css-vars"){let o={content:t.content,explanation:t.explanation,offset:t.offset},a=e.map(u=>Rv(t.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),l={},c=(u,d)=>{let p=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+e[u]+(d==="color"?"":p)};return a.forEach((u,d)=>{for(let p of s){let m=u[p]||"inherit";if(d===0&&r&&wTe.includes(p))if(r===$N&&a.length>1){let f=e.findIndex(y=>y==="light"),h=e.findIndex(y=>y==="dark");if(f===-1||h===-1)throw new ai('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let x=a[f][p]||"inherit",g=a[h][p]||"inherit";l[p]=`light-dark(${x}, ${g})`,i==="css-vars"&&(l[c(d,p)]=m)}else l[p]=m;else i==="css-vars"&&(l[c(d,p)]=m)}}),o.htmlStyle=l,o}function Rv(t){let e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&Zo.Italic&&(e["font-style"]="italic"),t.fontStyle&Zo.Bold&&(e["font-weight"]="bold");let n=[];t.fontStyle&Zo.Underline&&n.push("underline"),t.fontStyle&Zo.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function MN(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}var Pee=new WeakMap;function Pv(t,e){Pee.set(t,e)}function v7(t){return Pee.get(t)}var Bb=class t{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new t(Object.fromEntries(yTe(n).map(r=>[r,Ev])),e)}constructor(...e){if(e.length===2){let[n,r]=e;this.lang=r,this._stacks=n}else{let[n,r,i]=e;this.lang=r,this._stacks={[i]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return _Te(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function _Te(t){let e=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);let o=i?.nameScopesList?.scopeName;o&&e.push(o),i.parent&&r(i.parent)}return r(t),e}function STe(t,e){if(!(t instanceof Bb))throw new ai("Invalid grammar state");return t.getInternalStack(e)}function LTe(){let t=new WeakMap;function e(n){if(!t.has(n.meta)){let r=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new ai(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...i.indexToPos(a),offset:a}}else{let s=i.lines[a.line];if(s===void 0)throw new ai(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let l=a.character;if(l<0&&(l=s.length+l),l<0||l>s.length)throw new ai(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,character:l,offset:i.posToIndex(a.line,l)}}},i=xTe(n.source),o=(n.options.decorations||[]).map(a=>({...a,start:r(a.start),end:r(a.end)}));MTe(o),t.set(n.meta,{decorations:o,converter:i,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;let i=e(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return kTe(n,i)},code(n){if(!this.options.decorations?.length)return;let r=e(this),i=Array.from(n.children).filter(u=>u.type==="element"&&u.tagName==="span");if(i.length!==r.converter.lines.length)throw new ai(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,d,p,m){let f=i[u],h="",x=-1,g=-1;if(d===0&&(x=0),p===0&&(g=0),p===Number.POSITIVE_INFINITY&&(g=f.children.length),x===-1||g===-1)for(let b=0;b<f.children.length;b++)h+=jee(f.children[b]),x===-1&&h.length===d&&(x=b+1),g===-1&&h.length===p&&(g=b+1);if(x===-1)throw new ai(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(g===-1)throw new ai(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);let y=f.children.slice(x,g);if(!m.alwaysWrap&&y.length===f.children.length)s(f,m,"line");else if(!m.alwaysWrap&&y.length===1&&y[0].type==="element")s(y[0],m,"token");else{let b={type:"element",tagName:"span",properties:{},children:y};s(b,m,"wrapper"),f.children.splice(x,y.length,b)}}function a(u,d){i[u]=s(i[u],d,"line")}function s(u,d,p){let m=d.properties||{},f=d.transform||(h=>h);return u.tagName=d.tagName||"span",u.properties={...u.properties,...m,class:u.properties.class},d.properties?.class&&Nee(u,d.properties.class),u=f(u,p)||u,u}let l=[],c=r.decorations.sort((u,d)=>d.start.offset-u.start.offset||u.end.offset-d.end.offset);for(let u of c){let{start:d,end:p}=u;if(d.line===p.line)o(d.line,d.character,p.character,u);else if(d.line<p.line){o(d.line,d.character,Number.POSITIVE_INFINITY,u);for(let m=d.line+1;m<p.line;m++)l.unshift(()=>a(m,u));o(p.line,0,p.character,u)}}l.forEach(u=>u())}}}function MTe(t){for(let e=0;e<t.length;e++){let n=t[e];if(n.start.offset>n.end.offset)throw new ai(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){let i=t[r],o=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,a=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,s=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,l=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(o||a||s||l){if(o&&a||s&&l||s&&n.start.offset===n.end.offset||a&&i.start.offset===i.end.offset)continue;throw new ai(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function jee(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(jee).join(""):""}var ETe=[LTe()];function Av(t){let e=TTe(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...ETe]}function TTe(t){let e=[],n=[],r=[];for(let i of t)switch(i.enforce){case"pre":e.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:e,post:n,normal:r}}var p0=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],SN={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function RTe(t,e){let n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){let r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function See(t){let e=t.shift();if(e==="2"){let n=t.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(e==="5"){let n=t.shift();if(n)return{type:"table",index:Number(n)}}}function ATe(t){let e=[];for(;t.length>0;){let n=t.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)SN[r]&&e.push({type:"setDecoration",value:SN[r]});else if(r<=29){let i=SN[r-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:p0[r-30]}});else if(r===38){let i=See(t);i&&e.push({type:"setForegroundColor",value:i})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:p0[r-40]}});else if(r===48){let i=See(t);i&&e.push({type:"setBackgroundColor",value:i})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:p0[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:p0[r-100+8]}})}return e}function $Te(){let t=null,e=null,n=new Set;return{parse(r){let i=[],o=0;do{let a=RTe(r,o),s=a.sequence?r.substring(o,a.startPosition):r.substring(o);if(s.length>0&&i.push({value:s,foreground:t,background:e,decorations:new Set(n)}),a.sequence){let l=ATe(a.sequence);for(let c of l)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(let c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}o=a.position}while(o<r.length);return i}}}var ITe={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 NTe(t=ITe){function e(s){return t[s]}function n(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let c=0;c<p0.length;c++)r.push(e(p0[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let d=0;d<6;d++)r.push(n([s[c],s[u],s[d]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return e(s.name);case"rgb":return n(s.rgb);case"table":return o(s.index)}}return{value:a}}var PTe={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 jTe(t,e,n){let r=Tv(t,n),i=Nv(e),o=Object.fromEntries(p0.map(l=>{let c=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,u=t.colors?.[c];return[l,u||PTe[l]]})),a=NTe(o),s=$Te();return i.map(l=>s.parse(l[0]).map(c=>{let u,d;c.decorations.has("reverse")?(u=c.background?a.value(c.background):t.bg,d=c.foreground?a.value(c.foreground):t.fg):(u=c.foreground?a.value(c.foreground):t.fg,d=c.background?a.value(c.background):void 0),u=Vf(u,r),d=Vf(d,r),c.decorations.has("dim")&&(u=OTe(u));let p=Zo.None;return c.decorations.has("bold")&&(p|=Zo.Bold),c.decorations.has("italic")&&(p|=Zo.Italic),c.decorations.has("underline")&&(p|=Zo.Underline),c.decorations.has("strikethrough")&&(p|=Zo.Strikethrough),{content:c.value,offset:l[1],color:u,bgColor:d,fontStyle:p}}))}function OTe(t){let e=t.match(/#([0-9a-f]{3,8})/i);if(e){let r=e[1];if(r.length===8){let i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){let i=r[0],o=r[1],a=r[2],s=r[3],l=Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${a}${a}${l}`}else if(r.length===3){let i=r[0],o=r[1],a=r[2];return`#${i}${i}${o}${o}${a}${a}80`}}}let n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}function IN(t,e,n={}){let{theme:r=t.getLoadedThemes()[0]}=n,i=t.resolveLangAlias(n.lang||"text");if(RN(i)||AN(r))return Nv(e).map(l=>[{content:l[0],offset:l[1]}]);let{theme:o,colorMap:a}=t.setTheme(r);if(i==="ansi")return jTe(o,e,n);let s=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new ai(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(o.name))throw new ai(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return FTe(e,s,o,a,n)}function DTe(...t){if(t.length===2)return v7(t[1]);let[e,n,r={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=r;if(RN(i)||AN(o))throw new ai("Plain language does not have grammar state");if(i==="ansi")throw new ai("ANSI language does not have grammar state");let{theme:a,colorMap:s}=e.setTheme(o),l=e.getLanguage(i);return new Bb(NN(n,l,a,s,r).stateStack,l.name,a.name)}function FTe(t,e,n,r,i){let o=NN(t,e,n,r,i),a=new Bb(o.stateStack,e.name,n.name);return Pv(o.tokens,a),o.tokens}function NN(t,e,n,r,i){let o=Tv(n,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=Nv(t),c=i.grammarState?STe(i.grammarState,n.name)??Ev:i.grammarContextCode!=null?NN(i.grammarContextCode,e,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ev,u=[],d=[];for(let p=0,m=l.length;p<m;p++){let[f,h]=l[p];if(f===""){u=[],d.push([]);continue}if(a>0&&f.length>=a){u=[],d.push([{content:f,offset:h,color:"",fontStyle:0}]);continue}let x,g,y;i.includeExplanation&&(x=e.tokenizeLine(f,c,s),g=x.tokens,y=0);let b=e.tokenizeLine2(f,c,s),w=b.tokens.length/2;for(let v=0;v<w;v++){let k=b.tokens[2*v],_=v+1<w?b.tokens[2*v+2]:f.length;if(k===_)continue;let L=b.tokens[2*v+1],S=Vf(r[d0.getForeground(L)],o),C=d0.getFontStyle(L),T={content:f.substring(k,_),offset:h+k,color:S,fontStyle:C};if(i.includeExplanation){let M=[];if(i.includeExplanation!=="scopeName")for(let $ of n.settings){let N;switch(typeof $.scope){case"string":N=$.scope.split(/,/).map(F=>F.trim());break;case"object":N=$.scope;break;default:continue}M.push({settings:$,selectors:N.map(F=>F.split(/ /))})}T.explanation=[];let A=0;for(;k+A<_;){let $=g[y],N=f.substring($.startIndex,$.endIndex);A+=N.length,T.explanation.push({content:N,scopes:i.includeExplanation==="scopeName"?BTe($.scopes):zTe(M,$.scopes)}),y+=1}}u.push(T)}d.push(u),u=[],c=b.ruleStack}return{tokens:d,stateStack:c}}function BTe(t){return t.map(e=>({scopeName:e}))}function zTe(t,e){let n=[];for(let r=0,i=e.length;r<i;r++){let o=e[r];n[r]={scopeName:o,themeMatches:HTe(t,o,e.slice(0,r))}}return n}function Lee(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function qTe(t,e,n){if(!Lee(t[t.length-1],e))return!1;let r=t.length-2,i=n.length-1;for(;r>=0&&i>=0;)Lee(t[r],n[i])&&(r-=1),i-=1;return r===-1}function HTe(t,e,n){let r=[];for(let{selectors:i,settings:o}of t)for(let a of i)if(qTe(a,e,n)){r.push(o);break}return r}function Oee(t,e,n){let r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{let c=IN(t,e,{...n,theme:l.theme}),u=v7(c),d=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:d}}),o=GTe(...i.map(l=>l.tokens)),a=o[0].map((l,c)=>l.map((u,d)=>{let p={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=u.explanation),o.forEach((m,f)=>{let{content:h,explanation:x,offset:g,...y}=m[c][d];p.variants[r[f].color]=y}),p})),s=i[0].state?new Bb(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return s&&Pv(a,s),a}function GTe(...t){let e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){let i=t.map(l=>l[r]),o=e.map(()=>[]);e.forEach((l,c)=>l.push(o[c]));let a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){let l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<n;c++){let u=s[c];u.content.length===l?(o[c].push(u),a[c]+=1,s[c]=i[c][a[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),s[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return e}function $v(t,e,n){let r,i,o,a,s,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,p=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,y)=>g.color===c?-1:y.color===c?1:0);if(p.length===0)throw new ai("`themes` option must not be empty");let m=Oee(t,e,n);if(l=v7(m),c&&$N!==c&&!p.find(g=>g.color===c))throw new ai(`\`themes\` option must contain the defaultColor key \`${c}\``);let f=p.map(g=>t.getTheme(g.theme)),h=p.map(g=>g.color);o=m.map(g=>g.map(y=>CTe(y,h,u,c,d))),l&&Pv(o,l);let x=p.map(g=>Tv(g.theme,n));i=Mee(p,f,x,u,c,"fg",d),r=Mee(p,f,x,u,c,"bg",d),a=`shiki-themes ${f.map(g=>g.name).join(" ")}`,s=c?void 0:[i,r].join(";")}else if("theme"in n){let c=Tv(n.theme,n);o=IN(t,e,n);let u=t.getTheme(n.theme);r=Vf(u.bg,c),i=Vf(u.fg,c),a=u.name,l=v7(o)}else throw new ai("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:a,rootStyle:s,grammarState:l}}function Mee(t,e,n,r,i,o,a){return t.map((s,l)=>{let c=Vf(e[l][o],n[l])||"inherit",u=`${r+s.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&i){if(i===$N&&t.length>1){let d=t.findIndex(h=>h.color==="light"),p=t.findIndex(h=>h.color==="dark");if(d===-1||p===-1)throw new ai('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let m=Vf(e[d][o],n[d])||"inherit",f=Vf(e[p][o],n[p])||"inherit";return`light-dark(${m}, ${f});${u}`}return c}return a==="css-vars"?u:null}).filter(s=>!!s).join(";")}function Iv(t,e,n,r={meta:{},options:n,codeToHast:(i,o)=>Iv(t,i,o),codeToTokens:(i,o)=>$v(t,i,o)}){let i=e;for(let f of Av(n))i=f.preprocess?.call(r,i,n)||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:c,grammarState:u}=$v(t,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:p=!1}=n;d===!0?o=VTe(o):d==="never"&&(o=ZTe(o)),p&&(o=WTe(o));let m={...r,get source(){return i}};for(let f of Av(n))o=f.tokens?.call(m,o)||o;return UTe(o,{...n,fg:a,bg:s,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},m,u)}function UTe(t,e,n,r=v7(t)){let i=Av(e),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(let[h,x]of Object.entries(e.meta||{}))h.startsWith("_")||(c[h]=x);let u={type:"element",tagName:"pre",properties:c,children:[],data:e.data},d={type:"element",tagName:"code",properties:{},children:o},p=[],m={...n,structure:s,addClassToHast:Nee,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return u},get code(){return d},get lines(){return p}};if(t.forEach((h,x)=>{x&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` -`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},y=0;for(let b of h){let w={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]},v=MN(b.htmlStyle||Rv(b));v&&(w.properties.style=v);for(let k of i)w=k?.span?.call(m,w,x+1,y,g,b)||w;s==="inline"?a.children.push(w):s==="classic"&&g.children.push(w),y+=b.content.length}if(s==="classic"){for(let b of i)g=b?.line?.call(m,g,x+1)||g;p.push(g),o.push(g)}else s==="inline"&&p.push(g)}),s==="classic"){for(let h of i)d=h?.code?.call(m,d)||d;u.children.push(d);for(let h of i)u=h?.pre?.call(m,u)||u;a.children.push(u)}else if(s==="inline"){let h=[],x={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let b of a.children)b.type==="element"&&b.tagName==="br"?(h.push(x),x={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(b.type==="element"||b.type==="text")&&x.children.push(b);h.push(x);let y={type:"element",tagName:"code",properties:{},children:h};for(let b of i)y=b?.code?.call(m,y)||y;a.children=[];for(let b=0;b<y.children.length;b++){b>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let w=y.children[b];w.type==="element"&&a.children.push(...w.children)}}let f=a;for(let h of i)f=h?.root?.call(m,f)||f;return r&&Pv(f,r),f}function VTe(t){return t.map(e=>{let n=[],r="",i;return e.forEach((o,a)=>{let l=!(o.fontStyle&&(o.fontStyle&Zo.Underline||o.fontStyle&Zo.Strikethrough));l&&o.content.match(/^\s+$/)&&e[a+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(l?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function ZTe(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;let r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;let[,i,o,a]=r;if(!i&&!a)return n;let s=[{...n,offset:n.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:n.offset}),a&&s.push({content:a,offset:n.offset+i.length+o.length}),s}))}function WTe(t){return t.map(e=>{let n=[];for(let r of e){if(n.length===0){n.push({...r});continue}let i=n[n.length-1],o=MN(i.htmlStyle||Rv(i)),a=MN(r.htmlStyle||Rv(r)),s=i.fontStyle&&(i.fontStyle&Zo.Underline||i.fontStyle&Zo.Strikethrough),l=r.fontStyle&&(r.fontStyle&Zo.Underline||r.fontStyle&Zo.Strikethrough);!s&&!l&&o===a?i.content+=r.content:n.push({...r})}return n})}var KTe=Vo;function XTe(t,e,n){let r={meta:{},options:n,codeToHast:(o,a)=>Iv(t,o,a),codeToTokens:(o,a)=>$v(t,o,a)},i=KTe(Iv(t,e,n,r));for(let o of Av(n))i=o.postprocess?.call(r,i,n)||i;return i}var Eee={light:"#333333",dark:"#bbbbbb"},Tee={light:"#fffffe",dark:"#1e1e1e"},Ree="__shiki_resolved";function k7(t){if(t?.[Ree])return t;let e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){let s=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(r=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?Eee.light:Eee.dark),n||(n=e.type==="light"?Tee.light:Tee.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0,o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;let l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}e.settings=e.settings.map(s=>{let l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;let u={...s,settings:{...s.settings}};if(l){let d=a(s.settings.foreground);e.colorReplacements[d]=s.settings.foreground,u.settings.foreground=d}if(c){let d=a(s.settings.background);e.colorReplacements[d]=s.settings.background,u.settings.background=d}return u});for(let s of Object.keys(e.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!e.colors[s]?.startsWith("#")){let l=a(e.colors[s]);e.colorReplacements[l]=e.colors[s],e.colors[s]=l}return Object.defineProperty(e,Ree,{enumerable:!1,writable:!1,value:!0}),e}async function Dee(t){return Array.from(new Set((await Promise.all(t.filter(e=>!$ee(e)).map(async e=>await Aee(e).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Fee(t){return(await Promise.all(t.map(async n=>Iee(n)?null:k7(await Aee(n))))).filter(n=>!!n)}var LN=3,YTe=!1;function QTe(t,e=3){if(LN&&!(typeof LN=="number"&&e>LN)){if(YTe)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}var Uf=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Bee(t,e){if(!e)return t;if(e[t]){let n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new Uf(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return t}var EN=class extends _ee{constructor(e,n,r,i={}){super(e),this._resolver=e,this._themes=n,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let n=k7(e);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(e){let n=this._textmateThemeCache.get(e);n||(n=h7.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=Bee(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let i=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,n.size)for(let o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let i of e)this.resolveEmbeddedLanguages(i);let n=Array.from(this._langGraph.entries()),r=n.filter(([i,o])=>!o);if(r.length){let i=n.filter(([o,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(l=>r.map(([c])=>c).includes(l)):!1).filter(o=>!r.includes(o));throw new Uf(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(let[i,o]of n)this._resolver.addLanguage(o);for(let[i,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let n=e.embeddedLanguages??e.embeddedLangs;if(n)for(let r of n)this._langGraph.set(r,this._langMap.get(r))}},TN=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},n.forEach(r=>this.addLanguage(r))}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(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){let n=e.split("."),r=[];for(let i=1;i<=n.length;i++){let o=n.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},w7=0;function JTe(t){w7+=1,t.warnings!==!1&&w7>=10&&w7%10===0&&console.warn(`[Shiki] ${w7} 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 e=!1;if(!t.engine)throw new Uf("`engine` option is required for synchronous mode");let n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(k7),i=new TN(t.engine,n),o=new EN(i,r,n,t.langAlias),a;function s(b){return Bee(b,t.langAlias)}function l(b){g();let w=o.getGrammar(typeof b=="string"?b:b.name);if(!w)throw new Uf(`Language \`${b}\` not found, you may need to load it first`);return w}function c(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();let w=o.getTheme(b);if(!w)throw new Uf(`Theme \`${b}\` not found, you may need to load it first`);return w}function u(b){g();let w=c(b);a!==b&&(o.setTheme(w),a=b);let v=o.getColorMap();return{theme:w,colorMap:v}}function d(){return g(),o.getLoadedThemes()}function p(){return g(),o.getLoadedLanguages()}function m(...b){g(),o.loadLanguages(b.flat(1))}async function f(...b){return m(await Dee(b))}function h(...b){g();for(let w of b.flat(1))o.loadTheme(w)}async function x(...b){return g(),h(await Fee(b))}function g(){if(e)throw new Uf("Shiki instance has been disposed")}function y(){e||(e=!0,o.dispose(),w7-=1)}return{setTheme:u,getTheme:c,getLanguage:l,getLoadedThemes:d,getLoadedLanguages:p,resolveLangAlias:s,loadLanguage:f,loadLanguageSync:m,loadTheme:x,loadThemeSync:h,dispose:y,[Symbol.dispose]:y}}async function eRe(t){t.engine||QTe("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[e,n,r]=await Promise.all([Fee(t.themes||[]),Dee(t.langs||[]),t.engine]);return JTe({...t,themes:e,langs:n,engine:r})}async function tRe(t){let e=await eRe(t);return{getLastGrammarState:(...n)=>DTe(e,...n),codeToTokensBase:(n,r)=>IN(e,n,r),codeToTokensWithThemes:(n,r)=>Oee(e,n,r),codeToTokens:(n,r)=>$v(e,n,r),codeToHast:(n,r)=>Iv(e,n,r),codeToHtml:(n,r)=>XTe(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function zee(t){let e=t.langs,n=t.themes,r=t.engine;async function i(o){function a(d){if(typeof d=="string"){if(d=o.langAlias?.[d]||d,$ee(d))return[];let p=e[d];if(!p)throw new ai(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return p}return d}function s(d){if(Iee(d))return"none";if(typeof d=="string"){let p=n[d];if(!p)throw new ai(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return p}return d}let l=(o.themes??[]).map(d=>s(d)),c=(o.langs??[]).map(d=>a(d)),u=await tRe({engine:o.engine??r(),...o,themes:l,langs:c});return{...u,loadLanguage(...d){return u.loadLanguage(...d.map(a))},loadTheme(...d){return u.loadTheme(...d.map(s))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return i}function nRe(t){let e;async function n(r={}){if(e){let i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{e=t({...r,themes:[],langs:[]});let i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function qee(t,e){let n=nRe(t);async function r(i,o){let a=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),s=await e?.guessEmbeddedLanguages?.(i,o.lang,a);return s&&await a.loadLanguage(...s),a}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}function Zf(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function Hee(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}var C7=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),to=String.raw;function zp(t,e){if(t==null)throw new Error(e??"Value expected");return t}var Kee=to`\[\^?`,Xee=`c.? | C(?:-.?)?|${to`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${to`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${to`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${to`o\{[^\}]*\}?`}|${to`\d{1,3}`}`,jN=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,jv=new RegExp(to` +\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function GJ(t,e,n,r){let i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags,a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase()),s=[],l;i.space==="html"&&t.tagName==="svg"&&(r.schema=sv);let c=pEe(r,t.properties),u=r.all(i.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=i,u&&(a=!1),(c||!o||!HJ(t,e,n))&&(s.push("<",t.tagName,c?" "+c:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!o||!d7(t,e,n))&&s.push("</"+t.tagName+">"),s.join("")}function pEe(t,e){let n=[],r=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){let o=mEe(t,i,e[i]);o&&n.push(o)}}for(;++r<n.length;){let o=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function mEe(t,e,n){let r=pN(t.schema,e),i=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1,a=t.quote,s;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"";let l=Dp(r.attribute,Object.assign({},t.settings.characterReferences,{subset:pv.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?OJ:DJ)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(s=Dp(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:pv.unquoted[i][o]}))),s!==n&&(t.settings.quoteSmart&&Db(n,a)>Db(n,t.alternative)&&(a=t.alternative),s=a+Dp(n,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?pv.single:pv.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}var fEe=["<","&"];function mv(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Dp(t.value,Object.assign({},r.settings.characterReferences,{subset:fEe}))}function UJ(t,e,n,r){return r.settings.allowDangerousHtml?t.value:mv(t,e,n,r)}function VJ(t,e,n,r){return r.all(t)}var ZJ=lv("type",{invalid:hEe,unknown:gEe,handlers:{comment:PJ,doctype:jJ,element:GJ,raw:UJ,root:VJ,text:mv}});function hEe(t){throw new Error("Expected node, not `"+t+"`")}function gEe(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}var bEe={},yEe={},xEe=[];function Vo(t,e){let n=e||bEe,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:wEe,all:vEe,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||xJ,characterReferences:n.characterReferences||yEe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?sv:_J,quote:r,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function wEe(t,e,n){return ZJ(t,e,n,this)}function vEe(t){let e=[],n=t&&t.children||xEe,r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}var bv=class{hoveredLine;hoveredToken;pre;gutterUtilityLine;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;proposedSelectedRange;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:"idle"};constructor(t,e){this.mode=t,this.options=e}setOptions(t){this.options=t}cleanUp(){this.pre?.removeEventListener("click",this.handlePointerClick),this.pre?.removeEventListener("pointerdown",this.handlePointerDown),this.pre?.removeEventListener("pointermove",this.handlePointerMove),this.pre?.removeEventListener("pointerleave",this.handlePointerLeave),this.pre?.removeAttribute("data-interactive-lines"),this.pre?.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(t){this.setSelectionDirty();let{usesCustomGutterUtility:e=!1,enableGutterUtility:n=!1}=this.options;this.pre!==t&&(this.cleanUp(),this.pre=t),n?this.ensureGutterUtilityNode(e):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode==="gutterSelecting"&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(t),this.updateInteractiveLineAttributes(),this.renderSelection(),this.placeUtility()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(t,e){let n=!(t===this.selectedRange||oN(t??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.proposedSelectedRange=void 0,this.selectedRange=t,this.renderSelection(),this.placeUtility(),n&&e?.notify!==!1&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{let t=this.gutterUtilityLine??this.hoveredLine;if(t!=null){if(this.mode==="diff"&&t.type==="diff-line")return{lineNumber:t.lineNumber,side:t.annotationSide};if(this.mode==="file"&&t.type==="line")return{lineNumber:t.lineNumber}}};handlePointerClick=t=>{let{onHunkExpand:e,onLineClick:n,onLineNumberClick:r,onTokenClick:i,onMergeConflictActionClick:o}=this.options;e==null&&n==null&&r==null&&o==null&&i==null||this.options.onGutterUtilityClick!=null&&hv(t.composedPath())||(Fp(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",t),this.handlePointerEvent({eventType:"click",event:t}))};handlePointerMove=t=>{if(t.pointerType!=="mouse")return;let{lineHoverHighlight:e="disabled",onLineEnter:n,onLineLeave:r,onTokenEnter:i,onTokenLeave:o,enableGutterUtility:a=!1}=this.options;e==="disabled"&&!a&&n==null&&r==null&&i==null&&o==null||(Fp(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",t),this.handlePointerEvent({eventType:"move",event:t}))};handlePointerLeave=t=>{let{__debugPointerEvents:e}=this.options;if(Fp(e,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null&&this.hoveredToken==null){Fp(e,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token");return}this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,t),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:t}),this.clearHoveredLine()),this.placeUtility()};handlePointerEvent({eventType:t,event:e}){let{__debugPointerEvents:n}=this.options,r=e.composedPath();Fp(n,t,"FileDiff.DEBUG.handlePointerEvent:",{eventType:t,composedPath:r});let i=this.resolvePointerTarget(r);Fp(n,t,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",i);let{onLineClick:o,onLineNumberClick:a,onLineEnter:s,onLineLeave:l,onTokenClick:c,onTokenEnter:u,onTokenLeave:d,onHunkExpand:p,onMergeConflictActionClick:m}=this.options;switch(t){case"move":{let f=gN(i)&&this.hoveredLine?.lineElement===i.lineElement;gv(i)&&this.hoveredToken?.tokenElement===i.tokenElement||(this.hoveredToken!=null&&(d?.(this.hoveredToken,e),this.clearHoveredToken()),gv(i)&&(this.setHoveredToken(this.toTokenEventBaseProps(i)),u?.(this.hoveredToken,e))),f||(this.hoveredLine!=null&&(l?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),gN(i)?(this.setHoveredLine(this.toEventBaseProps(i)),this.placeUtility(),s?.({...this.hoveredLine,event:e})):this.placeUtility());break}case"click":{if(i==null)break;if(_Ee(i)&&m!=null){m(i);break}if(CEe(i)&&p!=null){p(i.hunkIndex,i.all||e.shiftKey?"both":i.direction,i.all||e.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!gN(i))break;gv(i)&&c!=null&&c(this.toTokenEventBaseProps(i),e);let f=this.toEventBaseProps(i);a!=null&&i.numberColumn?a({...f,event:e}):o?.({...f,event:e});break}}}syncPointerListeners(t){let{__debugPointerEvents:e,lineHoverHighlight:n="disabled",onLineClick:r,onLineNumberClick:i,onLineEnter:o,onLineLeave:a,onTokenClick:s,onTokenEnter:l,onTokenLeave:c,onHunkExpand:u,onMergeConflictActionClick:d,enableGutterUtility:p=!1,enableLineSelection:m=!1,onGutterUtilityClick:f}=this.options,h=f!=null,x=n!=="disabled"||r!=null||i!=null||o!=null||a!=null||s!=null||l!=null||c!=null||u!=null||d!=null||p||m||h;x&&!this.hasPointerListeners?(t.addEventListener("click",this.handlePointerClick),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointermove",this.handlePointerMove),t.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,Fp(e,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{let b=[];return(e==="both"||e==="click")&&(r!=null&&b.push("onLineClick"),i!=null&&b.push("onLineNumberClick"),u!=null&&b.push("expandable hunk separators"),d!=null&&b.push("merge conflict actions")),b})()),Fp(e,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),Fp(e,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!x&&this.hasPointerListeners&&(t.removeEventListener("click",this.handlePointerClick),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointermove",this.handlePointerMove),t.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);let g=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",y=this.pointerSession.mode==="gutterSelecting";(!m&&g||!h&&y)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;let{onLineClick:t,onLineNumberClick:e,enableLineSelection:n=!1}=this.options,r=t!=null,i=e!=null||n;r&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!r&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),i&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!i&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}handlePointerDown=t=>{if(t.pointerType==="mouse"&&t.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;let e=t.composedPath();hv(e)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(t):(t.pointerType!=="mouse"&&this.revealUtilityFromGutterPath(e),this.startLineSelectionFromPointerDown(t))};startLineSelectionFromPointerDown(t){let{enableLineSelection:e=!1}=this.options;if(!e)return;let n=this.resolveSelectionInfo(t,{source:"event-path",requireNumberColumn:!0});if(n==null)return;let{pre:r}=this;if(r==null)return;t.preventDefault();let{lineNumber:i,eventSide:o,lineIndex:a}=n;if(t.shiftKey&&this.selectedRange!=null){let s=this.getIndexesFromSelection(this.selectedRange,r.getAttribute("data-diff-type")==="split");if(s==null)return;let l=s.start<=s.end?a>=s.start:a<=s.end;this.selectionAnchor={lineNumber:l?this.selectedRange.start:this.selectedRange.end,side:l?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(i,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:t.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===i&&this.selectedRange?.end===i){let s={lineNumber:i,side:o};this.selectionAnchor=s,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:t.pointerId,anchor:s,pending:s},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:i,side:o},this.updateSelection(i,o,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:t.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(t){let{enableLineSelection:e=!1,onGutterUtilityClick:n}=this.options;if(n==null)return;let r=this.currentSelectionEnds(),i=r?.bottom??this.resolveSelectionPoint(t,{source:"event-path",excludeUtility:!1}),o=r?.top??i;i==null||o==null||(t.preventDefault(),t.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:t.pointerId,anchor:o,current:i},e&&(this.selectionAnchor={lineNumber:o.lineNumber,side:o.side},this.updateSelection(i.lineNumber,i.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange())),this.attachDocumentPointerListeners())}handleDocumentPointerMove=t=>{let{enableLineSelection:e=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let n=this.resolveSelectionPoint(t,{source:"coordinates-first"});if(n==null)return;this.pointerSession.current=n,e===!0&&this.updateSelection(n.lineNumber,n.side);return}case"selecting":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let n=this.resolveSelectionInfo(t,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;this.updateSelection(n.lineNumber,n.eventSide);return}case"pendingSingleLineUnselect":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let n=this.resolveSelectionInfo(t,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;let r={lineNumber:n.lineNumber,side:n.eventSide};if(yJ(this.pointerSession.pending,r))return;this.updateSelection(n.lineNumber,n.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:t.pointerId};return}}};handleDocumentPointerUp=t=>{let{enableLineSelection:e=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault();let r=this.resolveSelectionPoint(t,{source:"coordinates-first"});r!=null&&(this.pointerSession.current=r,e&&this.updateSelection(r.lineNumber,r.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,e&&(this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection();return;case"selecting":if(t.pointerId!==this.pointerSession.pointerId)return;t.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(),this.clearProposedSelection()}};handleDocumentPointerCancel=t=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&t.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(t){let{lineHoverHighlight:e="disabled"}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=t,e!=="disabled"&&((e==="both"||e==="line")&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),(e==="both"||e==="number")&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(t){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=t}ensureGutterUtilityNode(t){if(this.gutterUtilityContainer==null&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),t)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot==null&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){let e=document.createElement("div");e.innerHTML=Vo(bJ());let n=e.firstElementChild;if(!(n instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");n.remove(),this.gutterUtilityButton=n}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(t){if(this.placeUtilityFromSelection())return;let e=this.resolvePointerTarget(t);p7(e)&&e.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(e))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){let t=this.currentSelectionEnds();if(t==null)return!1;let e=this.targetForSelectionPoint(t.bottom);return e==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(e)),!0}showUtilityOnLine(t){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=t,t.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){this.gutterUtilityContainer?.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){let t=this.getCurrentSelectionRange();return t==null?void 0:this.selectionEnds(t)}selectionEnds(t){let e={lineNumber:t.start,side:t.side},n={lineNumber:t.end,side:t.endSide??t.side},r=this.selectionPointRowIndex(e),i=this.selectionPointRowIndex(n);if(!(r==null||i==null))return r>i?{top:n,bottom:e}:{top:e,bottom:n}}selectionPointRowIndex(t){let e=this.getLineIndex(t.lineNumber,t.side);if(e!=null)return this.isSplitDiff()?e[1]:e[0]}targetForSelectionPoint(t){if(this.pre==null)return;let e=this.getLineIndex(t.lineNumber,t.side);if(e==null)return;let n=this.mode==="diff"?`${e[0]},${e[1]}`:`${e[0]}`,r=this.pre.querySelectorAll(`[data-column-number="${t.lineNumber}"][data-line-index="${n}"]`);for(let i of r){if(!(i instanceof HTMLElement))continue;let o=this.resolvePointerTarget(fv(i));if(p7(o)&&!(this.mode==="diff"&&t.side!=null&&o.side!==t.side))return o}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){this.pointerSession.mode==="pendingSingleLineUnselect"&&(this.pointerSession={mode:"idle"})}selectionInfoFromPath(t,e){let n=this.resolvePointerTarget(t);if(p7(n)&&!(e&&!n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode==="diff"?n.side:void 0}}resolveSelectionInfo(t,e){let n=this.resolveSelectionPath(t,e);return n!=null?this.selectionInfoFromPath(n,e.requireNumberColumn):void 0}selectionPointFromPath(t){let e=this.resolvePointerTarget(t);if(p7(e))return{lineNumber:e.lineNumber,side:this.mode==="diff"?e.side:void 0}}resolveSelectionPoint(t,e){let n=this.resolveSelectionPath(t,e);return n!=null?this.selectionPointFromPath(n):void 0}resolveSelectionPath(t,e){let n=e.excludeUtility!==!1;switch(e.source){case"event-path":return this.pathFromEventPath(t.composedPath(),n);case"coordinates-first":{let r=this.pathFromCoordinates(t,n);return r!==void 0?r??void 0:this.pathFromEventPath(t.composedPath(),n)}}}pathFromCoordinates(t,e){let n=this.hitTest(t);if(n!==void 0)return n===null?null:this.pathFromElement(n,e)??null}pathFromEventPath(t,e){if(!(e&&hv(t))){for(let n of t)if(n instanceof Element)return this.pathFromElement(n,e)}}pathFromElement(t,e){let n=fv(t);if(e&&hv(n))return;let r=LEe(t);return r!=null?fv(r):this.pathFromAnnotationSlot(t)}pathFromAnnotationSlot(t){let e=EEe(MEe(t));if(e==null)return;let n=this.targetForSelectionPoint(e);return n!=null?fv(n.lineElement):void 0}hitTest(t){if(!Number.isFinite(t.clientX)||!Number.isFinite(t.clientY))return;let e=this.pre?.getRootNode(),n=KJ(e)?e:KJ(document)?document:void 0;if(n!=null)return n.elementFromPoint(t.clientX,t.clientY)}getLineIndex(t,e){let{getLineIndex:n}=this.options;return n!=null?n(t,e):[t-1,t-1]}getCurrentSelectionRange(){return this.proposedSelectedRange!==void 0?this.proposedSelectedRange:this.selectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(t,e,n=!0){let r=this.getCurrentSelectionRange(),i;if(t==null)i=null;else{let o=this.selectionAnchor?.side??e,a=this.selectionAnchor?.lineNumber??t;i=this.buildSelectionRange(a,t,o,e)}oN(r??void 0,i??void 0)||(this.options.controlledSelection===!0?this.proposedSelectedRange=i:(this.selectedRange=i,this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection)),this.placeUtility(),n&&this.notifySelectionChangeDelta())}getIndexesFromSelection(t,e){if(this.pre==null)return;let n=this.getLineIndex(t.start,t.side),r=this.getLineIndex(t.end,t.endSide??t.side);return n!=null&&r!=null?{start:e?n[1]:n[0],end:e?r[1]:r[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;let t=this.pre.querySelectorAll("[data-selected-line]");for(let s of t)s.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;let{children:e}=this.pre;if(e.length===0)return;if(e.length>2)throw console.error(e),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");let n=this.pre.getAttribute("data-diff-type")==="split",r=this.getIndexesFromSelection(this.selectedRange,n);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),new Error("InteractionManager.renderSelection: No valid rowRange");let i=r.start===r.end,o=Math.min(r.start,r.end),a=Math.max(r.start,r.end);for(let s of e){let[l,c]=s.children,u=c.children.length;if(u!==l.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let d=0;d<u;d++){let p=c.children[d],m=l.children[d];if(!(p instanceof HTMLElement)||!(m instanceof HTMLElement))continue;let f=this.parseLineIndex(p,n);if((f??0)>a)break;if(f==null||f<o)continue;let h=i?"single":f===o?"first":f===a?"last":"";p.setAttribute("data-selected-line",h),m.setAttribute("data-selected-line",h),m.nextSibling instanceof HTMLElement&&p.nextSibling instanceof HTMLElement&&(p.nextSibling.hasAttribute("data-line-annotation")||p.nextSibling.hasAttribute("data-merge-conflict-actions"))&&(i?(h="last",p.setAttribute("data-selected-line","first")):f===o?h="":f===a&&p.setAttribute("data-selected-line",""),p.nextSibling.setAttribute("data-selected-line",h),m.nextSibling.setAttribute("data-selected-line",h))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.getCurrentSelectionRange()??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.getCurrentSelectionRange()??null)}notifySelectionStart(t){this.options.onLineSelectionStart?.(t)}notifySelectionEnd(t){this.options.onLineSelectionEnd?.(t)}toEventBaseProps(t){return this.mode==="file"?{type:"line",lineElement:t.lineElement,lineNumber:t.lineNumber,numberColumn:t.numberColumn,numberElement:t.numberElement}:{type:"diff-line",annotationSide:t.side,lineType:t.lineType,lineElement:t.lineElement,numberElement:t.numberElement,lineNumber:t.lineNumber,numberColumn:t.numberColumn}}toTokenEventBaseProps({lineCharEnd:t,lineCharStart:e,lineNumber:n,side:r,tokenElement:i,tokenText:o}){return this.mode==="file"?{type:"token",lineCharEnd:t,lineCharStart:e,lineNumber:n,tokenElement:i,tokenText:o}:{type:"token",lineCharEnd:t,lineCharStart:e,lineNumber:n,side:r,tokenElement:i,tokenText:o}}buildSelectedLineRange(t,e){return this.buildSelectionRange(t.lineNumber,e.lineNumber,t.side,e.side)}buildSelectionRange(t,e,n,r){return{start:t,end:e,...n!=null?{side:n}:{},...n!==r&&r!=null?{endSide:r}:{}}}resolvePointerTarget(t){let e=!1,n,r,i,o,a,s,l,c,u,d;for(let m of t){if(!(m instanceof HTMLElement))continue;if(d==null&&m.hasAttribute("data-merge-conflict-action")){let g=m.getAttribute("data-merge-conflict-action")??void 0,y=m.getAttribute("data-merge-conflict-conflict-index")??void 0,b=y!=null?Number.parseInt(y,10):NaN;SEe(g)&&Number.isFinite(b)&&(d={kind:"merge-conflict-action",resolution:g,conflictIndex:b})}if(s==null&&m.hasAttribute("data-char")){s=m;let g=m.getAttribute("data-char");if(g!=null){let y=Number.parseInt(g,10);if(!Number.isNaN(y)){let b=m.textContent??"",w=y+b.length;(b.trim()!==""||this.options.enableTokenInteractionsOnWhitespace===!0)&&(l={tokenElement:s,lineCharStart:y,lineCharEnd:w,tokenText:b});continue}}}let f=a==null?m.getAttribute("data-column-number")??void 0:void 0;if(f!=null){a=m,u=Number.parseInt(f,10),e=!0,n=YJ(m),o=m.getAttribute("data-line-index")??void 0;continue}let h=i==null?m.getAttribute("data-line")??void 0:void 0;if(h!=null){i=m,u=Number.parseInt(h,10),n=YJ(m),o=m.getAttribute("data-line-index")??void 0;continue}if(c==null&&(m.hasAttribute("data-expand-button")||m.hasAttribute("data-unmodified-lines"))){c={hunkIndex:void 0,direction:m.hasAttribute("data-expand-up")?"up":m.hasAttribute("data-expand-down")?"down":"both",all:m.hasAttribute("data-expand-all-button")};continue}let x=c!=null?m.getAttribute("data-expand-index")??void 0:void 0;if(c!=null&&x!=null){let g=Number.parseInt(x,10);Number.isNaN(g)||(c.hunkIndex=g);continue}if(r==null&&m.hasAttribute("data-code")){r=m;break}}if(d!=null)return d;if(c?.hunkIndex!=null)return{type:"line-info",hunkIndex:c.hunkIndex,direction:c.direction,all:c.all};if(i??=o!=null?WJ(r,`[data-line][data-line-index="${o}"]`):void 0,a??=o!=null?WJ(r,`[data-column-number][data-line-index="${o}"]`):void 0,r==null||i==null||a==null||n==null||u==null||Number.isNaN(u))return;let p=this.parseLineIndex(i,this.isSplitDiff());return l!=null?this.mode==="file"?{kind:"token",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:void 0,splitLineIndex:p,...l}:{kind:"token",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:XJ(n,r),splitLineIndex:p,...l}:this.mode==="file"?{kind:"line",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:void 0,splitLineIndex:p}:{kind:"line",lineType:n,lineElement:i,lineNumber:u,numberColumn:e,numberElement:a,side:XJ(n,r),splitLineIndex:p}}isSplitDiff(){return this.pre?.getAttribute("data-diff-type")==="split"}parseLineIndex(t,e){let n=(t.getAttribute("data-line-index")??"").split(",").map(r=>Number.parseInt(r,10)).filter(r=>!Number.isNaN(r));if(e&&n.length===2)return n[1];if(!e)return n[0]}};function Fb({enableTokenInteractionsOnWhitespace:t,enableGutterUtility:e,lineHoverHighlight:n,onGutterUtilityClick:r,onLineClick:i,onLineEnter:o,onLineLeave:a,onLineNumberClick:s,onTokenClick:l,onTokenEnter:c,onTokenLeave:u,renderGutterUtility:d,__debugPointerEvents:p,enableLineSelection:m,controlledSelection:f,onLineSelected:h,onLineSelectionStart:x,onLineSelectionChange:g,onLineSelectionEnd:y},b,w,v){return{enableTokenInteractionsOnWhitespace:t,enableGutterUtility:kEe({enableGutterUtility:e,renderGutterUtility:d,onGutterUtilityClick:r}),usesCustomGutterUtility:d!=null,lineHoverHighlight:n,onGutterUtilityClick:r,onHunkExpand:b,onMergeConflictActionClick:v,onLineClick:i,onLineEnter:o,onLineLeave:a,onLineNumberClick:s,onTokenClick:l,onTokenEnter:c,onTokenLeave:u,__debugPointerEvents:p,enableLineSelection:m,controlledSelection:f,onLineSelected:h,onLineSelectionStart:x,onLineSelectionChange:g,onLineSelectionEnd:y,getLineIndex:w}}function kEe({enableGutterUtility:t,renderGutterUtility:e,onGutterUtilityClick:n}){if(n!=null&&e!=null)throw new Error("Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.");return t??!1}function p7(t){return t!=null&&"kind"in t&&t.kind==="line"}function gv(t){return t!=null&&"kind"in t&&t.kind==="token"}function gN(t){return p7(t)||gv(t)}function CEe(t){return"type"in t&&t.type==="line-info"}function _Ee(t){return"kind"in t&&t.kind==="merge-conflict-action"}function SEe(t){return t==="current"||t==="incoming"||t==="both"}function WJ(t,e){let n=t?.querySelector(e);return n instanceof HTMLElement?n:void 0}function fv(t){let e=[],n=t;for(;n!=null;)e.push(n),n=n.parentNode;return e}function LEe(t){let e=t.closest("[data-line], [data-column-number]");if(e instanceof HTMLElement)return e;let n=t.closest('[data-line-annotation], [data-gutter-buffer="annotation"]');if(!(n instanceof HTMLElement))return;let r=n.previousElementSibling;return r instanceof HTMLElement&&(r.hasAttribute("data-line")||r.hasAttribute("data-column-number"))?r:void 0}function MEe(t){let e=t.closest('[slot^="annotation-"]');if(e instanceof HTMLElement)return e.getAttribute("slot")??void 0;if(t instanceof HTMLElement){let n=t.getAttribute("name")??void 0;return n!=null&&n.startsWith("annotation-")?n:void 0}}function EEe(t){if(t==null)return;let e=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(t);if(e==null)return;let n=Number.parseInt(e[2],10);if(Number.isFinite(n))return{lineNumber:n,side:e[1]}}function KJ(t){return t!=null&&typeof t.elementFromPoint=="function"}function XJ(t,e){switch(t){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return e.hasAttribute("data-deletions")?"deletions":"additions"}}function YJ(t){let e=t.getAttribute("data-line-type");if(e!=null)switch(e){case"change-deletion":case"change-addition":case"context":case"context-expanded":return e;default:return}}function hv(t){for(let e of t)if(e instanceof HTMLElement&&(e.hasAttribute("data-utility-button")||e.hasAttribute("data-gutter-utility-slot")||e.getAttribute("slot")==="gutter-utility-slot"||e.getAttribute("name")==="gutter-utility-slot"))return!0;return!1}function Fp(t="none",e,...n){switch(t){case"none":return;case"both":break;case"click":if(e!=="click")return;break;case"move":if(e!=="move")return;break}console.log(...n)}var yv=class Bp{static resizeObserver;static managersByElement=new Map;static getResizeObserver(){let e=Bp.resizeObserver??new ResizeObserver(Bp.handleSharedResizeEntries);return Bp.resizeObserver=e,e}static handleSharedResizeEntries(e){let n=new Map;for(let r of e){let i=Bp.managersByElement.get(r.target);if(i==null)continue;let o=n.get(i);o==null?n.set(i,[r]):o.push(r)}for(let[r,i]of n)r.handleResizeEntries(i)}observedNodes=new Map;setup(e,n){let r=new Set,i=0,o=new Map(this.observedNodes);this.observedNodes.clear();for(let a of e.children){if(i===2)break;let s=(()=>{if(a instanceof HTMLElement&&a.tagName==="CODE")return a})();if(s==null)continue;i++;let l=o.get(s);if(l!=null&&l.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let c=s.firstElementChild;c instanceof HTMLElement||(c=null),l!=null?(this.observedNodes.set(s,l),o.delete(s),l.numberElement!==c?(l.numberElement!=null&&(this.unobserve(l.numberElement),o.delete(l.numberElement)),c!=null&&(this.observe(c),o.delete(c),this.observedNodes.set(c,l)),l.numberElement=c,l.numberWidth=0):l.numberElement!=null?(o.delete(l.numberElement),this.observedNodes.set(l.numberElement,l)):l.numberWidth=0):(l={type:"code",codeElement:s,numberElement:c,codeWidth:"auto",numberWidth:0},this.observedNodes.set(s,l),this.observe(s),c!=null&&(this.observedNodes.set(c,l),this.observe(c)))}if(i>1&&!n){let a=e.querySelectorAll('[data-line-annotation*=","]'),s=new Map;for(let l of a){if(!(l instanceof HTMLElement))continue;let c=l.getAttribute("data-line-annotation")??"";if(!/^\d+,\d+$/.test(c)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:c,element:l});continue}let u=s.get(c);u==null&&(u=[],s.set(c,u)),u.push(l)}for(let[l,c]of s){if(c.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",l,c);continue}let[u,d]=c,p=u.firstElementChild,m=d.firstElementChild;if(!(u instanceof HTMLElement)||!(d instanceof HTMLElement)||!(p instanceof HTMLElement)||!(m instanceof HTMLElement))continue;let f=o.get(p);if(f!=null){this.observedNodes.set(p,f),this.observedNodes.set(m,f),o.delete(p),o.delete(m);continue}let h=p.getBoundingClientRect().height,x=m.getBoundingClientRect().height;f={type:"annotations",column1:{container:u,child:p,childHeight:h},column2:{container:d,child:m,childHeight:x},currentHeight:"auto"},r.add({child1:p,child2:m,item:f,newHeight:Math.max(h,x)})}for(let l of r)this.applyNewHeight(l.item,l.newHeight),this.observedNodes.set(l.child1,l.item),this.observedNodes.set(l.child2,l.item),this.observe(l.child1),this.observe(l.child2);r.clear()}for(let[a,s]of o)this.unobserve(a),s.type==="code"?AEe(s):$Ee(s);o.clear()}cleanUp(){for(let e of this.observedNodes.keys())this.unobserve(e);this.observedNodes.clear()}observe(e){let{managersByElement:n}=Bp,r=n.get(e);if(r!==this){if(r!=null&&r!==this)throw new Error("ResizeManager.observe: element is already owned by another ResizeManager");n.set(e,this),Bp.getResizeObserver().observe(e)}}unobserve(e){let{managersByElement:n,resizeObserver:r}=Bp,i=n.get(e);if(i!=null){if(i!==this)throw new Error("ResizeManager.unobserve: element is owned by another ResizeManager");n.delete(e),r?.unobserve(e),r!=null&&n.size===0&&(r.disconnect(),Bp.resizeObserver=void 0)}}handleResizeEntries(e){let n=new Map,r=new Set;for(let i of e){let{target:o,borderBoxSize:a,contentBoxSize:s}=i;if(!(o instanceof HTMLElement)){console.error("ResizeManager.handleResizeEntries: Invalid element for ResizeObserver",i);continue}let l=this.observedNodes.get(o);if(l==null){console.error("ResizeManager.handleResizeEntries: Not a valid observed node",i);continue}if(l.type==="annotations"){let c=(()=>{if(o===l.column1.child)return l.column1;if(o===l.column2.child)return l.column2})();if(c==null){console.error("ResizeManager.handleResizeEntries: Couldn't find a column for",{item:l,target:o});continue}c.childHeight=a[0].blockSize,r.add(l)}else if(l.type==="code"){let c=n.get(l)??{},u=s[0].inlineSize;o===l.codeElement?c.codeInlineSize=u:o===l.numberElement&&(c.numberInlineSize=u),n.set(l,c)}}this.applyAnnotationUpdates(r),r.clear(),this.applyColumnUpdates(n),n.clear()}applyAnnotationUpdates(e){for(let n of e)this.applyNewHeight(n,Math.max(n.column1.childHeight,n.column2.childHeight))}applyColumnUpdates=e=>{for(let[n,r]of e){let i=r.codeInlineSize!=null?TEe(r.codeInlineSize):n.codeWidth,o=r.numberInlineSize!=null?REe(r.numberInlineSize):n.numberWidth,a=i!==n.codeWidth,s=o!==n.numberWidth;if(!(!a&&!s)&&(n.codeWidth=i,n.numberWidth=o,a&&n.codeElement.style.setProperty("--diffs-column-width",`${typeof i=="number"?`${i}px`:"auto"}`),s&&n.codeElement.style.setProperty("--diffs-column-number-width",`${o===0?"auto":`${o}px`}`),a||s&&i!=="auto")){let l=typeof i=="number"?Math.max(i-o,0):0;n.codeElement.style.setProperty("--diffs-column-content-width",`${l>0?`${l}px`:"auto"}`)}}};applyNewHeight(e,n){n!==e.currentHeight&&(e.currentHeight=Math.max(n,0),e.column1.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`),e.column2.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`))}};function TEe(t){let e=Math.max(Math.floor(t),0);return e===0?"auto":e}function REe(t){return Math.max(Math.ceil(t),0)}function AEe(t){t.codeElement.isConnected&&(t.codeElement.style.removeProperty("--diffs-column-content-width"),t.codeElement.style.removeProperty("--diffs-column-number-width"),t.codeElement.style.removeProperty("--diffs-column-width"))}function $Ee(t){t.column1.container.isConnected&&t.column1.container.style.removeProperty("--diffs-annotation-min-height"),t.column2.container.isConnected&&t.column2.container.style.removeProperty("--diffs-annotation-min-height")}var Sc=new Map,xv=new Map,QJ=new Map,m7=new Set;function Bb(t){for(let e of Array.isArray(t)?t:[t])if(!(e==="text"||e==="ansi")&&!m7.has(e))return!1;return!0}function bN(t,e){t=Array.isArray(t)?t:[t];for(let n of t){if(m7.has(n.name))continue;let r=Sc.get(n.name);r==null&&(r=n,Sc.set(n.name,r)),m7.add(r.name),e.loadLanguageSync(r.data)}}function wv(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var ai=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function IEe(t){return MN(t)}function MN(t){return Array.isArray(t)?NEe(t):t instanceof RegExp?t:typeof t=="object"?PEe(t):t}function NEe(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=MN(t[n]);return e}function PEe(t){let e={};for(let n in t)e[n]=MN(t[n]);return e}function see(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function lee(t){let e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?lee(t.substring(0,t.length-1)):t.substr(~e+1)}var yN=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vv=class{static hasCaptures(t){return t===null?!1:(yN.lastIndex=0,yN.test(t))}static replaceCaptures(t,e,n){return t.replace(yN,(r,i,o,a)=>{let s=n[parseInt(i||o,10)];if(s){let l=e.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function cee(t,e){return t<e?-1:t>e?1:0}function uee(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let i=0;i<n;i++){let o=cee(t[i],e[i]);if(o!==0)return o}return 0}return n-r}function JJ(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function dee(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var pee=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);let e=this.fn(t);return this.cache.set(t,e),e}},g7=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(DEe(t),e)}static createFromParsedTheme(t,e){return BEe(t,e)}_cachedMatchRoot=new pee(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;let e=t.scopeName,r=this._cachedMatchRoot.get(e).find(i=>jEe(t.parent,i.parentScopes));return r?new mee(r.fontStyle,r.foreground,r.background):null}},xN=class kv{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(let r of n)e=new kv(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new kv(n,e[r]);return n}push(e){return new kv(this,e)}getSegments(){let e=this,n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function jEe(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],i=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],i=!0}for(;t&&!OEe(t.scopeName,r);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function OEe(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var mee=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function DEe(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let i=0,o=e.length;i<o;i++){let a=e[i];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let d=a.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let d=a.settings.fontStyle.split(" ");for(let p=0,m=d.length;p<m;p++)switch(d[p]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof a.settings.foreground=="string"&&JJ(a.settings.foreground)&&(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&JJ(a.settings.background)&&(u=a.settings.background);for(let d=0,p=s.length;d<p;d++){let f=s[d].trim().split(" "),h=f[f.length-1],x=null;f.length>1&&(x=f.slice(0,f.length-1),x.reverse()),n[r++]=new FEe(h,x,i,l,c,u)}}return n}var FEe=class{constructor(t,e,n,r,i,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},Zo=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(Zo||{});function BEe(t,e){t.sort((l,c)=>{let u=cee(l.scope,c.scope);return u!==0||(u=uee(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let o=new zEe(e),a=new mee(n,o.getId(r),o.getId(i)),s=new HEe(new vN(0,null,-1,0,0),[]);for(let l=0,c=t.length;l<c;l++){let u=t[l];s.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new g7(o,a,s)}var zEe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},qEe=Object.freeze([]),vN=class fee{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,r,i,o){this.scopeDepth=e,this.parentScopes=n||qEe,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new fee(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,i=e.length;r<i;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},HEe=class kN{constructor(e,n=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,i=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=e.parentScopes.length||i>=n.parentScopes.length);){let o=n.parentScopes[i].length-e.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),i,o;if(r===-1?(i=e,o=""):(i=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(kN._cmpBySpecificity),n}insert(e,n,r,i,o,a){if(n===""){this._doInsertHere(e,r,i,o,a);return}let s=n.indexOf("."),l,c;s===-1?(l=n,c=""):(l=n.substring(0,s),c=n.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new kN(this._mainRule.clone(),vN.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(e+1,c,r,i,o,a)}_doInsertHere(e,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(e,r,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(uee(l.parentScopes,n)===0){l.acceptOverwrite(e,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new vN(e,n,r,i,o))}},m0=class Lc{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){let n=Lc.getLanguageId(e),r=Lc.getTokenType(e),i=Lc.getFontStyle(e),o=Lc.getForeground(e),a=Lc.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,i,o,a,s){let l=Lc.getLanguageId(e),c=Lc.getTokenType(e),u=Lc.containsBalancedBrackets(e)?1:0,d=Lc.getFontStyle(e),p=Lc.getForeground(e),m=Lc.getBackground(e);return n!==0&&(l=n),r!==8&&(c=r),i!==null&&(u=i?1:0),o!==-1&&(d=o),a!==0&&(p=a),s!==0&&(m=s),(l<<0|c<<8|u<<10|d<<11|p<<15|m<<24)>>>0}};function _v(t,e){let n=[],r=GEe(t),i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=a();if(n.push({matcher:c,priority:l}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();let l=o();return c=>!!l&&!l(c)}if(i==="("){i=r.next();let l=s();return i===")"&&(i=r.next()),l}if(eee(i)){let l=[];do l.push(i),i=r.next();while(eee(i));return c=>e(l,c)}return null}function a(){let l=[],c=o();for(;c;)l.push(c),c=o();return u=>l.every(d=>d(u))}function s(){let l=[],c=a();for(;c&&(l.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=a()}return u=>l.some(d=>d(u))}}function eee(t){return!!t&&!!t.match(/[\w\.:]+/)}function GEe(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;let r=n[0];return n=e.exec(t),r}}}function hee(t){typeof t.dispose=="function"&&t.dispose()}var b7=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},UEe=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},VEe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){let e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},ZEe=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new b7(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let t=this.Q;this.Q=[];let e=new VEe;for(let n of t)WEe(n,this.initialScopeName,this.repo,e);for(let n of e.references)if(n instanceof b7){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 WEe(t,e,n,r){let i=n.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}let o=n.lookup(e);t instanceof b7?Cv({baseGrammar:o,selfGrammar:i},r):CN(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);let a=n.injections(t.scopeName);if(a)for(let s of a)r.add(new b7(s))}function CN(t,e,n){if(e.repository&&e.repository[t]){let r=e.repository[t];Sv([r],e,n)}}function Cv(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Sv(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Sv(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Sv(t,e,n){for(let r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let i=r.repository?see({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&Sv(r.patterns,{...e,repository:i},n);let o=r.include;if(!o)continue;let a=gee(o);switch(a.kind){case 0:Cv({...e,selfGrammar:e.baseGrammar},n);break;case 1:Cv(e,n);break;case 2:CN(a.ruleName,{...e,repository:i},n);break;case 3:case 4:let s=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(s){let l={baseGrammar:e.baseGrammar,selfGrammar:s,repository:i};a.kind===4?CN(a.ruleName,l,n):Cv(l,n)}else a.kind===4?n.add(new UEe(a.scopeName,a.ruleName)):n.add(new b7(a.scopeName));break}}}var KEe=class{kind=0},XEe=class{kind=1},YEe=class{constructor(t){this.ruleName=t}kind=2},QEe=class{constructor(t){this.scopeName=t}kind=3},JEe=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function gee(t){if(t==="$base")return new KEe;if(t==="$self")return new XEe;let e=t.indexOf("#");if(e===-1)return new QEe(t);if(e===0)return new YEe(t.substring(1));{let n=t.substring(0,e),r=t.substring(e+1);return new JEe(n,r)}}var eTe=/\\(\d+)/,tee=/\\(\d+)/g;var tTe=-1,bee=-2;var w7=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,r){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=vv.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=vv.hasCaptures(this._contentName)}get debugName(){let t=this.$location?`${lee(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:vv.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vv.replaceCaptures(this._contentName,t,e)}},nTe=class extends w7{retokenizeCapturedWithRuleId;constructor(t,e,n,r,i){super(t,e,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,r){throw new Error("Not supported!")}},rTe=class extends w7{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,r,i){super(t,e,n,null),this._match=new y7(r,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,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new x7,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},nee=class extends w7{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,i){super(t,e,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(let n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new x7,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},_N=class extends w7{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,r,i,o,a,s,l,c){super(t,e,n,r),this._begin=new y7(i,this.id),this.beginCaptures=o,this._end=new y7(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.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,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,r)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new x7;for(let n of this.patterns)t.getRule(n).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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Lv=class extends w7{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,r,i,o,a,s,l){super(t,e,n,r),this._begin=new y7(i,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=new y7(a,bee),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.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,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,r){return this._getCachedCompiledPatterns(t).compileAG(t,n,r)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new x7;for(let e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,r){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,r)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new x7,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"\uFFFF"),this._cachedCompiledWhilePatterns}},yee=class ha{static createCaptureRule(e,n,r,i,o){return e.registerRule(a=>new nTe(n,a,r,i,o))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(i=>{if(e.id=i,e.match)return new rTe(e.$vscodeTextmateLocation,e.id,e.name,e.match,ha._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=see({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new nee(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,ha._compilePatterns(o,n,r))}return e.while?new Lv(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ha._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,ha._compileCaptures(e.whileCaptures||e.captures,n,r),ha._compilePatterns(e.patterns,n,r)):new _N(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,ha._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,ha._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,ha._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let i=[];if(e){let o=0;for(let a in e){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(let a in e){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10),l=0;e[a].patterns&&(l=ha.getCompiledRuleId(e[a],n,r)),i[s]=ha.createCaptureRule(n,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,l)}}return i}static _compilePatterns(e,n,r){let i=[];if(e)for(let o=0,a=e.length;o<a;o++){let s=e[o],l=-1;if(s.include){let c=gee(s.include);switch(c.kind){case 0:case 1:l=ha.getCompiledRuleId(r[s.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=ha.getCompiledRuleId(u,n,r));break;case 3:case 4:let d=c.scopeName,p=c.kind===4?c.ruleName:null,m=n.getExternalGrammar(d,r);if(m)if(p){let f=m.repository[p];f&&(l=ha.getCompiledRuleId(f,n,m.repository))}else l=ha.getCompiledRuleId(m.repository.$self,n,m.repository);break}}else l=ha.getCompiledRuleId(s,n,r);if(l!==-1){let c=n.getRule(l),u=!1;if((c instanceof nee||c instanceof _N||c instanceof Lv)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},y7=class xee{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e=="string"){let r=e.length,i=0,o=[],a=!1;for(let s=0;s<r;s++)if(e.charAt(s)==="\\"&&s+1<r){let c=e.charAt(s+1);c==="z"?(o.push(e.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(c==="A"||c==="G")&&(a=!0),s++}this.hasAnchor=a,i===0?this.source=e:(o.push(e.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=eTe.test(this.source):this.hasBackReferences=!1}clone(){return new xee(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,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(i=>e.substring(i.start,i.end));return tee.lastIndex=0,this.source.replace(tee,(i,o)=>dee(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],i=[],o,a,s,l;for(o=0,a=this.source.length;o<a;o++)s=this.source.charAt(o),e[o]=s,n[o]=s,r[o]=s,i[o]=s,s==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="\uFFFF",n[o+1]="\uFFFF",r[o+1]="A",i[o+1]="A"):l==="G"?(e[o+1]="\uFFFF",n[o+1]="G",r[o+1]="\uFFFF",i[o+1]="G"):(e[o+1]=l,n[o+1]=l,r[o+1]=l,i[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},x7=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new ree(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(i=>i.resolveAnchors(e,n));return new ree(t,r,this._items.map(i=>i.ruleId))}},ree=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(` +`)}findNextMatchSync(t,e,n){let r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},wN=class{constructor(t,e){this.languageId=t,this.tokenType=e}},iTe=class SN{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new wN(e,8),this._embeddedLanguagesMatcher=new oTe(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?SN._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new wN(0,0);_getBasicScopeAttributes=new pee(e=>{let n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new wN(n,r)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let n=e.match(SN.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},oTe=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);let e=t.map(([n,r])=>dee(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;let e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},Gdt={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},wee=!1,iee=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function vee(t,e,n,r,i,o,a,s){let l=e.content.length,c=!1,u=-1;if(a){let m=aTe(t,e,n,r,i,o);i=m.stack,r=m.linePos,n=m.isFirstLine,u=m.anchorPosition}let d=Date.now();for(;!c;){if(s!==0&&Date.now()-d>s)return new iee(i,!0);p()}return new iee(i,!1);function p(){let m=sTe(t,e,n,r,i,u);if(!m){o.produce(i,l),c=!0;return}let f=m.captureIndices,h=m.matchedRuleId,x=f&&f.length>0?f[0].end>r:!1;if(h===tTe){let g=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),f7(t,e,n,i,o,g.endCaptures,f),o.produce(i,f[0].end);let y=i;if(i=i.parent,u=y.getAnchorPos(),!x&&y.getEnterPos()===r){i=y,o.produce(i,l),c=!0;return}}else{let g=t.getRule(h);o.produce(i,f[0].start);let y=i,b=g.getName(e.content,f),w=i.contentNameScopesList.pushAttributed(b,t);if(i=i.push(h,r,u,f[0].end===l,null,w,w),g instanceof _N){let v=g;f7(t,e,n,i,o,v.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;let k=v.getContentName(e.content,f),_=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(_),v.endHasBackReferences&&(i=i.withEndRule(v.getEndWithResolvedBackReferences(e.content,f))),!x&&y.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(g instanceof Lv){let v=g;f7(t,e,n,i,o,v.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;let k=v.getContentName(e.content,f),_=w.pushAttributed(k,t);if(i=i.withContentNameScopesList(_),v.whileHasBackReferences&&(i=i.withEndRule(v.getWhileWithResolvedBackReferences(e.content,f))),!x&&y.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(f7(t,e,n,i,o,g.captures,f),o.produce(i,f[0].end),i=i.pop(),!x){i=i.safePop(),o.produce(i,l),c=!0;return}}f[0].end>r&&(r=f[0].end,n=!1)}}function aTe(t,e,n,r,i,o){let a=i.beginRuleCapturedEOL?0:-1,s=[];for(let l=i;l;l=l.pop()){let c=l.getRule(t);c instanceof Lv&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){let{ruleScanner:c,findOptions:u}=uTe(l.rule,t,l.stack.endRule,n,r===a),d=c.findNextMatchSync(e,r,u);if(d){if(d.ruleId!==bee){i=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),f7(t,e,n,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),a=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:a,isFirstLine:n}}function sTe(t,e,n,r,i,o){let a=lTe(t,e,n,r,i,o),s=t.getInjections();if(s.length===0)return a;let l=cTe(s,t,e,n,r,i,o);if(!l)return a;if(!a)return l;let c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:a}function lTe(t,e,n,r,i,o){let a=i.getRule(t),{ruleScanner:s,findOptions:l}=kee(a,t,i.endRule,n,r===o),c=s.findNextMatchSync(e,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function cTe(t,e,n,r,i,o,a){let s=Number.MAX_VALUE,l=null,c,u=0,d=o.contentNameScopesList.getScopeNames();for(let p=0,m=t.length;p<m;p++){let f=t[p];if(!f.matcher(d))continue;let h=e.getRule(f.ruleId),{ruleScanner:x,findOptions:g}=kee(h,e,null,r,i===a),y=x.findNextMatchSync(n,i,g);if(!y)continue;let b=y.captureIndices[0].start;if(!(b>=s)&&(s=b,l=y.captureIndices,c=y.ruleId,u=f.priority,s===i))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function kee(t,e,n,r,i){if(wee){let a=t.compile(e,n),s=Cee(r,i);return{ruleScanner:a,findOptions:s}}return{ruleScanner:t.compileAG(e,n,r,i),findOptions:0}}function uTe(t,e,n,r,i){if(wee){let a=t.compileWhile(e,n),s=Cee(r,i);return{ruleScanner:a,findOptions:s}}return{ruleScanner:t.compileWhileAG(e,n,r,i),findOptions:0}}function Cee(t,e){let n=0;return t||(n|=1),e||(n|=4),n}function f7(t,e,n,r,i,o,a){if(o.length===0)return;let s=e.content,l=Math.min(o.length,a.length),c=[],u=a[0].end;for(let d=0;d<l;d++){let p=o[d];if(p===null)continue;let m=a[d];if(m.length===0)continue;if(m.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=m.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,m.start):i.produce(r,m.start),p.retokenizeCapturedWithRuleId){let h=p.getName(s,a),x=r.contentNameScopesList.pushAttributed(h,t),g=p.getContentName(s,a),y=x.pushAttributed(g,t),b=r.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,x,y),w=t.createOnigString(s.substring(0,m.end));vee(t,w,n&&m.start===0,m.start,b,i,!1,0),hee(w);continue}let f=p.getName(s,a);if(f!==null){let x=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(f,t);c.push(new dTe(x,m.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var dTe=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function pTe(t,e,n,r,i,o,a,s){return new fTe(t,e,n,r,i,o,a,s)}function oee(t,e,n,r,i){let o=_v(e,Mv),a=yee.getCompiledRuleId(n,r,i.repository);for(let s of o)t.push({debugSelector:e,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function Mv(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let i=n;i<e.length;i++)if(mTe(e[i],r))return n=i+1,!0;return!1})}function mTe(t,e){if(!t)return!1;if(t===e)return!0;let n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var fTe=class{constructor(t,e,n,r,i,o,a,s){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new iTe(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=aee(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let l of Object.keys(i)){let c=_v(l,Mv);for(let u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){let t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){let i=r.injections;if(i)for(let a in i)oee(e,a,i[a],this,r);let o=this._grammarRepository.injections(n);o&&o.forEach(a=>{let s=this.getExternalGrammar(a);if(s){let l=s.injectionSelector;l&&oee(e,l,s,this,s)}})}return e.sort((i,o)=>i.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){let e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){let n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=aee(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){let r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){let r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=yee.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===LN.NULL){i=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),d=m0.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null),m;p?m=h7.createRootAndLookUpScopeName(p,d,this):m=h7.createRoot("unknown",d),e=new LN(null,this._rootId,-1,-1,!1,null,m,m)}else i=!1,e.reset();t=t+` +`;let o=this.createOnigString(t),a=o.content.length,s=new gTe(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=vee(this,o,i,0,e,s,!0,r);return hee(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function aee(t,e){return t=IEe(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var h7=class sd{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,i=e?.scopePath??null;for(let o of n)i=xN.push(i,o.scopeNames),r=new sd(r,i,o.encodedTokenAttributes);return r}static createRoot(e,n){return new sd(null,new xN(null,e),n)}static createRootAndLookUpScopeName(e,n,r){let i=r.getMetadataForScope(e),o=new xN(null,e),a=r.themeProvider.themeMatch(o),s=sd.mergeAttributes(n,i,a);return new sd(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return sd.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let i=-1,o=0,a=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,a=r.backgroundId),m0.set(e,n.languageId,n.tokenType,null,i,o,a)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return sd._pushAttributed(this,e,n);let r=e.split(/ /g),i=this;for(let o of r)i=sd._pushAttributed(i,o,n);return i}static _pushAttributed(e,n,r){let i=r.getMetadataForScope(n),o=e.scopePath.push(n),a=r.themeProvider.themeMatch(o),s=sd.mergeAttributes(e.tokenAttributes,i,a);return new sd(e,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},LN=class p0{constructor(e,n,r,i,o,a,s,l){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new p0(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:p0._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?h7.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){p0._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,i,o,a,s){return new p0(this,e,n,r,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new p0(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){let r=h7.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new p0(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,h7.fromExtension(r,n.contentNameScopesList))}},hTe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):_v(n,Mv).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>_v(n,Mv).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(let e of this.unbalancedBracketScopes)if(e(t))return!1;for(let e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},gTe=class{constructor(t,e,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=t?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(o)&&(r=m0.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(r=m0.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}let n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},bTe=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,i){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,pTe(t,o,e,n,r,i,this,this._onigLib))}return this._grammars.get(t)}},_ee=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new bTe(g7.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(g7.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new hTe(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,i){let o=new ZEe(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(a=>this._loadSingleGrammar(a.scopeName)),o.processQueue();return this._grammarForScopeName(t,e,n,r,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){let e=this._options.loadGrammar(t);if(e){let n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,i)}},Ev=LN.NULL;function Tv(t,e){let n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(let[i,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function Zf(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function yTe(t){return Array.isArray(t)?t:[t]}async function Aee(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function IN(t){return!t||["plaintext","txt","text","plain"].includes(t)}function $ee(t){return t==="ansi"||IN(t)}function NN(t){return t==="none"}function Iee(t){return NN(t)}function Nee(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);let n=Array.isArray(e)?e:e.split(/\s+/g);for(let r of n)r&&!t.properties.class.includes(r)&&t.properties.class.push(r);return t}function Nv(t,e=!1){if(t.length===0)return[["",0]];let n=t.split(/(\r?\n)/g),r=0,i=[];for(let o=0;o<n.length;o+=2){let a=e?n[o]+(n[o+1]||""):n[o];i.push([a,r]),r+=n[o].length,r+=n[o+1]?.length||0}return i}function xTe(t){let e=Nv(t,!0).map(([i])=>i);function n(i){if(i===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=i,a=0;for(let s of e){if(o<s.length)break;o-=s.length,a++}return{line:a,character:o}}function r(i,o){let a=0;for(let s=0;s<i;s++)a+=e[s].length;return a+=o,a}return{lines:e,indexToPos:n,posToIndex:r}}var PN="light-dark()",wTe=["color","background-color"];function vTe(t,e){let n=0,r=[];for(let i of e)i>n&&r.push({...t,content:t.content.slice(n,i),offset:t.offset+n}),n=i;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function kTe(t,e){let n=Array.from(e instanceof Set?e:new Set(e)).sort((r,i)=>r-i);return n.length?t.map(r=>r.flatMap(i=>{let o=n.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,s)=>a-s);return o.length?vTe(i,o):i})):t}function CTe(t,e,n,r,i="css-vars"){let o={content:t.content,explanation:t.explanation,offset:t.offset},a=e.map(u=>Rv(t.variants[u])),s=new Set(a.flatMap(u=>Object.keys(u))),l={},c=(u,d)=>{let p=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+e[u]+(d==="color"?"":p)};return a.forEach((u,d)=>{for(let p of s){let m=u[p]||"inherit";if(d===0&&r&&wTe.includes(p))if(r===PN&&a.length>1){let f=e.findIndex(y=>y==="light"),h=e.findIndex(y=>y==="dark");if(f===-1||h===-1)throw new ai('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let x=a[f][p]||"inherit",g=a[h][p]||"inherit";l[p]=`light-dark(${x}, ${g})`,i==="css-vars"&&(l[c(d,p)]=m)}else l[p]=m;else i==="css-vars"&&(l[c(d,p)]=m)}}),o.htmlStyle=l,o}function Rv(t){let e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&Zo.Italic&&(e["font-style"]="italic"),t.fontStyle&Zo.Bold&&(e["font-weight"]="bold");let n=[];t.fontStyle&Zo.Underline&&n.push("underline"),t.fontStyle&Zo.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function RN(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}var Pee=new WeakMap;function Pv(t,e){Pee.set(t,e)}function k7(t){return Pee.get(t)}var zb=class t{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new t(Object.fromEntries(yTe(n).map(r=>[r,Ev])),e)}constructor(...e){if(e.length===2){let[n,r]=e;this.lang=r,this._stacks=n}else{let[n,r,i]=e;this.lang=r,this._stacks={[i]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return _Te(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function _Te(t){let e=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);let o=i?.nameScopesList?.scopeName;o&&e.push(o),i.parent&&r(i.parent)}return r(t),e}function STe(t,e){if(!(t instanceof zb))throw new ai("Invalid grammar state");return t.getInternalStack(e)}function LTe(){let t=new WeakMap;function e(n){if(!t.has(n.meta)){let r=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new ai(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...i.indexToPos(a),offset:a}}else{let s=i.lines[a.line];if(s===void 0)throw new ai(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let l=a.character;if(l<0&&(l=s.length+l),l<0||l>s.length)throw new ai(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,character:l,offset:i.posToIndex(a.line,l)}}},i=xTe(n.source),o=(n.options.decorations||[]).map(a=>({...a,start:r(a.start),end:r(a.end)}));MTe(o),t.set(n.meta,{decorations:o,converter:i,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;let i=e(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return kTe(n,i)},code(n){if(!this.options.decorations?.length)return;let r=e(this),i=Array.from(n.children).filter(u=>u.type==="element"&&u.tagName==="span");if(i.length!==r.converter.lines.length)throw new ai(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,d,p,m){let f=i[u],h="",x=-1,g=-1;if(d===0&&(x=0),p===0&&(g=0),p===Number.POSITIVE_INFINITY&&(g=f.children.length),x===-1||g===-1)for(let b=0;b<f.children.length;b++)h+=jee(f.children[b]),x===-1&&h.length===d&&(x=b+1),g===-1&&h.length===p&&(g=b+1);if(x===-1)throw new ai(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);if(g===-1)throw new ai(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);let y=f.children.slice(x,g);if(!m.alwaysWrap&&y.length===f.children.length)s(f,m,"line");else if(!m.alwaysWrap&&y.length===1&&y[0].type==="element")s(y[0],m,"token");else{let b={type:"element",tagName:"span",properties:{},children:y};s(b,m,"wrapper"),f.children.splice(x,y.length,b)}}function a(u,d){i[u]=s(i[u],d,"line")}function s(u,d,p){let m=d.properties||{},f=d.transform||(h=>h);return u.tagName=d.tagName||"span",u.properties={...u.properties,...m,class:u.properties.class},d.properties?.class&&Nee(u,d.properties.class),u=f(u,p)||u,u}let l=[],c=r.decorations.sort((u,d)=>d.start.offset-u.start.offset||u.end.offset-d.end.offset);for(let u of c){let{start:d,end:p}=u;if(d.line===p.line)o(d.line,d.character,p.character,u);else if(d.line<p.line){o(d.line,d.character,Number.POSITIVE_INFINITY,u);for(let m=d.line+1;m<p.line;m++)l.unshift(()=>a(m,u));o(p.line,0,p.character,u)}}l.forEach(u=>u())}}}function MTe(t){for(let e=0;e<t.length;e++){let n=t[e];if(n.start.offset>n.end.offset)throw new ai(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){let i=t[r],o=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,a=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,s=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,l=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(o||a||s||l){if(o&&a||s&&l||s&&n.start.offset===n.end.offset||a&&i.start.offset===i.end.offset)continue;throw new ai(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function jee(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(jee).join(""):""}var ETe=[LTe()];function Av(t){let e=TTe(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...ETe]}function TTe(t){let e=[],n=[],r=[];for(let i of t)switch(i.enforce){case"pre":e.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:e,post:n,normal:r}}var f0=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],EN={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function RTe(t,e){let n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){let r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function See(t){let e=t.shift();if(e==="2"){let n=t.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(e==="5"){let n=t.shift();if(n)return{type:"table",index:Number(n)}}}function ATe(t){let e=[];for(;t.length>0;){let n=t.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)EN[r]&&e.push({type:"setDecoration",value:EN[r]});else if(r<=29){let i=EN[r-20];i&&(e.push({type:"resetDecoration",value:i}),i==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:f0[r-30]}});else if(r===38){let i=See(t);i&&e.push({type:"setForegroundColor",value:i})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:f0[r-40]}});else if(r===48){let i=See(t);i&&e.push({type:"setBackgroundColor",value:i})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:f0[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:f0[r-100+8]}})}return e}function $Te(){let t=null,e=null,n=new Set;return{parse(r){let i=[],o=0;do{let a=RTe(r,o),s=a.sequence?r.substring(o,a.startPosition):r.substring(o);if(s.length>0&&i.push({value:s,foreground:t,background:e,decorations:new Set(n)}),a.sequence){let l=ATe(a.sequence);for(let c of l)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(let c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}o=a.position}while(o<r.length);return i}}}var ITe={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 NTe(t=ITe){function e(s){return t[s]}function n(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let c=0;c<f0.length;c++)r.push(e(f0[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let d=0;d<6;d++)r.push(n([s[c],s[u],s[d]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return e(s.name);case"rgb":return n(s.rgb);case"table":return o(s.index)}}return{value:a}}var PTe={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 jTe(t,e,n){let r=Tv(t,n),i=Nv(e),o=Object.fromEntries(f0.map(l=>{let c=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,u=t.colors?.[c];return[l,u||PTe[l]]})),a=NTe(o),s=$Te();return i.map(l=>s.parse(l[0]).map(c=>{let u,d;c.decorations.has("reverse")?(u=c.background?a.value(c.background):t.bg,d=c.foreground?a.value(c.foreground):t.fg):(u=c.foreground?a.value(c.foreground):t.fg,d=c.background?a.value(c.background):void 0),u=Zf(u,r),d=Zf(d,r),c.decorations.has("dim")&&(u=OTe(u));let p=Zo.None;return c.decorations.has("bold")&&(p|=Zo.Bold),c.decorations.has("italic")&&(p|=Zo.Italic),c.decorations.has("underline")&&(p|=Zo.Underline),c.decorations.has("strikethrough")&&(p|=Zo.Strikethrough),{content:c.value,offset:l[1],color:u,bgColor:d,fontStyle:p}}))}function OTe(t){let e=t.match(/#([0-9a-f]{3,8})/i);if(e){let r=e[1];if(r.length===8){let i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){let i=r[0],o=r[1],a=r[2],s=r[3],l=Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${a}${a}${l}`}else if(r.length===3){let i=r[0],o=r[1],a=r[2];return`#${i}${i}${o}${o}${a}${a}80`}}}let n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}function jN(t,e,n={}){let{theme:r=t.getLoadedThemes()[0]}=n,i=t.resolveLangAlias(n.lang||"text");if(IN(i)||NN(r))return Nv(e).map(l=>[{content:l[0],offset:l[1]}]);let{theme:o,colorMap:a}=t.setTheme(r);if(i==="ansi")return jTe(o,e,n);let s=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new ai(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(o.name))throw new ai(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return FTe(e,s,o,a,n)}function DTe(...t){if(t.length===2)return k7(t[1]);let[e,n,r={}]=t,{lang:i="text",theme:o=e.getLoadedThemes()[0]}=r;if(IN(i)||NN(o))throw new ai("Plain language does not have grammar state");if(i==="ansi")throw new ai("ANSI language does not have grammar state");let{theme:a,colorMap:s}=e.setTheme(o),l=e.getLanguage(i);return new zb(ON(n,l,a,s,r).stateStack,l.name,a.name)}function FTe(t,e,n,r,i){let o=ON(t,e,n,r,i),a=new zb(o.stateStack,e.name,n.name);return Pv(o.tokens,a),o.tokens}function ON(t,e,n,r,i){let o=Tv(n,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=Nv(t),c=i.grammarState?STe(i.grammarState,n.name)??Ev:i.grammarContextCode!=null?ON(i.grammarContextCode,e,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ev,u=[],d=[];for(let p=0,m=l.length;p<m;p++){let[f,h]=l[p];if(f===""){u=[],d.push([]);continue}if(a>0&&f.length>=a){u=[],d.push([{content:f,offset:h,color:"",fontStyle:0}]);continue}let x,g,y;i.includeExplanation&&(x=e.tokenizeLine(f,c,s),g=x.tokens,y=0);let b=e.tokenizeLine2(f,c,s),w=b.tokens.length/2;for(let v=0;v<w;v++){let k=b.tokens[2*v],_=v+1<w?b.tokens[2*v+2]:f.length;if(k===_)continue;let L=b.tokens[2*v+1],S=Zf(r[m0.getForeground(L)],o),C=m0.getFontStyle(L),T={content:f.substring(k,_),offset:h+k,color:S,fontStyle:C};if(i.includeExplanation){let M=[];if(i.includeExplanation!=="scopeName")for(let $ of n.settings){let N;switch(typeof $.scope){case"string":N=$.scope.split(/,/).map(F=>F.trim());break;case"object":N=$.scope;break;default:continue}M.push({settings:$,selectors:N.map(F=>F.split(/ /))})}T.explanation=[];let A=0;for(;k+A<_;){let $=g[y],N=f.substring($.startIndex,$.endIndex);A+=N.length,T.explanation.push({content:N,scopes:i.includeExplanation==="scopeName"?BTe($.scopes):zTe(M,$.scopes)}),y+=1}}u.push(T)}d.push(u),u=[],c=b.ruleStack}return{tokens:d,stateStack:c}}function BTe(t){return t.map(e=>({scopeName:e}))}function zTe(t,e){let n=[];for(let r=0,i=e.length;r<i;r++){let o=e[r];n[r]={scopeName:o,themeMatches:HTe(t,o,e.slice(0,r))}}return n}function Lee(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function qTe(t,e,n){if(!Lee(t[t.length-1],e))return!1;let r=t.length-2,i=n.length-1;for(;r>=0&&i>=0;)Lee(t[r],n[i])&&(r-=1),i-=1;return r===-1}function HTe(t,e,n){let r=[];for(let{selectors:i,settings:o}of t)for(let a of i)if(qTe(a,e,n)){r.push(o);break}return r}function Oee(t,e,n){let r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{let c=jN(t,e,{...n,theme:l.theme}),u=k7(c),d=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:d}}),o=GTe(...i.map(l=>l.tokens)),a=o[0].map((l,c)=>l.map((u,d)=>{let p={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=u.explanation),o.forEach((m,f)=>{let{content:h,explanation:x,offset:g,...y}=m[c][d];p.variants[r[f].color]=y}),p})),s=i[0].state?new zb(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return s&&Pv(a,s),a}function GTe(...t){let e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){let i=t.map(l=>l[r]),o=e.map(()=>[]);e.forEach((l,c)=>l.push(o[c]));let a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){let l=Math.min(...s.map(c=>c.content.length));for(let c=0;c<n;c++){let u=s[c];u.content.length===l?(o[c].push(u),a[c]+=1,s[c]=i[c][a[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),s[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return e}function $v(t,e,n){let r,i,o,a,s,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=n,p=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,y)=>g.color===c?-1:y.color===c?1:0);if(p.length===0)throw new ai("`themes` option must not be empty");let m=Oee(t,e,n);if(l=k7(m),c&&PN!==c&&!p.find(g=>g.color===c))throw new ai(`\`themes\` option must contain the defaultColor key \`${c}\``);let f=p.map(g=>t.getTheme(g.theme)),h=p.map(g=>g.color);o=m.map(g=>g.map(y=>CTe(y,h,u,c,d))),l&&Pv(o,l);let x=p.map(g=>Tv(g.theme,n));i=Mee(p,f,x,u,c,"fg",d),r=Mee(p,f,x,u,c,"bg",d),a=`shiki-themes ${f.map(g=>g.name).join(" ")}`,s=c?void 0:[i,r].join(";")}else if("theme"in n){let c=Tv(n.theme,n);o=jN(t,e,n);let u=t.getTheme(n.theme);r=Zf(u.bg,c),i=Zf(u.fg,c),a=u.name,l=k7(o)}else throw new ai("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:a,rootStyle:s,grammarState:l}}function Mee(t,e,n,r,i,o,a){return t.map((s,l)=>{let c=Zf(e[l][o],n[l])||"inherit",u=`${r+s.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&i){if(i===PN&&t.length>1){let d=t.findIndex(h=>h.color==="light"),p=t.findIndex(h=>h.color==="dark");if(d===-1||p===-1)throw new ai('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let m=Zf(e[d][o],n[d])||"inherit",f=Zf(e[p][o],n[p])||"inherit";return`light-dark(${m}, ${f});${u}`}return c}return a==="css-vars"?u:null}).filter(s=>!!s).join(";")}function Iv(t,e,n,r={meta:{},options:n,codeToHast:(i,o)=>Iv(t,i,o),codeToTokens:(i,o)=>$v(t,i,o)}){let i=e;for(let f of Av(n))i=f.preprocess?.call(r,i,n)||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:c,grammarState:u}=$v(t,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:p=!1}=n;d===!0?o=VTe(o):d==="never"&&(o=ZTe(o)),p&&(o=WTe(o));let m={...r,get source(){return i}};for(let f of Av(n))o=f.tokens?.call(m,o)||o;return UTe(o,{...n,fg:a,bg:s,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},m,u)}function UTe(t,e,n,r=k7(t)){let i=Av(e),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(let[h,x]of Object.entries(e.meta||{}))h.startsWith("_")||(c[h]=x);let u={type:"element",tagName:"pre",properties:c,children:[],data:e.data},d={type:"element",tagName:"code",properties:{},children:o},p=[],m={...n,structure:s,addClassToHast:Nee,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return u},get code(){return d},get lines(){return p}};if(t.forEach((h,x)=>{x&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` +`}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},y=0;for(let b of h){let w={type:"element",tagName:"span",properties:{...b.htmlAttrs},children:[{type:"text",value:b.content}]},v=RN(b.htmlStyle||Rv(b));v&&(w.properties.style=v);for(let k of i)w=k?.span?.call(m,w,x+1,y,g,b)||w;s==="inline"?a.children.push(w):s==="classic"&&g.children.push(w),y+=b.content.length}if(s==="classic"){for(let b of i)g=b?.line?.call(m,g,x+1)||g;p.push(g),o.push(g)}else s==="inline"&&p.push(g)}),s==="classic"){for(let h of i)d=h?.code?.call(m,d)||d;u.children.push(d);for(let h of i)u=h?.pre?.call(m,u)||u;a.children.push(u)}else if(s==="inline"){let h=[],x={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let b of a.children)b.type==="element"&&b.tagName==="br"?(h.push(x),x={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(b.type==="element"||b.type==="text")&&x.children.push(b);h.push(x);let y={type:"element",tagName:"code",properties:{},children:h};for(let b of i)y=b?.code?.call(m,y)||y;a.children=[];for(let b=0;b<y.children.length;b++){b>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let w=y.children[b];w.type==="element"&&a.children.push(...w.children)}}let f=a;for(let h of i)f=h?.root?.call(m,f)||f;return r&&Pv(f,r),f}function VTe(t){return t.map(e=>{let n=[],r="",i;return e.forEach((o,a)=>{let l=!(o.fontStyle&&(o.fontStyle&Zo.Underline||o.fontStyle&Zo.Strikethrough));l&&o.content.match(/^\s+$/)&&e[a+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(l?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function ZTe(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;let r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;let[,i,o,a]=r;if(!i&&!a)return n;let s=[{...n,offset:n.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:n.offset}),a&&s.push({content:a,offset:n.offset+i.length+o.length}),s}))}function WTe(t){return t.map(e=>{let n=[];for(let r of e){if(n.length===0){n.push({...r});continue}let i=n[n.length-1],o=RN(i.htmlStyle||Rv(i)),a=RN(r.htmlStyle||Rv(r)),s=i.fontStyle&&(i.fontStyle&Zo.Underline||i.fontStyle&Zo.Strikethrough),l=r.fontStyle&&(r.fontStyle&Zo.Underline||r.fontStyle&Zo.Strikethrough);!s&&!l&&o===a?i.content+=r.content:n.push({...r})}return n})}var KTe=Vo;function XTe(t,e,n){let r={meta:{},options:n,codeToHast:(o,a)=>Iv(t,o,a),codeToTokens:(o,a)=>$v(t,o,a)},i=KTe(Iv(t,e,n,r));for(let o of Av(n))i=o.postprocess?.call(r,i,n)||i;return i}var Eee={light:"#333333",dark:"#bbbbbb"},Tee={light:"#fffffe",dark:"#1e1e1e"},Ree="__shiki_resolved";function C7(t){if(t?.[Ree])return t;let e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:r}=e;if(!n||!r){let s=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(r=s.settings.foreground),s?.settings?.background&&(n=s.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?Eee.light:Eee.dark),n||(n=e.type==="light"?Tee.light:Tee.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0,o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;let l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}e.settings=e.settings.map(s=>{let l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;let u={...s,settings:{...s.settings}};if(l){let d=a(s.settings.foreground);e.colorReplacements[d]=s.settings.foreground,u.settings.foreground=d}if(c){let d=a(s.settings.background);e.colorReplacements[d]=s.settings.background,u.settings.background=d}return u});for(let s of Object.keys(e.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!e.colors[s]?.startsWith("#")){let l=a(e.colors[s]);e.colorReplacements[l]=e.colors[s],e.colors[s]=l}return Object.defineProperty(e,Ree,{enumerable:!1,writable:!1,value:!0}),e}async function Dee(t){return Array.from(new Set((await Promise.all(t.filter(e=>!$ee(e)).map(async e=>await Aee(e).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Fee(t){return(await Promise.all(t.map(async n=>Iee(n)?null:C7(await Aee(n))))).filter(n=>!!n)}var TN=3,YTe=!1;function QTe(t,e=3){if(TN&&!(typeof TN=="number"&&e>TN)){if(YTe)throw new Error(`[SHIKI DEPRECATE]: ${t}`);console.trace(`[SHIKI DEPRECATE]: ${t}`)}}var Vf=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Bee(t,e){if(!e)return t;if(e[t]){let n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new Vf(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return t}var AN=class extends _ee{constructor(e,n,r,i={}){super(e),this._resolver=e,this._themes=n,this._langs=r,this._alias=i,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let n=C7(e);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(e){let n=this._textmateThemeCache.get(e);n||(n=g7.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=Bee(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let i=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,n.size)for(let o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let i of e)this.resolveEmbeddedLanguages(i);let n=Array.from(this._langGraph.entries()),r=n.filter(([i,o])=>!o);if(r.length){let i=n.filter(([o,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(l=>r.map(([c])=>c).includes(l)):!1).filter(o=>!r.includes(o));throw new Vf(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(let[i,o]of n)this._resolver.addLanguage(o);for(let[i,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let n=e.embeddedLanguages??e.embeddedLangs;if(n)for(let r of n)this._langGraph.set(r,this._langMap.get(r))}},$N=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},n.forEach(r=>this.addLanguage(r))}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(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){let n=e.split("."),r=[];for(let i=1;i<=n.length;i++){let o=n.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},v7=0;function JTe(t){v7+=1,t.warnings!==!1&&v7>=10&&v7%10===0&&console.warn(`[Shiki] ${v7} 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 e=!1;if(!t.engine)throw new Vf("`engine` option is required for synchronous mode");let n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(C7),i=new $N(t.engine,n),o=new AN(i,r,n,t.langAlias),a;function s(b){return Bee(b,t.langAlias)}function l(b){g();let w=o.getGrammar(typeof b=="string"?b:b.name);if(!w)throw new Vf(`Language \`${b}\` not found, you may need to load it first`);return w}function c(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();let w=o.getTheme(b);if(!w)throw new Vf(`Theme \`${b}\` not found, you may need to load it first`);return w}function u(b){g();let w=c(b);a!==b&&(o.setTheme(w),a=b);let v=o.getColorMap();return{theme:w,colorMap:v}}function d(){return g(),o.getLoadedThemes()}function p(){return g(),o.getLoadedLanguages()}function m(...b){g(),o.loadLanguages(b.flat(1))}async function f(...b){return m(await Dee(b))}function h(...b){g();for(let w of b.flat(1))o.loadTheme(w)}async function x(...b){return g(),h(await Fee(b))}function g(){if(e)throw new Vf("Shiki instance has been disposed")}function y(){e||(e=!0,o.dispose(),v7-=1)}return{setTheme:u,getTheme:c,getLanguage:l,getLoadedThemes:d,getLoadedLanguages:p,resolveLangAlias:s,loadLanguage:f,loadLanguageSync:m,loadTheme:x,loadThemeSync:h,dispose:y,[Symbol.dispose]:y}}async function eRe(t){t.engine||QTe("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[e,n,r]=await Promise.all([Fee(t.themes||[]),Dee(t.langs||[]),t.engine]);return JTe({...t,themes:e,langs:n,engine:r})}async function tRe(t){let e=await eRe(t);return{getLastGrammarState:(...n)=>DTe(e,...n),codeToTokensBase:(n,r)=>jN(e,n,r),codeToTokensWithThemes:(n,r)=>Oee(e,n,r),codeToTokens:(n,r)=>$v(e,n,r),codeToHast:(n,r)=>Iv(e,n,r),codeToHtml:(n,r)=>XTe(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function zee(t){let e=t.langs,n=t.themes,r=t.engine;async function i(o){function a(d){if(typeof d=="string"){if(d=o.langAlias?.[d]||d,$ee(d))return[];let p=e[d];if(!p)throw new ai(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return p}return d}function s(d){if(Iee(d))return"none";if(typeof d=="string"){let p=n[d];if(!p)throw new ai(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return p}return d}let l=(o.themes??[]).map(d=>s(d)),c=(o.langs??[]).map(d=>a(d)),u=await tRe({engine:o.engine??r(),...o,themes:l,langs:c});return{...u,loadLanguage(...d){return u.loadLanguage(...d.map(a))},loadTheme(...d){return u.loadTheme(...d.map(s))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return i}function nRe(t){let e;async function n(r={}){if(e){let i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{e=t({...r,themes:[],langs:[]});let i=await e;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return n}function qee(t,e){let n=nRe(t);async function r(i,o){let a=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),s=await e?.guessEmbeddedLanguages?.(i,o.lang,a);return s&&await a.loadLanguage(...s),a}return{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,o){return(await r(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await r(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await r(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await r(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await r(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}function Wf(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function Hee(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}var _7=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),to=String.raw;function zp(t,e){if(t==null)throw new Error(e??"Value expected");return t}var Kee=to`\[\^?`,Xee=`c.? | C(?:-.?)?|${to`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${to`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${to`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${to`o\{[^\}]*\}?`}|${to`\d{1,3}`}`,FN=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,jv=new RegExp(to` \\ (?: ${Xee} | [gk]<[^>]*>? @@ -124,10 +124,10 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error )? | \*[^\)]*\)? )? - | (?:${jN.source})+ + | (?:${FN.source})+ | ${Kee} | . -`.replace(/\s+/g,""),"gsu"),PN=new RegExp(to` +`.replace(/\s+/g,""),"gsu"),DN=new RegExp(to` \\ (?: ${Xee} | . @@ -136,8 +136,8 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error | ${Kee} | && | . -`.replace(/\s+/g,""),"gsu");function Yee(t,e={}){let n={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");let r=vRe(n.flags),i=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(d){i.push(d)},replaceCurrentModX(d){i[i.length-1]=d},singleline:n.rules.singleline},a=[],s;for(jv.lastIndex=0;s=jv.exec(t);){let d=rRe(o,t,s[0],jv.lastIndex);d.tokens?a.push(...d.tokens):d.token&&a.push(d.token),d.lastIndex!==void 0&&(jv.lastIndex=d.lastIndex)}let l=[],c=0;a.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++c:d.raw==="("&&l.push(d)}),c||l.forEach((d,p)=>{d.kind="capturing",d.number=p+1});let u=c||l.length;return{tokens:a.map(d=>d.type==="EscapedNumber"?CRe(d,u):d).flat(),flags:r}}function rRe(t,e,n,r){let[i,o]=n;if(n==="["||n==="[^"){let a=iRe(e,n,r);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:Gee(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:fRe(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Jee(n)}}if(o==="K")return{token:ete("keep",n)};if(o==="N"||o==="R")return{token:m0("newline",n,{negate:o==="N"})};if(o==="O")return{token:m0("any",n)};if(o==="X")return{token:m0("text_segment",n)};let a=Qee(n,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(o==="*")return{token:yRe(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(e[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:bRe(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:zb("group",n)};if(n==="(?>")return{token:zb("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:zb(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&t.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:zb("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:zb("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:dRe(n)}}if(t.getCurrentModX()){if(n==="#"){let a=e.indexOf(` -`,r);return{lastIndex:a===-1?e.length:a}}if(/^\s$/.test(n)){let a=/\s+/y;return a.lastIndex=r,{lastIndex:a.exec(e)?a.lastIndex:r}}}if(n===".")return{token:m0("dot",n)};if(n==="^"||n==="$"){let a=t.singleline?{"^":to`\A`,$:to`\Z`}[n]:n;return{token:Gee(a,n)}}return n==="|"?{token:aRe(n)}:jN.test(n)?{tokens:_Re(n)}:{token:qp(Zf(n),n)}}function iRe(t,e,n){let r=[Uee(e[1]==="^",e)],i=1,o;for(PN.lastIndex=n;o=PN.exec(t);){let a=o[0];if(a[0]==="["&&a[1]!==":")i++,r.push(Uee(a[1]==="^",a));else if(a==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(qp(93,a));else if(i--,r.push(sRe(a)),!i)break}else{let s=oRe(a);Array.isArray(s)?r.push(...s):r.push(s)}}return{tokens:r,lastIndex:PN.lastIndex||t.length}}function oRe(t){if(t[0]==="\\")return Qee(t,{inCharClass:!0});if(t[0]==="["){let e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!C7.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return m0("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?lRe(t):t==="&&"?cRe(t):qp(Zf(t),t)}function Qee(t,{inCharClass:e}){let n=t[1];if(n==="c"||n==="C")return gRe(t);if("dDhHsSwW".includes(n))return xRe(t);if(t.startsWith(to`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return wRe(t)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(t))try{let r=t.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...i].map(a=>{let s=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return qp(Zf(a),s)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return qp(kRe(t),t);if(Vee.has(n))return qp(Vee.get(n),t);if(/\d/.test(n))return uRe(e,t);if(t==="\\")throw new Error(to`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return qp(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function aRe(t){return{type:"Alternator",raw:t}}function Gee(t,e){return{type:"Assertion",kind:t,raw:e}}function Jee(t){return{type:"Backreference",raw:t}}function qp(t,e){return{type:"Character",value:t,raw:e}}function sRe(t){return{type:"CharacterClassClose",raw:t}}function lRe(t){return{type:"CharacterClassHyphen",raw:t}}function cRe(t){return{type:"CharacterClassIntersector",raw:t}}function Uee(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function m0(t,e,n={}){return{type:"CharacterSet",kind:t,...n,raw:e}}function ete(t,e,n={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:zp(n.flags),raw:e}}function uRe(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function dRe(t){return{type:"GroupClose",raw:t}}function zb(t,e,n={}){return{type:"GroupOpen",kind:t,...n,raw:e}}function pRe(t,e,n,r){return{type:"NamedCallout",kind:t,tag:e,arguments:n,raw:r}}function mRe(t,e,n,r){return{type:"Quantifier",kind:t,min:e,max:n,raw:r}}function fRe(t){return{type:"Subroutine",raw:t}}var hRe=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Vee=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function gRe(t){let e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return qp(Zf(e.toUpperCase())-64,t)}function bRe(t,e){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;r??="";let i=(e.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=Wee(n),a=Wee(r),s={};if(o&&(s.enable=o),a&&(s.disable=a),t.endsWith(")"))return e.replaceCurrentModX(i),ete("flags",t,{flags:s});if(t.endsWith(":"))return e.pushModX(i),e.numOpenGroups++,zb("group",t,{...(o||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${t}"`)}function yRe(t){let e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);let{name:n,tag:r,args:i}=e.groups;if(!n)throw new Error(`Invalid named callout "${t}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);let o=i?i.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[a,s,l]=o,c=hRe.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return pRe(c,r??null,i?.split(",")??null,t)}function Zee(t){let e=null,n,r;if(t[0]==="{"){let{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,a=1e5;if(+i>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+i,r=o===void 0?+i:o===""?1/0:+o,n>r&&(e="possessive",[n,r]=[r,n]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else n=t[0]==="+"?1:0,r=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return mRe(e,n,r,t)}function xRe(t){let e=t[1].toLowerCase();return m0({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function wRe(t){let{p:e,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return m0("property",t,{value:r,negate:e==="P"&&!n||e==="p"&&!!n})}function Wee(t){let e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function vRe(t){let e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<t.length;n++){let r=t[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(t.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[n+2]==="g"?"grapheme":"word",n+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return e}function kRe(t){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(t))throw new Error(`Incomplete or invalid escape "${t}"`);let e=t[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function CRe(t,e){let{raw:n,inCharClass:r}=t,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[Jee(n)];let o=[],a=i.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){let l=a[s],c;if(s===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(to`Octal encoded byte above 177 unsupported "${n}"`)}else c=Zf(l);o.push(qp(c,(s===0?"\\":"")+l))}return o}function _Re(t){let e=[],n=new RegExp(jN,"gy"),r;for(;r=n.exec(t);){let i=r[0];if(i[0]==="{"){let o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){let{min:a,max:s}=o.groups;if(+a>+s&&i.endsWith("?")){n.lastIndex--,e.push(Zee(i.slice(0,-1)));continue}}}e.push(Zee(i))}return e}function Ov(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;let n=t.body[0];return!e||Object.keys(e).every(r=>e[r]===n[r])}function tte(t){return SRe.has(t.type)}var SRe=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Fv(t,e={}){let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},r=Yee(t,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(p,m)=>{let f=r.tokens[o.nextIndex];switch(o.parent=p,o.nextIndex++,f.type){case"Alternator":return Hp();case"Assertion":return LRe(f);case"Backreference":return MRe(f,o);case"Character":return qb(f.value,{useLastValid:!!m.isCheckingRangeEnd});case"CharacterClassHyphen":return ERe(f,o,m);case"CharacterClassOpen":return TRe(f,o,m);case"CharacterSet":return RRe(f,o);case"Directive":return jRe(f.kind,{flags:f.flags});case"GroupOpen":return ARe(f,o,m);case"NamedCallout":return DRe(f.kind,f.tag,f.arguments);case"Quantifier":return $Re(f,o);case"Subroutine":return IRe(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={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:i},a=BRe(ORe(r.flags)),s=a.body[0];for(;o.nextIndex<r.tokens.length;){let p=i(s,{});p.type==="Alternative"?(a.body.push(p),s=p):s.body.push(p)}let{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:d}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:p}of d)if(typeof p=="number"){if(p>l.length)throw new Error("Subroutine uses a group number that's not defined");p&&(l[p-1].isSubroutined=!0)}else if(u.has(p)){if(u.get(p).length>1)throw new Error(to`Subroutine uses a duplicate group name "\g<${p}>"`);u.get(p)[0].isSubroutined=!0}else throw new Error(to`Subroutine uses a group name that's not defined "\g<${p}>"`);return a}function LRe({kind:t}){return Bv(zp({"^":"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"}[t],`Unexpected assertion kind "${t}"`),{negate:t===to`\B`||t===to`\Y`})}function MRe({raw:t},e){let n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),i=(o,a=!1)=>{let s=e.capturingGroups.length,l=!1;if(o>s)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Dv(a?s+1-o:o,{orphan:l})};if(n){let o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Dv(r)}return i(+r)}function ERe(t,e,n){let{tokens:r,walk:i}=e,o=e.parent,a=o.body.at(-1),s=r[e.nextIndex];if(!n.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let l=i(o,{...n,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),PRe(a,l);throw new Error("Invalid character class range")}return qb(Zf("-"))}function TRe({negate:t},e,n){let{tokens:r,walk:i}=e,o=[_7()],a=r[e.nextIndex],s=ite(a);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")o.push(_7()),e.nextIndex++;else{let c=o.at(-1);c.body.push(i(c,n))}s=ite(r[e.nextIndex],a)}let l=_7({negate:t});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(c=>c.body.length===1?c.body[0]:c)),e.nextIndex++,l}function RRe({kind:t,negate:e,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a}=r;if(t==="property"){let s=Hb(n);if(C7.has(s)&&!a?.has(s))t="posix",n=s;else return f0(n,{negate:e,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a})}return t==="posix"?FRe(n,{negate:e}):zv(t,{negate:e})}function ARe(t,e,n){let{tokens:r,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:a,walk:s}=e,l=zRe(t),c=l.type==="AbsenceFunction",u=rte(l),d=u&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&Hee(o,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let p=ote(r[e.nextIndex]);for(;p.type!=="GroupClose";){if(p.type==="Alternator")l.body.push(Hp()),e.nextIndex++;else{let m=l.body.at(-1),f=s(m,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(m.body.push(f),(u||n.isInLookbehind)&&!a){let h="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(nte(f)||f.type==="CapturingGroup")throw new Error(h)}else if(nte(f)||rte(f)&&f.negate)throw new Error(h)}}p=ote(r[e.nextIndex])}return e.nextIndex++,l}function $Re({kind:t,min:e,max:n},r){let i=r.parent,o=i.body.at(-1);if(!o||!tte(o))throw new Error("Quantifier requires a repeatable token");let a=DN(t,e,n,o);return i.body.pop(),a}function IRe({raw:t},e){let{capturingGroups:n,subroutines:r}=e,i=t.slice(3,-1),o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){let s=+o.groups.num,l=n.length;if(e.hasNumberedRef=!0,i={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);let a=FN(i);return r.push(a),a}function NRe(t,e){if(t!=="repeater")throw new Error(`Unexpected absence function kind "${t}"`);return{type:"AbsenceFunction",kind:t,body:S7(e?.body)}}function Hp(t){return{type:"Alternative",body:ate(t?.body)}}function Bv(t,e){let n={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(n.negate=!!e?.negate),n}function Dv(t,e){let n=!!e?.orphan;return{type:"Backreference",ref:t,...n&&{orphan:n}}}function ON(t,e){let n={name:void 0,isSubroutined:!1,...e};if(n.name!==void 0&&!qRe(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:S7(e?.body)}}function qb(t,e){let n={useLastValid:!1,...e};if(t>1114111){let r=t.toString(16);if(n.useLastValid)t=1114111;else throw t>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:t}}function _7(t){let e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:ate(t?.body)}}function PRe(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function zv(t,e){let n=!!e?.negate,r={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(r.negate=n),(t==="text_segment"||t==="newline"&&!n)&&(r.variableLength=!0),r}function jRe(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:zp(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function ORe(t){return{type:"Flags",...t}}function Ml(t){let e=t?.atomic,n=t?.flags;if(e&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...n&&{flags:n},body:S7(t?.body)}}function Wf(t){let e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:S7(t?.body)}}function DRe(t,e,n){return{type:"NamedCallout",kind:t,tag:e,arguments:n}}function FRe(t,e){let n=!!e?.negate;if(!C7.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:n}}function DN(t,e,n,r){if(e>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:n,body:r}}function BRe(t,e){return{type:"Regex",body:S7(e?.body),flags:t}}function FN(t){return{type:"Subroutine",ref:t}}function f0(t,e){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e},r=n.unicodePropertyMap?.get(Hb(t));if(!r){if(n.normalizeUnknownPropertyNames)r=HRe(t);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(to`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:r??t,negate:n.negate}}function zRe({flags:t,kind:e,name:n,negate:r,number:i}){switch(e){case"absence_repeater":return NRe("repeater");case"atomic":return Ml({atomic:!0});case"capturing":return ON(i,{name:n});case"group":return Ml({flags:t});case"lookahead":case"lookbehind":return Wf({behind:e==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${e}"`)}}function S7(t){if(t===void 0)t=[Hp()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function ate(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function nte(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function rte(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function qRe(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function HRe(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Hb(t){return t.replace(/[- _]+/g,"").toLowerCase()}function ite(t,e){let n=e;return zp(t,`Unclosed character class${n?.type==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function ote(t){return zp(t,"Unclosed group")}function h0(t,e,n=null){function r(o,a){for(let s=0;s<o.length;s++){let l=i(o[s],a,s,o);s=Math.max(-1,s+l)}}function i(o,a=null,s=null,l=null){let c=0,u=!1,d={node:o,parent:a,key:s,container:l,root:t,remove(){qv(l).splice(Math.max(0,Gb(s)+c),1),c--,u=!0},removeAllNextSiblings(){return qv(l).splice(Gb(s)+1)},removeAllPrevSiblings(){let g=Gb(s)+c;return c-=g,qv(l).splice(0,Math.max(0,g))},replaceWith(g,y={}){let b=!!y.traverse;l?l[Math.max(0,Gb(s)+c)]=g:zp(a,"Can't replace root node")[s]=g,b&&i(g,a,s,l),u=!0},replaceWithMultiple(g,y={}){let b=!!y.traverse;if(qv(l).splice(Math.max(0,Gb(s)+c),1,...g),c+=g.length-1,b){let w=0;for(let v=0;v<g.length;v++)w+=i(g[v],a,Gb(s)+v+w,l)}u=!0},skip(){u=!0}},{type:p}=o,m=e["*"],f=e[p],h=typeof m=="function"?m:m?.enter,x=typeof f=="function"?f:f?.enter;if(h?.(d,n),x?.(d,n),!u)switch(p){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"Quantifier":i(o.body,o,"body");break;case"Regex":r(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${p}"`)}return f?.exit?.(d,n),m?.exit?.(d,n),c}return i(t),t}function qv(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function Gb(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}var ste=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function lte(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function cte(t,e,n,r){return t.slice(0,e)+r+t.slice(e+n.length)}var Fs=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function L7(t,e,n,r){let i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],a=0,s="";for(let l of t.matchAll(i)){let{0:c,groups:{$skip:u}}=l;if(!u&&(!r||r===Fs.DEFAULT==!a)){n instanceof Function?s+=n(l,{context:a?Fs.CHAR_CLASS:Fs.DEFAULT,negated:o[o.length-1]}):s+=n;continue}c[0]==="["?(a++,o.push(c[1]==="^")):c==="]"&&a&&(a--,o.pop()),s+=c}return s}function BN(t,e,n,r){L7(t,e,n,r)}function GRe(t,e,n=0,r){if(!new RegExp(e,"su").test(t))return null;let i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let o=0,a;for(;a=i.exec(t);){let{0:s,groups:{$skip:l}}=a;if(!l&&(!r||r===Fs.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function M7(t,e,n){return!!GRe(t,e,0,n)}function ute(t,e){let n=/\\?./gsu;n.lastIndex=e;let r=t.length,i=0,o=1,a;for(;a=n.exec(t);){let[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){r=a.index;break}}return t.slice(e,r)}var dte=new RegExp(String.raw`(?<noncapturingStart>${ste})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function qN(t,e){let n=e?.hiddenCaptures??[],r=e?.captureTransfers??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:r,hiddenCaptures:n};let i="(?>",o="(?:(?=(",a=[0],s=[],l=0,c=0,u=NaN,d;do{d=!1;let p=0,m=0,f=!1,h;for(dte.lastIndex=Number.isNaN(u)?0:u+o.length;h=dte.exec(t);){let{0:x,index:g,groups:{capturingStart:y,noncapturingStart:b}}=h;if(x==="[")p++;else if(p)x==="]"&&p--;else if(x===i&&!f)u=g,f=!0;else if(f&&b)m++;else if(y)f?m++:(l++,a.push(l+c));else if(x===")"&&f){if(!m){c++;let w=l+c;if(t=`${t.slice(0,u)}${o}${t.slice(u+i.length,g)}))<$$${w}>)${t.slice(g+1)}`,d=!0,s.push(w),lte(n,w),r.size){let v=new Map;r.forEach((k,_)=>{v.set(_>=w?_+1:_,k.map(L=>L>=w?L+1:L))}),r=v}break}m--}}}while(d);return n.push(...s),t=L7(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:m,wrappedBackrefNum:f}})=>{if(m){let h=+m;if(h>a.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${a[h]}`}return`\\${f}`},Fs.DEFAULT),{pattern:t,captureTransfers:r,hiddenCaptures:n}}var pte=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,zN=new RegExp(String.raw` +`.replace(/\s+/g,""),"gsu");function Yee(t,e={}){let n={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");let r=vRe(n.flags),i=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(d){i.push(d)},replaceCurrentModX(d){i[i.length-1]=d},singleline:n.rules.singleline},a=[],s;for(jv.lastIndex=0;s=jv.exec(t);){let d=rRe(o,t,s[0],jv.lastIndex);d.tokens?a.push(...d.tokens):d.token&&a.push(d.token),d.lastIndex!==void 0&&(jv.lastIndex=d.lastIndex)}let l=[],c=0;a.filter(d=>d.type==="GroupOpen").forEach(d=>{d.kind==="capturing"?d.number=++c:d.raw==="("&&l.push(d)}),c||l.forEach((d,p)=>{d.kind="capturing",d.number=p+1});let u=c||l.length;return{tokens:a.map(d=>d.type==="EscapedNumber"?CRe(d,u):d).flat(),flags:r}}function rRe(t,e,n,r){let[i,o]=n;if(n==="["||n==="[^"){let a=iRe(e,n,r);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:Gee(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:fRe(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Jee(n)}}if(o==="K")return{token:ete("keep",n)};if(o==="N"||o==="R")return{token:h0("newline",n,{negate:o==="N"})};if(o==="O")return{token:h0("any",n)};if(o==="X")return{token:h0("text_segment",n)};let a=Qee(n,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(o==="*")return{token:yRe(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(e[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:bRe(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:qb("group",n)};if(n==="(?>")return{token:qb("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:qb(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&t.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:qb("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:qb("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:dRe(n)}}if(t.getCurrentModX()){if(n==="#"){let a=e.indexOf(` +`,r);return{lastIndex:a===-1?e.length:a}}if(/^\s$/.test(n)){let a=/\s+/y;return a.lastIndex=r,{lastIndex:a.exec(e)?a.lastIndex:r}}}if(n===".")return{token:h0("dot",n)};if(n==="^"||n==="$"){let a=t.singleline?{"^":to`\A`,$:to`\Z`}[n]:n;return{token:Gee(a,n)}}return n==="|"?{token:aRe(n)}:FN.test(n)?{tokens:_Re(n)}:{token:qp(Wf(n),n)}}function iRe(t,e,n){let r=[Uee(e[1]==="^",e)],i=1,o;for(DN.lastIndex=n;o=DN.exec(t);){let a=o[0];if(a[0]==="["&&a[1]!==":")i++,r.push(Uee(a[1]==="^",a));else if(a==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(qp(93,a));else if(i--,r.push(sRe(a)),!i)break}else{let s=oRe(a);Array.isArray(s)?r.push(...s):r.push(s)}}return{tokens:r,lastIndex:DN.lastIndex||t.length}}function oRe(t){if(t[0]==="\\")return Qee(t,{inCharClass:!0});if(t[0]==="["){let e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!_7.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return h0("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?lRe(t):t==="&&"?cRe(t):qp(Wf(t),t)}function Qee(t,{inCharClass:e}){let n=t[1];if(n==="c"||n==="C")return gRe(t);if("dDhHsSwW".includes(n))return xRe(t);if(t.startsWith(to`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return wRe(t)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(t))try{let r=t.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...i].map(a=>{let s=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return qp(Wf(a),s)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return qp(kRe(t),t);if(Vee.has(n))return qp(Vee.get(n),t);if(/\d/.test(n))return uRe(e,t);if(t==="\\")throw new Error(to`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return qp(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function aRe(t){return{type:"Alternator",raw:t}}function Gee(t,e){return{type:"Assertion",kind:t,raw:e}}function Jee(t){return{type:"Backreference",raw:t}}function qp(t,e){return{type:"Character",value:t,raw:e}}function sRe(t){return{type:"CharacterClassClose",raw:t}}function lRe(t){return{type:"CharacterClassHyphen",raw:t}}function cRe(t){return{type:"CharacterClassIntersector",raw:t}}function Uee(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function h0(t,e,n={}){return{type:"CharacterSet",kind:t,...n,raw:e}}function ete(t,e,n={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:zp(n.flags),raw:e}}function uRe(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function dRe(t){return{type:"GroupClose",raw:t}}function qb(t,e,n={}){return{type:"GroupOpen",kind:t,...n,raw:e}}function pRe(t,e,n,r){return{type:"NamedCallout",kind:t,tag:e,arguments:n,raw:r}}function mRe(t,e,n,r){return{type:"Quantifier",kind:t,min:e,max:n,raw:r}}function fRe(t){return{type:"Subroutine",raw:t}}var hRe=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Vee=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function gRe(t){let e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return qp(Wf(e.toUpperCase())-64,t)}function bRe(t,e){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;r??="";let i=(e.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=Wee(n),a=Wee(r),s={};if(o&&(s.enable=o),a&&(s.disable=a),t.endsWith(")"))return e.replaceCurrentModX(i),ete("flags",t,{flags:s});if(t.endsWith(":"))return e.pushModX(i),e.numOpenGroups++,qb("group",t,{...(o||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${t}"`)}function yRe(t){let e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);let{name:n,tag:r,args:i}=e.groups;if(!n)throw new Error(`Invalid named callout "${t}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);let o=i?i.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[a,s,l]=o,c=hRe.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return pRe(c,r??null,i?.split(",")??null,t)}function Zee(t){let e=null,n,r;if(t[0]==="{"){let{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,a=1e5;if(+i>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+i,r=o===void 0?+i:o===""?1/0:+o,n>r&&(e="possessive",[n,r]=[r,n]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else n=t[0]==="+"?1:0,r=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return mRe(e,n,r,t)}function xRe(t){let e=t[1].toLowerCase();return h0({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function wRe(t){let{p:e,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return h0("property",t,{value:r,negate:e==="P"&&!n||e==="p"&&!!n})}function Wee(t){let e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function vRe(t){let e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<t.length;n++){let r=t[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(t.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[n+2]==="g"?"grapheme":"word",n+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return e}function kRe(t){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(t))throw new Error(`Incomplete or invalid escape "${t}"`);let e=t[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function CRe(t,e){let{raw:n,inCharClass:r}=t,i=n.slice(1);if(!r&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=e))return[Jee(n)];let o=[],a=i.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){let l=a[s],c;if(s===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(to`Octal encoded byte above 177 unsupported "${n}"`)}else c=Wf(l);o.push(qp(c,(s===0?"\\":"")+l))}return o}function _Re(t){let e=[],n=new RegExp(FN,"gy"),r;for(;r=n.exec(t);){let i=r[0];if(i[0]==="{"){let o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){let{min:a,max:s}=o.groups;if(+a>+s&&i.endsWith("?")){n.lastIndex--,e.push(Zee(i.slice(0,-1)));continue}}}e.push(Zee(i))}return e}function Ov(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;let n=t.body[0];return!e||Object.keys(e).every(r=>e[r]===n[r])}function tte(t){return SRe.has(t.type)}var SRe=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Fv(t,e={}){let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},r=Yee(t,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(p,m)=>{let f=r.tokens[o.nextIndex];switch(o.parent=p,o.nextIndex++,f.type){case"Alternator":return Hp();case"Assertion":return LRe(f);case"Backreference":return MRe(f,o);case"Character":return Hb(f.value,{useLastValid:!!m.isCheckingRangeEnd});case"CharacterClassHyphen":return ERe(f,o,m);case"CharacterClassOpen":return TRe(f,o,m);case"CharacterSet":return RRe(f,o);case"Directive":return jRe(f.kind,{flags:f.flags});case"GroupOpen":return ARe(f,o,m);case"NamedCallout":return DRe(f.kind,f.tag,f.arguments);case"Quantifier":return $Re(f,o);case"Subroutine":return IRe(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={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:i},a=BRe(ORe(r.flags)),s=a.body[0];for(;o.nextIndex<r.tokens.length;){let p=i(s,{});p.type==="Alternative"?(a.body.push(p),s=p):s.body.push(p)}let{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:d}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:p}of d)if(typeof p=="number"){if(p>l.length)throw new Error("Subroutine uses a group number that's not defined");p&&(l[p-1].isSubroutined=!0)}else if(u.has(p)){if(u.get(p).length>1)throw new Error(to`Subroutine uses a duplicate group name "\g<${p}>"`);u.get(p)[0].isSubroutined=!0}else throw new Error(to`Subroutine uses a group name that's not defined "\g<${p}>"`);return a}function LRe({kind:t}){return Bv(zp({"^":"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"}[t],`Unexpected assertion kind "${t}"`),{negate:t===to`\B`||t===to`\Y`})}function MRe({raw:t},e){let n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),i=(o,a=!1)=>{let s=e.capturingGroups.length,l=!1;if(o>s)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Dv(a?s+1-o:o,{orphan:l})};if(n){let o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Dv(r)}return i(+r)}function ERe(t,e,n){let{tokens:r,walk:i}=e,o=e.parent,a=o.body.at(-1),s=r[e.nextIndex];if(!n.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let l=i(o,{...n,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),PRe(a,l);throw new Error("Invalid character class range")}return Hb(Wf("-"))}function TRe({negate:t},e,n){let{tokens:r,walk:i}=e,o=[S7()],a=r[e.nextIndex],s=ite(a);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")o.push(S7()),e.nextIndex++;else{let c=o.at(-1);c.body.push(i(c,n))}s=ite(r[e.nextIndex],a)}let l=S7({negate:t});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(c=>c.body.length===1?c.body[0]:c)),e.nextIndex++,l}function RRe({kind:t,negate:e,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a}=r;if(t==="property"){let s=Gb(n);if(_7.has(s)&&!a?.has(s))t="posix",n=s;else return g0(n,{negate:e,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a})}return t==="posix"?FRe(n,{negate:e}):zv(t,{negate:e})}function ARe(t,e,n){let{tokens:r,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:a,walk:s}=e,l=zRe(t),c=l.type==="AbsenceFunction",u=rte(l),d=u&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&Hee(o,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let p=ote(r[e.nextIndex]);for(;p.type!=="GroupClose";){if(p.type==="Alternator")l.body.push(Hp()),e.nextIndex++;else{let m=l.body.at(-1),f=s(m,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(m.body.push(f),(u||n.isInLookbehind)&&!a){let h="Lookbehind includes a pattern not allowed by Oniguruma";if(d||n.isInNegLookbehind){if(nte(f)||f.type==="CapturingGroup")throw new Error(h)}else if(nte(f)||rte(f)&&f.negate)throw new Error(h)}}p=ote(r[e.nextIndex])}return e.nextIndex++,l}function $Re({kind:t,min:e,max:n},r){let i=r.parent,o=i.body.at(-1);if(!o||!tte(o))throw new Error("Quantifier requires a repeatable token");let a=zN(t,e,n,o);return i.body.pop(),a}function IRe({raw:t},e){let{capturingGroups:n,subroutines:r}=e,i=t.slice(3,-1),o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){let s=+o.groups.num,l=n.length;if(e.hasNumberedRef=!0,i={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);let a=qN(i);return r.push(a),a}function NRe(t,e){if(t!=="repeater")throw new Error(`Unexpected absence function kind "${t}"`);return{type:"AbsenceFunction",kind:t,body:L7(e?.body)}}function Hp(t){return{type:"Alternative",body:ate(t?.body)}}function Bv(t,e){let n={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(n.negate=!!e?.negate),n}function Dv(t,e){let n=!!e?.orphan;return{type:"Backreference",ref:t,...n&&{orphan:n}}}function BN(t,e){let n={name:void 0,isSubroutined:!1,...e};if(n.name!==void 0&&!qRe(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:L7(e?.body)}}function Hb(t,e){let n={useLastValid:!1,...e};if(t>1114111){let r=t.toString(16);if(n.useLastValid)t=1114111;else throw t>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:t}}function S7(t){let e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:ate(t?.body)}}function PRe(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function zv(t,e){let n=!!e?.negate,r={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(r.negate=n),(t==="text_segment"||t==="newline"&&!n)&&(r.variableLength=!0),r}function jRe(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:zp(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function ORe(t){return{type:"Flags",...t}}function El(t){let e=t?.atomic,n=t?.flags;if(e&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...n&&{flags:n},body:L7(t?.body)}}function Kf(t){let e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:L7(t?.body)}}function DRe(t,e,n){return{type:"NamedCallout",kind:t,tag:e,arguments:n}}function FRe(t,e){let n=!!e?.negate;if(!_7.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:n}}function zN(t,e,n,r){if(e>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:n,body:r}}function BRe(t,e){return{type:"Regex",body:L7(e?.body),flags:t}}function qN(t){return{type:"Subroutine",ref:t}}function g0(t,e){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e},r=n.unicodePropertyMap?.get(Gb(t));if(!r){if(n.normalizeUnknownPropertyNames)r=HRe(t);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(to`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:r??t,negate:n.negate}}function zRe({flags:t,kind:e,name:n,negate:r,number:i}){switch(e){case"absence_repeater":return NRe("repeater");case"atomic":return El({atomic:!0});case"capturing":return BN(i,{name:n});case"group":return El({flags:t});case"lookahead":case"lookbehind":return Kf({behind:e==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${e}"`)}}function L7(t){if(t===void 0)t=[Hp()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function ate(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function nte(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function rte(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function qRe(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function HRe(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Gb(t){return t.replace(/[- _]+/g,"").toLowerCase()}function ite(t,e){let n=e;return zp(t,`Unclosed character class${n?.type==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function ote(t){return zp(t,"Unclosed group")}function b0(t,e,n=null){function r(o,a){for(let s=0;s<o.length;s++){let l=i(o[s],a,s,o);s=Math.max(-1,s+l)}}function i(o,a=null,s=null,l=null){let c=0,u=!1,d={node:o,parent:a,key:s,container:l,root:t,remove(){qv(l).splice(Math.max(0,Ub(s)+c),1),c--,u=!0},removeAllNextSiblings(){return qv(l).splice(Ub(s)+1)},removeAllPrevSiblings(){let g=Ub(s)+c;return c-=g,qv(l).splice(0,Math.max(0,g))},replaceWith(g,y={}){let b=!!y.traverse;l?l[Math.max(0,Ub(s)+c)]=g:zp(a,"Can't replace root node")[s]=g,b&&i(g,a,s,l),u=!0},replaceWithMultiple(g,y={}){let b=!!y.traverse;if(qv(l).splice(Math.max(0,Ub(s)+c),1,...g),c+=g.length-1,b){let w=0;for(let v=0;v<g.length;v++)w+=i(g[v],a,Ub(s)+v+w,l)}u=!0},skip(){u=!0}},{type:p}=o,m=e["*"],f=e[p],h=typeof m=="function"?m:m?.enter,x=typeof f=="function"?f:f?.enter;if(h?.(d,n),x?.(d,n),!u)switch(p){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"Quantifier":i(o.body,o,"body");break;case"Regex":r(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${p}"`)}return f?.exit?.(d,n),m?.exit?.(d,n),c}return i(t),t}function qv(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function Ub(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}var ste=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function lte(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function cte(t,e,n,r){return t.slice(0,e)+r+t.slice(e+n.length)}var Fs=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function M7(t,e,n,r){let i=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],a=0,s="";for(let l of t.matchAll(i)){let{0:c,groups:{$skip:u}}=l;if(!u&&(!r||r===Fs.DEFAULT==!a)){n instanceof Function?s+=n(l,{context:a?Fs.CHAR_CLASS:Fs.DEFAULT,negated:o[o.length-1]}):s+=n;continue}c[0]==="["?(a++,o.push(c[1]==="^")):c==="]"&&a&&(a--,o.pop()),s+=c}return s}function HN(t,e,n,r){M7(t,e,n,r)}function GRe(t,e,n=0,r){if(!new RegExp(e,"su").test(t))return null;let i=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=n;let o=0,a;for(;a=i.exec(t);){let{0:s,groups:{$skip:l}}=a;if(!l&&(!r||r===Fs.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function E7(t,e,n){return!!GRe(t,e,0,n)}function ute(t,e){let n=/\\?./gsu;n.lastIndex=e;let r=t.length,i=0,o=1,a;for(;a=n.exec(t);){let[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){r=a.index;break}}return t.slice(e,r)}var dte=new RegExp(String.raw`(?<noncapturingStart>${ste})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function UN(t,e){let n=e?.hiddenCaptures??[],r=e?.captureTransfers??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:r,hiddenCaptures:n};let i="(?>",o="(?:(?=(",a=[0],s=[],l=0,c=0,u=NaN,d;do{d=!1;let p=0,m=0,f=!1,h;for(dte.lastIndex=Number.isNaN(u)?0:u+o.length;h=dte.exec(t);){let{0:x,index:g,groups:{capturingStart:y,noncapturingStart:b}}=h;if(x==="[")p++;else if(p)x==="]"&&p--;else if(x===i&&!f)u=g,f=!0;else if(f&&b)m++;else if(y)f?m++:(l++,a.push(l+c));else if(x===")"&&f){if(!m){c++;let w=l+c;if(t=`${t.slice(0,u)}${o}${t.slice(u+i.length,g)}))<$$${w}>)${t.slice(g+1)}`,d=!0,s.push(w),lte(n,w),r.size){let v=new Map;r.forEach((k,_)=>{v.set(_>=w?_+1:_,k.map(L=>L>=w?L+1:L))}),r=v}break}m--}}}while(d);return n.push(...s),t=M7(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:m,wrappedBackrefNum:f}})=>{if(m){let h=+m;if(h>a.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${a[h]}`}return`\\${f}`},Fs.DEFAULT),{pattern:t,captureTransfers:r,hiddenCaptures:n}}var pte=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,GN=new RegExp(String.raw` \\(?: \d+ | c[A-Za-z] | [gk]<[^>]+> @@ -152,7 +152,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error ))? | (?<qBase>${pte})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) | \\?. -`.replace(/\s+/g,""),"gsu");function HN(t){if(!new RegExp(`${pte}\\+`).test(t))return{pattern:t};let e=[],n=null,r=null,i="",o=0,a;for(zN.lastIndex=0;a=zN.exec(t);){let{0:s,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=a;if(s==="[")o||(r=l),o++;else if(s==="]")o?o--:r=null;else if(!o)if(u==="+"&&i&&!i.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${s}"`);let p=-1;if(/^\{\d+\}$/.test(c))t=cte(t,l+c.length,u,"");else{if(i===")"||i==="]"){let m=i===")"?n:r;if(m===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,m)}(?>${t.slice(m,l)}${c})${t.slice(l+s.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${c})${t.slice(l+s.length)}`;p+=4}zN.lastIndex+=p}else s[0]==="("?e.push(l):s===")"&&(n=e.length?e.pop():null);i=s}return{pattern:t}}var Mc=String.raw,URe=Mc`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,UN=Mc`\(\?R=(?<rDepth>[^\)]+)\)|${URe}`,Hv=Mc`\(\?<(?![=!])(?<captureName>[^>]+)>`,bte=Mc`${Hv}|(?<unnamed>\()(?!\?)`,g0=new RegExp(Mc`${Hv}|${UN}|\(\?|\\?.`,"gsu"),GN="Cannot use multiple overlapping recursions";function yte(t,e){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...e},i=e?.captureTransfers??new Map;if(!new RegExp(UN,"su").test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:n};if(r==="plugin"&&M7(t,Mc`\(\?\(DEFINE\)`,Fs.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let o=[],a=M7(t,Mc`\\[1-9]`,Fs.DEFAULT),s=new Map,l=[],c=!1,u=0,d=0,p;for(g0.lastIndex=0;p=g0.exec(t);){let{0:m,groups:{captureName:f,rDepth:h,gRNameOrNum:x,gRDepth:g}}=p;if(m==="[")u++;else if(u)m==="]"&&u--;else if(h){if(mte(h),c)throw new Error(GN);if(a)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let y=t.slice(0,p.index),b=t.slice(g0.lastIndex);if(M7(b,UN,Fs.DEFAULT))throw new Error(GN);let w=+h-1;t=fte(y,b,w,!1,n,o,d),i=gte(i,y,w,o.length,0,d);break}else if(x){mte(g);let y=!1;for(let M of l)if(M.name===x||M.num===+x){if(y=!0,M.hasRecursedWithin)throw new Error(GN);break}if(!y)throw new Error(Mc`Recursive \g cannot be used outside the referenced group "${r==="external"?x:Mc`\g<${x}&R=${g}>`}"`);let b=s.get(x),w=ute(t,b);if(a&&M7(w,Mc`${Hv}|\((?!\?)`,Fs.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let v=t.slice(b,p.index),k=w.slice(v.length+m.length),_=o.length,L=+g-1,S=fte(v,k,L,!0,n,o,d);i=gte(i,v,L,o.length-_,_,d);let C=t.slice(0,b),T=t.slice(b+w.length);t=`${C}${S}${T}`,g0.lastIndex+=S.length-m.length-v.length-k.length,l.forEach(M=>M.hasRecursedWithin=!0),c=!0}else if(f)d++,s.set(String(d),g0.lastIndex),s.set(f,g0.lastIndex),l.push({num:d,name:f});else if(m[0]==="("){let y=m==="(";y&&(d++,s.set(String(d),g0.lastIndex)),l.push(y?{num:d}:{})}else m===")"&&l.pop()}return n.push(...o),{pattern:t,captureTransfers:i,hiddenCaptures:n}}function mte(t){let e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function fte(t,e,n,r,i,o,a){let s=new Set;r&&BN(t+e,Hv,({groups:{captureName:c}})=>{s.add(c)},Fs.DEFAULT);let l=[n,r?s:null,i,o,a];return`${t}${hte(`(?:${t}`,"forward",...l)}(?:)${hte(`${e})`,"backward",...l)}${e}`}function hte(t,e,n,r,i,o,a){let l=u=>e==="forward"?u+2:n-u+2-1,c="";for(let u=0;u<n;u++){let d=l(u);c+=L7(t,Mc`${bte}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:m,unnamed:f,backref:h}})=>{if(h&&r&&!r.has(h))return p;let x=`_$${d}`;if(f||m){let g=a+o.length+1;return o.push(g),VRe(i,g),f?p:`(?<${m}${x}>`}return Mc`\k<${h}${x}>`},Fs.DEFAULT)}return c}function VRe(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function gte(t,e,n,r,i,o){if(t.size&&r){let a=0;BN(e,bte,()=>a++,Fs.DEFAULT);let s=o-a+i,l=new Map;return t.forEach((c,u)=>{let d=(r-a*n)/n,p=a*n,m=u>s+a?u+r:u,f=[];for(let h of c)if(h<=s)f.push(h);else if(h>s+a+d)f.push(h+r);else if(h<=s+a)for(let x=0;x<=n;x++)f.push(h+a*x);else for(let x=0;x<=n;x++)f.push(h+p+d*x);l.set(m,f)}),l}return t}var ho=String.fromCodePoint,kn=String.raw,bu={},Uv=globalThis.RegExp;bu.flagGroups=(()=>{try{new Uv("(?i:)")}catch{return!1}return!0})();bu.unicodeSets=(()=>{try{new Uv("[[]]","v")}catch{return!1}return!0})();bu.bugFlagVLiteralHyphenIsRange=bu.unicodeSets?(()=>{try{new Uv(kn`[\d\-a]`,"v")}catch{return!0}return!1})():!1;bu.bugNestedClassIgnoresNegation=bu.unicodeSets&&new Uv("[[^a]]","v").test("a");function Gv(t,{enable:e,disable:n}){return{dotAll:!n?.dotAll&&!!(e?.dotAll||t.dotAll),ignoreCase:!n?.ignoreCase&&!!(e?.ignoreCase||t.ignoreCase)}}function E7(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function XN(t,e){return xte[t]>=xte[e]}function ZRe(t,e){if(t==null)throw new Error(e??"Value expected");return t}var xte={ES2025:2025,ES2024:2024,ES2018:2018},WRe={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function _te(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!WRe[t.target])throw new Error(`Unexpected target "${t.target}"`);let e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=bu.flagGroups?"ES2025":bu.unicodeSets?"ES2024":"ES2018"),e}var KRe="[ -\r ]",XRe=new Set([ho(304),ho(305)]),Gp=kn`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ste(t){if(XRe.has(t))return[t];let e=new Set,n=t.toLowerCase(),r=n.toUpperCase(),i=JRe.get(n),o=YRe.get(n),a=QRe.get(n);return[...r].length===1&&e.add(r),a&&e.add(a),i&&e.add(i),e.add(n),o&&e.add(o),[...e]}var QN=new Map(`C Other +`.replace(/\s+/g,""),"gsu");function VN(t){if(!new RegExp(`${pte}\\+`).test(t))return{pattern:t};let e=[],n=null,r=null,i="",o=0,a;for(GN.lastIndex=0;a=GN.exec(t);){let{0:s,index:l,groups:{qBase:c,qMod:u,invalidQ:d}}=a;if(s==="[")o||(r=l),o++;else if(s==="]")o?o--:r=null;else if(!o)if(u==="+"&&i&&!i.startsWith("(")){if(d)throw new Error(`Invalid quantifier "${s}"`);let p=-1;if(/^\{\d+\}$/.test(c))t=cte(t,l+c.length,u,"");else{if(i===")"||i==="]"){let m=i===")"?n:r;if(m===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,m)}(?>${t.slice(m,l)}${c})${t.slice(l+s.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${c})${t.slice(l+s.length)}`;p+=4}GN.lastIndex+=p}else s[0]==="("?e.push(l):s===")"&&(n=e.length?e.pop():null);i=s}return{pattern:t}}var Mc=String.raw,URe=Mc`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,WN=Mc`\(\?R=(?<rDepth>[^\)]+)\)|${URe}`,Hv=Mc`\(\?<(?![=!])(?<captureName>[^>]+)>`,bte=Mc`${Hv}|(?<unnamed>\()(?!\?)`,y0=new RegExp(Mc`${Hv}|${WN}|\(\?|\\?.`,"gsu"),ZN="Cannot use multiple overlapping recursions";function yte(t,e){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...e},i=e?.captureTransfers??new Map;if(!new RegExp(WN,"su").test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:n};if(r==="plugin"&&E7(t,Mc`\(\?\(DEFINE\)`,Fs.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let o=[],a=E7(t,Mc`\\[1-9]`,Fs.DEFAULT),s=new Map,l=[],c=!1,u=0,d=0,p;for(y0.lastIndex=0;p=y0.exec(t);){let{0:m,groups:{captureName:f,rDepth:h,gRNameOrNum:x,gRDepth:g}}=p;if(m==="[")u++;else if(u)m==="]"&&u--;else if(h){if(mte(h),c)throw new Error(ZN);if(a)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let y=t.slice(0,p.index),b=t.slice(y0.lastIndex);if(E7(b,WN,Fs.DEFAULT))throw new Error(ZN);let w=+h-1;t=fte(y,b,w,!1,n,o,d),i=gte(i,y,w,o.length,0,d);break}else if(x){mte(g);let y=!1;for(let M of l)if(M.name===x||M.num===+x){if(y=!0,M.hasRecursedWithin)throw new Error(ZN);break}if(!y)throw new Error(Mc`Recursive \g cannot be used outside the referenced group "${r==="external"?x:Mc`\g<${x}&R=${g}>`}"`);let b=s.get(x),w=ute(t,b);if(a&&E7(w,Mc`${Hv}|\((?!\?)`,Fs.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let v=t.slice(b,p.index),k=w.slice(v.length+m.length),_=o.length,L=+g-1,S=fte(v,k,L,!0,n,o,d);i=gte(i,v,L,o.length-_,_,d);let C=t.slice(0,b),T=t.slice(b+w.length);t=`${C}${S}${T}`,y0.lastIndex+=S.length-m.length-v.length-k.length,l.forEach(M=>M.hasRecursedWithin=!0),c=!0}else if(f)d++,s.set(String(d),y0.lastIndex),s.set(f,y0.lastIndex),l.push({num:d,name:f});else if(m[0]==="("){let y=m==="(";y&&(d++,s.set(String(d),y0.lastIndex)),l.push(y?{num:d}:{})}else m===")"&&l.pop()}return n.push(...o),{pattern:t,captureTransfers:i,hiddenCaptures:n}}function mte(t){let e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function fte(t,e,n,r,i,o,a){let s=new Set;r&&HN(t+e,Hv,({groups:{captureName:c}})=>{s.add(c)},Fs.DEFAULT);let l=[n,r?s:null,i,o,a];return`${t}${hte(`(?:${t}`,"forward",...l)}(?:)${hte(`${e})`,"backward",...l)}${e}`}function hte(t,e,n,r,i,o,a){let l=u=>e==="forward"?u+2:n-u+2-1,c="";for(let u=0;u<n;u++){let d=l(u);c+=M7(t,Mc`${bte}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:m,unnamed:f,backref:h}})=>{if(h&&r&&!r.has(h))return p;let x=`_$${d}`;if(f||m){let g=a+o.length+1;return o.push(g),VRe(i,g),f?p:`(?<${m}${x}>`}return Mc`\k<${h}${x}>`},Fs.DEFAULT)}return c}function VRe(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function gte(t,e,n,r,i,o){if(t.size&&r){let a=0;HN(e,bte,()=>a++,Fs.DEFAULT);let s=o-a+i,l=new Map;return t.forEach((c,u)=>{let d=(r-a*n)/n,p=a*n,m=u>s+a?u+r:u,f=[];for(let h of c)if(h<=s)f.push(h);else if(h>s+a+d)f.push(h+r);else if(h<=s+a)for(let x=0;x<=n;x++)f.push(h+a*x);else for(let x=0;x<=n;x++)f.push(h+p+d*x);l.set(m,f)}),l}return t}var ho=String.fromCodePoint,kn=String.raw,bu={},Uv=globalThis.RegExp;bu.flagGroups=(()=>{try{new Uv("(?i:)")}catch{return!1}return!0})();bu.unicodeSets=(()=>{try{new Uv("[[]]","v")}catch{return!1}return!0})();bu.bugFlagVLiteralHyphenIsRange=bu.unicodeSets?(()=>{try{new Uv(kn`[\d\-a]`,"v")}catch{return!0}return!1})():!1;bu.bugNestedClassIgnoresNegation=bu.unicodeSets&&new Uv("[[^a]]","v").test("a");function Gv(t,{enable:e,disable:n}){return{dotAll:!n?.dotAll&&!!(e?.dotAll||t.dotAll),ignoreCase:!n?.ignoreCase&&!!(e?.ignoreCase||t.ignoreCase)}}function T7(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function JN(t,e){return xte[t]>=xte[e]}function ZRe(t,e){if(t==null)throw new Error(e??"Value expected");return t}var xte={ES2025:2025,ES2024:2024,ES2018:2018},WRe={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function _te(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!WRe[t.target])throw new Error(`Unexpected target "${t.target}"`);let e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=bu.flagGroups?"ES2025":bu.unicodeSets?"ES2024":"ES2018"),e}var KRe="[ -\r ]",XRe=new Set([ho(304),ho(305)]),Gp=kn`[\p{L}\p{M}\p{N}\p{Pc}]`;function Ste(t){if(XRe.has(t))return[t];let e=new Set,n=t.toLowerCase(),r=n.toUpperCase(),i=JRe.get(n),o=YRe.get(n),a=QRe.get(n);return[...r].length===1&&e.add(r),a&&e.add(a),i&&e.add(i),e.add(n),o&&e.add(o),[...e]}var tP=new Map(`C Other Cc Control cntrl Cf Format Cn Unassigned @@ -242,13 +242,13 @@ Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC -XID_Start XIDS`.split(/\s/).map(t=>[Hb(t),t])),YRe=new Map([["s",ho(383)],[ho(383),"s"]]),QRe=new Map([[ho(223),ho(7838)],[ho(107),ho(8490)],[ho(229),ho(8491)],[ho(969),ho(8486)]]),JRe=new Map([Kf(453),Kf(456),Kf(459),Kf(498),...VN(8072,8079),...VN(8088,8095),...VN(8104,8111),Kf(8124),Kf(8140),Kf(8188)]),eAe=new Map([["alnum",kn`[\p{Alpha}\p{Nd}]`],["alpha",kn`\p{Alpha}`],["ascii",kn`\p{ASCII}`],["blank",kn`[\p{Zs}\t]`],["cntrl",kn`\p{Cc}`],["digit",kn`\p{Nd}`],["graph",kn`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",kn`\p{Lower}`],["print",kn`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",kn`[\p{P}\p{S}]`],["space",kn`\p{space}`],["upper",kn`\p{Upper}`],["word",kn`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",kn`\p{AHex}`]]);function tAe(t,e){let n=[];for(let r=t;r<=e;r++)n.push(r);return n}function Kf(t){let e=ho(t);return[e.toLowerCase(),e]}function VN(t,e){return tAe(t,e).map(n=>Kf(n))}var Lte=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function nAe(t,e){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Mte(t);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:XN(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};h0(t,rAe,r);let i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};h0(t,iAe,o);let a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return h0(t,oAe,a),t._originMap=o.groupOriginByCopy,t._strategy=r.strategy,t}var rAe={AbsenceFunction({node:t,parent:e,replaceWith:n}){let{body:r,kind:i}=t;if(i==="repeater"){let o=Ml();o.body[0].body.push(Wf({negate:!0,body:r}),f0("Any"));let a=Ml();a.body[0].body.push(DN("greedy",0,1/0,o)),n(ji(a,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:r}){let i=t.body.filter(o=>o.kind==="flags");for(let o=n+1;o<e.body.length;o++){let a=e.body[o];E7(r,a,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){let n=Tte(e.get(t));if(n){let r=Ml({flags:n});r.body[0].body=t.body,t.body=[ji(r,t)]}}}},Assertion({node:t,parent:e,key:n,container:r,root:i,remove:o,replaceWith:a},s){let{kind:l,negate:c}=t,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:p,wordIsAscii:m}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")a(ji(Wf({body:[Hp({body:[Bv("string_end")]}),Hp({body:[qb(10)]})]}),e));else if(l==="line_start")a(ji(Up(kn`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(p.has(t))i.flags.sticky=!0,o();else{let f=r[n-1];if(f&&dAe(f))a(ji(Wf({negate:!0}),e));else{if(d)throw new Error(kn`Uses "\G" in a way that requires a subclass`);a(Xf(Bv("string_start"),e)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(ji(Up(kn`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!m&&!u){let f=`(?:(?<=${Gp})(?!${Gp})|(?<!${Gp})(?=${Gp}))`,h=`(?:(?<=${Gp})(?=${Gp})|(?<!${Gp})(?!${Gp}))`;a(ji(Up(c?h:f),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!WN(n)&&(n=ZN(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:r}=t;r&&!WN(r)&&(r=ZN(r,e),t.name=r),n.set(t.number,t),r&&n.set(r,t)},CharacterClassRange({node:t,parent:e,replaceWith:n}){if(e.kind==="intersection"){let r=_7({body:[t]});n(ji(r,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:s}){let{kind:l,negate:c,value:u}=t;if(o&&(l==="digit"||u==="digit")){n(Xf(zv("digit",{negate:c}),e));return}if(a&&(l==="space"||u==="space")){n(ji(KN(Up(KRe),c),e));return}if(s&&(l==="word"||u==="word")){n(Xf(zv("word",{negate:c}),e));return}if(l==="any")n(Xf(f0("Any"),e));else if(l==="digit")n(Xf(f0("Nd",{negate:c}),e));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(kn`Use of "\X" requires non-strict accuracy`);let d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=kn`\p{RI}{2}|${d}(?:\u200D${d})*`;n(ji(Up(kn`(?>\r\n|${i?kn`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(l==="hex")n(Xf(f0("AHex",{negate:c}),e));else if(l==="newline")n(ji(Up(c?`[^ +XID_Start XIDS`.split(/\s/).map(t=>[Gb(t),t])),YRe=new Map([["s",ho(383)],[ho(383),"s"]]),QRe=new Map([[ho(223),ho(7838)],[ho(107),ho(8490)],[ho(229),ho(8491)],[ho(969),ho(8486)]]),JRe=new Map([Xf(453),Xf(456),Xf(459),Xf(498),...KN(8072,8079),...KN(8088,8095),...KN(8104,8111),Xf(8124),Xf(8140),Xf(8188)]),eAe=new Map([["alnum",kn`[\p{Alpha}\p{Nd}]`],["alpha",kn`\p{Alpha}`],["ascii",kn`\p{ASCII}`],["blank",kn`[\p{Zs}\t]`],["cntrl",kn`\p{Cc}`],["digit",kn`\p{Nd}`],["graph",kn`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",kn`\p{Lower}`],["print",kn`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",kn`[\p{P}\p{S}]`],["space",kn`\p{space}`],["upper",kn`\p{Upper}`],["word",kn`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",kn`\p{AHex}`]]);function tAe(t,e){let n=[];for(let r=t;r<=e;r++)n.push(r);return n}function Xf(t){let e=ho(t);return[e.toLowerCase(),e]}function KN(t,e){return tAe(t,e).map(n=>Xf(n))}var Lte=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function nAe(t,e){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Mte(t);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:JN(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};b0(t,rAe,r);let i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};b0(t,iAe,o);let a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return b0(t,oAe,a),t._originMap=o.groupOriginByCopy,t._strategy=r.strategy,t}var rAe={AbsenceFunction({node:t,parent:e,replaceWith:n}){let{body:r,kind:i}=t;if(i==="repeater"){let o=El();o.body[0].body.push(Kf({negate:!0,body:r}),g0("Any"));let a=El();a.body[0].body.push(zN("greedy",0,1/0,o)),n(ji(a,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:r}){let i=t.body.filter(o=>o.kind==="flags");for(let o=n+1;o<e.body.length;o++){let a=e.body[o];T7(r,a,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){let n=Tte(e.get(t));if(n){let r=El({flags:n});r.body[0].body=t.body,t.body=[ji(r,t)]}}}},Assertion({node:t,parent:e,key:n,container:r,root:i,remove:o,replaceWith:a},s){let{kind:l,negate:c}=t,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:p,wordIsAscii:m}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")a(ji(Kf({body:[Hp({body:[Bv("string_end")]}),Hp({body:[Hb(10)]})]}),e));else if(l==="line_start")a(ji(Up(kn`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(p.has(t))i.flags.sticky=!0,o();else{let f=r[n-1];if(f&&dAe(f))a(ji(Kf({negate:!0}),e));else{if(d)throw new Error(kn`Uses "\G" in a way that requires a subclass`);a(Yf(Bv("string_start"),e)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(ji(Up(kn`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!m&&!u){let f=`(?:(?<=${Gp})(?!${Gp})|(?<!${Gp})(?=${Gp}))`,h=`(?:(?<=${Gp})(?=${Gp})|(?<!${Gp})(?!${Gp}))`;a(ji(Up(c?h:f),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!YN(n)&&(n=XN(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:r}=t;r&&!YN(r)&&(r=XN(r,e),t.name=r),n.set(t.number,t),r&&n.set(r,t)},CharacterClassRange({node:t,parent:e,replaceWith:n}){if(e.kind==="intersection"){let r=S7({body:[t]});n(ji(r,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:s}){let{kind:l,negate:c,value:u}=t;if(o&&(l==="digit"||u==="digit")){n(Yf(zv("digit",{negate:c}),e));return}if(a&&(l==="space"||u==="space")){n(ji(QN(Up(KRe),c),e));return}if(s&&(l==="word"||u==="word")){n(Yf(zv("word",{negate:c}),e));return}if(l==="any")n(Yf(g0("Any"),e));else if(l==="digit")n(Yf(g0("Nd",{negate:c}),e));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(kn`Use of "\X" requires non-strict accuracy`);let d="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=kn`\p{RI}{2}|${d}(?:\u200D${d})*`;n(ji(Up(kn`(?>\r\n|${i?kn`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(l==="hex")n(Yf(g0("AHex",{negate:c}),e));else if(l==="newline")n(ji(Up(c?`[^ ]`:`(?>\r ?|[ -\v\f\x85\u2028\u2029])`),e));else if(l==="posix")if(!i&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[u];c&&(d=`\0-${ho(d.codePointAt(0)-1)}${ho(d.codePointAt(2)+1)}-\u{10FFFF}`),n(ji(Up(`[${d}]`),e))}else n(ji(KN(Up(eAe.get(u)),c),e));else if(l==="property")QN.has(Hb(u))||(t.key="sc");else if(l==="space")n(Xf(f0("space",{negate:c}),e));else if(l==="word")n(ji(KN(Up(Gp),c),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:t,parent:e,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:a}){let{kind:s,flags:l}=t;if(s==="flags")if(!l.enable&&!l.disable)r();else{let c=Ml({flags:l});c.body[0].body=a(),i(ji(c,e),{traverse:!0})}else if(s==="keep"){let c=n.body[0],d=n.body.length===1&&Ov(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(e.parent!==d||d.body.length>1)throw new Error(kn`Uses "\K" in a way that's unsupported`);let p=Wf({behind:!0});p.body[0].body=o(),i(ji(p,e))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete t[n]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;let{enable:e,disable:n}=t.flags;e?.extended&&delete e.extended,n?.extended&&delete n.extended,e?.dotAll&&n?.dotAll&&delete e.dotAll,e?.ignoreCase&&n?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){let{kind:n}=t;n==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:n}){let{kind:r}=t;if(r==="fail")n(ji(Wf({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){let e=Ml();e.body[0].body.push(t.body),t.body=ji(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){let n=[],r=!1,i=!1;for(let o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{let a=Ate(o.body);a?(r=!0,Array.isArray(a)?n.push(...a):n.push(a)):i=!0}r&&!i&&n.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:n,strategy:r}){if(e==="strict"&&n&&r)throw new Error(kn`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!WN(n)&&(n=ZN(n,e),t.ref=n)}},iAe={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=t;r||n.set(t,[...e.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:l}){let c=i.get(t);if(c&&s.has(t.number)){let d=Xf(wte(t.number),e);l.set(d,s.get(t.number)),n(d);return}s.set(t.number,t),a.set(t.number,[]),t.name&&E7(a,t.name,[]);let u=a.get(t.name??t.number);for(let d=0;d<u.length;d++){let p=u[d];if(c===p.node||c&&c===p.origin||t===p.origin){u.splice(d,1);break}}if(a.get(t.number).push({node:t,origin:c}),t.name&&a.get(t.name).push({node:t,origin:c}),t.name){let d=E7(o,t.name,new Map),p=!1;if(c)p=!0;else for(let m of d.values())if(!m.hasDuplicateNameToRemove){p=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:p})}},exit({node:t},{openRefs:e}){e.get(t.number)===t&&e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=Gv(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:n},r){let{isRecursive:i,ref:o}=t;if(i){let u=e;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===o||u.number===o)););r.reffedNodesByReferencer.set(t,u);return}let a=r.subroutineRefMap.get(o),s=o===0,l=s?wte(0):Ete(a,r.groupOriginByCopy,null),c=l;if(!s){let u=Tte(lAe(a,p=>p.type==="Group"&&!!p.flags)),d=u?Gv(r.globalFlags,u):r.globalFlags;aAe(d,r.currentFlags)||(c=Ml({flags:cAe(d)}),c.body[0].body.push(l))}n(ji(c,e),{traverse:!s})}},oAe={Backreference({node:t,parent:e,replaceWith:n},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}let o=r.reffedNodesByReferencer.get(t).filter(a=>sAe(a,t));if(!o.length)n(ji(Wf({negate:!0}),e));else if(o.length>1){let a=Ml({atomic:!0,body:o.reverse().map(s=>Hp({body:[Dv(s.number)]}))});n(ji(a,e))}else t.ref=o[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){let n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let r=0;r<n;r++){let i=ON();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Mte(t){h0(t,{"*"({node:e,parent:n}){e.parent=n}})}function aAe(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function sAe(t,e){let n=e;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===t)return!1;let r=Rte(n.parent);for(let i of r){if(i===n)break;if(i===t||$te(i,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Ete(t,e,n,r){let i=Array.isArray(t)?[]:{};for(let[o,a]of Object.entries(t))o==="parent"?i.parent=Array.isArray(n)?r:n:a&&typeof a=="object"?i[o]=Ete(a,e,i,n):(o==="type"&&a==="CapturingGroup"&&e.set(i,e.get(t)??t),i[o]=a);return i}function wte(t){let e=FN(t);return e.isRecursive=!0,e}function lAe(t,e){let n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function ZN(t,e){if(e.has(t))return e.get(t);let n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function Tte(t){let e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:r})=>{e.forEach(i=>{r.enable?.[i]&&(delete n.disable[i],n.enable[i]=!0),r.disable?.[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function cAe({dotAll:t,ignoreCase:e}){let n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function Rte(t){if(!t)throw new Error("Node expected");let{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Ate(t){let e=t.find(n=>n.kind==="search_start"||pAe(n,{negate:!1})||!uAe(n));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){let n=[];for(let r of e.body){let i=Ate(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function $te(t,e){let n=Rte(t)??[];for(let r of n)if(r===e||$te(r,e))return!0;return!1}function uAe({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function dAe(t){let e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function pAe(t,e){let n={negate:null,...e};return t.type==="LookaroundAssertion"&&(n.negate===null||t.negate===n.negate)&&t.body.length===1&&Ov(t.body[0],{type:"Assertion",kind:"search_start"})}function WN(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function Up(t,e){let r=Fv(t,{...e,unicodePropertyMap:QN}).body;return r.length>1||r[0].body.length>1?Ml({body:r}):r[0].body[0]}function KN(t,e){return t.negate=e,t}function Xf(t,e){return t.parent=e,t}function ji(t,e){return Mte(t),t.parent=e,t}function mAe(t,e){let n=_te(e),r=XN(n.target,"ES2024"),i=XN(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!i){let m=[t.flags.ignoreCase];h0(t,fAe,{getCurrentModI:()=>m.at(-1),popModI(){m.pop()},pushModI(f){m.push(f)},setHasCasedChar(){m.at(-1)?a=!0:s=!0}})}let l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||a)&&!s)},c=t,u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&a&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(m){return u.lastNode=c,c=m,ZRe(hAe[m.type],`Unexpected node type "${m.type}"`)(m,u,d)}let p={pattern:t.body.map(d).join("|"),flags:d(t.flags),options:{...t.options}};return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],u.captureMap.forEach((m,f)=>{m.hidden&&p._hiddenCaptures.push(f),m.transferTo&&E7(p._captureTransfers,m.transferTo,[]).push(f)}),p}var fAe={"*":{enter({node:t},e){if(kte(t)){let n=e.getCurrentModI();e.pushModI(t.flags?Gv({ignoreCase:n},t.flags).ignoreCase:n)}},exit({node:t},e){kte(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){JN(ho(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),Ite(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&Lte.has(t.value)&&e.setHasCasedChar()}},hAe={Alternative({body:t},e,n){return t.map(n).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?kn`\B`:kn`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,n){let{body:r,name:i,number:o}=t,a={ignoreCase:e.currentFlags.ignoreCase},s=e.originMap.get(t);return s&&(a.hidden=!0,o>s.number&&(a.transferTo=s.number)),e.captureMap.set(o,a),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:t},e){let n=ho(t),r=Ub(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(r!==n)return r;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&JN(n)){let i=Ste(n);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(t,e,n){let{kind:r,negate:i,parent:o}=t,{body:a}=t;if(r==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");bu.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&a.some(Cte)&&(a=[qb(45),...a.filter(c=>!Cte(c))]);let s=()=>`[${i?"^":""}${a.map(n).join(r==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||bu.bugNestedClassIgnoresNegation)&&!i){let u=a.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(u.length){let d=Ml(),p=d.body[0];return d.parent=o,p.parent=d,a=a.filter(m=>!u.includes(m)),t.body=a,a.length?(t.parent=p,p.body.push(t)):d.body.pop(),u.forEach(m=>{let f=Hp({body:[m]});m.parent=f,f.parent=d,d.body.push(f)}),n(d)}}e.inCharClass=!0;let c=s();return e.inCharClass=!1,c}let l=a[0];if(r==="union"&&!i&&l&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(bu.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(n).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(t,e){let n=t.min.value,r=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=Ub(n,i),a=Ub(r,i),s=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){let l=Ite(t);wAe(l).forEach(u=>{s.add(Array.isArray(u)?`${Ub(u[0],i)}-${Ub(u[1],i)}`:Ub(u,i))})}return`${o}-${a}${[...s].join("")}`},CharacterSet({kind:t,negate:e,value:n,key:r},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":kn`[^\n]`;if(t==="digit")return e?kn`\D`:kn`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Lte.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?kn`\P`:kn`\p`}{${r?`${r}=`:""}${n}}`}if(t==="word")return e?kn`\W`:kn`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:n,parent:r},i,o){let a=i.currentFlags;n&&(i.currentFlags=Gv(a,n));let s=e.map(o).join("|"),l=!i.verbose&&e.length===1&&r.type!=="Quantifier"&&!t&&(!i.useFlagMods||!n)?s:`(?${vAe(t,n,i.useFlagMods)}${s})`;return i.currentFlags=a,l},LookaroundAssertion({body:t,kind:e,negate:n},r,i){return`(?${`${e==="lookahead"?"":"<"}${n?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,n){return n(t.body)+kAe(t)},Subroutine({isRecursive:t,ref:e},n){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return e===0?`(?R=${r})`:kn`\g<${e}&R=${r}>`}},gAe=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),bAe=new Set(["-","\\","]","^","["]),yAe=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),vte=new Map([[9,kn`\t`],[10,kn`\n`],[11,kn`\v`],[12,kn`\f`],[13,kn`\r`],[8232,kn`\u2028`],[8233,kn`\u2029`],[65279,kn`\uFEFF`]]),xAe=/^\p{Cased}$/u;function JN(t){return xAe.test(t)}function Ite(t,e){let n=!!e?.firstOnly,r=t.min.value,i=t.max.value,o=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return o;for(let a=r;a<=i;a++){let s=ho(a);if(!JN(s))continue;let l=Ste(s).filter(c=>{let u=c.codePointAt(0);return u<r||u>i});if(l.length&&(o.push(...l),n))break}return o}function Ub(t,{escDigit:e,inCharClass:n,useFlagV:r}){if(vte.has(t))return vte.get(t);if(t<32||t>126&&t<160||t>262143||e&&CAe(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;let i=n?r?yAe:bAe:gAe,o=ho(t);return(i.has(o)?"\\":"")+o}function wAe(t){let e=t.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),n=[],r=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?r??=e[i]:r===null?n.push(e[i]):(n.push([r,e[i]]),r=null);return n}function vAe(t,e,n){if(t)return">";let r="";if(e&&n){let{enable:i,disable:o}=e;r=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function kAe({kind:t,max:e,min:n}){let r;return!n&&e===1?r="?":!n&&e===1/0?r="*":n===1&&e===1/0?r="+":n===e?r=`{${n}}`:r=`{${n},${e===1/0?"":e}}`,r+{greedy:"",lazy:"?",possessive:"+"}[t]}function kte({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function CAe(t){return t>47&&t<58}function Cte({type:t,value:e}){return t==="Character"&&e===45}var _Ae=class YN extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(e,n,r){let i=!!r?.lazyCompile;if(e instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");let o=e;super(o,n),this.#n=o.source,o instanceof YN&&(this.#e=o.#e,this.#r=o.#r,this.#i=o.#i,this.rawOptions=o.rawOptions)}else{let o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":e,n),this.#n=e,this.#e=LAe(o.hiddenCaptures,o.transfers),this.#i=o.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(e){if(!this.#t){let{lazyCompile:i,...o}=this.rawOptions;this.#t=new YN(this.#n,this.flags,o)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i==="clip_search"&&n&&r){this.lastIndex=0;let i=this.#o(e.slice(r));return i&&(SAe(i,r,e,this.hasIndices),this.lastIndex+=r),i}return this.#o(e)}#o(e){this.#t.lastIndex=this.lastIndex;let n=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;let r=[...n];n.length=1;let i;this.hasIndices&&(i=[...n.indices],n.indices.length=1);let o=[0];for(let a=1;a<r.length;a++){let{hidden:s,transferTo:l}=this.#e.get(a)??{};if(s?o.push(null):(o.push(n.length),n.push(r[a]),this.hasIndices&&n.indices.push(i[a])),l&&r[a]!==void 0){let c=o[l];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(n[c]=r[a],this.hasIndices&&(n.indices[c]=i[a]),n.groups){this.#r||(this.#r=MAe(this.source));let u=this.#r.get(l);u&&(n.groups[u]=r[a],this.hasIndices&&(n.indices.groups[u]=i[a]))}}}return n}};function SAe(t,e,n,r){if(t.index+=e,t.input=n,r){let i=t.indices;for(let a=0;a<i.length;a++){let s=i[a];s&&(i[a]=[s[0]+e,s[1]+e])}let o=i.groups;o&&Object.keys(o).forEach(a=>{let s=o[a];s&&(o[a]=[s[0]+e,s[1]+e])})}}function LAe(t,e){let n=new Map;for(let r of t)n.set(r,{hidden:!0});for(let[r,i]of e)for(let o of i)E7(n,o,{}).transferTo=r;return n}function MAe(t){let e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,o;for(;o=e.exec(t);){let{0:a,groups:{capture:s,name:l}}=o;a==="["?r++:r?a==="]"&&r--:s&&(i++,l&&n.set(i,l))}return n}function Nte(t,e){let n=EAe(t,e);return n.options?new _Ae(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function EAe(t,e){let n=_te(e),r=Fv(t,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:QN}),i=nAe(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=mAe(i,n),a=yte(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=HN(a.pattern),l=qN(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let u=l.hiddenCaptures.sort((f,h)=>f-h),d=Array.from(l.captureTransfers),p=i._strategy,m=c.pattern.length>=n.lazyCompileLength;(u.length||d.length||p||m)&&(c.options={...u.length&&{hiddenCaptures:u},...d.length&&{transfers:d},...p&&{strategy:p},...m&&{lazyCompile:m}})}return c}var Vv=class{constructor(e,n={}){this.patterns=e,this.options=n;let{forgiving:r=!1,cache:i,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(a=>{if(typeof a!="string")return a;let s=i?.get(a);if(s){if(s instanceof RegExp)return s;if(r)return null;throw s}try{let l=o(a);return i?.set(a,l),l}catch(l){if(i?.set(a,l),r)return null;throw l}})}regexps;findNextMatchSync(e,n,r){let i=typeof e=="string"?e:e.content,o=[];function a(s,l,c=0){return{index:s,captureIndices:l.indices.map(u=>u==null?{start:4294967295,end:4294967295,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let s=0;s<this.regexps.length;s++){let l=this.regexps[s];if(l)try{l.lastIndex=n;let c=l.exec(i);if(!c)continue;if(c.index===n)return a(s,c,0);o.push([s,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){let s=Math.min(...o.map(l=>l[1].index));for(let[l,c,u]of o)if(c.index===s)return a(l,c,u)}return null}};function Pte(t,e){return Nte(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function T7(t={}){let e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||=n=>Pte(n,{target:e.target}),{createScanner(n){return new Vv(n,e)},createString(n){return{content:n}}}}var eP={typescript:["ts","mts","cts"],tsx:[],javascript:["js","mjs","cjs"],jsx:[],json:[],jsonc:[],markdown:["md"],css:[],scss:[],html:[],shellscript:["bash","sh","shell","zsh"],python:["py"],rust:[],go:[],swift:[],yaml:["yml"],toml:[],sql:[],diff:[],c:[],java:[],kotlin:[],zig:[],lua:[],make:["makefile"],dockerfile:[]},TAe=new Set(Object.entries(eP).flatMap(([t,e])=>[t,...e])),b0=t=>TAe.has(t);function Ine(){throw new Error("The agent pane highlights with the JavaScript regex engine only")}var _$e={typescript:()=>Promise.resolve().then(()=>(Ote(),jte)),tsx:()=>Promise.resolve().then(()=>(Fte(),Dte)),javascript:()=>Promise.resolve().then(()=>(nP(),Bte)),jsx:()=>Promise.resolve().then(()=>(qte(),zte)),json:()=>Promise.resolve().then(()=>(Gte(),Hte)),jsonc:()=>Promise.resolve().then(()=>(Vte(),Ute)),markdown:()=>Promise.resolve().then(()=>(Wte(),Zte)),css:()=>Promise.resolve().then(()=>(Zv(),Kte)),scss:()=>Promise.resolve().then(()=>(Yte(),Xte)),html:()=>Promise.resolve().then(()=>(Jte(),Qte)),shellscript:()=>Promise.resolve().then(()=>(tne(),ene)),python:()=>Promise.resolve().then(()=>(rne(),nne)),rust:()=>Promise.resolve().then(()=>(one(),ine)),go:()=>Promise.resolve().then(()=>(sne(),ane)),swift:()=>Promise.resolve().then(()=>(cne(),lne)),yaml:()=>Promise.resolve().then(()=>(dne(),une)),toml:()=>Promise.resolve().then(()=>(mne(),pne)),sql:()=>Promise.resolve().then(()=>(hne(),fne)),diff:()=>Promise.resolve().then(()=>(bne(),gne)),c:()=>Promise.resolve().then(()=>(iP(),yne)),java:()=>Promise.resolve().then(()=>(wne(),xne)),kotlin:()=>Promise.resolve().then(()=>(kne(),vne)),zig:()=>Promise.resolve().then(()=>(_ne(),Cne)),lua:()=>Promise.resolve().then(()=>(Lne(),Sne)),make:()=>Promise.resolve().then(()=>(Ene(),Mne)),dockerfile:()=>Promise.resolve().then(()=>($ne(),Ane))},Wv=Object.fromEntries(Object.entries(eP).flatMap(([t,e])=>[t,...e].map(n=>[n,_$e[t]]))),oP={},aP=zee({langs:Wv,themes:oP,engine:()=>T7()}),{codeToHtml:S$e}=qee(aP);async function Kv(t){if(wv())throw new Error(`resolveLanguage("${t}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let e=xv.get(t);if(e!=null)return e;try{let n=QJ.get(t);if(n==null&&Object.prototype.hasOwnProperty.call(Wv,t)&&(n=Wv[t]),n==null)throw new Error(`resolveLanguage: "${t}" not found in bundled or custom languages`);let r=n().then(({default:i})=>{let o={name:t,data:i};return Sc.has(t)||Sc.set(t,o),o});return xv.set(t,r),await r}finally{xv.delete(t)}}function Xv(t){return Sc.get(t)??Kv(t)}var Bs=new Map,Yv=new Map,A7=new Map,$7=new Set;function I7(t,e){t=Array.isArray(t)?t:[t];for(let n of t){let r;if(typeof n=="string"){if(r=Bs.get(n),r==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else r=n,n=n.name,Bs.has(n)||Bs.set(n,r);$7.has(n)||($7.add(n),e.loadThemeSync(r))}}async function Qv(t){if(wv())throw new Error(`resolveTheme("${t}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let e=Yv.get(t);if(e!=null)return e;try{let n=A7.get(t)??oP[t];if(n==null)throw new Error(`resolveTheme: No valid loader for ${t}`);let r=n().then(o=>L$e(t,"default"in o?o.default:o));Yv.set(t,r);let i=await r;if(i.name!==t)throw new Error(`resolvedTheme: themeName: ${t} does not match theme.name: ${i.name}`);return Bs.set(i.name,i),i}finally{Yv.delete(t)}}function L$e(t,e){let n=Bs.get(t);return n??(e=k7(e),Bs.set(t,e),e)}function Jv(t){return Bs.get(t)??Qv(t)}function Vp(t,e){if(A7.has(t)){console.error("SharedHighlight.registerCustomTheme: theme name already registered",t);return}A7.set(t,e)}var ld;async function y0({themes:t,langs:e,preferredHighlighter:n="shiki-js"}){ld??=aP({themes:[],langs:["text"],engine:n==="shiki-wasm"?Ine(Promise.resolve().then(()=>(Pne(),Nne))):T7()});let r=$$e(ld)?await ld:ld;ld=r;let i=[];for(let a of e){if(a==="text"||a==="ansi")continue;let s=Xv(a);"then"in s?i.push(s):fN(s,r)}let o=[];for(let a of t){let s=Jv(a);"then"in s?o.push(s):I7(s,ld)}return(i.length>0||o.length>0)&&await Promise.all([Promise.all(i).then(a=>{fN(a,r)}),Promise.all(o).then(a=>{I7(a,r)})]),r}function ek(){if(ld!=null&&!("then"in ld))return ld}function $$e(t=ld){return t!=null&&"then"in t}Vp("pierre-dark",async()=>{let{default:t}=await Promise.resolve().then(()=>(One(),jne));return{...t,name:"pierre-dark"}});Vp("pierre-dark-soft",async()=>{let{default:t}=await Promise.resolve().then(()=>(Fne(),Dne));return{...t,name:"pierre-dark-soft"}});Vp("pierre-light",async()=>{let{default:t}=await Promise.resolve().then(()=>(zne(),Bne));return{...t,name:"pierre-light"}});Vp("pierre-light-soft",async()=>{let{default:t}=await Promise.resolve().then(()=>(Hne(),qne));return{...t,name:"pierre-light-soft"}});function Zp(t=nr){let e=[];return typeof t=="string"?e.push(t):(e.push(t.dark),e.push(t.light)),e}function x0(t){for(let e of Zp(t))if(!$7.has(e))return!1;return!0}function N7(t){for(let e of t)if(!Bs.has(e))return!1;return!0}function cd(t,e){return Cc(t.theme,e.theme)&&t.useTokenTransformer===e.useTokenTransformer&&t.tokenizeMaxLineLength===e.tokenizeMaxLineLength}function Ec(t,e){return t?.cacheKey===e?.cacheKey&&t?.contents===e?.contents&&t?.name===e?.name&&t?.lang===e?.lang}function Yf(t,e){return t==null||e==null?t===e:t.startingLine===e.startingLine&&t.totalLines===e.totalLines&&t.bufferBefore===e.bufferBefore&&t.bufferAfter===e.bufferAfter}function tk(t){return zt({tagName:"div",children:[zt({tagName:"div",children:t.annotations?.map(e=>zt({tagName:"slot",properties:{name:e}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${t.hunkIndex},${t.lineIndex}`}})}function Gne(t){switch(t){case"file":return"diffs-icon-file-code";case"change":return"diffs-icon-symbol-modified";case"new":return"diffs-icon-symbol-added";case"deleted":return"diffs-icon-symbol-deleted";case"rename-pure":case"rename-changed":return"diffs-icon-symbol-moved"}}function nk({fileOrDiff:t,mode:e,stickyHeader:n}){let r="type"in t?t:void 0,i={"data-diffs-header":e,"data-change-type":r?.type,"data-sticky":n?"":void 0};return zt({tagName:"div",children:[e==="custom"?zt({tagName:"slot",properties:{name:Ip}}):I$e({name:t.name,prevName:"prevName"in t?t.prevName:void 0,iconType:r?.type??"file"}),...e==="custom"?[]:[N$e(r)]],properties:i})}function I$e({name:t,prevName:e,iconType:n}){let r=[zt({tagName:"slot",properties:{name:Ap}}),a0({name:Gne(n),properties:{"data-change-icon":n}})];return e!=null&&(r.push(zt({tagName:"div",children:[zt({tagName:"bdi",children:[js(e)]})],properties:{"data-prev-name":""}})),r.push(a0({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),r.push(zt({tagName:"div",children:[zt({tagName:"bdi",children:[js(t)]})],properties:{"data-title":""}})),zt({tagName:"div",children:r,properties:{"data-header-content":""}})}function N$e(t){let e=[];if(t!=null){let n=0,r=0;for(let i of t.hunks)n+=i.additionLines,r+=i.deletionLines;(r>0||n===0)&&e.push(zt({tagName:"span",children:[js(`-${r}`)],properties:{"data-deletions-count":""}})),(n>0||r===0)&&e.push(zt({tagName:"span",children:[js(`+${n}`)],properties:{"data-additions-count":""}}))}return e.push(zt({tagName:"slot",properties:{name:$p}})),zt({tagName:"div",children:e,properties:{"data-metadata":""}})}function rk(t){return zt({tagName:"pre",properties:P$e(t)})}function P$e({diffIndicators:t,disableBackground:e,disableLineNumbers:n,overflow:r,split:i,totalLines:o,type:a,customProperties:s}){return{...s,"data-diff":a==="diff"?"":void 0,"data-file":a==="file"?"":void 0,"data-diff-type":a==="diff"?i?"split":"single":void 0,"data-overflow":r,"data-disable-line-numbers":n?"":void 0,"data-background":e?void 0:"","data-indicators":t==="bars"||t==="classic"?t:void 0,tabIndex:0,style:`--diffs-min-number-column-width-default:${`${o}`.length}ch;`}}var w0=new Map,j$e=0,Vb={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","\u{1F525}":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"\u6587\u8A00",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function br(t){if(w0.has(t))return w0.get(t)??"text";if(Vb[t]!=null)return Vb[t];let e=t.match(/\.([^/\\]+\.[^/\\]+)$/);if(e!=null){if(w0.has(e[1]))return w0.get(e[1])??"text";if(Vb[e[1]]!=null)return Vb[e[1]]??"text"}let n=t.match(/\.([^.]+)$/)?.[1]??"";return w0.has(n)?w0.get(n)??"text":Vb[n]??"text"}function ik(){return j$e}function ok(){return Object.fromEntries(w0)}function ak(t,{theme:e,preferredHighlighter:n="shiki-js"}){return{langs:[t??"text"],themes:Zp(e),preferredHighlighter:n}}function El(t){return`annotation-${"side"in t?`${t.side}-`:""}${t.lineNumber}`}function ud(t){return t.replace(/\n$|\r\n$/,"")}function Une(t,e,n){let r=typeof n.lineInfo=="function"?n.lineInfo(e):n.lineInfo[e-1];if(r==null){let i=`processLine: line ${e}, contains no state.lineInfo`;throw console.error(i,{node:t,line:e,state:n}),new Error(i)}return t.tagName="div",t.properties["data-line"]=r.lineNumber,t.properties["data-alt-line"]=r.altLineNumber,t.properties["data-line-type"]=r.type,t.properties["data-line-index"]=r.lineIndex,t.children.length===0&&t.children.push(js(` -`)),t}var sk=Symbol("no-token"),sP=Symbol("multiple-tokens");function lP(t){let e=O$e(t);if(e!=null)return e;let n=sk,r=[],i=[],o,a=()=>{if(i.length===0||o==null){i=[],o=void 0;return}if(i.length===1){let l=i[0];if(l?.type==="element"){D$e(l,o);for(let c of l.children)lk(c)}else lk(l);r.push(l),i=[],o=void 0;return}for(let l of i)lk(l);r.push(zt({tagName:"span",properties:{"data-char":o},children:i})),i=[],o=void 0},s=l=>{if(l!==sk){if(l===sP){n=sP;return}if(n===sk){n=l;return}n!==l&&(n=sP)}};for(let l of t.children){let c=l.type==="element"?lP(l):sk;if(s(c),typeof c!="number"){a(),r.push(l);continue}o!=null&&o!==c&&a(),o??=c,i.push(l)}return a(),t.children=r,n}function O$e(t){let e=t.properties["data-char"];if(typeof e=="number")return e}function lk(t){if(t.type==="element"){t.properties["data-char"]=void 0;for(let e of t.children)lk(e)}}function D$e(t,e){t.properties["data-char"]=e}function Vne(t={}){let{classPrefix:e="__shiki_",classSuffix:n="",classReplacer:r=s=>s}=t,i=new Map;function o(s){return Object.entries(s).map(([l,c])=>`${l}:${c}`).join(";")}function a(s){let l=typeof s=="string"?s:o(s),c=e+F$e(l)+n;return c=r(c),i.has(c)||i.set(c,typeof s=="string"?s:{...s}),c}return{name:"@shikijs/transformers:style-to-class",pre(s){if(!s.properties.style)return;let l=a(s.properties.style);delete s.properties.style,this.addClassToHast(s,l)},tokens(s){for(let l of s)for(let c of l){if(!c.htmlStyle)continue;let u=a(c.htmlStyle);c.htmlStyle={},c.htmlAttrs||={},c.htmlAttrs.class?c.htmlAttrs.class+=` ${u}`:c.htmlAttrs.class=u}},getClassRegistry(){return i},getCSS(){let s="";for(let[l,c]of i.entries())s+=`.${l}{${typeof c=="string"?c:o(c)}}`;return s},clearRegistry(){i.clear()}}}function F$e(t,e=0){let n=3735928559^e,r=1103547991^e;for(let i=0,o;i<t.length;i++)o=t.charCodeAt(i),n=Math.imul(n^o,2654435761),r=Math.imul(r^o,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function ck(t=!1,e=!1){let n={lineInfo:[]},r=[{line(i){return delete i.properties.class,i},pre(i){let o=gJ(i),a=[];if(o!=null){let s=1;for(let l of o.children)l.type==="element"&&(t&&lP(l),a.push(Une(l,s,n)),s++);o.children=a}return i},...t?{tokens(i){for(let o of i){let a=0;for(let s of o){let l=s;l.__lineChar??=a,a+=s.content.length}}},preprocess(i,o){o.mergeWhitespaces="never"},span(i,o,a,s,l){if(l?.offset!=null&&l.content!=null){let c=l.__lineChar;return c!=null&&(i.properties["data-char"]=c),i}return i}}:null}];return e&&r.push(B$e,Zne),{state:n,transformers:r,toClass:Zne}}var Zne=Vne({classPrefix:"hl-"}),B$e={name:"token-style-normalizer",tokens(t){for(let e of t)for(let n of e){if(n.htmlStyle!=null)continue;let r={};n.color!=null&&(r.color=n.color),n.bgColor!=null&&(r["background-color"]=n.bgColor),n.fontStyle!=null&&n.fontStyle!==0&&((n.fontStyle&1)!==0&&(r["font-style"]="italic"),(n.fontStyle&2)!==0&&(r["font-weight"]="bold"),(n.fontStyle&4)!==0&&(r["text-decoration"]="underline")),Object.keys(r).length>0&&(n.htmlStyle=r)}}};function ga(t){return`--${t==="token"?"diffs-token":"diffs"}-`}function uk({theme:t=nr,highlighter:e,prefix:n}){let r="";if(typeof t=="string"){let i=e.getTheme(t);r+=`color:${i.fg};`,r+=`background-color:${i.bg};`,r+=`${ga("global")}fg:${i.fg};`,r+=`${ga("global")}bg:${i.bg};`,r+=cP(i,n)}else{let i=e.getTheme(t.dark);r+=`${ga("global")}dark:${i.fg};`,r+=`${ga("global")}dark-bg:${i.bg};`,r+=cP(i,"dark"),i=e.getTheme(t.light),r+=`${ga("global")}light:${i.fg};`,r+=`${ga("global")}light-bg:${i.bg};`,r+=cP(i,"light")}return r}function cP(t,e){e=e!=null?`${e}-`:"";let n="",r=t.colors?.["gitDecoration.addedResourceForeground"]??t.colors?.["terminal.ansiGreen"];r!=null&&(n+=`${ga("global")}${e}addition-color:${r};`);let i=t.colors?.["gitDecoration.deletedResourceForeground"]??t.colors?.["terminal.ansiRed"];i!=null&&(n+=`${ga("global")}${e}deletion-color:${i};`);let o=t.colors?.["gitDecoration.modifiedResourceForeground"]??t.colors?.["terminal.ansiBlue"];return o!=null&&(n+=`${ga("global")}${e}modified-color:${o};`),n}function P7(t){let e=t.children[0];for(;e!=null;){if(e.type==="element"&&e.tagName==="code")return e.children;"children"in e?e=e.children[0]:e=null}throw console.error(t),new Error("getLineNodes: Unable to find children")}function dk({lines:t,startingLine:e=0,totalLines:n=1/0,callback:r}){let i=Math.min(e+n,t.length),o=(()=>{let a=t.at(-1);return a===""||a===` +\v\f\x85\u2028\u2029])`),e));else if(l==="posix")if(!i&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let d={graph:"!-~",print:" -~"}[u];c&&(d=`\0-${ho(d.codePointAt(0)-1)}${ho(d.codePointAt(2)+1)}-\u{10FFFF}`),n(ji(Up(`[${d}]`),e))}else n(ji(QN(Up(eAe.get(u)),c),e));else if(l==="property")tP.has(Gb(u))||(t.key="sc");else if(l==="space")n(Yf(g0("space",{negate:c}),e));else if(l==="word")n(ji(QN(Up(Gp),c),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:t,parent:e,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:a}){let{kind:s,flags:l}=t;if(s==="flags")if(!l.enable&&!l.disable)r();else{let c=El({flags:l});c.body[0].body=a(),i(ji(c,e),{traverse:!0})}else if(s==="keep"){let c=n.body[0],d=n.body.length===1&&Ov(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(e.parent!==d||d.body.length>1)throw new Error(kn`Uses "\K" in a way that's unsupported`);let p=Kf({behind:!0});p.body[0].body=o(),i(ji(p,e))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete t[n]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;let{enable:e,disable:n}=t.flags;e?.extended&&delete e.extended,n?.extended&&delete n.extended,e?.dotAll&&n?.dotAll&&delete e.dotAll,e?.ignoreCase&&n?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){let{kind:n}=t;n==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:n}){let{kind:r}=t;if(r==="fail")n(ji(Kf({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){let e=El();e.body[0].body.push(t.body),t.body=ji(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){let n=[],r=!1,i=!1;for(let o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{let a=Ate(o.body);a?(r=!0,Array.isArray(a)?n.push(...a):n.push(a)):i=!0}r&&!i&&n.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:n,strategy:r}){if(e==="strict"&&n&&r)throw new Error(kn`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!YN(n)&&(n=XN(n,e),t.ref=n)}},iAe={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=t;r||n.set(t,[...e.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:l}){let c=i.get(t);if(c&&s.has(t.number)){let d=Yf(wte(t.number),e);l.set(d,s.get(t.number)),n(d);return}s.set(t.number,t),a.set(t.number,[]),t.name&&T7(a,t.name,[]);let u=a.get(t.name??t.number);for(let d=0;d<u.length;d++){let p=u[d];if(c===p.node||c&&c===p.origin||t===p.origin){u.splice(d,1);break}}if(a.get(t.number).push({node:t,origin:c}),t.name&&a.get(t.name).push({node:t,origin:c}),t.name){let d=T7(o,t.name,new Map),p=!1;if(c)p=!0;else for(let m of d.values())if(!m.hasDuplicateNameToRemove){p=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:p})}},exit({node:t},{openRefs:e}){e.get(t.number)===t&&e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=Gv(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:n},r){let{isRecursive:i,ref:o}=t;if(i){let u=e;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===o||u.number===o)););r.reffedNodesByReferencer.set(t,u);return}let a=r.subroutineRefMap.get(o),s=o===0,l=s?wte(0):Ete(a,r.groupOriginByCopy,null),c=l;if(!s){let u=Tte(lAe(a,p=>p.type==="Group"&&!!p.flags)),d=u?Gv(r.globalFlags,u):r.globalFlags;aAe(d,r.currentFlags)||(c=El({flags:cAe(d)}),c.body[0].body.push(l))}n(ji(c,e),{traverse:!s})}},oAe={Backreference({node:t,parent:e,replaceWith:n},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}let o=r.reffedNodesByReferencer.get(t).filter(a=>sAe(a,t));if(!o.length)n(ji(Kf({negate:!0}),e));else if(o.length>1){let a=El({atomic:!0,body:o.reverse().map(s=>Hp({body:[Dv(s.number)]}))});n(ji(a,e))}else t.ref=o[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){let n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let r=0;r<n;r++){let i=BN();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Mte(t){b0(t,{"*"({node:e,parent:n}){e.parent=n}})}function aAe(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function sAe(t,e){let n=e;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===t)return!1;let r=Rte(n.parent);for(let i of r){if(i===n)break;if(i===t||$te(i,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Ete(t,e,n,r){let i=Array.isArray(t)?[]:{};for(let[o,a]of Object.entries(t))o==="parent"?i.parent=Array.isArray(n)?r:n:a&&typeof a=="object"?i[o]=Ete(a,e,i,n):(o==="type"&&a==="CapturingGroup"&&e.set(i,e.get(t)??t),i[o]=a);return i}function wte(t){let e=qN(t);return e.isRecursive=!0,e}function lAe(t,e){let n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function XN(t,e){if(e.has(t))return e.get(t);let n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function Tte(t){let e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:r})=>{e.forEach(i=>{r.enable?.[i]&&(delete n.disable[i],n.enable[i]=!0),r.disable?.[i]&&(n.disable[i]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function cAe({dotAll:t,ignoreCase:e}){let n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function Rte(t){if(!t)throw new Error("Node expected");let{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Ate(t){let e=t.find(n=>n.kind==="search_start"||pAe(n,{negate:!1})||!uAe(n));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){let n=[];for(let r of e.body){let i=Ate(r.body);if(!i)return null;Array.isArray(i)?n.push(...i):n.push(i)}return n}return null}function $te(t,e){let n=Rte(t)??[];for(let r of n)if(r===e||$te(r,e))return!0;return!1}function uAe({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function dAe(t){let e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function pAe(t,e){let n={negate:null,...e};return t.type==="LookaroundAssertion"&&(n.negate===null||t.negate===n.negate)&&t.body.length===1&&Ov(t.body[0],{type:"Assertion",kind:"search_start"})}function YN(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function Up(t,e){let r=Fv(t,{...e,unicodePropertyMap:tP}).body;return r.length>1||r[0].body.length>1?El({body:r}):r[0].body[0]}function QN(t,e){return t.negate=e,t}function Yf(t,e){return t.parent=e,t}function ji(t,e){return Mte(t),t.parent=e,t}function mAe(t,e){let n=_te(e),r=JN(n.target,"ES2024"),i=JN(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!i){let m=[t.flags.ignoreCase];b0(t,fAe,{getCurrentModI:()=>m.at(-1),popModI(){m.pop()},pushModI(f){m.push(f)},setHasCasedChar(){m.at(-1)?a=!0:s=!0}})}let l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||a)&&!s)},c=t,u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&a&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(m){return u.lastNode=c,c=m,ZRe(hAe[m.type],`Unexpected node type "${m.type}"`)(m,u,d)}let p={pattern:t.body.map(d).join("|"),flags:d(t.flags),options:{...t.options}};return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],u.captureMap.forEach((m,f)=>{m.hidden&&p._hiddenCaptures.push(f),m.transferTo&&T7(p._captureTransfers,m.transferTo,[]).push(f)}),p}var fAe={"*":{enter({node:t},e){if(kte(t)){let n=e.getCurrentModI();e.pushModI(t.flags?Gv({ignoreCase:n},t.flags).ignoreCase:n)}},exit({node:t},e){kte(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){nP(ho(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),Ite(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&Lte.has(t.value)&&e.setHasCasedChar()}},hAe={Alternative({body:t},e,n){return t.map(n).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?kn`\B`:kn`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,n){let{body:r,name:i,number:o}=t,a={ignoreCase:e.currentFlags.ignoreCase},s=e.originMap.get(t);return s&&(a.hidden=!0,o>s.number&&(a.transferTo=s.number)),e.captureMap.set(o,a),`(${i?`?<${i}>`:""}${r.map(n).join("|")})`},Character({value:t},e){let n=ho(t),r=Vb(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(r!==n)return r;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&nP(n)){let i=Ste(n);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return n},CharacterClass(t,e,n){let{kind:r,negate:i,parent:o}=t,{body:a}=t;if(r==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");bu.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&a.some(Cte)&&(a=[Hb(45),...a.filter(c=>!Cte(c))]);let s=()=>`[${i?"^":""}${a.map(n).join(r==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||bu.bugNestedClassIgnoresNegation)&&!i){let u=a.filter(d=>d.type==="CharacterClass"&&d.kind==="union"&&d.negate);if(u.length){let d=El(),p=d.body[0];return d.parent=o,p.parent=d,a=a.filter(m=>!u.includes(m)),t.body=a,a.length?(t.parent=p,p.body.push(t)):d.body.pop(),u.forEach(m=>{let f=Hp({body:[m]});m.parent=f,f.parent=d,d.body.push(f)}),n(d)}}e.inCharClass=!0;let c=s();return e.inCharClass=!1,c}let l=a[0];if(r==="union"&&!i&&l&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(bu.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(n).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(t,e){let n=t.min.value,r=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=Vb(n,i),a=Vb(r,i),s=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){let l=Ite(t);wAe(l).forEach(u=>{s.add(Array.isArray(u)?`${Vb(u[0],i)}-${Vb(u[1],i)}`:Vb(u,i))})}return`${o}-${a}${[...s].join("")}`},CharacterSet({kind:t,negate:e,value:n,key:r},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":kn`[^\n]`;if(t==="digit")return e?kn`\D`:kn`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&Lte.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?kn`\P`:kn`\p`}{${r?`${r}=`:""}${n}}`}if(t==="word")return e?kn`\W`:kn`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:n,parent:r},i,o){let a=i.currentFlags;n&&(i.currentFlags=Gv(a,n));let s=e.map(o).join("|"),l=!i.verbose&&e.length===1&&r.type!=="Quantifier"&&!t&&(!i.useFlagMods||!n)?s:`(?${vAe(t,n,i.useFlagMods)}${s})`;return i.currentFlags=a,l},LookaroundAssertion({body:t,kind:e,negate:n},r,i){return`(?${`${e==="lookahead"?"":"<"}${n?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,n){return n(t.body)+kAe(t)},Subroutine({isRecursive:t,ref:e},n){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return e===0?`(?R=${r})`:kn`\g<${e}&R=${r}>`}},gAe=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),bAe=new Set(["-","\\","]","^","["]),yAe=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),vte=new Map([[9,kn`\t`],[10,kn`\n`],[11,kn`\v`],[12,kn`\f`],[13,kn`\r`],[8232,kn`\u2028`],[8233,kn`\u2029`],[65279,kn`\uFEFF`]]),xAe=/^\p{Cased}$/u;function nP(t){return xAe.test(t)}function Ite(t,e){let n=!!e?.firstOnly,r=t.min.value,i=t.max.value,o=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return o;for(let a=r;a<=i;a++){let s=ho(a);if(!nP(s))continue;let l=Ste(s).filter(c=>{let u=c.codePointAt(0);return u<r||u>i});if(l.length&&(o.push(...l),n))break}return o}function Vb(t,{escDigit:e,inCharClass:n,useFlagV:r}){if(vte.has(t))return vte.get(t);if(t<32||t>126&&t<160||t>262143||e&&CAe(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;let i=n?r?yAe:bAe:gAe,o=ho(t);return(i.has(o)?"\\":"")+o}function wAe(t){let e=t.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),n=[],r=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?r??=e[i]:r===null?n.push(e[i]):(n.push([r,e[i]]),r=null);return n}function vAe(t,e,n){if(t)return">";let r="";if(e&&n){let{enable:i,disable:o}=e;r=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function kAe({kind:t,max:e,min:n}){let r;return!n&&e===1?r="?":!n&&e===1/0?r="*":n===1&&e===1/0?r="+":n===e?r=`{${n}}`:r=`{${n},${e===1/0?"":e}}`,r+{greedy:"",lazy:"?",possessive:"+"}[t]}function kte({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function CAe(t){return t>47&&t<58}function Cte({type:t,value:e}){return t==="Character"&&e===45}var _Ae=class eP extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(e,n,r){let i=!!r?.lazyCompile;if(e instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");let o=e;super(o,n),this.#n=o.source,o instanceof eP&&(this.#e=o.#e,this.#r=o.#r,this.#i=o.#i,this.rawOptions=o.rawOptions)}else{let o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?"":e,n),this.#n=e,this.#e=LAe(o.hiddenCaptures,o.transfers),this.#i=o.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(e){if(!this.#t){let{lazyCompile:i,...o}=this.rawOptions;this.#t=new eP(this.#n,this.flags,o)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i==="clip_search"&&n&&r){this.lastIndex=0;let i=this.#o(e.slice(r));return i&&(SAe(i,r,e,this.hasIndices),this.lastIndex+=r),i}return this.#o(e)}#o(e){this.#t.lastIndex=this.lastIndex;let n=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;let r=[...n];n.length=1;let i;this.hasIndices&&(i=[...n.indices],n.indices.length=1);let o=[0];for(let a=1;a<r.length;a++){let{hidden:s,transferTo:l}=this.#e.get(a)??{};if(s?o.push(null):(o.push(n.length),n.push(r[a]),this.hasIndices&&n.indices.push(i[a])),l&&r[a]!==void 0){let c=o[l];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(n[c]=r[a],this.hasIndices&&(n.indices[c]=i[a]),n.groups){this.#r||(this.#r=MAe(this.source));let u=this.#r.get(l);u&&(n.groups[u]=r[a],this.hasIndices&&(n.indices.groups[u]=i[a]))}}}return n}};function SAe(t,e,n,r){if(t.index+=e,t.input=n,r){let i=t.indices;for(let a=0;a<i.length;a++){let s=i[a];s&&(i[a]=[s[0]+e,s[1]+e])}let o=i.groups;o&&Object.keys(o).forEach(a=>{let s=o[a];s&&(o[a]=[s[0]+e,s[1]+e])})}}function LAe(t,e){let n=new Map;for(let r of t)n.set(r,{hidden:!0});for(let[r,i]of e)for(let o of i)T7(n,o,{}).transferTo=r;return n}function MAe(t){let e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,o;for(;o=e.exec(t);){let{0:a,groups:{capture:s,name:l}}=o;a==="["?r++:r?a==="]"&&r--:s&&(i++,l&&n.set(i,l))}return n}function Nte(t,e){let n=EAe(t,e);return n.options?new _Ae(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function EAe(t,e){let n=_te(e),r=Fv(t,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:tP}),i=nAe(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=mAe(i,n),a=yte(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=VN(a.pattern),l=UN(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let u=l.hiddenCaptures.sort((f,h)=>f-h),d=Array.from(l.captureTransfers),p=i._strategy,m=c.pattern.length>=n.lazyCompileLength;(u.length||d.length||p||m)&&(c.options={...u.length&&{hiddenCaptures:u},...d.length&&{transfers:d},...p&&{strategy:p},...m&&{lazyCompile:m}})}return c}var Vv=class{constructor(e,n={}){this.patterns=e,this.options=n;let{forgiving:r=!1,cache:i,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(a=>{if(typeof a!="string")return a;let s=i?.get(a);if(s){if(s instanceof RegExp)return s;if(r)return null;throw s}try{let l=o(a);return i?.set(a,l),l}catch(l){if(i?.set(a,l),r)return null;throw l}})}regexps;findNextMatchSync(e,n,r){let i=typeof e=="string"?e:e.content,o=[];function a(s,l,c=0){return{index:s,captureIndices:l.indices.map(u=>u==null?{start:4294967295,end:4294967295,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let s=0;s<this.regexps.length;s++){let l=this.regexps[s];if(l)try{l.lastIndex=n;let c=l.exec(i);if(!c)continue;if(c.index===n)return a(s,c,0);o.push([s,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){let s=Math.min(...o.map(l=>l[1].index));for(let[l,c,u]of o)if(c.index===s)return a(l,c,u)}return null}};function Pte(t,e){return Nte(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function R7(t={}){let e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||=n=>Pte(n,{target:e.target}),{createScanner(n){return new Vv(n,e)},createString(n){return{content:n}}}}var rP={typescript:["ts","mts","cts"],tsx:[],javascript:["js","mjs","cjs"],jsx:[],json:[],jsonc:[],markdown:["md"],css:[],scss:[],html:[],shellscript:["bash","sh","shell","zsh"],python:["py"],rust:[],go:[],swift:[],yaml:["yml"],toml:[],sql:[],diff:[],c:[],java:[],kotlin:[],zig:[],lua:[],make:["makefile"],dockerfile:[]},TAe=new Set(Object.entries(rP).flatMap(([t,e])=>[t,...e])),x0=t=>TAe.has(t);function Ine(){throw new Error("The agent pane highlights with the JavaScript regex engine only")}var _$e={typescript:()=>Promise.resolve().then(()=>(Ote(),jte)),tsx:()=>Promise.resolve().then(()=>(Fte(),Dte)),javascript:()=>Promise.resolve().then(()=>(oP(),Bte)),jsx:()=>Promise.resolve().then(()=>(qte(),zte)),json:()=>Promise.resolve().then(()=>(Gte(),Hte)),jsonc:()=>Promise.resolve().then(()=>(Vte(),Ute)),markdown:()=>Promise.resolve().then(()=>(Wte(),Zte)),css:()=>Promise.resolve().then(()=>(Zv(),Kte)),scss:()=>Promise.resolve().then(()=>(Yte(),Xte)),html:()=>Promise.resolve().then(()=>(Jte(),Qte)),shellscript:()=>Promise.resolve().then(()=>(tne(),ene)),python:()=>Promise.resolve().then(()=>(rne(),nne)),rust:()=>Promise.resolve().then(()=>(one(),ine)),go:()=>Promise.resolve().then(()=>(sne(),ane)),swift:()=>Promise.resolve().then(()=>(cne(),lne)),yaml:()=>Promise.resolve().then(()=>(dne(),une)),toml:()=>Promise.resolve().then(()=>(mne(),pne)),sql:()=>Promise.resolve().then(()=>(hne(),fne)),diff:()=>Promise.resolve().then(()=>(bne(),gne)),c:()=>Promise.resolve().then(()=>(sP(),yne)),java:()=>Promise.resolve().then(()=>(wne(),xne)),kotlin:()=>Promise.resolve().then(()=>(kne(),vne)),zig:()=>Promise.resolve().then(()=>(_ne(),Cne)),lua:()=>Promise.resolve().then(()=>(Lne(),Sne)),make:()=>Promise.resolve().then(()=>(Ene(),Mne)),dockerfile:()=>Promise.resolve().then(()=>($ne(),Ane))},Wv=Object.fromEntries(Object.entries(rP).flatMap(([t,e])=>[t,...e].map(n=>[n,_$e[t]]))),lP={},cP=zee({langs:Wv,themes:lP,engine:()=>R7()}),{codeToHtml:S$e}=qee(cP);async function Kv(t){if(wv())throw new Error(`resolveLanguage("${t}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let e=xv.get(t);if(e!=null)return e;try{let n=QJ.get(t);if(n==null&&Object.prototype.hasOwnProperty.call(Wv,t)&&(n=Wv[t]),n==null)throw new Error(`resolveLanguage: "${t}" not found in bundled or custom languages`);let r=n().then(({default:i})=>{let o={name:t,data:i};return Sc.has(t)||Sc.set(t,o),o});return xv.set(t,r),await r}finally{xv.delete(t)}}function Xv(t){return Sc.get(t)??Kv(t)}var Bs=new Map,Yv=new Map,$7=new Map,I7=new Set;function N7(t,e){t=Array.isArray(t)?t:[t];for(let n of t){let r;if(typeof n=="string"){if(r=Bs.get(n),r==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else r=n,n=n.name,Bs.has(n)||Bs.set(n,r);I7.has(n)||(I7.add(n),e.loadThemeSync(r))}}async function Qv(t){if(wv())throw new Error(`resolveTheme("${t}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let e=Yv.get(t);if(e!=null)return e;try{let n=$7.get(t)??lP[t];if(n==null)throw new Error(`resolveTheme: No valid loader for ${t}`);let r=n().then(o=>L$e(t,"default"in o?o.default:o));Yv.set(t,r);let i=await r;if(i.name!==t)throw new Error(`resolvedTheme: themeName: ${t} does not match theme.name: ${i.name}`);return Bs.set(i.name,i),i}finally{Yv.delete(t)}}function L$e(t,e){let n=Bs.get(t);return n??(e=C7(e),Bs.set(t,e),e)}function Jv(t){return Bs.get(t)??Qv(t)}function Vp(t,e){if($7.has(t)){console.error("SharedHighlight.registerCustomTheme: theme name already registered",t);return}$7.set(t,e)}var ld;async function w0({themes:t,langs:e,preferredHighlighter:n="shiki-js"}){ld??=cP({themes:[],langs:["text"],engine:n==="shiki-wasm"?Ine(Promise.resolve().then(()=>(Pne(),Nne))):R7()});let r=$$e(ld)?await ld:ld;ld=r;let i=[];for(let a of e){if(a==="text"||a==="ansi")continue;let s=Xv(a);"then"in s?i.push(s):bN(s,r)}let o=[];for(let a of t){let s=Jv(a);"then"in s?o.push(s):N7(s,ld)}return(i.length>0||o.length>0)&&await Promise.all([Promise.all(i).then(a=>{bN(a,r)}),Promise.all(o).then(a=>{N7(a,r)})]),r}function ek(){if(ld!=null&&!("then"in ld))return ld}function $$e(t=ld){return t!=null&&"then"in t}Vp("pierre-dark",async()=>{let{default:t}=await Promise.resolve().then(()=>(One(),jne));return{...t,name:"pierre-dark"}});Vp("pierre-dark-soft",async()=>{let{default:t}=await Promise.resolve().then(()=>(Fne(),Dne));return{...t,name:"pierre-dark-soft"}});Vp("pierre-light",async()=>{let{default:t}=await Promise.resolve().then(()=>(zne(),Bne));return{...t,name:"pierre-light"}});Vp("pierre-light-soft",async()=>{let{default:t}=await Promise.resolve().then(()=>(Hne(),qne));return{...t,name:"pierre-light-soft"}});function Zp(t=nr){let e=[];return typeof t=="string"?e.push(t):(e.push(t.dark),e.push(t.light)),e}function v0(t){for(let e of Zp(t))if(!I7.has(e))return!1;return!0}function P7(t){for(let e of t)if(!Bs.has(e))return!1;return!0}function cd(t,e){return Cc(t.theme,e.theme)&&t.useTokenTransformer===e.useTokenTransformer&&t.tokenizeMaxLineLength===e.tokenizeMaxLineLength}function Ec(t,e){return t?.cacheKey===e?.cacheKey&&t?.contents===e?.contents&&t?.name===e?.name&&t?.lang===e?.lang}function Qf(t,e){return t==null||e==null?t===e:t.startingLine===e.startingLine&&t.totalLines===e.totalLines&&t.bufferBefore===e.bufferBefore&&t.bufferAfter===e.bufferAfter}function tk(t){return qt({tagName:"div",children:[qt({tagName:"div",children:t.annotations?.map(e=>qt({tagName:"slot",properties:{name:e}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${t.hunkIndex},${t.lineIndex}`}})}function Gne(t){switch(t){case"file":return"diffs-icon-file-code";case"change":return"diffs-icon-symbol-modified";case"new":return"diffs-icon-symbol-added";case"deleted":return"diffs-icon-symbol-deleted";case"rename-pure":case"rename-changed":return"diffs-icon-symbol-moved"}}function nk({fileOrDiff:t,mode:e,stickyHeader:n}){let r="type"in t?t:void 0,i={"data-diffs-header":e,"data-change-type":r?.type,"data-sticky":n?"":void 0};return qt({tagName:"div",children:[e==="custom"?qt({tagName:"slot",properties:{name:Ip}}):I$e({name:t.name,prevName:"prevName"in t?t.prevName:void 0,iconType:r?.type??"file"}),...e==="custom"?[]:[N$e(r)]],properties:i})}function I$e({name:t,prevName:e,iconType:n}){let r=[qt({tagName:"slot",properties:{name:Ap}}),l0({name:Gne(n),properties:{"data-change-icon":n}})];return e!=null&&(r.push(qt({tagName:"div",children:[qt({tagName:"bdi",children:[js(e)]})],properties:{"data-prev-name":""}})),r.push(l0({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),r.push(qt({tagName:"div",children:[qt({tagName:"bdi",children:[js(t)]})],properties:{"data-title":""}})),qt({tagName:"div",children:r,properties:{"data-header-content":""}})}function N$e(t){let e=[];if(t!=null){let n=0,r=0;for(let i of t.hunks)n+=i.additionLines,r+=i.deletionLines;(r>0||n===0)&&e.push(qt({tagName:"span",children:[js(`-${r}`)],properties:{"data-deletions-count":""}})),(n>0||r===0)&&e.push(qt({tagName:"span",children:[js(`+${n}`)],properties:{"data-additions-count":""}}))}return e.push(qt({tagName:"slot",properties:{name:$p}})),qt({tagName:"div",children:e,properties:{"data-metadata":""}})}function rk(t){return qt({tagName:"pre",properties:P$e(t)})}function P$e({diffIndicators:t,disableBackground:e,disableLineNumbers:n,overflow:r,split:i,totalLines:o,type:a,customProperties:s}){return{...s,"data-diff":a==="diff"?"":void 0,"data-file":a==="file"?"":void 0,"data-diff-type":a==="diff"?i?"split":"single":void 0,"data-overflow":r,"data-disable-line-numbers":n?"":void 0,"data-background":e?void 0:"","data-indicators":t==="bars"||t==="classic"?t:void 0,tabIndex:0,style:`--diffs-min-number-column-width-default:${`${o}`.length}ch;`}}var k0=new Map,j$e=0,Zb={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","\u{1F525}":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"\u6587\u8A00",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function br(t){if(k0.has(t))return k0.get(t)??"text";if(Zb[t]!=null)return Zb[t];let e=t.match(/\.([^/\\]+\.[^/\\]+)$/);if(e!=null){if(k0.has(e[1]))return k0.get(e[1])??"text";if(Zb[e[1]]!=null)return Zb[e[1]]??"text"}let n=t.match(/\.([^.]+)$/)?.[1]??"";return k0.has(n)?k0.get(n)??"text":Zb[n]??"text"}function ik(){return j$e}function ok(){return Object.fromEntries(k0)}function ak(t,{theme:e,preferredHighlighter:n="shiki-js"}){return{langs:[t??"text"],themes:Zp(e),preferredHighlighter:n}}function Tl(t){return`annotation-${"side"in t?`${t.side}-`:""}${t.lineNumber}`}function ud(t){return t.replace(/\n$|\r\n$/,"")}function Une(t,e,n){let r=typeof n.lineInfo=="function"?n.lineInfo(e):n.lineInfo[e-1];if(r==null){let i=`processLine: line ${e}, contains no state.lineInfo`;throw console.error(i,{node:t,line:e,state:n}),new Error(i)}return t.tagName="div",t.properties["data-line"]=r.lineNumber,t.properties["data-alt-line"]=r.altLineNumber,t.properties["data-line-type"]=r.type,t.properties["data-line-index"]=r.lineIndex,t.children.length===0&&t.children.push(js(` +`)),t}var sk=Symbol("no-token"),uP=Symbol("multiple-tokens");function dP(t){let e=O$e(t);if(e!=null)return e;let n=sk,r=[],i=[],o,a=()=>{if(i.length===0||o==null){i=[],o=void 0;return}if(i.length===1){let l=i[0];if(l?.type==="element"){D$e(l,o);for(let c of l.children)lk(c)}else lk(l);r.push(l),i=[],o=void 0;return}for(let l of i)lk(l);r.push(qt({tagName:"span",properties:{"data-char":o},children:i})),i=[],o=void 0},s=l=>{if(l!==sk){if(l===uP){n=uP;return}if(n===sk){n=l;return}n!==l&&(n=uP)}};for(let l of t.children){let c=l.type==="element"?dP(l):sk;if(s(c),typeof c!="number"){a(),r.push(l);continue}o!=null&&o!==c&&a(),o??=c,i.push(l)}return a(),t.children=r,n}function O$e(t){let e=t.properties["data-char"];if(typeof e=="number")return e}function lk(t){if(t.type==="element"){t.properties["data-char"]=void 0;for(let e of t.children)lk(e)}}function D$e(t,e){t.properties["data-char"]=e}function Vne(t={}){let{classPrefix:e="__shiki_",classSuffix:n="",classReplacer:r=s=>s}=t,i=new Map;function o(s){return Object.entries(s).map(([l,c])=>`${l}:${c}`).join(";")}function a(s){let l=typeof s=="string"?s:o(s),c=e+F$e(l)+n;return c=r(c),i.has(c)||i.set(c,typeof s=="string"?s:{...s}),c}return{name:"@shikijs/transformers:style-to-class",pre(s){if(!s.properties.style)return;let l=a(s.properties.style);delete s.properties.style,this.addClassToHast(s,l)},tokens(s){for(let l of s)for(let c of l){if(!c.htmlStyle)continue;let u=a(c.htmlStyle);c.htmlStyle={},c.htmlAttrs||={},c.htmlAttrs.class?c.htmlAttrs.class+=` ${u}`:c.htmlAttrs.class=u}},getClassRegistry(){return i},getCSS(){let s="";for(let[l,c]of i.entries())s+=`.${l}{${typeof c=="string"?c:o(c)}}`;return s},clearRegistry(){i.clear()}}}function F$e(t,e=0){let n=3735928559^e,r=1103547991^e;for(let i=0,o;i<t.length;i++)o=t.charCodeAt(i),n=Math.imul(n^o,2654435761),r=Math.imul(r^o,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function ck(t=!1,e=!1){let n={lineInfo:[]},r=[{line(i){return delete i.properties.class,i},pre(i){let o=gJ(i),a=[];if(o!=null){let s=1;for(let l of o.children)l.type==="element"&&(t&&dP(l),a.push(Une(l,s,n)),s++);o.children=a}return i},...t?{tokens(i){for(let o of i){let a=0;for(let s of o){let l=s;l.__lineChar??=a,a+=s.content.length}}},preprocess(i,o){o.mergeWhitespaces="never"},span(i,o,a,s,l){if(l?.offset!=null&&l.content!=null){let c=l.__lineChar;return c!=null&&(i.properties["data-char"]=c),i}return i}}:null}];return e&&r.push(B$e,Zne),{state:n,transformers:r,toClass:Zne}}var Zne=Vne({classPrefix:"hl-"}),B$e={name:"token-style-normalizer",tokens(t){for(let e of t)for(let n of e){if(n.htmlStyle!=null)continue;let r={};n.color!=null&&(r.color=n.color),n.bgColor!=null&&(r["background-color"]=n.bgColor),n.fontStyle!=null&&n.fontStyle!==0&&((n.fontStyle&1)!==0&&(r["font-style"]="italic"),(n.fontStyle&2)!==0&&(r["font-weight"]="bold"),(n.fontStyle&4)!==0&&(r["text-decoration"]="underline")),Object.keys(r).length>0&&(n.htmlStyle=r)}}};function ga(t){return`--${t==="token"?"diffs-token":"diffs"}-`}function uk({theme:t=nr,highlighter:e,prefix:n}){let r="";if(typeof t=="string"){let i=e.getTheme(t);r+=`color:${i.fg};`,r+=`background-color:${i.bg};`,r+=`${ga("global")}fg:${i.fg};`,r+=`${ga("global")}bg:${i.bg};`,r+=pP(i,n)}else{let i=e.getTheme(t.dark);r+=`${ga("global")}dark:${i.fg};`,r+=`${ga("global")}dark-bg:${i.bg};`,r+=pP(i,"dark"),i=e.getTheme(t.light),r+=`${ga("global")}light:${i.fg};`,r+=`${ga("global")}light-bg:${i.bg};`,r+=pP(i,"light")}return r}function pP(t,e){e=e!=null?`${e}-`:"";let n="",r=t.colors?.["gitDecoration.addedResourceForeground"]??t.colors?.["terminal.ansiGreen"];r!=null&&(n+=`${ga("global")}${e}addition-color:${r};`);let i=t.colors?.["gitDecoration.deletedResourceForeground"]??t.colors?.["terminal.ansiRed"];i!=null&&(n+=`${ga("global")}${e}deletion-color:${i};`);let o=t.colors?.["gitDecoration.modifiedResourceForeground"]??t.colors?.["terminal.ansiBlue"];return o!=null&&(n+=`${ga("global")}${e}modified-color:${o};`),n}function j7(t){let e=t.children[0];for(;e!=null;){if(e.type==="element"&&e.tagName==="code")return e.children;"children"in e?e=e.children[0]:e=null}throw console.error(t),new Error("getLineNodes: Unable to find children")}function dk({lines:t,startingLine:e=0,totalLines:n=1/0,callback:r}){let i=Math.min(e+n,t.length),o=(()=>{let a=t.at(-1);return a===""||a===` `||a===`\r -`||a==="\r"?Math.max(0,t.length-2):t.length-1})();for(let a=e;a<i;a++){let s=a===o;if(r({lineIndex:a,lineNumber:a+1,content:t[a],isLastLine:s})===!0||s)break}}function j7(t){return t!==""?t.split(KI):[]}var z$e={forcePlainText:!1};function pk(t,e,{theme:n=nr,tokenizeMaxLineLength:r,useTokenTransformer:i},{forcePlainText:o,startingLine:a,totalLines:s,lines:l}=z$e){o?(a??=0,s??=1/0):(a=0,s=1/0);let c=a>0||s<1/0,{state:u,transformers:d}=ck(i),p=o?"text":t.lang??br(t.name),m=typeof n=="string"?e.getTheme(n).type:void 0,f=uk({theme:n,highlighter:e});u.lineInfo=y=>({type:"context",lineIndex:y-1+a,lineNumber:y+a});let h=typeof n=="string"?{lang:p,theme:n,transformers:d,defaultColor:!1,cssVariablePrefix:ga("token"),tokenizeMaxLineLength:r}:{lang:p,themes:n,transformers:d,defaultColor:!1,cssVariablePrefix:ga("token"),tokenizeMaxLineLength:r},x=P7(e.codeToHast(c?q$e(l??j7(t.contents),a,s):ud(t.contents),h)),g=c?new Array(a):x;return c&&g.push(...x),{code:g,themeStyles:f,baseThemeType:m}}function q$e(t,e,n){let r="";return dk({lines:t,startingLine:e,totalLines:n,callback({content:i}){r+=i}}),r}function mk(t,e){return zt({tagName:"div",children:t,properties:{"data-content":"",style:`grid-row: span ${e}`}})}function Qf(t){return(t.lang??br(t.name))==="text"}function fk(t){return t.useTokenTransformer===!0||t.onTokenClick!=null||t.onTokenEnter!=null||t.onTokenLeave!=null}var H$e=-1,Wne=class{__id=`file-renderer:${++H$e}`;highlighter;renderCache;computedLang="text";lineAnnotations={};lineCache;constructor(t={theme:nr},e,n){this.options=t,this.onRenderUpdate=e,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=x0(t.theme??nr)?ek():void 0)}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}setLineAnnotations(t){this.lineAnnotations={};for(let e of t){let n=this.lineAnnotations[e.lineNumber]??[];this.lineAnnotations[e.lineNumber]=n,n.push(e)}}cleanUp(){this.recycle(),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.clearRenderCache(),this.highlighter=void 0,this.workerManager?.cleanUpTasks(this),this.lineCache=void 0}clearRenderCache(){this.renderCache=void 0}hydrate(t){let{options:e}=this.getRenderOptions(t),n=uP(this.getOrCreateLineCache(t).length,this.getTokenizeMaxLength()),r=this.workerManager?.getFileResultCache(t);r!=null&&!cd(e,r.options)&&(r=void 0),this.renderCache??={file:t,options:e,highlighted:!n&&!Qf(t),result:n?void 0:r?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!n&&this.workerManager.highlightFileAST(this,t):this.highlighter==null&&(this.computedLang=t.lang??br(t.name),this.initializeHighlighter())}getRenderOptions(t){let e=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getFileRenderOptions();let{theme:r=nr,tokenizeMaxLineLength:i=1e3}=this.options;return{theme:r,useTokenTransformer:fk(this.options),tokenizeMaxLineLength:i}})(),{renderCache:n}=this;return n?.result==null?{options:e,forceHighlight:!0}:!Ec(t,n.file)||!cd(e,n.options)?{options:e,forceHighlight:!0}:{options:e,forceHighlight:!1}}getOrCreateLineCache(t){if(t.cacheKey==null)return this.lineCache=void 0,j7(t.contents);let{lineCache:e}=this;return(e==null||e.cacheKey!==t.cacheKey)&&(e={cacheKey:t.cacheKey,lines:j7(t.contents)}),this.lineCache=e,e.lines}renderFile(t=this.renderCache?.file,e=o0){if(t==null)return;let{options:n,forceHighlight:r}=this.getRenderOptions(t),i=this.getMatchingWorkerResultCache(t,n);i!=null&&!this.hasHighlightedRenderCache(t,n)&&(this.renderCache={file:t,highlighted:!0,renderRange:void 0,...i},r=!1),this.renderCache??={file:t,highlighted:!1,options:n,result:void 0,renderRange:void 0};let o=this.getOrCreateLineCache(t),a=t.contents.length>0,s=!a||Qf(t)||uP(o.length,this.getTokenizeMaxLength()),l=!Ec(t,this.renderCache.file),c=!Yf(this.renderCache.renderRange,e);if(this.workerManager?.isWorkingPool()===!0)(s||this.renderCache.result==null||!this.renderCache.highlighted&&(l||c))&&(this.renderCache.file=t,this.renderCache.options=n,this.renderCache.highlighted=!1,(this.renderCache.result==null||l||c||r)&&(this.renderCache.result=this.workerManager.getPlainFileAST(t,e.startingLine,e.totalLines,o)),this.renderCache.renderRange=e),!s&&a&&(!this.renderCache.highlighted||r)&&this.workerManager.highlightFileAST(this,t);else{this.computedLang=t.lang??br(t.name);let u=this.highlighter!=null&&x0(n.theme),d=this.highlighter!=null&&Fb(this.computedLang),p=!s&&d;if(this.highlighter!=null&&u&&(r||s||!this.renderCache.highlighted&&p||this.renderCache.result==null)){let{result:m,options:f}=this.renderFileWithHighlighter(t,this.highlighter,s||!d);this.renderCache={file:t,options:f,highlighted:p,result:m,renderRange:void 0}}(!u||!s&&!d)&&this.asyncHighlight(t).then(({result:m,options:f})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(t,m,f,!s)})}return this.renderCache.result!=null?this.processFileResult(this.renderCache.file,e,this.renderCache.result):void 0}async asyncRender(t,e=o0){let{result:n}=await this.asyncHighlight(t);return this.processFileResult(t,e,n)}async asyncHighlight(t){let e=uP(this.getOrCreateLineCache(t).length,this.getTokenizeMaxLength());this.computedLang=e?"text":t.lang??br(t.name);let n=this.highlighter!=null&&N7(Zp(this.options.theme)),r=e||this.highlighter!=null&&Fb(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderFileWithHighlighter(t,this.highlighter,e)}renderFileWithHighlighter(t,e,n=!1){let{options:r}=this.getRenderOptions(t);return{result:pk(t,e,r,{forcePlainText:n}),options:r}}processFileResult(t,e,{code:n,themeStyles:r,baseThemeType:i}){let{disableFileHeader:o=!1}=this.options,a=[],s=Gf(),l=this.getOrCreateLineCache(t),c=0;return dk({lines:l,startingLine:e.startingLine,totalLines:e.totalLines,callback:({lineIndex:u,lineNumber:d})=>{let p=n[u];if(p==null){let m="FileRenderer.processFileResult: Line doesnt exist";throw console.error(m,{name:t.name,lineIndex:u,lineNumber:d,lines:l}),new Error(m)}if(p!=null){s.children.push(rv("context",d,`${u}`)),a.push(p),c++;let m=this.lineAnnotations[d];m!=null&&(s.children.push(Os("context","annotation",1)),a.push(tk({type:"annotation",hunkIndex:0,lineIndex:d,annotations:m.map(f=>El(f))})),c++)}}}),s.properties.style=`grid-row: span ${c}`,{gutterAST:s.children??[],contentAST:a,preAST:this.createPreElement(l.length),headerAST:o?void 0:this.renderHeader(t),totalLines:l.length,rowCount:c,themeStyles:r,baseThemeType:i,bufferBefore:e.bufferBefore,bufferAfter:e.bufferAfter,css:""}}renderHeader(t){let{headerRenderMode:e="default",stickyHeader:n=!1}=this.options;return nk({fileOrDiff:t,mode:e,stickyHeader:n})}renderFullHTML(t){return Vo(this.renderFullAST(t))}renderFullAST(t,e=[]){return e.push(zt({tagName:"code",children:this.renderCodeAST(t),properties:{"data-code":""}})),{...t.preAST,children:e}}renderCodeAST(t){let e=Gf();return e.children=t.gutterAST,e.properties.style=`grid-row: span ${t.rowCount}`,[e,mk(t.contentAST,t.rowCount)]}renderPartialHTML(t,e=!1){return e?Vo(zt({tagName:"code",children:t,properties:{"data-code":""}})):Vo(t)}async initializeHighlighter(){return this.highlighter=await y0(ak(this.computedLang,this.options)),this.highlighter}onHighlightSuccess(t,e,n,r=!0){if(this.renderCache==null)return;let i=!Ec(t,this.renderCache.file)||!this.renderCache.highlighted||!cd(n,this.renderCache.options);this.renderCache={file:t,options:n,highlighted:r,result:e,renderRange:void 0},i&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(t,e){let n=this.workerManager?.getFileResultCache(t);if(!(n==null||!cd(e,n.options)))return n}hasHighlightedRenderCache(t,e){let{renderCache:n}=this;return n?.result!=null&&n.highlighted&&Ec(t,n.file)&&cd(e,n.options)}onHighlightError(t){console.error(t)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??ad}createPreElement(t){let{disableLineNumbers:e=!1,overflow:n="scroll"}=this.options;return rk({type:"file",diffIndicators:"none",disableBackground:!0,disableLineNumbers:e,overflow:n,split:!1,totalLines:t})}};function uP(t,e){return t>e}var hk=`<svg data-icon-sprite aria-hidden="true" width="0" height="0"> +`||a==="\r"?Math.max(0,t.length-2):t.length-1})();for(let a=e;a<i;a++){let s=a===o;if(r({lineIndex:a,lineNumber:a+1,content:t[a],isLastLine:s})===!0||s)break}}function O7(t){return t!==""?t.split(QI):[]}var z$e={forcePlainText:!1};function pk(t,e,{theme:n=nr,tokenizeMaxLineLength:r,useTokenTransformer:i},{forcePlainText:o,startingLine:a,totalLines:s,lines:l}=z$e){o?(a??=0,s??=1/0):(a=0,s=1/0);let c=a>0||s<1/0,{state:u,transformers:d}=ck(i),p=o?"text":t.lang??br(t.name),m=typeof n=="string"?e.getTheme(n).type:void 0,f=uk({theme:n,highlighter:e});u.lineInfo=y=>({type:"context",lineIndex:y-1+a,lineNumber:y+a});let h=typeof n=="string"?{lang:p,theme:n,transformers:d,defaultColor:!1,cssVariablePrefix:ga("token"),tokenizeMaxLineLength:r}:{lang:p,themes:n,transformers:d,defaultColor:!1,cssVariablePrefix:ga("token"),tokenizeMaxLineLength:r},x=j7(e.codeToHast(c?q$e(l??O7(t.contents),a,s):ud(t.contents),h)),g=c?new Array(a):x;return c&&g.push(...x),{code:g,themeStyles:f,baseThemeType:m}}function q$e(t,e,n){let r="";return dk({lines:t,startingLine:e,totalLines:n,callback({content:i}){r+=i}}),r}function mk(t,e){return qt({tagName:"div",children:t,properties:{"data-content":"",style:`grid-row: span ${e}`}})}function Jf(t){return(t.lang??br(t.name))==="text"}function fk(t){return t.useTokenTransformer===!0||t.onTokenClick!=null||t.onTokenEnter!=null||t.onTokenLeave!=null}var H$e=-1,Wne=class{__id=`file-renderer:${++H$e}`;highlighter;renderCache;computedLang="text";lineAnnotations={};lineCache;constructor(t={theme:nr},e,n){this.options=t,this.onRenderUpdate=e,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=v0(t.theme??nr)?ek():void 0)}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}setLineAnnotations(t){this.lineAnnotations={};for(let e of t){let n=this.lineAnnotations[e.lineNumber]??[];this.lineAnnotations[e.lineNumber]=n,n.push(e)}}cleanUp(){this.recycle(),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.clearRenderCache(),this.highlighter=void 0,this.workerManager?.cleanUpTasks(this),this.lineCache=void 0}clearRenderCache(){this.renderCache=void 0}hydrate(t){let{options:e}=this.getRenderOptions(t),n=mP(this.getOrCreateLineCache(t).length,this.getTokenizeMaxLength()),r=this.workerManager?.getFileResultCache(t);r!=null&&!cd(e,r.options)&&(r=void 0),this.renderCache??={file:t,options:e,highlighted:!n&&!Jf(t),result:n?void 0:r?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!n&&this.workerManager.highlightFileAST(this,t):this.highlighter==null&&(this.computedLang=t.lang??br(t.name),this.initializeHighlighter())}getRenderOptions(t){let e=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getFileRenderOptions();let{theme:r=nr,tokenizeMaxLineLength:i=1e3}=this.options;return{theme:r,useTokenTransformer:fk(this.options),tokenizeMaxLineLength:i}})(),{renderCache:n}=this;return n?.result==null?{options:e,forceHighlight:!0}:!Ec(t,n.file)||!cd(e,n.options)?{options:e,forceHighlight:!0}:{options:e,forceHighlight:!1}}getOrCreateLineCache(t){if(t.cacheKey==null)return this.lineCache=void 0,O7(t.contents);let{lineCache:e}=this;return(e==null||e.cacheKey!==t.cacheKey)&&(e={cacheKey:t.cacheKey,lines:O7(t.contents)}),this.lineCache=e,e.lines}renderFile(t=this.renderCache?.file,e=s0){if(t==null)return;let{options:n,forceHighlight:r}=this.getRenderOptions(t),i=this.getMatchingWorkerResultCache(t,n);i!=null&&!this.hasHighlightedRenderCache(t,n)&&(this.renderCache={file:t,highlighted:!0,renderRange:void 0,...i},r=!1),this.renderCache??={file:t,highlighted:!1,options:n,result:void 0,renderRange:void 0};let o=this.getOrCreateLineCache(t),a=t.contents.length>0,s=!a||Jf(t)||mP(o.length,this.getTokenizeMaxLength()),l=!Ec(t,this.renderCache.file),c=!Qf(this.renderCache.renderRange,e);if(this.workerManager?.isWorkingPool()===!0)(s||this.renderCache.result==null||!this.renderCache.highlighted&&(l||c))&&(this.renderCache.file=t,this.renderCache.options=n,this.renderCache.highlighted=!1,(this.renderCache.result==null||l||c||r)&&(this.renderCache.result=this.workerManager.getPlainFileAST(t,e.startingLine,e.totalLines,o)),this.renderCache.renderRange=e),!s&&a&&(!this.renderCache.highlighted||r)&&this.workerManager.highlightFileAST(this,t);else{this.computedLang=t.lang??br(t.name);let u=this.highlighter!=null&&v0(n.theme),d=this.highlighter!=null&&Bb(this.computedLang),p=!s&&d;if(this.highlighter!=null&&u&&(r||s||!this.renderCache.highlighted&&p||this.renderCache.result==null)){let{result:m,options:f}=this.renderFileWithHighlighter(t,this.highlighter,s||!d);this.renderCache={file:t,options:f,highlighted:p,result:m,renderRange:void 0}}(!u||!s&&!d)&&this.asyncHighlight(t).then(({result:m,options:f})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(t,m,f,!s)})}return this.renderCache.result!=null?this.processFileResult(this.renderCache.file,e,this.renderCache.result):void 0}async asyncRender(t,e=s0){let{result:n}=await this.asyncHighlight(t);return this.processFileResult(t,e,n)}async asyncHighlight(t){let e=mP(this.getOrCreateLineCache(t).length,this.getTokenizeMaxLength());this.computedLang=e?"text":t.lang??br(t.name);let n=this.highlighter!=null&&P7(Zp(this.options.theme)),r=e||this.highlighter!=null&&Bb(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderFileWithHighlighter(t,this.highlighter,e)}renderFileWithHighlighter(t,e,n=!1){let{options:r}=this.getRenderOptions(t);return{result:pk(t,e,r,{forcePlainText:n}),options:r}}processFileResult(t,e,{code:n,themeStyles:r,baseThemeType:i}){let{disableFileHeader:o=!1}=this.options,a=[],s=Uf(),l=this.getOrCreateLineCache(t),c=0;return dk({lines:l,startingLine:e.startingLine,totalLines:e.totalLines,callback:({lineIndex:u,lineNumber:d})=>{let p=n[u];if(p==null){let m="FileRenderer.processFileResult: Line doesnt exist";throw console.error(m,{name:t.name,lineIndex:u,lineNumber:d,lines:l}),new Error(m)}if(p!=null){s.children.push(rv("context",d,`${u}`)),a.push(p),c++;let m=this.lineAnnotations[d];m!=null&&(s.children.push(Os("context","annotation",1)),a.push(tk({type:"annotation",hunkIndex:0,lineIndex:d,annotations:m.map(f=>Tl(f))})),c++)}}}),s.properties.style=`grid-row: span ${c}`,{gutterAST:s.children??[],contentAST:a,preAST:this.createPreElement(l.length),headerAST:o?void 0:this.renderHeader(t),totalLines:l.length,rowCount:c,themeStyles:r,baseThemeType:i,bufferBefore:e.bufferBefore,bufferAfter:e.bufferAfter,css:""}}renderHeader(t){let{headerRenderMode:e="default",stickyHeader:n=!1}=this.options;return nk({fileOrDiff:t,mode:e,stickyHeader:n})}renderFullHTML(t){return Vo(this.renderFullAST(t))}renderFullAST(t,e=[]){return e.push(qt({tagName:"code",children:this.renderCodeAST(t),properties:{"data-code":""}})),{...t.preAST,children:e}}renderCodeAST(t){let e=Uf();return e.children=t.gutterAST,e.properties.style=`grid-row: span ${t.rowCount}`,[e,mk(t.contentAST,t.rowCount)]}renderPartialHTML(t,e=!1){return e?Vo(qt({tagName:"code",children:t,properties:{"data-code":""}})):Vo(t)}async initializeHighlighter(){return this.highlighter=await w0(ak(this.computedLang,this.options)),this.highlighter}onHighlightSuccess(t,e,n,r=!0){if(this.renderCache==null)return;let i=!Ec(t,this.renderCache.file)||!this.renderCache.highlighted||!cd(n,this.renderCache.options);this.renderCache={file:t,options:n,highlighted:r,result:e,renderRange:void 0},i&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(t,e){let n=this.workerManager?.getFileResultCache(t);if(!(n==null||!cd(e,n.options)))return n}hasHighlightedRenderCache(t,e){let{renderCache:n}=this;return n?.result!=null&&n.highlighted&&Ec(t,n.file)&&cd(e,n.options)}onHighlightError(t){console.error(t)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??ad}createPreElement(t){let{disableLineNumbers:e=!1,overflow:n="scroll"}=this.options;return rk({type:"file",diffIndicators:"none",disableBackground:!0,disableLineNumbers:e,overflow:n,split:!1,totalLines:t})}};function mP(t,e){return t>e}var hk=`<svg data-icon-sprite aria-hidden="true" width="0" height="0"> <symbol id="diffs-icon-arrow-right-short" viewBox="0 0 16 16"> <path d="M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"/> </symbol> @@ -300,38 +300,38 @@ XID_Start XIDS`.split(/\s/).map(t=>[Hb(t),t])),YRe=new Map([["s",ho(383)],[ho(38 <symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16"> <path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"/> </symbol> -</svg>`;function Kne(t,e){return t.lineNumber===e.lineNumber&&t.metadata===e.metadata}function gk(t,e){return t==null||e==null?t===e:G$e(t.customProperties,e.customProperties)&&t.type===e.type&&t.diffIndicators===e.diffIndicators&&t.disableBackground===e.disableBackground&&t.disableLineNumbers===e.disableLineNumbers&&t.overflow===e.overflow&&t.split===e.split&&t.totalLines===e.totalLines}var Xne={};function G$e(t=Xne,e=Xne){if(t===e)return!0;let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function bk(t){let e=document.createElement("div");return e.dataset.annotationSlot="",e.slot=t,e.style.whiteSpace="normal",e}function yk(){let t=document.createElement("div");return t.slot="gutter-utility-slot",t.style.position="absolute",t.style.top="0",t.style.bottom="0",t.style.textAlign="center",t.style.whiteSpace="normal",t.style.touchAction="none",t}function xk(){let t=document.createElement("style");return t.setAttribute(Pp,""),t}var Yne='@layer base,theme,rendered,unsafe;@layer base{:host{--diffs-font-fallback:"SF Mono", Monaco, Consolas, "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;--diffs-header-font-fallback:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;--diffs-mixer:light-dark(#000,#fff);--diffs-gap-fallback:8px;--diffs-scrollbar-gutter-fallback:6px;--diffs-scrollbar-gutter:var(--diffs-scrollbar-gutter-override,var(--diffs-scrollbar-gutter-measured,var(--diffs-scrollbar-gutter-fallback)));--diffs-added-light:#0dbe4e;--diffs-added-dark:#5ecc71;--diffs-modified-light:#009fff;--diffs-modified-dark:#69b1ff;--diffs-deleted-light:#ff2e3f;--diffs-deleted-dark:#ff6762;color-scheme:light dark;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));font-size:var(--diffs-font-size,13px);line-height:var(--diffs-line-height,20px);font-feature-settings:var(--diffs-font-features);--diffs-bg:light-dark(var(--diffs-light-bg,#fff),var(--diffs-dark-bg,#000));--diffs-bg-buffer:var(--diffs-bg-buffer-override,light-dark(color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))));--diffs-bg-context:var(--diffs-bg-context-override,light-dark(color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))));--diffs-bg-context-gutter:var(--diffs-bg-context-gutter-override,light-dark(color-mix(in lab, var(--diffs-bg-context) 90%, var(--diffs-bg)),color-mix(in lab, var(--diffs-bg-context) 45%, var(--diffs-bg))));--diffs-bg-separator:var(--diffs-bg-separator-override,light-dark(color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))));--diffs-fg:light-dark(var(--diffs-light,#000),var(--diffs-dark,#fff));--diffs-fg-number:var(--diffs-fg-number-override,light-dark(color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))));--diffs-fg-conflict-marker:var(--diffs-fg-conflict-marker-override,var(--diffs-fg-number));--diffs-deletion-base:var(--diffs-deletion-color-override,light-dark(var(--diffs-light-deletion-color,var(--diffs-deletion-color,var(--diffs-deleted-light))),var(--diffs-dark-deletion-color,var(--diffs-deletion-color,var(--diffs-deleted-dark)))));--diffs-addition-base:var(--diffs-addition-color-override,light-dark(var(--diffs-light-addition-color,var(--diffs-addition-color,var(--diffs-added-light))),var(--diffs-dark-addition-color,var(--diffs-addition-color,var(--diffs-added-dark)))));--diffs-modified-base:var(--diffs-modified-color-override,light-dark(var(--diffs-light-modified-color,var(--diffs-modified-color,var(--diffs-modified-light))),var(--diffs-dark-modified-color,var(--diffs-modified-color,var(--diffs-modified-dark)))));--diffs-bg-deletion:var(--diffs-bg-deletion-override,light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))));--diffs-bg-deletion-emphasis:var(--diffs-bg-deletion-emphasis-override,light-dark(rgb(from var(--diffs-deletion-base) r g b / .15),rgb(from var(--diffs-deletion-base) r g b / .2)));--diffs-bg-addition:var(--diffs-bg-addition-override,light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))));--diffs-bg-addition-emphasis:var(--diffs-bg-addition-emphasis-override,light-dark(rgb(from var(--diffs-addition-base) r g b / .15),rgb(from var(--diffs-addition-base) r g b / .2)));--diffs-selection-base:var(--diffs-modified-base);--diffs-selection-number-fg:light-dark(color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer)));background-color:var(--diffs-bg);color:var(--diffs-fg);display:block}pre,code,[data-error-wrapper]{isolation:isolate;font-family:var(--diffs-font-family,var(--diffs-font-fallback));outline:none;margin:0;padding:0;display:block}pre,code{background-color:var(--diffs-bg)}code{contain:content}*,:before,:after{box-sizing:border-box}[data-icon-sprite]{display:none}[data-diffs-header],[data-separator]{font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback))}[data-diffs-header][data-sticky]{z-index:1;background-color:var(--diffs-bg);position:sticky;top:0}[data-file-info]{color:var(--fg);background-color:color-mix(in lab, var(--bg) 98%, var(--fg));border-block:1px solid color-mix(in lab, var(--bg) 95%, var(--fg));padding:10px;font-weight:700}[data-diff],[data-file]{--diffs-grid-number-column-width:minmax(min-content, max-content);--diffs-code-grid:var(--diffs-grid-number-column-width) 1fr}[data-dehydrated]:is([data-diff],[data-file]){--diffs-code-grid:var(--diffs-grid-number-column-width) minmax(0, 1fr)}:is([data-diff],[data-file]):hover [data-code]::-webkit-scrollbar-thumb{background-color:var(--diffs-bg-context)}@supports (-webkit-touch-callout:none){:host{--diffs-scrollbar-gutter-fallback:0px}}[data-line] span{color:light-dark(var(--diffs-token-light,var(--diffs-light)),var(--diffs-token-dark,var(--diffs-dark)));background-color:light-dark(var(--diffs-token-light-bg,inherit),var(--diffs-token-dark-bg,inherit));font-weight:light-dark(var(--diffs-token-light-font-weight,inherit),var(--diffs-token-dark-font-weight,inherit));font-style:light-dark(var(--diffs-token-light-font-style,inherit),var(--diffs-token-dark-font-style,inherit));-webkit-text-decoration:light-dark(var(--diffs-token-light-text-decoration,inherit),var(--diffs-token-dark-text-decoration,inherit));text-decoration:light-dark(var(--diffs-token-light-text-decoration,inherit),var(--diffs-token-dark-text-decoration,inherit))}[data-line],[data-gutter-buffer],[data-column-number],[data-line-annotation],[data-no-newline],[data-merge-conflict],[data-merge-conflict-actions]{--diffs-computed-decoration-bg:var(--diffs-bg);--diffs-computed-diff-line-bg:var(--diffs-bg);--diffs-computed-selected-line-bg:var(--diffs-bg);color:var(--diffs-fg);background-color:var(--diffs-line-bg,var(--diffs-bg))}@media (pointer:fine){:is([data-line],[data-gutter-buffer],[data-column-number],[data-line-annotation],[data-no-newline],[data-merge-conflict],[data-merge-conflict-actions]):where([data-hovered]){--diffs-computed-hovered-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-selected-line-bg) 97%, var(--diffs-bg-hover-override,var(--diffs-mixer))),color-mix(in lab, var(--diffs-computed-selected-line-bg) 91%, var(--diffs-bg-hover-override,var(--diffs-mixer))));--diffs-line-bg:var(--diffs-computed-hovered-line-bg,inherit)}}[data-decoration-bg]:is([data-line],[data-no-newline]){--mix-deco-light:92%;--mix-deco-dark:85%}[data-decoration-bg][data-decoration-bg-depth="2"]:is([data-line],[data-no-newline]){--mix-deco-light:88%;--mix-deco-dark:80%}[data-decoration-bg][data-decoration-bg-depth="3"]:is([data-line],[data-no-newline]){--mix-deco-light:85%;--mix-deco-dark:78%}@media (pointer:fine){[data-decoration-bg][data-hovered]:is([data-line],[data-no-newline]):not([data-selected-line]){--mix-deco-light:85%;--mix-deco-dark:85%}[data-decoration-bg][data-hovered][data-decoration-bg-depth="2"]:is([data-line],[data-no-newline]):not([data-selected-line]){--mix-deco-light:83%;--mix-deco-dark:83%}[data-decoration-bg][data-hovered][data-decoration-bg-depth="3"]:is([data-line],[data-no-newline]):not([data-selected-line]){--mix-deco-light:81%;--mix-deco-dark:81%}}[data-decoration-bg]:is([data-line],[data-no-newline]){--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) var(--mix-deco-light), var(--diffs-decoration-bg)),color-mix(in lab, var(--diffs-bg) var(--mix-deco-dark), var(--diffs-decoration-bg)));--diffs-computed-diff-line-bg:var(--diffs-computed-decoration-bg);--diffs-computed-selected-line-bg:var(--diffs-computed-decoration-bg);--diffs-line-bg:var(--diffs-computed-decoration-bg)}[data-line-annotation],[data-gutter-buffer=annotation]{--diffs-annotation-bg:var(--diffs-bg-context);--diffs-computed-decoration-bg:var(--diffs-annotation-bg);--diffs-computed-diff-line-bg:var(--diffs-annotation-bg);--diffs-computed-selected-line-bg:var(--diffs-annotation-bg);--diffs-line-bg:var(--diffs-annotation-bg)}[data-merge-conflict-actions],[data-gutter-buffer=merge-conflict-action],[data-gutter-buffer=merge-conflict-marker-base],[data-gutter-buffer=merge-conflict-marker-separator],[data-merge-conflict=marker-base],[data-merge-conflict=marker-separator]{--diffs-computed-decoration-bg:var(--diffs-bg-context);--diffs-computed-diff-line-bg:var(--diffs-bg-context);--diffs-computed-selected-line-bg:var(--diffs-bg-context);--diffs-line-bg:var(--diffs-bg-context)}[data-gutter-buffer=merge-conflict-marker-start],[data-merge-conflict=marker-start]{--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) 78%, var(--conflict-bg-current-header-override,var(--diffs-addition-base))),color-mix(in lab, var(--diffs-bg) 68%, var(--conflict-bg-current-header-override,var(--diffs-addition-base))));--diffs-computed-diff-line-bg:var(--diffs-computed-decoration-bg);--diffs-computed-selected-line-bg:var(--diffs-computed-decoration-bg);--diffs-line-bg:var(--diffs-computed-decoration-bg)}[data-gutter-buffer=merge-conflict-marker-end],[data-merge-conflict=marker-end]{--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) 78%, var(--conflict-bg-incoming-header-override,var(--diffs-modified-base))),color-mix(in lab, var(--diffs-bg) 68%, var(--conflict-bg-incoming-header-override,var(--diffs-modified-base))));--diffs-computed-diff-line-bg:var(--diffs-computed-decoration-bg);--diffs-computed-selected-line-bg:var(--diffs-computed-decoration-bg);--diffs-line-bg:var(--diffs-computed-decoration-bg)}[data-has-merge-conflict] [data-line-annotation],[data-has-merge-conflict] [data-gutter-buffer=annotation]{--diffs-computed-decoration-bg:var(--diffs-bg);--diffs-computed-diff-line-bg:var(--diffs-bg);--diffs-computed-selected-line-bg:var(--diffs-bg);--diffs-line-bg:var(--diffs-bg)}:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number]{--mix-light:91%;--mix-dark:85%}:where([data-background]) [data-line],:where([data-background]) [data-no-newline]{--mix-light:88%;--mix-dark:80%}:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]{--diffs-diff-line-mix-target:var(--diffs-bg)}[data-line-type=change-deletion]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--diffs-bg-deletion-override,var(--diffs-deletion-base))}@media (pointer:fine){[data-line-type=change-deletion][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:75%}}[data-line-type=change-deletion]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-deletion-override,var(--diffs-deletion-base));--diffs-diff-line-mix-target:var(--diffs-bg-deletion-number-override,var(--diffs-deletion-base))}[data-line-type=change-deletion]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-line-type=change-addition]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--diffs-bg-addition-override,var(--diffs-addition-base))}@media (pointer:fine){[data-line-type=change-addition][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:70%}}[data-line-type=change-addition]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-addition-override,var(--diffs-addition-base));--diffs-diff-line-mix-target:var(--diffs-bg-addition-number-override,var(--diffs-addition-base))}[data-line-type=change-addition]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-merge-conflict=current]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--conflict-bg-current-override,var(--diffs-addition-base))}[data-merge-conflict=current]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-addition-override,var(--diffs-addition-base));--diffs-diff-line-mix-target:var(--conflict-bg-current-number-override,var(--diffs-addition-base))}@media (pointer:fine){[data-merge-conflict=current][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:70%}}[data-merge-conflict=current]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-merge-conflict=incoming]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--conflict-bg-incoming-override,var(--diffs-modified-base))}[data-merge-conflict=incoming]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-modified-base);--diffs-diff-line-mix-target:var(--conflict-bg-incoming-number-override,var(--diffs-modified-base))}@media (pointer:fine){[data-merge-conflict=incoming][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:70%}}[data-merge-conflict=incoming]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]{--diffs-selection-mix-target:var(--diffs-bg-selection-override,var(--diffs-selection-base))}[data-selected-line]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]){--mix-selection-light:82%;--mix-selection-dark:75%}@media (pointer:fine){[data-selected-line][data-hovered]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):not([data-merge-conflict],[data-line-type=change-addition],[data-line-type=change-deletion]){--mix-selection-light:75%;--mix-selection-dark:70%}}[data-selected-line]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-gutter-buffer],[data-column-number]){--mix-selection-light:75%;--mix-selection-dark:60%;--diffs-selection-mix-target:var(--diffs-bg-selection-number-override,var(--diffs-selection-base))}@media (pointer:fine){[data-selected-line][data-hovered]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-gutter-buffer],[data-column-number]):not([data-merge-conflict],[data-line-type=change-addition],[data-line-type=change-deletion]){--mix-selection-light:70%;--mix-selection-dark:55%}}[data-selected-line]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]){--diffs-computed-selected-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-diff-line-bg) var(--mix-selection-light), var(--diffs-selection-mix-target)),color-mix(in lab, var(--diffs-computed-diff-line-bg) var(--mix-selection-dark), var(--diffs-selection-mix-target)));--diffs-line-bg:var(--diffs-computed-selected-line-bg,inherit)}[data-selected-line]:is([data-gutter-buffer],[data-column-number]){color:var(--diffs-selection-number-fg)}[data-no-newline]{-webkit-user-select:none;user-select:none}[data-no-newline] span{opacity:.6}[data-diff-type=split][data-overflow=scroll]{grid-template-columns:1fr 1fr;display:grid}[data-diff-type=split][data-overflow=scroll] [data-additions]{border-left:1px solid var(--diffs-bg)}[data-diff-type=split][data-overflow=scroll] [data-deletions]{border-right:1px solid var(--diffs-bg)}[data-code]{grid-auto-flow:dense;grid-template-columns:var(--diffs-code-grid);overflow:var(--diffs-overflow-override,scroll) clip;overscroll-behavior-x:none;tab-size:var(--diffs-tab-size,2);padding-top:var(--diffs-gap-block,var(--diffs-gap-fallback));padding-bottom:max(0px, calc(var(--diffs-gap-block,var(--diffs-gap-fallback)) - var(--diffs-scrollbar-gutter)));scrollbar-gutter:stable;align-self:flex-start;display:grid}[data-diffs-scrollbar-measure]{opacity:0;pointer-events:none;scrollbar-gutter:auto;grid-template-columns:none;width:100px;height:100px;padding:0;position:absolute;top:-200px;left:-200px}[data-container-size]{container-type:inline-size}[data-code]::-webkit-scrollbar{width:0;height:var(--diffs-scrollbar-gutter)}[data-code]::-webkit-scrollbar-track{background:0 0}[data-code]::-webkit-scrollbar-thumb{background-color:#0000;background-clip:content-box;border:1px solid #0000;border-radius:3px}[data-code]::-webkit-scrollbar-corner{background-color:#0000}@supports ((-moz-appearance:none)){[data-code]{scrollbar-width:thin;scrollbar-color:var(--diffs-bg-context) transparent;padding-bottom:var(--diffs-gap-block,var(--diffs-gap-fallback))}}:is([data-diffs-header]~[data-diff],[data-diffs-header]~[data-file]) [data-code],[data-overflow=wrap]:is([data-diffs-header]~[data-diff],[data-diffs-header]~[data-file]){padding-top:0}[data-gutter]{grid-template-rows:subgrid;grid-template-columns:subgrid;z-index:3;background-color:var(--diffs-bg);grid-column:1;display:grid;position:relative}[data-gutter] [data-gutter-buffer],[data-gutter] [data-column-number]{border-right:var(--diffs-gap-style,2px solid var(--diffs-bg))}[data-content]{grid-template-rows:subgrid;grid-template-columns:subgrid;background-color:var(--diffs-bg);grid-column:2;min-width:0;display:grid}[data-diff-type=split][data-overflow=wrap]{grid-auto-flow:dense;grid-template-columns:repeat(2, var(--diffs-code-grid));padding-block:var(--diffs-gap-block,var(--diffs-gap-fallback));display:grid}[data-diff-type=split][data-overflow=wrap] [data-deletions]{display:contents}:is([data-diff-type=split][data-overflow=wrap] [data-deletions]) [data-gutter]{grid-column:1}:is([data-diff-type=split][data-overflow=wrap] [data-deletions]) [data-content]{border-right:1px solid var(--diffs-bg);grid-column:2}[data-diff-type=split][data-overflow=wrap] [data-additions]{display:contents}:is([data-diff-type=split][data-overflow=wrap] [data-additions]) [data-gutter]{border-left:1px solid var(--diffs-bg);grid-column:3}:is([data-diff-type=split][data-overflow=wrap] [data-additions]) [data-content]{grid-column:4}[data-overflow=scroll] [data-gutter]{position:sticky;left:0}[data-interactive-lines] [data-line]{cursor:pointer}[data-interactive-line-numbers] [data-column-number]{cursor:pointer;touch-action:none}[data-content-buffer],[data-gutter-buffer]{-webkit-user-select:none;user-select:none;min-height:1lh;position:relative}[data-gutter-buffer]{padding-left:2ch;padding-right:1ch}[data-gutter-buffer]:before{content:"";min-width:var(--diffs-min-number-column-width,var(--diffs-min-number-column-width-default,3ch));display:block}[data-gutter-buffer=annotation]{--diffs-annotation-bg:var(--diffs-bg-context-gutter);min-height:0}[data-gutter-buffer=buffer]{--diffs-line-bg:var(--diffs-bg-context-gutter)}[data-content-buffer]{background-position:5px 0;background-size:8px 8px;background-origin:border-box;background-image:repeating-linear-gradient(-45deg, transparent, transparent 4.242px, var(--diffs-bg-buffer) 4.242px, var(--diffs-bg-buffer) 5.656px);grid-column:1}[data-separator]{box-sizing:content-box;background-color:var(--diffs-bg)}[data-separator=simple]{min-height:4px}[data-separator=line-info],[data-separator=line-info-basic],[data-separator=metadata],[data-separator=simple]{background-color:var(--diffs-bg-separator)}[data-separator=line-info],[data-separator=line-info-basic],[data-separator=metadata]{height:32px;position:relative}[data-separator-wrapper]{-webkit-user-select:none;user-select:none;fill:currentColor;background-color:var(--diffs-bg);align-items:center;height:100%;display:flex;position:absolute;inset-inline:0}[data-content] [data-separator-wrapper]{display:none}[data-separator=metadata] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);height:100%;color:var(--diffs-fg-number);white-space:nowrap;text-overflow:ellipsis;min-width:min-content;padding-inline:1ch;inset-inline:100% auto;overflow:hidden}[data-separator=line-info]{margin-block:var(--diffs-gap-block,var(--diffs-gap-fallback))}[data-separator=line-info] [data-separator-wrapper]{min-width:16px}[data-separator=line-info-basic],[data-separator=metadata]{margin-block:0}[data-separator=line-info][data-separator-first]{margin-top:0}[data-separator=line-info][data-separator-last]{margin-bottom:0}[data-expand-index] [data-separator-wrapper]{grid-template-columns:32px auto;display:grid}[data-expand-index] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:32px 32px auto}[data-expand-button],[data-separator-content]{background-color:var(--diffs-bg-separator);flex:none;align-items:center;display:flex}[data-expand-index] [data-separator-content]:hover{cursor:pointer;text-decoration:underline}[data-expand-button]{cursor:pointer;min-width:32px;color:var(--diffs-fg-number);border-right:2px solid var(--diffs-bg);flex-shrink:0;justify-content:center;align-self:stretch}[data-expand-button]:hover{color:var(--diffs-fg)}[data-expand-button][data-expand-all-button]{display:none}[data-expand-down] [data-icon]{transform:scaleY(-1)}[data-separator-content]{height:100%;color:var(--diffs-fg-number);flex:auto;justify-content:flex-start;padding:0 1ch;overflow:hidden}:is([data-separator=line-info],[data-separator=line-info-basic]) [data-separator-content]{-webkit-user-select:none;user-select:none;height:100%;overflow:clip}[data-unmodified-lines]{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;display:block;overflow:hidden}@supports (width:1cqi){[data-unified] [data-separator=line-info] [data-separator-wrapper]{padding-inline:var(--diffs-gap-inline,var(--diffs-gap-fallback));width:100cqi}:is([data-unified] [data-separator=line-info] [data-separator-wrapper]) [data-separator-content]{border-radius:6px}[data-unified] [data-separator=line-info][data-expand-index] [data-separator-wrapper] [data-separator-content]{border-top-left-radius:unset;border-bottom-left-radius:unset}[data-gutter] [data-separator=line-info] [data-separator-wrapper]{padding-left:var(--diffs-gap-inline,var(--diffs-gap-fallback))}[data-gutter] [data-separator=line-info] [data-separator-content]{border-top-left-radius:6px;border-bottom-left-radius:6px}[data-gutter] [data-separator=line-info][data-expand-index] [data-separator-content]{border-top-left-radius:unset;border-bottom-left-radius:unset}[data-additions] [data-content] [data-separator=line-info]{background-color:var(--diffs-bg)}:is([data-additions] [data-content] [data-separator=line-info]) [data-separator-wrapper]{display:none}[data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);border-top-right-radius:6px;border-bottom-right-radius:6px;height:100%;display:block}:is([data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]) [data-separator-content],:is([data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]) [data-expand-button]{display:none}[data-overflow=scroll] [data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]{width:calc(100cqi - var(--diffs-gap-inline,var(--diffs-gap-fallback)))}[data-overflow=wrap] [data-additions] [data-content] [data-separator=line-info] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);height:100%;margin-right:var(--diffs-gap-inline,var(--diffs-gap-fallback));border-top-right-radius:6px;border-bottom-right-radius:6px;display:block}:is([data-overflow=wrap] [data-additions] [data-content] [data-separator=line-info] [data-separator-wrapper]) [data-separator-content],:is([data-overflow=wrap] [data-additions] [data-content] [data-separator=line-info] [data-separator-wrapper]) [data-expand-button]{display:none}:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-both],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:6px}@media (pointer:fine){[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:unset}[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down]{border-bottom-left-radius:6px;border-top-left-radius:unset}}}@media (pointer:coarse){[data-separator=line-info-basic] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:34px 34px auto}:is([data-separator=line-info-basic] [data-separator-wrapper][data-separator-multi-button]) [data-separator-content]{grid-column:unset;grid-row:unset}@supports (width:1cqi){:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-both],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up],[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:6px}[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down]{border-bottom-left-radius:unset;border-top-left-radius:unset}}}@media (pointer:fine){[data-separator-wrapper][data-separator-multi-button]{grid-template-rows:50% 50%;display:grid}[data-separator-wrapper][data-separator-multi-button] [data-separator-content]{grid-area:1/2/-1;min-width:min-content}[data-separator-wrapper][data-separator-multi-button] [data-expand-button]{grid-column:1}[data-separator=line-info] [data-separator-wrapper],[data-separator=line-info] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:34px auto}[data-separator=line-info-basic][data-expand-index] [data-separator-wrapper]{grid-template-columns:100% auto}:is(:is([data-separator=line-info],[data-separator=line-info-basic]) [data-separator-multi-button]) [data-expand-up]{border-bottom:1px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg)}:is(:is([data-separator=line-info],[data-separator=line-info-basic]) [data-separator-multi-button]) [data-expand-down]{border-top:1px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg)}}[data-additions] [data-gutter] [data-separator-wrapper],[data-additions] [data-separator=line-info-basic] [data-separator-wrapper],[data-content] [data-separator-wrapper]{display:none}[data-line-annotation]{min-height:var(--diffs-annotation-min-height,0);z-index:2}[data-merge-conflict-actions]{z-index:2}[data-separator=custom]{grid-template-columns:subgrid;display:grid}[data-line],[data-column-number],[data-no-newline]{padding-inline:1ch;position:relative}[data-indicators=classic] [data-line]{padding-inline-start:2ch}:is([data-no-newline]:is([data-indicators=classic] [data-line-type=change-addition],[data-indicators=classic] [data-line-type=change-deletion]),[data-line]:is([data-indicators=classic] [data-line-type=change-addition],[data-indicators=classic] [data-line-type=change-deletion])):before{-webkit-user-select:none;user-select:none;width:1ch;height:1lh;display:inline-block;position:absolute;top:0;left:0}:is([data-line]:is([data-indicators=classic] [data-line-type=change-addition]),[data-no-newline]:is([data-indicators=classic] [data-line-type=change-addition])):before{content:"+";color:var(--diffs-addition-base)}:is([data-line]:is([data-indicators=classic] [data-line-type=change-deletion]),[data-no-newline]:is([data-indicators=classic] [data-line-type=change-deletion])):before{content:"-";color:var(--diffs-deletion-base)}[data-column-number]:is([data-indicators=bars] [data-line-type=change-deletion],[data-indicators=bars] [data-line-type=change-addition]):before{content:"";-webkit-user-select:none;user-select:none;contain:strict;width:4px;height:100%;display:block;position:absolute;top:0;left:0}[data-column-number]:is([data-indicators=bars] [data-line-type=change-deletion]):before{background-image:linear-gradient(0deg, var(--diffs-bg-deletion) 50%, var(--diffs-deletion-base) 50%);background-repeat:repeat;background-size:2px 2px;background-size:calc(1lh/round(1lh / 2px)) calc(1lh/round(1lh / 2px))}[data-column-number]:is([data-indicators=bars] [data-line-type=change-addition]):before{background-color:var(--diffs-addition-base)}[data-overflow=wrap] [data-line],[data-overflow=wrap] [data-annotation-content]{white-space:pre-wrap;word-break:break-word}[data-overflow=scroll] [data-line]{white-space:pre;min-height:1lh}[data-column-number]{box-sizing:content-box;text-align:right;-webkit-user-select:none;user-select:none;color:var(--diffs-fg-number);padding-left:2ch}[data-line-number-content]{min-width:var(--diffs-min-number-column-width,var(--diffs-min-number-column-width-default,3ch));z-index:1;display:inline-block;position:relative}[data-disable-line-numbers] [data-gutter-buffer],[data-disable-line-numbers] [data-column-number]{min-width:4px;padding:0}:is([data-disable-line-numbers] [data-gutter-buffer],[data-disable-line-numbers] [data-column-number]):before{min-width:0}[data-disable-line-numbers] [data-line-number-content]{display:none}[data-disable-line-numbers] [data-gutter-utility-slot]{right:unset;justify-content:flex-start;left:0}[data-disable-line-numbers][data-indicators=bars] [data-gutter-utility-slot]{left:6px}[data-file][data-disable-line-numbers] [data-gutter-buffer],[data-file][data-disable-line-numbers] [data-column-number]{border-right:0;min-width:0}[data-diff-span]{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:3px}[data-line-type=change-addition] [data-diff-span]{background-color:var(--diffs-bg-addition-emphasis)}[data-line-type=change-deletion] [data-diff-span]{background-color:var(--diffs-bg-deletion-emphasis)}[data-merge-conflict=marker-start],[data-merge-conflict=marker-base],[data-merge-conflict=marker-separator],[data-merge-conflict=marker-end]{color:var(--diffs-fg);padding-left:1ch}[data-merge-conflict=marker-start],[data-merge-conflict=marker-end]{align-items:center;display:flex}:is([data-merge-conflict=marker-start],[data-merge-conflict=marker-end]):after{color:var(--diffs-fg-conflict-marker);font-size:.75rem;font-style:normal;line-height:1.25rem;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));padding-left:1ch}[data-merge-conflict=marker-start]:after{content:"(Current Change)"}[data-merge-conflict=marker-end]:after{content:"(Incoming Change)"}[data-merge-conflict-actions-content]{min-height:1.75rem;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));color:var(--diffs-fg);align-items:center;gap:.25rem;padding-inline:.5rem;font-size:.75rem;line-height:1.2;display:flex}[data-merge-conflict-action]{appearance:none;color:var(--diffs-fg-number);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-style:normal}[data-merge-conflict-action]:hover{color:var(--diffs-fg)}[data-merge-conflict-action=current]:hover{color:var(--diffs-addition-base)}[data-merge-conflict-action=incoming]:hover{color:var(--diffs-modified-base)}[data-merge-conflict-action-separator]{color:var(--diffs-fg-number);opacity:.6;-webkit-user-select:none;user-select:none}[data-diffs-header=default]{background-color:var(--diffs-bg);justify-content:space-between;align-items:center;gap:var(--diffs-gap-inline,var(--diffs-gap-fallback));min-height:calc(1lh + var(--diffs-gap-block,var(--diffs-gap-fallback))*3);z-index:2;flex-direction:row;padding-inline:16px;display:flex;position:relative;top:0}[data-header-content]{align-items:center;gap:var(--diffs-gap-inline,var(--diffs-gap-fallback));white-space:nowrap;flex-direction:row;min-width:0;display:flex}[data-header-content] [data-prev-name],[data-header-content] [data-title]{text-overflow:ellipsis;white-space:nowrap;direction:rtl;min-width:0;overflow:hidden}[data-prev-name]{opacity:.7}[data-rename-icon]{fill:currentColor;flex-grow:0;flex-shrink:0}[data-diffs-header=default] [data-metadata]{white-space:nowrap;align-items:center;gap:1ch;display:flex}[data-diffs-header=default] [data-additions-count]{font-family:var(--diffs-font-family,var(--diffs-font-fallback));color:var(--diffs-addition-base)}[data-diffs-header=default] [data-deletions-count]{font-family:var(--diffs-font-family,var(--diffs-font-fallback));color:var(--diffs-deletion-base)}[data-change-icon]{fill:currentColor;flex-shrink:0}[data-change-icon=change],[data-change-icon=rename-pure],[data-change-icon=rename-changed]{color:var(--diffs-modified-base)}[data-change-icon=new]{color:var(--diffs-addition-base)}[data-change-icon=deleted]{color:var(--diffs-deletion-base)}[data-change-icon=file]{opacity:.6}[data-annotation-content]{z-index:2;isolation:isolate;align-self:flex-start;min-width:0;display:flow-root;position:relative}[data-overflow=scroll] [data-annotation-content],[data-overflow=scroll] [data-merge-conflict-actions-content]{width:var(--diffs-column-content-width,auto);left:var(--diffs-column-number-width,0);position:sticky}[data-annotation-slot]{text-wrap-mode:wrap;word-break:normal;white-space-collapse:collapse}[data-gutter-utility-slot]{touch-action:none;justify-content:flex-end;display:flex;position:absolute;top:0;bottom:0;right:0}[data-utility-button]{appearance:none;cursor:pointer;width:1lh;height:1lh;font-size:var(--diffs-font-size,13px);line-height:var(--diffs-line-height,20px);background-color:var(--diffs-modified-base);color:var(--diffs-bg);fill:currentColor;z-index:4;touch-action:none;border:none;border-radius:4px;justify-content:center;align-items:center;margin-right:calc(1ch - 1lh);padding:0;display:flex;position:relative}[data-utility-button]:before{content:"";display:block;position:absolute;inset:0 0 0 -4px}[data-decoration-bar-stack]{pointer-events:none;isolation:isolate;z-index:1;background-color:var(--diffs-decoration-bar-color,transparent);box-sizing:content-box;border-left:2px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg);width:6px;position:absolute;top:0;bottom:0;right:-2px}[data-decoration-bar-depth="1"] [data-decoration-bar-stack]{background-color:color-mix(in lab, var(--diffs-bg) 20%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-depth="2"] [data-decoration-bar-stack]{background-color:color-mix(in lab, var(--diffs-bg) 45%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-depth="3"] [data-decoration-bar-stack]{background-color:color-mix(in lab, var(--diffs-bg) 65%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-start] [data-decoration-bar-stack]{border-top-left-radius:5px;border-top-right-radius:5px}[data-decoration-bar-end] [data-decoration-bar-stack]{z-index:3;border-bottom-right-radius:5px;border-bottom-left-radius:5px}[data-placeholder]{contain:strict}[data-error-wrapper]{padding:var(--diffs-gap-block,var(--diffs-gap-fallback)) var(--diffs-gap-inline,var(--diffs-gap-fallback));scrollbar-width:none;max-height:400px;overflow:auto}[data-error-wrapper] [data-error-message]{color:var(--diffs-deletion-base);font-size:18px;font-weight:700}[data-error-wrapper] [data-error-stack]{color:var(--diffs-fg-number)}}@layer theme,rendered,unsafe;';var wk;function Jf(t){if(wk!=null)return wk;let e=t.host;if(typeof HTMLElement<"u"&&e instanceof HTMLElement&&!e.isConnected)return;let n=document.createElement("div");n.setAttribute("data-code",""),n.setAttribute(eN,"true");let r=document.createElement("div");return r.style.position="relative",r.style.width="200%",r.style.height="200%",n.appendChild(r),t.appendChild(n),wk=Math.max(n.offsetHeight-n.clientHeight,0),n.remove(),wk}function dP(t){return`${o7}: ${t==null?"var(--diffs-scrollbar-gutter-fallback)":`${t}px`};`}var Qne="@layer base, theme, rendered, unsafe;",U$e=new RegExp(`${V$e(o7)}\\s*:\\s*[^;]+;`);function vk(t){return`${Qne} +</svg>`;function Kne(t,e){return t.lineNumber===e.lineNumber&&t.metadata===e.metadata}function gk(t,e){return t==null||e==null?t===e:G$e(t.customProperties,e.customProperties)&&t.type===e.type&&t.diffIndicators===e.diffIndicators&&t.disableBackground===e.disableBackground&&t.disableLineNumbers===e.disableLineNumbers&&t.overflow===e.overflow&&t.split===e.split&&t.totalLines===e.totalLines}var Xne={};function G$e(t=Xne,e=Xne){if(t===e)return!0;let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}function bk(t){let e=document.createElement("div");return e.dataset.annotationSlot="",e.slot=t,e.style.whiteSpace="normal",e}function yk(){let t=document.createElement("div");return t.slot="gutter-utility-slot",t.style.position="absolute",t.style.top="0",t.style.bottom="0",t.style.textAlign="center",t.style.whiteSpace="normal",t.style.touchAction="none",t}function xk(){let t=document.createElement("style");return t.setAttribute(Pp,""),t}var Yne='@layer base,theme,rendered,unsafe;@layer base{:host{--diffs-font-fallback:"SF Mono", Monaco, Consolas, "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;--diffs-header-font-fallback:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;--diffs-mixer:light-dark(#000,#fff);--diffs-gap-fallback:8px;--diffs-scrollbar-gutter-fallback:6px;--diffs-scrollbar-gutter:var(--diffs-scrollbar-gutter-override,var(--diffs-scrollbar-gutter-measured,var(--diffs-scrollbar-gutter-fallback)));--diffs-added-light:#0dbe4e;--diffs-added-dark:#5ecc71;--diffs-modified-light:#009fff;--diffs-modified-dark:#69b1ff;--diffs-deleted-light:#ff2e3f;--diffs-deleted-dark:#ff6762;color-scheme:light dark;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));font-size:var(--diffs-font-size,13px);line-height:var(--diffs-line-height,20px);font-feature-settings:var(--diffs-font-features);--diffs-bg:light-dark(var(--diffs-light-bg,#fff),var(--diffs-dark-bg,#000));--diffs-bg-buffer:var(--diffs-bg-buffer-override,light-dark(color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))));--diffs-bg-context:var(--diffs-bg-context-override,light-dark(color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))));--diffs-bg-context-gutter:var(--diffs-bg-context-gutter-override,light-dark(color-mix(in lab, var(--diffs-bg-context) 90%, var(--diffs-bg)),color-mix(in lab, var(--diffs-bg-context) 45%, var(--diffs-bg))));--diffs-bg-separator:var(--diffs-bg-separator-override,light-dark(color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))));--diffs-fg:light-dark(var(--diffs-light,#000),var(--diffs-dark,#fff));--diffs-fg-number:var(--diffs-fg-number-override,light-dark(color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))));--diffs-fg-conflict-marker:var(--diffs-fg-conflict-marker-override,var(--diffs-fg-number));--diffs-deletion-base:var(--diffs-deletion-color-override,light-dark(var(--diffs-light-deletion-color,var(--diffs-deletion-color,var(--diffs-deleted-light))),var(--diffs-dark-deletion-color,var(--diffs-deletion-color,var(--diffs-deleted-dark)))));--diffs-addition-base:var(--diffs-addition-color-override,light-dark(var(--diffs-light-addition-color,var(--diffs-addition-color,var(--diffs-added-light))),var(--diffs-dark-addition-color,var(--diffs-addition-color,var(--diffs-added-dark)))));--diffs-modified-base:var(--diffs-modified-color-override,light-dark(var(--diffs-light-modified-color,var(--diffs-modified-color,var(--diffs-modified-light))),var(--diffs-dark-modified-color,var(--diffs-modified-color,var(--diffs-modified-dark)))));--diffs-bg-deletion:var(--diffs-bg-deletion-override,light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))));--diffs-bg-deletion-emphasis:var(--diffs-bg-deletion-emphasis-override,light-dark(rgb(from var(--diffs-deletion-base) r g b / .15),rgb(from var(--diffs-deletion-base) r g b / .2)));--diffs-bg-addition:var(--diffs-bg-addition-override,light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))));--diffs-bg-addition-emphasis:var(--diffs-bg-addition-emphasis-override,light-dark(rgb(from var(--diffs-addition-base) r g b / .15),rgb(from var(--diffs-addition-base) r g b / .2)));--diffs-selection-base:var(--diffs-modified-base);--diffs-selection-number-fg:light-dark(color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer)));background-color:var(--diffs-bg);color:var(--diffs-fg);display:block}pre,code,[data-error-wrapper]{isolation:isolate;font-family:var(--diffs-font-family,var(--diffs-font-fallback));outline:none;margin:0;padding:0;display:block}pre,code{background-color:var(--diffs-bg)}code{contain:content}*,:before,:after{box-sizing:border-box}[data-icon-sprite]{display:none}[data-diffs-header],[data-separator]{font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback))}[data-diffs-header][data-sticky]{z-index:1;background-color:var(--diffs-bg);position:sticky;top:0}[data-file-info]{color:var(--fg);background-color:color-mix(in lab, var(--bg) 98%, var(--fg));border-block:1px solid color-mix(in lab, var(--bg) 95%, var(--fg));padding:10px;font-weight:700}[data-diff],[data-file]{--diffs-grid-number-column-width:minmax(min-content, max-content);--diffs-code-grid:var(--diffs-grid-number-column-width) 1fr}[data-dehydrated]:is([data-diff],[data-file]){--diffs-code-grid:var(--diffs-grid-number-column-width) minmax(0, 1fr)}:is([data-diff],[data-file]):hover [data-code]::-webkit-scrollbar-thumb{background-color:var(--diffs-bg-context)}@supports (-webkit-touch-callout:none){:host{--diffs-scrollbar-gutter-fallback:0px}}[data-line] span{color:light-dark(var(--diffs-token-light,var(--diffs-light)),var(--diffs-token-dark,var(--diffs-dark)));background-color:light-dark(var(--diffs-token-light-bg,inherit),var(--diffs-token-dark-bg,inherit));font-weight:light-dark(var(--diffs-token-light-font-weight,inherit),var(--diffs-token-dark-font-weight,inherit));font-style:light-dark(var(--diffs-token-light-font-style,inherit),var(--diffs-token-dark-font-style,inherit));-webkit-text-decoration:light-dark(var(--diffs-token-light-text-decoration,inherit),var(--diffs-token-dark-text-decoration,inherit));text-decoration:light-dark(var(--diffs-token-light-text-decoration,inherit),var(--diffs-token-dark-text-decoration,inherit))}[data-line],[data-gutter-buffer],[data-column-number],[data-line-annotation],[data-no-newline],[data-merge-conflict],[data-merge-conflict-actions]{--diffs-computed-decoration-bg:var(--diffs-bg);--diffs-computed-diff-line-bg:var(--diffs-bg);--diffs-computed-selected-line-bg:var(--diffs-bg);color:var(--diffs-fg);background-color:var(--diffs-line-bg,var(--diffs-bg))}@media (pointer:fine){:is([data-line],[data-gutter-buffer],[data-column-number],[data-line-annotation],[data-no-newline],[data-merge-conflict],[data-merge-conflict-actions]):where([data-hovered]){--diffs-computed-hovered-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-selected-line-bg) 97%, var(--diffs-bg-hover-override,var(--diffs-mixer))),color-mix(in lab, var(--diffs-computed-selected-line-bg) 91%, var(--diffs-bg-hover-override,var(--diffs-mixer))));--diffs-line-bg:var(--diffs-computed-hovered-line-bg,inherit)}}[data-decoration-bg]:is([data-line],[data-no-newline]){--mix-deco-light:92%;--mix-deco-dark:85%}[data-decoration-bg][data-decoration-bg-depth="2"]:is([data-line],[data-no-newline]){--mix-deco-light:88%;--mix-deco-dark:80%}[data-decoration-bg][data-decoration-bg-depth="3"]:is([data-line],[data-no-newline]){--mix-deco-light:85%;--mix-deco-dark:78%}@media (pointer:fine){[data-decoration-bg][data-hovered]:is([data-line],[data-no-newline]):not([data-selected-line]){--mix-deco-light:85%;--mix-deco-dark:85%}[data-decoration-bg][data-hovered][data-decoration-bg-depth="2"]:is([data-line],[data-no-newline]):not([data-selected-line]){--mix-deco-light:83%;--mix-deco-dark:83%}[data-decoration-bg][data-hovered][data-decoration-bg-depth="3"]:is([data-line],[data-no-newline]):not([data-selected-line]){--mix-deco-light:81%;--mix-deco-dark:81%}}[data-decoration-bg]:is([data-line],[data-no-newline]){--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) var(--mix-deco-light), var(--diffs-decoration-bg)),color-mix(in lab, var(--diffs-bg) var(--mix-deco-dark), var(--diffs-decoration-bg)));--diffs-computed-diff-line-bg:var(--diffs-computed-decoration-bg);--diffs-computed-selected-line-bg:var(--diffs-computed-decoration-bg);--diffs-line-bg:var(--diffs-computed-decoration-bg)}[data-line-annotation],[data-gutter-buffer=annotation]{--diffs-annotation-bg:var(--diffs-bg-context);--diffs-computed-decoration-bg:var(--diffs-annotation-bg);--diffs-computed-diff-line-bg:var(--diffs-annotation-bg);--diffs-computed-selected-line-bg:var(--diffs-annotation-bg);--diffs-line-bg:var(--diffs-annotation-bg)}[data-merge-conflict-actions],[data-gutter-buffer=merge-conflict-action],[data-gutter-buffer=merge-conflict-marker-base],[data-gutter-buffer=merge-conflict-marker-separator],[data-merge-conflict=marker-base],[data-merge-conflict=marker-separator]{--diffs-computed-decoration-bg:var(--diffs-bg-context);--diffs-computed-diff-line-bg:var(--diffs-bg-context);--diffs-computed-selected-line-bg:var(--diffs-bg-context);--diffs-line-bg:var(--diffs-bg-context)}[data-gutter-buffer=merge-conflict-marker-start],[data-merge-conflict=marker-start]{--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) 78%, var(--conflict-bg-current-header-override,var(--diffs-addition-base))),color-mix(in lab, var(--diffs-bg) 68%, var(--conflict-bg-current-header-override,var(--diffs-addition-base))));--diffs-computed-diff-line-bg:var(--diffs-computed-decoration-bg);--diffs-computed-selected-line-bg:var(--diffs-computed-decoration-bg);--diffs-line-bg:var(--diffs-computed-decoration-bg)}[data-gutter-buffer=merge-conflict-marker-end],[data-merge-conflict=marker-end]{--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) 78%, var(--conflict-bg-incoming-header-override,var(--diffs-modified-base))),color-mix(in lab, var(--diffs-bg) 68%, var(--conflict-bg-incoming-header-override,var(--diffs-modified-base))));--diffs-computed-diff-line-bg:var(--diffs-computed-decoration-bg);--diffs-computed-selected-line-bg:var(--diffs-computed-decoration-bg);--diffs-line-bg:var(--diffs-computed-decoration-bg)}[data-has-merge-conflict] [data-line-annotation],[data-has-merge-conflict] [data-gutter-buffer=annotation]{--diffs-computed-decoration-bg:var(--diffs-bg);--diffs-computed-diff-line-bg:var(--diffs-bg);--diffs-computed-selected-line-bg:var(--diffs-bg);--diffs-line-bg:var(--diffs-bg)}:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number]{--mix-light:91%;--mix-dark:85%}:where([data-background]) [data-line],:where([data-background]) [data-no-newline]{--mix-light:88%;--mix-dark:80%}:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]{--diffs-diff-line-mix-target:var(--diffs-bg)}[data-line-type=change-deletion]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--diffs-bg-deletion-override,var(--diffs-deletion-base))}@media (pointer:fine){[data-line-type=change-deletion][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:75%}}[data-line-type=change-deletion]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-deletion-override,var(--diffs-deletion-base));--diffs-diff-line-mix-target:var(--diffs-bg-deletion-number-override,var(--diffs-deletion-base))}[data-line-type=change-deletion]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-line-type=change-addition]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--diffs-bg-addition-override,var(--diffs-addition-base))}@media (pointer:fine){[data-line-type=change-addition][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:70%}}[data-line-type=change-addition]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-addition-override,var(--diffs-addition-base));--diffs-diff-line-mix-target:var(--diffs-bg-addition-number-override,var(--diffs-addition-base))}[data-line-type=change-addition]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-merge-conflict=current]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--conflict-bg-current-override,var(--diffs-addition-base))}[data-merge-conflict=current]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-addition-override,var(--diffs-addition-base));--diffs-diff-line-mix-target:var(--conflict-bg-current-number-override,var(--diffs-addition-base))}@media (pointer:fine){[data-merge-conflict=current][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:70%}}[data-merge-conflict=current]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-merge-conflict=incoming]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-diff-line-mix-target:var(--conflict-bg-incoming-override,var(--diffs-modified-base))}[data-merge-conflict=incoming]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]):where([data-gutter-buffer],[data-column-number]){color:var(--diffs-modified-base);--diffs-diff-line-mix-target:var(--conflict-bg-incoming-number-override,var(--diffs-modified-base))}@media (pointer:fine){[data-merge-conflict=incoming][data-hovered]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--mix-light:80%;--mix-dark:70%}}[data-merge-conflict=incoming]:is(:where([data-background]) [data-gutter-buffer],:where([data-background]) [data-column-number],:where([data-background]) [data-line],:where([data-background]) [data-no-newline]){--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)));--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-line-bg:var(--diffs-computed-diff-line-bg,inherit)}[data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]{--diffs-selection-mix-target:var(--diffs-bg-selection-override,var(--diffs-selection-base))}[data-selected-line]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]){--mix-selection-light:82%;--mix-selection-dark:75%}@media (pointer:fine){[data-selected-line][data-hovered]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):not([data-merge-conflict],[data-line-type=change-addition],[data-line-type=change-deletion]){--mix-selection-light:75%;--mix-selection-dark:70%}}[data-selected-line]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-gutter-buffer],[data-column-number]){--mix-selection-light:75%;--mix-selection-dark:60%;--diffs-selection-mix-target:var(--diffs-bg-selection-number-override,var(--diffs-selection-base))}@media (pointer:fine){[data-selected-line][data-hovered]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]):where([data-gutter-buffer],[data-column-number]):not([data-merge-conflict],[data-line-type=change-addition],[data-line-type=change-deletion]){--mix-selection-light:70%;--mix-selection-dark:55%}}[data-selected-line]:is([data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline]){--diffs-computed-selected-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-diff-line-bg) var(--mix-selection-light), var(--diffs-selection-mix-target)),color-mix(in lab, var(--diffs-computed-diff-line-bg) var(--mix-selection-dark), var(--diffs-selection-mix-target)));--diffs-line-bg:var(--diffs-computed-selected-line-bg,inherit)}[data-selected-line]:is([data-gutter-buffer],[data-column-number]){color:var(--diffs-selection-number-fg)}[data-no-newline]{-webkit-user-select:none;user-select:none}[data-no-newline] span{opacity:.6}[data-diff-type=split][data-overflow=scroll]{grid-template-columns:1fr 1fr;display:grid}[data-diff-type=split][data-overflow=scroll] [data-additions]{border-left:1px solid var(--diffs-bg)}[data-diff-type=split][data-overflow=scroll] [data-deletions]{border-right:1px solid var(--diffs-bg)}[data-code]{grid-auto-flow:dense;grid-template-columns:var(--diffs-code-grid);overflow:var(--diffs-overflow-override,scroll) clip;overscroll-behavior-x:none;tab-size:var(--diffs-tab-size,2);padding-top:var(--diffs-gap-block,var(--diffs-gap-fallback));padding-bottom:max(0px, calc(var(--diffs-gap-block,var(--diffs-gap-fallback)) - var(--diffs-scrollbar-gutter)));scrollbar-gutter:stable;align-self:flex-start;display:grid}[data-diffs-scrollbar-measure]{opacity:0;pointer-events:none;scrollbar-gutter:auto;grid-template-columns:none;width:100px;height:100px;padding:0;position:absolute;top:-200px;left:-200px}[data-container-size]{container-type:inline-size}[data-code]::-webkit-scrollbar{width:0;height:var(--diffs-scrollbar-gutter)}[data-code]::-webkit-scrollbar-track{background:0 0}[data-code]::-webkit-scrollbar-thumb{background-color:#0000;background-clip:content-box;border:1px solid #0000;border-radius:3px}[data-code]::-webkit-scrollbar-corner{background-color:#0000}@supports ((-moz-appearance:none)){[data-code]{scrollbar-width:thin;scrollbar-color:var(--diffs-bg-context) transparent;padding-bottom:var(--diffs-gap-block,var(--diffs-gap-fallback))}}:is([data-diffs-header]~[data-diff],[data-diffs-header]~[data-file]) [data-code],[data-overflow=wrap]:is([data-diffs-header]~[data-diff],[data-diffs-header]~[data-file]){padding-top:0}[data-gutter]{grid-template-rows:subgrid;grid-template-columns:subgrid;z-index:3;background-color:var(--diffs-bg);grid-column:1;display:grid;position:relative}[data-gutter] [data-gutter-buffer],[data-gutter] [data-column-number]{border-right:var(--diffs-gap-style,2px solid var(--diffs-bg))}[data-content]{grid-template-rows:subgrid;grid-template-columns:subgrid;background-color:var(--diffs-bg);grid-column:2;min-width:0;display:grid}[data-diff-type=split][data-overflow=wrap]{grid-auto-flow:dense;grid-template-columns:repeat(2, var(--diffs-code-grid));padding-block:var(--diffs-gap-block,var(--diffs-gap-fallback));display:grid}[data-diff-type=split][data-overflow=wrap] [data-deletions]{display:contents}:is([data-diff-type=split][data-overflow=wrap] [data-deletions]) [data-gutter]{grid-column:1}:is([data-diff-type=split][data-overflow=wrap] [data-deletions]) [data-content]{border-right:1px solid var(--diffs-bg);grid-column:2}[data-diff-type=split][data-overflow=wrap] [data-additions]{display:contents}:is([data-diff-type=split][data-overflow=wrap] [data-additions]) [data-gutter]{border-left:1px solid var(--diffs-bg);grid-column:3}:is([data-diff-type=split][data-overflow=wrap] [data-additions]) [data-content]{grid-column:4}[data-overflow=scroll] [data-gutter]{position:sticky;left:0}[data-interactive-lines] [data-line]{cursor:pointer}[data-interactive-line-numbers] [data-column-number]{cursor:pointer;touch-action:none}[data-content-buffer],[data-gutter-buffer]{-webkit-user-select:none;user-select:none;min-height:1lh;position:relative}[data-gutter-buffer]{padding-left:2ch;padding-right:1ch}[data-gutter-buffer]:before{content:"";min-width:var(--diffs-min-number-column-width,var(--diffs-min-number-column-width-default,3ch));display:block}[data-gutter-buffer=annotation]{--diffs-annotation-bg:var(--diffs-bg-context-gutter);min-height:0}[data-gutter-buffer=buffer]{--diffs-line-bg:var(--diffs-bg-context-gutter)}[data-content-buffer]{background-position:5px 0;background-size:8px 8px;background-origin:border-box;background-image:repeating-linear-gradient(-45deg, transparent, transparent 4.242px, var(--diffs-bg-buffer) 4.242px, var(--diffs-bg-buffer) 5.656px);grid-column:1}[data-separator]{box-sizing:content-box;background-color:var(--diffs-bg)}[data-separator=simple]{min-height:4px}[data-separator=line-info],[data-separator=line-info-basic],[data-separator=metadata],[data-separator=simple]{background-color:var(--diffs-bg-separator)}[data-separator=line-info],[data-separator=line-info-basic],[data-separator=metadata]{height:32px;position:relative}[data-separator-wrapper]{-webkit-user-select:none;user-select:none;fill:currentColor;background-color:var(--diffs-bg);align-items:center;height:100%;display:flex;position:absolute;inset-inline:0}[data-content] [data-separator-wrapper]{display:none}[data-separator=metadata] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);height:100%;color:var(--diffs-fg-number);white-space:nowrap;text-overflow:ellipsis;min-width:min-content;padding-inline:1ch;inset-inline:100% auto;overflow:hidden}[data-separator=line-info]{margin-block:var(--diffs-gap-block,var(--diffs-gap-fallback))}[data-separator=line-info] [data-separator-wrapper]{min-width:16px}[data-separator=line-info-basic],[data-separator=metadata]{margin-block:0}[data-separator=line-info][data-separator-first]{margin-top:0}[data-separator=line-info][data-separator-last]{margin-bottom:0}[data-expand-index] [data-separator-wrapper]{grid-template-columns:32px auto;display:grid}[data-expand-index] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:32px 32px auto}[data-expand-button],[data-separator-content]{background-color:var(--diffs-bg-separator);flex:none;align-items:center;display:flex}[data-expand-index] [data-separator-content]:hover{cursor:pointer;text-decoration:underline}[data-expand-button]{cursor:pointer;min-width:32px;color:var(--diffs-fg-number);border-right:2px solid var(--diffs-bg);flex-shrink:0;justify-content:center;align-self:stretch}[data-expand-button]:hover{color:var(--diffs-fg)}[data-expand-button][data-expand-all-button]{display:none}[data-expand-down] [data-icon]{transform:scaleY(-1)}[data-separator-content]{height:100%;color:var(--diffs-fg-number);flex:auto;justify-content:flex-start;padding:0 1ch;overflow:hidden}:is([data-separator=line-info],[data-separator=line-info-basic]) [data-separator-content]{-webkit-user-select:none;user-select:none;height:100%;overflow:clip}[data-unmodified-lines]{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;display:block;overflow:hidden}@supports (width:1cqi){[data-unified] [data-separator=line-info] [data-separator-wrapper]{padding-inline:var(--diffs-gap-inline,var(--diffs-gap-fallback));width:100cqi}:is([data-unified] [data-separator=line-info] [data-separator-wrapper]) [data-separator-content]{border-radius:6px}[data-unified] [data-separator=line-info][data-expand-index] [data-separator-wrapper] [data-separator-content]{border-top-left-radius:unset;border-bottom-left-radius:unset}[data-gutter] [data-separator=line-info] [data-separator-wrapper]{padding-left:var(--diffs-gap-inline,var(--diffs-gap-fallback))}[data-gutter] [data-separator=line-info] [data-separator-content]{border-top-left-radius:6px;border-bottom-left-radius:6px}[data-gutter] [data-separator=line-info][data-expand-index] [data-separator-content]{border-top-left-radius:unset;border-bottom-left-radius:unset}[data-additions] [data-content] [data-separator=line-info]{background-color:var(--diffs-bg)}:is([data-additions] [data-content] [data-separator=line-info]) [data-separator-wrapper]{display:none}[data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);border-top-right-radius:6px;border-bottom-right-radius:6px;height:100%;display:block}:is([data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]) [data-separator-content],:is([data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]) [data-expand-button]{display:none}[data-overflow=scroll] [data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]{width:calc(100cqi - var(--diffs-gap-inline,var(--diffs-gap-fallback)))}[data-overflow=wrap] [data-additions] [data-content] [data-separator=line-info] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);height:100%;margin-right:var(--diffs-gap-inline,var(--diffs-gap-fallback));border-top-right-radius:6px;border-bottom-right-radius:6px;display:block}:is([data-overflow=wrap] [data-additions] [data-content] [data-separator=line-info] [data-separator-wrapper]) [data-separator-content],:is([data-overflow=wrap] [data-additions] [data-content] [data-separator=line-info] [data-separator-wrapper]) [data-expand-button]{display:none}:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-both],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:6px}@media (pointer:fine){[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:unset}[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down]{border-bottom-left-radius:6px;border-top-left-radius:unset}}}@media (pointer:coarse){[data-separator=line-info-basic] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:34px 34px auto}:is([data-separator=line-info-basic] [data-separator-wrapper][data-separator-multi-button]) [data-separator-content]{grid-column:unset;grid-row:unset}@supports (width:1cqi){:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-both],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down],:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up],[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:6px}[data-separator-multi-button]:is([data-separator=line-info] [data-separator-wrapper]) [data-expand-down]{border-bottom-left-radius:unset;border-top-left-radius:unset}}}@media (pointer:fine){[data-separator-wrapper][data-separator-multi-button]{grid-template-rows:50% 50%;display:grid}[data-separator-wrapper][data-separator-multi-button] [data-separator-content]{grid-area:1/2/-1;min-width:min-content}[data-separator-wrapper][data-separator-multi-button] [data-expand-button]{grid-column:1}[data-separator=line-info] [data-separator-wrapper],[data-separator=line-info] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:34px auto}[data-separator=line-info-basic][data-expand-index] [data-separator-wrapper]{grid-template-columns:100% auto}:is(:is([data-separator=line-info],[data-separator=line-info-basic]) [data-separator-multi-button]) [data-expand-up]{border-bottom:1px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg)}:is(:is([data-separator=line-info],[data-separator=line-info-basic]) [data-separator-multi-button]) [data-expand-down]{border-top:1px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg)}}[data-additions] [data-gutter] [data-separator-wrapper],[data-additions] [data-separator=line-info-basic] [data-separator-wrapper],[data-content] [data-separator-wrapper]{display:none}[data-line-annotation]{min-height:var(--diffs-annotation-min-height,0);z-index:2}[data-merge-conflict-actions]{z-index:2}[data-separator=custom]{grid-template-columns:subgrid;display:grid}[data-line],[data-column-number],[data-no-newline]{padding-inline:1ch;position:relative}[data-indicators=classic] [data-line]{padding-inline-start:2ch}:is([data-no-newline]:is([data-indicators=classic] [data-line-type=change-addition],[data-indicators=classic] [data-line-type=change-deletion]),[data-line]:is([data-indicators=classic] [data-line-type=change-addition],[data-indicators=classic] [data-line-type=change-deletion])):before{-webkit-user-select:none;user-select:none;width:1ch;height:1lh;display:inline-block;position:absolute;top:0;left:0}:is([data-line]:is([data-indicators=classic] [data-line-type=change-addition]),[data-no-newline]:is([data-indicators=classic] [data-line-type=change-addition])):before{content:"+";color:var(--diffs-addition-base)}:is([data-line]:is([data-indicators=classic] [data-line-type=change-deletion]),[data-no-newline]:is([data-indicators=classic] [data-line-type=change-deletion])):before{content:"-";color:var(--diffs-deletion-base)}[data-column-number]:is([data-indicators=bars] [data-line-type=change-deletion],[data-indicators=bars] [data-line-type=change-addition]):before{content:"";-webkit-user-select:none;user-select:none;contain:strict;width:4px;height:100%;display:block;position:absolute;top:0;left:0}[data-column-number]:is([data-indicators=bars] [data-line-type=change-deletion]):before{background-image:linear-gradient(0deg, var(--diffs-bg-deletion) 50%, var(--diffs-deletion-base) 50%);background-repeat:repeat;background-size:2px 2px;background-size:calc(1lh/round(1lh / 2px)) calc(1lh/round(1lh / 2px))}[data-column-number]:is([data-indicators=bars] [data-line-type=change-addition]):before{background-color:var(--diffs-addition-base)}[data-overflow=wrap] [data-line],[data-overflow=wrap] [data-annotation-content]{white-space:pre-wrap;word-break:break-word}[data-overflow=scroll] [data-line]{white-space:pre;min-height:1lh}[data-column-number]{box-sizing:content-box;text-align:right;-webkit-user-select:none;user-select:none;color:var(--diffs-fg-number);padding-left:2ch}[data-line-number-content]{min-width:var(--diffs-min-number-column-width,var(--diffs-min-number-column-width-default,3ch));z-index:1;display:inline-block;position:relative}[data-disable-line-numbers] [data-gutter-buffer],[data-disable-line-numbers] [data-column-number]{min-width:4px;padding:0}:is([data-disable-line-numbers] [data-gutter-buffer],[data-disable-line-numbers] [data-column-number]):before{min-width:0}[data-disable-line-numbers] [data-line-number-content]{display:none}[data-disable-line-numbers] [data-gutter-utility-slot]{right:unset;justify-content:flex-start;left:0}[data-disable-line-numbers][data-indicators=bars] [data-gutter-utility-slot]{left:6px}[data-file][data-disable-line-numbers] [data-gutter-buffer],[data-file][data-disable-line-numbers] [data-column-number]{border-right:0;min-width:0}[data-diff-span]{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:3px}[data-line-type=change-addition] [data-diff-span]{background-color:var(--diffs-bg-addition-emphasis)}[data-line-type=change-deletion] [data-diff-span]{background-color:var(--diffs-bg-deletion-emphasis)}[data-merge-conflict=marker-start],[data-merge-conflict=marker-base],[data-merge-conflict=marker-separator],[data-merge-conflict=marker-end]{color:var(--diffs-fg);padding-left:1ch}[data-merge-conflict=marker-start],[data-merge-conflict=marker-end]{align-items:center;display:flex}:is([data-merge-conflict=marker-start],[data-merge-conflict=marker-end]):after{color:var(--diffs-fg-conflict-marker);font-size:.75rem;font-style:normal;line-height:1.25rem;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));padding-left:1ch}[data-merge-conflict=marker-start]:after{content:"(Current Change)"}[data-merge-conflict=marker-end]:after{content:"(Incoming Change)"}[data-merge-conflict-actions-content]{min-height:1.75rem;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));color:var(--diffs-fg);align-items:center;gap:.25rem;padding-inline:.5rem;font-size:.75rem;line-height:1.2;display:flex}[data-merge-conflict-action]{appearance:none;color:var(--diffs-fg-number);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-style:normal}[data-merge-conflict-action]:hover{color:var(--diffs-fg)}[data-merge-conflict-action=current]:hover{color:var(--diffs-addition-base)}[data-merge-conflict-action=incoming]:hover{color:var(--diffs-modified-base)}[data-merge-conflict-action-separator]{color:var(--diffs-fg-number);opacity:.6;-webkit-user-select:none;user-select:none}[data-diffs-header=default]{background-color:var(--diffs-bg);justify-content:space-between;align-items:center;gap:var(--diffs-gap-inline,var(--diffs-gap-fallback));min-height:calc(1lh + var(--diffs-gap-block,var(--diffs-gap-fallback))*3);z-index:2;flex-direction:row;padding-inline:16px;display:flex;position:relative;top:0}[data-header-content]{align-items:center;gap:var(--diffs-gap-inline,var(--diffs-gap-fallback));white-space:nowrap;flex-direction:row;min-width:0;display:flex}[data-header-content] [data-prev-name],[data-header-content] [data-title]{text-overflow:ellipsis;white-space:nowrap;direction:rtl;min-width:0;overflow:hidden}[data-prev-name]{opacity:.7}[data-rename-icon]{fill:currentColor;flex-grow:0;flex-shrink:0}[data-diffs-header=default] [data-metadata]{white-space:nowrap;align-items:center;gap:1ch;display:flex}[data-diffs-header=default] [data-additions-count]{font-family:var(--diffs-font-family,var(--diffs-font-fallback));color:var(--diffs-addition-base)}[data-diffs-header=default] [data-deletions-count]{font-family:var(--diffs-font-family,var(--diffs-font-fallback));color:var(--diffs-deletion-base)}[data-change-icon]{fill:currentColor;flex-shrink:0}[data-change-icon=change],[data-change-icon=rename-pure],[data-change-icon=rename-changed]{color:var(--diffs-modified-base)}[data-change-icon=new]{color:var(--diffs-addition-base)}[data-change-icon=deleted]{color:var(--diffs-deletion-base)}[data-change-icon=file]{opacity:.6}[data-annotation-content]{z-index:2;isolation:isolate;align-self:flex-start;min-width:0;display:flow-root;position:relative}[data-overflow=scroll] [data-annotation-content],[data-overflow=scroll] [data-merge-conflict-actions-content]{width:var(--diffs-column-content-width,auto);left:var(--diffs-column-number-width,0);position:sticky}[data-annotation-slot]{text-wrap-mode:wrap;word-break:normal;white-space-collapse:collapse}[data-gutter-utility-slot]{touch-action:none;justify-content:flex-end;display:flex;position:absolute;top:0;bottom:0;right:0}[data-utility-button]{appearance:none;cursor:pointer;width:1lh;height:1lh;font-size:var(--diffs-font-size,13px);line-height:var(--diffs-line-height,20px);background-color:var(--diffs-modified-base);color:var(--diffs-bg);fill:currentColor;z-index:4;touch-action:none;border:none;border-radius:4px;justify-content:center;align-items:center;margin-right:calc(1ch - 1lh);padding:0;display:flex;position:relative}[data-utility-button]:before{content:"";display:block;position:absolute;inset:0 0 0 -4px}[data-decoration-bar-stack]{pointer-events:none;isolation:isolate;z-index:1;background-color:var(--diffs-decoration-bar-color,transparent);box-sizing:content-box;border-left:2px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg);width:6px;position:absolute;top:0;bottom:0;right:-2px}[data-decoration-bar-depth="1"] [data-decoration-bar-stack]{background-color:color-mix(in lab, var(--diffs-bg) 20%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-depth="2"] [data-decoration-bar-stack]{background-color:color-mix(in lab, var(--diffs-bg) 45%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-depth="3"] [data-decoration-bar-stack]{background-color:color-mix(in lab, var(--diffs-bg) 65%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-start] [data-decoration-bar-stack]{border-top-left-radius:5px;border-top-right-radius:5px}[data-decoration-bar-end] [data-decoration-bar-stack]{z-index:3;border-bottom-right-radius:5px;border-bottom-left-radius:5px}[data-placeholder]{contain:strict}[data-error-wrapper]{padding:var(--diffs-gap-block,var(--diffs-gap-fallback)) var(--diffs-gap-inline,var(--diffs-gap-fallback));scrollbar-width:none;max-height:400px;overflow:auto}[data-error-wrapper] [data-error-message]{color:var(--diffs-deletion-base);font-size:18px;font-weight:700}[data-error-wrapper] [data-error-stack]{color:var(--diffs-fg-number)}}@layer theme,rendered,unsafe;';var wk;function e1(t){if(wk!=null)return wk;let e=t.host;if(typeof HTMLElement<"u"&&e instanceof HTMLElement&&!e.isConnected)return;let n=document.createElement("div");n.setAttribute("data-code",""),n.setAttribute(rN,"true");let r=document.createElement("div");return r.style.position="relative",r.style.width="200%",r.style.height="200%",n.appendChild(r),t.appendChild(n),wk=Math.max(n.offsetHeight-n.clientHeight,0),n.remove(),wk}function fP(t){return`${a7}: ${t==null?"var(--diffs-scrollbar-gutter-fallback)":`${t}px`};`}var Qne="@layer base, theme, rendered, unsafe;",U$e=new RegExp(`${V$e(a7)}\\s*:\\s*[^;]+;`);function vk(t){return`${Qne} @layer unsafe { ${t} }`}function kk(t,e="system",n){return`${Qne} @layer rendered { :host {${e==="system"?"":` color-scheme: ${e};`} - ${dP(n)} + ${fP(n)} ${t} } -}`}function Ck(t,e){let n=dP(e);return t.replace(U$e,n)}function V$e(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zb({code:t,pre:e,columnType:n,rowSpan:r,containerSize:i=!1}={}){return t==null&&(t=document.createElement("code"),t.setAttribute("data-code",""),n!=null&&t.setAttribute(`data-${n}`,""),e?.appendChild(t)),r!=null?t.style.setProperty("grid-row",`span ${r}`):t.style.removeProperty("grid-row"),i?t.setAttribute("data-container-size",""):t.removeAttribute("data-container-size"),t}function _k(t,e){if(e==null)return;let n=t.shadowRoot??t.attachShadow({mode:"open"});n.innerHTML===""&&(n.innerHTML=e)}function Sk(t,{type:e,diffIndicators:n,disableBackground:r,disableLineNumbers:i,overflow:o,split:a,totalLines:s,customProperties:l}){if(l!=null)for(let c in l){let u=l[c];u!=null&&t.setAttribute(c,`${u}`)}switch(e==="diff"?(t.setAttribute("data-diff",""),t.removeAttribute("data-file")):(t.setAttribute("data-file",""),t.removeAttribute("data-diff")),n){case"bars":case"classic":t.setAttribute("data-indicators",n);break;case"none":t.removeAttribute("data-indicators");break}return i?t.setAttribute("data-disable-line-numbers",""):t.removeAttribute("data-disable-line-numbers"),r?t.removeAttribute("data-background"):t.setAttribute("data-background",""),e==="diff"?t.setAttribute("data-diff-type",a?"split":"single"):t.removeAttribute("data-diff-type"),t.setAttribute("data-overflow",o),t.tabIndex=0,t.style.setProperty("--diffs-min-number-column-width-default",`${`${s}`.length}ch`),t}function Wb(t){if(typeof HTMLStyleElement<"u"&&t instanceof HTMLStyleElement)return!0;let e=t.tagName??t.nodeName;return typeof e=="string"&&e.toLowerCase()==="style"}function pP(t){return{theme:t?.theme,disableLineNumbers:t?.disableLineNumbers,overflow:t?.overflow,themeType:t?.themeType,collapsed:t?.collapsed,disableFileHeader:t?.disableFileHeader,disableVirtualizationBuffers:t?.disableVirtualizationBuffers,stickyHeader:t?.stickyHeader,preferredHighlighter:t?.preferredHighlighter,useCSSClasses:t?.useCSSClasses,useTokenTransformer:t?.useTokenTransformer,tokenizeMaxLineLength:t?.tokenizeMaxLineLength,tokenizeMaxLength:t?.tokenizeMaxLength,unsafeCSS:t?.unsafeCSS,headerRenderMode:t?.renderCustomHeader!=null?"custom":"default"}}function Lk({shadowRoot:t,currentNode:e,themeCSS:n}){if(n.trim()===""){e?.remove();return}return e??=Z$e(),e.textContent=n,e.parentNode!==t&&t.appendChild(e),e}function Z$e(){let t=document.createElement("style");return t.setAttribute(Np,""),t}if(typeof HTMLElement<"u"&&customElements.get(kc)==null){let t;class e extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;let r=this.attachShadow({mode:"open"});t==null&&(t=new CSSStyleSheet,t.replaceSync(Yne)),r.adoptedStyleSheets=[t]}connectedCallback(){Jf(this.shadowRoot??this.attachShadow({mode:"open"}))}}customElements.define(kc,e)}var Mk=!0;var W$e=[],K$e=-1,mP=class{static LoadedCustomComponent=Mk;__id=`file:${++K$e}`;type="file";fileContainer;spriteSVG;pre;code;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;hasAdoptedThemeCSS=!1;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;errorWrapper;placeHolder;lastRenderedHeaderHTML;cachedHeaderHTML;appliedPreAttributes;lastRowCount;mounted=!1;headerElement;headerCustom;headerPrefix;headerMetadata;fileRenderer;resizeManager;interactionManager;annotationCache=new Map;lineAnnotations=[];managersDirty=!1;file;renderRange;enabled=!0;constructor(t={theme:nr},e,n=!1){this.options=t,this.workerManager=e,this.isContainerManaged=n,this.fileRenderer=new Wne(t,this.handleHighlightRender,this.workerManager),this.resizeManager=new yv,this.interactionManager=new bv("file",Db(t)),this.workerManager?.subscribeToThemeChanges(this)}handleHighlightRender=()=>{this.rerender()};rerender(){!this.enabled||this.file==null||this.render({file:this.file,forceRender:!0,renderRange:this.renderRange})}onThemeChange(){this.fileRenderer.clearRenderCache(),this.rerender()}setOptions(t){t!=null&&(this.options=t,this.cachedHeaderHTML=void 0,this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(Db(this.options))}mergeOptions(t){this.options={...this.options,...t}}setThemeType(t){(this.options.themeType??"system")!==t&&(this.mergeOptions({themeType:t}),this.applyCachedThemeState(t))}applyCachedThemeState(t){if(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)return!1;let e=this.appliedThemeCSS.baseThemeType??t;return this.appliedThemeCSS.themeType===e?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,t,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!Cc(this.appliedThemeCSS.theme,this.options.theme??nr)}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(t){this.lineAnnotations=t}setSelectedLines(t,e){this.interactionManager.setSelection(t,e)}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}let{overflow:t="scroll"}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,t==="wrap"),this.managersDirty=!1}cleanUp(t=!1){this.emitPostRender(!0),this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.managersDirty=!1,this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer=void 0,this.mounted=!1,this.lineAnnotations=[],this.annotationCache.clear(),this.pre=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,t||(this.cachedHeaderHTML=void 0),this.errorWrapper=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.placeHolder=void 0,this.unsafeCSSStyle=void 0,t?this.fileRenderer.recycle():(this.fileRenderer.cleanUp(),this.workerManager=void 0,this.file=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(t){let{fileContainer:e,prerenderedHTML:n,preventEmit:r=!1,file:i,lineAnnotations:o}=t;this.hydrateElements(e,n),X$e(this.pre,i,this.options.collapsed)||Y$e(this.headerElement,i,this.options.disableFileHeader)?this.render({...t,preventEmit:!0}):this.hydrationSetup({file:i,lineAnnotations:o}),r||this.emitPostRender()}hydrateElements(t,e){this.fileContainer!==t&&this.emitPostRender(!0),_k(t,e);for(let n of Array.from(t.shadowRoot?.children??[])){if(n instanceof SVGElement){this.spriteSVG=n;continue}if(n instanceof HTMLElement){if(n instanceof HTMLPreElement){this.pre=n,this.appliedPreAttributes=void 0;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Np)){this.themeCSSStyle=n;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Pp)){this.unsafeCSSStyle=n,this.appliedUnsafeCSS=n.textContent;continue}if("diffsHeader"in n.dataset){this.headerElement=n,this.lastRenderedHeaderHTML=void 0;continue}}}this.pre!=null&&(this.syncCodeNodeFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=t,this.hydrateMeasuredScrollbar()}hydrationSetup({file:t,lineAnnotations:e}){this.lineAnnotations=e??this.lineAnnotations,this.file=t,this.fileRenderer.setOptions(pP(this.options)),this.syncInteractionOptions(),this.pre!=null&&(this.fileRenderer.hydrate(t),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}getOrCreateLineCache(t=this.file){return t!=null?this.fileRenderer.getOrCreateLineCache(t):W$e}render({file:t,fileContainer:e,forceRender:n=!1,preventEmit:r=!1,containerWrapper:i,deferManagers:o=!1,lineAnnotations:a,renderRange:s}){let{collapsed:l=!1,themeType:c="system"}=this.options;if(!this.enabled)throw new Error("File.render: attempting to call render after cleaned up");let u=l?void 0:s,d=this.renderRange,p=this.hasThemeChanged(),m=a!=null&&(a.length>0||this.lineAnnotations.length>0)?a!==this.lineAnnotations:!1,f=!Ec(this.file,t);if(!l&&!n&&Yf(u,this.renderRange)&&!f&&!m&&!p)return this.applyCachedThemeState(c);this.renderRange=u,f&&(this.cachedHeaderHTML=void 0),this.file=t,this.fileRenderer.setOptions(pP(this.options)),this.syncInteractionOptions(),a!=null&&this.setLineAnnotations(a),this.fileRenderer.setLineAnnotations(this.lineAnnotations);let{disableErrorHandling:h=!1,disableFileHeader:x=!1}=this.options;if(x&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),e=this.getOrCreateFileContainerNode(e,i),this.applyCachedThemeState(c),l){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let g=this.fileRenderer.renderFile(t,a7);g!=null&&this.applyThemeState(e,g.themeStyles,c,g.baseThemeType),g?.headerAST!=null&&this.applyHeaderToDOM(g.headerAST,e),this.injectUnsafeCSS()}catch(g){if(h)throw g;console.error(g),g instanceof Error&&this.applyErrorToDOM(g,e)}return r||this.emitPostRender(),!0}try{let g=this.getOrCreatePreNode(e);if(!this.canPartiallyRender(n,m,f||p)||!this.applyPartialRender(d,u)){let y=this.fileRenderer.renderFile(t,u);if(y==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(e,y.themeStyles,c,y.baseThemeType),y.headerAST!=null&&this.applyHeaderToDOM(y.headerAST,e),this.applyFullRender(y,g)}this.applyBuffers(g,u),this.injectUnsafeCSS(),this.managersDirty=!0,o||this.flushManagers(),this.renderAnnotations(),this.renderGutterUtility()}catch(g){if(h)throw g;console.error(g),g instanceof Error&&this.applyErrorToDOM(g,e)}return r||this.emitPostRender(),!0}emitPostRender(t=!1){let{fileContainer:e,options:{onPostRender:n}}=this;if(t){if(!this.mounted||(this.mounted=!1,e==null))return;n?.(e,this,"unmount");return}if(e==null)return;let r=this.mounted?"update":"mount";this.mounted=!0,n?.(e,this,r)}removeRenderedCode(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.code?.remove(),this.code=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:t}of this.annotationCache.values())t.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}canPartiallyRender(t,e,n){return!(t||e||n)}renderPlaceholder(t){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty("height",`${t}px`),!0}primeHighlightCache(){let{file:t,workerManager:e}=this;t==null||t.cacheKey==null||e==null||Qf(t)||this.fileRenderer.getOrCreateLineCache(t).length>(this.options.tokenizeMaxLength??ad)||e.primeFileHighlightCache(t)}cleanChildNodes(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.code?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.gutterUtilityContent?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.code=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:n}of this.annotationCache.values())n.remove();this.annotationCache.clear();return}let t=new Map(this.annotationCache),{renderAnnotation:e}=this.options;if(e!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${El(r)}`,o=this.annotationCache.get(i);if(o==null||!Kne(r,o.annotation)){o?.element.remove();let a=e(r);if(a==null)continue;o={element:bk(El(r)),annotation:r},o.element.appendChild(a),this.fileContainer.appendChild(o.element),this.annotationCache.set(i,o)}t.delete(i)}for(let[n,{element:r}]of t.entries())this.annotationCache.delete(n),r.remove()}renderGutterUtility(){let{renderGutterUtility:t}=this.options;if(this.fileContainer==null||t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let e=t(this.interactionManager.getHoveredLine);if(e!=null&&this.gutterUtilityContent!=null)return;if(e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=yk();n.appendChild(e),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}injectUnsafeCSS(){let{unsafeCSS:t}=this.options,e=this.fileContainer?.shadowRoot;if(e!=null){if(t==null||t===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===e&&this.appliedUnsafeCSS===t||(this.unsafeCSSStyle??=xk(),this.unsafeCSSStyle.parentNode!==e&&e.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=vk(t),this.appliedUnsafeCSS=t)}}applyThemeState(t,e,n,r){let i=t.shadowRoot??t.attachShadow({mode:"open"}),o=r??n,a=this.options.theme??nr,s=typeof a=="string"?a:{...a},l=Jf(i);if(this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===e&&this.appliedThemeCSS.themeType===o&&this.appliedThemeCSS.scrollbarGutter===l){this.appliedThemeCSS.theme=s;return}if(this.hasAdoptedThemeCSS&&this.themeCSSStyle?.parentNode===i){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l};return}this.themeCSSStyle=Lk({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:kk(e,o,l)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l}:void 0}hydrateMeasuredScrollbar(){let t=this.fileContainer?.shadowRoot;t==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=Ck(this.themeCSSStyle.textContent??"",Jf(t)))}applyFullRender(t,e){this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t),this.code=Zb({code:this.code}),this.code.innerHTML=this.fileRenderer.renderPartialHTML(this.fileRenderer.renderCodeAST(t)),e.replaceChildren(this.code),this.lastRowCount=t.rowCount}applyPartialRender(t,e){if(t==null||e==null)return!1;let{file:n,code:r}=this,i=r!=null?this.getColumns(r):void 0;if(n==null||r==null||i==null)return!1;let o=t.startingLine,a=e.startingLine,s=t.totalLines===1/0?Number.POSITIVE_INFINITY:o+t.totalLines,l=e.totalLines===1/0?Number.POSITIVE_INFINITY:a+e.totalLines,c=Math.max(o,a),u=Math.min(s,l);if(u<=c||!this.trimDOMToOverlap(i.gutter,c,u)||!this.trimDOMToOverlap(i.content,c,u))return!1;let{length:d}=i.content.children,p=(x,g)=>{if(!(g<=0))return this.fileRenderer.renderFile(n,{startingLine:x,totalLines:g,bufferBefore:0,bufferAfter:0})},m=a<c?p(a,c-a):void 0;if(m===void 0&&a<c)return!1;let f=l===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Math.max(0,l-u),h=l>u?p(u,f):void 0;return h===void 0&&l>u?!1:(this.cleanupErrorWrapper(),m!=null&&(i.gutter.insertAdjacentHTML("afterbegin",this.fileRenderer.renderPartialHTML(m.gutterAST)),i.content.insertAdjacentHTML("afterbegin",this.fileRenderer.renderPartialHTML(m.contentAST)),d+=m.rowCount),h!=null&&(i.gutter.insertAdjacentHTML("beforeend",this.fileRenderer.renderPartialHTML(h.gutterAST)),i.content.insertAdjacentHTML("beforeend",this.fileRenderer.renderPartialHTML(h.contentAST)),d+=h.rowCount),this.lastRowCount!==d&&(i.gutter.style.setProperty("grid-row",`span ${d}`),i.content.style.setProperty("grid-row",`span ${d}`),this.lastRowCount=d),!0)}getColumns(t){let e=t.children[0],n=t.children[1];if(!(!(e instanceof HTMLElement)||!(n instanceof HTMLElement)||e.dataset.gutter==null||n.dataset.content==null))return{gutter:e,content:n}}trimDOMToOverlap(t,e,n){let r=this.getDOMBoundaryIndices(t,[e,n]),i=r.get(e)??t.children.length,o=r.get(n)??t.children.length;if(i>o)return!1;for(let a=t.children.length-1;a>=o;a-=1)t.children[a]?.remove();for(let a=i-1;a>=0;a-=1)t.children[a]?.remove();return!0}getDOMBoundaryIndices(t,e){let n=[...new Set(e)].sort((s,l)=>s-l),r=new Map;if(n.length===0)return r;let i=0,o=n[i],{children:a}=t;for(let s=0;s<a.length;s+=1){let l=a[s];if(!(l instanceof HTMLElement))continue;let c=this.getLineIndexFromDOMNode(l);if(c!=null){for(;o!=null&&c>=o;)r.set(o,s),i+=1,o=n[i];if(i>=n.length)break}}for(let s of n)r.has(s)||r.set(s,a.length);return r}getLineIndexFromDOMNode(t){let e=t.dataset.lineIndex;if(e==null)return;let n=Number(e);return Number.isNaN(n)?void 0:n}applyBuffers(t,e){if(e==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}e.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",t.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${e.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),e.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",t.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${e.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyHeaderToDOM(t,e){let{file:n}=this;if(n==null)return;this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let r=this.cachedHeaderHTML??Vo(t);if(this.cachedHeaderHTML=r,r!==this.lastRenderedHeaderHTML){let s=document.createElement("div");s.innerHTML=r;let l=s.firstElementChild;if(!(l instanceof HTMLElement))return;this.headerElement!=null?e.shadowRoot?.replaceChild(l,this.headerElement):e.shadowRoot?.prepend(l),this.headerElement=l,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged)return;let{renderHeaderPrefix:i,renderCustomHeader:o,renderHeaderMetadata:a}=this.options;if(o!=null){let s=o(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(e,this.headerCustom,Ip,s),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0}else{let s=i?.(n)??void 0,l=a?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(e,this.headerPrefix,Ap,s),this.headerMetadata=this.upsertHeaderSlotElement(e,this.headerMetadata,$p,l),this.headerCustom?.remove(),this.headerCustom=void 0}}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(t,e,n,r){if(r==null){e?.remove();return}let i=e??this.createHeaderSlotElement(n);return e==null&&t.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(t,e){t.replaceChildren(),e instanceof Element?t.appendChild(e):t.innerText=`${e}`}createHeaderSlotElement(t){let e=document.createElement("div");return e.slot=t,e}getOrCreateFileContainerNode(t,e){let{fileContainer:n}=this,r=t??n??document.createElement(kc),i=n!==r;return i&&this.emitPostRender(!0),this.fileContainer=r,n!=null&&i&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),e!=null&&this.fileContainer.parentNode!==e&&e.appendChild(this.fileContainer),i&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(t){let{shadowRoot:e}=t;if(e!=null)for(let n of e.children)n instanceof SVGElement?this.spriteSVG??=n:Wb(n)&&n.hasAttribute(Np)?(this.themeCSSStyle??=n,this.hasAdoptedThemeCSS=!0):Wb(n)&&n.hasAttribute(Pp)&&(this.unsafeCSSStyle??=n,this.appliedUnsafeCSS??=this.options.unsafeCSS??void 0)}ensureSpriteSVG(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});if(this.spriteSVG==null){let n=document.createElement("div");n.innerHTML=hk;let r=n.firstChild;r instanceof SVGElement&&(this.spriteSVG=r)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==e&&e.appendChild(this.spriteSVG)}getOrCreatePreNode(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});return this.pre==null?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.code=void 0,e.appendChild(this.pre)):this.pre.parentNode!==e&&(t.shadowRoot?.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodeFromPre(t){this.code=void 0;for(let e of Array.from(t.children))if(e instanceof HTMLElement&&e.hasAttribute("data-code")){this.code=e;return}}applyPreNodeAttributes(t,{totalLines:e}){let{overflow:n="scroll",disableLineNumbers:r=!1}=this.options,i={type:"file",split:!1,overflow:n,disableLineNumbers:r,diffIndicators:"none",disableBackground:!0,totalLines:e};gk(i,this.appliedPreAttributes)||(Sk(t,i),this.appliedPreAttributes=i)}applyErrorToDOM(t,e){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=e.shadowRoot??e.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",n.appendChild(this.errorWrapper);let r=document.createElement("div");r.dataset.errorMessage="",r.innerText=t.message,this.errorWrapper.appendChild(r);let i=document.createElement("pre");i.dataset.errorStack="",i.innerText=t.stack??"No Error Stack",this.errorWrapper.appendChild(i)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function X$e(t,e,n=!1){return!n&&t==null&&e!=null}function Y$e(t,e,n=!1){return t==null&&e!=null&&!n}function Ek(t){return{...tv,...t}}function e1(t,e){let n=Q$e(t,e);return e?n:t.diffHeaderHeight+n}function Q$e(t,e){return t.paddingTop??(e?t.spacing:0)}function Tk(t){return t.paddingBottom??t.spacing}function Jne(t){switch(t){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}function Wp(t,e){return t===e||t?.cacheKey!=null&&t.cacheKey===e?.cacheKey}var J$e=new TextEncoder,eIe=new TextDecoder("utf-8",{ignoreBOM:!0}),tIe=/[\uD800-\uDFFF]/,fP=1024,Kb=new Uint8Array(fP);function hP(){Kb.length!==fP&&(Kb=new Uint8Array(fP))}function no(t){if(t.length===0)return t;if(tIe.test(t))return JSON.parse(JSON.stringify(t));let e=t.length*3;Kb.length<e&&(Kb=new Uint8Array(e));let{written:n}=J$e.encodeInto(t,Kb);return eIe.decode(Kb.subarray(0,n))}function nIe(t,e,n){try{return rIe(t,e,n)}finally{hP()}}function rIe(t,e,n=!1){let r=sIe(t),i=r?sre(t,"diff --git"):t.split(ev),o,a=[];for(let s of i){if(r&&!Jw.test(s)){if(o==null)o=no(s);else{if(n)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",s)}continue}else if(!r&&!ev.test(s)){if(o==null)o=no(s);else{if(n)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",s)}continue}let l=ire(s,{cacheKey:e!=null?`${e}-${a.length}`:void 0,isGitDiff:r,throwOnError:n});l!=null&&a.push(l)}return{patchMetadata:o,files:a}}function rre(t,e){try{return ire(t,e)}finally{hP()}}function ire(t,{cacheKey:e,isGitDiff:n=Jw.test(t),oldFile:r,newFile:i,throwOnError:o=!1}={}){let a=0,s=sre(t,"@@ "),l,c=r==null||i==null,u=0,d=0;for(let p of s){let m=are(p),f=m[0];if(f==null){if(o)throw Error("parsePatchContent: invalid hunk");console.error("parsePatchContent: invalid hunk",p);continue}let h=oIe(f),x=0,g=0;if(h==null||l==null){if(l!=null){if(o)throw Error("parsePatchContent: Invalid hunk");console.error("parsePatchContent: Invalid hunk",p);continue}l={name:"",type:"change",hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:c,additionLines:!c&&r!=null&&i!=null?ere(i.contents):[],deletionLines:!c&&r!=null&&i!=null?ere(r.contents):[],cacheKey:nre(e)},l.additionLines.length===1&&i?.contents===""&&(l.additionLines.length=0),l.deletionLines.length===1&&r?.contents===""&&(l.deletionLines.length=0);for(let S of m){if(S.startsWith("diff --git")){let T=S.trim().match(QI),M=T?.[1]??T?.[2],A=T?.[3]??T?.[4];if(M==null||A==null){if(o)throw Error("parsePatchContent: invalid git diff header");console.error("parsePatchContent: invalid git diff header",S);continue}l.name=no(A.trim()),M!==A&&(l.prevName=no(M.trim()));continue}let C=S.startsWith("---")||S.startsWith("+++")?S.match(n?YI:XI):null;if(C!=null){let[,T,M]=C;if(T==="---"&&M!=="/dev/null"){let A=no(M.trim());l.prevName=A,l.name=A}else T==="+++"&&M!=="/dev/null"&&(l.name=no(M.trim()))}else if(n){if(S.startsWith("new mode ")&&(l.mode=no(S.slice(8).trim())),S.startsWith("old mode ")&&(l.prevMode=no(S.slice(8).trim())),S.startsWith("new file mode")&&(l.type="new",l.mode=no(S.slice(13).trim())),S.startsWith("deleted file mode")&&(l.type="deleted",l.mode=no(S.slice(17).trim())),S.startsWith("similarity index")&&(S.startsWith("similarity index 100%")?l.type="rename-pure":l.type="rename-changed"),S.startsWith("index ")){let[,T,M,A]=S.trim().match(JI)??[];T!=null&&(l.prevObjectId=no(T)),M!=null&&(l.newObjectId=no(M)),A!=null&&(l.mode=no(A))}S.startsWith("rename from ")&&(l.prevName=no(S.slice(12).trim())),S.startsWith("rename to ")&&(l.name=no(S.slice(10).trim()))}}continue}let y,b;for(;m.length>0&&(m[m.length-1]===` +}`}function Ck(t,e){let n=fP(e);return t.replace(U$e,n)}function V$e(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Wb({code:t,pre:e,columnType:n,rowSpan:r,containerSize:i=!1}={}){return t==null&&(t=document.createElement("code"),t.setAttribute("data-code",""),n!=null&&t.setAttribute(`data-${n}`,""),e?.appendChild(t)),r!=null?t.style.setProperty("grid-row",`span ${r}`):t.style.removeProperty("grid-row"),i?t.setAttribute("data-container-size",""):t.removeAttribute("data-container-size"),t}function _k(t,e){if(e==null)return;let n=t.shadowRoot??t.attachShadow({mode:"open"});n.innerHTML===""&&(n.innerHTML=e)}function Sk(t,{type:e,diffIndicators:n,disableBackground:r,disableLineNumbers:i,overflow:o,split:a,totalLines:s,customProperties:l}){if(l!=null)for(let c in l){let u=l[c];u!=null&&t.setAttribute(c,`${u}`)}switch(e==="diff"?(t.setAttribute("data-diff",""),t.removeAttribute("data-file")):(t.setAttribute("data-file",""),t.removeAttribute("data-diff")),n){case"bars":case"classic":t.setAttribute("data-indicators",n);break;case"none":t.removeAttribute("data-indicators");break}return i?t.setAttribute("data-disable-line-numbers",""):t.removeAttribute("data-disable-line-numbers"),r?t.removeAttribute("data-background"):t.setAttribute("data-background",""),e==="diff"?t.setAttribute("data-diff-type",a?"split":"single"):t.removeAttribute("data-diff-type"),t.setAttribute("data-overflow",o),t.tabIndex=0,t.style.setProperty("--diffs-min-number-column-width-default",`${`${s}`.length}ch`),t}function Kb(t){if(typeof HTMLStyleElement<"u"&&t instanceof HTMLStyleElement)return!0;let e=t.tagName??t.nodeName;return typeof e=="string"&&e.toLowerCase()==="style"}function hP(t){return{theme:t?.theme,disableLineNumbers:t?.disableLineNumbers,overflow:t?.overflow,themeType:t?.themeType,collapsed:t?.collapsed,disableFileHeader:t?.disableFileHeader,disableVirtualizationBuffers:t?.disableVirtualizationBuffers,stickyHeader:t?.stickyHeader,preferredHighlighter:t?.preferredHighlighter,useCSSClasses:t?.useCSSClasses,useTokenTransformer:t?.useTokenTransformer,tokenizeMaxLineLength:t?.tokenizeMaxLineLength,tokenizeMaxLength:t?.tokenizeMaxLength,unsafeCSS:t?.unsafeCSS,headerRenderMode:t?.renderCustomHeader!=null?"custom":"default"}}function Lk({shadowRoot:t,currentNode:e,themeCSS:n}){if(n.trim()===""){e?.remove();return}return e??=Z$e(),e.textContent=n,e.parentNode!==t&&t.appendChild(e),e}function Z$e(){let t=document.createElement("style");return t.setAttribute(Np,""),t}if(typeof HTMLElement<"u"&&customElements.get(kc)==null){let t;class e extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;let r=this.attachShadow({mode:"open"});t==null&&(t=new CSSStyleSheet,t.replaceSync(Yne)),r.adoptedStyleSheets=[t]}connectedCallback(){e1(this.shadowRoot??this.attachShadow({mode:"open"}))}}customElements.define(kc,e)}var Mk=!0;var W$e=[],K$e=-1,gP=class{static LoadedCustomComponent=Mk;__id=`file:${++K$e}`;type="file";fileContainer;spriteSVG;pre;code;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;hasAdoptedThemeCSS=!1;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;errorWrapper;placeHolder;lastRenderedHeaderHTML;cachedHeaderHTML;appliedPreAttributes;lastRowCount;mounted=!1;headerElement;headerCustom;headerPrefix;headerMetadata;fileRenderer;resizeManager;interactionManager;annotationCache=new Map;lineAnnotations=[];managersDirty=!1;file;renderRange;enabled=!0;constructor(t={theme:nr},e,n=!1){this.options=t,this.workerManager=e,this.isContainerManaged=n,this.fileRenderer=new Wne(t,this.handleHighlightRender,this.workerManager),this.resizeManager=new yv,this.interactionManager=new bv("file",Fb(t)),this.workerManager?.subscribeToThemeChanges(this)}handleHighlightRender=()=>{this.rerender()};rerender(){!this.enabled||this.file==null||this.render({file:this.file,forceRender:!0,renderRange:this.renderRange})}onThemeChange(){this.fileRenderer.clearRenderCache(),this.rerender()}setOptions(t){t!=null&&(this.options=t,this.cachedHeaderHTML=void 0,this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(Fb(this.options))}mergeOptions(t){this.options={...this.options,...t}}setThemeType(t){(this.options.themeType??"system")!==t&&(this.mergeOptions({themeType:t}),this.applyCachedThemeState(t))}applyCachedThemeState(t){if(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)return!1;let e=this.appliedThemeCSS.baseThemeType??t;return this.appliedThemeCSS.themeType===e?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,t,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!Cc(this.appliedThemeCSS.theme,this.options.theme??nr)}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(t){this.lineAnnotations=t}setSelectedLines(t,e){this.interactionManager.setSelection(t,e)}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}let{overflow:t="scroll"}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,t==="wrap"),this.managersDirty=!1}cleanUp(t=!1){this.emitPostRender(!0),this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.managersDirty=!1,this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer=void 0,this.mounted=!1,this.lineAnnotations=[],this.annotationCache.clear(),this.pre=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,t||(this.cachedHeaderHTML=void 0),this.errorWrapper=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.placeHolder=void 0,this.unsafeCSSStyle=void 0,t?this.fileRenderer.recycle():(this.fileRenderer.cleanUp(),this.workerManager=void 0,this.file=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(t){let{fileContainer:e,prerenderedHTML:n,preventEmit:r=!1,file:i,lineAnnotations:o}=t;this.hydrateElements(e,n),X$e(this.pre,i,this.options.collapsed)||Y$e(this.headerElement,i,this.options.disableFileHeader)?this.render({...t,preventEmit:!0}):this.hydrationSetup({file:i,lineAnnotations:o}),r||this.emitPostRender()}hydrateElements(t,e){this.fileContainer!==t&&this.emitPostRender(!0),_k(t,e);for(let n of Array.from(t.shadowRoot?.children??[])){if(n instanceof SVGElement){this.spriteSVG=n;continue}if(n instanceof HTMLElement){if(n instanceof HTMLPreElement){this.pre=n,this.appliedPreAttributes=void 0;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Np)){this.themeCSSStyle=n;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Pp)){this.unsafeCSSStyle=n,this.appliedUnsafeCSS=n.textContent;continue}if("diffsHeader"in n.dataset){this.headerElement=n,this.lastRenderedHeaderHTML=void 0;continue}}}this.pre!=null&&(this.syncCodeNodeFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=t,this.hydrateMeasuredScrollbar()}hydrationSetup({file:t,lineAnnotations:e}){this.lineAnnotations=e??this.lineAnnotations,this.file=t,this.fileRenderer.setOptions(hP(this.options)),this.syncInteractionOptions(),this.pre!=null&&(this.fileRenderer.hydrate(t),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}getOrCreateLineCache(t=this.file){return t!=null?this.fileRenderer.getOrCreateLineCache(t):W$e}render({file:t,fileContainer:e,forceRender:n=!1,preventEmit:r=!1,containerWrapper:i,deferManagers:o=!1,lineAnnotations:a,renderRange:s}){let{collapsed:l=!1,themeType:c="system"}=this.options;if(!this.enabled)throw new Error("File.render: attempting to call render after cleaned up");let u=l?void 0:s,d=this.renderRange,p=this.hasThemeChanged(),m=a!=null&&(a.length>0||this.lineAnnotations.length>0)?a!==this.lineAnnotations:!1,f=!Ec(this.file,t);if(!l&&!n&&Qf(u,this.renderRange)&&!f&&!m&&!p)return this.applyCachedThemeState(c);this.renderRange=u,f&&(this.cachedHeaderHTML=void 0),this.file=t,this.fileRenderer.setOptions(hP(this.options)),this.syncInteractionOptions(),a!=null&&this.setLineAnnotations(a),this.fileRenderer.setLineAnnotations(this.lineAnnotations);let{disableErrorHandling:h=!1,disableFileHeader:x=!1}=this.options;if(x&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),e=this.getOrCreateFileContainerNode(e,i),this.applyCachedThemeState(c),l){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let g=this.fileRenderer.renderFile(t,s7);g!=null&&this.applyThemeState(e,g.themeStyles,c,g.baseThemeType),g?.headerAST!=null&&this.applyHeaderToDOM(g.headerAST,e),this.injectUnsafeCSS()}catch(g){if(h)throw g;console.error(g),g instanceof Error&&this.applyErrorToDOM(g,e)}return r||this.emitPostRender(),!0}try{let g=this.getOrCreatePreNode(e);if(!this.canPartiallyRender(n,m,f||p)||!this.applyPartialRender(d,u)){let y=this.fileRenderer.renderFile(t,u);if(y==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(e,y.themeStyles,c,y.baseThemeType),y.headerAST!=null&&this.applyHeaderToDOM(y.headerAST,e),this.applyFullRender(y,g)}this.applyBuffers(g,u),this.injectUnsafeCSS(),this.managersDirty=!0,o||this.flushManagers(),this.renderAnnotations(),this.renderGutterUtility()}catch(g){if(h)throw g;console.error(g),g instanceof Error&&this.applyErrorToDOM(g,e)}return r||this.emitPostRender(),!0}emitPostRender(t=!1){let{fileContainer:e,options:{onPostRender:n}}=this;if(t){if(!this.mounted||(this.mounted=!1,e==null))return;n?.(e,this,"unmount");return}if(e==null)return;let r=this.mounted?"update":"mount";this.mounted=!0,n?.(e,this,r)}removeRenderedCode(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.code?.remove(),this.code=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:t}of this.annotationCache.values())t.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}canPartiallyRender(t,e,n){return!(t||e||n)}renderPlaceholder(t){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty("height",`${t}px`),!0}primeHighlightCache(){let{file:t,workerManager:e}=this;t==null||t.cacheKey==null||e==null||Jf(t)||this.fileRenderer.getOrCreateLineCache(t).length>(this.options.tokenizeMaxLength??ad)||e.primeFileHighlightCache(t)}cleanChildNodes(){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.code?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.gutterUtilityContent?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.code=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:n}of this.annotationCache.values())n.remove();this.annotationCache.clear();return}let t=new Map(this.annotationCache),{renderAnnotation:e}=this.options;if(e!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${Tl(r)}`,o=this.annotationCache.get(i);if(o==null||!Kne(r,o.annotation)){o?.element.remove();let a=e(r);if(a==null)continue;o={element:bk(Tl(r)),annotation:r},o.element.appendChild(a),this.fileContainer.appendChild(o.element),this.annotationCache.set(i,o)}t.delete(i)}for(let[n,{element:r}]of t.entries())this.annotationCache.delete(n),r.remove()}renderGutterUtility(){let{renderGutterUtility:t}=this.options;if(this.fileContainer==null||t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let e=t(this.interactionManager.getHoveredLine);if(e!=null&&this.gutterUtilityContent!=null)return;if(e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=yk();n.appendChild(e),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}injectUnsafeCSS(){let{unsafeCSS:t}=this.options,e=this.fileContainer?.shadowRoot;if(e!=null){if(t==null||t===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===e&&this.appliedUnsafeCSS===t||(this.unsafeCSSStyle??=xk(),this.unsafeCSSStyle.parentNode!==e&&e.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=vk(t),this.appliedUnsafeCSS=t)}}applyThemeState(t,e,n,r){let i=t.shadowRoot??t.attachShadow({mode:"open"}),o=r??n,a=this.options.theme??nr,s=typeof a=="string"?a:{...a},l=e1(i);if(this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===e&&this.appliedThemeCSS.themeType===o&&this.appliedThemeCSS.scrollbarGutter===l){this.appliedThemeCSS.theme=s;return}if(this.hasAdoptedThemeCSS&&this.themeCSSStyle?.parentNode===i){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l};return}this.themeCSSStyle=Lk({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:kk(e,o,l)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l}:void 0}hydrateMeasuredScrollbar(){let t=this.fileContainer?.shadowRoot;t==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=Ck(this.themeCSSStyle.textContent??"",e1(t)))}applyFullRender(t,e){this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t),this.code=Wb({code:this.code}),this.code.innerHTML=this.fileRenderer.renderPartialHTML(this.fileRenderer.renderCodeAST(t)),e.replaceChildren(this.code),this.lastRowCount=t.rowCount}applyPartialRender(t,e){if(t==null||e==null)return!1;let{file:n,code:r}=this,i=r!=null?this.getColumns(r):void 0;if(n==null||r==null||i==null)return!1;let o=t.startingLine,a=e.startingLine,s=t.totalLines===1/0?Number.POSITIVE_INFINITY:o+t.totalLines,l=e.totalLines===1/0?Number.POSITIVE_INFINITY:a+e.totalLines,c=Math.max(o,a),u=Math.min(s,l);if(u<=c||!this.trimDOMToOverlap(i.gutter,c,u)||!this.trimDOMToOverlap(i.content,c,u))return!1;let{length:d}=i.content.children,p=(x,g)=>{if(!(g<=0))return this.fileRenderer.renderFile(n,{startingLine:x,totalLines:g,bufferBefore:0,bufferAfter:0})},m=a<c?p(a,c-a):void 0;if(m===void 0&&a<c)return!1;let f=l===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Math.max(0,l-u),h=l>u?p(u,f):void 0;return h===void 0&&l>u?!1:(this.cleanupErrorWrapper(),m!=null&&(i.gutter.insertAdjacentHTML("afterbegin",this.fileRenderer.renderPartialHTML(m.gutterAST)),i.content.insertAdjacentHTML("afterbegin",this.fileRenderer.renderPartialHTML(m.contentAST)),d+=m.rowCount),h!=null&&(i.gutter.insertAdjacentHTML("beforeend",this.fileRenderer.renderPartialHTML(h.gutterAST)),i.content.insertAdjacentHTML("beforeend",this.fileRenderer.renderPartialHTML(h.contentAST)),d+=h.rowCount),this.lastRowCount!==d&&(i.gutter.style.setProperty("grid-row",`span ${d}`),i.content.style.setProperty("grid-row",`span ${d}`),this.lastRowCount=d),!0)}getColumns(t){let e=t.children[0],n=t.children[1];if(!(!(e instanceof HTMLElement)||!(n instanceof HTMLElement)||e.dataset.gutter==null||n.dataset.content==null))return{gutter:e,content:n}}trimDOMToOverlap(t,e,n){let r=this.getDOMBoundaryIndices(t,[e,n]),i=r.get(e)??t.children.length,o=r.get(n)??t.children.length;if(i>o)return!1;for(let a=t.children.length-1;a>=o;a-=1)t.children[a]?.remove();for(let a=i-1;a>=0;a-=1)t.children[a]?.remove();return!0}getDOMBoundaryIndices(t,e){let n=[...new Set(e)].sort((s,l)=>s-l),r=new Map;if(n.length===0)return r;let i=0,o=n[i],{children:a}=t;for(let s=0;s<a.length;s+=1){let l=a[s];if(!(l instanceof HTMLElement))continue;let c=this.getLineIndexFromDOMNode(l);if(c!=null){for(;o!=null&&c>=o;)r.set(o,s),i+=1,o=n[i];if(i>=n.length)break}}for(let s of n)r.has(s)||r.set(s,a.length);return r}getLineIndexFromDOMNode(t){let e=t.dataset.lineIndex;if(e==null)return;let n=Number(e);return Number.isNaN(n)?void 0:n}applyBuffers(t,e){if(e==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}e.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",t.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${e.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),e.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",t.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${e.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyHeaderToDOM(t,e){let{file:n}=this;if(n==null)return;this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let r=this.cachedHeaderHTML??Vo(t);if(this.cachedHeaderHTML=r,r!==this.lastRenderedHeaderHTML){let s=document.createElement("div");s.innerHTML=r;let l=s.firstElementChild;if(!(l instanceof HTMLElement))return;this.headerElement!=null?e.shadowRoot?.replaceChild(l,this.headerElement):e.shadowRoot?.prepend(l),this.headerElement=l,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged)return;let{renderHeaderPrefix:i,renderCustomHeader:o,renderHeaderMetadata:a}=this.options;if(o!=null){let s=o(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(e,this.headerCustom,Ip,s),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0}else{let s=i?.(n)??void 0,l=a?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(e,this.headerPrefix,Ap,s),this.headerMetadata=this.upsertHeaderSlotElement(e,this.headerMetadata,$p,l),this.headerCustom?.remove(),this.headerCustom=void 0}}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(t,e,n,r){if(r==null){e?.remove();return}let i=e??this.createHeaderSlotElement(n);return e==null&&t.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(t,e){t.replaceChildren(),e instanceof Element?t.appendChild(e):t.innerText=`${e}`}createHeaderSlotElement(t){let e=document.createElement("div");return e.slot=t,e}getOrCreateFileContainerNode(t,e){let{fileContainer:n}=this,r=t??n??document.createElement(kc),i=n!==r;return i&&this.emitPostRender(!0),this.fileContainer=r,n!=null&&i&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),e!=null&&this.fileContainer.parentNode!==e&&e.appendChild(this.fileContainer),i&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(t){let{shadowRoot:e}=t;if(e!=null)for(let n of e.children)n instanceof SVGElement?this.spriteSVG??=n:Kb(n)&&n.hasAttribute(Np)?(this.themeCSSStyle??=n,this.hasAdoptedThemeCSS=!0):Kb(n)&&n.hasAttribute(Pp)&&(this.unsafeCSSStyle??=n,this.appliedUnsafeCSS??=this.options.unsafeCSS??void 0)}ensureSpriteSVG(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});if(this.spriteSVG==null){let n=document.createElement("div");n.innerHTML=hk;let r=n.firstChild;r instanceof SVGElement&&(this.spriteSVG=r)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==e&&e.appendChild(this.spriteSVG)}getOrCreatePreNode(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});return this.pre==null?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.code=void 0,e.appendChild(this.pre)):this.pre.parentNode!==e&&(t.shadowRoot?.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodeFromPre(t){this.code=void 0;for(let e of Array.from(t.children))if(e instanceof HTMLElement&&e.hasAttribute("data-code")){this.code=e;return}}applyPreNodeAttributes(t,{totalLines:e}){let{overflow:n="scroll",disableLineNumbers:r=!1}=this.options,i={type:"file",split:!1,overflow:n,disableLineNumbers:r,diffIndicators:"none",disableBackground:!0,totalLines:e};gk(i,this.appliedPreAttributes)||(Sk(t,i),this.appliedPreAttributes=i)}applyErrorToDOM(t,e){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=e.shadowRoot??e.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",n.appendChild(this.errorWrapper);let r=document.createElement("div");r.dataset.errorMessage="",r.innerText=t.message,this.errorWrapper.appendChild(r);let i=document.createElement("pre");i.dataset.errorStack="",i.innerText=t.stack??"No Error Stack",this.errorWrapper.appendChild(i)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function X$e(t,e,n=!1){return!n&&t==null&&e!=null}function Y$e(t,e,n=!1){return t==null&&e!=null&&!n}function Ek(t){return{...tv,...t}}function t1(t,e){let n=Q$e(t,e);return e?n:t.diffHeaderHeight+n}function Q$e(t,e){return t.paddingTop??(e?t.spacing:0)}function Tk(t){return t.paddingBottom??t.spacing}function Jne(t){switch(t){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}function Wp(t,e){return t===e||t?.cacheKey!=null&&t.cacheKey===e?.cacheKey}var J$e=new TextEncoder,eIe=new TextDecoder("utf-8",{ignoreBOM:!0}),tIe=/[\uD800-\uDFFF]/,bP=1024,Xb=new Uint8Array(bP);function yP(){Xb.length!==bP&&(Xb=new Uint8Array(bP))}function no(t){if(t.length===0)return t;if(tIe.test(t))return JSON.parse(JSON.stringify(t));let e=t.length*3;Xb.length<e&&(Xb=new Uint8Array(e));let{written:n}=J$e.encodeInto(t,Xb);return eIe.decode(Xb.subarray(0,n))}function nIe(t,e,n){try{return rIe(t,e,n)}finally{yP()}}function rIe(t,e,n=!1){let r=sIe(t),i=r?sre(t,"diff --git"):t.split(ev),o,a=[];for(let s of i){if(r&&!Jw.test(s)){if(o==null)o=no(s);else{if(n)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",s)}continue}else if(!r&&!ev.test(s)){if(o==null)o=no(s);else{if(n)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",s)}continue}let l=ire(s,{cacheKey:e!=null?`${e}-${a.length}`:void 0,isGitDiff:r,throwOnError:n});l!=null&&a.push(l)}return{patchMetadata:o,files:a}}function rre(t,e){try{return ire(t,e)}finally{yP()}}function ire(t,{cacheKey:e,isGitDiff:n=Jw.test(t),oldFile:r,newFile:i,throwOnError:o=!1}={}){let a=0,s=sre(t,"@@ "),l,c=r==null||i==null,u=0,d=0;for(let p of s){let m=are(p),f=m[0];if(f==null){if(o)throw Error("parsePatchContent: invalid hunk");console.error("parsePatchContent: invalid hunk",p);continue}let h=oIe(f),x=0,g=0;if(h==null||l==null){if(l!=null){if(o)throw Error("parsePatchContent: Invalid hunk");console.error("parsePatchContent: Invalid hunk",p);continue}l={name:"",type:"change",hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:c,additionLines:!c&&r!=null&&i!=null?ere(i.contents):[],deletionLines:!c&&r!=null&&i!=null?ere(r.contents):[],cacheKey:nre(e)},l.additionLines.length===1&&i?.contents===""&&(l.additionLines.length=0),l.deletionLines.length===1&&r?.contents===""&&(l.deletionLines.length=0);for(let S of m){if(S.startsWith("diff --git")){let T=S.trim().match(tN),M=T?.[1]??T?.[2],A=T?.[3]??T?.[4];if(M==null||A==null){if(o)throw Error("parsePatchContent: invalid git diff header");console.error("parsePatchContent: invalid git diff header",S);continue}l.name=no(A.trim()),M!==A&&(l.prevName=no(M.trim()));continue}let C=S.startsWith("---")||S.startsWith("+++")?S.match(n?eN:JI):null;if(C!=null){let[,T,M]=C;if(T==="---"&&M!=="/dev/null"){let A=no(M.trim());l.prevName=A,l.name=A}else T==="+++"&&M!=="/dev/null"&&(l.name=no(M.trim()))}else if(n){if(S.startsWith("new mode ")&&(l.mode=no(S.slice(8).trim())),S.startsWith("old mode ")&&(l.prevMode=no(S.slice(8).trim())),S.startsWith("new file mode")&&(l.type="new",l.mode=no(S.slice(13).trim())),S.startsWith("deleted file mode")&&(l.type="deleted",l.mode=no(S.slice(17).trim())),S.startsWith("similarity index")&&(S.startsWith("similarity index 100%")?l.type="rename-pure":l.type="rename-changed"),S.startsWith("index ")){let[,T,M,A]=S.trim().match(nN)??[];T!=null&&(l.prevObjectId=no(T)),M!=null&&(l.newObjectId=no(M)),A!=null&&(l.mode=no(A))}S.startsWith("rename from ")&&(l.prevName=no(S.slice(12).trim())),S.startsWith("rename to ")&&(l.name=no(S.slice(10).trim()))}}continue}let y,b;for(;m.length>0&&(m[m.length-1]===` `||m[m.length-1]==="\r"||m[m.length-1]===`\r -`||m[m.length-1]==="");)m.pop();let{additionStart:w,deletionStart:v}=h;u=c?u:v-1,d=c?d:w-1;let k={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:h.additionCount,additionStart:w,additionLines:x,deletionCount:h.deletionCount,deletionStart:v,deletionLines:g,deletionLineIndex:u,additionLineIndex:d,hunkContent:[],hunkContext:nre(h.hunkContext),hunkSpecs:no(f),noEOFCRAdditions:!1,noEOFCRDeletions:!1},_=0,L=0;for(let S=1;S<m.length;S++){let C=m[S];if(_>=k.additionCount&&L>=k.deletionCount&&!C.startsWith("\\"))break;let T=C[0];if(T!=="+"&&T!=="-"&&T!==" "&&T!=="\\"){console.error(`parseLineType: Invalid firstChar: "${T}", full line: "${C}"`),console.error("processFile: invalid rawLine:",C);continue}let M=lIe(T);if(M==="addition"){let A=gP(C);(y==null||y.type!=="change")&&(y=bP("change",u,d),k.hunkContent.push(y)),d++,_++,c&&l.additionLines.push(A),y.additions++,x++,b="addition"}else if(M==="deletion"){let A=gP(C);(y==null||y.type!=="change")&&(y=bP("change",u,d),k.hunkContent.push(y)),u++,L++,c&&l.deletionLines.push(A),y.deletions++,g++,b="deletion"}else if(M==="context"){let A=gP(C);(y==null||y.type!=="context")&&(y=bP("context",u,d),k.hunkContent.push(y)),d++,u++,_++,L++,c&&(l.deletionLines.push(A),l.additionLines.push(A)),y.lines++,b="context"}else if(M==="metadata"&&y!=null){if(y.type==="context"?(k.noEOFCRAdditions=!0,k.noEOFCRDeletions=!0):b==="deletion"?k.noEOFCRDeletions=!0:b==="addition"&&(k.noEOFCRAdditions=!0),c&&(b==="addition"||b==="context")){let A=l.additionLines.length-1;A>=0&&(l.additionLines[A]=ud(l.additionLines[A]))}if(c&&(b==="deletion"||b==="context")){let A=l.deletionLines.length-1;A>=0&&(l.deletionLines[A]=ud(l.deletionLines[A]))}}}k.additionLines=x,k.deletionLines=g,k.collapsedBefore=Math.max(k.additionStart-1-a,0),l.hunks.push(k),a=k.additionStart+k.additionCount-1;for(let S of k.hunkContent)S.type==="context"?(k.splitLineCount+=S.lines,k.unifiedLineCount+=S.lines):(k.splitLineCount+=Math.max(S.additions,S.deletions),k.unifiedLineCount+=S.deletions+S.additions);k.splitLineStart=l.splitLineCount+k.collapsedBefore,k.unifiedLineStart=l.unifiedLineCount+k.collapsedBefore,l.splitLineCount+=k.collapsedBefore+k.splitLineCount,l.unifiedLineCount+=k.collapsedBefore+k.unifiedLineCount}if(l!=null){if(l.hunks.length>0&&!c&&l.additionLines.length>0&&l.deletionLines.length>0){let p=l.hunks[l.hunks.length-1],m=p.additionStart+p.additionCount-1,f=l.additionLines.length,h=Math.max(f-m,0);l.splitLineCount+=h,l.unifiedLineCount+=h}return n||(l.prevName!=null&&l.name!==l.prevName?l.hunks.length>0?l.type="rename-changed":l.type="rename-pure":(r==null||r.contents==="")&&i!=null&&i.contents!==""?l.type="new":r!=null&&r.contents!==""&&(i==null||i.contents==="")&&(l.type="deleted")),l.type!=="rename-pure"&&l.type!=="rename-changed"&&(l.prevName=void 0),l}}function ore(t,e,n=!1){let r=[],i=iIe(t)?t.split(WI):[t];for(let o of i)try{r.push(nIe(o,e!=null?`${e}-${r.length}`:void 0,n))}catch(a){if(n)throw a;console.error(a)}return r}function iIe(t){return t.startsWith("From ")||t.includes(` +`||m[m.length-1]==="");)m.pop();let{additionStart:w,deletionStart:v}=h;u=c?u:v-1,d=c?d:w-1;let k={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:h.additionCount,additionStart:w,additionLines:x,deletionCount:h.deletionCount,deletionStart:v,deletionLines:g,deletionLineIndex:u,additionLineIndex:d,hunkContent:[],hunkContext:nre(h.hunkContext),hunkSpecs:no(f),noEOFCRAdditions:!1,noEOFCRDeletions:!1},_=0,L=0;for(let S=1;S<m.length;S++){let C=m[S];if(_>=k.additionCount&&L>=k.deletionCount&&!C.startsWith("\\"))break;let T=C[0];if(T!=="+"&&T!=="-"&&T!==" "&&T!=="\\"){console.error(`parseLineType: Invalid firstChar: "${T}", full line: "${C}"`),console.error("processFile: invalid rawLine:",C);continue}let M=lIe(T);if(M==="addition"){let A=xP(C);(y==null||y.type!=="change")&&(y=wP("change",u,d),k.hunkContent.push(y)),d++,_++,c&&l.additionLines.push(A),y.additions++,x++,b="addition"}else if(M==="deletion"){let A=xP(C);(y==null||y.type!=="change")&&(y=wP("change",u,d),k.hunkContent.push(y)),u++,L++,c&&l.deletionLines.push(A),y.deletions++,g++,b="deletion"}else if(M==="context"){let A=xP(C);(y==null||y.type!=="context")&&(y=wP("context",u,d),k.hunkContent.push(y)),d++,u++,_++,L++,c&&(l.deletionLines.push(A),l.additionLines.push(A)),y.lines++,b="context"}else if(M==="metadata"&&y!=null){if(y.type==="context"?(k.noEOFCRAdditions=!0,k.noEOFCRDeletions=!0):b==="deletion"?k.noEOFCRDeletions=!0:b==="addition"&&(k.noEOFCRAdditions=!0),c&&(b==="addition"||b==="context")){let A=l.additionLines.length-1;A>=0&&(l.additionLines[A]=ud(l.additionLines[A]))}if(c&&(b==="deletion"||b==="context")){let A=l.deletionLines.length-1;A>=0&&(l.deletionLines[A]=ud(l.deletionLines[A]))}}}k.additionLines=x,k.deletionLines=g,k.collapsedBefore=Math.max(k.additionStart-1-a,0),l.hunks.push(k),a=k.additionStart+k.additionCount-1;for(let S of k.hunkContent)S.type==="context"?(k.splitLineCount+=S.lines,k.unifiedLineCount+=S.lines):(k.splitLineCount+=Math.max(S.additions,S.deletions),k.unifiedLineCount+=S.deletions+S.additions);k.splitLineStart=l.splitLineCount+k.collapsedBefore,k.unifiedLineStart=l.unifiedLineCount+k.collapsedBefore,l.splitLineCount+=k.collapsedBefore+k.splitLineCount,l.unifiedLineCount+=k.collapsedBefore+k.unifiedLineCount}if(l!=null){if(l.hunks.length>0&&!c&&l.additionLines.length>0&&l.deletionLines.length>0){let p=l.hunks[l.hunks.length-1],m=p.additionStart+p.additionCount-1,f=l.additionLines.length,h=Math.max(f-m,0);l.splitLineCount+=h,l.unifiedLineCount+=h}return n||(l.prevName!=null&&l.name!==l.prevName?l.hunks.length>0?l.type="rename-changed":l.type="rename-pure":(r==null||r.contents==="")&&i!=null&&i.contents!==""?l.type="new":r!=null&&r.contents!==""&&(i==null||i.contents==="")&&(l.type="deleted")),l.type!=="rename-pure"&&l.type!=="rename-changed"&&(l.prevName=void 0),l}}function ore(t,e,n=!1){let r=[],i=iIe(t)?t.split(YI):[t];for(let o of i)try{r.push(nIe(o,e!=null?`${e}-${r.length}`:void 0,n))}catch(a){if(n)throw a;console.error(a)}return r}function iIe(t){return t.startsWith("From ")||t.includes(` From `)}function ere(t){let e=are(t);for(let n=0;n<e.length;n++)e[n]=no(e[n]);return e}function are(t){if(t.length===0)return[""];let e=[],n=0;for(;;){let r=t.indexOf(` `,n);if(r===-1)break;e.push(t.slice(n,r+1)),n=r+1}return n<t.length&&e.push(t.slice(n)),e}function oIe(t){if(!t.startsWith("@@ -"))return;let e=4,n=Rk(t,e);if(n==null)return;let r=n.value;e=n.endIndex;let i=1;if(t[e]===","){let u=Rk(t,e+1);if(u==null)return;i=u.value,e=u.endIndex}if(t[e]!==" "||t[e+1]!=="+")return;e+=2;let o=Rk(t,e);if(o==null)return;let a=o.value;e=o.endIndex;let s=1;if(t[e]===","){let u=Rk(t,e+1);if(u==null)return;s=u.value,e=u.endIndex}if(t[e]!==" "||t[e+1]!=="@"||t[e+2]!=="@")return;let l,c=e+3;return t[c]===" "&&(l=aIe(t.slice(c+1))),{additionCount:s,additionStart:a,deletionCount:i,deletionStart:r,hunkContext:l}}function Rk(t,e){let n=e,r=0;for(;n<t.length;n++){let i=t.charCodeAt(n)-48;if(i<0||i>9)break;r=r*10+i}if(n!==e)return{value:r,endIndex:n}}function aIe(t){return t.endsWith(`\r `)?t.slice(0,-2):t.endsWith(` `)?t.slice(0,-1):t}function sIe(t){return t.startsWith("diff --git")||t.includes(` diff --git`)}function sre(t,e){if(t.length===0)return[""];let n=` -${e}`,r=t.startsWith(e)?0:tre(t,n,0);if(r===-1)return[t];let i=[];r>0&&i.push(t.slice(0,r));let o=r;for(;;){let a=tre(t,n,o+1);if(a===-1)break;i.push(t.slice(o,a)),o=a}return i.push(t.slice(o)),i}function tre(t,e,n){let r=t.indexOf(e,n);return r===-1?-1:r+1}function nre(t){return t==null?t:no(t)}function lIe(t){return t===" "?"context":t==="\\"?"metadata":t==="+"?"addition":"deletion"}function gP(t){let e=t.slice(1);return no(e===""?` -`:e)}function bP(t,e,n){return t==="change"?{type:"change",additions:0,deletions:0,additionLineIndex:n,deletionLineIndex:e}:{type:"context",lines:0,additionLineIndex:n,deletionLineIndex:e}}var dd=class{diff(e,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);let o=this.castInput(e,r),a=this.castInput(n,r),s=this.removeEmpty(this.tokenize(o,r)),l=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,l,r,i)}diffWithOptionsObj(e,n,r,i){var o;let a=y=>{if(y=this.postProcess(y,r),i){setTimeout(function(){i(y)},0);return}else return y},s=n.length,l=e.length,c=1,u=s+l;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));let d=(o=r.timeout)!==null&&o!==void 0?o:1/0,p=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(m[0],n,e,0,r);if(m[0].oldPos+1>=l&&f+1>=s)return a(this.buildValues(m[0].lastComponent,n,e));let h=-1/0,x=1/0,g=()=>{for(let y=Math.max(h,-c);y<=Math.min(x,c);y+=2){let b,w=m[y-1],v=m[y+1];w&&(m[y-1]=void 0);let k=!1;if(v){let L=v.oldPos-y;k=v&&0<=L&&L<s}let _=w&&w.oldPos+1<l;if(!k&&!_){m[y]=void 0;continue}if(!_||k&&w.oldPos<v.oldPos?b=this.addToPath(v,!0,!1,0,r):b=this.addToPath(w,!1,!0,1,r),f=this.extractCommon(b,n,e,y,r),b.oldPos+1>=l&&f+1>=s)return a(this.buildValues(b.lastComponent,n,e))||!0;m[y]=b,b.oldPos+1>=l&&(x=Math.min(x,y-1)),f+1>=s&&(h=Math.max(h,y+1))}c++};if(i)(function y(){setTimeout(function(){if(c>u||Date.now()>p)return i(void 0);g()||y()},0)})();else for(;c<=u&&Date.now()<=p;){let y=g();if(y)return y}}addToPath(e,n,r,i,o){let a=e.lastComponent;return a&&!o.oneChangePerToken&&a.added===n&&a.removed===r?{oldPos:e.oldPos+i,lastComponent:{count:a.count+1,added:n,removed:r,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:a}}}extractCommon(e,n,r,i,o){let a=n.length,s=r.length,l=e.oldPos,c=l-i,u=0;for(;c+1<a&&l+1<s&&this.equals(r[l+1],n[c+1],o);)c++,l++,u++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!o.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,c}equals(e,n,r){return r.comparator?r.comparator(e,n):e===n||!!r.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){let n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,r){let i=[],o;for(;e;)i.push(e),o=e.previousComponent,delete e.previousComponent,e=o;i.reverse();let a=i.length,s=0,l=0,c=0;for(;s<a;s++){let u=i[s];if(u.removed)u.value=this.join(r.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=n.slice(l,l+u.count);d=d.map(function(p,m){let f=r[c+m];return f.length>p.length?f:p}),u.value=this.join(d)}else u.value=this.join(n.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return i}};var yP=class extends dd{},lre=new yP;function xP(t,e,n){return lre.diff(t,e,n)}function wP(t,e){let n;for(n=0;n<t.length&&n<e.length;n++)if(t[n]!=e[n])return t.slice(0,n);return t.slice(0,n)}function vP(t,e){let n;if(!t||!e||t[t.length-1]!=e[e.length-1])return"";for(n=0;n<t.length&&n<e.length;n++)if(t[t.length-(n+1)]!=e[e.length-(n+1)])return t.slice(-n);return t.slice(-n)}function Ak(t,e,n){if(t.slice(0,e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't start with prefix ${JSON.stringify(e)}; this is a bug`);return n+t.slice(e.length)}function $k(t,e,n){if(!e)return t+n;if(t.slice(-e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't end with suffix ${JSON.stringify(e)}; this is a bug`);return t.slice(0,-e.length)+n}function Xb(t,e){return Ak(t,e,"")}function O7(t,e){return $k(t,e,"")}function kP(t,e){return e.slice(0,cIe(t,e))}function cIe(t,e){let n=0;t.length>e.length&&(n=t.length-e.length);let r=e.length;t.length<e.length&&(r=t.length);let i=Array(r),o=0;i[0]=0;for(let a=1;a<r;a++){for(e[a]==e[o]?i[a]=i[o]:i[a]=o;o>0&&e[a]!=e[o];)o=i[o];e[a]==e[o]&&o++}o=0;for(let a=n;a<t.length;a++){for(;o>0&&t[a]!=e[o];)o=i[o];t[a]==e[o]&&o++}return o}function Yb(t){let e;for(e=t.length-1;e>=0&&t[e].match(/\s/);e--);return t.substring(e+1)}function Kp(t){let e=t.match(/^\s*/);return e?e[0]:""}var Ik="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",uIe=new RegExp(`[${Ik}]+|\\s+|[^${Ik}]`,"ug"),CP=class extends dd{equals(e,n,r){return r.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e.trim()===n.trim()}tokenize(e,n={}){let r;if(n.intlSegmenter){let a=n.intlSegmenter;if(a.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=[];for(let s of Array.from(a.segment(e))){let l=s.segment;r.length&&/\s/.test(r[r.length-1])&&/\s/.test(l)?r[r.length-1]+=l:r.push(l)}}else r=e.match(uIe)||[];let i=[],o=null;return r.forEach(a=>{/\s/.test(a)?o==null?i.push(a):i.push(i.pop()+a):o!=null&&/\s/.test(o)?i[i.length-1]==o?i.push(i.pop()+a):i.push(o+a):i.push(a),o=a}),i}join(e){return e.map((n,r)=>r==0?n:n.replace(/^\s+/,"")).join("")}postProcess(e,n){if(!e||n.oneChangePerToken)return e;let r=null,i=null,o=null;return e.forEach(a=>{a.added?i=a:a.removed?o=a:((i||o)&&cre(r,o,i,a),r=a,i=null,o=null)}),(i||o)&&cre(r,o,i,null),e}},dIe=new CP;function cre(t,e,n,r){if(e&&n){let i=Kp(e.value),o=Yb(e.value),a=Kp(n.value),s=Yb(n.value);if(t){let l=wP(i,a);t.value=$k(t.value,a,l),e.value=Xb(e.value,l),n.value=Xb(n.value,l)}if(r){let l=vP(o,s);r.value=Ak(r.value,s,l),e.value=O7(e.value,l),n.value=O7(n.value,l)}}else if(n){if(t){let i=Kp(n.value);n.value=n.value.substring(i.length)}if(r){let i=Kp(r.value);r.value=r.value.substring(i.length)}}else if(t&&r){let i=Kp(r.value),o=Kp(e.value),a=Yb(e.value),s=wP(i,o);e.value=Xb(e.value,s);let l=vP(Xb(i,s),a);e.value=O7(e.value,l),r.value=Ak(r.value,i,l),t.value=$k(t.value,i,i.slice(0,i.length-l.length))}else if(r){let i=Kp(r.value),o=Yb(e.value),a=kP(o,i);e.value=O7(e.value,a)}else if(t){let i=Yb(t.value),o=Kp(e.value),a=kP(i,o);e.value=Xb(e.value,a)}}var _P=class extends dd{tokenize(e){let n=new RegExp(`(\\r?\\n)|[${Ik}]+|[^\\S\\n\\r]+|[^${Ik}]`,"ug");return e.match(n)||[]}},ure=new _P;function SP(t,e,n){return ure.diff(t,e,n)}var LP=class extends dd{constructor(){super(...arguments),this.tokenize=mIe}equals(e,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(` +${e}`,r=t.startsWith(e)?0:tre(t,n,0);if(r===-1)return[t];let i=[];r>0&&i.push(t.slice(0,r));let o=r;for(;;){let a=tre(t,n,o+1);if(a===-1)break;i.push(t.slice(o,a)),o=a}return i.push(t.slice(o)),i}function tre(t,e,n){let r=t.indexOf(e,n);return r===-1?-1:r+1}function nre(t){return t==null?t:no(t)}function lIe(t){return t===" "?"context":t==="\\"?"metadata":t==="+"?"addition":"deletion"}function xP(t){let e=t.slice(1);return no(e===""?` +`:e)}function wP(t,e,n){return t==="change"?{type:"change",additions:0,deletions:0,additionLineIndex:n,deletionLineIndex:e}:{type:"context",lines:0,additionLineIndex:n,deletionLineIndex:e}}var dd=class{diff(e,n,r={}){let i;typeof r=="function"?(i=r,r={}):"callback"in r&&(i=r.callback);let o=this.castInput(e,r),a=this.castInput(n,r),s=this.removeEmpty(this.tokenize(o,r)),l=this.removeEmpty(this.tokenize(a,r));return this.diffWithOptionsObj(s,l,r,i)}diffWithOptionsObj(e,n,r,i){var o;let a=y=>{if(y=this.postProcess(y,r),i){setTimeout(function(){i(y)},0);return}else return y},s=n.length,l=e.length,c=1,u=s+l;r.maxEditLength!=null&&(u=Math.min(u,r.maxEditLength));let d=(o=r.timeout)!==null&&o!==void 0?o:1/0,p=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(m[0],n,e,0,r);if(m[0].oldPos+1>=l&&f+1>=s)return a(this.buildValues(m[0].lastComponent,n,e));let h=-1/0,x=1/0,g=()=>{for(let y=Math.max(h,-c);y<=Math.min(x,c);y+=2){let b,w=m[y-1],v=m[y+1];w&&(m[y-1]=void 0);let k=!1;if(v){let L=v.oldPos-y;k=v&&0<=L&&L<s}let _=w&&w.oldPos+1<l;if(!k&&!_){m[y]=void 0;continue}if(!_||k&&w.oldPos<v.oldPos?b=this.addToPath(v,!0,!1,0,r):b=this.addToPath(w,!1,!0,1,r),f=this.extractCommon(b,n,e,y,r),b.oldPos+1>=l&&f+1>=s)return a(this.buildValues(b.lastComponent,n,e))||!0;m[y]=b,b.oldPos+1>=l&&(x=Math.min(x,y-1)),f+1>=s&&(h=Math.max(h,y+1))}c++};if(i)(function y(){setTimeout(function(){if(c>u||Date.now()>p)return i(void 0);g()||y()},0)})();else for(;c<=u&&Date.now()<=p;){let y=g();if(y)return y}}addToPath(e,n,r,i,o){let a=e.lastComponent;return a&&!o.oneChangePerToken&&a.added===n&&a.removed===r?{oldPos:e.oldPos+i,lastComponent:{count:a.count+1,added:n,removed:r,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:a}}}extractCommon(e,n,r,i,o){let a=n.length,s=r.length,l=e.oldPos,c=l-i,u=0;for(;c+1<a&&l+1<s&&this.equals(r[l+1],n[c+1],o);)c++,l++,u++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!o.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,c}equals(e,n,r){return r.comparator?r.comparator(e,n):e===n||!!r.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){let n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,r){let i=[],o;for(;e;)i.push(e),o=e.previousComponent,delete e.previousComponent,e=o;i.reverse();let a=i.length,s=0,l=0,c=0;for(;s<a;s++){let u=i[s];if(u.removed)u.value=this.join(r.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=n.slice(l,l+u.count);d=d.map(function(p,m){let f=r[c+m];return f.length>p.length?f:p}),u.value=this.join(d)}else u.value=this.join(n.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return i}};var vP=class extends dd{},lre=new vP;function kP(t,e,n){return lre.diff(t,e,n)}function CP(t,e){let n;for(n=0;n<t.length&&n<e.length;n++)if(t[n]!=e[n])return t.slice(0,n);return t.slice(0,n)}function _P(t,e){let n;if(!t||!e||t[t.length-1]!=e[e.length-1])return"";for(n=0;n<t.length&&n<e.length;n++)if(t[t.length-(n+1)]!=e[e.length-(n+1)])return t.slice(-n);return t.slice(-n)}function Ak(t,e,n){if(t.slice(0,e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't start with prefix ${JSON.stringify(e)}; this is a bug`);return n+t.slice(e.length)}function $k(t,e,n){if(!e)return t+n;if(t.slice(-e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't end with suffix ${JSON.stringify(e)}; this is a bug`);return t.slice(0,-e.length)+n}function Yb(t,e){return Ak(t,e,"")}function D7(t,e){return $k(t,e,"")}function SP(t,e){return e.slice(0,cIe(t,e))}function cIe(t,e){let n=0;t.length>e.length&&(n=t.length-e.length);let r=e.length;t.length<e.length&&(r=t.length);let i=Array(r),o=0;i[0]=0;for(let a=1;a<r;a++){for(e[a]==e[o]?i[a]=i[o]:i[a]=o;o>0&&e[a]!=e[o];)o=i[o];e[a]==e[o]&&o++}o=0;for(let a=n;a<t.length;a++){for(;o>0&&t[a]!=e[o];)o=i[o];t[a]==e[o]&&o++}return o}function Qb(t){let e;for(e=t.length-1;e>=0&&t[e].match(/\s/);e--);return t.substring(e+1)}function Kp(t){let e=t.match(/^\s*/);return e?e[0]:""}var Ik="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",uIe=new RegExp(`[${Ik}]+|\\s+|[^${Ik}]`,"ug"),LP=class extends dd{equals(e,n,r){return r.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e.trim()===n.trim()}tokenize(e,n={}){let r;if(n.intlSegmenter){let a=n.intlSegmenter;if(a.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=[];for(let s of Array.from(a.segment(e))){let l=s.segment;r.length&&/\s/.test(r[r.length-1])&&/\s/.test(l)?r[r.length-1]+=l:r.push(l)}}else r=e.match(uIe)||[];let i=[],o=null;return r.forEach(a=>{/\s/.test(a)?o==null?i.push(a):i.push(i.pop()+a):o!=null&&/\s/.test(o)?i[i.length-1]==o?i.push(i.pop()+a):i.push(o+a):i.push(a),o=a}),i}join(e){return e.map((n,r)=>r==0?n:n.replace(/^\s+/,"")).join("")}postProcess(e,n){if(!e||n.oneChangePerToken)return e;let r=null,i=null,o=null;return e.forEach(a=>{a.added?i=a:a.removed?o=a:((i||o)&&cre(r,o,i,a),r=a,i=null,o=null)}),(i||o)&&cre(r,o,i,null),e}},dIe=new LP;function cre(t,e,n,r){if(e&&n){let i=Kp(e.value),o=Qb(e.value),a=Kp(n.value),s=Qb(n.value);if(t){let l=CP(i,a);t.value=$k(t.value,a,l),e.value=Yb(e.value,l),n.value=Yb(n.value,l)}if(r){let l=_P(o,s);r.value=Ak(r.value,s,l),e.value=D7(e.value,l),n.value=D7(n.value,l)}}else if(n){if(t){let i=Kp(n.value);n.value=n.value.substring(i.length)}if(r){let i=Kp(r.value);r.value=r.value.substring(i.length)}}else if(t&&r){let i=Kp(r.value),o=Kp(e.value),a=Qb(e.value),s=CP(i,o);e.value=Yb(e.value,s);let l=_P(Yb(i,s),a);e.value=D7(e.value,l),r.value=Ak(r.value,i,l),t.value=$k(t.value,i,i.slice(0,i.length-l.length))}else if(r){let i=Kp(r.value),o=Qb(e.value),a=SP(o,i);e.value=D7(e.value,a)}else if(t){let i=Qb(t.value),o=Kp(e.value),a=SP(i,o);e.value=Yb(e.value,a)}}var MP=class extends dd{tokenize(e){let n=new RegExp(`(\\r?\\n)|[${Ik}]+|[^\\S\\n\\r]+|[^${Ik}]`,"ug");return e.match(n)||[]}},ure=new MP;function EP(t,e,n){return ure.diff(t,e,n)}var TP=class extends dd{constructor(){super(...arguments),this.tokenize=mIe}equals(e,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(` `))&&(e=e.trim()),(!r.newlineIsToken||!n.includes(` `))&&(n=n.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith(` `)&&(e=e.slice(0,-1)),n.endsWith(` -`)&&(n=n.slice(0,-1))),super.equals(e,n,r)}},pIe=new LP;function MP(t,e,n){return pIe.diff(t,e,n)}function mIe(t,e){e.stripTrailingCr&&(t=t.replace(/\r\n/g,` -`));let n=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){let o=r[i];i%2&&!e.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}var dre={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function EP(t,e,n,r,i,o,a){let s;a?typeof a=="function"?s={callback:a}:s=a:s={},typeof s.context>"u"&&(s.context=4);let l=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){let{callback:u}=s;MP(n,r,Object.assign(Object.assign({},s),{callback:d=>{let p=c(d);u(p)}}))}else return c(MP(n,r,s));function c(u){if(!u)return;u.push({value:"",lines:[]});function d(y){return y.map(function(b){return" "+b})}let p=[],m=0,f=0,h=[],x=1,g=1;for(let y=0;y<u.length;y++){let b=u[y],w=b.lines||fIe(b.value);if(b.lines=w,b.added||b.removed){if(!m){let v=u[y-1];m=x,f=g,v&&(h=l>0?d(v.lines.slice(-l)):[],m-=h.length,f-=h.length)}for(let v of w)h.push((b.added?"+":"-")+v);b.added?g+=w.length:x+=w.length}else{if(m)if(w.length<=l*2&&y<u.length-2)for(let v of d(w))h.push(v);else{let v=Math.min(w.length,l);for(let _ of d(w.slice(0,v)))h.push(_);let k={oldStart:m,oldLines:x-m+v,newStart:f,newLines:g-f+v,lines:h};p.push(k),m=0,f=0,h=[]}x+=w.length,g+=w.length}}for(let y of p)for(let b=0;b<y.lines.length;b++)y.lines[b].endsWith(` +`)&&(n=n.slice(0,-1))),super.equals(e,n,r)}},pIe=new TP;function RP(t,e,n){return pIe.diff(t,e,n)}function mIe(t,e){e.stripTrailingCr&&(t=t.replace(/\r\n/g,` +`));let n=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let i=0;i<r.length;i++){let o=r[i];i%2&&!e.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}var dre={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function AP(t,e,n,r,i,o,a){let s;a?typeof a=="function"?s={callback:a}:s=a:s={},typeof s.context>"u"&&(s.context=4);let l=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){let{callback:u}=s;RP(n,r,Object.assign(Object.assign({},s),{callback:d=>{let p=c(d);u(p)}}))}else return c(RP(n,r,s));function c(u){if(!u)return;u.push({value:"",lines:[]});function d(y){return y.map(function(b){return" "+b})}let p=[],m=0,f=0,h=[],x=1,g=1;for(let y=0;y<u.length;y++){let b=u[y],w=b.lines||fIe(b.value);if(b.lines=w,b.added||b.removed){if(!m){let v=u[y-1];m=x,f=g,v&&(h=l>0?d(v.lines.slice(-l)):[],m-=h.length,f-=h.length)}for(let v of w)h.push((b.added?"+":"-")+v);b.added?g+=w.length:x+=w.length}else{if(m)if(w.length<=l*2&&y<u.length-2)for(let v of d(w))h.push(v);else{let v=Math.min(w.length,l);for(let _ of d(w.slice(0,v)))h.push(_);let k={oldStart:m,oldLines:x-m+v,newStart:f,newLines:g-f+v,lines:h};p.push(k),m=0,f=0,h=[]}x+=w.length,g+=w.length}}for(let y of p)for(let b=0;b<y.lines.length;b++)y.lines[b].endsWith(` `)?y.lines[b]=y.lines[b].slice(0,-1):(y.lines.splice(b+1,0,"\\ No newline at end of file"),b++);return{oldFileName:t,newFileName:e,oldHeader:i,newHeader:o,hunks:p}}}function Nk(t,e){if(e||(e=dre),Array.isArray(t)){if(t.length>1&&!e.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return t.map(r=>Nk(r,e)).join(` `)}let n=[];e.includeIndex&&t.oldFileName==t.newFileName&&n.push("Index: "+t.oldFileName),e.includeUnderline&&n.push("==================================================================="),e.includeFileHeaders&&(n.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":" "+t.oldHeader)),n.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":" "+t.newHeader)));for(let r=0;r<t.hunks.length;r++){let i=t.hunks[r];i.oldLines===0&&(i.oldStart-=1),i.newLines===0&&(i.newStart-=1),n.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@");for(let o of i.lines)n.push(o)}return n.join(` `)+` -`}function TP(t,e,n,r,i,o,a){if(typeof a=="function"&&(a={callback:a}),a?.callback){let{callback:s}=a;EP(t,e,n,r,i,o,Object.assign(Object.assign({},a),{callback:l=>{s(l?Nk(l,a.headerOptions):void 0)}}))}else{let s=EP(t,e,n,r,i,o,a);return s?Nk(s,a?.headerOptions):void 0}}function fIe(t){let e=t.endsWith(` +`}function $P(t,e,n,r,i,o,a){if(typeof a=="function"&&(a={callback:a}),a?.callback){let{callback:s}=a;AP(t,e,n,r,i,o,Object.assign(Object.assign({},a),{callback:l=>{s(l?Nk(l,a.headerOptions):void 0)}}))}else{let s=AP(t,e,n,r,i,o,a);return s?Nk(s,a?.headerOptions):void 0}}function fIe(t){let e=t.endsWith(` `),n=t.split(` `).map(r=>r+` -`);return e?n.pop():n.push(n.pop().slice(0,-1)),n}function D7(t,e,n,r=!1){let i=rre(TP(t.name,e.name,t.contents,e.contents,t.header,e.header,n),{cacheKey:(()=>{if(t.cacheKey!=null&&e.cacheKey!=null)return`${t.cacheKey}:${e.cacheKey}`})(),oldFile:t,newFile:e,throwOnError:r});if(i==null)throw new Error("parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?");return e.lang!=null&&(i.lang=e.lang),i}var pre=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(t,e,n){if(e==null||n==null)for(let r of t.children??[])r instanceof HTMLElement&&("deletions"in r.dataset?e=r:"additions"in r.dataset&&(n=r));if(n==null||e==null){this.cleanUp();return}this.codeDeletions!==e&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=e,e.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==n&&(this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=n,n.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function yu(t,e){return Cc(t.theme,e.theme)&&t.useTokenTransformer===e.useTokenTransformer&&t.tokenizeMaxLineLength===e.tokenizeMaxLineLength&&t.lineDiffType===e.lineDiffType&&t.maxLineDiffLength===e.maxLineDiffLength}function F7(t){return zt({tagName:"div",properties:{"data-content-buffer":"","data-buffer-size":t,style:`grid-row: span ${t};min-height:calc(${t} * 1lh)`}})}function B7(t){return zt({tagName:"div",children:[zt({tagName:"span",children:[js("No newline at end of file")]})],properties:{"data-no-newline":"","data-line-type":t,"data-column-content":""}})}function RP(t){return zt({tagName:"div",children:[a0({name:t==="both"?"diffs-icon-expand-all":"diffs-icon-expand",properties:{"data-icon":""}})],properties:{role:"button","data-expand-button":"","data-expand-both":t==="both"?"":void 0,"data-expand-up":t==="up"?"":void 0,"data-expand-down":t==="down"?"":void 0}})}function v0({type:t,content:e,expandIndex:n,chunked:r=!1,slotName:i,isFirstHunk:o,isLastHunk:a}){let s=0,l=[];if(t==="metadata"&&e!=null&&l.push(zt({tagName:"div",children:[js(e)],properties:{"data-separator-wrapper":""}})),(t==="line-info"||t==="line-info-basic")&&e!=null){let c=[];n!=null&&(r?(o||(c.push(RP("up")),s++),a||(c.push(RP("down")),s++)):(c.push(RP(!o&&!a?"both":o?"down":"up")),s++)),c.push(zt({tagName:"div",children:[zt({tagName:"span",children:[js(e)],properties:{"data-unmodified-lines":""}})],properties:{"data-separator-content":""}})),r&&n!=null&&c.push(zt({tagName:"div",children:[js("Expand all")],properties:{role:"button","data-expand-button":"","data-expand-all-button":""}})),l.push(zt({tagName:"div",children:c,properties:{"data-separator-wrapper":"","data-separator-multi-button":s>1?"":void 0}}))}return t==="custom"&&i!=null&&l.push(zt({tagName:"slot",properties:{name:i}})),zt({tagName:"div",children:l,properties:{"data-separator":l.length===0?"simple":t,"data-expand-index":n,"data-separator-first":o?"":void 0,"data-separator-last":a?"":void 0}})}function mre(t,e){return`hunk-separator-${t}-${e}`}function fre(t){let e=t.at(-1);return e==null?0:Math.max(e.additionStart+e.additionCount,e.deletionStart+e.deletionCount)}function hre(t){return t.startingLine===0&&t.totalLines===1/0&&t.bufferBefore===0&&t.bufferAfter===0}function AP({line:t,spanStart:e,spanLength:n}){return{start:{line:t,character:e},end:{line:t,character:e+n},properties:{"data-diff-span":""},alwaysWrap:!0}}function z7({item:t,arr:e,enableJoin:n,isNeutral:r=!1,isLastItem:i=!1}){let o=e[e.length-1];if(o==null||i||!n){e.push([r?0:1,t.value]);return}let a=o[0]===0;if(r===a||r&&t.value.length===1&&!a){o[1]+=t.value;return}e.push([r?0:1,t.value])}function t1({isPartial:t,rangeSize:e,expandedHunks:n,hunkIndex:r,collapsedContextThreshold:i}){let o=Math.max(e,0);if(o===0||t)return{fromStart:0,fromEnd:0,rangeSize:o,collapsedLines:o,renderAll:!1};if(n===!0||o<=i)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};let a=n?.get(r),s=Math.min(Math.max(a?.fromStart??0,0),o),l=Math.min(Math.max(a?.fromEnd??0,0),o),c=s+l,u=c>=o;return{fromStart:u?o:s,fromEnd:u?0:l,rangeSize:o,collapsedLines:Math.max(o-c,0),renderAll:u}}function $P({fileDiff:t,errorPrefix:e}){let n=t.hunks[t.hunks.length-1];if(n==null||t.isPartial||t.additionLines.length===0||t.deletionLines.length===0)return 0;let r=t.additionLines.length-(n.additionLineIndex+n.additionCount),i=t.deletionLines.length-(n.deletionLineIndex+n.deletionCount);if(r<=0&&i<=0)return 0;if(r!==i)throw new Error(`${e}: trailing context mismatch (additions=${r}, deletions=${i}) for ${t.name}`);return Math.min(r,i)}function n1({fileDiff:t,hunkIndex:e,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:i}){if(e!==t.hunks.length-1)return;let o=$P({fileDiff:t,errorPrefix:i});if(o<=0)return;if(n===!0||o<=r)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};let a=n?.get(t.hunks.length),s=Math.min(Math.max(a?.fromStart??0,0),o);return{fromStart:s,fromEnd:0,rangeSize:o,collapsedLines:o-s,renderAll:s>=o}}function gre({type:t,metrics:e}){return e.hunkSeparatorHeight??Jne(t)}function bre({type:t,metrics:e}){return t==="simple"||t==="metadata"||t==="line-info-basic"?0:e.spacing}function hIe({type:t,hunkIndex:e,hunkSpecs:n}){switch(t){case"simple":return e>0;case"metadata":return n!=null;case"line-info":case"line-info-basic":case"custom":return!0}}function gIe(t){return t!=="simple"&&t!=="metadata"}function k0({type:t,metrics:e,hunkIndex:n,hunkSpecs:r}){if(!hIe({type:t,hunkIndex:n,hunkSpecs:r}))return;let i=gre({type:t,metrics:e}),o=bre({type:t,metrics:e}),a=n>0?o:0,s=o;return{height:i,gapBefore:a,gapAfter:s,totalHeight:a+i+s}}function C0({type:t,metrics:e}){if(!gIe(t))return;let n=gre({type:t,metrics:e}),r=bre({type:t,metrics:e});return{height:n,gapBefore:r,gapAfter:0,totalHeight:r+n}}function r1({diff:t,diffStyle:e,startingLine:n=0,totalLines:r=1/0,expandedHunks:i,collapsedContextThreshold:o=Eo,callback:a}){let s=bIe({diff:t,diffStyle:e,startingLine:n,expandedHunks:i,collapsedContextThreshold:o}),l={viewportStart:n,viewportEnd:n+r,isWindowedHighlight:n>0||r<1/0,splitCount:s.splitCount,unifiedCount:s.unifiedCount,finalHunkIndex:t.hunks.length-1,shouldBreak(){if(!l.isWindowedHighlight)return!1;let c=l.unifiedCount>=n+r,u=l.splitCount>=n+r;return e==="unified"?c:(e==="split"||c)&&u},shouldSkip(c,u){if(!l.isWindowedHighlight)return!1;let d=l.unifiedCount+c<n,p=l.splitCount+u<n;return e==="unified"?d:(e==="split"||d)&&p},incrementCounts(c,u){(e==="unified"||e==="both")&&(l.unifiedCount+=c),(e==="split"||e==="both")&&(l.splitCount+=u)},isInWindow(c,u){if(!l.isWindowedHighlight)return!0;let d=l.isInUnifiedWindow(c),p=l.isInSplitWindow(u);return e==="unified"?d:e==="split"?p:d||p},isInUnifiedWindow(c){return!l.isWindowedHighlight||l.unifiedCount>=n-c&&l.unifiedCount<n+r},isInSplitWindow(c){return!l.isWindowedHighlight||l.splitCount>=n-c&&l.splitCount<n+r},emit(c,u=!1){return u||(e==="unified"?l.incrementCounts(1,0):e==="split"?l.incrementCounts(0,1):l.incrementCounts(1,1)),a(c)??!1}};e:for(let c=s.hunkIndex;c<t.hunks.length;c++){let f=function(L,S){return p==null||p.collapsedLines<=0||p.fromStart+p.fromEnd>0?0:e==="unified"?L===u.unifiedLineStart+u.unifiedLineCount-1?p.collapsedLines:0:S===u.splitLineStart+u.splitLineCount-1?p.collapsedLines:0},x=function(){return h?0:(h=!0,d.collapsedLines)},u=t.hunks[c];if(u==null)throw new Error("iterateOverDiff: invalid hunk index");if(l.shouldBreak())break;let d=t1({isPartial:t.isPartial,rangeSize:u.collapsedBefore,expandedHunks:i,hunkIndex:c,collapsedContextThreshold:o}),p=c===l.finalHunkIndex?n1({fileDiff:t,hunkIndex:c,expandedHunks:i,collapsedContextThreshold:o,errorPrefix:"iterateOverDiff"}):void 0,m=d.fromStart+d.fromEnd,h=d.collapsedLines===0;if(l.shouldSkip(m,m))l.incrementCounts(m,m),x();else{let L=u.unifiedLineStart-d.rangeSize,S=u.splitLineStart-d.rangeSize,C=u.deletionLineIndex-d.rangeSize,T=u.additionLineIndex-d.rangeSize,M=u.deletionStart-d.rangeSize,A=u.additionStart-d.rangeSize;if(Pk(l,d.fromStart,e,$=>l.emit({hunkIndex:c,hunk:u,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:M+$,lineIndex:C+$,noEOFCR:!1,unifiedLineIndex:L+$,splitLineIndex:S+$},additionLine:{unifiedLineIndex:L+$,splitLineIndex:S+$,lineIndex:T+$,lineNumber:A+$,noEOFCR:!1}}))||(L=u.unifiedLineStart-d.fromEnd,S=u.splitLineStart-d.fromEnd,C=u.deletionLineIndex-d.fromEnd,T=u.additionLineIndex-d.fromEnd,M=u.deletionStart-d.fromEnd,A=u.additionStart-d.fromEnd,Pk(l,d.fromEnd,e,$=>l.emit({hunkIndex:c,hunk:u,collapsedBefore:x(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:M+$,lineIndex:C+$,noEOFCR:!1,unifiedLineIndex:L+$,splitLineIndex:S+$},additionLine:{unifiedLineIndex:L+$,splitLineIndex:S+$,lineIndex:T+$,lineNumber:A+$,noEOFCR:!1}}),()=>{x()})))break e}let g=u.unifiedLineStart,y=u.splitLineStart,b=u.deletionLineIndex,w=u.additionLineIndex,v=u.deletionStart,k=u.additionStart,_=u.hunkContent.at(-1);for(let L of u.hunkContent){if(l.shouldBreak())break e;let S=L===_;if(L.type==="context"){if(l.shouldSkip(L.lines,L.lines))l.incrementCounts(L.lines,L.lines),x();else if(Pk(l,L.lines,e,C=>{let T=S&&C===L.lines-1,M=g+C,A=y+C;return l.emit({hunkIndex:c,hunk:u,collapsedBefore:x(),collapsedAfter:f(M,A),type:"context",deletionLine:{lineNumber:v+C,lineIndex:b+C,noEOFCR:T&&u.noEOFCRDeletions,unifiedLineIndex:M,splitLineIndex:A},additionLine:{unifiedLineIndex:M,splitLineIndex:A,lineIndex:w+C,lineNumber:k+C,noEOFCR:T&&u.noEOFCRAdditions}})},()=>{x()}))break e;g+=L.lines,y+=L.lines,b+=L.lines,w+=L.lines,v+=L.lines,k+=L.lines}else{let C=Math.max(L.deletions,L.additions),T=L.deletions+L.additions;if(!l.shouldSkip(T,C)){let M=wIe(l,L,e);(M[0]?.[0]??0)>0&&x();for(let[A,$]of M)for(let N=A;N<$;N++){let F=f(g+N,e==="unified"?y+(N<L.deletions?N:N-L.deletions):y+N);if(l.emit(vIe({hunkIndex:c,hunk:u,collapsedBefore:x(),collapsedAfter:F,diffStyle:e,index:N,unifiedLineIndex:g,splitLineIndex:y,additionLineIndex:w,deletionLineIndex:b,additionLineNumber:k,deletionLineNumber:v,content:L,isLastContent:S,unifiedCount:T,splitCount:C}),!0))break e}}x(),l.incrementCounts(T,C),g+=T,y+=C,b+=L.deletions,w+=L.additions,v+=L.deletions,k+=L.additions}}if(p!=null){let{collapsedLines:L,fromStart:S,fromEnd:C}=p,T=S+C;if(Pk(l,T,e,M=>{let A=M===T-1;return l.emit({hunkIndex:t.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:A?L:0,type:"context-expanded",deletionLine:{lineNumber:v+M,lineIndex:b+M,noEOFCR:!1,unifiedLineIndex:g+M,splitLineIndex:y+M},additionLine:{unifiedLineIndex:g+M,splitLineIndex:y+M,lineIndex:w+M,lineNumber:k+M,noEOFCR:!1}})},void 0,()=>l.shouldBreak()))break e}}}function bIe({diff:t,diffStyle:e,startingLine:n,expandedHunks:r,collapsedContextThreshold:i}){if(n<=0||e==="both")return{hunkIndex:0,splitCount:0,unifiedCount:0};let o=yIe({diff:t,expandedHunks:r,collapsedContextThreshold:i}),a=0,s=t.hunks.length-1,l=t.hunks.length;for(;a<=s;){let u=a+s>>1,d=o[u+1];if(d==null)throw new Error("iterateOverDiff: invalid hunk prefix index");(e==="unified"?d.unifiedCount:d.splitCount)>n?(l=u,s=u-1):a=u+1}if(l>=t.hunks.length){let u=o[t.hunks.length];if(u==null)throw new Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:t.hunks.length,splitCount:u.splitCount,unifiedCount:u.unifiedCount}}let c=o[l];if(c==null)throw new Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:l,splitCount:c.splitCount,unifiedCount:c.unifiedCount}}function yIe({diff:t,expandedHunks:e,collapsedContextThreshold:n}){let r=0,i=0,o=t.hunks.length-1,a=[{splitCount:0,unifiedCount:0}];for(let s=0;s<t.hunks.length;s++){let l=t.hunks[s];if(l==null)throw new Error("iterateOverDiff: invalid hunk summary index");let c=t1({isPartial:t.isPartial,rangeSize:l.collapsedBefore,expandedHunks:e,hunkIndex:s,collapsedContextThreshold:n}),u=c.fromStart+c.fromEnd;r+=u+l.splitLineCount,i+=u+l.unifiedLineCount;let d=s===o?n1({fileDiff:t,hunkIndex:s,expandedHunks:e,collapsedContextThreshold:n,errorPrefix:"iterateOverDiff"}):void 0;if(d!=null){let p=d.fromStart+d.fromEnd;r+=p,i+=p}a.push({splitCount:r,unifiedCount:i})}return a}function xIe(t,e,n){if(!t.isWindowedHighlight||e<=0)return[0,e];let r=[];function i(s){let l=Math.max(0,t.viewportStart-s),c=Math.min(e,t.viewportEnd-s);c>l&&r.push([l,c])}if(n!=="split"&&i(t.unifiedCount),n!=="unified"&&i(t.splitCount),r.length===0)return[0,0];let o=r[0][0],a=r[0][1];for(let s=1;s<r.length;s++){let l=r[s];o=Math.min(o,l[0]),a=Math.max(a,l[1])}return[o,a]}function Pk(t,e,n,r,i,o){let[a,s]=xIe(t,e,n);a>0&&(t.incrementCounts(a,a),i?.());let l=a;for(;l<e;){if(o?.()===!0)return!0;if(l>=s){t.incrementCounts(e-l,e-l);break}if(t.isInWindow(0,0)){if(r(l)===!0)return!0}else t.incrementCounts(1,1);l++}return!1}function wIe(t,e,n){if(!t.isWindowedHighlight)return[[0,n==="unified"?e.deletions+e.additions:Math.max(e.deletions,e.additions)]];let r=n!=="split",i=n!=="unified",o=n==="unified"?"unified":"split",a=[];function s(d,p){if(d+p<=t.viewportStart||d>=t.viewportEnd)return;let m=Math.max(0,t.viewportStart-d),f=Math.min(p,t.viewportEnd-d);return f>m?[m,f]:void 0}function l(d,p){return o==="split"?d:p==="additions"?[d[0]+e.deletions,d[1]+e.deletions]:d}function c(d,p){if(d==null)return;let[m,f]=l(d,p);f>m&&a.push([m,f])}if(r&&(c(s(t.unifiedCount,e.deletions),"deletions"),c(s(t.unifiedCount+e.deletions,e.additions),"additions")),i&&(c(s(t.splitCount,e.deletions),"deletions"),c(s(t.splitCount,e.additions),"additions")),a.length===0)return a;a.sort((d,p)=>d[0]-p[0]);let u=[a[0]];for(let[d,p]of a.slice(1)){let m=u[u.length-1];d<=m[1]?m[1]=Math.max(m[1],p):u.push([d,p])}return u}function vIe({hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,diffStyle:i,index:o,unifiedLineIndex:a,splitLineIndex:s,additionLineIndex:l,deletionLineIndex:c,additionLineNumber:u,deletionLineNumber:d,content:p,isLastContent:m,unifiedCount:f,splitCount:h}){let x=o<p.deletions?a+o:void 0,g=i==="unified"?o>=p.deletions?a+o:void 0:o<p.additions?a+p.deletions+o:void 0,y=i==="unified"?s+(o<p.deletions?o:o-p.deletions):s+o,b=o<p.deletions?c+o:void 0,w=o<p.deletions?d+o:void 0,v=i==="unified"?o>=p.deletions?l+(o-p.deletions):void 0:o<p.additions?l+o:void 0,k=i==="unified"?o>=p.deletions?u+(o-p.deletions):void 0:o<p.additions?u+o:void 0,_=i==="unified"?m&&o===p.deletions-1&&e.noEOFCRDeletions:m&&o===h-1&&e.noEOFCRDeletions,L=i==="unified"?m&&o===f-1&&e.noEOFCRAdditions:m&&o===h-1&&e.noEOFCRAdditions,S=b!=null&&w!=null&&x!=null?{lineNumber:w,lineIndex:b,noEOFCR:_,unifiedLineIndex:x,splitLineIndex:y}:void 0,C=v!=null&&k!=null&&g!=null?{unifiedLineIndex:g,splitLineIndex:y,lineIndex:v,lineNumber:k,noEOFCR:L}:void 0;if(S==null&&C!=null)return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,deletionLine:void 0,additionLine:C};if(S!=null&&C==null)return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,deletionLine:S,additionLine:void 0};if(S==null||C==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,deletionLine:S,additionLine:C}}var kIe={forcePlainText:!1};function jk(t,e,n,{forcePlainText:r,startingLine:i,totalLines:o,expandedHunks:a,collapsedContextThreshold:s=Eo}=kIe){r?(i??=0,o??=1/0):(i=0,o=1/0);let l=i>0||o<1/0,c=typeof n.theme=="string"?e.getTheme(n.theme).type:void 0,u=uk({theme:n.theme,highlighter:e}),d=r&&!l&&(t.unifiedLineCount>1e3||t.splitLineCount>1e3)?"none":n.lineDiffType,p={deletionLines:[],additionLines:[]},{maxLineDiffLength:m}=n,f=!r&&!t.isPartial,h=r?a:void 0,x=new Map;function g(b){let w=f?0:b,v=x.get(w)??_Ie();return x.set(w,v),v}function y(b,w,v,k){if(l){let _=v.at(-1);(_==null||_.targetIndex+_.count!==w)&&(_={targetIndex:w,originalOffset:k.length,count:0},v.push(_)),_.count++}k.push(b)}r1({diff:t,diffStyle:"both",startingLine:i,totalLines:o,expandedHunks:l?h:!0,collapsedContextThreshold:s,callback:({hunkIndex:b,additionLine:w,deletionLine:v,type:k})=>{let _=g(b),L=w!=null?w.splitLineIndex:v.splitLineIndex;k==="change"&&w!=null&&v!=null&&CIe({additionLine:t.additionLines[w.lineIndex],deletionLine:t.deletionLines[v.lineIndex],deletionLineIndex:_.deletionContent.length,additionLineIndex:_.additionContent.length,deletionDecorations:_.deletionDecorations,additionDecorations:_.additionDecorations,lineDiffType:d,maxLineDiffLength:m}),v!=null&&(y(t.deletionLines[v.lineIndex],v.lineIndex,_.deletionSegments,_.deletionContent),_.deletionInfo.push({type:k==="change"?"change-deletion":k,lineNumber:v.lineNumber,altLineNumber:k==="change"?void 0:w.lineNumber??void 0,lineIndex:`${v.unifiedLineIndex},${L}`})),w!=null&&(y(t.additionLines[w.lineIndex],w.lineIndex,_.additionSegments,_.additionContent),_.additionInfo.push({type:k==="change"?"change-addition":k,lineNumber:w.lineNumber,altLineNumber:k==="change"?void 0:v.lineNumber??void 0,lineIndex:`${w.unifiedLineIndex},${L}`}))}});for(let b of x.values()){if(b.deletionContent.length===0&&b.additionContent.length===0)continue;let w={name:t.prevName??t.name,contents:b.deletionContent.value},v={name:t.name,contents:b.additionContent.value},{deletionLines:k,additionLines:_}=SIe({deletionFile:w,deletionInfo:b.deletionInfo,deletionDecorations:b.deletionDecorations,additionFile:v,additionInfo:b.additionInfo,additionDecorations:b.additionDecorations,highlighter:e,options:n,languageOverride:r?"text":t.lang});if(f){p.deletionLines=k,p.additionLines=_;continue}if(b.deletionSegments.length>0)for(let L of b.deletionSegments)for(let S=0;S<L.count;S++)p.deletionLines[L.targetIndex+S]=k[L.originalOffset+S];else p.deletionLines.push(...k);if(b.additionSegments.length>0)for(let L of b.additionSegments)for(let S=0;S<L.count;S++)p.additionLines[L.targetIndex+S]=_[L.originalOffset+S];else p.additionLines.push(..._)}return{code:p,themeStyles:u,baseThemeType:c}}function CIe({deletionLine:t,additionLine:e,deletionLineIndex:n,additionLineIndex:r,deletionDecorations:i,additionDecorations:o,lineDiffType:a,maxLineDiffLength:s}){if(t==null||e==null||a==="none"||(t=ud(t),e=ud(e),t.length>s||e.length>s))return;let l=a==="char"?xP(t,e):SP(t,e),c=[],u=[],d=a==="word-alt",p=l.at(-1);for(let f of l){let h=f===p;!f.added&&!f.removed?(z7({item:f,arr:c,enableJoin:d,isNeutral:!0,isLastItem:h}),z7({item:f,arr:u,enableJoin:d,isNeutral:!0,isLastItem:h})):f.removed?z7({item:f,arr:c,enableJoin:d,isLastItem:h}):z7({item:f,arr:u,enableJoin:d,isLastItem:h})}let m=0;for(let f of c)f[0]===1&&i.push(AP({line:n,spanStart:m,spanLength:f[1].length})),m+=f[1].length;m=0;for(let f of u)f[0]===1&&o.push(AP({line:r,spanStart:m,spanLength:f[1].length})),m+=f[1].length}function _Ie(){return{deletionContent:{push(t){this.value+=t,this.length++},value:"",length:0},additionContent:{push(t){this.value+=t,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function SIe({deletionFile:t,additionFile:e,deletionInfo:n,additionInfo:r,highlighter:i,deletionDecorations:o,additionDecorations:a,languageOverride:s,options:{theme:l=nr,...c}}){let u=s??br(t.name),d=s??br(e.name),{state:p,transformers:m}=ck(c.useTokenTransformer),f=typeof l=="string"?{...c,lang:"text",theme:l,transformers:m,decorations:void 0,defaultColor:!1,cssVariablePrefix:ga("token")}:{...c,lang:"text",themes:l,transformers:m,decorations:void 0,defaultColor:!1,cssVariablePrefix:ga("token")};return{deletionLines:t.contents===""?[]:(f.lang=u,p.lineInfo=n,f.decorations=o,P7(i.codeToHast(ud(t.contents),f))),additionLines:e.contents===""?[]:(f.lang=d,f.decorations=a,p.lineInfo=r,P7(i.codeToHast(ud(e.contents),f)))}}function i1(t){let e=t.lang??br(t.name),n=t.lang??(t.prevName!=null?br(t.prevName):"text");return e==="text"&&n==="text"}var LIe=-1,kre=class{__id=`diff-hunks-renderer:${++LIe}`;highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang="text";renderCache;constructor(t={theme:nr},e,n){this.options=t,this.onRenderUpdate=e,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=x0(t.theme??nr)?ek():void 0)}cleanUp(){this.recycle(),this.expandedHunks.clear(),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.highlighter=void 0,this.diff=void 0,this.clearRenderCache(),this.additionAnnotations={},this.deletionAnnotations={},this.workerManager?.cleanUpTasks(this)}clearRenderCache(){this.renderCache=void 0}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}expandHunk(t,e,n=this.getOptionsWithDefaults().expansionLineCount){let r={...this.expandedHunks.get(t)??{fromStart:0,fromEnd:0}};(e==="up"||e==="both")&&(r.fromStart+=n),(e==="down"||e==="both")&&(r.fromEnd+=n),this.renderCache?.highlighted!==!0&&this.clearRenderCache(),this.expandedHunks.set(t,r)}getExpandedHunk(t){return this.expandedHunks.get(t)??tN}getExpandedHunksMap(){return this.expandedHunks}setLineAnnotations(t){this.additionAnnotations={},this.deletionAnnotations={};for(let e of t){let n=(()=>{switch(e.side){case"deletions":return this.deletionAnnotations;case"additions":return this.additionAnnotations}})(),r=n[e.lineNumber]??[];n[e.lineNumber]=r,r.push(e)}}getUnifiedLineDecoration({lineType:t}){return{gutterLineType:t}}getSplitLineDecoration({side:t,type:e}){return e!=="change"?{gutterLineType:e}:{gutterLineType:t==="deletions"?"change-deletion":"change-addition"}}createAnnotationElement(t){return tk(t)}getOptionsWithDefaults(){let{diffIndicators:t="bars",diffStyle:e="split",disableBackground:n=!1,disableFileHeader:r=!1,disableLineNumbers:i=!1,disableVirtualizationBuffers:o=!1,collapsed:a=!1,expandUnchanged:s=!1,collapsedContextThreshold:l=Eo,expansionLineCount:c=100,hunkSeparators:u="line-info",lineDiffType:d="word-alt",maxLineDiffLength:p=1e3,overflow:m="scroll",stickyHeader:f=!1,theme:h=nr,headerRenderMode:x="default",tokenizeMaxLineLength:g=1e3,tokenizeMaxLength:y=ad,useTokenTransformer:b=!1,useCSSClasses:w=!1}=this.options;return{diffIndicators:t,diffStyle:e,disableBackground:n,disableFileHeader:r,disableLineNumbers:i,disableVirtualizationBuffers:o,collapsed:a,expandUnchanged:s,collapsedContextThreshold:l,expansionLineCount:c,hunkSeparators:u,lineDiffType:d,maxLineDiffLength:p,overflow:m,stickyHeader:f,theme:this.workerManager?.getDiffRenderOptions().theme??h,headerRenderMode:x,tokenizeMaxLineLength:g,tokenizeMaxLength:y,useTokenTransformer:b,useCSSClasses:w}}async initializeHighlighter(){return this.highlighter=await y0(ak(this.computedLang,this.options)),this.highlighter}hydrate(t){if(t==null)return;this.diff=t;let{options:e}=this.getRenderOptions(t),n=NP(t,this.getTokenizeMaxLength()),r=this.workerManager?.getDiffResultCache(t);r!=null&&!yu(e,r.options)&&(r=void 0),this.renderCache??={diff:t,highlighted:!n&&!i1(t),options:e,result:n?void 0:r?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!n&&this.workerManager.highlightDiffAST(this,this.diff):this.highlighter==null&&(this.computedLang=t.lang??br(t.name),this.initializeHighlighter())}getRenderOptions(t){let e=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getDiffRenderOptions();let{theme:r,tokenizeMaxLineLength:i,lineDiffType:o,maxLineDiffLength:a}=this.getOptionsWithDefaults();return{theme:r,useTokenTransformer:fk(this.options),tokenizeMaxLineLength:i,lineDiffType:o,maxLineDiffLength:a}})();this.getOptionsWithDefaults();let{renderCache:n}=this;return n?.result==null?{options:e,forceHighlight:!0}:!Wp(t,n.diff)||!yu(e,n.options)?{options:e,forceHighlight:!0}:{options:e,forceHighlight:!1}}renderDiff(t=this.renderCache?.diff,e=o0){if(t==null)return;let{expandUnchanged:n=!1,collapsedContextThreshold:r}=this.getOptionsWithDefaults(),{options:i,forceHighlight:o}=this.getRenderOptions(t),a=this.getMatchingWorkerResultCache(t,i);a!=null&&!this.hasHighlightedRenderCache(t,i)&&(this.renderCache={diff:t,highlighted:!0,renderRange:void 0,...a},o=!1),this.renderCache??={diff:t,highlighted:!1,options:i,result:void 0,renderRange:void 0};let s=t.additionLines.length>0||t.deletionLines.length>0,l=!s||i1(t)||NP(t,this.getTokenizeMaxLength()),c=!Wp(t,this.renderCache.diff),u=!Yf(this.renderCache.renderRange,e);if(this.workerManager?.isWorkingPool()===!0)(l||this.renderCache.result==null||!this.renderCache.highlighted&&(c||u))&&(this.renderCache.diff=t,this.renderCache.options=i,this.renderCache.highlighted=!1,(this.renderCache.result==null||c||u||o)&&(this.renderCache.result=this.workerManager.getPlainDiffAST(t,e.startingLine,e.totalLines,hre(e)||n?!0:this.expandedHunks,r)),this.renderCache.renderRange=e),!l&&s&&(!this.renderCache.highlighted||o)&&this.workerManager.highlightDiffAST(this,t);else{this.computedLang=t.lang??br(t.name);let d=this.highlighter!=null&&x0(i.theme),p=this.highlighter!=null&&Fb(this.computedLang),m=!l&&p;if(this.highlighter!=null&&d&&(o||l||!this.renderCache.highlighted&&m||this.renderCache.result==null)){let{result:f,options:h}=this.renderDiffWithHighlighter(t,this.highlighter,l||!p);this.renderCache={diff:t,options:h,highlighted:m,result:f,renderRange:void 0}}(!d||!l&&!p)&&this.asyncHighlight(t).then(({result:f,options:h})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(t,f,h,!l)})}return this.renderCache.result!=null?this.processDiffResult(this.renderCache.diff,e,this.renderCache.result):void 0}async asyncRender(t,e=o0){let{result:n}=await this.asyncHighlight(t);return this.processDiffResult(t,e,n)}createPreElement(t,e,n){let{diffIndicators:r,disableBackground:i,disableLineNumbers:o,overflow:a}=this.getOptionsWithDefaults();return rk({type:"diff",diffIndicators:r,disableBackground:i,disableLineNumbers:o,overflow:a,split:t,totalLines:e,customProperties:n})}async asyncHighlight(t){let e=NP(t,this.getTokenizeMaxLength());this.computedLang=e?"text":t.lang??br(t.name);let n=this.highlighter!=null&&x0(this.options.theme??nr),r=e||this.highlighter!=null&&Fb(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(t,this.highlighter,e)}renderDiffWithHighlighter(t,e,n=!1){let{options:r}=this.getRenderOptions(t),{collapsedContextThreshold:i}=this.getOptionsWithDefaults();return{result:jk(t,e,r,{forcePlainText:n,expandedHunks:n?!0:void 0,collapsedContextThreshold:i}),options:r}}onHighlightSuccess(t,e,n,r=!0){if(this.renderCache==null)return;let i=!this.renderCache.highlighted||!yu(this.renderCache.options,n)||!Wp(this.renderCache.diff,t);this.renderCache={diff:t,options:n,highlighted:r,result:e,renderRange:void 0},i&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(t,e){let n=this.workerManager?.getDiffResultCache(t);if(!(n==null||!yu(e,n.options)))return n}hasHighlightedRenderCache(t,e){let{renderCache:n}=this;return n?.result!=null&&n.highlighted&&Wp(t,n.diff)&&yu(e,n.options)}onHighlightError(t){console.error(t)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??ad}processDiffResult(t,e,{code:n,themeStyles:r,baseThemeType:i}){let{diffStyle:o,disableFileHeader:a,expandUnchanged:s,expansionLineCount:l,collapsedContextThreshold:c,hunkSeparators:u}=this.getOptionsWithDefaults();this.diff=t;let d=o==="unified",p=[],m=[],f=[],h=[],{additionLines:x,deletionLines:g}=n,y={rowCount:0,hunkSeparators:u,additionsContentAST:p,deletionsContentAST:m,unifiedContentAST:f,unifiedGutterAST:Gf(),deletionsGutterAST:Gf(),additionsGutterAST:Gf(),expansionLineCount:l,hunkData:h,incrementRowCount(A=1){y.rowCount+=A},pushToGutter(A,$){switch(A){case"unified":y.unifiedGutterAST.children.push($);break;case"deletions":y.deletionsGutterAST.children.push($);break;case"additions":y.additionsGutterAST.children.push($);break}}},b=$P({fileDiff:t,errorPrefix:"DiffHunksRenderer.processDiffResult"}),w={size:0,side:void 0,increment(){this.size+=1},flush(){if(o!=="unified"){if(this.size<=0||this.side==null){this.side=void 0,this.size=0;return}this.side==="additions"?(y.pushToGutter("additions",Os(void 0,"buffer",this.size)),p?.push(F7(this.size))):(y.pushToGutter("deletions",Os(void 0,"buffer",this.size)),m?.push(F7(this.size))),this.size=0,this.side=void 0}}},v=(A,$,N,F,D)=>{y.pushToGutter(A,rv($,N,F,D))};function k(A){w.flush(),o==="unified"?IP("unified",A,y):(IP("deletions",A,y),IP("additions",A,y))}r1({diff:t,diffStyle:o,startingLine:e.startingLine,totalLines:e.totalLines,expandedHunks:s?!0:this.expandedHunks,collapsedContextThreshold:c,callback:({hunkIndex:A,hunk:$,collapsedBefore:N,collapsedAfter:F,additionLine:D,deletionLine:O,type:B})=>{let P=O!=null?O.splitLineIndex:D.splitLineIndex,U=D!=null?D.unifiedLineIndex:O.unifiedLineIndex;o==="split"&&B!=="change"&&w.flush(),N>0&&k({hunkIndex:A,collapsedLines:N,rangeSize:Math.max($?.collapsedBefore??0,0),hunkSpecs:$?.hunkSpecs,isFirstHunk:A===0,isLastHunk:!1,isExpandable:!t.isPartial});let G=o==="unified"?U:P,j={type:B,hunkIndex:A,lineIndex:G,unifiedLineIndex:U,splitLineIndex:P,deletionLine:O,additionLine:D};if(o==="unified"){let ie=this.getUnifiedInjectedRowsForLine?.(j);ie?.before!=null&&xre(ie.before,y);let Z=O!=null?g[O.lineIndex]:void 0,ce=D!=null?x[D.lineIndex]:void 0;if(Z==null&&ce==null){let le="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(le,{file:t.name}),new Error(le)}let se=B==="change"?D!=null?"change-addition":"change-deletion":B,be=this.getUnifiedLineDecoration({type:B,lineType:se,additionLineIndex:D?.lineIndex,deletionLineIndex:O?.lineIndex});v("unified",be.gutterLineType,D!=null?D.lineNumber:O.lineNumber,`${U},${P}`,be.gutterProperties),ce!=null?ce=Ok(ce,be.contentProperties):Z!=null&&(Z=Ok(Z,be.contentProperties)),vre({diffStyle:"unified",type:B,deletionLine:Z,additionLine:ce,unifiedSpan:this.getAnnotations("unified",O?.lineNumber,D?.lineNumber,A,G),createAnnotationElement:le=>this.createAnnotationElement(le),context:y}),ie?.after!=null&&xre(ie.after,y)}else{let ie=this.getSplitInjectedRowsForLine?.(j);ie?.before!=null&&wre(ie.before,y,w);let Z=O!=null?g[O.lineIndex]:void 0,ce=D!=null?x[D.lineIndex]:void 0,se=this.getSplitLineDecoration({side:"deletions",type:B,lineIndex:O?.lineIndex}),be=this.getSplitLineDecoration({side:"additions",type:B,lineIndex:D?.lineIndex});if(Z==null&&ce==null){let ke="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(ke,{file:t.name}),new Error(ke)}let le=(()=>{if(B==="change"){if(ce==null)return"additions";if(Z==null)return"deletions"}})();if(le!=null){if(w.side!=null&&w.side!==le)throw new Error("DiffHunksRenderer.processDiffResult: iterateOverDiff, invalid pending splits");w.side=le,w.increment()}let ge=this.getAnnotations("split",O?.lineNumber,D?.lineNumber,A,G);if(ge!=null&&w.size>0&&w.flush(),O!=null){let ke=Ok(Z,se.contentProperties);v("deletions",se.gutterLineType,O.lineNumber,`${O.unifiedLineIndex},${P}`,se.gutterProperties),ke!=null&&(Z=ke)}if(D!=null){let ke=Ok(ce,be.contentProperties);v("additions",be.gutterLineType,D.lineNumber,`${D.unifiedLineIndex},${P}`,be.gutterProperties),ke!=null&&(ce=ke)}vre({diffStyle:"split",type:B,additionLine:ce,deletionLine:Z,...ge,createAnnotationElement:ke=>this.createAnnotationElement(ke),context:y}),ie?.after!=null&&wre(ie.after,y,w)}let V=o==="split"&&$!=null&&P===$.splitLineStart+$.splitLineCount-1,H=V?$.noEOFCRDeletions:!1,ne=V?$.noEOFCRAdditions:!1,J=(O?.noEOFCR??!1)||H,W=(D?.noEOFCR??!1)||ne;if(W||J){if(o==="split"&&w.flush(),J){let ie=B==="context"||B==="context-expanded"?B:"change-deletion";o==="unified"?(y.unifiedContentAST.push(B7(ie)),y.pushToGutter("unified",Os(ie,"metadata",1))):(y.deletionsContentAST.push(B7(ie)),y.pushToGutter("deletions",Os(ie,"metadata",1)),W||(y.pushToGutter("additions",Os(void 0,"buffer",1)),y.additionsContentAST.push(F7(1))))}if(W){let ie=B==="context"||B==="context-expanded"?B:"change-addition";o==="unified"?(y.unifiedContentAST.push(B7(ie)),y.pushToGutter("unified",Os(ie,"metadata",1))):(y.additionsContentAST.push(B7(ie)),y.pushToGutter("additions",Os(ie,"metadata",1)),J||(y.pushToGutter("deletions",Os(void 0,"buffer",1)),y.deletionsContentAST.push(F7(1))))}y.incrementRowCount(1)}F>0&&u!=="simple"&&k({hunkIndex:B==="context-expanded"?A:A+1,collapsedLines:F,rangeSize:b,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:!t.isPartial}),y.incrementRowCount(1)}}),o==="split"&&w.flush();let _=Math.max(fre(t.hunks),t.additionLines.length??0,t.deletionLines.length??0),L=e.bufferBefore>0||e.bufferAfter>0,S=!d&&t.type!=="deleted",C=!d&&t.type!=="new",T=y.rowCount>0||L;p=S&&T?p:void 0,m=C&&T?m:void 0,f=d&&T?f:void 0;let M=this.createPreElement(m!=null&&p!=null,_);return{unifiedGutterAST:d&&T?y.unifiedGutterAST.children:void 0,unifiedContentAST:f,deletionsGutterAST:C&&T?y.deletionsGutterAST.children:void 0,deletionsContentAST:m,additionsGutterAST:S&&T?y.additionsGutterAST.children:void 0,additionsContentAST:p,hunkData:h,preNode:M,themeStyles:r,baseThemeType:i,headerElement:a?void 0:this.renderHeader(this.diff),totalLines:_,rowCount:y.rowCount,bufferBefore:e.bufferBefore,bufferAfter:e.bufferAfter,css:""}}renderCodeAST(t,e){let n=t==="unified"?e.unifiedGutterAST:t==="deletions"?e.deletionsGutterAST:e.additionsGutterAST,r=t==="unified"?e.unifiedContentAST:t==="deletions"?e.deletionsContentAST:e.additionsContentAST;if(n==null||r==null)return;let i=Gf(n);return i.properties.style=`grid-row: span ${e.rowCount}`,[i,mk(r,e.rowCount)]}renderFullAST(t,e=[]){let n=this.getOptionsWithDefaults().hunkSeparators==="line-info",r=this.renderCodeAST("unified",t);if(r!=null)return e.push(zt({tagName:"code",children:r,properties:{"data-code":"","data-container-size":n?"":void 0,"data-unified":""}})),{...t.preNode,children:e};let i=this.renderCodeAST("deletions",t);i!=null&&e.push(zt({tagName:"code",children:i,properties:{"data-code":"","data-container-size":n?"":void 0,"data-deletions":""}}));let o=this.renderCodeAST("additions",t);return o!=null&&e.push(zt({tagName:"code",children:o,properties:{"data-code":"","data-container-size":n?"":void 0,"data-additions":""}})),{...t.preNode,children:e}}renderFullHTML(t,e=[]){return Vo(this.renderFullAST(t,e))}renderPartialHTML(t,e){return e==null?Vo(t):Vo(zt({tagName:"code",children:t,properties:{"data-code":"","data-container-size":this.getOptionsWithDefaults().hunkSeparators==="line-info"?"":void 0,[`data-${e}`]:""}}))}getAnnotations(t,e,n,r,i){let o={type:"annotation",hunkIndex:r,lineIndex:i,annotations:[]};if(e!=null)for(let s of this.deletionAnnotations[e]??[])o.annotations.push(El(s));let a={type:"annotation",hunkIndex:r,lineIndex:i,annotations:[]};if(n!=null)for(let s of this.additionAnnotations[n]??[])(t==="unified"?o:a).annotations.push(El(s));if(t==="unified")return o.annotations.length>0?o:void 0;if(!(a.annotations.length===0&&o.annotations.length===0))return{deletionSpan:o,additionSpan:a}}renderHeader(t){let{headerRenderMode:e,stickyHeader:n}=this.getOptionsWithDefaults();return nk({fileOrDiff:t,mode:e,stickyHeader:n})}};function yre(t){return`${t} unmodified line${t>1?"s":""}`}function xre(t,e){for(let n of t)e.unifiedContentAST.push(n.content),e.pushToGutter("unified",n.gutter),e.incrementRowCount(1)}function wre(t,e,n){for(let{deletion:r,addition:i}of t){if(r==null&&i==null)continue;let o=r!=null&&i!=null?void 0:r==null?"deletions":"additions";(o==null||n.side!==o)&&n.flush(),r!=null&&(e.deletionsContentAST.push(r.content),e.pushToGutter("deletions",r.gutter)),i!=null&&(e.additionsContentAST.push(i.content),e.pushToGutter("additions",i.gutter)),o!=null&&(n.side=o,n.increment()),e.incrementRowCount(1)}}function vre({diffStyle:t,type:e,deletionLine:n,additionLine:r,unifiedSpan:i,deletionSpan:o,additionSpan:a,createAnnotationElement:s,context:l}){let c=!1;if(t==="unified"){if(r!=null?l.unifiedContentAST.push(r):n!=null&&l.unifiedContentAST.push(n),i!=null){let u=e==="change"?n!=null?"change-deletion":"change-addition":e;l.unifiedContentAST.push(s(i)),l.pushToGutter("unified",Os(u,"annotation",1)),c=!0}}else if(t==="split"){if(n!=null&&l.deletionsContentAST.push(n),r!=null&&l.additionsContentAST.push(r),o!=null){let u=e==="change"?n!=null?"change-deletion":"context":e;l.deletionsContentAST.push(s(o)),l.pushToGutter("deletions",Os(u,"annotation",1)),c=!0}if(a!=null){let u=e==="change"?r!=null?"change-addition":"context":e;l.additionsContentAST.push(s(a)),l.pushToGutter("additions",Os(u,"annotation",1)),c=!0}}c&&l.incrementRowCount(1)}function IP(t,{hunkIndex:e,collapsedLines:n,rangeSize:r,hunkSpecs:i,isFirstHunk:o,isLastHunk:a,isExpandable:s},l){if(n<=0)return;let c=t==="unified"?l.unifiedContentAST:t==="deletions"?l.deletionsContentAST:l.additionsContentAST;if(l.hunkSeparators==="metadata"){i!=null&&(l.pushToGutter(t,v0({type:"metadata",content:i,isFirstHunk:o,isLastHunk:a})),c.push(v0({type:"metadata",content:i,isFirstHunk:o,isLastHunk:a})),t!=="additions"&&l.incrementRowCount(1));return}if(l.hunkSeparators==="simple"){e>0&&(l.pushToGutter(t,v0({type:"simple",isFirstHunk:o,isLastHunk:!1})),c.push(v0({type:"simple",isFirstHunk:o,isLastHunk:!1})),t!=="additions"&&l.incrementRowCount(1));return}let u=mre(t,e),d=r>l.expansionLineCount,p=s?e:void 0;l.pushToGutter(t,v0({type:l.hunkSeparators,content:yre(n),expandIndex:p,chunked:d,slotName:u,isFirstHunk:o,isLastHunk:a})),c.push(v0({type:l.hunkSeparators,content:yre(n),expandIndex:p,chunked:d,slotName:u,isFirstHunk:o,isLastHunk:a})),t!=="additions"&&l.incrementRowCount(1),l.hunkData.push({slotName:u,hunkIndex:e,lines:n,type:t,expandable:s?{up:!o,down:!a,chunked:d}:void 0})}function Ok(t,e){return t==null||t.type!=="element"||e==null?t:{...t,properties:{...t.properties,...e}}}function NP(t,e){return Math.max(t.additionLines.length,t.deletionLines.length)>e}function Cre(t,e){return t.lineNumber===e.lineNumber&&t.side===e.side&&t.metadata===e.metadata}function _re(t,e){return t.slotName===e.slotName&&t.hunkIndex===e.hunkIndex&&t.lines===e.lines&&t.type===e.type&&t.expandable?.chunked===e.expandable?.chunked&&t.expandable?.up===e.expandable?.up&&t.expandable?.down===e.expandable?.down}function Sre(t){return{theme:t?.theme,disableLineNumbers:t?.disableLineNumbers,overflow:t?.overflow,collapsed:t?.collapsed,disableFileHeader:t?.disableFileHeader,disableVirtualizationBuffers:t?.disableVirtualizationBuffers,stickyHeader:t?.stickyHeader,preferredHighlighter:t?.preferredHighlighter,useCSSClasses:t?.useCSSClasses,useTokenTransformer:t?.useTokenTransformer,tokenizeMaxLineLength:t?.tokenizeMaxLineLength,tokenizeMaxLength:t?.tokenizeMaxLength,diffStyle:t?.diffStyle,diffIndicators:t?.diffIndicators,disableBackground:t?.disableBackground,hunkSeparators:typeof t?.hunkSeparators=="function"?"custom":t?.hunkSeparators,expandUnchanged:t?.expandUnchanged,collapsedContextThreshold:t?.collapsedContextThreshold,lineDiffType:t?.lineDiffType,maxLineDiffLength:t?.maxLineDiffLength,expansionLineCount:t?.expansionLineCount,headerRenderMode:t?.renderCustomHeader!=null?"custom":"default"}}var MIe=-1,Dk=class{static LoadedCustomComponent=Mk;__id=`file-diff:${++MIe}`;type="file-diff";fileContainer;spriteSVG;pre;codeUnified;codeDeletions;codeAdditions;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;hasAdoptedThemeCSS=!1;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;headerElement;headerPrefix;headerMetadata;headerCustom;separatorCache=new Map;errorWrapper;placeHolder;hunksRenderer;resizeManager;scrollSyncManager;interactionManager;annotationCache=new Map;lineAnnotations=[];managersDirty=!1;deletionFile;additionFile;fileDiff;renderRange;appliedPreAttributes;lastRenderedHeaderHTML;cachedHeaderHTML;lastRowCount;mounted=!1;enabled=!0;constructor(t={theme:nr},e,n=!1){this.options=t,this.workerManager=e,this.isContainerManaged=n,this.hunksRenderer=this.createHunksRenderer(t),this.resizeManager=new yv,this.scrollSyncManager=new pre,this.interactionManager=new bv("diff",Db(t,typeof t.hunkSeparators=="function"||(t.hunkSeparators??"line-info")==="line-info"||t.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)),this.workerManager?.subscribeToThemeChanges(this),this.enabled=!0}handleHighlightRender=()=>{this.rerender()};getHunksRendererOptions(t){return Sre(t)}createHunksRenderer(t){return new kre(this.getHunksRendererOptions(t),this.handleHighlightRender,this.workerManager)}getLineIndex=(t,e="additions")=>{if(this.fileDiff==null)return;let n=this.fileDiff.hunks.at(-1),r,i;e:for(let o of this.fileDiff.hunks){let a=e==="deletions"?o.deletionStart:o.additionStart,s=e==="deletions"?o.deletionCount:o.additionCount,l=o.splitLineStart,c=o.unifiedLineStart;if(t<a){let u=a-t;r=Math.max(c-u,0),i=Math.max(l-u,0);break e}if(t>=a+s){if(o===n){let u=t-(a+s);r=c+o.unifiedLineCount+u,i=l+o.splitLineCount+u;break e}continue}for(let u of o.hunkContent)if(u.type==="context")if(t<a+u.lines){let d=t-a;i=l+d,r=c+d;break e}else a+=u.lines,l+=u.lines,c+=u.lines;else{let d=e==="deletions"?u.deletions:u.additions;if(t<a+d){let p=t-a;r=c+(e==="additions"?u.deletions:0)+p,i=l+p;break e}else a+=d,l+=Math.max(u.deletions,u.additions),c+=u.deletions+u.additions}break e}if(!(r==null||i==null))return[r,i]};setOptions(t){t!=null&&(this.options=t,this.cachedHeaderHTML=void 0,this.hunksRenderer.setOptions(this.getHunksRendererOptions(t)),this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(Db(this.options,typeof this.options.hunkSeparators=="function"||(this.options.hunkSeparators??"line-info")==="line-info"||this.options.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex))}mergeOptions(t){this.options={...this.options,...t}}setThemeType(t){(this.options.themeType??"system")!==t&&(this.mergeOptions({themeType:t}),this.applyCachedThemeState(t))}applyCachedThemeState(t){if(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)return!1;let e=this.appliedThemeCSS.baseThemeType??t;return this.appliedThemeCSS.themeType===e?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,t,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!Cc(this.appliedThemeCSS.theme,this.options.theme??nr)}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(t){this.lineAnnotations=t}canPartiallyRender(t,e,n){return!(t||e||n||typeof this.options.hunkSeparators=="function")}setSelectedLines(t,e){this.interactionManager.setSelection(t,e)}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}let{diffStyle:t="split",overflow:e="scroll"}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,e==="wrap"),e==="scroll"&&t==="split"?this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp(),this.managersDirty=!1}cleanUp(t=!1){this.emitPostRender(!0),this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.managersDirty=!1,this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer=void 0,this.mounted=!1,this.lineAnnotations=[],this.clearAuxiliaryNodes(),this.annotationCache.clear(),this.pre=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.placeHolder=void 0,this.lastRenderedHeaderHTML=void 0,t||(this.cachedHeaderHTML=void 0),this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,t?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(t){let{fileContainer:e,prerenderedHTML:n,preventEmit:r=!1,lineAnnotations:i,oldFile:o,newFile:a,fileDiff:s}=t;this.hydrateElements(e,n),RIe(this.pre,EIe({fileDiff:s,oldFile:o,newFile:a}),this.options.collapsed)||AIe(this.headerElement,TIe({fileDiff:s,oldFile:o,newFile:a}),this.options.disableFileHeader)?this.render({...t,preventEmit:!0}):this.hydrationSetup({fileDiff:s,oldFile:o,newFile:a,lineAnnotations:i}),r||this.emitPostRender()}hydrateElements(t,e){this.fileContainer!==t&&this.emitPostRender(!0),_k(t,e);for(let n of t.shadowRoot?.children??[]){if(n instanceof SVGElement){this.spriteSVG=n;continue}if(n instanceof HTMLElement){if(n instanceof HTMLPreElement){this.pre=n;for(let r of n.children)!(r instanceof HTMLElement)||r.tagName.toLowerCase()!=="code"||("deletions"in r.dataset&&(this.codeDeletions=r),"additions"in r.dataset&&(this.codeAdditions=r),"unified"in r.dataset&&(this.codeUnified=r));continue}if("diffsHeader"in n.dataset){this.headerElement=n;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Np)){this.themeCSSStyle=n;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Pp)){this.unsafeCSSStyle=n,this.appliedUnsafeCSS=n.textContent;continue}}}this.pre!=null&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=t,this.hydrateMeasuredScrollbar()}hydrationSetup({fileDiff:t,oldFile:e,newFile:n,lineAnnotations:r}){this.lineAnnotations=r??this.lineAnnotations,this.additionFile=n,this.deletionFile=e,this.fileDiff=t??(e!=null&&n!=null?D7(e,n,this.options.parseDiffOptions):void 0),this.pre!=null&&(this.syncInteractionOptions(),this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||this.render({forceRender:!0,renderRange:this.renderRange})}onThemeChange(){this.hunksRenderer.clearRenderCache(),this.rerender()}handleExpandHunk=(t,e,n)=>{this.expandHunk(t,e,n)};expandHunk=(t,e,n)=>{this.hunksRenderer.expandHunk(t,e,n),this.rerender()};render({oldFile:t,newFile:e,fileDiff:n,deferManagers:r=!1,forceRender:i=!1,preventEmit:o=!1,lineAnnotations:a,fileContainer:s,containerWrapper:l,renderRange:c}){if(!this.enabled)throw new Error("FileDiff.render: attempting to call render after cleaned up");let{collapsed:u=!1,themeType:d="system"}=this.options,p=u?void 0:c,m=this.hasThemeChanged(),f=t!=null&&e!=null&&(!Ec(t,this.deletionFile)||!Ec(e,this.additionFile)),h=n!=null&&n!==this.fileDiff,x=a!=null&&(a.length>0||this.lineAnnotations.length>0)?a!==this.lineAnnotations:!1;if(!u&&Yf(p,this.renderRange)&&!i&&!x&&!m&&(n!=null&&n===this.fileDiff||n==null&&!f))return this.applyCachedThemeState(d);let{renderRange:g}=this;if(this.renderRange=p,this.deletionFile=t,this.additionFile=e,n!=null?this.fileDiff=n:t!=null&&e!=null&&f&&(h=!0,this.fileDiff=D7(t,e,this.options.parseDiffOptions)),h&&(this.cachedHeaderHTML=void 0),a!=null&&this.setLineAnnotations(a),this.fileDiff==null)return!1;this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.syncInteractionOptions(),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);let{disableErrorHandling:y=!1,disableFileHeader:b=!1}=this.options;if(b&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),s=this.getOrCreateFileContainer(s,l),this.applyCachedThemeState(d),u){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let w=this.hunksRenderer.renderDiff(this.fileDiff,a7);w!=null&&this.applyThemeState(s,w.themeStyles,d,w.baseThemeType),w?.headerElement!=null&&this.applyHeaderToDOM(w.headerElement,s),this.renderSeparators([]),this.injectUnsafeCSS()}catch(w){if(y)throw w;console.error(w),w instanceof Error&&this.applyErrorToDOM(w,s)}return o||this.emitPostRender(),!0}try{let w=this.getOrCreatePreNode(s);if(!(this.canPartiallyRender(i,x,f||h||m)&&this.applyPartialRender({previousRenderRange:g,renderRange:p}))){let v=this.hunksRenderer.renderDiff(this.fileDiff,p);if(v==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(s,v.themeStyles,d,v.baseThemeType),v.headerElement!=null&&this.applyHeaderToDOM(v.headerElement,s),v.additionsContentAST!=null||v.deletionsContentAST!=null||v.unifiedContentAST!=null?this.applyHunksToDOM(w,v):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(v.hunkData)}this.applyBuffers(w,p),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.managersDirty=!0,r||this.flushManagers()}catch(w){if(y)throw w;console.error(w),w instanceof Error&&this.applyErrorToDOM(w,s)}return o||this.emitPostRender(),!0}emitPostRender(t=!1){let{fileContainer:e,options:{onPostRender:n}}=this;if(t){if(!this.mounted||(this.mounted=!1,e==null))return;this.options.onPostRender?.(e,this,"unmount");return}if(e==null)return;let r=this.mounted?"update":"mount";this.mounted=!0,n?.(e,this,r)}removeRenderedCode(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:t}of this.separatorCache.values())t.remove();this.separatorCache.clear();for(let{element:t}of this.annotationCache.values())t.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(t){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty("height",`${t}px`),!0}primeHighlightCache(){let{fileDiff:t,workerManager:e}=this;if(t==null||e==null||i1(t))return;let n=this.options.tokenizeMaxLength??ad;Math.max(t.additionLines.length,t.deletionLines.length)>n||e.primeDiffHighlightCache(t)}cleanChildNodes(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.clearAuxiliaryNodes(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.codeAdditions?.remove(),this.codeDeletions?.remove(),this.codeUnified?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderSeparators(t){let{hunkSeparators:e}=this.options;if(this.isContainerManaged||this.fileContainer==null||typeof e!="function"){for(let{element:r}of this.separatorCache.values())r.remove();this.separatorCache.clear();return}let n=new Map(this.separatorCache);for(let r of t){let i=r.slotName,o=this.separatorCache.get(i);if(o==null||!_re(r,o.hunkData)){o?.element.remove();let a=document.createElement("div");a.style.display="contents",a.slot=r.slotName;let s=e(r,this);s!=null&&a.appendChild(s),this.fileContainer.appendChild(a),o={element:a,hunkData:r},this.separatorCache.set(i,o)}n.delete(i)}for(let[r,{element:i}]of n.entries())this.separatorCache.delete(r),i.remove()}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:n}of this.annotationCache.values())n.remove();this.annotationCache.clear();return}let t=new Map(this.annotationCache),{renderAnnotation:e}=this.options;if(e!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${El(r)}`,o=this.annotationCache.get(i);if(o==null||!Cre(r,o.annotation)){o?.element.remove();let a=e(r);if(a==null)continue;o={element:bk(El(r)),annotation:r},o.element.appendChild(a),this.fileContainer.appendChild(o.element),this.annotationCache.set(i,o)}t.delete(i)}for(let[n,{element:r}]of t.entries())this.annotationCache.delete(n),r.remove()}renderGutterUtility(){let{renderGutterUtility:t}=this.options;if(this.fileContainer==null||t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let e=t(this.interactionManager.getHoveredLine);if(e!=null&&this.gutterUtilityContent!=null)return;if(e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=yk();n.appendChild(e),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}getOrCreateFileContainer(t,e){let{fileContainer:n}=this,r=t??n??document.createElement(kc),i=n!==r;return i&&this.emitPostRender(!0),this.fileContainer=r,n!=null&&i&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),e!=null&&this.fileContainer.parentNode!==e&&e.appendChild(this.fileContainer),i&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(t){let{shadowRoot:e}=t;if(e!=null)for(let n of e.children)n instanceof SVGElement?this.spriteSVG??=n:Wb(n)&&n.hasAttribute(Np)?(this.themeCSSStyle??=n,this.hasAdoptedThemeCSS=!0):Wb(n)&&n.hasAttribute(Pp)&&(this.unsafeCSSStyle??=n,this.appliedUnsafeCSS??=this.options.unsafeCSS??void 0)}ensureSpriteSVG(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});if(this.spriteSVG==null){let n=document.createElement("div");n.innerHTML=hk;let r=n.firstChild;r instanceof SVGElement&&(this.spriteSVG=r)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==e&&e.appendChild(this.spriteSVG)}getOrCreatePreNode(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});return this.pre==null?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,e.appendChild(this.pre)):this.pre.parentNode!==e&&(e.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(t){this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0;for(let e of Array.from(t.children))e instanceof HTMLElement&&(e.hasAttribute("data-unified")?this.codeUnified=e:e.hasAttribute("data-deletions")?this.codeDeletions=e:e.hasAttribute("data-additions")&&(this.codeAdditions=e))}applyHeaderToDOM(t,e){this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let{fileDiff:n}=this,r=this.cachedHeaderHTML??Vo(t);if(this.cachedHeaderHTML=r,r!==this.lastRenderedHeaderHTML){let c=document.createElement("div");c.innerHTML=r;let u=c.firstElementChild;if(!(u instanceof HTMLElement))return;this.headerElement!=null?e.shadowRoot?.replaceChild(u,this.headerElement):e.shadowRoot?.prepend(u),this.headerElement=u,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged||n==null)return;let{renderCustomHeader:i,renderHeaderPrefix:o,renderHeaderMetadata:a}=this.options;if(i!=null){let c=i(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(e,this.headerCustom,Ip,c),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0;return}let s=o?.(n)??void 0,l=a?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(e,this.headerPrefix,Ap,s),this.headerMetadata=this.upsertHeaderSlotElement(e,this.headerMetadata,$p,l),this.headerCustom?.remove(),this.headerCustom=void 0}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(t,e,n,r){if(r==null){e?.remove();return}let i=e??this.createHeaderSlotElement(n);return e==null&&t.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(t,e){t.replaceChildren(),e instanceof Element?t.appendChild(e):t.innerText=`${e}`}createHeaderSlotElement(t){let e=document.createElement("div");return e.slot=t,e}injectUnsafeCSS(){let{unsafeCSS:t}=this.options,e=this.fileContainer?.shadowRoot;if(e!=null){if(t==null||t===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===e&&this.appliedUnsafeCSS===t||(this.unsafeCSSStyle??=xk(),this.unsafeCSSStyle.parentNode!==e&&e.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=vk(t),this.appliedUnsafeCSS=t)}}applyThemeState(t,e,n,r){let i=t.shadowRoot??t.attachShadow({mode:"open"}),o=r??n,a=this.options.theme??nr,s=typeof a=="string"?a:{...a},l=Jf(i);if(this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===e&&this.appliedThemeCSS.themeType===o&&this.appliedThemeCSS.scrollbarGutter===l){this.appliedThemeCSS.theme=s;return}if(this.hasAdoptedThemeCSS&&this.themeCSSStyle?.parentNode===i){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l};return}this.themeCSSStyle=Lk({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:kk(e,o,l)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l}:void 0}hydrateMeasuredScrollbar(){let t=this.fileContainer?.shadowRoot;t==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=Ck(this.themeCSSStyle.textContent??"",Jf(t)))}applyHunksToDOM(t,e){let{overflow:n="scroll"}=this.options,r=(this.options.hunkSeparators??"line-info")==="line-info",i=n==="wrap"?e.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(t,e);let o=!1,a=[],s=this.hunksRenderer.renderCodeAST("unified",e),l=this.hunksRenderer.renderCodeAST("deletions",e),c=this.hunksRenderer.renderCodeAST("additions",e);s!=null?(o=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=Zb({code:this.codeUnified,columnType:"unified",rowSpan:i,containerSize:r}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(s),a.push(this.codeUnified)):l!=null||c!=null?(l!=null?(o=this.codeDeletions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=Zb({code:this.codeDeletions,columnType:"deletions",rowSpan:i,containerSize:r}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(l),a.push(this.codeDeletions)):(this.codeDeletions?.remove(),this.codeDeletions=void 0),c!=null?(o=o||this.codeAdditions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=Zb({code:this.codeAdditions,columnType:"additions",rowSpan:i,containerSize:r}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(c),a.push(this.codeAdditions)):(this.codeAdditions?.remove(),this.codeAdditions=void 0)):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0),a.length===0?t.textContent="":o&&t.replaceChildren(...a),this.lastRowCount=e.rowCount}applyPartialRender({previousRenderRange:t,renderRange:e}){let{pre:n,codeUnified:r,codeAdditions:i,codeDeletions:o,options:{diffStyle:a="split"}}=this;if(n==null||t==null||e==null||!Number.isFinite(t.totalLines)||!Number.isFinite(e.totalLines)||this.lastRowCount==null)return!1;let s=this.getCodeColumns(a,r,o,i);if(s==null)return!1;let l=t.startingLine,c=e.startingLine,u=l+t.totalLines,d=c+e.totalLines,p=Math.max(l,c),m=Math.min(u,d);if(m<=p)return!1;let f=Math.max(0,p-l),h=Math.max(0,u-m),x=this.trimColumns({columns:s,trimStart:f,trimEnd:h,previousStart:l,overlapStart:p,overlapEnd:m,diffStyle:a});if(x<0)throw new Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<x)throw new Error("applyPartialRender: trimmed beyond DOM row count");let g=this.lastRowCount-x,y=(k,_)=>{if(!(_<=0||this.fileDiff==null))return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:k,totalLines:_,bufferBefore:0,bufferAfter:0})},b=y(c,Math.max(p-c,0));if(b==null&&c<p)return!1;let w=y(m,Math.max(d-m,0));if(w==null&&d>m)return!1;let v=(k,_)=>{if(k!=null){if(a==="unified"&&!Array.isArray(s))this.insertPartialHTML(a,s,k,_);else if(a==="split"&&Array.isArray(s))this.insertPartialHTML(a,s,k,_);else throw new Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");g+=k.rowCount}};return this.cleanupErrorWrapper(),v(b,"afterbegin"),v(w,"beforeend"),this.lastRowCount!==g&&(this.applyRowSpan(a,s,g),this.lastRowCount=g),!0}insertPartialHTML(t,e,n,r){if(t==="unified"&&!Array.isArray(e)){let i=this.hunksRenderer.renderCodeAST("unified",n);this.renderPartialColumn(e,i,r)}else if(t==="split"&&Array.isArray(e)){let i=this.hunksRenderer.renderCodeAST("deletions",n),o=this.hunksRenderer.renderCodeAST("additions",n);this.renderPartialColumn(e[0],i,r),this.renderPartialColumn(e[1],o,r)}else throw new Error("FileDiff.insertPartialHTML: Invalid argument composition")}renderPartialColumn(t,e,n){if(t==null||e==null)return;let r=Lre(e[0]),i=Lre(e[1]);if(r==null||i==null)throw new Error("FileDiff.insertPartialHTML: Unexpected AST structure");let o=i.at(0);n==="beforeend"&&o?.type==="element"&&typeof o.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(o.properties["data-buffer-size"],t.content.children[t.content.children.length-1],t.gutter.children[t.gutter.children.length-1],r,i,!0);let a=i.at(-1);n==="afterbegin"&&a?.type==="element"&&typeof a.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(a.properties["data-buffer-size"],t.content.children[0],t.gutter.children[0],r,i,!1),t.gutter.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(r)),t.content.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(i))}mergeBuffersIfNecessary(t,e,n,r,i,o){if(!(e instanceof HTMLElement)||!(n instanceof HTMLElement))return;let a=this.getBufferSize(e.dataset);a!=null&&(o?(r.shift(),i.shift()):(r.pop(),i.pop()),this.updateBufferSize(e,a+t),this.updateBufferSize(n,a+t))}applyRowSpan(t,e,n){let r=i=>{i!=null&&(i.gutter.style.setProperty("grid-row",`span ${n}`),i.content.style.setProperty("grid-row",`span ${n}`))};if(t==="unified"&&!Array.isArray(e))r(e);else if(t==="split"&&Array.isArray(e))r(e[0]),r(e[1]);else throw new Error("dun fuuuuked up")}trimColumnRows(t,e,n){let r=0,i=0,o=0,a=!1,s=n>=0;if(t==null)return 0;let l=Array.from(t.content.children),c=Array.from(t.gutter.children);if(l.length!==c.length)throw new Error("FileDiff.trimColumnRows: columns do not match");for(;o<l.length&&!(e<=0&&!s&&!a);){let u=c[o],d=l[o];if(o++,!(u instanceof HTMLElement)||!(d instanceof HTMLElement))throw console.error({gutterElement:u,contentElement:d}),new Error("FileDiff.trimColumnRows: invalid row elements");if(a&&(a=!1,u.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in d.dataset||u.dataset.gutterBuffer==="metadata"&&"noNewline"in d.dataset)){u.remove(),d.remove(),i++;continue}if("lineIndex"in u.dataset&&"lineIndex"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),e>0&&(e--,e===0&&(a=!0)),i++),r++;continue}if("separator"in u.dataset&&"separator"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),i++);continue}if(u.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),i++);continue}if(u.dataset.gutterBuffer==="metadata"&&"noNewline"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),i++);continue}if(u.dataset.gutterBuffer==="buffer"&&"contentBuffer"in d.dataset){let p=this.getBufferSize(d.dataset);if(p==null)throw new Error("FileDiff.trimColumnRows: invalid element");if(e>0){let m=Math.min(e,p),f=p-m;f>0?(this.updateBufferSize(u,f),this.updateBufferSize(d,f),i+=m):(u.remove(),d.remove(),i+=p),e-=m,e===0&&f===0&&(a=!0)}else if(s){let m=r,f=r+p-1;if(n<=m)u.remove(),d.remove(),i+=p;else if(n<=f){let h=f-n+1,x=p-h;this.updateBufferSize(u,x),this.updateBufferSize(d,x),i+=h}}r+=p;continue}throw console.error({gutterElement:u,contentElement:d}),new Error("FileDiff.trimColumnRows: unknown row elements")}return i}trimColumns({columns:t,diffStyle:e,overlapEnd:n,overlapStart:r,previousStart:i,trimEnd:o,trimStart:a}){let s=Math.max(0,r-i),l=n-i;if(l<0)throw new Error("FileDiff.trimColumns: overlap ends before previous");let c=a>0,u=o>0;if(!c&&!u)return 0;let d=c?s:0,p=u?l:-1;if(e==="unified"&&!Array.isArray(t))return this.trimColumnRows(t,d,p);if(e==="split"&&Array.isArray(t)){let m=this.trimColumnRows(t[0],d,p),f=this.trimColumnRows(t[1],d,p);if(t[0]!=null&&t[1]!=null&&m!==f)throw new Error("FileDiff.trimColumns: split columns out of sync");return t[0]!=null?m:f}else throw console.error({diffStyle:e,columns:t}),new Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(t){let e=Number.parseInt(t?.bufferSize??"",10);return Number.isNaN(e)?void 0:e}updateBufferSize(t,e){t.dataset.bufferSize=`${e}`,t.style.setProperty("grid-row",`span ${e}`),t.style.setProperty("min-height",`calc(${e} * 1lh)`)}getCodeColumns(t,e,n,r){function i(o){if(o==null)return;let a=o.children[0],s=o.children[1];if(!(!(a instanceof HTMLElement)||!(s instanceof HTMLElement)||a.dataset.gutter==null||s.dataset.content==null))return{gutter:a,content:s}}if(t==="unified")return i(e);{let o=i(n),a=i(r);return o!=null||a!=null?[o,a]:void 0}}applyBuffers(t,e){if(e==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}e.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",t.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${e.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),e.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",t.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${e.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyPreNodeAttributes(t,{additionsContentAST:e,deletionsContentAST:n,totalLines:r},i){let{diffIndicators:o="bars",disableBackground:a=!1,disableLineNumbers:s=!1,overflow:l="scroll",diffStyle:c="split"}=this.options,u={type:"diff",diffIndicators:o,disableBackground:a,disableLineNumbers:s,overflow:l,split:c==="unified"?!1:e!=null&&n!=null,totalLines:r,customProperties:i};gk(u,this.appliedPreAttributes)||(Sk(t,u),this.appliedPreAttributes=u)}applyErrorToDOM(t,e){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=e.shadowRoot??e.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",n.appendChild(this.errorWrapper);let r=document.createElement("div");r.dataset.errorMessage="",r.innerText=t.message,this.errorWrapper.appendChild(r);let i=document.createElement("pre");i.dataset.errorStack="",i.innerText=t.stack??"No Error Stack",this.errorWrapper.appendChild(i)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function EIe({fileDiff:t,oldFile:e,newFile:n}){return t!=null&&t.hunks.length>0||e!=null||n!=null}function TIe({fileDiff:t,oldFile:e,newFile:n}){return t!=null||e!=null||n!=null}function RIe(t,e,n=!1){return!n&&t==null&&e}function AIe(t,e,n=!1){return t==null&&e&&!n}function Lre(t){if(!(t==null||t.type!=="element"))return t.children??[]}function Mre({fileDiff:t,metrics:e,disableFileHeader:n,hunkSeparators:r,expandUnchanged:i,expandedHunks:o,collapsedContextThreshold:a}){let s=e1(e,n),l=s,c=i?!0:o,u=t.hunks.length-1;for(let d=0;d<t.hunks.length;d++){let p=t.hunks[d];if(p==null)throw new Error("computeEstimatedDiffHeights: invalid hunk index");let m=t1({isPartial:t.isPartial,rangeSize:p.collapsedBefore,expandedHunks:c,hunkIndex:d,collapsedContextThreshold:a}),f=(m.fromStart+m.fromEnd)*e.lineHeight;if(s+=f,l+=f,m.collapsedLines>0){let g=k0({type:r,metrics:e,hunkIndex:d,hunkSpecs:p.hunkSpecs})?.totalHeight??0;s+=g,l+=g}s+=p.splitLineCount*e.lineHeight,l+=p.unifiedLineCount*e.lineHeight;let h=$Ie(p);s+=h.split*e.lineHeight,l+=h.unified*e.lineHeight;let x=d===u?n1({fileDiff:t,hunkIndex:d,expandedHunks:c,collapsedContextThreshold:a,errorPrefix:"computeEstimatedDiffHeights"}):void 0;if(x!=null){let g=(x.fromStart+x.fromEnd)*e.lineHeight;if(s+=g,l+=g,x.collapsedLines>0){let y=C0({type:r,metrics:e})?.totalHeight??0;s+=y,l+=y}}}if(t.hunks.length>0){let d=Tk(e);s+=d,l+=d}return{splitHeight:s,unifiedHeight:l}}function $Ie(t){if(!t.noEOFCRAdditions&&!t.noEOFCRDeletions)return{split:0,unified:0};let e=t.hunkContent.at(-1);if(e==null)return{split:0,unified:0};if(e.type==="context"){let n=e.lines>0?1:0;return{split:n,unified:n}}return IIe(t,e)}function IIe(t,e){let n=(e.deletions>0&&t.noEOFCRDeletions?1:0)+(e.additions>0&&t.noEOFCRAdditions?1:0),r=e.deletions>0&&t.noEOFCRDeletions,i=e.additions>0&&t.noEOFCRAdditions;return{split:r||i?1:0,unified:n}}var PP=5e3,NIe=-1,Rre=class extends Dk{__id=`little-virtualized-file-diff:${++NIe}`;top;height=0;metrics;cache={heightDeltas:new Map,measuredHeightDeltaTotal:0,estimatedSplitHeight:void 0,estimatedUnifiedHeight:void 0,checkpoints:[],totalLines:0};isVisible=!1;isSetup=!1;virtualizer;layoutDirty=!0;forceRenderOverride;currentCollapsed;constructor(t,e,n,r,i=!1){super(t,r,i),this.virtualizer=e,this.metrics=Ek(n)}setMetrics(t,e=!1){let n=Ek(t);!e&&s7(this.metrics,n)||(this.metrics=n,this.resetLayoutCache({includeEstimatedHeights:!0}))}getLineHeight(t,e=!1){return this.getEstimatedLineHeight(e)+(this.cache.heightDeltas.get(t)??0)}getEstimatedLineHeight(t=!1){let e=t?2:1;return this.metrics.lineHeight*e}setOptions(t){if(this.isAdvancedMode())throw new Error("VirtualizedFileDiff.setOptions cannot be used inside CodeView. Update CodeView options instead.");if(t==null)return;let{options:e}=this,n=!nv(e,t),r=n&&FIe(e,t);super.setOptions(t),r&&this.resetLayoutCache({forceSimpleRecompute:!0,includeEstimatedHeights:BIe(e,t)}),n&&(this.forceRenderOverride=!0),n&&this.isSimpleMode()&&this.virtualizer.instanceChanged(this,r)}setThemeType(t){if(this.isAdvancedMode())throw new Error("VirtualizedFileDiff.setThemeType cannot be used inside CodeView. Update CodeView options instead.");super.setThemeType(t)}resetLayoutCache({forceSimpleRecompute:t=!1,includeEstimatedHeights:e=!1}={}){this.layoutDirty=!0,this.cache.heightDeltas.size>0&&this.cache.heightDeltas.clear(),this.cache.measuredHeightDeltaTotal!==0&&(this.cache.measuredHeightDeltaTotal=0),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),this.cache.totalLines!==0&&(this.cache.totalLines=0),e&&(this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0),this.renderRange!=null&&(this.renderRange=void 0),t&&this.isSimpleMode()&&this.computeApproximateSize()}reconcileHeights(){let t=!1,{overflow:e="scroll"}=this.options;if(this.fileContainer==null||this.fileDiff==null)return this.height!==0&&(t=!0),this.height=0,t;if(this.top=this.getVirtualizedTop(),e==="scroll"&&this.lineAnnotations.length===0&&!this.isResizeDebuggingEnabled())return t;let n=this.getDiffStyle(),r=n==="split"?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];for(let i of r){if(i==null)continue;let o=i.children[1];if(o instanceof HTMLElement)for(let a of o.children){if(!(a instanceof HTMLElement))continue;let s=a.dataset.lineIndex;if(s==null)continue;let l=qIe(s,n),c=a.getBoundingClientRect().height,u=!1;a.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in a.nextElementSibling.dataset||"noNewline"in a.nextElementSibling.dataset)&&("noNewline"in a.nextElementSibling.dataset&&(u=!0),c+=a.nextElementSibling.getBoundingClientRect().height);let d=this.getEstimatedLineHeight(u),p=this.cache.heightDeltas.get(l)??0,m=c-d;m!==p&&(t=!0,this.cache.measuredHeightDeltaTotal+=m-p,m===0?this.cache.heightDeltas.delete(l):this.cache.heightDeltas.set(l,m))}}return(t||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),t}onRender=t=>this.fileContainer==null?!1:(t&&(this.top=this.getVirtualizedTop()),this.render());prepareCodeViewItem(t,e,n){let r=!Wp(this.fileDiff,t),i=n?.resetDiffLayoutCache===!0||r,o=r||n?.resetDiffLayoutCache===!0&&n.includeEstimatedDiffHeights;n?.metrics!=null&&(this.metrics=Ek(n.metrics),i=!0,o=!0);let{collapsed:a=!1}=this.options;return this.currentCollapsed!==a&&(this.currentCollapsed=a,i=!0),i&&this.resetLayoutCache({includeEstimatedHeights:o}),this.fileDiff=t,this.top=e,this.computeApproximateSize(),this.height}getLinePosition(t,e="additions"){if(this.fileDiff==null)return;let n=this.getLineIndex(t,e);if(n==null)return;let{disableFileHeader:r=!1,expandUnchanged:i=!1,collapsed:o=!1,collapsedContextThreshold:a=Eo}=this.options,s=this.getDiffStyle(),l=this.getHunkSeparatorType(),c=s==="split"?n[1]:n[0];this.approximateLayoutCheckpoints();let u=this.getLayoutCheckpointBeforeLineIndex(c),d=u?.top??e1(this.metrics,r);if(o)return{top:d,height:0};let p;return r1({diff:this.fileDiff,diffStyle:s,startingLine:u?.renderedLineIndex??0,expandedHunks:i?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:a,callback:({hunkIndex:m,hunk:f,collapsedBefore:h,collapsedAfter:x,deletionLine:g,additionLine:y})=>{let b=s==="split"?y?.splitLineIndex??g?.splitLineIndex:y?.unifiedLineIndex??g?.unifiedLineIndex;if(b==null)throw new Error("VirtualizedFileDiff.getLinePosition: missing line index data");if(h>0){let v=k0({type:l,metrics:this.metrics,hunkIndex:m,hunkSpecs:f?.hunkSpecs});if(v!=null){if(d+=v.gapBefore,c>=b-h&&c<b)return p={top:d,height:v.height},!0;d+=v.height+v.gapAfter}}let w=this.getLineHeight(b,(y?.noEOFCR??!1)||(g?.noEOFCR??!1));if(b===c)return p={top:d,height:w},!0;if(d+=w,x>0){let v=C0({type:l,metrics:this.metrics});if(v!=null){if(c>b&&c<=b+x)return p={top:d+v.gapBefore,height:v.height},!0;d+=v.totalHeight}}return!1}}),p}getNumericScrollAnchor(t){if(this.fileDiff==null)return;let{disableFileHeader:e=!1,expandUnchanged:n=!1,collapsed:r=!1,collapsedContextThreshold:i=Eo}=this.options;if(r)return;let o=this.getDiffStyle(),a=this.getHunkSeparatorType();this.approximateLayoutCheckpoints();let s=this.getLayoutCheckpointBeforeTop(t),l=s?.top??e1(this.metrics,e),c;return r1({diff:this.fileDiff,diffStyle:o,startingLine:s?.renderedLineIndex??0,expandedHunks:n?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:i,callback:({hunkIndex:u,hunk:d,collapsedBefore:p,collapsedAfter:m,deletionLine:f,additionLine:h})=>{let x=o==="split"?h?.splitLineIndex??f?.splitLineIndex:h?.unifiedLineIndex??f?.unifiedLineIndex;if(x==null)throw new Error("VirtualizedFileDiff.getNumericScrollAnchor: missing line index data");if(p>0){let y=k0({type:a,metrics:this.metrics,hunkIndex:u,hunkSpecs:d?.hunkSpecs});y!=null&&(l+=y.totalHeight)}if(l>=t&&(f!=null?c={lineNumber:f.lineNumber,side:"deletions",top:l}:h!=null&&(c={lineNumber:h.lineNumber,side:"additions",top:l}),c!=null))return!0;let g=this.getLineHeight(x,(h?.noEOFCR??!1)||(f?.noEOFCR??!1));if(l+=g,m>0){let y=C0({type:a,metrics:this.metrics});y!=null&&(l+=y.totalHeight)}return!1}}),c}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(t){if(this.top==null||this.fileDiff==null)return;if(this.options.collapsed===!0)return{topOffset:this.top,height:this.height};let e=t!=null?this.computeRenderRangeFromWindow(this.fileDiff,this.top,t):this.renderRange;if(e==null)return;let{bufferBefore:n,bufferAfter:r,totalLines:i}=e,o=0;if(i===0){let a=t??this.virtualizer.getWindowSpecs();this.top<a.top&&(o=r)}return{topOffset:this.top+n+o,height:this.height-(n+r)}}cleanUp(t=!1){this.fileContainer!=null&&this.isSimpleMode()&&this.getSimpleVirtualizer()?.disconnect(this.fileContainer),t||this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSetup=!1,super.cleanUp(t)}expandHunk=(t,e,n)=>{this.hunksRenderer.expandHunk(t,e,n),this.forceRenderOverride=!0,this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSimpleMode()&&this.computeApproximateSize(),this.virtualizer.instanceChanged(this,!0)};setVisibility(t){this.isAdvancedMode()||this.fileContainer==null||(this.renderRange=void 0,t&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!t&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!1))}computeApproximateSize(t=!1){let e=this.isResizeDebuggingEnabled();if(!t&&!this.layoutDirty&&!e)return;let n=this.height===0;if(this.height=0,this.cache.checkpoints=[],this.cache.totalLines=0,this.fileDiff==null){this.layoutDirty=!1;return}let{disableFileHeader:r=!1,collapsed:i=!1}=this.options,o=e1(this.metrics,r);if(this.height+=o,i){this.layoutDirty=!1;return}this.height=this.getActiveEstimatedHeight()+this.cache.measuredHeightDeltaTotal,e&&!n&&this.validateComputedHeight(),this.layoutDirty=!1}getActiveEstimatedHeight(){this.ensureEstimatedDiffHeights();let t=this.getDiffStyle()==="split"?this.cache.estimatedSplitHeight:this.cache.estimatedUnifiedHeight;if(t==null)throw new Error("VirtualizedFileDiff.getActiveEstimatedHeight: missing estimated height");return t}ensureEstimatedDiffHeights(){if(this.fileDiff==null){this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0;return}if(this.cache.estimatedSplitHeight!=null&&this.cache.estimatedUnifiedHeight!=null)return;let{disableFileHeader:t=!1,expandUnchanged:e=!1,collapsedContextThreshold:n=Eo}=this.options,{splitHeight:r,unifiedHeight:i}=Mre({fileDiff:this.fileDiff,metrics:this.metrics,disableFileHeader:t,hunkSeparators:this.getHunkSeparatorType(),expandUnchanged:e,expandedHunks:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:n});this.cache.estimatedSplitHeight=r,this.cache.estimatedUnifiedHeight=i}validateComputedHeight(){if(this.fileContainer==null||this.fileDiff==null)return;let t=this.fileContainer.getBoundingClientRect();t.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:this.fileDiff.name,elementHeight:t.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}render({fileContainer:t,oldFile:e,newFile:n,fileDiff:r,forceRender:i=!1,...o}={}){let{forceRenderOverride:a,isSetup:s}=this;if(this.forceRenderOverride=void 0,this.fileDiff??=r??(e!=null&&n!=null?D7(e,n,this.options.parseDiffOptions):void 0),t=this.getOrCreateFileContainer(t),this.fileDiff==null)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;if(s)this.top??=this.getVirtualizedTop();else{this.computeApproximateSize();let d=this.getSimpleVirtualizer();if(this.top??=this.getVirtualizedTop(),this.isAdvancedMode())this.isVisible=!0;else{if(d==null)throw new Error("VirtualizedFileDiff.render: simple virtualizer is not available");d.connect(t,this),this.isVisible=d.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode())return this.renderPlaceholder(this.height);let l=this.virtualizer.getWindowSpecs(),c=this.top??0,u=this.computeRenderRangeFromWindow(this.fileDiff,c,l);return super.render({fileDiff:this.fileDiff,fileContainer:t,renderRange:u,oldFile:e,newFile:n,forceRender:a??i,...o})}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}isSimpleMode(){return this.virtualizer.type==="simple"}isAdvancedMode(){return this.virtualizer.type==="advanced"}getVirtualizedTop(){return this.virtualizer.type==="advanced"?this.virtualizer.getLocalTopForInstance(this):this.fileContainer!=null?this.virtualizer.getOffsetInScrollContainer(this.fileContainer):0}getSimpleVirtualizer(){return this.virtualizer.type==="simple"?this.virtualizer:void 0}isResizeDebuggingEnabled(){return this.getSimpleVirtualizer()?.config.resizeDebugging??!1}getDiffStyle(){return this.options.diffStyle??"split"}getHunkSeparatorType(){return zIe(this.options.hunkSeparators)}approximateLayoutCheckpoints(){if(this.cache.checkpoints.length>0||this.fileDiff==null||this.fileDiff.hunks.length===0||this.options.collapsed===!0)return;let{disableFileHeader:t=!1,expandUnchanged:e=!1,collapsedContextThreshold:n=Eo}=this.options,r=this.fileDiff.hunks.length-1,i=this.getDiffStyle(),o=this.getHunkSeparatorType(),a=e?!0:this.hunksRenderer.getExpandedHunksMap(),s=PIe(this.cache.heightDeltas),l=e1(this.metrics,t),c=0,u=({rowCount:d,startLineIndex:p,preSeparatorHeight:m=0,postSeparatorHeight:f=0,metadataOffsets:h=[]})=>{if(d<=0)return;let x=c,g=c+d,y=jIe(x);for(;y<g;){let b=y-x,w=l+(b>0?m:0)+b*this.metrics.lineHeight+OIe(h,b)*this.metrics.lineHeight+Ere(s,p,p+b);this.cache.checkpoints.push({renderedLineIndex:y,lineIndex:p+b,top:w}),y+=PP}l+=m+d*this.metrics.lineHeight+h.length*this.metrics.lineHeight+Ere(s,p,p+d)+f,c=g};for(let d=0;d<this.fileDiff.hunks.length;d++){let p=this.fileDiff.hunks[d];if(p==null)throw new Error("VirtualizedFileDiff.approximateLayoutCheckpoints: invalid hunk index");let m=t1({isPartial:this.fileDiff.isPartial,rangeSize:p.collapsedBefore,expandedHunks:a,hunkIndex:d,collapsedContextThreshold:n}),f=m.collapsedLines>0?k0({type:o,metrics:this.metrics,hunkIndex:d,hunkSpecs:p.hunkSpecs})?.totalHeight??0:0;u({rowCount:m.fromStart,startLineIndex:(i==="split"?p.splitLineStart:p.unifiedLineStart)-m.rangeSize});let h=f;u({rowCount:m.fromEnd,startLineIndex:(i==="split"?p.splitLineStart:p.unifiedLineStart)-m.fromEnd,preSeparatorHeight:h}),m.fromEnd>0&&(h=0);let x=d===r?n1({fileDiff:this.fileDiff,hunkIndex:d,expandedHunks:a,collapsedContextThreshold:n,errorPrefix:"VirtualizedFileDiff"}):void 0,g=x!=null&&x.collapsedLines>0?C0({type:o,metrics:this.metrics})?.totalHeight??0:0,y=x!=null?x.fromStart+x.fromEnd:0,b=i==="split"?p.splitLineCount:p.unifiedLineCount,w=i==="split"?p.splitLineStart:p.unifiedLineStart;u({rowCount:b,startLineIndex:w,preSeparatorHeight:h,postSeparatorHeight:y===0?g:0,metadataOffsets:DIe({diffStyle:i,hunk:p,rowCount:b})}),x!=null&&y>0&&u({rowCount:y,startLineIndex:w+b,postSeparatorHeight:g})}this.cache.totalLines=c}getLayoutCheckpointBeforeLineIndex(t){if(t<=0||this.cache.checkpoints.length===0)return;let e=0,n=this.cache.checkpoints.length-1,r;for(;e<=n;){let i=e+n>>1,o=this.cache.checkpoints[i];if(o==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");o.lineIndex<=t?(r=o,e=i+1):n=i-1}return r}getLayoutCheckpointBeforeTop(t,e){let n=0,r=this.cache.checkpoints.length-1,i=-1;for(;n<=r;){let o=n+r>>1,a=this.cache.checkpoints[o];if(a==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");a.top<=t?(i=o,n=o+1):r=o-1}if(e==null)return i>=0?this.cache.checkpoints[i]:void 0;for(let o=i;o>=0;o--){let a=this.cache.checkpoints[o];if(a==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");if(a.renderedLineIndex%e===0)return a}}getExpandedLineCount(t,e){let n=0;if(t.isPartial){for(let s of t.hunks)n+=e==="split"?s.splitLineCount:s.unifiedLineCount;return n}let{expandUnchanged:r=!1,collapsedContextThreshold:i=Eo}=this.options,o=r?!0:this.hunksRenderer.getExpandedHunksMap();for(let[s,l]of t.hunks.entries()){let c=e==="split"?l.splitLineCount:l.unifiedLineCount;n+=c;let u=Math.max(l.collapsedBefore,0),{fromStart:d,fromEnd:p,renderAll:m}=t1({isPartial:t.isPartial,rangeSize:u,expandedHunks:o,hunkIndex:s,collapsedContextThreshold:i});u>0&&(n+=m?u:d+p)}let a=n1({fileDiff:t,hunkIndex:t.hunks.length-1,expandedHunks:o,collapsedContextThreshold:i,errorPrefix:"VirtualizedFileDiff"});return a!=null&&(n+=a.fromStart+a.fromEnd),n}computeRenderRangeFromWindow(t,e,{top:n,bottom:r}){let{disableFileHeader:i=!1,expandUnchanged:o=!1,collapsedContextThreshold:a=Eo}=this.options,{hunkLineCount:s,lineHeight:l}=this.metrics,c=this.getDiffStyle(),u=this.getHunkSeparatorType(),d=this.height,p=this.cache.totalLines>0?this.cache.totalLines:this.getExpandedLineCount(t,c),m=e1(this.metrics,i),f=t.hunks.length>0?Tk(this.metrics):0;if(e<n-d||e>r)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:d-m-f};if(p<=s||t.hunks.length===0)return{startingLine:0,totalLines:s,bufferBefore:0,bufferAfter:0};this.approximateLayoutCheckpoints(),p=this.cache.totalLines>0?this.cache.totalLines:p;let h=Math.ceil(Math.max(r-n,0)/l),x=Math.ceil(h/s)*s+s,g=x/s,y=g,b=[],w=(n+r)/2,v=this.getLayoutCheckpointBeforeTop(Math.max(0,n-e-x*l*2),s),k=e+(v?.top??m),_=v?.renderedLineIndex??0,L,S,C;if(r1({diff:t,diffStyle:c,startingLine:v?.renderedLineIndex??0,expandedHunks:o?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:a,callback:({hunkIndex:O,hunk:B,collapsedBefore:P,collapsedAfter:U,deletionLine:G,additionLine:j})=>{let V=j!=null?j.splitLineIndex:G.splitLineIndex,H=j!=null?j.unifiedLineIndex:G.unifiedLineIndex,ne=(j?.noEOFCR??!1)||(G?.noEOFCR??!1),J=(P>0?k0({type:u,metrics:this.metrics,hunkIndex:O,hunkSpecs:B?.hunkSpecs}):void 0)?.totalHeight??0;k+=J;let W=_%s===0,ie=Math.floor(_/s);if(W&&(b[ie]=k-(e+m+J),C!=null)){if(C<=0)return!0;C--}let Z=this.getLineHeight(c==="split"?V:H,ne);return k>n-Z&&k<r&&(L??=ie),S==null&&k+Z>w&&(S=ie),C==null&&k>=r&&W&&(C=y),_++,k+=Z,U>0&&(k+=C0({type:u,metrics:this.metrics})?.totalHeight??0),!1}}),L==null)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:d-m-f};S??=L;let T=Math.round(S-g/2),M=Math.max(0,Math.ceil(p/s)-g),A=Math.max(0,Math.min(T,M)),$=A*s,N=T<0?x+T*s:x,F=b[A]??0,D=A+N/s;return{startingLine:$,totalLines:N,bufferBefore:F,bufferAfter:D<b.length?d-m-b[D]-f:d-(k-e)-f}}};function PIe(t){let e=Array.from(t).sort((o,a)=>o[0]-a[0]),n=[],r=[0],i=0;for(let[o,a]of e)n.push(o),i+=a,r.push(i);return{lineIndexes:n,prefixTotals:r}}function Ere({lineIndexes:t,prefixTotals:e},n,r){if(n>=r||t.length===0)return 0;let i=Tre(t,n);return(e[Tre(t,r)]??0)-(e[i]??0)}function Tre(t,e){let n=0,r=t.length;for(;n<r;){let i=n+r>>1,o=t[i];if(o==null)throw new Error("VirtualizedFileDiff: invalid prefix index");o<e?n=i+1:r=i}return n}function jIe(t){return Math.ceil(t/PP)*PP}function OIe(t,e){let n=0;for(let r of t)r<e&&n++;return n}function DIe({diffStyle:t,hunk:e,rowCount:n}){if(n<=0||!e.noEOFCRAdditions&&!e.noEOFCRDeletions)return[];let r=e.hunkContent.at(-1);if(r==null)return[];if(r.type==="context")return[n-1];let i=Math.max(r.deletions,r.additions),o=r.deletions+r.additions;if(t==="split")return i>0&&(e.noEOFCRAdditions||e.noEOFCRDeletions)?[n-1]:[];let a=[],s=n-o;return r.deletions>0&&e.noEOFCRDeletions&&a.push(s+r.deletions-1),r.additions>0&&e.noEOFCRAdditions&&a.push(n-1),a}function FIe(t,e){return(t.diffStyle??"split")!==(e.diffStyle??"split")||(t.overflow??"scroll")!==(e.overflow??"scroll")||(t.collapsed??!1)!==(e.collapsed??!1)||(t.disableLineNumbers??!1)!==(e.disableLineNumbers??!1)||(t.disableFileHeader??!1)!==(e.disableFileHeader??!1)||(t.diffIndicators??"bars")!==(e.diffIndicators??"bars")||(t.hunkSeparators??"line-info")!==(e.hunkSeparators??"line-info")||(t.expandUnchanged??!1)!==(e.expandUnchanged??!1)||(t.collapsedContextThreshold??Eo)!==(e.collapsedContextThreshold??Eo)||t.unsafeCSS!==e.unsafeCSS}function BIe(t,e){return(t.disableFileHeader??!1)!==(e.disableFileHeader??!1)||(t.hunkSeparators??"line-info")!==(e.hunkSeparators??"line-info")||(t.expandUnchanged??!1)!==(e.expandUnchanged??!1)||(t.collapsedContextThreshold??Eo)!==(e.collapsedContextThreshold??Eo)}function zIe(t){return typeof t=="function"?"custom":t??"line-info"}function qIe(t,e){let[n,r]=t.split(",").map(Number);return e==="split"?r:n}function Are({hunkIndex:t,lineIndex:e,conflictIndex:n}){return`merge-conflict-action-${t}-${e}-${n}`}function $re(t,e){let n=e.hunks[t.hunkIndex];if(n!=null)return{hunkIndex:t.hunkIndex,lineIndex:HIe(n,t.startContentIndex)}}function HIe(t,e){let n=t.unifiedLineStart;for(let r=0;r<e;r++){let i=t.hunkContent[r];n+=i.type==="context"?i.lines:i.deletions+i.additions}return n}function jP(t){let e=[];for(let n of t){let r=Sc.get(n);if(r==null)throw new Error(`getResolvedLanguages: ${n} is not resolved. Please resolve languages before calling getResolvedLanguages`);e.push(r)}return e}function OP(t){for(let e of Array.isArray(t)?t:[t])if(!Sc.has(e))return!1;return!0}async function DP(t){let e=[],n=[];for(let r of t){if(r==="text"||r==="ansi")continue;let i=Xv(r)??Kv(r);"then"in i?n.push(i):e.push(i)}return n.length>0&&await Promise.all(n).then(r=>{for(let i of r){if(i==null)throw new Error("resolvedLanguages: unable to resolve language");e.push(i)}}),e}function FP(t){let e=[];for(let n of t){let r=Bs.get(n);if(r==null)throw new Error(`getAllResolvedThemes: ${n} is unresolved, you must resolve all necessary themes before calling this function`);e.push(r)}return e}async function BP(t){let e=[],n=[];for(let r of t){let i=Jv(r)??Qv(r);"then"in i?n.push(i):e.push(i)}return n.length>0&&await Promise.all(n).then(r=>{for(let i of r)i!=null&&e.push(i)}),e}function q7(t){let e=ore(t);if(e.length!==1)throw console.error(e),new Error("PatchDiff: Provided patch must include only 1 patch, with 1 diff");let{files:n}=e[0];if(n.length!==1)throw console.error(n),new Error("FileDiff: Provided patch must contain exactly 1 file diff");return n[0]}function H7(t,e){return{...t,lang:e}}var pd="cmux-agent-dark",md="cmux-agent-light",go={bg:"#272823",fg:"#f8f8f3",muted:"#a8a9a3",heading:"#b3e053",inlineCode:"#ef9c40",link:"#a783f7",string:"#e4db82",comment:"#8f908a",addition:"#90b345",deletion:"#b4365e",additionLine:"#3b412a",deletionLine:"#422e2e",additionGutter:"#1a1d10",deletionGutter:"#1f1113",separator:"#43443f",line:"#383934",selected:"#32332d"},zP=`var(--acpmux-add, ${go.addition})`,qP=`var(--acpmux-del, ${go.deletion})`,GIe={bg:`var(--agent-page-bg, ${go.bg})`,fg:`var(--agent-text, ${go.fg})`,muted:`var(--agent-muted, ${go.muted})`,line:`var(--agent-border, ${go.line})`,selected:`var(--agent-card-hover, ${go.selected})`,addition:zP,deletion:qP,additionLine:`color-mix(in srgb, ${zP} 20%, transparent)`,deletionLine:`color-mix(in srgb, ${qP} 20%, transparent)`,additionGutter:`color-mix(in srgb, ${zP} 10%, transparent)`,deletionGutter:`color-mix(in srgb, ${qP} 10%, transparent)`,separator:`var(--agent-control, ${go.separator})`},Nre=t=>({fg:`var(--agent-text, ${t.fg})`,keyword:`var(--agent-ansi-5, ${t.keyword})`,fn:`var(--agent-ansi-4, ${t.fn})`,string:`var(--agent-ansi-2, ${t.string})`,number:`var(--agent-ansi-3, ${t.number})`,comment:`var(--agent-soft, ${t.comment})`,added:`var(--agent-ansi-2, ${t.added})`,removed:`var(--agent-ansi-1, ${t.removed})`,heading:`var(--agent-ansi-4, ${t.heading})`,link:`var(--agent-ansi-5, ${t.link})`});function Pre(t,e,n,r){return{name:t,type:e,colors:{"editor.background":"#00000000","editor.foreground":n},fg:n,bg:"#00000000",tokenColors:[{settings:{foreground:r.fg}},{scope:["markup.heading","entity.name.section.markdown","punctuation.definition.heading.markdown"],settings:{foreground:r.heading,fontStyle:"bold"}},{scope:["markup.inline.raw","markup.inline.raw.string.markdown"],settings:{foreground:r.number}},{scope:["markup.underline.link","string.other.link.title.markdown"],settings:{foreground:r.link}},{scope:["comment","punctuation.definition.comment"],settings:{foreground:r.comment}},{scope:["string","string.quoted"],settings:{foreground:r.string}},{scope:["keyword","storage","keyword.control"],settings:{foreground:r.keyword}},{scope:["variable.other","variable.parameter"],settings:{foreground:r.number}},{scope:["constant.numeric","constant.language"],settings:{foreground:r.number}},{scope:["support.function","entity.name.function"],settings:{foreground:r.fn}},{scope:["markup.inserted","punctuation.definition.inserted"],settings:{foreground:r.added}},{scope:["markup.deleted","punctuation.definition.deleted"],settings:{foreground:r.removed}}]}}var UIe=Pre(pd,"dark",go.fg,Nre({fg:go.fg,keyword:go.link,fn:go.heading,string:go.string,number:go.inlineCode,comment:go.comment,added:go.addition,removed:go.deletion,heading:go.heading,link:go.link})),VIe=Pre(md,"light","#24292f",Nre({fg:"#24292f",keyword:"#6f42c1",fn:"#3f7d0f",string:"#0a6b52",number:"#b35900",comment:"#6e7781",added:"#1a7f37",removed:"#cf222e",heading:"#3f7d0f",link:"#6f42c1"}));var Ire=!1;function o1(){Ire||(Ire=!0,Vp(pd,async()=>UIe),Vp(md,async()=>VIe))}var Xr=GIe,ZIe='"SF Mono", SFMono-Regular, ui-monospace, Menlo, monospace',jre='system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif',Qb=` +`);return e?n.pop():n.push(n.pop().slice(0,-1)),n}function F7(t,e,n,r=!1){let i=rre($P(t.name,e.name,t.contents,e.contents,t.header,e.header,n),{cacheKey:(()=>{if(t.cacheKey!=null&&e.cacheKey!=null)return`${t.cacheKey}:${e.cacheKey}`})(),oldFile:t,newFile:e,throwOnError:r});if(i==null)throw new Error("parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?");return e.lang!=null&&(i.lang=e.lang),i}var pre=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(t,e,n){if(e==null||n==null)for(let r of t.children??[])r instanceof HTMLElement&&("deletions"in r.dataset?e=r:"additions"in r.dataset&&(n=r));if(n==null||e==null){this.cleanUp();return}this.codeDeletions!==e&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=e,e.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==n&&(this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=n,n.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function yu(t,e){return Cc(t.theme,e.theme)&&t.useTokenTransformer===e.useTokenTransformer&&t.tokenizeMaxLineLength===e.tokenizeMaxLineLength&&t.lineDiffType===e.lineDiffType&&t.maxLineDiffLength===e.maxLineDiffLength}function B7(t){return qt({tagName:"div",properties:{"data-content-buffer":"","data-buffer-size":t,style:`grid-row: span ${t};min-height:calc(${t} * 1lh)`}})}function z7(t){return qt({tagName:"div",children:[qt({tagName:"span",children:[js("No newline at end of file")]})],properties:{"data-no-newline":"","data-line-type":t,"data-column-content":""}})}function IP(t){return qt({tagName:"div",children:[l0({name:t==="both"?"diffs-icon-expand-all":"diffs-icon-expand",properties:{"data-icon":""}})],properties:{role:"button","data-expand-button":"","data-expand-both":t==="both"?"":void 0,"data-expand-up":t==="up"?"":void 0,"data-expand-down":t==="down"?"":void 0}})}function C0({type:t,content:e,expandIndex:n,chunked:r=!1,slotName:i,isFirstHunk:o,isLastHunk:a}){let s=0,l=[];if(t==="metadata"&&e!=null&&l.push(qt({tagName:"div",children:[js(e)],properties:{"data-separator-wrapper":""}})),(t==="line-info"||t==="line-info-basic")&&e!=null){let c=[];n!=null&&(r?(o||(c.push(IP("up")),s++),a||(c.push(IP("down")),s++)):(c.push(IP(!o&&!a?"both":o?"down":"up")),s++)),c.push(qt({tagName:"div",children:[qt({tagName:"span",children:[js(e)],properties:{"data-unmodified-lines":""}})],properties:{"data-separator-content":""}})),r&&n!=null&&c.push(qt({tagName:"div",children:[js("Expand all")],properties:{role:"button","data-expand-button":"","data-expand-all-button":""}})),l.push(qt({tagName:"div",children:c,properties:{"data-separator-wrapper":"","data-separator-multi-button":s>1?"":void 0}}))}return t==="custom"&&i!=null&&l.push(qt({tagName:"slot",properties:{name:i}})),qt({tagName:"div",children:l,properties:{"data-separator":l.length===0?"simple":t,"data-expand-index":n,"data-separator-first":o?"":void 0,"data-separator-last":a?"":void 0}})}function mre(t,e){return`hunk-separator-${t}-${e}`}function fre(t){let e=t.at(-1);return e==null?0:Math.max(e.additionStart+e.additionCount,e.deletionStart+e.deletionCount)}function hre(t){return t.startingLine===0&&t.totalLines===1/0&&t.bufferBefore===0&&t.bufferAfter===0}function NP({line:t,spanStart:e,spanLength:n}){return{start:{line:t,character:e},end:{line:t,character:e+n},properties:{"data-diff-span":""},alwaysWrap:!0}}function q7({item:t,arr:e,enableJoin:n,isNeutral:r=!1,isLastItem:i=!1}){let o=e[e.length-1];if(o==null||i||!n){e.push([r?0:1,t.value]);return}let a=o[0]===0;if(r===a||r&&t.value.length===1&&!a){o[1]+=t.value;return}e.push([r?0:1,t.value])}function n1({isPartial:t,rangeSize:e,expandedHunks:n,hunkIndex:r,collapsedContextThreshold:i}){let o=Math.max(e,0);if(o===0||t)return{fromStart:0,fromEnd:0,rangeSize:o,collapsedLines:o,renderAll:!1};if(n===!0||o<=i)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};let a=n?.get(r),s=Math.min(Math.max(a?.fromStart??0,0),o),l=Math.min(Math.max(a?.fromEnd??0,0),o),c=s+l,u=c>=o;return{fromStart:u?o:s,fromEnd:u?0:l,rangeSize:o,collapsedLines:Math.max(o-c,0),renderAll:u}}function PP({fileDiff:t,errorPrefix:e}){let n=t.hunks[t.hunks.length-1];if(n==null||t.isPartial||t.additionLines.length===0||t.deletionLines.length===0)return 0;let r=t.additionLines.length-(n.additionLineIndex+n.additionCount),i=t.deletionLines.length-(n.deletionLineIndex+n.deletionCount);if(r<=0&&i<=0)return 0;if(r!==i)throw new Error(`${e}: trailing context mismatch (additions=${r}, deletions=${i}) for ${t.name}`);return Math.min(r,i)}function r1({fileDiff:t,hunkIndex:e,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:i}){if(e!==t.hunks.length-1)return;let o=PP({fileDiff:t,errorPrefix:i});if(o<=0)return;if(n===!0||o<=r)return{fromStart:o,fromEnd:0,rangeSize:o,collapsedLines:0,renderAll:!0};let a=n?.get(t.hunks.length),s=Math.min(Math.max(a?.fromStart??0,0),o);return{fromStart:s,fromEnd:0,rangeSize:o,collapsedLines:o-s,renderAll:s>=o}}function gre({type:t,metrics:e}){return e.hunkSeparatorHeight??Jne(t)}function bre({type:t,metrics:e}){return t==="simple"||t==="metadata"||t==="line-info-basic"?0:e.spacing}function hIe({type:t,hunkIndex:e,hunkSpecs:n}){switch(t){case"simple":return e>0;case"metadata":return n!=null;case"line-info":case"line-info-basic":case"custom":return!0}}function gIe(t){return t!=="simple"&&t!=="metadata"}function _0({type:t,metrics:e,hunkIndex:n,hunkSpecs:r}){if(!hIe({type:t,hunkIndex:n,hunkSpecs:r}))return;let i=gre({type:t,metrics:e}),o=bre({type:t,metrics:e}),a=n>0?o:0,s=o;return{height:i,gapBefore:a,gapAfter:s,totalHeight:a+i+s}}function S0({type:t,metrics:e}){if(!gIe(t))return;let n=gre({type:t,metrics:e}),r=bre({type:t,metrics:e});return{height:n,gapBefore:r,gapAfter:0,totalHeight:r+n}}function i1({diff:t,diffStyle:e,startingLine:n=0,totalLines:r=1/0,expandedHunks:i,collapsedContextThreshold:o=Eo,callback:a}){let s=bIe({diff:t,diffStyle:e,startingLine:n,expandedHunks:i,collapsedContextThreshold:o}),l={viewportStart:n,viewportEnd:n+r,isWindowedHighlight:n>0||r<1/0,splitCount:s.splitCount,unifiedCount:s.unifiedCount,finalHunkIndex:t.hunks.length-1,shouldBreak(){if(!l.isWindowedHighlight)return!1;let c=l.unifiedCount>=n+r,u=l.splitCount>=n+r;return e==="unified"?c:(e==="split"||c)&&u},shouldSkip(c,u){if(!l.isWindowedHighlight)return!1;let d=l.unifiedCount+c<n,p=l.splitCount+u<n;return e==="unified"?d:(e==="split"||d)&&p},incrementCounts(c,u){(e==="unified"||e==="both")&&(l.unifiedCount+=c),(e==="split"||e==="both")&&(l.splitCount+=u)},isInWindow(c,u){if(!l.isWindowedHighlight)return!0;let d=l.isInUnifiedWindow(c),p=l.isInSplitWindow(u);return e==="unified"?d:e==="split"?p:d||p},isInUnifiedWindow(c){return!l.isWindowedHighlight||l.unifiedCount>=n-c&&l.unifiedCount<n+r},isInSplitWindow(c){return!l.isWindowedHighlight||l.splitCount>=n-c&&l.splitCount<n+r},emit(c,u=!1){return u||(e==="unified"?l.incrementCounts(1,0):e==="split"?l.incrementCounts(0,1):l.incrementCounts(1,1)),a(c)??!1}};e:for(let c=s.hunkIndex;c<t.hunks.length;c++){let f=function(L,S){return p==null||p.collapsedLines<=0||p.fromStart+p.fromEnd>0?0:e==="unified"?L===u.unifiedLineStart+u.unifiedLineCount-1?p.collapsedLines:0:S===u.splitLineStart+u.splitLineCount-1?p.collapsedLines:0},x=function(){return h?0:(h=!0,d.collapsedLines)},u=t.hunks[c];if(u==null)throw new Error("iterateOverDiff: invalid hunk index");if(l.shouldBreak())break;let d=n1({isPartial:t.isPartial,rangeSize:u.collapsedBefore,expandedHunks:i,hunkIndex:c,collapsedContextThreshold:o}),p=c===l.finalHunkIndex?r1({fileDiff:t,hunkIndex:c,expandedHunks:i,collapsedContextThreshold:o,errorPrefix:"iterateOverDiff"}):void 0,m=d.fromStart+d.fromEnd,h=d.collapsedLines===0;if(l.shouldSkip(m,m))l.incrementCounts(m,m),x();else{let L=u.unifiedLineStart-d.rangeSize,S=u.splitLineStart-d.rangeSize,C=u.deletionLineIndex-d.rangeSize,T=u.additionLineIndex-d.rangeSize,M=u.deletionStart-d.rangeSize,A=u.additionStart-d.rangeSize;if(Pk(l,d.fromStart,e,$=>l.emit({hunkIndex:c,hunk:u,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:M+$,lineIndex:C+$,noEOFCR:!1,unifiedLineIndex:L+$,splitLineIndex:S+$},additionLine:{unifiedLineIndex:L+$,splitLineIndex:S+$,lineIndex:T+$,lineNumber:A+$,noEOFCR:!1}}))||(L=u.unifiedLineStart-d.fromEnd,S=u.splitLineStart-d.fromEnd,C=u.deletionLineIndex-d.fromEnd,T=u.additionLineIndex-d.fromEnd,M=u.deletionStart-d.fromEnd,A=u.additionStart-d.fromEnd,Pk(l,d.fromEnd,e,$=>l.emit({hunkIndex:c,hunk:u,collapsedBefore:x(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:M+$,lineIndex:C+$,noEOFCR:!1,unifiedLineIndex:L+$,splitLineIndex:S+$},additionLine:{unifiedLineIndex:L+$,splitLineIndex:S+$,lineIndex:T+$,lineNumber:A+$,noEOFCR:!1}}),()=>{x()})))break e}let g=u.unifiedLineStart,y=u.splitLineStart,b=u.deletionLineIndex,w=u.additionLineIndex,v=u.deletionStart,k=u.additionStart,_=u.hunkContent.at(-1);for(let L of u.hunkContent){if(l.shouldBreak())break e;let S=L===_;if(L.type==="context"){if(l.shouldSkip(L.lines,L.lines))l.incrementCounts(L.lines,L.lines),x();else if(Pk(l,L.lines,e,C=>{let T=S&&C===L.lines-1,M=g+C,A=y+C;return l.emit({hunkIndex:c,hunk:u,collapsedBefore:x(),collapsedAfter:f(M,A),type:"context",deletionLine:{lineNumber:v+C,lineIndex:b+C,noEOFCR:T&&u.noEOFCRDeletions,unifiedLineIndex:M,splitLineIndex:A},additionLine:{unifiedLineIndex:M,splitLineIndex:A,lineIndex:w+C,lineNumber:k+C,noEOFCR:T&&u.noEOFCRAdditions}})},()=>{x()}))break e;g+=L.lines,y+=L.lines,b+=L.lines,w+=L.lines,v+=L.lines,k+=L.lines}else{let C=Math.max(L.deletions,L.additions),T=L.deletions+L.additions;if(!l.shouldSkip(T,C)){let M=wIe(l,L,e);(M[0]?.[0]??0)>0&&x();for(let[A,$]of M)for(let N=A;N<$;N++){let F=f(g+N,e==="unified"?y+(N<L.deletions?N:N-L.deletions):y+N);if(l.emit(vIe({hunkIndex:c,hunk:u,collapsedBefore:x(),collapsedAfter:F,diffStyle:e,index:N,unifiedLineIndex:g,splitLineIndex:y,additionLineIndex:w,deletionLineIndex:b,additionLineNumber:k,deletionLineNumber:v,content:L,isLastContent:S,unifiedCount:T,splitCount:C}),!0))break e}}x(),l.incrementCounts(T,C),g+=T,y+=C,b+=L.deletions,w+=L.additions,v+=L.deletions,k+=L.additions}}if(p!=null){let{collapsedLines:L,fromStart:S,fromEnd:C}=p,T=S+C;if(Pk(l,T,e,M=>{let A=M===T-1;return l.emit({hunkIndex:t.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:A?L:0,type:"context-expanded",deletionLine:{lineNumber:v+M,lineIndex:b+M,noEOFCR:!1,unifiedLineIndex:g+M,splitLineIndex:y+M},additionLine:{unifiedLineIndex:g+M,splitLineIndex:y+M,lineIndex:w+M,lineNumber:k+M,noEOFCR:!1}})},void 0,()=>l.shouldBreak()))break e}}}function bIe({diff:t,diffStyle:e,startingLine:n,expandedHunks:r,collapsedContextThreshold:i}){if(n<=0||e==="both")return{hunkIndex:0,splitCount:0,unifiedCount:0};let o=yIe({diff:t,expandedHunks:r,collapsedContextThreshold:i}),a=0,s=t.hunks.length-1,l=t.hunks.length;for(;a<=s;){let u=a+s>>1,d=o[u+1];if(d==null)throw new Error("iterateOverDiff: invalid hunk prefix index");(e==="unified"?d.unifiedCount:d.splitCount)>n?(l=u,s=u-1):a=u+1}if(l>=t.hunks.length){let u=o[t.hunks.length];if(u==null)throw new Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:t.hunks.length,splitCount:u.splitCount,unifiedCount:u.unifiedCount}}let c=o[l];if(c==null)throw new Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:l,splitCount:c.splitCount,unifiedCount:c.unifiedCount}}function yIe({diff:t,expandedHunks:e,collapsedContextThreshold:n}){let r=0,i=0,o=t.hunks.length-1,a=[{splitCount:0,unifiedCount:0}];for(let s=0;s<t.hunks.length;s++){let l=t.hunks[s];if(l==null)throw new Error("iterateOverDiff: invalid hunk summary index");let c=n1({isPartial:t.isPartial,rangeSize:l.collapsedBefore,expandedHunks:e,hunkIndex:s,collapsedContextThreshold:n}),u=c.fromStart+c.fromEnd;r+=u+l.splitLineCount,i+=u+l.unifiedLineCount;let d=s===o?r1({fileDiff:t,hunkIndex:s,expandedHunks:e,collapsedContextThreshold:n,errorPrefix:"iterateOverDiff"}):void 0;if(d!=null){let p=d.fromStart+d.fromEnd;r+=p,i+=p}a.push({splitCount:r,unifiedCount:i})}return a}function xIe(t,e,n){if(!t.isWindowedHighlight||e<=0)return[0,e];let r=[];function i(s){let l=Math.max(0,t.viewportStart-s),c=Math.min(e,t.viewportEnd-s);c>l&&r.push([l,c])}if(n!=="split"&&i(t.unifiedCount),n!=="unified"&&i(t.splitCount),r.length===0)return[0,0];let o=r[0][0],a=r[0][1];for(let s=1;s<r.length;s++){let l=r[s];o=Math.min(o,l[0]),a=Math.max(a,l[1])}return[o,a]}function Pk(t,e,n,r,i,o){let[a,s]=xIe(t,e,n);a>0&&(t.incrementCounts(a,a),i?.());let l=a;for(;l<e;){if(o?.()===!0)return!0;if(l>=s){t.incrementCounts(e-l,e-l);break}if(t.isInWindow(0,0)){if(r(l)===!0)return!0}else t.incrementCounts(1,1);l++}return!1}function wIe(t,e,n){if(!t.isWindowedHighlight)return[[0,n==="unified"?e.deletions+e.additions:Math.max(e.deletions,e.additions)]];let r=n!=="split",i=n!=="unified",o=n==="unified"?"unified":"split",a=[];function s(d,p){if(d+p<=t.viewportStart||d>=t.viewportEnd)return;let m=Math.max(0,t.viewportStart-d),f=Math.min(p,t.viewportEnd-d);return f>m?[m,f]:void 0}function l(d,p){return o==="split"?d:p==="additions"?[d[0]+e.deletions,d[1]+e.deletions]:d}function c(d,p){if(d==null)return;let[m,f]=l(d,p);f>m&&a.push([m,f])}if(r&&(c(s(t.unifiedCount,e.deletions),"deletions"),c(s(t.unifiedCount+e.deletions,e.additions),"additions")),i&&(c(s(t.splitCount,e.deletions),"deletions"),c(s(t.splitCount,e.additions),"additions")),a.length===0)return a;a.sort((d,p)=>d[0]-p[0]);let u=[a[0]];for(let[d,p]of a.slice(1)){let m=u[u.length-1];d<=m[1]?m[1]=Math.max(m[1],p):u.push([d,p])}return u}function vIe({hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,diffStyle:i,index:o,unifiedLineIndex:a,splitLineIndex:s,additionLineIndex:l,deletionLineIndex:c,additionLineNumber:u,deletionLineNumber:d,content:p,isLastContent:m,unifiedCount:f,splitCount:h}){let x=o<p.deletions?a+o:void 0,g=i==="unified"?o>=p.deletions?a+o:void 0:o<p.additions?a+p.deletions+o:void 0,y=i==="unified"?s+(o<p.deletions?o:o-p.deletions):s+o,b=o<p.deletions?c+o:void 0,w=o<p.deletions?d+o:void 0,v=i==="unified"?o>=p.deletions?l+(o-p.deletions):void 0:o<p.additions?l+o:void 0,k=i==="unified"?o>=p.deletions?u+(o-p.deletions):void 0:o<p.additions?u+o:void 0,_=i==="unified"?m&&o===p.deletions-1&&e.noEOFCRDeletions:m&&o===h-1&&e.noEOFCRDeletions,L=i==="unified"?m&&o===f-1&&e.noEOFCRAdditions:m&&o===h-1&&e.noEOFCRAdditions,S=b!=null&&w!=null&&x!=null?{lineNumber:w,lineIndex:b,noEOFCR:_,unifiedLineIndex:x,splitLineIndex:y}:void 0,C=v!=null&&k!=null&&g!=null?{unifiedLineIndex:g,splitLineIndex:y,lineIndex:v,lineNumber:k,noEOFCR:L}:void 0;if(S==null&&C!=null)return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,deletionLine:void 0,additionLine:C};if(S!=null&&C==null)return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,deletionLine:S,additionLine:void 0};if(S==null||C==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:r,deletionLine:S,additionLine:C}}var kIe={forcePlainText:!1};function jk(t,e,n,{forcePlainText:r,startingLine:i,totalLines:o,expandedHunks:a,collapsedContextThreshold:s=Eo}=kIe){r?(i??=0,o??=1/0):(i=0,o=1/0);let l=i>0||o<1/0,c=typeof n.theme=="string"?e.getTheme(n.theme).type:void 0,u=uk({theme:n.theme,highlighter:e}),d=r&&!l&&(t.unifiedLineCount>1e3||t.splitLineCount>1e3)?"none":n.lineDiffType,p={deletionLines:[],additionLines:[]},{maxLineDiffLength:m}=n,f=!r&&!t.isPartial,h=r?a:void 0,x=new Map;function g(b){let w=f?0:b,v=x.get(w)??_Ie();return x.set(w,v),v}function y(b,w,v,k){if(l){let _=v.at(-1);(_==null||_.targetIndex+_.count!==w)&&(_={targetIndex:w,originalOffset:k.length,count:0},v.push(_)),_.count++}k.push(b)}i1({diff:t,diffStyle:"both",startingLine:i,totalLines:o,expandedHunks:l?h:!0,collapsedContextThreshold:s,callback:({hunkIndex:b,additionLine:w,deletionLine:v,type:k})=>{let _=g(b),L=w!=null?w.splitLineIndex:v.splitLineIndex;k==="change"&&w!=null&&v!=null&&CIe({additionLine:t.additionLines[w.lineIndex],deletionLine:t.deletionLines[v.lineIndex],deletionLineIndex:_.deletionContent.length,additionLineIndex:_.additionContent.length,deletionDecorations:_.deletionDecorations,additionDecorations:_.additionDecorations,lineDiffType:d,maxLineDiffLength:m}),v!=null&&(y(t.deletionLines[v.lineIndex],v.lineIndex,_.deletionSegments,_.deletionContent),_.deletionInfo.push({type:k==="change"?"change-deletion":k,lineNumber:v.lineNumber,altLineNumber:k==="change"?void 0:w.lineNumber??void 0,lineIndex:`${v.unifiedLineIndex},${L}`})),w!=null&&(y(t.additionLines[w.lineIndex],w.lineIndex,_.additionSegments,_.additionContent),_.additionInfo.push({type:k==="change"?"change-addition":k,lineNumber:w.lineNumber,altLineNumber:k==="change"?void 0:v.lineNumber??void 0,lineIndex:`${w.unifiedLineIndex},${L}`}))}});for(let b of x.values()){if(b.deletionContent.length===0&&b.additionContent.length===0)continue;let w={name:t.prevName??t.name,contents:b.deletionContent.value},v={name:t.name,contents:b.additionContent.value},{deletionLines:k,additionLines:_}=SIe({deletionFile:w,deletionInfo:b.deletionInfo,deletionDecorations:b.deletionDecorations,additionFile:v,additionInfo:b.additionInfo,additionDecorations:b.additionDecorations,highlighter:e,options:n,languageOverride:r?"text":t.lang});if(f){p.deletionLines=k,p.additionLines=_;continue}if(b.deletionSegments.length>0)for(let L of b.deletionSegments)for(let S=0;S<L.count;S++)p.deletionLines[L.targetIndex+S]=k[L.originalOffset+S];else p.deletionLines.push(...k);if(b.additionSegments.length>0)for(let L of b.additionSegments)for(let S=0;S<L.count;S++)p.additionLines[L.targetIndex+S]=_[L.originalOffset+S];else p.additionLines.push(..._)}return{code:p,themeStyles:u,baseThemeType:c}}function CIe({deletionLine:t,additionLine:e,deletionLineIndex:n,additionLineIndex:r,deletionDecorations:i,additionDecorations:o,lineDiffType:a,maxLineDiffLength:s}){if(t==null||e==null||a==="none"||(t=ud(t),e=ud(e),t.length>s||e.length>s))return;let l=a==="char"?kP(t,e):EP(t,e),c=[],u=[],d=a==="word-alt",p=l.at(-1);for(let f of l){let h=f===p;!f.added&&!f.removed?(q7({item:f,arr:c,enableJoin:d,isNeutral:!0,isLastItem:h}),q7({item:f,arr:u,enableJoin:d,isNeutral:!0,isLastItem:h})):f.removed?q7({item:f,arr:c,enableJoin:d,isLastItem:h}):q7({item:f,arr:u,enableJoin:d,isLastItem:h})}let m=0;for(let f of c)f[0]===1&&i.push(NP({line:n,spanStart:m,spanLength:f[1].length})),m+=f[1].length;m=0;for(let f of u)f[0]===1&&o.push(NP({line:r,spanStart:m,spanLength:f[1].length})),m+=f[1].length}function _Ie(){return{deletionContent:{push(t){this.value+=t,this.length++},value:"",length:0},additionContent:{push(t){this.value+=t,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function SIe({deletionFile:t,additionFile:e,deletionInfo:n,additionInfo:r,highlighter:i,deletionDecorations:o,additionDecorations:a,languageOverride:s,options:{theme:l=nr,...c}}){let u=s??br(t.name),d=s??br(e.name),{state:p,transformers:m}=ck(c.useTokenTransformer),f=typeof l=="string"?{...c,lang:"text",theme:l,transformers:m,decorations:void 0,defaultColor:!1,cssVariablePrefix:ga("token")}:{...c,lang:"text",themes:l,transformers:m,decorations:void 0,defaultColor:!1,cssVariablePrefix:ga("token")};return{deletionLines:t.contents===""?[]:(f.lang=u,p.lineInfo=n,f.decorations=o,j7(i.codeToHast(ud(t.contents),f))),additionLines:e.contents===""?[]:(f.lang=d,f.decorations=a,p.lineInfo=r,j7(i.codeToHast(ud(e.contents),f)))}}function o1(t){let e=t.lang??br(t.name),n=t.lang??(t.prevName!=null?br(t.prevName):"text");return e==="text"&&n==="text"}var LIe=-1,kre=class{__id=`diff-hunks-renderer:${++LIe}`;highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang="text";renderCache;constructor(t={theme:nr},e,n){this.options=t,this.onRenderUpdate=e,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=v0(t.theme??nr)?ek():void 0)}cleanUp(){this.recycle(),this.expandedHunks.clear(),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.highlighter=void 0,this.diff=void 0,this.clearRenderCache(),this.additionAnnotations={},this.deletionAnnotations={},this.workerManager?.cleanUpTasks(this)}clearRenderCache(){this.renderCache=void 0}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}expandHunk(t,e,n=this.getOptionsWithDefaults().expansionLineCount){let r={...this.expandedHunks.get(t)??{fromStart:0,fromEnd:0}};(e==="up"||e==="both")&&(r.fromStart+=n),(e==="down"||e==="both")&&(r.fromEnd+=n),this.renderCache?.highlighted!==!0&&this.clearRenderCache(),this.expandedHunks.set(t,r)}getExpandedHunk(t){return this.expandedHunks.get(t)??iN}getExpandedHunksMap(){return this.expandedHunks}setLineAnnotations(t){this.additionAnnotations={},this.deletionAnnotations={};for(let e of t){let n=(()=>{switch(e.side){case"deletions":return this.deletionAnnotations;case"additions":return this.additionAnnotations}})(),r=n[e.lineNumber]??[];n[e.lineNumber]=r,r.push(e)}}getUnifiedLineDecoration({lineType:t}){return{gutterLineType:t}}getSplitLineDecoration({side:t,type:e}){return e!=="change"?{gutterLineType:e}:{gutterLineType:t==="deletions"?"change-deletion":"change-addition"}}createAnnotationElement(t){return tk(t)}getOptionsWithDefaults(){let{diffIndicators:t="bars",diffStyle:e="split",disableBackground:n=!1,disableFileHeader:r=!1,disableLineNumbers:i=!1,disableVirtualizationBuffers:o=!1,collapsed:a=!1,expandUnchanged:s=!1,collapsedContextThreshold:l=Eo,expansionLineCount:c=100,hunkSeparators:u="line-info",lineDiffType:d="word-alt",maxLineDiffLength:p=1e3,overflow:m="scroll",stickyHeader:f=!1,theme:h=nr,headerRenderMode:x="default",tokenizeMaxLineLength:g=1e3,tokenizeMaxLength:y=ad,useTokenTransformer:b=!1,useCSSClasses:w=!1}=this.options;return{diffIndicators:t,diffStyle:e,disableBackground:n,disableFileHeader:r,disableLineNumbers:i,disableVirtualizationBuffers:o,collapsed:a,expandUnchanged:s,collapsedContextThreshold:l,expansionLineCount:c,hunkSeparators:u,lineDiffType:d,maxLineDiffLength:p,overflow:m,stickyHeader:f,theme:this.workerManager?.getDiffRenderOptions().theme??h,headerRenderMode:x,tokenizeMaxLineLength:g,tokenizeMaxLength:y,useTokenTransformer:b,useCSSClasses:w}}async initializeHighlighter(){return this.highlighter=await w0(ak(this.computedLang,this.options)),this.highlighter}hydrate(t){if(t==null)return;this.diff=t;let{options:e}=this.getRenderOptions(t),n=OP(t,this.getTokenizeMaxLength()),r=this.workerManager?.getDiffResultCache(t);r!=null&&!yu(e,r.options)&&(r=void 0),this.renderCache??={diff:t,highlighted:!n&&!o1(t),options:e,result:n?void 0:r?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&!n&&this.workerManager.highlightDiffAST(this,this.diff):this.highlighter==null&&(this.computedLang=t.lang??br(t.name),this.initializeHighlighter())}getRenderOptions(t){let e=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getDiffRenderOptions();let{theme:r,tokenizeMaxLineLength:i,lineDiffType:o,maxLineDiffLength:a}=this.getOptionsWithDefaults();return{theme:r,useTokenTransformer:fk(this.options),tokenizeMaxLineLength:i,lineDiffType:o,maxLineDiffLength:a}})();this.getOptionsWithDefaults();let{renderCache:n}=this;return n?.result==null?{options:e,forceHighlight:!0}:!Wp(t,n.diff)||!yu(e,n.options)?{options:e,forceHighlight:!0}:{options:e,forceHighlight:!1}}renderDiff(t=this.renderCache?.diff,e=s0){if(t==null)return;let{expandUnchanged:n=!1,collapsedContextThreshold:r}=this.getOptionsWithDefaults(),{options:i,forceHighlight:o}=this.getRenderOptions(t),a=this.getMatchingWorkerResultCache(t,i);a!=null&&!this.hasHighlightedRenderCache(t,i)&&(this.renderCache={diff:t,highlighted:!0,renderRange:void 0,...a},o=!1),this.renderCache??={diff:t,highlighted:!1,options:i,result:void 0,renderRange:void 0};let s=t.additionLines.length>0||t.deletionLines.length>0,l=!s||o1(t)||OP(t,this.getTokenizeMaxLength()),c=!Wp(t,this.renderCache.diff),u=!Qf(this.renderCache.renderRange,e);if(this.workerManager?.isWorkingPool()===!0)(l||this.renderCache.result==null||!this.renderCache.highlighted&&(c||u))&&(this.renderCache.diff=t,this.renderCache.options=i,this.renderCache.highlighted=!1,(this.renderCache.result==null||c||u||o)&&(this.renderCache.result=this.workerManager.getPlainDiffAST(t,e.startingLine,e.totalLines,hre(e)||n?!0:this.expandedHunks,r)),this.renderCache.renderRange=e),!l&&s&&(!this.renderCache.highlighted||o)&&this.workerManager.highlightDiffAST(this,t);else{this.computedLang=t.lang??br(t.name);let d=this.highlighter!=null&&v0(i.theme),p=this.highlighter!=null&&Bb(this.computedLang),m=!l&&p;if(this.highlighter!=null&&d&&(o||l||!this.renderCache.highlighted&&m||this.renderCache.result==null)){let{result:f,options:h}=this.renderDiffWithHighlighter(t,this.highlighter,l||!p);this.renderCache={diff:t,options:h,highlighted:m,result:f,renderRange:void 0}}(!d||!l&&!p)&&this.asyncHighlight(t).then(({result:f,options:h})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(t,f,h,!l)})}return this.renderCache.result!=null?this.processDiffResult(this.renderCache.diff,e,this.renderCache.result):void 0}async asyncRender(t,e=s0){let{result:n}=await this.asyncHighlight(t);return this.processDiffResult(t,e,n)}createPreElement(t,e,n){let{diffIndicators:r,disableBackground:i,disableLineNumbers:o,overflow:a}=this.getOptionsWithDefaults();return rk({type:"diff",diffIndicators:r,disableBackground:i,disableLineNumbers:o,overflow:a,split:t,totalLines:e,customProperties:n})}async asyncHighlight(t){let e=OP(t,this.getTokenizeMaxLength());this.computedLang=e?"text":t.lang??br(t.name);let n=this.highlighter!=null&&v0(this.options.theme??nr),r=e||this.highlighter!=null&&Bb(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(t,this.highlighter,e)}renderDiffWithHighlighter(t,e,n=!1){let{options:r}=this.getRenderOptions(t),{collapsedContextThreshold:i}=this.getOptionsWithDefaults();return{result:jk(t,e,r,{forcePlainText:n,expandedHunks:n?!0:void 0,collapsedContextThreshold:i}),options:r}}onHighlightSuccess(t,e,n,r=!0){if(this.renderCache==null)return;let i=!this.renderCache.highlighted||!yu(this.renderCache.options,n)||!Wp(this.renderCache.diff,t);this.renderCache={diff:t,options:n,highlighted:r,result:e,renderRange:void 0},i&&this.onRenderUpdate?.()}getMatchingWorkerResultCache(t,e){let n=this.workerManager?.getDiffResultCache(t);if(!(n==null||!yu(e,n.options)))return n}hasHighlightedRenderCache(t,e){let{renderCache:n}=this;return n?.result!=null&&n.highlighted&&Wp(t,n.diff)&&yu(e,n.options)}onHighlightError(t){console.error(t)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??ad}processDiffResult(t,e,{code:n,themeStyles:r,baseThemeType:i}){let{diffStyle:o,disableFileHeader:a,expandUnchanged:s,expansionLineCount:l,collapsedContextThreshold:c,hunkSeparators:u}=this.getOptionsWithDefaults();this.diff=t;let d=o==="unified",p=[],m=[],f=[],h=[],{additionLines:x,deletionLines:g}=n,y={rowCount:0,hunkSeparators:u,additionsContentAST:p,deletionsContentAST:m,unifiedContentAST:f,unifiedGutterAST:Uf(),deletionsGutterAST:Uf(),additionsGutterAST:Uf(),expansionLineCount:l,hunkData:h,incrementRowCount(A=1){y.rowCount+=A},pushToGutter(A,$){switch(A){case"unified":y.unifiedGutterAST.children.push($);break;case"deletions":y.deletionsGutterAST.children.push($);break;case"additions":y.additionsGutterAST.children.push($);break}}},b=PP({fileDiff:t,errorPrefix:"DiffHunksRenderer.processDiffResult"}),w={size:0,side:void 0,increment(){this.size+=1},flush(){if(o!=="unified"){if(this.size<=0||this.side==null){this.side=void 0,this.size=0;return}this.side==="additions"?(y.pushToGutter("additions",Os(void 0,"buffer",this.size)),p?.push(B7(this.size))):(y.pushToGutter("deletions",Os(void 0,"buffer",this.size)),m?.push(B7(this.size))),this.size=0,this.side=void 0}}},v=(A,$,N,F,D)=>{y.pushToGutter(A,rv($,N,F,D))};function k(A){w.flush(),o==="unified"?jP("unified",A,y):(jP("deletions",A,y),jP("additions",A,y))}i1({diff:t,diffStyle:o,startingLine:e.startingLine,totalLines:e.totalLines,expandedHunks:s?!0:this.expandedHunks,collapsedContextThreshold:c,callback:({hunkIndex:A,hunk:$,collapsedBefore:N,collapsedAfter:F,additionLine:D,deletionLine:O,type:B})=>{let P=O!=null?O.splitLineIndex:D.splitLineIndex,U=D!=null?D.unifiedLineIndex:O.unifiedLineIndex;o==="split"&&B!=="change"&&w.flush(),N>0&&k({hunkIndex:A,collapsedLines:N,rangeSize:Math.max($?.collapsedBefore??0,0),hunkSpecs:$?.hunkSpecs,isFirstHunk:A===0,isLastHunk:!1,isExpandable:!t.isPartial});let G=o==="unified"?U:P,j={type:B,hunkIndex:A,lineIndex:G,unifiedLineIndex:U,splitLineIndex:P,deletionLine:O,additionLine:D};if(o==="unified"){let ie=this.getUnifiedInjectedRowsForLine?.(j);ie?.before!=null&&xre(ie.before,y);let Z=O!=null?g[O.lineIndex]:void 0,le=D!=null?x[D.lineIndex]:void 0;if(Z==null&&le==null){let ce="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(ce,{file:t.name}),new Error(ce)}let se=B==="change"?D!=null?"change-addition":"change-deletion":B,ge=this.getUnifiedLineDecoration({type:B,lineType:se,additionLineIndex:D?.lineIndex,deletionLineIndex:O?.lineIndex});v("unified",ge.gutterLineType,D!=null?D.lineNumber:O.lineNumber,`${U},${P}`,ge.gutterProperties),le!=null?le=Ok(le,ge.contentProperties):Z!=null&&(Z=Ok(Z,ge.contentProperties)),vre({diffStyle:"unified",type:B,deletionLine:Z,additionLine:le,unifiedSpan:this.getAnnotations("unified",O?.lineNumber,D?.lineNumber,A,G),createAnnotationElement:ce=>this.createAnnotationElement(ce),context:y}),ie?.after!=null&&xre(ie.after,y)}else{let ie=this.getSplitInjectedRowsForLine?.(j);ie?.before!=null&&wre(ie.before,y,w);let Z=O!=null?g[O.lineIndex]:void 0,le=D!=null?x[D.lineIndex]:void 0,se=this.getSplitLineDecoration({side:"deletions",type:B,lineIndex:O?.lineIndex}),ge=this.getSplitLineDecoration({side:"additions",type:B,lineIndex:D?.lineIndex});if(Z==null&&le==null){let ke="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(ke,{file:t.name}),new Error(ke)}let ce=(()=>{if(B==="change"){if(le==null)return"additions";if(Z==null)return"deletions"}})();if(ce!=null){if(w.side!=null&&w.side!==ce)throw new Error("DiffHunksRenderer.processDiffResult: iterateOverDiff, invalid pending splits");w.side=ce,w.increment()}let be=this.getAnnotations("split",O?.lineNumber,D?.lineNumber,A,G);if(be!=null&&w.size>0&&w.flush(),O!=null){let ke=Ok(Z,se.contentProperties);v("deletions",se.gutterLineType,O.lineNumber,`${O.unifiedLineIndex},${P}`,se.gutterProperties),ke!=null&&(Z=ke)}if(D!=null){let ke=Ok(le,ge.contentProperties);v("additions",ge.gutterLineType,D.lineNumber,`${D.unifiedLineIndex},${P}`,ge.gutterProperties),ke!=null&&(le=ke)}vre({diffStyle:"split",type:B,additionLine:le,deletionLine:Z,...be,createAnnotationElement:ke=>this.createAnnotationElement(ke),context:y}),ie?.after!=null&&wre(ie.after,y,w)}let V=o==="split"&&$!=null&&P===$.splitLineStart+$.splitLineCount-1,H=V?$.noEOFCRDeletions:!1,ne=V?$.noEOFCRAdditions:!1,J=(O?.noEOFCR??!1)||H,W=(D?.noEOFCR??!1)||ne;if(W||J){if(o==="split"&&w.flush(),J){let ie=B==="context"||B==="context-expanded"?B:"change-deletion";o==="unified"?(y.unifiedContentAST.push(z7(ie)),y.pushToGutter("unified",Os(ie,"metadata",1))):(y.deletionsContentAST.push(z7(ie)),y.pushToGutter("deletions",Os(ie,"metadata",1)),W||(y.pushToGutter("additions",Os(void 0,"buffer",1)),y.additionsContentAST.push(B7(1))))}if(W){let ie=B==="context"||B==="context-expanded"?B:"change-addition";o==="unified"?(y.unifiedContentAST.push(z7(ie)),y.pushToGutter("unified",Os(ie,"metadata",1))):(y.additionsContentAST.push(z7(ie)),y.pushToGutter("additions",Os(ie,"metadata",1)),J||(y.pushToGutter("deletions",Os(void 0,"buffer",1)),y.deletionsContentAST.push(B7(1))))}y.incrementRowCount(1)}F>0&&u!=="simple"&&k({hunkIndex:B==="context-expanded"?A:A+1,collapsedLines:F,rangeSize:b,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:!t.isPartial}),y.incrementRowCount(1)}}),o==="split"&&w.flush();let _=Math.max(fre(t.hunks),t.additionLines.length??0,t.deletionLines.length??0),L=e.bufferBefore>0||e.bufferAfter>0,S=!d&&t.type!=="deleted",C=!d&&t.type!=="new",T=y.rowCount>0||L;p=S&&T?p:void 0,m=C&&T?m:void 0,f=d&&T?f:void 0;let M=this.createPreElement(m!=null&&p!=null,_);return{unifiedGutterAST:d&&T?y.unifiedGutterAST.children:void 0,unifiedContentAST:f,deletionsGutterAST:C&&T?y.deletionsGutterAST.children:void 0,deletionsContentAST:m,additionsGutterAST:S&&T?y.additionsGutterAST.children:void 0,additionsContentAST:p,hunkData:h,preNode:M,themeStyles:r,baseThemeType:i,headerElement:a?void 0:this.renderHeader(this.diff),totalLines:_,rowCount:y.rowCount,bufferBefore:e.bufferBefore,bufferAfter:e.bufferAfter,css:""}}renderCodeAST(t,e){let n=t==="unified"?e.unifiedGutterAST:t==="deletions"?e.deletionsGutterAST:e.additionsGutterAST,r=t==="unified"?e.unifiedContentAST:t==="deletions"?e.deletionsContentAST:e.additionsContentAST;if(n==null||r==null)return;let i=Uf(n);return i.properties.style=`grid-row: span ${e.rowCount}`,[i,mk(r,e.rowCount)]}renderFullAST(t,e=[]){let n=this.getOptionsWithDefaults().hunkSeparators==="line-info",r=this.renderCodeAST("unified",t);if(r!=null)return e.push(qt({tagName:"code",children:r,properties:{"data-code":"","data-container-size":n?"":void 0,"data-unified":""}})),{...t.preNode,children:e};let i=this.renderCodeAST("deletions",t);i!=null&&e.push(qt({tagName:"code",children:i,properties:{"data-code":"","data-container-size":n?"":void 0,"data-deletions":""}}));let o=this.renderCodeAST("additions",t);return o!=null&&e.push(qt({tagName:"code",children:o,properties:{"data-code":"","data-container-size":n?"":void 0,"data-additions":""}})),{...t.preNode,children:e}}renderFullHTML(t,e=[]){return Vo(this.renderFullAST(t,e))}renderPartialHTML(t,e){return e==null?Vo(t):Vo(qt({tagName:"code",children:t,properties:{"data-code":"","data-container-size":this.getOptionsWithDefaults().hunkSeparators==="line-info"?"":void 0,[`data-${e}`]:""}}))}getAnnotations(t,e,n,r,i){let o={type:"annotation",hunkIndex:r,lineIndex:i,annotations:[]};if(e!=null)for(let s of this.deletionAnnotations[e]??[])o.annotations.push(Tl(s));let a={type:"annotation",hunkIndex:r,lineIndex:i,annotations:[]};if(n!=null)for(let s of this.additionAnnotations[n]??[])(t==="unified"?o:a).annotations.push(Tl(s));if(t==="unified")return o.annotations.length>0?o:void 0;if(!(a.annotations.length===0&&o.annotations.length===0))return{deletionSpan:o,additionSpan:a}}renderHeader(t){let{headerRenderMode:e,stickyHeader:n}=this.getOptionsWithDefaults();return nk({fileOrDiff:t,mode:e,stickyHeader:n})}};function yre(t){return`${t} unmodified line${t>1?"s":""}`}function xre(t,e){for(let n of t)e.unifiedContentAST.push(n.content),e.pushToGutter("unified",n.gutter),e.incrementRowCount(1)}function wre(t,e,n){for(let{deletion:r,addition:i}of t){if(r==null&&i==null)continue;let o=r!=null&&i!=null?void 0:r==null?"deletions":"additions";(o==null||n.side!==o)&&n.flush(),r!=null&&(e.deletionsContentAST.push(r.content),e.pushToGutter("deletions",r.gutter)),i!=null&&(e.additionsContentAST.push(i.content),e.pushToGutter("additions",i.gutter)),o!=null&&(n.side=o,n.increment()),e.incrementRowCount(1)}}function vre({diffStyle:t,type:e,deletionLine:n,additionLine:r,unifiedSpan:i,deletionSpan:o,additionSpan:a,createAnnotationElement:s,context:l}){let c=!1;if(t==="unified"){if(r!=null?l.unifiedContentAST.push(r):n!=null&&l.unifiedContentAST.push(n),i!=null){let u=e==="change"?n!=null?"change-deletion":"change-addition":e;l.unifiedContentAST.push(s(i)),l.pushToGutter("unified",Os(u,"annotation",1)),c=!0}}else if(t==="split"){if(n!=null&&l.deletionsContentAST.push(n),r!=null&&l.additionsContentAST.push(r),o!=null){let u=e==="change"?n!=null?"change-deletion":"context":e;l.deletionsContentAST.push(s(o)),l.pushToGutter("deletions",Os(u,"annotation",1)),c=!0}if(a!=null){let u=e==="change"?r!=null?"change-addition":"context":e;l.additionsContentAST.push(s(a)),l.pushToGutter("additions",Os(u,"annotation",1)),c=!0}}c&&l.incrementRowCount(1)}function jP(t,{hunkIndex:e,collapsedLines:n,rangeSize:r,hunkSpecs:i,isFirstHunk:o,isLastHunk:a,isExpandable:s},l){if(n<=0)return;let c=t==="unified"?l.unifiedContentAST:t==="deletions"?l.deletionsContentAST:l.additionsContentAST;if(l.hunkSeparators==="metadata"){i!=null&&(l.pushToGutter(t,C0({type:"metadata",content:i,isFirstHunk:o,isLastHunk:a})),c.push(C0({type:"metadata",content:i,isFirstHunk:o,isLastHunk:a})),t!=="additions"&&l.incrementRowCount(1));return}if(l.hunkSeparators==="simple"){e>0&&(l.pushToGutter(t,C0({type:"simple",isFirstHunk:o,isLastHunk:!1})),c.push(C0({type:"simple",isFirstHunk:o,isLastHunk:!1})),t!=="additions"&&l.incrementRowCount(1));return}let u=mre(t,e),d=r>l.expansionLineCount,p=s?e:void 0;l.pushToGutter(t,C0({type:l.hunkSeparators,content:yre(n),expandIndex:p,chunked:d,slotName:u,isFirstHunk:o,isLastHunk:a})),c.push(C0({type:l.hunkSeparators,content:yre(n),expandIndex:p,chunked:d,slotName:u,isFirstHunk:o,isLastHunk:a})),t!=="additions"&&l.incrementRowCount(1),l.hunkData.push({slotName:u,hunkIndex:e,lines:n,type:t,expandable:s?{up:!o,down:!a,chunked:d}:void 0})}function Ok(t,e){return t==null||t.type!=="element"||e==null?t:{...t,properties:{...t.properties,...e}}}function OP(t,e){return Math.max(t.additionLines.length,t.deletionLines.length)>e}function Cre(t,e){return t.lineNumber===e.lineNumber&&t.side===e.side&&t.metadata===e.metadata}function _re(t,e){return t.slotName===e.slotName&&t.hunkIndex===e.hunkIndex&&t.lines===e.lines&&t.type===e.type&&t.expandable?.chunked===e.expandable?.chunked&&t.expandable?.up===e.expandable?.up&&t.expandable?.down===e.expandable?.down}function Sre(t){return{theme:t?.theme,disableLineNumbers:t?.disableLineNumbers,overflow:t?.overflow,collapsed:t?.collapsed,disableFileHeader:t?.disableFileHeader,disableVirtualizationBuffers:t?.disableVirtualizationBuffers,stickyHeader:t?.stickyHeader,preferredHighlighter:t?.preferredHighlighter,useCSSClasses:t?.useCSSClasses,useTokenTransformer:t?.useTokenTransformer,tokenizeMaxLineLength:t?.tokenizeMaxLineLength,tokenizeMaxLength:t?.tokenizeMaxLength,diffStyle:t?.diffStyle,diffIndicators:t?.diffIndicators,disableBackground:t?.disableBackground,hunkSeparators:typeof t?.hunkSeparators=="function"?"custom":t?.hunkSeparators,expandUnchanged:t?.expandUnchanged,collapsedContextThreshold:t?.collapsedContextThreshold,lineDiffType:t?.lineDiffType,maxLineDiffLength:t?.maxLineDiffLength,expansionLineCount:t?.expansionLineCount,headerRenderMode:t?.renderCustomHeader!=null?"custom":"default"}}var MIe=-1,Dk=class{static LoadedCustomComponent=Mk;__id=`file-diff:${++MIe}`;type="file-diff";fileContainer;spriteSVG;pre;codeUnified;codeDeletions;codeAdditions;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;hasAdoptedThemeCSS=!1;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;headerElement;headerPrefix;headerMetadata;headerCustom;separatorCache=new Map;errorWrapper;placeHolder;hunksRenderer;resizeManager;scrollSyncManager;interactionManager;annotationCache=new Map;lineAnnotations=[];managersDirty=!1;deletionFile;additionFile;fileDiff;renderRange;appliedPreAttributes;lastRenderedHeaderHTML;cachedHeaderHTML;lastRowCount;mounted=!1;enabled=!0;constructor(t={theme:nr},e,n=!1){this.options=t,this.workerManager=e,this.isContainerManaged=n,this.hunksRenderer=this.createHunksRenderer(t),this.resizeManager=new yv,this.scrollSyncManager=new pre,this.interactionManager=new bv("diff",Fb(t,typeof t.hunkSeparators=="function"||(t.hunkSeparators??"line-info")==="line-info"||t.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)),this.workerManager?.subscribeToThemeChanges(this),this.enabled=!0}handleHighlightRender=()=>{this.rerender()};getHunksRendererOptions(t){return Sre(t)}createHunksRenderer(t){return new kre(this.getHunksRendererOptions(t),this.handleHighlightRender,this.workerManager)}getLineIndex=(t,e="additions")=>{if(this.fileDiff==null)return;let n=this.fileDiff.hunks.at(-1),r,i;e:for(let o of this.fileDiff.hunks){let a=e==="deletions"?o.deletionStart:o.additionStart,s=e==="deletions"?o.deletionCount:o.additionCount,l=o.splitLineStart,c=o.unifiedLineStart;if(t<a){let u=a-t;r=Math.max(c-u,0),i=Math.max(l-u,0);break e}if(t>=a+s){if(o===n){let u=t-(a+s);r=c+o.unifiedLineCount+u,i=l+o.splitLineCount+u;break e}continue}for(let u of o.hunkContent)if(u.type==="context")if(t<a+u.lines){let d=t-a;i=l+d,r=c+d;break e}else a+=u.lines,l+=u.lines,c+=u.lines;else{let d=e==="deletions"?u.deletions:u.additions;if(t<a+d){let p=t-a;r=c+(e==="additions"?u.deletions:0)+p,i=l+p;break e}else a+=d,l+=Math.max(u.deletions,u.additions),c+=u.deletions+u.additions}break e}if(!(r==null||i==null))return[r,i]};setOptions(t){t!=null&&(this.options=t,this.cachedHeaderHTML=void 0,this.hunksRenderer.setOptions(this.getHunksRendererOptions(t)),this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(Fb(this.options,typeof this.options.hunkSeparators=="function"||(this.options.hunkSeparators??"line-info")==="line-info"||this.options.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex))}mergeOptions(t){this.options={...this.options,...t}}setThemeType(t){(this.options.themeType??"system")!==t&&(this.mergeOptions({themeType:t}),this.applyCachedThemeState(t))}applyCachedThemeState(t){if(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)return!1;let e=this.appliedThemeCSS.baseThemeType??t;return this.appliedThemeCSS.themeType===e?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,t,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!Cc(this.appliedThemeCSS.theme,this.options.theme??nr)}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(t){this.lineAnnotations=t}canPartiallyRender(t,e,n){return!(t||e||n||typeof this.options.hunkSeparators=="function")}setSelectedLines(t,e){this.interactionManager.setSelection(t,e)}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}let{diffStyle:t="split",overflow:e="scroll"}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,e==="wrap"),e==="scroll"&&t==="split"?this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp(),this.managersDirty=!1}cleanUp(t=!1){this.emitPostRender(!0),this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.managersDirty=!1,this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer=void 0,this.mounted=!1,this.lineAnnotations=[],this.clearAuxiliaryNodes(),this.annotationCache.clear(),this.pre=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.placeHolder=void 0,this.lastRenderedHeaderHTML=void 0,t||(this.cachedHeaderHTML=void 0),this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,t?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(t){let{fileContainer:e,prerenderedHTML:n,preventEmit:r=!1,lineAnnotations:i,oldFile:o,newFile:a,fileDiff:s}=t;this.hydrateElements(e,n),RIe(this.pre,EIe({fileDiff:s,oldFile:o,newFile:a}),this.options.collapsed)||AIe(this.headerElement,TIe({fileDiff:s,oldFile:o,newFile:a}),this.options.disableFileHeader)?this.render({...t,preventEmit:!0}):this.hydrationSetup({fileDiff:s,oldFile:o,newFile:a,lineAnnotations:i}),r||this.emitPostRender()}hydrateElements(t,e){this.fileContainer!==t&&this.emitPostRender(!0),_k(t,e);for(let n of t.shadowRoot?.children??[]){if(n instanceof SVGElement){this.spriteSVG=n;continue}if(n instanceof HTMLElement){if(n instanceof HTMLPreElement){this.pre=n;for(let r of n.children)!(r instanceof HTMLElement)||r.tagName.toLowerCase()!=="code"||("deletions"in r.dataset&&(this.codeDeletions=r),"additions"in r.dataset&&(this.codeAdditions=r),"unified"in r.dataset&&(this.codeUnified=r));continue}if("diffsHeader"in n.dataset){this.headerElement=n;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Np)){this.themeCSSStyle=n;continue}if(n instanceof HTMLStyleElement&&n.hasAttribute(Pp)){this.unsafeCSSStyle=n,this.appliedUnsafeCSS=n.textContent;continue}}}this.pre!=null&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=t,this.hydrateMeasuredScrollbar()}hydrationSetup({fileDiff:t,oldFile:e,newFile:n,lineAnnotations:r}){this.lineAnnotations=r??this.lineAnnotations,this.additionFile=n,this.deletionFile=e,this.fileDiff=t??(e!=null&&n!=null?F7(e,n,this.options.parseDiffOptions):void 0),this.pre!=null&&(this.syncInteractionOptions(),this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||this.render({forceRender:!0,renderRange:this.renderRange})}onThemeChange(){this.hunksRenderer.clearRenderCache(),this.rerender()}handleExpandHunk=(t,e,n)=>{this.expandHunk(t,e,n)};expandHunk=(t,e,n)=>{this.hunksRenderer.expandHunk(t,e,n),this.rerender()};render({oldFile:t,newFile:e,fileDiff:n,deferManagers:r=!1,forceRender:i=!1,preventEmit:o=!1,lineAnnotations:a,fileContainer:s,containerWrapper:l,renderRange:c}){if(!this.enabled)throw new Error("FileDiff.render: attempting to call render after cleaned up");let{collapsed:u=!1,themeType:d="system"}=this.options,p=u?void 0:c,m=this.hasThemeChanged(),f=t!=null&&e!=null&&(!Ec(t,this.deletionFile)||!Ec(e,this.additionFile)),h=n!=null&&n!==this.fileDiff,x=a!=null&&(a.length>0||this.lineAnnotations.length>0)?a!==this.lineAnnotations:!1;if(!u&&Qf(p,this.renderRange)&&!i&&!x&&!m&&(n!=null&&n===this.fileDiff||n==null&&!f))return this.applyCachedThemeState(d);let{renderRange:g}=this;if(this.renderRange=p,this.deletionFile=t,this.additionFile=e,n!=null?this.fileDiff=n:t!=null&&e!=null&&f&&(h=!0,this.fileDiff=F7(t,e,this.options.parseDiffOptions)),h&&(this.cachedHeaderHTML=void 0),a!=null&&this.setLineAnnotations(a),this.fileDiff==null)return!1;this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.syncInteractionOptions(),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);let{disableErrorHandling:y=!1,disableFileHeader:b=!1}=this.options;if(b&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),s=this.getOrCreateFileContainer(s,l),this.applyCachedThemeState(d),u){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{let w=this.hunksRenderer.renderDiff(this.fileDiff,s7);w!=null&&this.applyThemeState(s,w.themeStyles,d,w.baseThemeType),w?.headerElement!=null&&this.applyHeaderToDOM(w.headerElement,s),this.renderSeparators([]),this.injectUnsafeCSS()}catch(w){if(y)throw w;console.error(w),w instanceof Error&&this.applyErrorToDOM(w,s)}return o||this.emitPostRender(),!0}try{let w=this.getOrCreatePreNode(s);if(!(this.canPartiallyRender(i,x,f||h||m)&&this.applyPartialRender({previousRenderRange:g,renderRange:p}))){let v=this.hunksRenderer.renderDiff(this.fileDiff,p);if(v==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(s,v.themeStyles,d,v.baseThemeType),v.headerElement!=null&&this.applyHeaderToDOM(v.headerElement,s),v.additionsContentAST!=null||v.deletionsContentAST!=null||v.unifiedContentAST!=null?this.applyHunksToDOM(w,v):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(v.hunkData)}this.applyBuffers(w,p),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.managersDirty=!0,r||this.flushManagers()}catch(w){if(y)throw w;console.error(w),w instanceof Error&&this.applyErrorToDOM(w,s)}return o||this.emitPostRender(),!0}emitPostRender(t=!1){let{fileContainer:e,options:{onPostRender:n}}=this;if(t){if(!this.mounted||(this.mounted=!1,e==null))return;this.options.onPostRender?.(e,this,"unmount");return}if(e==null)return;let r=this.mounted?"update":"mount";this.mounted=!0,n?.(e,this,r)}removeRenderedCode(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(let{element:t}of this.separatorCache.values())t.remove();this.separatorCache.clear();for(let{element:t}of this.annotationCache.values())t.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(t){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){let e=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",e.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty("height",`${t}px`),!0}primeHighlightCache(){let{fileDiff:t,workerManager:e}=this;if(t==null||e==null||o1(t))return;let n=this.options.tokenizeMaxLength??ad;Math.max(t.additionLines.length,t.deletionLines.length)>n||e.primeDiffHighlightCache(t)}cleanChildNodes(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.clearAuxiliaryNodes(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.codeAdditions?.remove(),this.codeDeletions?.remove(),this.codeUnified?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderSeparators(t){let{hunkSeparators:e}=this.options;if(this.isContainerManaged||this.fileContainer==null||typeof e!="function"){for(let{element:r}of this.separatorCache.values())r.remove();this.separatorCache.clear();return}let n=new Map(this.separatorCache);for(let r of t){let i=r.slotName,o=this.separatorCache.get(i);if(o==null||!_re(r,o.hunkData)){o?.element.remove();let a=document.createElement("div");a.style.display="contents",a.slot=r.slotName;let s=e(r,this);s!=null&&a.appendChild(s),this.fileContainer.appendChild(a),o={element:a,hunkData:r},this.separatorCache.set(i,o)}n.delete(i)}for(let[r,{element:i}]of n.entries())this.separatorCache.delete(r),i.remove()}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(let{element:n}of this.annotationCache.values())n.remove();this.annotationCache.clear();return}let t=new Map(this.annotationCache),{renderAnnotation:e}=this.options;if(e!=null&&this.lineAnnotations.length>0)for(let[n,r]of this.lineAnnotations.entries()){let i=`${n}-${Tl(r)}`,o=this.annotationCache.get(i);if(o==null||!Cre(r,o.annotation)){o?.element.remove();let a=e(r);if(a==null)continue;o={element:bk(Tl(r)),annotation:r},o.element.appendChild(a),this.fileContainer.appendChild(o.element),this.annotationCache.set(i,o)}t.delete(i)}for(let[n,{element:r}]of t.entries())this.annotationCache.delete(n),r.remove()}renderGutterUtility(){let{renderGutterUtility:t}=this.options;if(this.fileContainer==null||t==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let e=t(this.interactionManager.getHoveredLine);if(e!=null&&this.gutterUtilityContent!=null)return;if(e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}let n=yk();n.appendChild(e),this.fileContainer.appendChild(n),this.gutterUtilityContent=n}getOrCreateFileContainer(t,e){let{fileContainer:n}=this,r=t??n??document.createElement(kc),i=n!==r;return i&&this.emitPostRender(!0),this.fileContainer=r,n!=null&&i&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),e!=null&&this.fileContainer.parentNode!==e&&e.appendChild(this.fileContainer),i&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(t){let{shadowRoot:e}=t;if(e!=null)for(let n of e.children)n instanceof SVGElement?this.spriteSVG??=n:Kb(n)&&n.hasAttribute(Np)?(this.themeCSSStyle??=n,this.hasAdoptedThemeCSS=!0):Kb(n)&&n.hasAttribute(Pp)&&(this.unsafeCSSStyle??=n,this.appliedUnsafeCSS??=this.options.unsafeCSS??void 0)}ensureSpriteSVG(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});if(this.spriteSVG==null){let n=document.createElement("div");n.innerHTML=hk;let r=n.firstChild;r instanceof SVGElement&&(this.spriteSVG=r)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==e&&e.appendChild(this.spriteSVG)}getOrCreatePreNode(t){let e=t.shadowRoot??t.attachShadow({mode:"open"});return this.pre==null?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,e.appendChild(this.pre)):this.pre.parentNode!==e&&(e.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(t){this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0;for(let e of Array.from(t.children))e instanceof HTMLElement&&(e.hasAttribute("data-unified")?this.codeUnified=e:e.hasAttribute("data-deletions")?this.codeDeletions=e:e.hasAttribute("data-additions")&&(this.codeAdditions=e))}applyHeaderToDOM(t,e){this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;let{fileDiff:n}=this,r=this.cachedHeaderHTML??Vo(t);if(this.cachedHeaderHTML=r,r!==this.lastRenderedHeaderHTML){let c=document.createElement("div");c.innerHTML=r;let u=c.firstElementChild;if(!(u instanceof HTMLElement))return;this.headerElement!=null?e.shadowRoot?.replaceChild(u,this.headerElement):e.shadowRoot?.prepend(u),this.headerElement=u,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged||n==null)return;let{renderCustomHeader:i,renderHeaderPrefix:o,renderHeaderMetadata:a}=this.options;if(i!=null){let c=i(n)??void 0;this.headerCustom=this.upsertHeaderSlotElement(e,this.headerCustom,Ip,c),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0;return}let s=o?.(n)??void 0,l=a?.(n)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(e,this.headerPrefix,Ap,s),this.headerMetadata=this.upsertHeaderSlotElement(e,this.headerMetadata,$p,l),this.headerCustom?.remove(),this.headerCustom=void 0}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(t,e,n,r){if(r==null){e?.remove();return}let i=e??this.createHeaderSlotElement(n);return e==null&&t.appendChild(i),this.replaceHeaderSlotContent(i,r),i}replaceHeaderSlotContent(t,e){t.replaceChildren(),e instanceof Element?t.appendChild(e):t.innerText=`${e}`}createHeaderSlotElement(t){let e=document.createElement("div");return e.slot=t,e}injectUnsafeCSS(){let{unsafeCSS:t}=this.options,e=this.fileContainer?.shadowRoot;if(e!=null){if(t==null||t===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===e&&this.appliedUnsafeCSS===t||(this.unsafeCSSStyle??=xk(),this.unsafeCSSStyle.parentNode!==e&&e.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=vk(t),this.appliedUnsafeCSS=t)}}applyThemeState(t,e,n,r){let i=t.shadowRoot??t.attachShadow({mode:"open"}),o=r??n,a=this.options.theme??nr,s=typeof a=="string"?a:{...a},l=e1(i);if(this.themeCSSStyle?.parentNode===i&&this.appliedThemeCSS?.themeStyles===e&&this.appliedThemeCSS.themeType===o&&this.appliedThemeCSS.scrollbarGutter===l){this.appliedThemeCSS.theme=s;return}if(this.hasAdoptedThemeCSS&&this.themeCSSStyle?.parentNode===i){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l};return}this.themeCSSStyle=Lk({shadowRoot:i,currentNode:this.themeCSSStyle,themeCSS:kk(e,o,l)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{theme:s,themeStyles:e,themeType:o,baseThemeType:r,scrollbarGutter:l}:void 0}hydrateMeasuredScrollbar(){let t=this.fileContainer?.shadowRoot;t==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=Ck(this.themeCSSStyle.textContent??"",e1(t)))}applyHunksToDOM(t,e){let{overflow:n="scroll"}=this.options,r=(this.options.hunkSeparators??"line-info")==="line-info",i=n==="wrap"?e.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(t,e);let o=!1,a=[],s=this.hunksRenderer.renderCodeAST("unified",e),l=this.hunksRenderer.renderCodeAST("deletions",e),c=this.hunksRenderer.renderCodeAST("additions",e);s!=null?(o=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=Wb({code:this.codeUnified,columnType:"unified",rowSpan:i,containerSize:r}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(s),a.push(this.codeUnified)):l!=null||c!=null?(l!=null?(o=this.codeDeletions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=Wb({code:this.codeDeletions,columnType:"deletions",rowSpan:i,containerSize:r}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(l),a.push(this.codeDeletions)):(this.codeDeletions?.remove(),this.codeDeletions=void 0),c!=null?(o=o||this.codeAdditions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=Wb({code:this.codeAdditions,columnType:"additions",rowSpan:i,containerSize:r}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(c),a.push(this.codeAdditions)):(this.codeAdditions?.remove(),this.codeAdditions=void 0)):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0),a.length===0?t.textContent="":o&&t.replaceChildren(...a),this.lastRowCount=e.rowCount}applyPartialRender({previousRenderRange:t,renderRange:e}){let{pre:n,codeUnified:r,codeAdditions:i,codeDeletions:o,options:{diffStyle:a="split"}}=this;if(n==null||t==null||e==null||!Number.isFinite(t.totalLines)||!Number.isFinite(e.totalLines)||this.lastRowCount==null)return!1;let s=this.getCodeColumns(a,r,o,i);if(s==null)return!1;let l=t.startingLine,c=e.startingLine,u=l+t.totalLines,d=c+e.totalLines,p=Math.max(l,c),m=Math.min(u,d);if(m<=p)return!1;let f=Math.max(0,p-l),h=Math.max(0,u-m),x=this.trimColumns({columns:s,trimStart:f,trimEnd:h,previousStart:l,overlapStart:p,overlapEnd:m,diffStyle:a});if(x<0)throw new Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<x)throw new Error("applyPartialRender: trimmed beyond DOM row count");let g=this.lastRowCount-x,y=(k,_)=>{if(!(_<=0||this.fileDiff==null))return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:k,totalLines:_,bufferBefore:0,bufferAfter:0})},b=y(c,Math.max(p-c,0));if(b==null&&c<p)return!1;let w=y(m,Math.max(d-m,0));if(w==null&&d>m)return!1;let v=(k,_)=>{if(k!=null){if(a==="unified"&&!Array.isArray(s))this.insertPartialHTML(a,s,k,_);else if(a==="split"&&Array.isArray(s))this.insertPartialHTML(a,s,k,_);else throw new Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");g+=k.rowCount}};return this.cleanupErrorWrapper(),v(b,"afterbegin"),v(w,"beforeend"),this.lastRowCount!==g&&(this.applyRowSpan(a,s,g),this.lastRowCount=g),!0}insertPartialHTML(t,e,n,r){if(t==="unified"&&!Array.isArray(e)){let i=this.hunksRenderer.renderCodeAST("unified",n);this.renderPartialColumn(e,i,r)}else if(t==="split"&&Array.isArray(e)){let i=this.hunksRenderer.renderCodeAST("deletions",n),o=this.hunksRenderer.renderCodeAST("additions",n);this.renderPartialColumn(e[0],i,r),this.renderPartialColumn(e[1],o,r)}else throw new Error("FileDiff.insertPartialHTML: Invalid argument composition")}renderPartialColumn(t,e,n){if(t==null||e==null)return;let r=Lre(e[0]),i=Lre(e[1]);if(r==null||i==null)throw new Error("FileDiff.insertPartialHTML: Unexpected AST structure");let o=i.at(0);n==="beforeend"&&o?.type==="element"&&typeof o.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(o.properties["data-buffer-size"],t.content.children[t.content.children.length-1],t.gutter.children[t.gutter.children.length-1],r,i,!0);let a=i.at(-1);n==="afterbegin"&&a?.type==="element"&&typeof a.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(a.properties["data-buffer-size"],t.content.children[0],t.gutter.children[0],r,i,!1),t.gutter.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(r)),t.content.insertAdjacentHTML(n,this.hunksRenderer.renderPartialHTML(i))}mergeBuffersIfNecessary(t,e,n,r,i,o){if(!(e instanceof HTMLElement)||!(n instanceof HTMLElement))return;let a=this.getBufferSize(e.dataset);a!=null&&(o?(r.shift(),i.shift()):(r.pop(),i.pop()),this.updateBufferSize(e,a+t),this.updateBufferSize(n,a+t))}applyRowSpan(t,e,n){let r=i=>{i!=null&&(i.gutter.style.setProperty("grid-row",`span ${n}`),i.content.style.setProperty("grid-row",`span ${n}`))};if(t==="unified"&&!Array.isArray(e))r(e);else if(t==="split"&&Array.isArray(e))r(e[0]),r(e[1]);else throw new Error("dun fuuuuked up")}trimColumnRows(t,e,n){let r=0,i=0,o=0,a=!1,s=n>=0;if(t==null)return 0;let l=Array.from(t.content.children),c=Array.from(t.gutter.children);if(l.length!==c.length)throw new Error("FileDiff.trimColumnRows: columns do not match");for(;o<l.length&&!(e<=0&&!s&&!a);){let u=c[o],d=l[o];if(o++,!(u instanceof HTMLElement)||!(d instanceof HTMLElement))throw console.error({gutterElement:u,contentElement:d}),new Error("FileDiff.trimColumnRows: invalid row elements");if(a&&(a=!1,u.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in d.dataset||u.dataset.gutterBuffer==="metadata"&&"noNewline"in d.dataset)){u.remove(),d.remove(),i++;continue}if("lineIndex"in u.dataset&&"lineIndex"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),e>0&&(e--,e===0&&(a=!0)),i++),r++;continue}if("separator"in u.dataset&&"separator"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),i++);continue}if(u.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),i++);continue}if(u.dataset.gutterBuffer==="metadata"&&"noNewline"in d.dataset){(e>0||s&&r>=n)&&(u.remove(),d.remove(),i++);continue}if(u.dataset.gutterBuffer==="buffer"&&"contentBuffer"in d.dataset){let p=this.getBufferSize(d.dataset);if(p==null)throw new Error("FileDiff.trimColumnRows: invalid element");if(e>0){let m=Math.min(e,p),f=p-m;f>0?(this.updateBufferSize(u,f),this.updateBufferSize(d,f),i+=m):(u.remove(),d.remove(),i+=p),e-=m,e===0&&f===0&&(a=!0)}else if(s){let m=r,f=r+p-1;if(n<=m)u.remove(),d.remove(),i+=p;else if(n<=f){let h=f-n+1,x=p-h;this.updateBufferSize(u,x),this.updateBufferSize(d,x),i+=h}}r+=p;continue}throw console.error({gutterElement:u,contentElement:d}),new Error("FileDiff.trimColumnRows: unknown row elements")}return i}trimColumns({columns:t,diffStyle:e,overlapEnd:n,overlapStart:r,previousStart:i,trimEnd:o,trimStart:a}){let s=Math.max(0,r-i),l=n-i;if(l<0)throw new Error("FileDiff.trimColumns: overlap ends before previous");let c=a>0,u=o>0;if(!c&&!u)return 0;let d=c?s:0,p=u?l:-1;if(e==="unified"&&!Array.isArray(t))return this.trimColumnRows(t,d,p);if(e==="split"&&Array.isArray(t)){let m=this.trimColumnRows(t[0],d,p),f=this.trimColumnRows(t[1],d,p);if(t[0]!=null&&t[1]!=null&&m!==f)throw new Error("FileDiff.trimColumns: split columns out of sync");return t[0]!=null?m:f}else throw console.error({diffStyle:e,columns:t}),new Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(t){let e=Number.parseInt(t?.bufferSize??"",10);return Number.isNaN(e)?void 0:e}updateBufferSize(t,e){t.dataset.bufferSize=`${e}`,t.style.setProperty("grid-row",`span ${e}`),t.style.setProperty("min-height",`calc(${e} * 1lh)`)}getCodeColumns(t,e,n,r){function i(o){if(o==null)return;let a=o.children[0],s=o.children[1];if(!(!(a instanceof HTMLElement)||!(s instanceof HTMLElement)||a.dataset.gutter==null||s.dataset.content==null))return{gutter:a,content:s}}if(t==="unified")return i(e);{let o=i(n),a=i(r);return o!=null||a!=null?[o,a]:void 0}}applyBuffers(t,e){if(e==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}e.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",t.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${e.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),e.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",t.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${e.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyPreNodeAttributes(t,{additionsContentAST:e,deletionsContentAST:n,totalLines:r},i){let{diffIndicators:o="bars",disableBackground:a=!1,disableLineNumbers:s=!1,overflow:l="scroll",diffStyle:c="split"}=this.options,u={type:"diff",diffIndicators:o,disableBackground:a,disableLineNumbers:s,overflow:l,split:c==="unified"?!1:e!=null&&n!=null,totalLines:r,customProperties:i};gk(u,this.appliedPreAttributes)||(Sk(t,u),this.appliedPreAttributes=u)}applyErrorToDOM(t,e){this.cleanupErrorWrapper(),this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;let n=e.shadowRoot??e.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",n.appendChild(this.errorWrapper);let r=document.createElement("div");r.dataset.errorMessage="",r.innerText=t.message,this.errorWrapper.appendChild(r);let i=document.createElement("pre");i.dataset.errorStack="",i.innerText=t.stack??"No Error Stack",this.errorWrapper.appendChild(i)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function EIe({fileDiff:t,oldFile:e,newFile:n}){return t!=null&&t.hunks.length>0||e!=null||n!=null}function TIe({fileDiff:t,oldFile:e,newFile:n}){return t!=null||e!=null||n!=null}function RIe(t,e,n=!1){return!n&&t==null&&e}function AIe(t,e,n=!1){return t==null&&e&&!n}function Lre(t){if(!(t==null||t.type!=="element"))return t.children??[]}function Mre({fileDiff:t,metrics:e,disableFileHeader:n,hunkSeparators:r,expandUnchanged:i,expandedHunks:o,collapsedContextThreshold:a}){let s=t1(e,n),l=s,c=i?!0:o,u=t.hunks.length-1;for(let d=0;d<t.hunks.length;d++){let p=t.hunks[d];if(p==null)throw new Error("computeEstimatedDiffHeights: invalid hunk index");let m=n1({isPartial:t.isPartial,rangeSize:p.collapsedBefore,expandedHunks:c,hunkIndex:d,collapsedContextThreshold:a}),f=(m.fromStart+m.fromEnd)*e.lineHeight;if(s+=f,l+=f,m.collapsedLines>0){let g=_0({type:r,metrics:e,hunkIndex:d,hunkSpecs:p.hunkSpecs})?.totalHeight??0;s+=g,l+=g}s+=p.splitLineCount*e.lineHeight,l+=p.unifiedLineCount*e.lineHeight;let h=$Ie(p);s+=h.split*e.lineHeight,l+=h.unified*e.lineHeight;let x=d===u?r1({fileDiff:t,hunkIndex:d,expandedHunks:c,collapsedContextThreshold:a,errorPrefix:"computeEstimatedDiffHeights"}):void 0;if(x!=null){let g=(x.fromStart+x.fromEnd)*e.lineHeight;if(s+=g,l+=g,x.collapsedLines>0){let y=S0({type:r,metrics:e})?.totalHeight??0;s+=y,l+=y}}}if(t.hunks.length>0){let d=Tk(e);s+=d,l+=d}return{splitHeight:s,unifiedHeight:l}}function $Ie(t){if(!t.noEOFCRAdditions&&!t.noEOFCRDeletions)return{split:0,unified:0};let e=t.hunkContent.at(-1);if(e==null)return{split:0,unified:0};if(e.type==="context"){let n=e.lines>0?1:0;return{split:n,unified:n}}return IIe(t,e)}function IIe(t,e){let n=(e.deletions>0&&t.noEOFCRDeletions?1:0)+(e.additions>0&&t.noEOFCRAdditions?1:0),r=e.deletions>0&&t.noEOFCRDeletions,i=e.additions>0&&t.noEOFCRAdditions;return{split:r||i?1:0,unified:n}}var DP=5e3,NIe=-1,Rre=class extends Dk{__id=`little-virtualized-file-diff:${++NIe}`;top;height=0;metrics;cache={heightDeltas:new Map,measuredHeightDeltaTotal:0,estimatedSplitHeight:void 0,estimatedUnifiedHeight:void 0,checkpoints:[],totalLines:0};isVisible=!1;isSetup=!1;virtualizer;layoutDirty=!0;forceRenderOverride;currentCollapsed;constructor(t,e,n,r,i=!1){super(t,r,i),this.virtualizer=e,this.metrics=Ek(n)}setMetrics(t,e=!1){let n=Ek(t);!e&&l7(this.metrics,n)||(this.metrics=n,this.resetLayoutCache({includeEstimatedHeights:!0}))}getLineHeight(t,e=!1){return this.getEstimatedLineHeight(e)+(this.cache.heightDeltas.get(t)??0)}getEstimatedLineHeight(t=!1){let e=t?2:1;return this.metrics.lineHeight*e}setOptions(t){if(this.isAdvancedMode())throw new Error("VirtualizedFileDiff.setOptions cannot be used inside CodeView. Update CodeView options instead.");if(t==null)return;let{options:e}=this,n=!nv(e,t),r=n&&FIe(e,t);super.setOptions(t),r&&this.resetLayoutCache({forceSimpleRecompute:!0,includeEstimatedHeights:BIe(e,t)}),n&&(this.forceRenderOverride=!0),n&&this.isSimpleMode()&&this.virtualizer.instanceChanged(this,r)}setThemeType(t){if(this.isAdvancedMode())throw new Error("VirtualizedFileDiff.setThemeType cannot be used inside CodeView. Update CodeView options instead.");super.setThemeType(t)}resetLayoutCache({forceSimpleRecompute:t=!1,includeEstimatedHeights:e=!1}={}){this.layoutDirty=!0,this.cache.heightDeltas.size>0&&this.cache.heightDeltas.clear(),this.cache.measuredHeightDeltaTotal!==0&&(this.cache.measuredHeightDeltaTotal=0),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),this.cache.totalLines!==0&&(this.cache.totalLines=0),e&&(this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0),this.renderRange!=null&&(this.renderRange=void 0),t&&this.isSimpleMode()&&this.computeApproximateSize()}reconcileHeights(){let t=!1,{overflow:e="scroll"}=this.options;if(this.fileContainer==null||this.fileDiff==null)return this.height!==0&&(t=!0),this.height=0,t;if(this.top=this.getVirtualizedTop(),e==="scroll"&&this.lineAnnotations.length===0&&!this.isResizeDebuggingEnabled())return t;let n=this.getDiffStyle(),r=n==="split"?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];for(let i of r){if(i==null)continue;let o=i.children[1];if(o instanceof HTMLElement)for(let a of o.children){if(!(a instanceof HTMLElement))continue;let s=a.dataset.lineIndex;if(s==null)continue;let l=qIe(s,n),c=a.getBoundingClientRect().height,u=!1;a.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in a.nextElementSibling.dataset||"noNewline"in a.nextElementSibling.dataset)&&("noNewline"in a.nextElementSibling.dataset&&(u=!0),c+=a.nextElementSibling.getBoundingClientRect().height);let d=this.getEstimatedLineHeight(u),p=this.cache.heightDeltas.get(l)??0,m=c-d;m!==p&&(t=!0,this.cache.measuredHeightDeltaTotal+=m-p,m===0?this.cache.heightDeltas.delete(l):this.cache.heightDeltas.set(l,m))}}return(t||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),t}onRender=t=>this.fileContainer==null?!1:(t&&(this.top=this.getVirtualizedTop()),this.render());prepareCodeViewItem(t,e,n){let r=!Wp(this.fileDiff,t),i=n?.resetDiffLayoutCache===!0||r,o=r||n?.resetDiffLayoutCache===!0&&n.includeEstimatedDiffHeights;n?.metrics!=null&&(this.metrics=Ek(n.metrics),i=!0,o=!0);let{collapsed:a=!1}=this.options;return this.currentCollapsed!==a&&(this.currentCollapsed=a,i=!0),i&&this.resetLayoutCache({includeEstimatedHeights:o}),this.fileDiff=t,this.top=e,this.computeApproximateSize(),this.height}getLinePosition(t,e="additions"){if(this.fileDiff==null)return;let n=this.getLineIndex(t,e);if(n==null)return;let{disableFileHeader:r=!1,expandUnchanged:i=!1,collapsed:o=!1,collapsedContextThreshold:a=Eo}=this.options,s=this.getDiffStyle(),l=this.getHunkSeparatorType(),c=s==="split"?n[1]:n[0];this.approximateLayoutCheckpoints();let u=this.getLayoutCheckpointBeforeLineIndex(c),d=u?.top??t1(this.metrics,r);if(o)return{top:d,height:0};let p;return i1({diff:this.fileDiff,diffStyle:s,startingLine:u?.renderedLineIndex??0,expandedHunks:i?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:a,callback:({hunkIndex:m,hunk:f,collapsedBefore:h,collapsedAfter:x,deletionLine:g,additionLine:y})=>{let b=s==="split"?y?.splitLineIndex??g?.splitLineIndex:y?.unifiedLineIndex??g?.unifiedLineIndex;if(b==null)throw new Error("VirtualizedFileDiff.getLinePosition: missing line index data");if(h>0){let v=_0({type:l,metrics:this.metrics,hunkIndex:m,hunkSpecs:f?.hunkSpecs});if(v!=null){if(d+=v.gapBefore,c>=b-h&&c<b)return p={top:d,height:v.height},!0;d+=v.height+v.gapAfter}}let w=this.getLineHeight(b,(y?.noEOFCR??!1)||(g?.noEOFCR??!1));if(b===c)return p={top:d,height:w},!0;if(d+=w,x>0){let v=S0({type:l,metrics:this.metrics});if(v!=null){if(c>b&&c<=b+x)return p={top:d+v.gapBefore,height:v.height},!0;d+=v.totalHeight}}return!1}}),p}getNumericScrollAnchor(t){if(this.fileDiff==null)return;let{disableFileHeader:e=!1,expandUnchanged:n=!1,collapsed:r=!1,collapsedContextThreshold:i=Eo}=this.options;if(r)return;let o=this.getDiffStyle(),a=this.getHunkSeparatorType();this.approximateLayoutCheckpoints();let s=this.getLayoutCheckpointBeforeTop(t),l=s?.top??t1(this.metrics,e),c;return i1({diff:this.fileDiff,diffStyle:o,startingLine:s?.renderedLineIndex??0,expandedHunks:n?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:i,callback:({hunkIndex:u,hunk:d,collapsedBefore:p,collapsedAfter:m,deletionLine:f,additionLine:h})=>{let x=o==="split"?h?.splitLineIndex??f?.splitLineIndex:h?.unifiedLineIndex??f?.unifiedLineIndex;if(x==null)throw new Error("VirtualizedFileDiff.getNumericScrollAnchor: missing line index data");if(p>0){let y=_0({type:a,metrics:this.metrics,hunkIndex:u,hunkSpecs:d?.hunkSpecs});y!=null&&(l+=y.totalHeight)}if(l>=t&&(f!=null?c={lineNumber:f.lineNumber,side:"deletions",top:l}:h!=null&&(c={lineNumber:h.lineNumber,side:"additions",top:l}),c!=null))return!0;let g=this.getLineHeight(x,(h?.noEOFCR??!1)||(f?.noEOFCR??!1));if(l+=g,m>0){let y=S0({type:a,metrics:this.metrics});y!=null&&(l+=y.totalHeight)}return!1}}),c}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(t){if(this.top==null||this.fileDiff==null)return;if(this.options.collapsed===!0)return{topOffset:this.top,height:this.height};let e=t!=null?this.computeRenderRangeFromWindow(this.fileDiff,this.top,t):this.renderRange;if(e==null)return;let{bufferBefore:n,bufferAfter:r,totalLines:i}=e,o=0;if(i===0){let a=t??this.virtualizer.getWindowSpecs();this.top<a.top&&(o=r)}return{topOffset:this.top+n+o,height:this.height-(n+r)}}cleanUp(t=!1){this.fileContainer!=null&&this.isSimpleMode()&&this.getSimpleVirtualizer()?.disconnect(this.fileContainer),t||this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSetup=!1,super.cleanUp(t)}expandHunk=(t,e,n)=>{this.hunksRenderer.expandHunk(t,e,n),this.forceRenderOverride=!0,this.resetLayoutCache({includeEstimatedHeights:!0}),this.isSimpleMode()&&this.computeApproximateSize(),this.virtualizer.instanceChanged(this,!0)};setVisibility(t){this.isAdvancedMode()||this.fileContainer==null||(this.renderRange=void 0,t&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!t&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!1))}computeApproximateSize(t=!1){let e=this.isResizeDebuggingEnabled();if(!t&&!this.layoutDirty&&!e)return;let n=this.height===0;if(this.height=0,this.cache.checkpoints=[],this.cache.totalLines=0,this.fileDiff==null){this.layoutDirty=!1;return}let{disableFileHeader:r=!1,collapsed:i=!1}=this.options,o=t1(this.metrics,r);if(this.height+=o,i){this.layoutDirty=!1;return}this.height=this.getActiveEstimatedHeight()+this.cache.measuredHeightDeltaTotal,e&&!n&&this.validateComputedHeight(),this.layoutDirty=!1}getActiveEstimatedHeight(){this.ensureEstimatedDiffHeights();let t=this.getDiffStyle()==="split"?this.cache.estimatedSplitHeight:this.cache.estimatedUnifiedHeight;if(t==null)throw new Error("VirtualizedFileDiff.getActiveEstimatedHeight: missing estimated height");return t}ensureEstimatedDiffHeights(){if(this.fileDiff==null){this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0;return}if(this.cache.estimatedSplitHeight!=null&&this.cache.estimatedUnifiedHeight!=null)return;let{disableFileHeader:t=!1,expandUnchanged:e=!1,collapsedContextThreshold:n=Eo}=this.options,{splitHeight:r,unifiedHeight:i}=Mre({fileDiff:this.fileDiff,metrics:this.metrics,disableFileHeader:t,hunkSeparators:this.getHunkSeparatorType(),expandUnchanged:e,expandedHunks:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:n});this.cache.estimatedSplitHeight=r,this.cache.estimatedUnifiedHeight=i}validateComputedHeight(){if(this.fileContainer==null||this.fileDiff==null)return;let t=this.fileContainer.getBoundingClientRect();t.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:this.fileDiff.name,elementHeight:t.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}render({fileContainer:t,oldFile:e,newFile:n,fileDiff:r,forceRender:i=!1,...o}={}){let{forceRenderOverride:a,isSetup:s}=this;if(this.forceRenderOverride=void 0,this.fileDiff??=r??(e!=null&&n!=null?F7(e,n,this.options.parseDiffOptions):void 0),t=this.getOrCreateFileContainer(t),this.fileDiff==null)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;if(s)this.top??=this.getVirtualizedTop();else{this.computeApproximateSize();let d=this.getSimpleVirtualizer();if(this.top??=this.getVirtualizedTop(),this.isAdvancedMode())this.isVisible=!0;else{if(d==null)throw new Error("VirtualizedFileDiff.render: simple virtualizer is not available");d.connect(t,this),this.isVisible=d.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode())return this.renderPlaceholder(this.height);let l=this.virtualizer.getWindowSpecs(),c=this.top??0,u=this.computeRenderRangeFromWindow(this.fileDiff,c,l);return super.render({fileDiff:this.fileDiff,fileContainer:t,renderRange:u,oldFile:e,newFile:n,forceRender:a??i,...o})}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}isSimpleMode(){return this.virtualizer.type==="simple"}isAdvancedMode(){return this.virtualizer.type==="advanced"}getVirtualizedTop(){return this.virtualizer.type==="advanced"?this.virtualizer.getLocalTopForInstance(this):this.fileContainer!=null?this.virtualizer.getOffsetInScrollContainer(this.fileContainer):0}getSimpleVirtualizer(){return this.virtualizer.type==="simple"?this.virtualizer:void 0}isResizeDebuggingEnabled(){return this.getSimpleVirtualizer()?.config.resizeDebugging??!1}getDiffStyle(){return this.options.diffStyle??"split"}getHunkSeparatorType(){return zIe(this.options.hunkSeparators)}approximateLayoutCheckpoints(){if(this.cache.checkpoints.length>0||this.fileDiff==null||this.fileDiff.hunks.length===0||this.options.collapsed===!0)return;let{disableFileHeader:t=!1,expandUnchanged:e=!1,collapsedContextThreshold:n=Eo}=this.options,r=this.fileDiff.hunks.length-1,i=this.getDiffStyle(),o=this.getHunkSeparatorType(),a=e?!0:this.hunksRenderer.getExpandedHunksMap(),s=PIe(this.cache.heightDeltas),l=t1(this.metrics,t),c=0,u=({rowCount:d,startLineIndex:p,preSeparatorHeight:m=0,postSeparatorHeight:f=0,metadataOffsets:h=[]})=>{if(d<=0)return;let x=c,g=c+d,y=jIe(x);for(;y<g;){let b=y-x,w=l+(b>0?m:0)+b*this.metrics.lineHeight+OIe(h,b)*this.metrics.lineHeight+Ere(s,p,p+b);this.cache.checkpoints.push({renderedLineIndex:y,lineIndex:p+b,top:w}),y+=DP}l+=m+d*this.metrics.lineHeight+h.length*this.metrics.lineHeight+Ere(s,p,p+d)+f,c=g};for(let d=0;d<this.fileDiff.hunks.length;d++){let p=this.fileDiff.hunks[d];if(p==null)throw new Error("VirtualizedFileDiff.approximateLayoutCheckpoints: invalid hunk index");let m=n1({isPartial:this.fileDiff.isPartial,rangeSize:p.collapsedBefore,expandedHunks:a,hunkIndex:d,collapsedContextThreshold:n}),f=m.collapsedLines>0?_0({type:o,metrics:this.metrics,hunkIndex:d,hunkSpecs:p.hunkSpecs})?.totalHeight??0:0;u({rowCount:m.fromStart,startLineIndex:(i==="split"?p.splitLineStart:p.unifiedLineStart)-m.rangeSize});let h=f;u({rowCount:m.fromEnd,startLineIndex:(i==="split"?p.splitLineStart:p.unifiedLineStart)-m.fromEnd,preSeparatorHeight:h}),m.fromEnd>0&&(h=0);let x=d===r?r1({fileDiff:this.fileDiff,hunkIndex:d,expandedHunks:a,collapsedContextThreshold:n,errorPrefix:"VirtualizedFileDiff"}):void 0,g=x!=null&&x.collapsedLines>0?S0({type:o,metrics:this.metrics})?.totalHeight??0:0,y=x!=null?x.fromStart+x.fromEnd:0,b=i==="split"?p.splitLineCount:p.unifiedLineCount,w=i==="split"?p.splitLineStart:p.unifiedLineStart;u({rowCount:b,startLineIndex:w,preSeparatorHeight:h,postSeparatorHeight:y===0?g:0,metadataOffsets:DIe({diffStyle:i,hunk:p,rowCount:b})}),x!=null&&y>0&&u({rowCount:y,startLineIndex:w+b,postSeparatorHeight:g})}this.cache.totalLines=c}getLayoutCheckpointBeforeLineIndex(t){if(t<=0||this.cache.checkpoints.length===0)return;let e=0,n=this.cache.checkpoints.length-1,r;for(;e<=n;){let i=e+n>>1,o=this.cache.checkpoints[i];if(o==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");o.lineIndex<=t?(r=o,e=i+1):n=i-1}return r}getLayoutCheckpointBeforeTop(t,e){let n=0,r=this.cache.checkpoints.length-1,i=-1;for(;n<=r;){let o=n+r>>1,a=this.cache.checkpoints[o];if(a==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");a.top<=t?(i=o,n=o+1):r=o-1}if(e==null)return i>=0?this.cache.checkpoints[i]:void 0;for(let o=i;o>=0;o--){let a=this.cache.checkpoints[o];if(a==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");if(a.renderedLineIndex%e===0)return a}}getExpandedLineCount(t,e){let n=0;if(t.isPartial){for(let s of t.hunks)n+=e==="split"?s.splitLineCount:s.unifiedLineCount;return n}let{expandUnchanged:r=!1,collapsedContextThreshold:i=Eo}=this.options,o=r?!0:this.hunksRenderer.getExpandedHunksMap();for(let[s,l]of t.hunks.entries()){let c=e==="split"?l.splitLineCount:l.unifiedLineCount;n+=c;let u=Math.max(l.collapsedBefore,0),{fromStart:d,fromEnd:p,renderAll:m}=n1({isPartial:t.isPartial,rangeSize:u,expandedHunks:o,hunkIndex:s,collapsedContextThreshold:i});u>0&&(n+=m?u:d+p)}let a=r1({fileDiff:t,hunkIndex:t.hunks.length-1,expandedHunks:o,collapsedContextThreshold:i,errorPrefix:"VirtualizedFileDiff"});return a!=null&&(n+=a.fromStart+a.fromEnd),n}computeRenderRangeFromWindow(t,e,{top:n,bottom:r}){let{disableFileHeader:i=!1,expandUnchanged:o=!1,collapsedContextThreshold:a=Eo}=this.options,{hunkLineCount:s,lineHeight:l}=this.metrics,c=this.getDiffStyle(),u=this.getHunkSeparatorType(),d=this.height,p=this.cache.totalLines>0?this.cache.totalLines:this.getExpandedLineCount(t,c),m=t1(this.metrics,i),f=t.hunks.length>0?Tk(this.metrics):0;if(e<n-d||e>r)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:d-m-f};if(p<=s||t.hunks.length===0)return{startingLine:0,totalLines:s,bufferBefore:0,bufferAfter:0};this.approximateLayoutCheckpoints(),p=this.cache.totalLines>0?this.cache.totalLines:p;let h=Math.ceil(Math.max(r-n,0)/l),x=Math.ceil(h/s)*s+s,g=x/s,y=g,b=[],w=(n+r)/2,v=this.getLayoutCheckpointBeforeTop(Math.max(0,n-e-x*l*2),s),k=e+(v?.top??m),_=v?.renderedLineIndex??0,L,S,C;if(i1({diff:t,diffStyle:c,startingLine:v?.renderedLineIndex??0,expandedHunks:o?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:a,callback:({hunkIndex:O,hunk:B,collapsedBefore:P,collapsedAfter:U,deletionLine:G,additionLine:j})=>{let V=j!=null?j.splitLineIndex:G.splitLineIndex,H=j!=null?j.unifiedLineIndex:G.unifiedLineIndex,ne=(j?.noEOFCR??!1)||(G?.noEOFCR??!1),J=(P>0?_0({type:u,metrics:this.metrics,hunkIndex:O,hunkSpecs:B?.hunkSpecs}):void 0)?.totalHeight??0;k+=J;let W=_%s===0,ie=Math.floor(_/s);if(W&&(b[ie]=k-(e+m+J),C!=null)){if(C<=0)return!0;C--}let Z=this.getLineHeight(c==="split"?V:H,ne);return k>n-Z&&k<r&&(L??=ie),S==null&&k+Z>w&&(S=ie),C==null&&k>=r&&W&&(C=y),_++,k+=Z,U>0&&(k+=S0({type:u,metrics:this.metrics})?.totalHeight??0),!1}}),L==null)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:d-m-f};S??=L;let T=Math.round(S-g/2),M=Math.max(0,Math.ceil(p/s)-g),A=Math.max(0,Math.min(T,M)),$=A*s,N=T<0?x+T*s:x,F=b[A]??0,D=A+N/s;return{startingLine:$,totalLines:N,bufferBefore:F,bufferAfter:D<b.length?d-m-b[D]-f:d-(k-e)-f}}};function PIe(t){let e=Array.from(t).sort((o,a)=>o[0]-a[0]),n=[],r=[0],i=0;for(let[o,a]of e)n.push(o),i+=a,r.push(i);return{lineIndexes:n,prefixTotals:r}}function Ere({lineIndexes:t,prefixTotals:e},n,r){if(n>=r||t.length===0)return 0;let i=Tre(t,n);return(e[Tre(t,r)]??0)-(e[i]??0)}function Tre(t,e){let n=0,r=t.length;for(;n<r;){let i=n+r>>1,o=t[i];if(o==null)throw new Error("VirtualizedFileDiff: invalid prefix index");o<e?n=i+1:r=i}return n}function jIe(t){return Math.ceil(t/DP)*DP}function OIe(t,e){let n=0;for(let r of t)r<e&&n++;return n}function DIe({diffStyle:t,hunk:e,rowCount:n}){if(n<=0||!e.noEOFCRAdditions&&!e.noEOFCRDeletions)return[];let r=e.hunkContent.at(-1);if(r==null)return[];if(r.type==="context")return[n-1];let i=Math.max(r.deletions,r.additions),o=r.deletions+r.additions;if(t==="split")return i>0&&(e.noEOFCRAdditions||e.noEOFCRDeletions)?[n-1]:[];let a=[],s=n-o;return r.deletions>0&&e.noEOFCRDeletions&&a.push(s+r.deletions-1),r.additions>0&&e.noEOFCRAdditions&&a.push(n-1),a}function FIe(t,e){return(t.diffStyle??"split")!==(e.diffStyle??"split")||(t.overflow??"scroll")!==(e.overflow??"scroll")||(t.collapsed??!1)!==(e.collapsed??!1)||(t.disableLineNumbers??!1)!==(e.disableLineNumbers??!1)||(t.disableFileHeader??!1)!==(e.disableFileHeader??!1)||(t.diffIndicators??"bars")!==(e.diffIndicators??"bars")||(t.hunkSeparators??"line-info")!==(e.hunkSeparators??"line-info")||(t.expandUnchanged??!1)!==(e.expandUnchanged??!1)||(t.collapsedContextThreshold??Eo)!==(e.collapsedContextThreshold??Eo)||t.unsafeCSS!==e.unsafeCSS}function BIe(t,e){return(t.disableFileHeader??!1)!==(e.disableFileHeader??!1)||(t.hunkSeparators??"line-info")!==(e.hunkSeparators??"line-info")||(t.expandUnchanged??!1)!==(e.expandUnchanged??!1)||(t.collapsedContextThreshold??Eo)!==(e.collapsedContextThreshold??Eo)}function zIe(t){return typeof t=="function"?"custom":t??"line-info"}function qIe(t,e){let[n,r]=t.split(",").map(Number);return e==="split"?r:n}function Are({hunkIndex:t,lineIndex:e,conflictIndex:n}){return`merge-conflict-action-${t}-${e}-${n}`}function $re(t,e){let n=e.hunks[t.hunkIndex];if(n!=null)return{hunkIndex:t.hunkIndex,lineIndex:HIe(n,t.startContentIndex)}}function HIe(t,e){let n=t.unifiedLineStart;for(let r=0;r<e;r++){let i=t.hunkContent[r];n+=i.type==="context"?i.lines:i.deletions+i.additions}return n}function FP(t){let e=[];for(let n of t){let r=Sc.get(n);if(r==null)throw new Error(`getResolvedLanguages: ${n} is not resolved. Please resolve languages before calling getResolvedLanguages`);e.push(r)}return e}function BP(t){for(let e of Array.isArray(t)?t:[t])if(!Sc.has(e))return!1;return!0}async function zP(t){let e=[],n=[];for(let r of t){if(r==="text"||r==="ansi")continue;let i=Xv(r)??Kv(r);"then"in i?n.push(i):e.push(i)}return n.length>0&&await Promise.all(n).then(r=>{for(let i of r){if(i==null)throw new Error("resolvedLanguages: unable to resolve language");e.push(i)}}),e}function qP(t){let e=[];for(let n of t){let r=Bs.get(n);if(r==null)throw new Error(`getAllResolvedThemes: ${n} is unresolved, you must resolve all necessary themes before calling this function`);e.push(r)}return e}async function HP(t){let e=[],n=[];for(let r of t){let i=Jv(r)??Qv(r);"then"in i?n.push(i):e.push(i)}return n.length>0&&await Promise.all(n).then(r=>{for(let i of r)i!=null&&e.push(i)}),e}function H7(t){let e=ore(t);if(e.length!==1)throw console.error(e),new Error("PatchDiff: Provided patch must include only 1 patch, with 1 diff");let{files:n}=e[0];if(n.length!==1)throw console.error(n),new Error("FileDiff: Provided patch must contain exactly 1 file diff");return n[0]}function G7(t,e){return{...t,lang:e}}var pd="cmux-agent-dark",md="cmux-agent-light",go={bg:"#272823",fg:"#f8f8f3",muted:"#a8a9a3",heading:"#b3e053",inlineCode:"#ef9c40",link:"#a783f7",string:"#e4db82",comment:"#8f908a",addition:"#90b345",deletion:"#b4365e",additionLine:"#3b412a",deletionLine:"#422e2e",additionGutter:"#1a1d10",deletionGutter:"#1f1113",separator:"#43443f",line:"#383934",selected:"#32332d"},GP=`var(--acpmux-add, ${go.addition})`,UP=`var(--acpmux-del, ${go.deletion})`,GIe={bg:`var(--agent-page-bg, ${go.bg})`,fg:`var(--agent-text, ${go.fg})`,muted:`var(--agent-muted, ${go.muted})`,line:`var(--agent-border, ${go.line})`,selected:`var(--agent-card-hover, ${go.selected})`,addition:GP,deletion:UP,additionLine:`color-mix(in srgb, ${GP} 20%, transparent)`,deletionLine:`color-mix(in srgb, ${UP} 20%, transparent)`,additionGutter:`color-mix(in srgb, ${GP} 10%, transparent)`,deletionGutter:`color-mix(in srgb, ${UP} 10%, transparent)`,separator:`var(--agent-control, ${go.separator})`},Nre=t=>({fg:`var(--agent-text, ${t.fg})`,keyword:`var(--agent-ansi-5, ${t.keyword})`,fn:`var(--agent-ansi-4, ${t.fn})`,string:`var(--agent-ansi-2, ${t.string})`,number:`var(--agent-ansi-3, ${t.number})`,comment:`var(--agent-soft, ${t.comment})`,added:`var(--agent-ansi-2, ${t.added})`,removed:`var(--agent-ansi-1, ${t.removed})`,heading:`var(--agent-ansi-4, ${t.heading})`,link:`var(--agent-ansi-5, ${t.link})`});function Pre(t,e,n,r){return{name:t,type:e,colors:{"editor.background":"#00000000","editor.foreground":n},fg:n,bg:"#00000000",tokenColors:[{settings:{foreground:r.fg}},{scope:["markup.heading","entity.name.section.markdown","punctuation.definition.heading.markdown"],settings:{foreground:r.heading,fontStyle:"bold"}},{scope:["markup.inline.raw","markup.inline.raw.string.markdown"],settings:{foreground:r.number}},{scope:["markup.underline.link","string.other.link.title.markdown"],settings:{foreground:r.link}},{scope:["comment","punctuation.definition.comment"],settings:{foreground:r.comment}},{scope:["string","string.quoted"],settings:{foreground:r.string}},{scope:["keyword","storage","keyword.control"],settings:{foreground:r.keyword}},{scope:["variable.other","variable.parameter"],settings:{foreground:r.number}},{scope:["constant.numeric","constant.language"],settings:{foreground:r.number}},{scope:["support.function","entity.name.function"],settings:{foreground:r.fn}},{scope:["markup.inserted","punctuation.definition.inserted"],settings:{foreground:r.added}},{scope:["markup.deleted","punctuation.definition.deleted"],settings:{foreground:r.removed}}]}}var UIe=Pre(pd,"dark",go.fg,Nre({fg:go.fg,keyword:go.link,fn:go.heading,string:go.string,number:go.inlineCode,comment:go.comment,added:go.addition,removed:go.deletion,heading:go.heading,link:go.link})),VIe=Pre(md,"light","#24292f",Nre({fg:"#24292f",keyword:"#6f42c1",fn:"#3f7d0f",string:"#0a6b52",number:"#b35900",comment:"#6e7781",added:"#1a7f37",removed:"#cf222e",heading:"#3f7d0f",link:"#6f42c1"}));var Ire=!1;function a1(){Ire||(Ire=!0,Vp(pd,async()=>UIe),Vp(md,async()=>VIe))}var Xr=GIe,ZIe='"SF Mono", SFMono-Regular, ui-monospace, Menlo, monospace',jre='system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif',Jb=` :host { --diffs-font-family: ${ZIe}; --diffs-header-font-family: ${jre}; @@ -406,10 +406,10 @@ ${wV}`,Ore=` mask-image: linear-gradient(to right, transparent 0, #000 var(--cmux-title-lead, 0px), #000 calc(100% - var(--cmux-title-fade, 20px)), transparent 100%); } [data-type="item"] [data-item-section="decoration"] { flex: 0 0 auto; margin-inline-start: auto; padding-inline-start: 6px; } -${vV}`;async function ba(t){try{await navigator.clipboard.writeText(t)}catch{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.append(e),e.select(),document.execCommand("copy"),e.remove()}}var $r=R(qe(),1),nt=R(ee(),1);function ro(t){let e=(0,$r.c)(8),{size:n,box:r,strokeWidth:i,className:o,style:a,fill:s,children:l}=t,c=n===void 0?16:n,u=r===void 0?16:r,d=i===void 0?1.25:i,p=s===void 0?"none":s,m=`0 0 ${u} ${u}`,f;return e[0]!==l||e[1]!==o||e[2]!==p||e[3]!==c||e[4]!==d||e[5]!==a||e[6]!==m?(f=(0,nt.jsx)("svg",{className:o,style:a,width:c,height:c,viewBox:m,fill:p,stroke:"currentColor",strokeWidth:d,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:l}),e[0]=l,e[1]=o,e[2]=p,e[3]=c,e[4]=d,e[5]=a,e[6]=m,e[7]=f):f=e[7],f}var Tc=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M6.25 4.25 10 8l-3.75 3.75"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},Fk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.25 6.25 8 10l3.75-3.75"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},Tl=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("circle",{cx:"8",cy:"8",r:"6"}),r=(0,nt.jsx)("path",{d:"M2 8h12M8 2c-2 2-2.6 4-2.6 6s.6 4 2.6 6M8 2c2 2 2.6 4 2.6 6s-.6 4-2.6 6"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},_0=t=>{let e=(0,$r.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.75"}),r=(0,nt.jsx)("circle",{cx:"6",cy:"6.5",r:"1.1"}),i=(0,nt.jsx)("path",{d:"m3 12 3.5-3.5 2.25 2.25L10.5 9l3 3"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,nt.jsxs)(ro,{...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o},a1=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"5.25",y:"5.25",width:"8.25",height:"8.25",rx:"2"}),r=(0,nt.jsx)("path",{d:"M10.75 5.25V4.5a2 2 0 0 0-2-2H4.5a2 2 0 0 0-2 2v4.25a2 2 0 0 0 2 2h.75"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Jb=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M10.6 3.1a1.6 1.6 0 0 1 2.3 2.3l-7.6 7.6-3 .7.7-3Z"}),r=(0,nt.jsx)("path",{d:"M9.5 4.2l2.3 2.3"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Bk=t=>{let e=(0,$r.c)(6),n,r,i,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("circle",{cx:"4.75",cy:"4.75",r:"2.55"}),r=(0,nt.jsx)("circle",{cx:"11.25",cy:"4.75",r:"2.55"}),i=(0,nt.jsx)("circle",{cx:"4.75",cy:"11.25",r:"2.55"}),o=(0,nt.jsx)("circle",{cx:"11.25",cy:"11.25",r:"2.55"}),e[0]=n,e[1]=r,e[2]=i,e[3]=o):(n=e[0],r=e[1],i=e[2],o=e[3]);let a;return e[4]!==t?(a=(0,nt.jsxs)(ro,{...t,children:[n,r,i,o]}),e[4]=t,e[5]=a):a=e[5],a};var Dre=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M5.5 3.25 3 5.75l2.5 2.5"}),r=(0,nt.jsx)("path",{d:"M3 5.75h6.25a3.75 3.75 0 0 1 0 7.5H7.5"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Fre=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M3.25 8a4.75 4.75 0 1 0 1.4-3.36"}),r=(0,nt.jsx)("path",{d:"M3.25 2.75v2.5h2.5"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},zk=t=>{let e=(0,$r.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"3.25",y:"7",width:"9.5",height:"7",rx:"2"}),r=(0,nt.jsx)("path",{d:"M5.25 7V5.25a2.75 2.75 0 0 1 5.5 0V7"}),i=(0,nt.jsx)("circle",{cx:"8",cy:"10.5",r:".4",fill:"currentColor"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,nt.jsxs)(ro,{...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o};var qk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.2 8.3 6.8 10.9 11.8 5.2"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r};var Bre=t=>{let e=(0,$r.c)(5),{size:n,className:r,style:i}=t,o=n===void 0?16:n,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,nt.jsx)("path",{d:"M8 .2a8 8 0 0 0-2.53 15.6c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.06-.49.06-.49.8.06 1.23.83 1.23.83.71 1.22 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.83-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"}),e[0]=a):a=e[0];let s;return e[1]!==r||e[2]!==o||e[3]!==i?(s=(0,nt.jsx)("svg",{className:r,style:i,width:o,height:o,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:a}),e[1]=r,e[2]=o,e[3]=i,e[4]=s):s=e[4],s},s1=t=>{let e=(0,$r.c)(7),{size:n,className:r,style:i,strokeWidth:o}=t,a=n===void 0?16:n,s=o===void 0?1.5:o,l;e[0]!==s?(l=(0,nt.jsx)("path",{d:"M8 2.75a5.25 5.25 0 1 1-4.55 2.63",stroke:"currentColor",strokeWidth:s,strokeLinecap:"round"}),e[0]=s,e[1]=l):l=e[1];let c;return e[2]!==r||e[3]!==a||e[4]!==i||e[5]!==l?(c=(0,nt.jsx)("svg",{className:r,style:i,width:a,height:a,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:l}),e[2]=r,e[3]=a,e[4]=i,e[5]=l,e[6]=c):c=e[6],c};var Hk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.6 5.2 1.9 8l2.7 2.8M11.4 5.2 14.1 8l-2.7 2.8M9.1 4.6 6.9 11.4"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},zre=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M2.5 8.5h9M9 6l2.5 2.5L9 11M13.5 4.5v8"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r};function WIe(t){let e=(0,$r.c)(11),{slot:n}=t,r=`${n*28} -2 28 28`,i;e[0]!==n?(i=n===0&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("rect",{x:10.6,y:6.2,width:7.8,height:7.6,rx:2.1}),(0,nt.jsx)("rect",{x:7.1,y:9.4,width:7.9,height:7.6,rx:2.1,fill:"var(--cx-main)"})]}),e[0]=n,e[1]=i):i=e[1];let o;e[2]!==n?(o=n===1&&(0,nt.jsx)("path",{d:"M34.1 11.5h4.7l5.8-5.7M40.8 5.7h3.9v4M41.4 13.4l3.4 3.4M44.8 13.1v3.8h-3.9"}),e[2]=n,e[3]=o):o=e[3];let a;e[4]!==n?(a=n===2&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("circle",{cx:68.5,cy:7.4,r:1.15}),(0,nt.jsx)("path",{d:"M68.5 8.6v8M63.2 12.1c0 2.6 2.4 4.5 5.3 4.5s5.3-1.9 5.3-4.5M62.3 13l.9-.9.9.9M72.9 13l.9-.9.9.9"})]}),e[4]=n,e[5]=a):a=e[5];let s;return e[6]!==r||e[7]!==i||e[8]!==o||e[9]!==a?(s=(0,nt.jsxs)("svg",{width:28,height:28,viewBox:r,fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:[i,o,a]}),e[6]=r,e[7]=i,e[8]=o,e[9]=a,e[10]=s):s=e[10],s}var qre=()=>{let t=(0,$r.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,nt.jsx)(WIe,{slot:1}),t[0]=e):e=t[0],e};var Hre=t=>{let e=(0,$r.c)(7),{size:n,className:r,style:i}=t,o=n===void 0?16:n,a,s,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,nt.jsx)("path",{d:"M3.2 2.2 12.8 13.8",stroke:"#b31b1b",strokeWidth:"2.2",strokeLinecap:"round"}),s=(0,nt.jsx)("path",{d:"M12.6 2.4 3.4 13.6",stroke:"#9a9a96",strokeWidth:"1.6",strokeLinecap:"round"}),l=(0,nt.jsx)("path",{d:"M3.2 2.2 8 8",stroke:"#d64b3c",strokeWidth:"1.4",strokeLinecap:"round"}),e[0]=a,e[1]=s,e[2]=l):(a=e[0],s=e[1],l=e[2]);let c;return e[3]!==r||e[4]!==o||e[5]!==i?(c=(0,nt.jsxs)("svg",{className:r,style:i,width:o,height:o,viewBox:"0 0 16 16","aria-hidden":"true",children:[a,s,l]}),e[3]=r,e[4]=o,e[5]=i,e[6]=c):c=e[6],c};var e2=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"2.25",y:"2.25",width:"11.5",height:"11.5",rx:"2.6"}),r=(0,nt.jsx)("path",{d:"M5.2 6.2 7 8 5.2 9.8M8.2 10h2.6"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Gk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M8 4.4c-1.4-1.1-3.3-1.4-5.5-1.1v9.4c2.2-.3 4.1 0 5.5 1.1 1.4-1.1 3.3-1.4 5.5-1.1V3.3c-2.2-.3-4.1 0-5.5 1.1ZM8 4.4v9.4M4.6 3.2v9.3"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{strokeWidth:1.1,...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},t2=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("circle",{cx:"7",cy:"7",r:"4.25"}),r=(0,nt.jsx)("path",{d:"M10.2 10.2 13.5 13.5"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Gre=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M2.25 4.75c0-.83.67-1.5 1.5-1.5h2.6l1.4 1.5h4.5c.83 0 1.5.67 1.5 1.5v5.5c0 .83-.67 1.5-1.5 1.5h-8.5c-.83 0-1.5-.67-1.5-1.5Z"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{strokeWidth:1.1,...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},Uk=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.25 2.25h5l3 3v8.5h-8Z"}),r=(0,nt.jsx)("path",{d:"M9.25 2.25v3h3"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Ure=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"2.25",y:"3.75",width:"11.5",height:"8.5",rx:"1.75"}),r=(0,nt.jsx)("path",{d:"m2.75 4.75 5.25 4 5.25-4"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Vre=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M3.5 8h9M9.25 4.75 12.5 8l-3.25 3.25"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r};function Zre(t){if(t.length>2e5)return!1;let e=1;for(let n=t.indexOf(` +${vV}`;async function ba(t){try{await navigator.clipboard.writeText(t)}catch{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.append(e),e.select(),document.execCommand("copy"),e.remove()}}var $r=R(qe(),1),nt=R(ee(),1);function ro(t){let e=(0,$r.c)(8),{size:n,box:r,strokeWidth:i,className:o,style:a,fill:s,children:l}=t,c=n===void 0?16:n,u=r===void 0?16:r,d=i===void 0?1.25:i,p=s===void 0?"none":s,m=`0 0 ${u} ${u}`,f;return e[0]!==l||e[1]!==o||e[2]!==p||e[3]!==c||e[4]!==d||e[5]!==a||e[6]!==m?(f=(0,nt.jsx)("svg",{className:o,style:a,width:c,height:c,viewBox:m,fill:p,stroke:"currentColor",strokeWidth:d,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:l}),e[0]=l,e[1]=o,e[2]=p,e[3]=c,e[4]=d,e[5]=a,e[6]=m,e[7]=f):f=e[7],f}var Tc=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M6.25 4.25 10 8l-3.75 3.75"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},Fk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.25 6.25 8 10l3.75-3.75"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},Rl=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("circle",{cx:"8",cy:"8",r:"6"}),r=(0,nt.jsx)("path",{d:"M2 8h12M8 2c-2 2-2.6 4-2.6 6s.6 4 2.6 6M8 2c2 2 2.6 4 2.6 6s-.6 4-2.6 6"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},L0=t=>{let e=(0,$r.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"2.5",y:"3",width:"11",height:"10",rx:"1.75"}),r=(0,nt.jsx)("circle",{cx:"6",cy:"6.5",r:"1.1"}),i=(0,nt.jsx)("path",{d:"m3 12 3.5-3.5 2.25 2.25L10.5 9l3 3"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,nt.jsxs)(ro,{...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o},s1=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"5.25",y:"5.25",width:"8.25",height:"8.25",rx:"2"}),r=(0,nt.jsx)("path",{d:"M10.75 5.25V4.5a2 2 0 0 0-2-2H4.5a2 2 0 0 0-2 2v4.25a2 2 0 0 0 2 2h.75"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},e2=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M10.6 3.1a1.6 1.6 0 0 1 2.3 2.3l-7.6 7.6-3 .7.7-3Z"}),r=(0,nt.jsx)("path",{d:"M9.5 4.2l2.3 2.3"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Bk=t=>{let e=(0,$r.c)(6),n,r,i,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("circle",{cx:"4.75",cy:"4.75",r:"2.55"}),r=(0,nt.jsx)("circle",{cx:"11.25",cy:"4.75",r:"2.55"}),i=(0,nt.jsx)("circle",{cx:"4.75",cy:"11.25",r:"2.55"}),o=(0,nt.jsx)("circle",{cx:"11.25",cy:"11.25",r:"2.55"}),e[0]=n,e[1]=r,e[2]=i,e[3]=o):(n=e[0],r=e[1],i=e[2],o=e[3]);let a;return e[4]!==t?(a=(0,nt.jsxs)(ro,{...t,children:[n,r,i,o]}),e[4]=t,e[5]=a):a=e[5],a};var Dre=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M5.5 3.25 3 5.75l2.5 2.5"}),r=(0,nt.jsx)("path",{d:"M3 5.75h6.25a3.75 3.75 0 0 1 0 7.5H7.5"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Fre=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M3.25 8a4.75 4.75 0 1 0 1.4-3.36"}),r=(0,nt.jsx)("path",{d:"M3.25 2.75v2.5h2.5"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},zk=t=>{let e=(0,$r.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"3.25",y:"7",width:"9.5",height:"7",rx:"2"}),r=(0,nt.jsx)("path",{d:"M5.25 7V5.25a2.75 2.75 0 0 1 5.5 0V7"}),i=(0,nt.jsx)("circle",{cx:"8",cy:"10.5",r:".4",fill:"currentColor"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,nt.jsxs)(ro,{...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o};var qk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.2 8.3 6.8 10.9 11.8 5.2"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r};var Bre=t=>{let e=(0,$r.c)(5),{size:n,className:r,style:i}=t,o=n===void 0?16:n,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,nt.jsx)("path",{d:"M8 .2a8 8 0 0 0-2.53 15.6c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.06-.49.06-.49.8.06 1.23.83 1.23.83.71 1.22 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.83-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.03 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 .2Z"}),e[0]=a):a=e[0];let s;return e[1]!==r||e[2]!==o||e[3]!==i?(s=(0,nt.jsx)("svg",{className:r,style:i,width:o,height:o,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:a}),e[1]=r,e[2]=o,e[3]=i,e[4]=s):s=e[4],s},l1=t=>{let e=(0,$r.c)(7),{size:n,className:r,style:i,strokeWidth:o}=t,a=n===void 0?16:n,s=o===void 0?1.5:o,l;e[0]!==s?(l=(0,nt.jsx)("path",{d:"M8 2.75a5.25 5.25 0 1 1-4.55 2.63",stroke:"currentColor",strokeWidth:s,strokeLinecap:"round"}),e[0]=s,e[1]=l):l=e[1];let c;return e[2]!==r||e[3]!==a||e[4]!==i||e[5]!==l?(c=(0,nt.jsx)("svg",{className:r,style:i,width:a,height:a,viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:l}),e[2]=r,e[3]=a,e[4]=i,e[5]=l,e[6]=c):c=e[6],c};var Hk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.6 5.2 1.9 8l2.7 2.8M11.4 5.2 14.1 8l-2.7 2.8M9.1 4.6 6.9 11.4"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},zre=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M2.5 8.5h9M9 6l2.5 2.5L9 11M13.5 4.5v8"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r};function WIe(t){let e=(0,$r.c)(11),{slot:n}=t,r=`${n*28} -2 28 28`,i;e[0]!==n?(i=n===0&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("rect",{x:10.6,y:6.2,width:7.8,height:7.6,rx:2.1}),(0,nt.jsx)("rect",{x:7.1,y:9.4,width:7.9,height:7.6,rx:2.1,fill:"var(--cx-main)"})]}),e[0]=n,e[1]=i):i=e[1];let o;e[2]!==n?(o=n===1&&(0,nt.jsx)("path",{d:"M34.1 11.5h4.7l5.8-5.7M40.8 5.7h3.9v4M41.4 13.4l3.4 3.4M44.8 13.1v3.8h-3.9"}),e[2]=n,e[3]=o):o=e[3];let a;e[4]!==n?(a=n===2&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("circle",{cx:68.5,cy:7.4,r:1.15}),(0,nt.jsx)("path",{d:"M68.5 8.6v8M63.2 12.1c0 2.6 2.4 4.5 5.3 4.5s5.3-1.9 5.3-4.5M62.3 13l.9-.9.9.9M72.9 13l.9-.9.9.9"})]}),e[4]=n,e[5]=a):a=e[5];let s;return e[6]!==r||e[7]!==i||e[8]!==o||e[9]!==a?(s=(0,nt.jsxs)("svg",{width:28,height:28,viewBox:r,fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:[i,o,a]}),e[6]=r,e[7]=i,e[8]=o,e[9]=a,e[10]=s):s=e[10],s}var qre=()=>{let t=(0,$r.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,nt.jsx)(WIe,{slot:1}),t[0]=e):e=t[0],e};var Hre=t=>{let e=(0,$r.c)(7),{size:n,className:r,style:i}=t,o=n===void 0?16:n,a,s,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,nt.jsx)("path",{d:"M3.2 2.2 12.8 13.8",stroke:"#b31b1b",strokeWidth:"2.2",strokeLinecap:"round"}),s=(0,nt.jsx)("path",{d:"M12.6 2.4 3.4 13.6",stroke:"#9a9a96",strokeWidth:"1.6",strokeLinecap:"round"}),l=(0,nt.jsx)("path",{d:"M3.2 2.2 8 8",stroke:"#d64b3c",strokeWidth:"1.4",strokeLinecap:"round"}),e[0]=a,e[1]=s,e[2]=l):(a=e[0],s=e[1],l=e[2]);let c;return e[3]!==r||e[4]!==o||e[5]!==i?(c=(0,nt.jsxs)("svg",{className:r,style:i,width:o,height:o,viewBox:"0 0 16 16","aria-hidden":"true",children:[a,s,l]}),e[3]=r,e[4]=o,e[5]=i,e[6]=c):c=e[6],c};var t2=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"2.25",y:"2.25",width:"11.5",height:"11.5",rx:"2.6"}),r=(0,nt.jsx)("path",{d:"M5.2 6.2 7 8 5.2 9.8M8.2 10h2.6"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Gk=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M8 4.4c-1.4-1.1-3.3-1.4-5.5-1.1v9.4c2.2-.3 4.1 0 5.5 1.1 1.4-1.1 3.3-1.4 5.5-1.1V3.3c-2.2-.3-4.1 0-5.5 1.1ZM8 4.4v9.4M4.6 3.2v9.3"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{strokeWidth:1.1,...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},n2=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("circle",{cx:"7",cy:"7",r:"4.25"}),r=(0,nt.jsx)("path",{d:"M10.2 10.2 13.5 13.5"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Gre=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M2.25 4.75c0-.83.67-1.5 1.5-1.5h2.6l1.4 1.5h4.5c.83 0 1.5.67 1.5 1.5v5.5c0 .83-.67 1.5-1.5 1.5h-8.5c-.83 0-1.5-.67-1.5-1.5Z"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{strokeWidth:1.1,...t,children:n}),e[1]=t,e[2]=r):r=e[2],r},Uk=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M4.25 2.25h5l3 3v8.5h-8Z"}),r=(0,nt.jsx)("path",{d:"M9.25 2.25v3h3"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Ure=t=>{let e=(0,$r.c)(4),n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("rect",{x:"2.25",y:"3.75",width:"11.5",height:"8.5",rx:"1.75"}),r=(0,nt.jsx)("path",{d:"m2.75 4.75 5.25 4 5.25-4"}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let i;return e[2]!==t?(i=(0,nt.jsxs)(ro,{strokeWidth:1.1,...t,children:[n,r]}),e[2]=t,e[3]=i):i=e[3],i},Vre=t=>{let e=(0,$r.c)(3),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,nt.jsx)("path",{d:"M3.5 8h9M9.25 4.75 12.5 8l-3.25 3.25"}),e[0]=n):n=e[0];let r;return e[1]!==t?(r=(0,nt.jsx)(ro,{...t,children:n}),e[1]=t,e[2]=r):r=e[2],r};function Zre(t){if(t.length>2e5)return!1;let e=1;for(let n=t.indexOf(` `);n>=0;n=t.indexOf(` -`,n+1))if(++e>2e3)return!1;return!0}var GP=R(Kre(),1),Zk=Symbol("IGNORE_RESPONSE"),HP=class extends Error{constructor(){super("WorkerPoolManager: operation canceled because the pool terminated")}},UP=class{highlighter;preferredHighlighter;renderOptions;renderOptionsRequestVersion=0;renderOptionsVersion=0;initialized=!1;workers=[];queuedTasks=[];queuedTaskByInstance=new Map;taskByHighlightKey=new Map;activeTaskById=new Map;activeRequestByInstance=new Map;nextRequestId=0;themeSubscribers=new Set;workersFailed=!1;statSubscribers=new Set;fileCache;diffCache;_queuedBroadcast;lifecycleGeneration=0;constructor(t,{langs:e,theme:n=nr,useTokenTransformer:r=!1,lineDiffType:i="word-alt",maxLineDiffLength:o=1e3,tokenizeMaxLineLength:a=1e3,preferredHighlighter:s="shiki-js"}){this.options=t,this.preferredHighlighter=s,this.renderOptions={theme:n,useTokenTransformer:r,lineDiffType:i,maxLineDiffLength:o,tokenizeMaxLineLength:a},this.fileCache=new GP.default.LRUMap(t.totalASTLRUCacheSize??100),this.diffCache=new GP.default.LRUMap(t.totalASTLRUCacheSize??100),this.queueInitialization(e)}isWorkingPool(){return!this.workersFailed}getFileResultCache(t){return t.cacheKey!=null?this.fileCache.get(t.cacheKey):void 0}getDiffResultCache(t){return t.cacheKey!=null?this.diffCache.get(t.cacheKey):void 0}inspectCaches(){let{fileCache:t,diffCache:e}=this;return{fileCache:t,diffCache:e}}evictFileFromCache(t){try{return this.fileCache.delete(t)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(t){try{return this.diffCache.delete(t)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:t=nr,useTokenTransformer:e=!1,lineDiffType:n="word-alt",maxLineDiffLength:r=1e3,tokenizeMaxLineLength:i=1e3}){let{lifecycleGeneration:o}=this,a=++this.renderOptionsRequestVersion,s=()=>this.isCurrentLifecycle(o)&&this.renderOptionsRequestVersion===a;try{let l={theme:t,useTokenTransformer:e,lineDiffType:n,maxLineDiffLength:r,tokenizeMaxLineLength:i};if(this.isInitialized()||await this.initialize(),!s()||yu(l,this.renderOptions))return;let c=Zp(t),u=[];if(Cc(l.theme,this.renderOptions.theme)||(N7(c)?u=FP(c):u=await BP(c)),!s())return;if(this.highlighter!=null)I7(u,this.highlighter);else{let p=await y0({themes:c,langs:["text"],preferredHighlighter:this.preferredHighlighter});if(!s())return;this.highlighter=p}let d=this.setRenderOptionsOnWorkers(l,u);this.renderOptions=l,this.renderOptionsVersion++,this.diffCache.clear(),this.fileCache.clear(),this.invalidateRenderTasks();for(let p of this.themeSubscribers)p.onThemeChange();await d}catch(l){if(l instanceof HP||!s())return;throw l}}getFileRenderOptions(){let{tokenizeMaxLineLength:t,theme:e,useTokenTransformer:n}=this.renderOptions;return{theme:e,useTokenTransformer:n,tokenizeMaxLineLength:t}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(t,e){if(this.workersFailed)return;this.isInitialized()||await this.initialize();let n=[];for(let r of this.workers){if(!r.initialized)throw console.log({managedWorker:r}),new Error("setRenderOptionsOnWorkers: Somehow we have an uninitialized worker");n.push(new Promise((i,o)=>{let a=this.generateRequestId(),s={type:"set-render-options",id:a,request:{type:"set-render-options",id:a,renderOptions:t,resolvedThemes:e},resolve:i,reject:o,requestStart:Date.now()};this.activeTaskById.set(a,s),r.pendingSetupRequestId=a,r.worker.postMessage(s.request)}))}await Promise.all(n)}subscribeToThemeChanges(t){return this.themeSubscribers.add(t),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(t),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(t){this.themeSubscribers.delete(t),this.queueBroadcastStateChanges()}subscribeToStatChanges(t){return this.statSubscribers.add(t),t(this.getStats()),()=>{this.statSubscribers.delete(t)}}queueBroadcastStateChanges(){this._queuedBroadcast==null&&(this._queuedBroadcast=requestAnimationFrame(this._broadcastStateChanges))}_broadcastStateChanges=()=>{this._queuedBroadcast!=null&&(cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0);let t=this.getStats();for(let e of this.statSubscribers)e(t)};cleanUpTasks(t){this.detachInstanceFromQueuedTasks(t);let e=this.activeRequestByInstance.get(t);if(e!=null){let n=this.activeTaskById.get(e);S0(n)?(this.detachInstanceFromRenderTask(n,t),!n.primeCache&&n.instances.size===0&&this.removeActiveTask(n)):this.activeTaskById.delete(e)}this.activeRequestByInstance.delete(t),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(t=[]){if(this.initialized!==!0)if(this.initialized===!1){let{lifecycleGeneration:e}=this;this.initialized=new Promise((n,r)=>{(async()=>{try{let i=Zp(this.renderOptions.theme),o=[];if(N7(i)?o=FP(i):o=await BP(i),!this.isCurrentLifecycle(e)){n();return}let a=[];if(OP(t)?a=jP(t):a=await DP(t),!this.isCurrentLifecycle(e)){n();return}let[s]=await Promise.all([y0({themes:i,langs:["text",...t],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(o,a)]);if(!this.isCurrentLifecycle(e)){this.terminateWorkers(),n();return}this.highlighter=s,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),n()}catch(i){if(i instanceof HP||!this.isCurrentLifecycle(e)){n();return}this.initialized=!1,this.workersFailed=!0,this.queueBroadcastStateChanges(),r(i)}})()}),this.queueBroadcastStateChanges()}else return this.initialized}async initializeWorkers(t,e){this.workersFailed=!1;let n=[],r=ik(),i=r>0?ok():void 0;this.workers.length>0&&this.terminateWorkers();for(let o=0;o<(this.options.poolSize??8);o++){let a=this.options.workerFactory(),s={worker:a,requestId:void 0,pendingSetupRequestId:void 0,initialized:!1,langs:new Set(["text",...e.map(({name:l})=>l)]),customExtensionsVersion:0};a.addEventListener("message",l=>{this.handleWorkerMessage(s,l.data)}),a.addEventListener("error",l=>console.error("Worker error:",l,s)),this.workers.push(s),n.push(new Promise((l,c)=>{let u=this.generateRequestId(),d={type:"initialize",id:u,request:{type:"initialize",id:u,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:t,resolvedLanguages:e,customExtensionsVersion:i!=null?r:void 0,customExtensionMap:i},resolve(){s.initialized=!0,l()},reject:c,requestStart:Date.now()};this.activeTaskById.set(u,d),this.executeTask(s,d)}))}await Promise.all(n)}drainQueue=()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.queuedTasks.length===0)){for(let t=0;t<this.queuedTasks.length;){let e=this.queuedTasks[t];if(this.hasActiveRequest(e)){t++;continue}let n=Xre(e),r=this.getAvailableWorker(n);if(r==null)break;this.queuedTasks.splice(t,1),this.assignWorkerToTask(e,r),this.resolveLanguagesAndExecuteTask(r,e,n)}this.queueBroadcastStateChanges()}};highlightFileAST(t,e){let n=this.getFileResultCache(e);Qf(e)||n!=null&&cd(n.options,this.getFileRenderOptions())||this.hasMatchingFileInstanceTask(t,e)||this.submitTask(t,{type:"file",file:e})}primeFileHighlightCache(t){if(t.cacheKey==null){console.warn(`WorkerPoolManager.primeFileHighlightCache: priming highlight cache requires file.cacheKey; skipping "${t.name}".`);return}let e=this.getFileResultCache(t),n=this.getFileHighlightKey(t);if(n==null||Qf(t)||e!=null&&cd(e.options,this.getFileRenderOptions()))return;let r=this.getTaskByHighlightKey(n);r!=null?r.primeCache=!0:this.submitCacheTask({type:"file",file:t},n)}getPlainFileAST(t,e,n,r){if(this.highlighter==null){this.queueInitialization();return}return pk(t,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:e,totalLines:n,lines:r})}highlightDiffAST(t,e){let n=this.getDiffResultCache(e);i1(e)||n!=null&&yu(n.options,this.getDiffRenderOptions())||this.hasMatchingDiffInstanceTask(t,e)||this.submitTask(t,{type:"diff",diff:e})}primeDiffHighlightCache(t){if(t.cacheKey==null){console.warn(`WorkerPoolManager.primeDiffHighlightCache: priming highlight cache requires diff.cacheKey; skipping "${t.prevName??t.name}" -> "${t.name}".`);return}let e=this.getDiffResultCache(t),n=this.getDiffHighlightKey(t);if(n==null||i1(t)||e!=null&&yu(e.options,this.getDiffRenderOptions()))return;let r=this.getTaskByHighlightKey(n);r!=null?r.primeCache=!0:this.submitCacheTask({type:"diff",diff:t},n)}getPlainDiffAST(t,e,n,r,i){return this.highlighter!=null?jk(t,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:e,totalLines:n,expandedHunks:r,collapsedContextThreshold:i}):void 0}terminate(){this.lifecycleGeneration++,this.cancelActiveWorkerTasks(),this.terminateWorkers(),this.fileCache.clear(),this.diffCache.clear(),this.activeRequestByInstance.clear(),this.queuedTasks.length=0,this.queuedTaskByInstance.clear(),this.taskByHighlightKey.clear(),this.activeTaskById.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}isCurrentLifecycle(t){return this.lifecycleGeneration===t}queueInitialization(t){this.initialize(t).catch(e=>{console.error(e)})}cancelActiveWorkerTasks(){let t=new HP;for(let e of this.activeTaskById.values())"reject"in e&&e.reject(t)}terminateWorkers(){for(let t of this.workers)t.worker.terminate();this.workers.length=0}getStats(){return{managerState:this.initialized===!1?"waiting":this.initialized!==!0?"initializing":"initialized",totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter(t=>t.requestId!=null||t.pendingSetupRequestId!=null).length,queuedTasks:this.queuedTasks.length,activeTasks:this.activeTaskById.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(t,e){this.initialized===!1&&this.queueInitialization();let n=this.getHighlightKeyForRequest(e),r=n!=null?this.getTaskByHighlightKey(n):void 0;if(r!=null){this.detachInstanceFromQueuedTasks(t,r),this.addInstanceToTask(r,t),this.queueBroadcastStateChanges();return}this.detachInstanceFromQueuedTasks(t);let i=this.generateRequestId(),o=Date.now(),{renderOptionsVersion:a}=this,s=(()=>{switch(e.type){case"file":return{type:"file",id:i,request:{...e,id:i},instances:new Set([t]),primeCache:!1,highlightKey:n,renderOptionsVersion:a,requestStart:o};case"diff":return{type:"diff",id:i,request:{...e,id:i},instances:new Set([t]),primeCache:!1,highlightKey:n,renderOptionsVersion:a,requestStart:o}}})();this.enqueueRenderTask(s,t)}submitCacheTask(t,e){this.initialized===!1&&this.queueInitialization();let n=this.generateRequestId(),r=Date.now(),{renderOptionsVersion:i}=this,o=(()=>{switch(t.type){case"file":return{type:"file",id:n,request:{...t,id:n},instances:new Set,primeCache:!0,highlightKey:e,renderOptionsVersion:i,requestStart:r};case"diff":return{type:"diff",id:n,request:{...t,id:n},instances:new Set,primeCache:!0,highlightKey:e,renderOptionsVersion:i,requestStart:r}}})();this.enqueueRenderTask(o)}enqueueRenderTask(t,e){this.queuedTasks.push(t),e!=null&&this.queuedTaskByInstance.set(e,t),t.highlightKey!=null&&this.taskByHighlightKey.set(t.highlightKey,t),this.queueDrain()}async resolveLanguagesAndExecuteTask(t,e,n){try{let r=n.filter(i=>!t.langs.has(i));if(r.length>0&&(OP(r)?e.request.resolvedLanguages=jP(r):e.request.resolvedLanguages=await DP(r)),!this.activeTaskById.has(e.id)){t.requestId===e.id&&(this.cleanWorkerAndTask(t,e),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain());return}this.executeTask(t,e)}catch{this.cleanWorkerAndTask(t,e),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}}handleWorkerMessage(t,e){let n=this.activeTaskById.get(e.id);try{if(n==null)throw Zk;if(e.type==="error"){let r=new Error(e.error);if(e.stack&&(r.stack=e.stack),"reject"in n)n.reject(r);else if(S0(n))this.notifyHighlightError(n,r);else throw new Error("handleWorkerMessage: unknown task type");throw r}else switch(e.requestType){case"initialize":if(n.type!=="initialize")throw new Error("handleWorkerMessage: task/response dont match");this.syncCustomExtensionVersion(t,n.request),n.resolve();break;case"set-render-options":if(n.type!=="set-render-options")throw new Error("handleWorkerMessage: task/response dont match");n.resolve();break;case"file":{if(n.type!=="file")throw new Error("handleWorkerMessage: task/response dont match");let{result:r,options:i}=e;if(!this.isCurrentRenderTask(n)||!cd(i,this.getFileRenderOptions()))throw Zk;let{request:o}=n;this.syncCustomExtensionVersion(t,o),o.file.cacheKey!=null&&this.fileCache.set(o.file.cacheKey,{result:r,options:i}),this.notifyFileInstances(n,r,i);break}case"diff":{if(n.type!=="diff")throw new Error("handleWorkerMessage: task/response dont match");let{result:r,options:i}=e;if(!this.isCurrentRenderTask(n)||!yu(i,this.getDiffRenderOptions()))throw Zk;let{request:o}=n;this.syncCustomExtensionVersion(t,o),o.diff.cacheKey!=null&&this.diffCache.set(o.diff.cacheKey,{result:r,options:i}),this.notifyDiffInstances(n,r,i);break}}}catch(r){r!==Zk&&console.error(r,n,e)}this.cleanWorkerAndTask(t,n,e.id),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}_queuedDrain;queueDrain(){this._queuedDrain==null&&(this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges())}assignWorkerToTask(t,e){e.requestId=t.id,S0(t)&&(this.clearQueuedInstanceRequests(t),this.trackInstanceRequests(t)),this.activeTaskById.set(t.id,t)}cleanWorkerAndTask(t,e,n=e?.id){t.requestId===n&&(t.requestId=void 0),t.pendingSetupRequestId===n&&(t.pendingSetupRequestId=void 0),e!=null&&(S0(e)&&(this.clearInstanceRequests(e),this.clearHighlightKey(e)),this.activeTaskById.delete(e.id))}executeTask(t,e){KIe(e.request)&&this.maybeAttachCustomExtensions(t,e.request),this.activeTaskById.has(e.id)||this.assignWorkerToTask(e,t);for(let n of Xre(e))t.langs.add(n);try{t.worker.postMessage(e.request)}catch(n){console.error("Failed to post message to worker:",n),S0(e)?this.notifyHighlightError(e,n):"reject"in e&&e.reject(n),this.cleanWorkerAndTask(t,e),this.queuedTasks.length>0&&this.queueDrain()}this.queueBroadcastStateChanges()}maybeAttachCustomExtensions(t,e){if(e.customExtensionsVersion!=null)return;let n=ik();t.customExtensionsVersion>=n||(e.customExtensionsVersion=n,e.customExtensionMap=ok())}syncCustomExtensionVersion(t,e){e.customExtensionsVersion!=null&&(t.customExtensionsVersion=e.customExtensionsVersion)}getAvailableWorker(t){let e;for(let n of this.workers){if(n.requestId!=null||n.pendingSetupRequestId!=null||!n.initialized)continue;if(e=n,t.length===0)break;let r=!0;for(let i of t)if(!n.langs.has(i)){r=!1;break}if(r)break}return e}getFileHighlightKey(t){if(t.cacheKey!=null)return`file:${t.cacheKey}:${this.renderOptionsVersion}`}getDiffHighlightKey(t){if(t.cacheKey!=null)return`diff:${t.cacheKey}:${this.renderOptionsVersion}`}getHighlightKeyForRequest(t){switch(t.type){case"file":return this.getFileHighlightKey(t.file);case"diff":return this.getDiffHighlightKey(t.diff)}}hasActiveRequest(t){for(let e of G7(t))if(this.activeRequestByInstance.has(e))return!0;return!1}addInstanceToTask(t,e){t.type,t.instances.add(e),this.activeTaskById.has(t.id)?this.activeRequestByInstance.set(e,t.id):this.queuedTaskByInstance.set(e,t)}detachInstanceFromQueuedTasks(t,e){let n=this.queuedTaskByInstance.get(t);n==null||n===e||(this.queuedTaskByInstance.delete(t),this.detachInstanceFromRenderTask(n,t),!n.primeCache&&n.instances.size===0&&this.removeQueuedTask(n))}detachInstanceFromRenderTask(t,e){t.type,t.instances.delete(e)}removeQueuedTask(t){let e=this.queuedTasks.indexOf(t);e!==-1&&this.queuedTasks.splice(e,1),this.clearQueuedInstanceRequests(t),this.clearHighlightKey(t)}removeActiveTask(t){this.clearInstanceRequests(t),this.clearHighlightKey(t),this.activeTaskById.delete(t.id)}invalidateRenderTasks(){for(let t=this.queuedTasks.length-1;t>=0;t--){let e=this.queuedTasks[t];e.renderOptionsVersion!==this.renderOptionsVersion&&this.removeQueuedTask(e)}for(let t of Array.from(this.activeTaskById.values()))S0(t)&&t.renderOptionsVersion!==this.renderOptionsVersion&&this.removeActiveTask(t)}clearQueuedInstanceRequests(t){for(let e of G7(t))this.queuedTaskByInstance.get(e)===t&&this.queuedTaskByInstance.delete(e)}clearHighlightKey(t){t.highlightKey!=null&&this.taskByHighlightKey.get(t.highlightKey)===t&&this.taskByHighlightKey.delete(t.highlightKey)}trackInstanceRequests(t){for(let e of G7(t))this.activeRequestByInstance.set(e,t.id)}clearInstanceRequests(t){for(let e of G7(t))this.activeRequestByInstance.get(e)===t.id&&this.activeRequestByInstance.delete(e)}notifyFileInstances(t,e,n){for(let r of t.instances)this.activeRequestByInstance.get(r)===t.id&&r.onHighlightSuccess(t.request.file,e,n)}notifyDiffInstances(t,e,n){for(let r of t.instances)this.activeRequestByInstance.get(r)===t.id&&r.onHighlightSuccess(t.request.diff,e,n)}notifyHighlightError(t,e){for(let n of G7(t))this.activeRequestByInstance.get(n)===t.id&&n.onHighlightError(e)}hasMatchingFileInstanceTask(t,e){for(let n of this.iterateRenderTasks())if(n.type==="file"&&this.isCurrentRenderTask(n)&&n.instances.has(t)&&Ec(e,n.request.file))return!0;return!1}hasMatchingDiffInstanceTask(t,e){for(let n of this.iterateRenderTasks())if(n.type==="diff"&&this.isCurrentRenderTask(n)&&n.instances.has(t)&&Wp(n.request.diff,e))return!0;return!1}getTaskByHighlightKey(t){let e=this.taskByHighlightKey.get(t);return e!=null&&this.isCurrentRenderTask(e)?e:void 0}isCurrentRenderTask(t){return t.renderOptionsVersion===this.renderOptionsVersion}*iterateRenderTasks(){for(let t of this.queuedTasks)yield t;for(let t of this.activeTaskById.values())S0(t)&&(yield t)}generateRequestId(){return`req_${++this.nextRequestId}`}};function KIe(t){return t.type==="initialize"||t.type==="file"||t.type==="diff"}function Xre(t){let e=new Set;if(t.type==="initialize"||t.type==="set-render-options")return[];switch(t.type){case"file":e.add(t.request.file.lang??br(t.request.file.name));break;case"diff":e.add(t.request.diff.lang??br(t.request.diff.name)),e.add(t.request.diff.lang??br(t.request.diff.prevName??"-"));break}return e.delete("text"),Array.from(e)}function S0(t){return t?.type==="file"||t?.type==="diff"}function G7(t){return t.instances}var XIe={setTimeout:(t,e)=>globalThis.setTimeout(t,e),clearTimeout:t=>globalThis.clearTimeout(t)},Wk=class extends EventTarget{constructor(n,r={}){super();this.make=n;this.options=r;this.budget=r.budgetMs??2e3,this.clock=r.clock??XIe,this.start()}make;options;worker;setup=new Map;jobs=new Map;pendingSetup=new Set;answered=!1;failed=!1;budget;clock;start(){let n=this.make();this.worker=n,n.addEventListener("message",r=>{n===this.worker&&this.received(r.data)}),n.addEventListener("error",()=>{n===this.worker&&(this.answered||this.startFailed(),this.dispatchEvent(new Event("error")))})}received(n){if(this.answered||(this.answered=!0,this.options.onReady?.()),n?.id){let r=this.jobs.get(n.id);r&&(this.clock.clearTimeout(r.timer),this.jobs.delete(n.id)),this.pendingSetup.delete(n.id)}this.dispatchEvent(new MessageEvent("message",{data:n}))}startFailed(){for(let n of this.pendingSetup)this.answerError(n,"the highlight worker failed to start");this.pendingSetup.clear(),!this.failed&&(this.failed=!0,this.options.onStartFailure?.("the highlight worker failed to start"))}answerError(n,r){this.dispatchEvent(new MessageEvent("message",{data:{type:"error",id:n,error:r}}))}postMessage(n){let r=n?.id;if(r&&(n.type==="file"||n.type==="diff")){let i=n.file?.name??n.diff?.name??"",o=this.clock.setTimeout(()=>this.expire(r),this.budget);this.jobs.set(r,{name:i,timer:o})}else r&&(n.type==="initialize"||n.type==="set-render-options")&&(this.setup.set(n.type,n),this.pendingSetup.add(r));this.worker.postMessage(n)}expire(n){let r=this.jobs.get(n);if(!r)return;this.jobs.delete(n);for(let o of this.jobs.values())this.clock.clearTimeout(o.timer);let i=[...this.jobs.keys()];this.jobs.clear(),this.worker.terminate(),this.start();for(let o of this.setup.values())this.worker.postMessage(o);this.answerError(n,"highlighting ran past its time budget");for(let o of i)this.answerError(o,"highlighting ran past its time budget");this.options.onTimeout?.(r.name)}terminate(){for(let n of this.jobs.values())this.clock.clearTimeout(n.timer);this.jobs.clear(),this.worker.terminate()}};var YIe="highlight-worker.js",QIe=2;function JIe(t){return t==="cmux-agent:"||t==="cmux-page:"}function eNe(t,e=Worker){return()=>new e(new URL(YIe,t),{type:"module"})}var n2=new Map,U7,Yre=!1,Kk=new Map;function Qre(t,e){return Kk.set(t,e),()=>{Kk.get(t)===e&&Kk.delete(t)}}function tNe(t){let e=eNe(t),n=r=>{typeof document<"u"&&(document.documentElement.dataset.cmuxHighlightWorker=r)};return()=>new Wk(e,{onReady:()=>n("ready"),onTimeout:r=>Kk.get(r)?.(),onStartFailure:r=>{n("failed"),!Yre&&(Yre=!0,console.warn(`agent pane: ${r}; code highlights on the main thread`))}})}function r2(t="word-alt",e="text"){let n=typeof location>"u"?void 0:location,r={pageHref:n?.href??"",document:typeof document>"u"?void 0:document,worker:typeof Worker>"u"?void 0:Worker};if(U7!=null&&(U7.pageHref!==r.pageHref||U7.document!==r.document||U7.worker!==r.worker)){for(let i of n2.values())i?.terminate();n2.clear()}if(U7=r,!n2.has(t))if(!n||typeof Worker>"u"||!JIe(n.protocol))n2.set(t,null);else{o1();let i=e==="text"?[]:[e];n2.set(t,new UP({workerFactory:tNe(n.href),poolSize:QIe},{langs:i,lineDiffType:t,theme:{dark:pd,light:md},tokenizeMaxLineLength:2e3}))}return n2.get(t)??void 0}var ZP=R(qe(),1),i2=R(Q(),1);var Rl=R(ee(),1);function o2(t){let e=(0,ZP.c)(25),{code:n,lang:r,open:i}=t,o=i===void 0?!1:i,a=we(),s,l,c,u,d;if(e[0]!==n||e[1]!==r||e[2]!==o||e[3]!==a){let h=n.split(` -`);o&&h.length>1&&h.at(-1)===""&&h.pop(),u="cv-codeblock cv-codeblock--plain";let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=(0,Rl.jsx)(Hk,{size:17,strokeWidth:1.2}),e[9]=x):x=e[9];let g;e[10]!==r||e[11]!==a?(g=WP(r,a),e[10]=r,e[11]=a,e[12]=g):g=e[12],e[13]!==g?(d=(0,Rl.jsxs)("div",{className:"cv-codeblock__header",children:[x,(0,Rl.jsx)("span",{children:g})]}),e[13]=g,e[14]=d):d=e[14],c="cv-codeblock__body",s="cv-code-plain selectable",l=h.map(nNe),e[0]=n,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d}else s=e[4],l=e[5],c=e[6],u=e[7],d=e[8];let p;e[15]!==s||e[16]!==l?(p=(0,Rl.jsx)("pre",{className:s,children:l}),e[15]=s,e[16]=l,e[17]=p):p=e[17];let m;e[18]!==c||e[19]!==p?(m=(0,Rl.jsx)("div",{className:c,children:p}),e[18]=c,e[19]=p,e[20]=m):m=e[20];let f;return e[21]!==u||e[22]!==d||e[23]!==m?(f=(0,Rl.jsxs)("div",{className:u,children:[d,m]}),e[21]=u,e[22]=d,e[23]=m,e[24]=f):f=e[24],f}function nNe(t,e){return(0,Rl.jsx)("div",{className:"cv-code-plain__line",children:t||"\u200B"},e)}var rNe=1e3;function Jre(t){let e=(0,ZP.c)(15),{code:n,lang:r}=t,[i,o]=(0,i2.useState)("plain"),a=(0,i2.useRef)(null),s,l;e[0]!==i?(s=()=>{if(i!=="plain")return;let f=0,h=performance.now(),x=()=>{a.current?.querySelector("diffs-container")?.shadowRoot?.querySelector("[data-line]")||performance.now()-h>rNe?o(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"done":"fading"):f=requestAnimationFrame(x)};return x(),()=>cancelAnimationFrame(f)},l=[i],e[0]=i,e[1]=s,e[2]=l):(s=e[1],l=e[2]),(0,i2.useLayoutEffect)(s,l);let c=`cv-code-handoff is-${i}`,u;e[3]!==n||e[4]!==r||e[5]!==i?(u=i!=="done"&&(0,Rl.jsx)(o2,{code:n,lang:r}),e[3]=n,e[4]=r,e[5]=i,e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>o("done"),e[7]=d):d=e[7];let p;e[8]!==n||e[9]!==r?(p=(0,Rl.jsx)("div",{className:"cv-code-handoff__real",onAnimationEnd:d,children:(0,Rl.jsx)(Xk,{code:n,lang:r})}),e[8]=n,e[9]=r,e[10]=p):p=e[10];let m;return e[11]!==c||e[12]!==u||e[13]!==p?(m=(0,Rl.jsxs)("div",{ref:a,className:c,children:[u,p]}),e[11]=c,e[12]=u,e[13]=p,e[14]=m):m=e[14],m}var es=R(ee(),1),iNe=`${Qb} +`,n+1))if(++e>2e3)return!1;return!0}var ZP=R(Kre(),1),Zk=Symbol("IGNORE_RESPONSE"),VP=class extends Error{constructor(){super("WorkerPoolManager: operation canceled because the pool terminated")}},WP=class{highlighter;preferredHighlighter;renderOptions;renderOptionsRequestVersion=0;renderOptionsVersion=0;initialized=!1;workers=[];queuedTasks=[];queuedTaskByInstance=new Map;taskByHighlightKey=new Map;activeTaskById=new Map;activeRequestByInstance=new Map;nextRequestId=0;themeSubscribers=new Set;workersFailed=!1;statSubscribers=new Set;fileCache;diffCache;_queuedBroadcast;lifecycleGeneration=0;constructor(t,{langs:e,theme:n=nr,useTokenTransformer:r=!1,lineDiffType:i="word-alt",maxLineDiffLength:o=1e3,tokenizeMaxLineLength:a=1e3,preferredHighlighter:s="shiki-js"}){this.options=t,this.preferredHighlighter=s,this.renderOptions={theme:n,useTokenTransformer:r,lineDiffType:i,maxLineDiffLength:o,tokenizeMaxLineLength:a},this.fileCache=new ZP.default.LRUMap(t.totalASTLRUCacheSize??100),this.diffCache=new ZP.default.LRUMap(t.totalASTLRUCacheSize??100),this.queueInitialization(e)}isWorkingPool(){return!this.workersFailed}getFileResultCache(t){return t.cacheKey!=null?this.fileCache.get(t.cacheKey):void 0}getDiffResultCache(t){return t.cacheKey!=null?this.diffCache.get(t.cacheKey):void 0}inspectCaches(){let{fileCache:t,diffCache:e}=this;return{fileCache:t,diffCache:e}}evictFileFromCache(t){try{return this.fileCache.delete(t)!==void 0}finally{this.queueBroadcastStateChanges()}}evictDiffFromCache(t){try{return this.diffCache.delete(t)!==void 0}finally{this.queueBroadcastStateChanges()}}async setRenderOptions({theme:t=nr,useTokenTransformer:e=!1,lineDiffType:n="word-alt",maxLineDiffLength:r=1e3,tokenizeMaxLineLength:i=1e3}){let{lifecycleGeneration:o}=this,a=++this.renderOptionsRequestVersion,s=()=>this.isCurrentLifecycle(o)&&this.renderOptionsRequestVersion===a;try{let l={theme:t,useTokenTransformer:e,lineDiffType:n,maxLineDiffLength:r,tokenizeMaxLineLength:i};if(this.isInitialized()||await this.initialize(),!s()||yu(l,this.renderOptions))return;let c=Zp(t),u=[];if(Cc(l.theme,this.renderOptions.theme)||(P7(c)?u=qP(c):u=await HP(c)),!s())return;if(this.highlighter!=null)N7(u,this.highlighter);else{let p=await w0({themes:c,langs:["text"],preferredHighlighter:this.preferredHighlighter});if(!s())return;this.highlighter=p}let d=this.setRenderOptionsOnWorkers(l,u);this.renderOptions=l,this.renderOptionsVersion++,this.diffCache.clear(),this.fileCache.clear(),this.invalidateRenderTasks();for(let p of this.themeSubscribers)p.onThemeChange();await d}catch(l){if(l instanceof VP||!s())return;throw l}}getFileRenderOptions(){let{tokenizeMaxLineLength:t,theme:e,useTokenTransformer:n}=this.renderOptions;return{theme:e,useTokenTransformer:n,tokenizeMaxLineLength:t}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(t,e){if(this.workersFailed)return;this.isInitialized()||await this.initialize();let n=[];for(let r of this.workers){if(!r.initialized)throw console.log({managedWorker:r}),new Error("setRenderOptionsOnWorkers: Somehow we have an uninitialized worker");n.push(new Promise((i,o)=>{let a=this.generateRequestId(),s={type:"set-render-options",id:a,request:{type:"set-render-options",id:a,renderOptions:t,resolvedThemes:e},resolve:i,reject:o,requestStart:Date.now()};this.activeTaskById.set(a,s),r.pendingSetupRequestId=a,r.worker.postMessage(s.request)}))}await Promise.all(n)}subscribeToThemeChanges(t){return this.themeSubscribers.add(t),this.queueBroadcastStateChanges(),()=>{this.unsubscribeToThemeChanges(t),this.queueBroadcastStateChanges()}}unsubscribeToThemeChanges(t){this.themeSubscribers.delete(t),this.queueBroadcastStateChanges()}subscribeToStatChanges(t){return this.statSubscribers.add(t),t(this.getStats()),()=>{this.statSubscribers.delete(t)}}queueBroadcastStateChanges(){this._queuedBroadcast==null&&(this._queuedBroadcast=requestAnimationFrame(this._broadcastStateChanges))}_broadcastStateChanges=()=>{this._queuedBroadcast!=null&&(cancelAnimationFrame(this._queuedBroadcast),this._queuedBroadcast=void 0);let t=this.getStats();for(let e of this.statSubscribers)e(t)};cleanUpTasks(t){this.detachInstanceFromQueuedTasks(t);let e=this.activeRequestByInstance.get(t);if(e!=null){let n=this.activeTaskById.get(e);M0(n)?(this.detachInstanceFromRenderTask(n,t),!n.primeCache&&n.instances.size===0&&this.removeActiveTask(n)):this.activeTaskById.delete(e)}this.activeRequestByInstance.delete(t),this.queueBroadcastStateChanges()}isInitialized(){return this.initialized===!0}async initialize(t=[]){if(this.initialized!==!0)if(this.initialized===!1){let{lifecycleGeneration:e}=this;this.initialized=new Promise((n,r)=>{(async()=>{try{let i=Zp(this.renderOptions.theme),o=[];if(P7(i)?o=qP(i):o=await HP(i),!this.isCurrentLifecycle(e)){n();return}let a=[];if(BP(t)?a=FP(t):a=await zP(t),!this.isCurrentLifecycle(e)){n();return}let[s]=await Promise.all([w0({themes:i,langs:["text",...t],preferredHighlighter:this.preferredHighlighter}),this.initializeWorkers(o,a)]);if(!this.isCurrentLifecycle(e)){this.terminateWorkers(),n();return}this.highlighter=s,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),this.queueBroadcastStateChanges(),n()}catch(i){if(i instanceof VP||!this.isCurrentLifecycle(e)){n();return}this.initialized=!1,this.workersFailed=!0,this.queueBroadcastStateChanges(),r(i)}})()}),this.queueBroadcastStateChanges()}else return this.initialized}async initializeWorkers(t,e){this.workersFailed=!1;let n=[],r=ik(),i=r>0?ok():void 0;this.workers.length>0&&this.terminateWorkers();for(let o=0;o<(this.options.poolSize??8);o++){let a=this.options.workerFactory(),s={worker:a,requestId:void 0,pendingSetupRequestId:void 0,initialized:!1,langs:new Set(["text",...e.map(({name:l})=>l)]),customExtensionsVersion:0};a.addEventListener("message",l=>{this.handleWorkerMessage(s,l.data)}),a.addEventListener("error",l=>console.error("Worker error:",l,s)),this.workers.push(s),n.push(new Promise((l,c)=>{let u=this.generateRequestId(),d={type:"initialize",id:u,request:{type:"initialize",id:u,renderOptions:this.renderOptions,preferredHighlighter:this.preferredHighlighter,resolvedThemes:t,resolvedLanguages:e,customExtensionsVersion:i!=null?r:void 0,customExtensionMap:i},resolve(){s.initialized=!0,l()},reject:c,requestStart:Date.now()};this.activeTaskById.set(u,d),this.executeTask(s,d)}))}await Promise.all(n)}drainQueue=()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.queuedTasks.length===0)){for(let t=0;t<this.queuedTasks.length;){let e=this.queuedTasks[t];if(this.hasActiveRequest(e)){t++;continue}let n=Xre(e),r=this.getAvailableWorker(n);if(r==null)break;this.queuedTasks.splice(t,1),this.assignWorkerToTask(e,r),this.resolveLanguagesAndExecuteTask(r,e,n)}this.queueBroadcastStateChanges()}};highlightFileAST(t,e){let n=this.getFileResultCache(e);Jf(e)||n!=null&&cd(n.options,this.getFileRenderOptions())||this.hasMatchingFileInstanceTask(t,e)||this.submitTask(t,{type:"file",file:e})}primeFileHighlightCache(t){if(t.cacheKey==null){console.warn(`WorkerPoolManager.primeFileHighlightCache: priming highlight cache requires file.cacheKey; skipping "${t.name}".`);return}let e=this.getFileResultCache(t),n=this.getFileHighlightKey(t);if(n==null||Jf(t)||e!=null&&cd(e.options,this.getFileRenderOptions()))return;let r=this.getTaskByHighlightKey(n);r!=null?r.primeCache=!0:this.submitCacheTask({type:"file",file:t},n)}getPlainFileAST(t,e,n,r){if(this.highlighter==null){this.queueInitialization();return}return pk(t,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:e,totalLines:n,lines:r})}highlightDiffAST(t,e){let n=this.getDiffResultCache(e);o1(e)||n!=null&&yu(n.options,this.getDiffRenderOptions())||this.hasMatchingDiffInstanceTask(t,e)||this.submitTask(t,{type:"diff",diff:e})}primeDiffHighlightCache(t){if(t.cacheKey==null){console.warn(`WorkerPoolManager.primeDiffHighlightCache: priming highlight cache requires diff.cacheKey; skipping "${t.prevName??t.name}" -> "${t.name}".`);return}let e=this.getDiffResultCache(t),n=this.getDiffHighlightKey(t);if(n==null||o1(t)||e!=null&&yu(e.options,this.getDiffRenderOptions()))return;let r=this.getTaskByHighlightKey(n);r!=null?r.primeCache=!0:this.submitCacheTask({type:"diff",diff:t},n)}getPlainDiffAST(t,e,n,r,i){return this.highlighter!=null?jk(t,this.highlighter,this.renderOptions,{forcePlainText:!0,startingLine:e,totalLines:n,expandedHunks:r,collapsedContextThreshold:i}):void 0}terminate(){this.lifecycleGeneration++,this.cancelActiveWorkerTasks(),this.terminateWorkers(),this.fileCache.clear(),this.diffCache.clear(),this.activeRequestByInstance.clear(),this.queuedTasks.length=0,this.queuedTaskByInstance.clear(),this.taskByHighlightKey.clear(),this.activeTaskById.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1,this.queueBroadcastStateChanges()}isCurrentLifecycle(t){return this.lifecycleGeneration===t}queueInitialization(t){this.initialize(t).catch(e=>{console.error(e)})}cancelActiveWorkerTasks(){let t=new VP;for(let e of this.activeTaskById.values())"reject"in e&&e.reject(t)}terminateWorkers(){for(let t of this.workers)t.worker.terminate();this.workers.length=0}getStats(){return{managerState:this.initialized===!1?"waiting":this.initialized!==!0?"initializing":"initialized",totalWorkers:this.workers.length,workersFailed:this.workersFailed,busyWorkers:this.workers.filter(t=>t.requestId!=null||t.pendingSetupRequestId!=null).length,queuedTasks:this.queuedTasks.length,activeTasks:this.activeTaskById.size,themeSubscribers:this.themeSubscribers.size,fileCacheSize:this.fileCache.size,diffCacheSize:this.diffCache.size}}submitTask(t,e){this.initialized===!1&&this.queueInitialization();let n=this.getHighlightKeyForRequest(e),r=n!=null?this.getTaskByHighlightKey(n):void 0;if(r!=null){this.detachInstanceFromQueuedTasks(t,r),this.addInstanceToTask(r,t),this.queueBroadcastStateChanges();return}this.detachInstanceFromQueuedTasks(t);let i=this.generateRequestId(),o=Date.now(),{renderOptionsVersion:a}=this,s=(()=>{switch(e.type){case"file":return{type:"file",id:i,request:{...e,id:i},instances:new Set([t]),primeCache:!1,highlightKey:n,renderOptionsVersion:a,requestStart:o};case"diff":return{type:"diff",id:i,request:{...e,id:i},instances:new Set([t]),primeCache:!1,highlightKey:n,renderOptionsVersion:a,requestStart:o}}})();this.enqueueRenderTask(s,t)}submitCacheTask(t,e){this.initialized===!1&&this.queueInitialization();let n=this.generateRequestId(),r=Date.now(),{renderOptionsVersion:i}=this,o=(()=>{switch(t.type){case"file":return{type:"file",id:n,request:{...t,id:n},instances:new Set,primeCache:!0,highlightKey:e,renderOptionsVersion:i,requestStart:r};case"diff":return{type:"diff",id:n,request:{...t,id:n},instances:new Set,primeCache:!0,highlightKey:e,renderOptionsVersion:i,requestStart:r}}})();this.enqueueRenderTask(o)}enqueueRenderTask(t,e){this.queuedTasks.push(t),e!=null&&this.queuedTaskByInstance.set(e,t),t.highlightKey!=null&&this.taskByHighlightKey.set(t.highlightKey,t),this.queueDrain()}async resolveLanguagesAndExecuteTask(t,e,n){try{let r=n.filter(i=>!t.langs.has(i));if(r.length>0&&(BP(r)?e.request.resolvedLanguages=FP(r):e.request.resolvedLanguages=await zP(r)),!this.activeTaskById.has(e.id)){t.requestId===e.id&&(this.cleanWorkerAndTask(t,e),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain());return}this.executeTask(t,e)}catch{this.cleanWorkerAndTask(t,e),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}}handleWorkerMessage(t,e){let n=this.activeTaskById.get(e.id);try{if(n==null)throw Zk;if(e.type==="error"){let r=new Error(e.error);if(e.stack&&(r.stack=e.stack),"reject"in n)n.reject(r);else if(M0(n))this.notifyHighlightError(n,r);else throw new Error("handleWorkerMessage: unknown task type");throw r}else switch(e.requestType){case"initialize":if(n.type!=="initialize")throw new Error("handleWorkerMessage: task/response dont match");this.syncCustomExtensionVersion(t,n.request),n.resolve();break;case"set-render-options":if(n.type!=="set-render-options")throw new Error("handleWorkerMessage: task/response dont match");n.resolve();break;case"file":{if(n.type!=="file")throw new Error("handleWorkerMessage: task/response dont match");let{result:r,options:i}=e;if(!this.isCurrentRenderTask(n)||!cd(i,this.getFileRenderOptions()))throw Zk;let{request:o}=n;this.syncCustomExtensionVersion(t,o),o.file.cacheKey!=null&&this.fileCache.set(o.file.cacheKey,{result:r,options:i}),this.notifyFileInstances(n,r,i);break}case"diff":{if(n.type!=="diff")throw new Error("handleWorkerMessage: task/response dont match");let{result:r,options:i}=e;if(!this.isCurrentRenderTask(n)||!yu(i,this.getDiffRenderOptions()))throw Zk;let{request:o}=n;this.syncCustomExtensionVersion(t,o),o.diff.cacheKey!=null&&this.diffCache.set(o.diff.cacheKey,{result:r,options:i}),this.notifyDiffInstances(n,r,i);break}}}catch(r){r!==Zk&&console.error(r,n,e)}this.cleanWorkerAndTask(t,n,e.id),this.queueBroadcastStateChanges(),this.queuedTasks.length>0&&this.queueDrain()}_queuedDrain;queueDrain(){this._queuedDrain==null&&(this._queuedDrain=Promise.resolve().then(this.drainQueue),this.queueBroadcastStateChanges())}assignWorkerToTask(t,e){e.requestId=t.id,M0(t)&&(this.clearQueuedInstanceRequests(t),this.trackInstanceRequests(t)),this.activeTaskById.set(t.id,t)}cleanWorkerAndTask(t,e,n=e?.id){t.requestId===n&&(t.requestId=void 0),t.pendingSetupRequestId===n&&(t.pendingSetupRequestId=void 0),e!=null&&(M0(e)&&(this.clearInstanceRequests(e),this.clearHighlightKey(e)),this.activeTaskById.delete(e.id))}executeTask(t,e){KIe(e.request)&&this.maybeAttachCustomExtensions(t,e.request),this.activeTaskById.has(e.id)||this.assignWorkerToTask(e,t);for(let n of Xre(e))t.langs.add(n);try{t.worker.postMessage(e.request)}catch(n){console.error("Failed to post message to worker:",n),M0(e)?this.notifyHighlightError(e,n):"reject"in e&&e.reject(n),this.cleanWorkerAndTask(t,e),this.queuedTasks.length>0&&this.queueDrain()}this.queueBroadcastStateChanges()}maybeAttachCustomExtensions(t,e){if(e.customExtensionsVersion!=null)return;let n=ik();t.customExtensionsVersion>=n||(e.customExtensionsVersion=n,e.customExtensionMap=ok())}syncCustomExtensionVersion(t,e){e.customExtensionsVersion!=null&&(t.customExtensionsVersion=e.customExtensionsVersion)}getAvailableWorker(t){let e;for(let n of this.workers){if(n.requestId!=null||n.pendingSetupRequestId!=null||!n.initialized)continue;if(e=n,t.length===0)break;let r=!0;for(let i of t)if(!n.langs.has(i)){r=!1;break}if(r)break}return e}getFileHighlightKey(t){if(t.cacheKey!=null)return`file:${t.cacheKey}:${this.renderOptionsVersion}`}getDiffHighlightKey(t){if(t.cacheKey!=null)return`diff:${t.cacheKey}:${this.renderOptionsVersion}`}getHighlightKeyForRequest(t){switch(t.type){case"file":return this.getFileHighlightKey(t.file);case"diff":return this.getDiffHighlightKey(t.diff)}}hasActiveRequest(t){for(let e of U7(t))if(this.activeRequestByInstance.has(e))return!0;return!1}addInstanceToTask(t,e){t.type,t.instances.add(e),this.activeTaskById.has(t.id)?this.activeRequestByInstance.set(e,t.id):this.queuedTaskByInstance.set(e,t)}detachInstanceFromQueuedTasks(t,e){let n=this.queuedTaskByInstance.get(t);n==null||n===e||(this.queuedTaskByInstance.delete(t),this.detachInstanceFromRenderTask(n,t),!n.primeCache&&n.instances.size===0&&this.removeQueuedTask(n))}detachInstanceFromRenderTask(t,e){t.type,t.instances.delete(e)}removeQueuedTask(t){let e=this.queuedTasks.indexOf(t);e!==-1&&this.queuedTasks.splice(e,1),this.clearQueuedInstanceRequests(t),this.clearHighlightKey(t)}removeActiveTask(t){this.clearInstanceRequests(t),this.clearHighlightKey(t),this.activeTaskById.delete(t.id)}invalidateRenderTasks(){for(let t=this.queuedTasks.length-1;t>=0;t--){let e=this.queuedTasks[t];e.renderOptionsVersion!==this.renderOptionsVersion&&this.removeQueuedTask(e)}for(let t of Array.from(this.activeTaskById.values()))M0(t)&&t.renderOptionsVersion!==this.renderOptionsVersion&&this.removeActiveTask(t)}clearQueuedInstanceRequests(t){for(let e of U7(t))this.queuedTaskByInstance.get(e)===t&&this.queuedTaskByInstance.delete(e)}clearHighlightKey(t){t.highlightKey!=null&&this.taskByHighlightKey.get(t.highlightKey)===t&&this.taskByHighlightKey.delete(t.highlightKey)}trackInstanceRequests(t){for(let e of U7(t))this.activeRequestByInstance.set(e,t.id)}clearInstanceRequests(t){for(let e of U7(t))this.activeRequestByInstance.get(e)===t.id&&this.activeRequestByInstance.delete(e)}notifyFileInstances(t,e,n){for(let r of t.instances)this.activeRequestByInstance.get(r)===t.id&&r.onHighlightSuccess(t.request.file,e,n)}notifyDiffInstances(t,e,n){for(let r of t.instances)this.activeRequestByInstance.get(r)===t.id&&r.onHighlightSuccess(t.request.diff,e,n)}notifyHighlightError(t,e){for(let n of U7(t))this.activeRequestByInstance.get(n)===t.id&&n.onHighlightError(e)}hasMatchingFileInstanceTask(t,e){for(let n of this.iterateRenderTasks())if(n.type==="file"&&this.isCurrentRenderTask(n)&&n.instances.has(t)&&Ec(e,n.request.file))return!0;return!1}hasMatchingDiffInstanceTask(t,e){for(let n of this.iterateRenderTasks())if(n.type==="diff"&&this.isCurrentRenderTask(n)&&n.instances.has(t)&&Wp(n.request.diff,e))return!0;return!1}getTaskByHighlightKey(t){let e=this.taskByHighlightKey.get(t);return e!=null&&this.isCurrentRenderTask(e)?e:void 0}isCurrentRenderTask(t){return t.renderOptionsVersion===this.renderOptionsVersion}*iterateRenderTasks(){for(let t of this.queuedTasks)yield t;for(let t of this.activeTaskById.values())M0(t)&&(yield t)}generateRequestId(){return`req_${++this.nextRequestId}`}};function KIe(t){return t.type==="initialize"||t.type==="file"||t.type==="diff"}function Xre(t){let e=new Set;if(t.type==="initialize"||t.type==="set-render-options")return[];switch(t.type){case"file":e.add(t.request.file.lang??br(t.request.file.name));break;case"diff":e.add(t.request.diff.lang??br(t.request.diff.name)),e.add(t.request.diff.lang??br(t.request.diff.prevName??"-"));break}return e.delete("text"),Array.from(e)}function M0(t){return t?.type==="file"||t?.type==="diff"}function U7(t){return t.instances}var XIe={setTimeout:(t,e)=>globalThis.setTimeout(t,e),clearTimeout:t=>globalThis.clearTimeout(t)},Wk=class extends EventTarget{constructor(n,r={}){super();this.make=n;this.options=r;this.budget=r.budgetMs??2e3,this.clock=r.clock??XIe,this.start()}make;options;worker;setup=new Map;jobs=new Map;pendingSetup=new Set;answered=!1;failed=!1;budget;clock;start(){let n=this.make();this.worker=n,n.addEventListener("message",r=>{n===this.worker&&this.received(r.data)}),n.addEventListener("error",()=>{n===this.worker&&(this.answered||this.startFailed(),this.dispatchEvent(new Event("error")))})}received(n){if(this.answered||(this.answered=!0,this.options.onReady?.()),n?.id){let r=this.jobs.get(n.id);r&&(this.clock.clearTimeout(r.timer),this.jobs.delete(n.id)),this.pendingSetup.delete(n.id)}this.dispatchEvent(new MessageEvent("message",{data:n}))}startFailed(){for(let n of this.pendingSetup)this.answerError(n,"the highlight worker failed to start");this.pendingSetup.clear(),!this.failed&&(this.failed=!0,this.options.onStartFailure?.("the highlight worker failed to start"))}answerError(n,r){this.dispatchEvent(new MessageEvent("message",{data:{type:"error",id:n,error:r}}))}postMessage(n){let r=n?.id;if(r&&(n.type==="file"||n.type==="diff")){let i=n.file?.name??n.diff?.name??"",o=this.clock.setTimeout(()=>this.expire(r),this.budget);this.jobs.set(r,{name:i,timer:o})}else r&&(n.type==="initialize"||n.type==="set-render-options")&&(this.setup.set(n.type,n),this.pendingSetup.add(r));this.worker.postMessage(n)}expire(n){let r=this.jobs.get(n);if(!r)return;this.jobs.delete(n);for(let o of this.jobs.values())this.clock.clearTimeout(o.timer);let i=[...this.jobs.keys()];this.jobs.clear(),this.worker.terminate(),this.start();for(let o of this.setup.values())this.worker.postMessage(o);this.answerError(n,"highlighting ran past its time budget");for(let o of i)this.answerError(o,"highlighting ran past its time budget");this.options.onTimeout?.(r.name)}terminate(){for(let n of this.jobs.values())this.clock.clearTimeout(n.timer);this.jobs.clear(),this.worker.terminate()}};var YIe="highlight-worker.js",QIe=2;function JIe(t){return t==="cmux-agent:"||t==="cmux-page:"}function eNe(t,e=Worker){return()=>new e(new URL(YIe,t),{type:"module"})}var r2=new Map,V7,Yre=!1,Kk=new Map;function Qre(t,e){return Kk.set(t,e),()=>{Kk.get(t)===e&&Kk.delete(t)}}function tNe(t){let e=eNe(t),n=r=>{typeof document<"u"&&(document.documentElement.dataset.cmuxHighlightWorker=r)};return()=>new Wk(e,{onReady:()=>n("ready"),onTimeout:r=>Kk.get(r)?.(),onStartFailure:r=>{n("failed"),!Yre&&(Yre=!0,console.warn(`agent pane: ${r}; code highlights on the main thread`))}})}function i2(t="word-alt",e="text"){let n=typeof location>"u"?void 0:location,r={pageHref:n?.href??"",document:typeof document>"u"?void 0:document,worker:typeof Worker>"u"?void 0:Worker};if(V7!=null&&(V7.pageHref!==r.pageHref||V7.document!==r.document||V7.worker!==r.worker)){for(let i of r2.values())i?.terminate();r2.clear()}if(V7=r,!r2.has(t))if(!n||typeof Worker>"u"||!JIe(n.protocol))r2.set(t,null);else{a1();let i=e==="text"?[]:[e];r2.set(t,new WP({workerFactory:tNe(n.href),poolSize:QIe},{langs:i,lineDiffType:t,theme:{dark:pd,light:md},tokenizeMaxLineLength:2e3}))}return r2.get(t)??void 0}var XP=R(qe(),1),o2=R(Q(),1);var Al=R(ee(),1);function a2(t){let e=(0,XP.c)(25),{code:n,lang:r,open:i}=t,o=i===void 0?!1:i,a=ve(),s,l,c,u,d;if(e[0]!==n||e[1]!==r||e[2]!==o||e[3]!==a){let h=n.split(` +`);o&&h.length>1&&h.at(-1)===""&&h.pop(),u="cv-codeblock cv-codeblock--plain";let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=(0,Al.jsx)(Hk,{size:17,strokeWidth:1.2}),e[9]=x):x=e[9];let g;e[10]!==r||e[11]!==a?(g=YP(r,a),e[10]=r,e[11]=a,e[12]=g):g=e[12],e[13]!==g?(d=(0,Al.jsxs)("div",{className:"cv-codeblock__header",children:[x,(0,Al.jsx)("span",{children:g})]}),e[13]=g,e[14]=d):d=e[14],c="cv-codeblock__body",s="cv-code-plain selectable",l=h.map(nNe),e[0]=n,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d}else s=e[4],l=e[5],c=e[6],u=e[7],d=e[8];let p;e[15]!==s||e[16]!==l?(p=(0,Al.jsx)("pre",{className:s,children:l}),e[15]=s,e[16]=l,e[17]=p):p=e[17];let m;e[18]!==c||e[19]!==p?(m=(0,Al.jsx)("div",{className:c,children:p}),e[18]=c,e[19]=p,e[20]=m):m=e[20];let f;return e[21]!==u||e[22]!==d||e[23]!==m?(f=(0,Al.jsxs)("div",{className:u,children:[d,m]}),e[21]=u,e[22]=d,e[23]=m,e[24]=f):f=e[24],f}function nNe(t,e){return(0,Al.jsx)("div",{className:"cv-code-plain__line",children:t||"\u200B"},e)}var rNe=1e3;function Jre(t){let e=(0,XP.c)(15),{code:n,lang:r}=t,[i,o]=(0,o2.useState)("plain"),a=(0,o2.useRef)(null),s,l;e[0]!==i?(s=()=>{if(i!=="plain")return;let f=0,h=performance.now(),x=()=>{a.current?.querySelector("diffs-container")?.shadowRoot?.querySelector("[data-line]")||performance.now()-h>rNe?o(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"done":"fading"):f=requestAnimationFrame(x)};return x(),()=>cancelAnimationFrame(f)},l=[i],e[0]=i,e[1]=s,e[2]=l):(s=e[1],l=e[2]),(0,o2.useLayoutEffect)(s,l);let c=`cv-code-handoff is-${i}`,u;e[3]!==n||e[4]!==r||e[5]!==i?(u=i!=="done"&&(0,Al.jsx)(a2,{code:n,lang:r}),e[3]=n,e[4]=r,e[5]=i,e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>o("done"),e[7]=d):d=e[7];let p;e[8]!==n||e[9]!==r?(p=(0,Al.jsx)("div",{className:"cv-code-handoff__real",onAnimationEnd:d,children:(0,Al.jsx)(Xk,{code:n,lang:r})}),e[8]=n,e[9]=r,e[10]=p):p=e[10];let m;return e[11]!==c||e[12]!==u||e[13]!==p?(m=(0,Al.jsxs)("div",{ref:a,className:c,children:[u,p]}),e[11]=c,e[12]=u,e[13]=p,e[14]=m):m=e[14],m}var es=R(ee(),1),iNe=`${Jb} :host { --diffs-dark-bg: transparent; --diffs-light-bg: transparent; @@ -419,7 +419,7 @@ ${vV}`;async function ba(t){try{await navigator.clipboard.writeText(t)}catch{let } [data-line] > span { top: 0; } pre, code, [data-code], [data-content], [data-line] { background: transparent !important; --diffs-line-bg: transparent; } -`,oNe={python:"Python",py:"Python",json:"JSON",diff:"Diff",ts:"TypeScript",typescript:"TypeScript",js:"JavaScript",javascript:"JavaScript",swift:"Swift",sh:"Shell",bash:"Shell"};function WP(t,e=ve){return t==="text"||t==="txt"?e("code.plainText"):oNe[t]??t}var eie=()=>document.documentElement.dataset.theme==="light"?"light":"dark";function Xk(t){let e=(0,KP.c)(2),n;return e[0]!==t?(n=Zre(t.code)?(0,es.jsx)(aNe,{...t}):(0,es.jsx)(o2,{code:t.code,lang:t.lang??"text"}),e[0]=t,e[1]=n):n=e[1],n}function aNe(t){let e=(0,KP.c)(54),{code:n,lang:r,label:i}=t,o=r===void 0?"text":r,a=we(),s=(0,Al.useRef)(null),l=(0,Al.useRef)(void 0),[c,u]=(0,Al.useState)(!1),[d,p]=(0,Al.useState)(!1),m=`snippet-${(0,Al.useId)()}`,[f,h]=(0,Al.useState)(!1),x,g;e[0]!==m?(x=()=>Qre(m,()=>h(!0)),g=[m],e[0]=m,e[1]=x,e[2]=g):(x=e[1],g=e[2]),(0,Al.useLayoutEffect)(x,g);let y,b;e[3]!==o?(y=()=>{let j=s.current;if(!j)return;o1();let V=new mP({theme:{dark:pd,light:md},themeType:eie(),disableFileHeader:!0,disableLineNumbers:!0,overflow:"scroll",unsafeCSS:iNe,tokenizeMaxLineLength:2e3},r2("word-alt",b0(o)?o:"text"),!0);l.current=V;let H=new MutationObserver(()=>V.setThemeType(eie()));return H.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>{H.disconnect(),l.current=void 0,V.cleanUp(),j.shadowRoot?.replaceChildren()}},b=[o],e[3]=o,e[4]=y,e[5]=b):(y=e[4],b=e[5]),(0,Al.useLayoutEffect)(y,b);let w,v;if(e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==c?(w=()=>{let j=s.current,V=l.current;!j||!V||(V.setOptions({...V.options,overflow:c?"wrap":"scroll"}),V.render({fileContainer:j,file:{name:m,contents:n,lang:b0(o)?o:"text"}}))},v=[n,o,c,m],e[6]=n,e[7]=o,e[8]=m,e[9]=c,e[10]=w,e[11]=v):(w=e[10],v=e[11]),(0,Al.useLayoutEffect)(w,v),f){let j;return e[12]!==n||e[13]!==o?(j=(0,es.jsx)(o2,{code:n,lang:o}),e[12]=n,e[13]=o,e[14]=j):j=e[14],j}let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=(0,es.jsx)(Hk,{size:17,strokeWidth:1.2}),e[15]=k):k=e[15];let _;e[16]!==i||e[17]!==o||e[18]!==a?(_=i??WP(o,a),e[16]=i,e[17]=o,e[18]=a,e[19]=_):_=e[19];let L;e[20]!==_?(L=(0,es.jsx)("span",{children:_}),e[20]=_,e[21]=L):L=e[21];let S;e[22]!==a?(S=a("changes.wrapLines"),e[22]=a,e[23]=S):S=e[23];let C;e[24]!==a?(C=a("changes.wrapLines"),e[24]=a,e[25]=C):C=e[25];let T,M;e[26]===Symbol.for("react.memo_cache_sentinel")?(T=()=>u(sNe),M=(0,es.jsx)(zre,{}),e[26]=T,e[27]=M):(T=e[26],M=e[27]);let A;e[28]!==S||e[29]!==C||e[30]!==c?(A=(0,es.jsx)("button",{type:"button",className:"cv-codeblock__action","aria-pressed":c,"aria-label":S,title:C,onClick:T,children:M}),e[28]=S,e[29]=C,e[30]=c,e[31]=A):A=e[31];let $;e[32]!==d||e[33]!==a?($=a(d?"code.copied":"code.copy"),e[32]=d,e[33]=a,e[34]=$):$=e[34];let N;e[35]!==d||e[36]!==a?(N=a(d?"code.copied":"code.copy"),e[35]=d,e[36]=a,e[37]=N):N=e[37];let F;e[38]!==n?(F=()=>{ba(n).then(()=>p(!0))},e[38]=n,e[39]=F):F=e[39];let D;e[40]===Symbol.for("react.memo_cache_sentinel")?(D=(0,es.jsx)(a1,{}),e[40]=D):D=e[40];let O;e[41]!==$||e[42]!==N||e[43]!==F?(O=(0,es.jsx)("button",{type:"button",className:"cv-codeblock__action","aria-label":$,title:N,onClick:F,children:D}),e[41]=$,e[42]=N,e[43]=F,e[44]=O):O=e[44];let B;e[45]!==A||e[46]!==O?(B=(0,es.jsxs)("span",{className:"cv-codeblock__actions",children:[A,O]}),e[45]=A,e[46]=O,e[47]=B):B=e[47];let P;e[48]!==L||e[49]!==B?(P=(0,es.jsxs)("div",{className:"cv-codeblock__header",children:[k,L,B]}),e[48]=L,e[49]=B,e[50]=P):P=e[50];let U;e[51]===Symbol.for("react.memo_cache_sentinel")?(U=(0,es.jsx)(lNe,{ref:s,className:"cv-codeblock__body selectable"}),e[51]=U):U=e[51];let G;return e[52]!==P?(G=(0,es.jsxs)("div",{className:"cv-codeblock",children:[P,U]}),e[52]=P,e[53]=G):G=e[53],G}function sNe(t){return!t}var lNe=kc;var Fj=R(qe(),1);var qs=class t{constructor(e,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=n,this.end=r}static range(e,n){return n?!e||!e.loc||!n.loc||e.loc.lexer!==n.loc.lexer?null:new t(e.loc.lexer,e.loc.start,n.loc.end):e&&e.loc}},$l=class t{constructor(e,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=n}range(e,n){return new t(n,qs.range(this,e))}},Ue=class t{constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+e,i,o,a=n&&n.loc;if(a&&a.start<=a.end){var s=a.lexer.input;i=a.start,o=a.end,i===s.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=s.slice(i,o).replace(/[^]/g,"$&\u0332"),c;i>15?c="\u2026"+s.slice(i-15,i):c=s.slice(0,i);var u;o+15<s.length?u=s.slice(o,o+15)+"\u2026":u=s.slice(o),r+=c+l+u}var d=new Error(r);return d.name="ParseError",d.__proto__=t.prototype,d.position=i,i!=null&&o!=null&&(d.length=o-i),d.rawMessage=e,d}};Ue.prototype.__proto__=Error.prototype;var cNe=function(e,n){return e===void 0?n:e},uNe=/([A-Z])/g,dNe=function(e){return e.replace(uNe,"-$1").toLowerCase()},pNe={"&":"&",">":">","<":"<",'"':""","'":"'"},mNe=/[&><"']/g;function fNe(t){return String(t).replace(mNe,e=>pNe[e])}var $ie=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},hNe=function(e){var n=$ie(e);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},gNe=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},bNe=function(e){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},rr={deflt:cNe,escape:fNe,hyphenate:dNe,getBaseElem:$ie,isCharacterBox:hNe,protocolFromUrl:bNe},lC={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:t=>"#"+t},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:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),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:t=>Math.max(0,t),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:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function yNe(t){if(t.default)return t.default;var e=t.type,n=Array.isArray(e)?e[0]:e;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var X7=class{constructor(e){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,e=e||{};for(var n in lC)if(lC.hasOwnProperty(n)){var r=lC[n];this[n]=e[n]!==void 0?r.processor?r.processor(e[n]):e[n]:yNe(r)}}reportNonstrict(e,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(e,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ue("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+e+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+e+"]"))}}useStrictBehavior(e,n,r){var i=this.strict;if(typeof i=="function")try{i=i(e,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var n=rr.protocolFromUrl(e.url);if(n==null)return!1;e.protocol=n}var r=typeof this.trust=="function"?this.trust(e):this.trust;return!!r}},fd=class{constructor(e,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=n,this.cramped=r}sup(){return hd[xNe[this.id]]}sub(){return hd[wNe[this.id]]}fracNum(){return hd[vNe[this.id]]}fracDen(){return hd[kNe[this.id]]}cramp(){return hd[CNe[this.id]]}text(){return hd[_Ne[this.id]]}isTight(){return this.size>=2}},vj=0,uC=1,s2=2,Qp=3,Y7=4,Rc=5,l2=6,ns=7,hd=[new fd(vj,0,!1),new fd(uC,0,!0),new fd(s2,1,!1),new fd(Qp,1,!0),new fd(Y7,2,!1),new fd(Rc,2,!0),new fd(l2,3,!1),new fd(ns,3,!0)],xNe=[Y7,Rc,Y7,Rc,l2,ns,l2,ns],wNe=[Rc,Rc,Rc,Rc,ns,ns,ns,ns],vNe=[s2,Qp,Y7,Rc,l2,ns,l2,ns],kNe=[Qp,Qp,Rc,Rc,ns,ns,ns,ns],CNe=[uC,uC,Qp,Qp,Rc,Rc,ns,ns],_Ne=[vj,uC,s2,Qp,s2,Qp,s2,Qp],Vt={DISPLAY:hd[vj],TEXT:hd[s2],SCRIPT:hd[Y7],SCRIPTSCRIPT:hd[l2]},cj=[{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 SNe(t){for(var e=0;e<cj.length;e++)for(var n=cj[e],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(t>=i[0]&&t<=i[1])return n.name}return null}var cC=[];cj.forEach(t=>t.blocks.forEach(e=>cC.push(...e)));function Iie(t){for(var e=0;e<cC.length;e+=2)if(t>=cC[e]&&t<=cC[e+1])return!0;return!1}var a2=80,LNe=function(e,n){return"M95,"+(622+e+n)+` +`,oNe={python:"Python",py:"Python",json:"JSON",diff:"Diff",ts:"TypeScript",typescript:"TypeScript",js:"JavaScript",javascript:"JavaScript",swift:"Swift",sh:"Shell",bash:"Shell"};function YP(t,e=we){return t==="text"||t==="txt"?e("code.plainText"):oNe[t]??t}var eie=()=>document.documentElement.dataset.theme==="light"?"light":"dark";function Xk(t){let e=(0,QP.c)(2),n;return e[0]!==t?(n=Zre(t.code)?(0,es.jsx)(aNe,{...t}):(0,es.jsx)(a2,{code:t.code,lang:t.lang??"text"}),e[0]=t,e[1]=n):n=e[1],n}function aNe(t){let e=(0,QP.c)(54),{code:n,lang:r,label:i}=t,o=r===void 0?"text":r,a=ve(),s=(0,$l.useRef)(null),l=(0,$l.useRef)(void 0),[c,u]=(0,$l.useState)(!1),[d,p]=(0,$l.useState)(!1),m=`snippet-${(0,$l.useId)()}`,[f,h]=(0,$l.useState)(!1),x,g;e[0]!==m?(x=()=>Qre(m,()=>h(!0)),g=[m],e[0]=m,e[1]=x,e[2]=g):(x=e[1],g=e[2]),(0,$l.useLayoutEffect)(x,g);let y,b;e[3]!==o?(y=()=>{let j=s.current;if(!j)return;a1();let V=new gP({theme:{dark:pd,light:md},themeType:eie(),disableFileHeader:!0,disableLineNumbers:!0,overflow:"scroll",unsafeCSS:iNe,tokenizeMaxLineLength:2e3},i2("word-alt",x0(o)?o:"text"),!0);l.current=V;let H=new MutationObserver(()=>V.setThemeType(eie()));return H.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>{H.disconnect(),l.current=void 0,V.cleanUp(),j.shadowRoot?.replaceChildren()}},b=[o],e[3]=o,e[4]=y,e[5]=b):(y=e[4],b=e[5]),(0,$l.useLayoutEffect)(y,b);let w,v;if(e[6]!==n||e[7]!==o||e[8]!==m||e[9]!==c?(w=()=>{let j=s.current,V=l.current;!j||!V||(V.setOptions({...V.options,overflow:c?"wrap":"scroll"}),V.render({fileContainer:j,file:{name:m,contents:n,lang:x0(o)?o:"text"}}))},v=[n,o,c,m],e[6]=n,e[7]=o,e[8]=m,e[9]=c,e[10]=w,e[11]=v):(w=e[10],v=e[11]),(0,$l.useLayoutEffect)(w,v),f){let j;return e[12]!==n||e[13]!==o?(j=(0,es.jsx)(a2,{code:n,lang:o}),e[12]=n,e[13]=o,e[14]=j):j=e[14],j}let k;e[15]===Symbol.for("react.memo_cache_sentinel")?(k=(0,es.jsx)(Hk,{size:17,strokeWidth:1.2}),e[15]=k):k=e[15];let _;e[16]!==i||e[17]!==o||e[18]!==a?(_=i??YP(o,a),e[16]=i,e[17]=o,e[18]=a,e[19]=_):_=e[19];let L;e[20]!==_?(L=(0,es.jsx)("span",{children:_}),e[20]=_,e[21]=L):L=e[21];let S;e[22]!==a?(S=a("changes.wrapLines"),e[22]=a,e[23]=S):S=e[23];let C;e[24]!==a?(C=a("changes.wrapLines"),e[24]=a,e[25]=C):C=e[25];let T,M;e[26]===Symbol.for("react.memo_cache_sentinel")?(T=()=>u(sNe),M=(0,es.jsx)(zre,{}),e[26]=T,e[27]=M):(T=e[26],M=e[27]);let A;e[28]!==S||e[29]!==C||e[30]!==c?(A=(0,es.jsx)("button",{type:"button",className:"cv-codeblock__action","aria-pressed":c,"aria-label":S,title:C,onClick:T,children:M}),e[28]=S,e[29]=C,e[30]=c,e[31]=A):A=e[31];let $;e[32]!==d||e[33]!==a?($=a(d?"code.copied":"code.copy"),e[32]=d,e[33]=a,e[34]=$):$=e[34];let N;e[35]!==d||e[36]!==a?(N=a(d?"code.copied":"code.copy"),e[35]=d,e[36]=a,e[37]=N):N=e[37];let F;e[38]!==n?(F=()=>{ba(n).then(()=>p(!0))},e[38]=n,e[39]=F):F=e[39];let D;e[40]===Symbol.for("react.memo_cache_sentinel")?(D=(0,es.jsx)(s1,{}),e[40]=D):D=e[40];let O;e[41]!==$||e[42]!==N||e[43]!==F?(O=(0,es.jsx)("button",{type:"button",className:"cv-codeblock__action","aria-label":$,title:N,onClick:F,children:D}),e[41]=$,e[42]=N,e[43]=F,e[44]=O):O=e[44];let B;e[45]!==A||e[46]!==O?(B=(0,es.jsxs)("span",{className:"cv-codeblock__actions",children:[A,O]}),e[45]=A,e[46]=O,e[47]=B):B=e[47];let P;e[48]!==L||e[49]!==B?(P=(0,es.jsxs)("div",{className:"cv-codeblock__header",children:[k,L,B]}),e[48]=L,e[49]=B,e[50]=P):P=e[50];let U;e[51]===Symbol.for("react.memo_cache_sentinel")?(U=(0,es.jsx)(lNe,{ref:s,className:"cv-codeblock__body selectable"}),e[51]=U):U=e[51];let G;return e[52]!==P?(G=(0,es.jsxs)("div",{className:"cv-codeblock",children:[P,U]}),e[52]=P,e[53]=G):G=e[53],G}function sNe(t){return!t}var lNe=kc;var qj=R(qe(),1);var qs=class t{constructor(e,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=n,this.end=r}static range(e,n){return n?!e||!e.loc||!n.loc||e.loc.lexer!==n.loc.lexer?null:new t(e.loc.lexer,e.loc.start,n.loc.end):e&&e.loc}},Il=class t{constructor(e,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=n}range(e,n){return new t(n,qs.range(this,e))}},Ue=class t{constructor(e,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+e,i,o,a=n&&n.loc;if(a&&a.start<=a.end){var s=a.lexer.input;i=a.start,o=a.end,i===s.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=s.slice(i,o).replace(/[^]/g,"$&\u0332"),c;i>15?c="\u2026"+s.slice(i-15,i):c=s.slice(0,i);var u;o+15<s.length?u=s.slice(o,o+15)+"\u2026":u=s.slice(o),r+=c+l+u}var d=new Error(r);return d.name="ParseError",d.__proto__=t.prototype,d.position=i,i!=null&&o!=null&&(d.length=o-i),d.rawMessage=e,d}};Ue.prototype.__proto__=Error.prototype;var cNe=function(e,n){return e===void 0?n:e},uNe=/([A-Z])/g,dNe=function(e){return e.replace(uNe,"-$1").toLowerCase()},pNe={"&":"&",">":">","<":"<",'"':""","'":"'"},mNe=/[&><"']/g;function fNe(t){return String(t).replace(mNe,e=>pNe[e])}var $ie=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},hNe=function(e){var n=$ie(e);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},gNe=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},bNe=function(e){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},rr={deflt:cNe,escape:fNe,hyphenate:dNe,getBaseElem:$ie,isCharacterBox:hNe,protocolFromUrl:bNe},lC={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:t=>"#"+t},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:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),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:t=>Math.max(0,t),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:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function yNe(t){if(t.default)return t.default;var e=t.type,n=Array.isArray(e)?e[0]:e;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var Y7=class{constructor(e){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,e=e||{};for(var n in lC)if(lC.hasOwnProperty(n)){var r=lC[n];this[n]=e[n]!==void 0?r.processor?r.processor(e[n]):e[n]:yNe(r)}}reportNonstrict(e,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(e,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ue("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+e+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+e+"]"))}}useStrictBehavior(e,n,r){var i=this.strict;if(typeof i=="function")try{i=i(e,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var n=rr.protocolFromUrl(e.url);if(n==null)return!1;e.protocol=n}var r=typeof this.trust=="function"?this.trust(e):this.trust;return!!r}},fd=class{constructor(e,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=n,this.cramped=r}sup(){return hd[xNe[this.id]]}sub(){return hd[wNe[this.id]]}fracNum(){return hd[vNe[this.id]]}fracDen(){return hd[kNe[this.id]]}cramp(){return hd[CNe[this.id]]}text(){return hd[_Ne[this.id]]}isTight(){return this.size>=2}},_j=0,uC=1,l2=2,Qp=3,Q7=4,Rc=5,c2=6,ns=7,hd=[new fd(_j,0,!1),new fd(uC,0,!0),new fd(l2,1,!1),new fd(Qp,1,!0),new fd(Q7,2,!1),new fd(Rc,2,!0),new fd(c2,3,!1),new fd(ns,3,!0)],xNe=[Q7,Rc,Q7,Rc,c2,ns,c2,ns],wNe=[Rc,Rc,Rc,Rc,ns,ns,ns,ns],vNe=[l2,Qp,Q7,Rc,c2,ns,c2,ns],kNe=[Qp,Qp,Rc,Rc,ns,ns,ns,ns],CNe=[uC,uC,Qp,Qp,Rc,Rc,ns,ns],_Ne=[_j,uC,l2,Qp,l2,Qp,l2,Qp],Vt={DISPLAY:hd[_j],TEXT:hd[l2],SCRIPT:hd[Q7],SCRIPTSCRIPT:hd[c2]},pj=[{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 SNe(t){for(var e=0;e<pj.length;e++)for(var n=pj[e],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(t>=i[0]&&t<=i[1])return n.name}return null}var cC=[];pj.forEach(t=>t.blocks.forEach(e=>cC.push(...e)));function Iie(t){for(var e=0;e<cC.length;e+=2)if(t>=cC[e]&&t<=cC[e+1])return!0;return!1}var s2=80,LNe=function(e,n){return"M95,"+(622+e+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 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 @@ -470,7 +470,7 @@ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,1 H742v`+i+`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 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+e)+"H742z"},INe=function(e,n,r){n=1e3*n;var i="";switch(e){case"sqrtMain":i=LNe(n,a2);break;case"sqrtSize1":i=MNe(n,a2);break;case"sqrtSize2":i=ENe(n,a2);break;case"sqrtSize3":i=TNe(n,a2);break;case"sqrtSize4":i=RNe(n,a2);break;case"sqrtTall":i=$Ne(n,a2,r)}return i},NNe=function(e,n){switch(e){case"\u239C":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"\u2223":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"\u2225":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"\u239F":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"\u23A2":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"\u23A5":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"\u23AA":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"\u23D0":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"\u2016":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},tie={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+e)+"H742z"},INe=function(e,n,r){n=1e3*n;var i="";switch(e){case"sqrtMain":i=LNe(n,s2);break;case"sqrtSize1":i=MNe(n,s2);break;case"sqrtSize2":i=ENe(n,s2);break;case"sqrtSize3":i=TNe(n,s2);break;case"sqrtSize4":i=RNe(n,s2);break;case"sqrtTall":i=$Ne(n,s2,r)}return i},NNe=function(e,n){switch(e){case"\u239C":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"\u2223":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"\u2225":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"\u239F":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"\u23A2":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"\u23A5":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"\u23AA":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"\u23D0":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"\u2016":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},tie={doubleleftarrow:`M262 157 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 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 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 @@ -673,49 +673,49 @@ 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 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 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --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.")}},M0=class{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){for(var e="",n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e}toText(){var e=n=>n.toText();return this.children.map(e).join("")}},gd={"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]}},Yk={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]},nie={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function jNe(t,e){gd[t]=e}function kj(t,e,n){if(!gd[e])throw new Error("Font metrics not found for font: "+e+".");var r=t.charCodeAt(0),i=gd[e][r];if(!i&&t[0]in nie&&(r=nie[t[0]].charCodeAt(0),i=gd[e][r]),!i&&n==="text"&&Iie(r)&&(i=gd[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var XP={};function ONe(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!XP[e]){var n=XP[e]={cssEmPerMu:Yk.quad[e]/18};for(var r in Yk)Yk.hasOwnProperty(r)&&(n[r]=Yk[r][e])}return XP[e]}var DNe=[[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]],rie=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],iie=function(e,n){return n.size<2?e:DNe[e-1][n.size-1]},dC=class t{constructor(e){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=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=rie[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){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};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return new t(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:iie(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:rie[e-1]})}havingBaseStyle(e){e=e||this.style.text();var n=iie(t.BASESIZE,e);return this.size===n&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=ONe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};dC.BASESIZE=6;var uj={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},FNe={ex:!0,em:!0,mu:!0},Nie=function(e){return typeof e!="string"&&(e=e.unit),e in uj||e in FNe||e==="ex"},ci=function(e,n){var r;if(e.unit in uj)r=uj[e.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(e.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,e.unit==="ex")r=i.fontMetrics().xHeight;else if(e.unit==="em")r=i.fontMetrics().quad;else throw new Ue("Invalid unit: '"+e.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(e.number*r,n.maxSize)},Qe=function(e){return+e.toFixed(4)+"em"},u1=function(e){return e.filter(n=>n).join(" ")},Pie=function(e,n,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},jie=function(e){var n=document.createElement(e);n.className=u1(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n},BNe=/[\s"'>/=\x00-\x1f]/,Oie=function(e){var n="<"+e;this.classes.length&&(n+=' class="'+rr.escape(u1(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=rr.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+rr.escape(r)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if(BNe.test(o))throw new Ue("Invalid attribute name '"+o+"'");n+=" "+o+'="'+rr.escape(this.attributes[o])+'"'}n+=">";for(var a=0;a<this.children.length;a++)n+=this.children[a].toMarkup();return n+="</"+e+">",n},E0=class{constructor(e,n,r,i){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,Pie.call(this,e,r,i),this.children=n||[]}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return this.classes.includes(e)}toNode(){return jie.call(this,"span")}toMarkup(){return Oie.call(this,"span")}},Q7=class{constructor(e,n,r,i){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,Pie.call(this,n,i),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return this.classes.includes(e)}toNode(){return jie.call(this,"a")}toMarkup(){return Oie.call(this,"a")}},dj=class{constructor(e,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=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);return e}toMarkup(){var e='<img src="'+rr.escape(this.src)+'"'+(' alt="'+rr.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=rr.hyphenate(r)+":"+this.style[r]+";");return n&&(e+=' style="'+rr.escape(n)+'"'),e+="'/>",e}},zNe={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Hs=class{constructor(e,n,r,i,o,a,s,l){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=e,this.height=n||0,this.depth=r||0,this.italic=i||0,this.skew=o||0,this.width=a||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var c=SNe(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=zNe[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Qe(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=u1(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(e),n):e}toMarkup(){var e=!1,n="<span";this.classes.length&&(e=!0,n+=' class="',n+=rr.escape(u1(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=rr.hyphenate(i)+":"+this.style[i]+";");r&&(e=!0,n+=' style="'+rr.escape(r)+'"');var o=rr.escape(this.text);return e?(n+=">",n+=o,n+="</span>",n):o}},wu=class{constructor(e,n){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=n||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+rr.escape(this.attributes[n])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>",e}},bd=class{constructor(e,n){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=n}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",tie[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+rr.escape(this.alternate)+'"/>':'<path d="'+rr.escape(tie[this.pathName])+'"/>'}},J7=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var e="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+rr.escape(this.attributes[n])+'"');return e+="/>",e}};function oie(t){if(t instanceof Hs)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function qNe(t){if(t instanceof E0)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var HNe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},GNe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Dr={math:{},text:{}};function E(t,e,n,r,i,o){Dr[t][i]={font:e,group:n,replace:r},o&&r&&(Dr[t][r]=Dr[t][i])}var I="math",Oe="text",z="main",X="ams",ri="accent-token",gt="bin",rs="close",c2="inner",Ut="mathord",io="op-token",Il="open",yC="punct",te="rel",nm="spacing",oe="textord";E(I,z,te,"\u2261","\\equiv",!0);E(I,z,te,"\u227A","\\prec",!0);E(I,z,te,"\u227B","\\succ",!0);E(I,z,te,"\u223C","\\sim",!0);E(I,z,te,"\u22A5","\\perp");E(I,z,te,"\u2AAF","\\preceq",!0);E(I,z,te,"\u2AB0","\\succeq",!0);E(I,z,te,"\u2243","\\simeq",!0);E(I,z,te,"\u2223","\\mid",!0);E(I,z,te,"\u226A","\\ll",!0);E(I,z,te,"\u226B","\\gg",!0);E(I,z,te,"\u224D","\\asymp",!0);E(I,z,te,"\u2225","\\parallel");E(I,z,te,"\u22C8","\\bowtie",!0);E(I,z,te,"\u2323","\\smile",!0);E(I,z,te,"\u2291","\\sqsubseteq",!0);E(I,z,te,"\u2292","\\sqsupseteq",!0);E(I,z,te,"\u2250","\\doteq",!0);E(I,z,te,"\u2322","\\frown",!0);E(I,z,te,"\u220B","\\ni",!0);E(I,z,te,"\u221D","\\propto",!0);E(I,z,te,"\u22A2","\\vdash",!0);E(I,z,te,"\u22A3","\\dashv",!0);E(I,z,te,"\u220B","\\owns");E(I,z,yC,".","\\ldotp");E(I,z,yC,"\u22C5","\\cdotp");E(I,z,oe,"#","\\#");E(Oe,z,oe,"#","\\#");E(I,z,oe,"&","\\&");E(Oe,z,oe,"&","\\&");E(I,z,oe,"\u2135","\\aleph",!0);E(I,z,oe,"\u2200","\\forall",!0);E(I,z,oe,"\u210F","\\hbar",!0);E(I,z,oe,"\u2203","\\exists",!0);E(I,z,oe,"\u2207","\\nabla",!0);E(I,z,oe,"\u266D","\\flat",!0);E(I,z,oe,"\u2113","\\ell",!0);E(I,z,oe,"\u266E","\\natural",!0);E(I,z,oe,"\u2663","\\clubsuit",!0);E(I,z,oe,"\u2118","\\wp",!0);E(I,z,oe,"\u266F","\\sharp",!0);E(I,z,oe,"\u2662","\\diamondsuit",!0);E(I,z,oe,"\u211C","\\Re",!0);E(I,z,oe,"\u2661","\\heartsuit",!0);E(I,z,oe,"\u2111","\\Im",!0);E(I,z,oe,"\u2660","\\spadesuit",!0);E(I,z,oe,"\xA7","\\S",!0);E(Oe,z,oe,"\xA7","\\S");E(I,z,oe,"\xB6","\\P",!0);E(Oe,z,oe,"\xB6","\\P");E(I,z,oe,"\u2020","\\dag");E(Oe,z,oe,"\u2020","\\dag");E(Oe,z,oe,"\u2020","\\textdagger");E(I,z,oe,"\u2021","\\ddag");E(Oe,z,oe,"\u2021","\\ddag");E(Oe,z,oe,"\u2021","\\textdaggerdbl");E(I,z,rs,"\u23B1","\\rmoustache",!0);E(I,z,Il,"\u23B0","\\lmoustache",!0);E(I,z,rs,"\u27EF","\\rgroup",!0);E(I,z,Il,"\u27EE","\\lgroup",!0);E(I,z,gt,"\u2213","\\mp",!0);E(I,z,gt,"\u2296","\\ominus",!0);E(I,z,gt,"\u228E","\\uplus",!0);E(I,z,gt,"\u2293","\\sqcap",!0);E(I,z,gt,"\u2217","\\ast");E(I,z,gt,"\u2294","\\sqcup",!0);E(I,z,gt,"\u25EF","\\bigcirc",!0);E(I,z,gt,"\u2219","\\bullet",!0);E(I,z,gt,"\u2021","\\ddagger");E(I,z,gt,"\u2240","\\wr",!0);E(I,z,gt,"\u2A3F","\\amalg");E(I,z,gt,"&","\\And");E(I,z,te,"\u27F5","\\longleftarrow",!0);E(I,z,te,"\u21D0","\\Leftarrow",!0);E(I,z,te,"\u27F8","\\Longleftarrow",!0);E(I,z,te,"\u27F6","\\longrightarrow",!0);E(I,z,te,"\u21D2","\\Rightarrow",!0);E(I,z,te,"\u27F9","\\Longrightarrow",!0);E(I,z,te,"\u2194","\\leftrightarrow",!0);E(I,z,te,"\u27F7","\\longleftrightarrow",!0);E(I,z,te,"\u21D4","\\Leftrightarrow",!0);E(I,z,te,"\u27FA","\\Longleftrightarrow",!0);E(I,z,te,"\u21A6","\\mapsto",!0);E(I,z,te,"\u27FC","\\longmapsto",!0);E(I,z,te,"\u2197","\\nearrow",!0);E(I,z,te,"\u21A9","\\hookleftarrow",!0);E(I,z,te,"\u21AA","\\hookrightarrow",!0);E(I,z,te,"\u2198","\\searrow",!0);E(I,z,te,"\u21BC","\\leftharpoonup",!0);E(I,z,te,"\u21C0","\\rightharpoonup",!0);E(I,z,te,"\u2199","\\swarrow",!0);E(I,z,te,"\u21BD","\\leftharpoondown",!0);E(I,z,te,"\u21C1","\\rightharpoondown",!0);E(I,z,te,"\u2196","\\nwarrow",!0);E(I,z,te,"\u21CC","\\rightleftharpoons",!0);E(I,X,te,"\u226E","\\nless",!0);E(I,X,te,"\uE010","\\@nleqslant");E(I,X,te,"\uE011","\\@nleqq");E(I,X,te,"\u2A87","\\lneq",!0);E(I,X,te,"\u2268","\\lneqq",!0);E(I,X,te,"\uE00C","\\@lvertneqq");E(I,X,te,"\u22E6","\\lnsim",!0);E(I,X,te,"\u2A89","\\lnapprox",!0);E(I,X,te,"\u2280","\\nprec",!0);E(I,X,te,"\u22E0","\\npreceq",!0);E(I,X,te,"\u22E8","\\precnsim",!0);E(I,X,te,"\u2AB9","\\precnapprox",!0);E(I,X,te,"\u2241","\\nsim",!0);E(I,X,te,"\uE006","\\@nshortmid");E(I,X,te,"\u2224","\\nmid",!0);E(I,X,te,"\u22AC","\\nvdash",!0);E(I,X,te,"\u22AD","\\nvDash",!0);E(I,X,te,"\u22EA","\\ntriangleleft");E(I,X,te,"\u22EC","\\ntrianglelefteq",!0);E(I,X,te,"\u228A","\\subsetneq",!0);E(I,X,te,"\uE01A","\\@varsubsetneq");E(I,X,te,"\u2ACB","\\subsetneqq",!0);E(I,X,te,"\uE017","\\@varsubsetneqq");E(I,X,te,"\u226F","\\ngtr",!0);E(I,X,te,"\uE00F","\\@ngeqslant");E(I,X,te,"\uE00E","\\@ngeqq");E(I,X,te,"\u2A88","\\gneq",!0);E(I,X,te,"\u2269","\\gneqq",!0);E(I,X,te,"\uE00D","\\@gvertneqq");E(I,X,te,"\u22E7","\\gnsim",!0);E(I,X,te,"\u2A8A","\\gnapprox",!0);E(I,X,te,"\u2281","\\nsucc",!0);E(I,X,te,"\u22E1","\\nsucceq",!0);E(I,X,te,"\u22E9","\\succnsim",!0);E(I,X,te,"\u2ABA","\\succnapprox",!0);E(I,X,te,"\u2246","\\ncong",!0);E(I,X,te,"\uE007","\\@nshortparallel");E(I,X,te,"\u2226","\\nparallel",!0);E(I,X,te,"\u22AF","\\nVDash",!0);E(I,X,te,"\u22EB","\\ntriangleright");E(I,X,te,"\u22ED","\\ntrianglerighteq",!0);E(I,X,te,"\uE018","\\@nsupseteqq");E(I,X,te,"\u228B","\\supsetneq",!0);E(I,X,te,"\uE01B","\\@varsupsetneq");E(I,X,te,"\u2ACC","\\supsetneqq",!0);E(I,X,te,"\uE019","\\@varsupsetneqq");E(I,X,te,"\u22AE","\\nVdash",!0);E(I,X,te,"\u2AB5","\\precneqq",!0);E(I,X,te,"\u2AB6","\\succneqq",!0);E(I,X,te,"\uE016","\\@nsubseteqq");E(I,X,gt,"\u22B4","\\unlhd");E(I,X,gt,"\u22B5","\\unrhd");E(I,X,te,"\u219A","\\nleftarrow",!0);E(I,X,te,"\u219B","\\nrightarrow",!0);E(I,X,te,"\u21CD","\\nLeftarrow",!0);E(I,X,te,"\u21CF","\\nRightarrow",!0);E(I,X,te,"\u21AE","\\nleftrightarrow",!0);E(I,X,te,"\u21CE","\\nLeftrightarrow",!0);E(I,X,te,"\u25B3","\\vartriangle");E(I,X,oe,"\u210F","\\hslash");E(I,X,oe,"\u25BD","\\triangledown");E(I,X,oe,"\u25CA","\\lozenge");E(I,X,oe,"\u24C8","\\circledS");E(I,X,oe,"\xAE","\\circledR");E(Oe,X,oe,"\xAE","\\circledR");E(I,X,oe,"\u2221","\\measuredangle",!0);E(I,X,oe,"\u2204","\\nexists");E(I,X,oe,"\u2127","\\mho");E(I,X,oe,"\u2132","\\Finv",!0);E(I,X,oe,"\u2141","\\Game",!0);E(I,X,oe,"\u2035","\\backprime");E(I,X,oe,"\u25B2","\\blacktriangle");E(I,X,oe,"\u25BC","\\blacktriangledown");E(I,X,oe,"\u25A0","\\blacksquare");E(I,X,oe,"\u29EB","\\blacklozenge");E(I,X,oe,"\u2605","\\bigstar");E(I,X,oe,"\u2222","\\sphericalangle",!0);E(I,X,oe,"\u2201","\\complement",!0);E(I,X,oe,"\xF0","\\eth",!0);E(Oe,z,oe,"\xF0","\xF0");E(I,X,oe,"\u2571","\\diagup");E(I,X,oe,"\u2572","\\diagdown");E(I,X,oe,"\u25A1","\\square");E(I,X,oe,"\u25A1","\\Box");E(I,X,oe,"\u25CA","\\Diamond");E(I,X,oe,"\xA5","\\yen",!0);E(Oe,X,oe,"\xA5","\\yen",!0);E(I,X,oe,"\u2713","\\checkmark",!0);E(Oe,X,oe,"\u2713","\\checkmark");E(I,X,oe,"\u2136","\\beth",!0);E(I,X,oe,"\u2138","\\daleth",!0);E(I,X,oe,"\u2137","\\gimel",!0);E(I,X,oe,"\u03DD","\\digamma",!0);E(I,X,oe,"\u03F0","\\varkappa");E(I,X,Il,"\u250C","\\@ulcorner",!0);E(I,X,rs,"\u2510","\\@urcorner",!0);E(I,X,Il,"\u2514","\\@llcorner",!0);E(I,X,rs,"\u2518","\\@lrcorner",!0);E(I,X,te,"\u2266","\\leqq",!0);E(I,X,te,"\u2A7D","\\leqslant",!0);E(I,X,te,"\u2A95","\\eqslantless",!0);E(I,X,te,"\u2272","\\lesssim",!0);E(I,X,te,"\u2A85","\\lessapprox",!0);E(I,X,te,"\u224A","\\approxeq",!0);E(I,X,gt,"\u22D6","\\lessdot");E(I,X,te,"\u22D8","\\lll",!0);E(I,X,te,"\u2276","\\lessgtr",!0);E(I,X,te,"\u22DA","\\lesseqgtr",!0);E(I,X,te,"\u2A8B","\\lesseqqgtr",!0);E(I,X,te,"\u2251","\\doteqdot");E(I,X,te,"\u2253","\\risingdotseq",!0);E(I,X,te,"\u2252","\\fallingdotseq",!0);E(I,X,te,"\u223D","\\backsim",!0);E(I,X,te,"\u22CD","\\backsimeq",!0);E(I,X,te,"\u2AC5","\\subseteqq",!0);E(I,X,te,"\u22D0","\\Subset",!0);E(I,X,te,"\u228F","\\sqsubset",!0);E(I,X,te,"\u227C","\\preccurlyeq",!0);E(I,X,te,"\u22DE","\\curlyeqprec",!0);E(I,X,te,"\u227E","\\precsim",!0);E(I,X,te,"\u2AB7","\\precapprox",!0);E(I,X,te,"\u22B2","\\vartriangleleft");E(I,X,te,"\u22B4","\\trianglelefteq");E(I,X,te,"\u22A8","\\vDash",!0);E(I,X,te,"\u22AA","\\Vvdash",!0);E(I,X,te,"\u2323","\\smallsmile");E(I,X,te,"\u2322","\\smallfrown");E(I,X,te,"\u224F","\\bumpeq",!0);E(I,X,te,"\u224E","\\Bumpeq",!0);E(I,X,te,"\u2267","\\geqq",!0);E(I,X,te,"\u2A7E","\\geqslant",!0);E(I,X,te,"\u2A96","\\eqslantgtr",!0);E(I,X,te,"\u2273","\\gtrsim",!0);E(I,X,te,"\u2A86","\\gtrapprox",!0);E(I,X,gt,"\u22D7","\\gtrdot");E(I,X,te,"\u22D9","\\ggg",!0);E(I,X,te,"\u2277","\\gtrless",!0);E(I,X,te,"\u22DB","\\gtreqless",!0);E(I,X,te,"\u2A8C","\\gtreqqless",!0);E(I,X,te,"\u2256","\\eqcirc",!0);E(I,X,te,"\u2257","\\circeq",!0);E(I,X,te,"\u225C","\\triangleq",!0);E(I,X,te,"\u223C","\\thicksim");E(I,X,te,"\u2248","\\thickapprox");E(I,X,te,"\u2AC6","\\supseteqq",!0);E(I,X,te,"\u22D1","\\Supset",!0);E(I,X,te,"\u2290","\\sqsupset",!0);E(I,X,te,"\u227D","\\succcurlyeq",!0);E(I,X,te,"\u22DF","\\curlyeqsucc",!0);E(I,X,te,"\u227F","\\succsim",!0);E(I,X,te,"\u2AB8","\\succapprox",!0);E(I,X,te,"\u22B3","\\vartriangleright");E(I,X,te,"\u22B5","\\trianglerighteq");E(I,X,te,"\u22A9","\\Vdash",!0);E(I,X,te,"\u2223","\\shortmid");E(I,X,te,"\u2225","\\shortparallel");E(I,X,te,"\u226C","\\between",!0);E(I,X,te,"\u22D4","\\pitchfork",!0);E(I,X,te,"\u221D","\\varpropto");E(I,X,te,"\u25C0","\\blacktriangleleft");E(I,X,te,"\u2234","\\therefore",!0);E(I,X,te,"\u220D","\\backepsilon");E(I,X,te,"\u25B6","\\blacktriangleright");E(I,X,te,"\u2235","\\because",!0);E(I,X,te,"\u22D8","\\llless");E(I,X,te,"\u22D9","\\gggtr");E(I,X,gt,"\u22B2","\\lhd");E(I,X,gt,"\u22B3","\\rhd");E(I,X,te,"\u2242","\\eqsim",!0);E(I,z,te,"\u22C8","\\Join");E(I,X,te,"\u2251","\\Doteq",!0);E(I,X,gt,"\u2214","\\dotplus",!0);E(I,X,gt,"\u2216","\\smallsetminus");E(I,X,gt,"\u22D2","\\Cap",!0);E(I,X,gt,"\u22D3","\\Cup",!0);E(I,X,gt,"\u2A5E","\\doublebarwedge",!0);E(I,X,gt,"\u229F","\\boxminus",!0);E(I,X,gt,"\u229E","\\boxplus",!0);E(I,X,gt,"\u22C7","\\divideontimes",!0);E(I,X,gt,"\u22C9","\\ltimes",!0);E(I,X,gt,"\u22CA","\\rtimes",!0);E(I,X,gt,"\u22CB","\\leftthreetimes",!0);E(I,X,gt,"\u22CC","\\rightthreetimes",!0);E(I,X,gt,"\u22CF","\\curlywedge",!0);E(I,X,gt,"\u22CE","\\curlyvee",!0);E(I,X,gt,"\u229D","\\circleddash",!0);E(I,X,gt,"\u229B","\\circledast",!0);E(I,X,gt,"\u22C5","\\centerdot");E(I,X,gt,"\u22BA","\\intercal",!0);E(I,X,gt,"\u22D2","\\doublecap");E(I,X,gt,"\u22D3","\\doublecup");E(I,X,gt,"\u22A0","\\boxtimes",!0);E(I,X,te,"\u21E2","\\dashrightarrow",!0);E(I,X,te,"\u21E0","\\dashleftarrow",!0);E(I,X,te,"\u21C7","\\leftleftarrows",!0);E(I,X,te,"\u21C6","\\leftrightarrows",!0);E(I,X,te,"\u21DA","\\Lleftarrow",!0);E(I,X,te,"\u219E","\\twoheadleftarrow",!0);E(I,X,te,"\u21A2","\\leftarrowtail",!0);E(I,X,te,"\u21AB","\\looparrowleft",!0);E(I,X,te,"\u21CB","\\leftrightharpoons",!0);E(I,X,te,"\u21B6","\\curvearrowleft",!0);E(I,X,te,"\u21BA","\\circlearrowleft",!0);E(I,X,te,"\u21B0","\\Lsh",!0);E(I,X,te,"\u21C8","\\upuparrows",!0);E(I,X,te,"\u21BF","\\upharpoonleft",!0);E(I,X,te,"\u21C3","\\downharpoonleft",!0);E(I,z,te,"\u22B6","\\origof",!0);E(I,z,te,"\u22B7","\\imageof",!0);E(I,X,te,"\u22B8","\\multimap",!0);E(I,X,te,"\u21AD","\\leftrightsquigarrow",!0);E(I,X,te,"\u21C9","\\rightrightarrows",!0);E(I,X,te,"\u21C4","\\rightleftarrows",!0);E(I,X,te,"\u21A0","\\twoheadrightarrow",!0);E(I,X,te,"\u21A3","\\rightarrowtail",!0);E(I,X,te,"\u21AC","\\looparrowright",!0);E(I,X,te,"\u21B7","\\curvearrowright",!0);E(I,X,te,"\u21BB","\\circlearrowright",!0);E(I,X,te,"\u21B1","\\Rsh",!0);E(I,X,te,"\u21CA","\\downdownarrows",!0);E(I,X,te,"\u21BE","\\upharpoonright",!0);E(I,X,te,"\u21C2","\\downharpoonright",!0);E(I,X,te,"\u21DD","\\rightsquigarrow",!0);E(I,X,te,"\u21DD","\\leadsto");E(I,X,te,"\u21DB","\\Rrightarrow",!0);E(I,X,te,"\u21BE","\\restriction");E(I,z,oe,"\u2018","`");E(I,z,oe,"$","\\$");E(Oe,z,oe,"$","\\$");E(Oe,z,oe,"$","\\textdollar");E(I,z,oe,"%","\\%");E(Oe,z,oe,"%","\\%");E(I,z,oe,"_","\\_");E(Oe,z,oe,"_","\\_");E(Oe,z,oe,"_","\\textunderscore");E(I,z,oe,"\u2220","\\angle",!0);E(I,z,oe,"\u221E","\\infty",!0);E(I,z,oe,"\u2032","\\prime");E(I,z,oe,"\u25B3","\\triangle");E(I,z,oe,"\u0393","\\Gamma",!0);E(I,z,oe,"\u0394","\\Delta",!0);E(I,z,oe,"\u0398","\\Theta",!0);E(I,z,oe,"\u039B","\\Lambda",!0);E(I,z,oe,"\u039E","\\Xi",!0);E(I,z,oe,"\u03A0","\\Pi",!0);E(I,z,oe,"\u03A3","\\Sigma",!0);E(I,z,oe,"\u03A5","\\Upsilon",!0);E(I,z,oe,"\u03A6","\\Phi",!0);E(I,z,oe,"\u03A8","\\Psi",!0);E(I,z,oe,"\u03A9","\\Omega",!0);E(I,z,oe,"A","\u0391");E(I,z,oe,"B","\u0392");E(I,z,oe,"E","\u0395");E(I,z,oe,"Z","\u0396");E(I,z,oe,"H","\u0397");E(I,z,oe,"I","\u0399");E(I,z,oe,"K","\u039A");E(I,z,oe,"M","\u039C");E(I,z,oe,"N","\u039D");E(I,z,oe,"O","\u039F");E(I,z,oe,"P","\u03A1");E(I,z,oe,"T","\u03A4");E(I,z,oe,"X","\u03A7");E(I,z,oe,"\xAC","\\neg",!0);E(I,z,oe,"\xAC","\\lnot");E(I,z,oe,"\u22A4","\\top");E(I,z,oe,"\u22A5","\\bot");E(I,z,oe,"\u2205","\\emptyset");E(I,X,oe,"\u2205","\\varnothing");E(I,z,Ut,"\u03B1","\\alpha",!0);E(I,z,Ut,"\u03B2","\\beta",!0);E(I,z,Ut,"\u03B3","\\gamma",!0);E(I,z,Ut,"\u03B4","\\delta",!0);E(I,z,Ut,"\u03F5","\\epsilon",!0);E(I,z,Ut,"\u03B6","\\zeta",!0);E(I,z,Ut,"\u03B7","\\eta",!0);E(I,z,Ut,"\u03B8","\\theta",!0);E(I,z,Ut,"\u03B9","\\iota",!0);E(I,z,Ut,"\u03BA","\\kappa",!0);E(I,z,Ut,"\u03BB","\\lambda",!0);E(I,z,Ut,"\u03BC","\\mu",!0);E(I,z,Ut,"\u03BD","\\nu",!0);E(I,z,Ut,"\u03BE","\\xi",!0);E(I,z,Ut,"\u03BF","\\omicron",!0);E(I,z,Ut,"\u03C0","\\pi",!0);E(I,z,Ut,"\u03C1","\\rho",!0);E(I,z,Ut,"\u03C3","\\sigma",!0);E(I,z,Ut,"\u03C4","\\tau",!0);E(I,z,Ut,"\u03C5","\\upsilon",!0);E(I,z,Ut,"\u03D5","\\phi",!0);E(I,z,Ut,"\u03C7","\\chi",!0);E(I,z,Ut,"\u03C8","\\psi",!0);E(I,z,Ut,"\u03C9","\\omega",!0);E(I,z,Ut,"\u03B5","\\varepsilon",!0);E(I,z,Ut,"\u03D1","\\vartheta",!0);E(I,z,Ut,"\u03D6","\\varpi",!0);E(I,z,Ut,"\u03F1","\\varrho",!0);E(I,z,Ut,"\u03C2","\\varsigma",!0);E(I,z,Ut,"\u03C6","\\varphi",!0);E(I,z,gt,"\u2217","*",!0);E(I,z,gt,"+","+");E(I,z,gt,"\u2212","-",!0);E(I,z,gt,"\u22C5","\\cdot",!0);E(I,z,gt,"\u2218","\\circ",!0);E(I,z,gt,"\xF7","\\div",!0);E(I,z,gt,"\xB1","\\pm",!0);E(I,z,gt,"\xD7","\\times",!0);E(I,z,gt,"\u2229","\\cap",!0);E(I,z,gt,"\u222A","\\cup",!0);E(I,z,gt,"\u2216","\\setminus",!0);E(I,z,gt,"\u2227","\\land");E(I,z,gt,"\u2228","\\lor");E(I,z,gt,"\u2227","\\wedge",!0);E(I,z,gt,"\u2228","\\vee",!0);E(I,z,oe,"\u221A","\\surd");E(I,z,Il,"\u27E8","\\langle",!0);E(I,z,Il,"\u2223","\\lvert");E(I,z,Il,"\u2225","\\lVert");E(I,z,rs,"?","?");E(I,z,rs,"!","!");E(I,z,rs,"\u27E9","\\rangle",!0);E(I,z,rs,"\u2223","\\rvert");E(I,z,rs,"\u2225","\\rVert");E(I,z,te,"=","=");E(I,z,te,":",":");E(I,z,te,"\u2248","\\approx",!0);E(I,z,te,"\u2245","\\cong",!0);E(I,z,te,"\u2265","\\ge");E(I,z,te,"\u2265","\\geq",!0);E(I,z,te,"\u2190","\\gets");E(I,z,te,">","\\gt",!0);E(I,z,te,"\u2208","\\in",!0);E(I,z,te,"\uE020","\\@not");E(I,z,te,"\u2282","\\subset",!0);E(I,z,te,"\u2283","\\supset",!0);E(I,z,te,"\u2286","\\subseteq",!0);E(I,z,te,"\u2287","\\supseteq",!0);E(I,X,te,"\u2288","\\nsubseteq",!0);E(I,X,te,"\u2289","\\nsupseteq",!0);E(I,z,te,"\u22A8","\\models");E(I,z,te,"\u2190","\\leftarrow",!0);E(I,z,te,"\u2264","\\le");E(I,z,te,"\u2264","\\leq",!0);E(I,z,te,"<","\\lt",!0);E(I,z,te,"\u2192","\\rightarrow",!0);E(I,z,te,"\u2192","\\to");E(I,X,te,"\u2271","\\ngeq",!0);E(I,X,te,"\u2270","\\nleq",!0);E(I,z,nm,"\xA0","\\ ");E(I,z,nm,"\xA0","\\space");E(I,z,nm,"\xA0","\\nobreakspace");E(Oe,z,nm,"\xA0","\\ ");E(Oe,z,nm,"\xA0"," ");E(Oe,z,nm,"\xA0","\\space");E(Oe,z,nm,"\xA0","\\nobreakspace");E(I,z,nm,null,"\\nobreak");E(I,z,nm,null,"\\allowbreak");E(I,z,yC,",",",");E(I,z,yC,";",";");E(I,X,gt,"\u22BC","\\barwedge",!0);E(I,X,gt,"\u22BB","\\veebar",!0);E(I,z,gt,"\u2299","\\odot",!0);E(I,z,gt,"\u2295","\\oplus",!0);E(I,z,gt,"\u2297","\\otimes",!0);E(I,z,oe,"\u2202","\\partial",!0);E(I,z,gt,"\u2298","\\oslash",!0);E(I,X,gt,"\u229A","\\circledcirc",!0);E(I,X,gt,"\u22A1","\\boxdot",!0);E(I,z,gt,"\u25B3","\\bigtriangleup");E(I,z,gt,"\u25BD","\\bigtriangledown");E(I,z,gt,"\u2020","\\dagger");E(I,z,gt,"\u22C4","\\diamond");E(I,z,gt,"\u22C6","\\star");E(I,z,gt,"\u25C3","\\triangleleft");E(I,z,gt,"\u25B9","\\triangleright");E(I,z,Il,"{","\\{");E(Oe,z,oe,"{","\\{");E(Oe,z,oe,"{","\\textbraceleft");E(I,z,rs,"}","\\}");E(Oe,z,oe,"}","\\}");E(Oe,z,oe,"}","\\textbraceright");E(I,z,Il,"{","\\lbrace");E(I,z,rs,"}","\\rbrace");E(I,z,Il,"[","\\lbrack",!0);E(Oe,z,oe,"[","\\lbrack",!0);E(I,z,rs,"]","\\rbrack",!0);E(Oe,z,oe,"]","\\rbrack",!0);E(I,z,Il,"(","\\lparen",!0);E(I,z,rs,")","\\rparen",!0);E(Oe,z,oe,"<","\\textless",!0);E(Oe,z,oe,">","\\textgreater",!0);E(I,z,Il,"\u230A","\\lfloor",!0);E(I,z,rs,"\u230B","\\rfloor",!0);E(I,z,Il,"\u2308","\\lceil",!0);E(I,z,rs,"\u2309","\\rceil",!0);E(I,z,oe,"\\","\\backslash");E(I,z,oe,"\u2223","|");E(I,z,oe,"\u2223","\\vert");E(Oe,z,oe,"|","\\textbar",!0);E(I,z,oe,"\u2225","\\|");E(I,z,oe,"\u2225","\\Vert");E(Oe,z,oe,"\u2225","\\textbardbl");E(Oe,z,oe,"~","\\textasciitilde");E(Oe,z,oe,"\\","\\textbackslash");E(Oe,z,oe,"^","\\textasciicircum");E(I,z,te,"\u2191","\\uparrow",!0);E(I,z,te,"\u21D1","\\Uparrow",!0);E(I,z,te,"\u2193","\\downarrow",!0);E(I,z,te,"\u21D3","\\Downarrow",!0);E(I,z,te,"\u2195","\\updownarrow",!0);E(I,z,te,"\u21D5","\\Updownarrow",!0);E(I,z,io,"\u2210","\\coprod");E(I,z,io,"\u22C1","\\bigvee");E(I,z,io,"\u22C0","\\bigwedge");E(I,z,io,"\u2A04","\\biguplus");E(I,z,io,"\u22C2","\\bigcap");E(I,z,io,"\u22C3","\\bigcup");E(I,z,io,"\u222B","\\int");E(I,z,io,"\u222B","\\intop");E(I,z,io,"\u222C","\\iint");E(I,z,io,"\u222D","\\iiint");E(I,z,io,"\u220F","\\prod");E(I,z,io,"\u2211","\\sum");E(I,z,io,"\u2A02","\\bigotimes");E(I,z,io,"\u2A01","\\bigoplus");E(I,z,io,"\u2A00","\\bigodot");E(I,z,io,"\u222E","\\oint");E(I,z,io,"\u222F","\\oiint");E(I,z,io,"\u2230","\\oiiint");E(I,z,io,"\u2A06","\\bigsqcup");E(I,z,io,"\u222B","\\smallint");E(Oe,z,c2,"\u2026","\\textellipsis");E(I,z,c2,"\u2026","\\mathellipsis");E(Oe,z,c2,"\u2026","\\ldots",!0);E(I,z,c2,"\u2026","\\ldots",!0);E(I,z,c2,"\u22EF","\\@cdots",!0);E(I,z,c2,"\u22F1","\\ddots",!0);E(I,z,oe,"\u22EE","\\varvdots");E(Oe,z,oe,"\u22EE","\\varvdots");E(I,z,ri,"\u02CA","\\acute");E(I,z,ri,"\u02CB","\\grave");E(I,z,ri,"\xA8","\\ddot");E(I,z,ri,"~","\\tilde");E(I,z,ri,"\u02C9","\\bar");E(I,z,ri,"\u02D8","\\breve");E(I,z,ri,"\u02C7","\\check");E(I,z,ri,"^","\\hat");E(I,z,ri,"\u20D7","\\vec");E(I,z,ri,"\u02D9","\\dot");E(I,z,ri,"\u02DA","\\mathring");E(I,z,Ut,"\uE131","\\@imath");E(I,z,Ut,"\uE237","\\@jmath");E(I,z,oe,"\u0131","\u0131");E(I,z,oe,"\u0237","\u0237");E(Oe,z,oe,"\u0131","\\i",!0);E(Oe,z,oe,"\u0237","\\j",!0);E(Oe,z,oe,"\xDF","\\ss",!0);E(Oe,z,oe,"\xE6","\\ae",!0);E(Oe,z,oe,"\u0153","\\oe",!0);E(Oe,z,oe,"\xF8","\\o",!0);E(Oe,z,oe,"\xC6","\\AE",!0);E(Oe,z,oe,"\u0152","\\OE",!0);E(Oe,z,oe,"\xD8","\\O",!0);E(Oe,z,ri,"\u02CA","\\'");E(Oe,z,ri,"\u02CB","\\`");E(Oe,z,ri,"\u02C6","\\^");E(Oe,z,ri,"\u02DC","\\~");E(Oe,z,ri,"\u02C9","\\=");E(Oe,z,ri,"\u02D8","\\u");E(Oe,z,ri,"\u02D9","\\.");E(Oe,z,ri,"\xB8","\\c");E(Oe,z,ri,"\u02DA","\\r");E(Oe,z,ri,"\u02C7","\\v");E(Oe,z,ri,"\xA8",'\\"');E(Oe,z,ri,"\u02DD","\\H");E(Oe,z,ri,"\u25EF","\\textcircled");var Die={"--":!0,"---":!0,"``":!0,"''":!0};E(Oe,z,oe,"\u2013","--",!0);E(Oe,z,oe,"\u2013","\\textendash");E(Oe,z,oe,"\u2014","---",!0);E(Oe,z,oe,"\u2014","\\textemdash");E(Oe,z,oe,"\u2018","`",!0);E(Oe,z,oe,"\u2018","\\textquoteleft");E(Oe,z,oe,"\u2019","'",!0);E(Oe,z,oe,"\u2019","\\textquoteright");E(Oe,z,oe,"\u201C","``",!0);E(Oe,z,oe,"\u201C","\\textquotedblleft");E(Oe,z,oe,"\u201D","''",!0);E(Oe,z,oe,"\u201D","\\textquotedblright");E(I,z,oe,"\xB0","\\degree",!0);E(Oe,z,oe,"\xB0","\\degree");E(Oe,z,oe,"\xB0","\\textdegree",!0);E(I,z,oe,"\xA3","\\pounds");E(I,z,oe,"\xA3","\\mathsterling",!0);E(Oe,z,oe,"\xA3","\\pounds");E(Oe,z,oe,"\xA3","\\textsterling",!0);E(I,X,oe,"\u2720","\\maltese");E(Oe,X,oe,"\u2720","\\maltese");var aie='0123456789/@."';for(Qk=0;Qk<aie.length;Qk++)YP=aie.charAt(Qk),E(I,z,oe,YP,YP);var YP,Qk,sie='0123456789!@*()-=+";:?/.,';for(Jk=0;Jk<sie.length;Jk++)QP=sie.charAt(Jk),E(Oe,z,oe,QP,QP);var QP,Jk,pC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(eC=0;eC<pC.length;eC++)V7=pC.charAt(eC),E(I,z,Ut,V7,V7),E(Oe,z,oe,V7,V7);var V7,eC;E(I,X,oe,"C","\u2102");E(Oe,X,oe,"C","\u2102");E(I,X,oe,"H","\u210D");E(Oe,X,oe,"H","\u210D");E(I,X,oe,"N","\u2115");E(Oe,X,oe,"N","\u2115");E(I,X,oe,"P","\u2119");E(Oe,X,oe,"P","\u2119");E(I,X,oe,"Q","\u211A");E(Oe,X,oe,"Q","\u211A");E(I,X,oe,"R","\u211D");E(Oe,X,oe,"R","\u211D");E(I,X,oe,"Z","\u2124");E(Oe,X,oe,"Z","\u2124");E(I,z,Ut,"h","\u210E");E(Oe,z,Ut,"h","\u210E");var an="";for(ya=0;ya<pC.length;ya++)si=pC.charAt(ya),an=String.fromCharCode(55349,56320+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56372+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56424+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56580+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56684+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56736+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56788+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56840+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56944+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),ya<26&&(an=String.fromCharCode(55349,56632+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56476+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an));var si,ya;an="\u{1D55C}";E(I,z,Ut,"k",an);E(Oe,z,oe,"k",an);for(l1=0;l1<10;l1++)Xp=l1.toString(),an=String.fromCharCode(55349,57294+l1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an),an=String.fromCharCode(55349,57314+l1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an),an=String.fromCharCode(55349,57324+l1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an),an=String.fromCharCode(55349,57334+l1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an);var Xp,l1,pj="\xD0\xDE\xFE";for(tC=0;tC<pj.length;tC++)Z7=pj.charAt(tC),E(I,z,Ut,Z7,Z7),E(Oe,z,oe,Z7,Z7);var Z7,tC,nC=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],lie=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],UNe=function(e,n){var r=e.charCodeAt(0),i=e.charCodeAt(1),o=(r-55296)*1024+(i-56320)+65536,a=n==="math"?0:1;if(119808<=o&&o<120484){var s=Math.floor((o-119808)/26);return[nC[s][2],nC[s][a]]}else if(120782<=o&&o<=120831){var l=Math.floor((o-120782)/10);return[lie[l][2],lie[l][a]]}else{if(o===120485||o===120486)return[nC[0][2],nC[0][a]];if(120486<o&&o<120782)return["",""];throw new Ue("Unsupported character: "+e)}},xC=function(e,n,r){return Dr[r][e]&&Dr[r][e].replace&&(e=Dr[r][e].replace),{value:e,metrics:kj(e,n,r)}},xu=function(e,n,r,i,o){var a=xC(e,n,r),s=a.metrics;e=a.value;var l;if(s){var c=s.italic;(r==="text"||i&&i.font==="mathit")&&(c=0),l=new Hs(e,s.height,s.depth,c,s.skew,s.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+n+"' and mode '"+r+"'")),l=new Hs(e,0,0,0,0,0,o);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var u=i.getColor();u&&(l.style.color=u)}return l},VNe=function(e,n,r,i){return i===void 0&&(i=[]),r.font==="boldsymbol"&&xC(e,"Main-Bold",n).metrics?xu(e,"Main-Bold",n,r,i.concat(["mathbf"])):e==="\\"||Dr[n][e].font==="main"?xu(e,"Main-Regular",n,r,i):xu(e,"AMS-Regular",n,r,i.concat(["amsrm"]))},ZNe=function(e,n,r,i,o){return o!=="textord"&&xC(e,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},WNe=function(e,n,r){var i=e.mode,o=e.text,a=["mord"],s=i==="math"||i==="text"&&n.font,l=s?n.font:n.fontFamily,c="",u="";if(o.charCodeAt(0)===55349&&([c,u]=UNe(o,i)),c.length>0)return xu(o,c,i,n,a.concat(u));if(l){var d,p;if(l==="boldsymbol"){var m=ZNe(o,i,n,a,r);d=m.fontName,p=[m.fontClass]}else s?(d=zie[l].fontName,p=[l]):(d=rC(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(xC(o,d,i).metrics)return xu(o,d,i,n,a.concat(p));if(Die.hasOwnProperty(o)&&d.slice(0,10)==="Typewriter"){for(var f=[],h=0;h<o.length;h++)f.push(xu(o[h],d,i,n,a.concat(p)));return Bie(f)}}if(r==="mathord")return xu(o,"Math-Italic",i,n,a.concat(["mathnormal"]));if(r==="textord"){var x=Dr[i][o]&&Dr[i][o].font;if(x==="ams"){var g=rC("amsrm",n.fontWeight,n.fontShape);return xu(o,g,i,n,a.concat("amsrm",n.fontWeight,n.fontShape))}else if(x==="main"||!x){var y=rC("textrm",n.fontWeight,n.fontShape);return xu(o,y,i,n,a.concat(n.fontWeight,n.fontShape))}else{var b=rC(x,n.fontWeight,n.fontShape);return xu(o,b,i,n,a.concat(b,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},KNe=(t,e)=>{if(u1(t.classes)!==u1(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var n=t.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in t.style)if(t.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},XNe=t=>{for(var e=0;e<t.length-1;e++){var n=t[e],r=t[e+1];n instanceof Hs&&r instanceof Hs&&KNe(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,t.splice(e+1,1),e--)}return t},Cj=function(e){for(var n=0,r=0,i=0,o=0;o<e.children.length;o++){var a=e.children[o];a.height>n&&(n=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}e.height=n,e.depth=r,e.maxFontSize=i},zs=function(e,n,r,i){var o=new E0(e,n,r,i);return Cj(o),o},Fie=(t,e,n,r)=>new E0(t,e,n,r),YNe=function(e,n,r){var i=zs([e],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Qe(i.height),i.maxFontSize=1,i},QNe=function(e,n,r,i){var o=new Q7(e,n,r,i);return Cj(o),o},Bie=function(e){var n=new M0(e);return Cj(n),n},JNe=function(e,n){return e instanceof M0?zs([],[e],n):e},ePe=function(e){if(e.positionType==="individualShift"){for(var n=e.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,o=i,a=1;a<n.length;a++){var s=-n[a].shift-o-n[a].elem.depth,l=s-(n[a-1].elem.height+n[a-1].elem.depth);o=o+s,r.push({type:"kern",size:l}),r.push(n[a])}return{children:r,depth:i}}var c;if(e.positionType==="top"){for(var u=e.positionData,d=0;d<e.children.length;d++){var p=e.children[d];u-=p.type==="kern"?p.size:p.elem.height+p.elem.depth}c=u}else if(e.positionType==="bottom")c=-e.positionData;else{var m=e.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")c=-m.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")c=-m.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:c}},tPe=function(e,n){for(var{children:r,depth:i}=ePe(e),o=0,a=0;a<r.length;a++){var s=r[a];if(s.type==="elem"){var l=s.elem;o=Math.max(o,l.maxFontSize,l.height)}}o+=2;var c=zs(["pstrut"],[]);c.style.height=Qe(o);for(var u=[],d=i,p=i,m=i,f=0;f<r.length;f++){var h=r[f];if(h.type==="kern")m+=h.size;else{var x=h.elem,g=h.wrapperClasses||[],y=h.wrapperStyle||{},b=zs(g,[c,x],void 0,y);b.style.top=Qe(-o-m-x.depth),h.marginLeft&&(b.style.marginLeft=h.marginLeft),h.marginRight&&(b.style.marginRight=h.marginRight),u.push(b),m+=x.height+x.depth}d=Math.min(d,m),p=Math.max(p,m)}var w=zs(["vlist"],u);w.style.height=Qe(p);var v;if(d<0){var k=zs([],[]),_=zs(["vlist"],[k]);_.style.height=Qe(-d);var L=zs(["vlist-s"],[new Hs("\u200B")]);v=[zs(["vlist-r"],[w,L]),zs(["vlist-r"],[_])]}else v=[zs(["vlist-r"],[w])];var S=zs(["vlist-t"],v);return v.length===2&&S.classes.push("vlist-t2"),S.height=p,S.depth=-d,S},nPe=(t,e)=>{var n=zs(["mspace"],[],e),r=ci(t,e);return n.style.marginRight=Qe(r),n},rC=function(e,n,r){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var o;return n==="textbf"&&r==="textit"?o="BoldItalic":n==="textbf"?o="Bold":n==="textit"?o="Italic":o="Regular",i+"-"+o},zie={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"}},qie={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rPe=function(e,n){var[r,i,o]=qie[e],a=new bd(r),s=new wu([a],{width:Qe(i),height:Qe(o),style:"width:"+Qe(i),viewBox:"0 0 "+1e3*i+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),l=Fie(["overlay"],[s],n);return l.height=o,l.style.height=Qe(o),l.style.width=Qe(i),l},pe={fontMap:zie,makeSymbol:xu,mathsym:VNe,makeSpan:zs,makeSvgSpan:Fie,makeLineSpan:YNe,makeAnchor:QNe,makeFragment:Bie,wrapFragment:JNe,makeVList:tPe,makeOrd:WNe,makeGlue:nPe,staticSvg:rPe,svgData:qie,tryCombineChars:XNe},li={number:3,unit:"mu"},L0={number:4,unit:"mu"},Yp={number:5,unit:"mu"},iPe={mord:{mop:li,mbin:L0,mrel:Yp,minner:li},mop:{mord:li,mop:li,mrel:Yp,minner:li},mbin:{mord:L0,mop:L0,mopen:L0,minner:L0},mrel:{mord:Yp,mop:Yp,mopen:Yp,minner:Yp},mopen:{},mclose:{mop:li,mbin:L0,mrel:Yp,minner:li},mpunct:{mord:li,mop:li,mrel:Yp,mopen:li,mclose:li,mpunct:li,minner:li},minner:{mord:li,mop:li,mbin:L0,mrel:Yp,mopen:li,mpunct:li,minner:li}},oPe={mord:{mop:li},mop:{mord:li,mop:li},mbin:{},mrel:{},mopen:{},mclose:{mop:li},mpunct:{},minner:{mop:li}},Hie={},mC={},fC={};function lt(t){for(var{type:e,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:a}=t,s={type:e,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:i},l=0;l<n.length;++l)Hie[n[l]]=s;e&&(o&&(mC[e]=o),a&&(fC[e]=a))}function T0(t){var{type:e,htmlBuilder:n,mathmlBuilder:r}=t;lt({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var hC=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Oi=function(e){return e.type==="ordgroup"?e.body:[e]},em=pe.makeSpan,aPe=["leftmost","mbin","mopen","mrel","mop","mpunct"],sPe=["rightmost","mrel","mclose","mpunct"],lPe={display:Vt.DISPLAY,text:Vt.TEXT,script:Vt.SCRIPT,scriptscript:Vt.SCRIPTSCRIPT},cPe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},bo=function(e,n,r,i){i===void 0&&(i=[null,null]);for(var o=[],a=0;a<e.length;a++){var s=Jn(e[a],n);if(s instanceof M0){var l=s.children;o.push(...l)}else o.push(s)}if(pe.tryCombineChars(o),!r)return o;var c=n;if(e.length===1){var u=e[0];u.type==="sizing"?c=n.havingSize(u.size):u.type==="styling"&&(c=n.havingStyle(lPe[u.style]))}var d=em([i[0]||"leftmost"],[],n),p=em([i[1]||"rightmost"],[],n),m=r==="root";return cie(o,(f,h)=>{var x=h.classes[0],g=f.classes[0];x==="mbin"&&sPe.includes(g)?h.classes[0]="mord":g==="mbin"&&aPe.includes(x)&&(f.classes[0]="mord")},{node:d},p,m),cie(o,(f,h)=>{var x=mj(h),g=mj(f),y=x&&g?f.hasClass("mtight")?oPe[x][g]:iPe[x][g]:null;if(y)return pe.makeGlue(y,c)},{node:d},p,m),o},cie=function t(e,n,r,i,o){i&&e.push(i);for(var a=0;a<e.length;a++){var s=e[a],l=Gie(s);if(l){t(l.children,n,r,null,o);continue}var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(e.unshift(u),a++))}c?r.node=s:o&&s.hasClass("newline")&&(r.node=em(["leftmost"])),r.insertAfter=(d=>p=>{e.splice(d+1,0,p),a++})(a)}i&&e.pop()},Gie=function(e){return e instanceof M0||e instanceof Q7||e instanceof E0&&e.hasClass("enclosing")?e:null},uPe=function t(e,n){var r=Gie(e);if(r){var i=r.children;if(i.length){if(n==="right")return t(i[i.length-1],"right");if(n==="left")return t(i[0],"left")}}return e},mj=function(e,n){return e?(n&&(e=uPe(e,n)),cPe[e.classes[0]]||null):null},e6=function(e,n){var r=["nulldelimiter"].concat(e.baseSizingClasses());return em(n.concat(r))},Jn=function(e,n,r){if(!e)return em();if(mC[e.type]){var i=mC[e.type](e,n);if(r&&n.size!==r.size){i=em(n.sizingClasses(r),[i],n);var o=n.sizeMultiplier/r.sizeMultiplier;i.height*=o,i.depth*=o}return i}else throw new Ue("Got group of unknown type: '"+e.type+"'")};function iC(t,e){var n=em(["base"],t,e),r=em(["strut"]);return r.style.height=Qe(n.height+n.depth),n.depth&&(r.style.verticalAlign=Qe(-n.depth)),n.children.unshift(r),n}function fj(t,e){var n=null;t.length===1&&t[0].type==="tag"&&(n=t[0].tag,t=t[0].body);var r=bo(t,e,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var o=[],a=[],s=0;s<r.length;s++)if(a.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var l=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,a.push(r[s]),r[s].hasClass("nobreak")&&(l=!0);l||(o.push(iC(a,e)),a=[])}else r[s].hasClass("newline")&&(a.pop(),a.length>0&&(o.push(iC(a,e)),a=[]),o.push(r[s]));a.length>0&&o.push(iC(a,e));var c;n?(c=iC(bo(n,e,!0)),c.classes=["tag"],o.push(c)):i&&o.push(i);var u=em(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=Qe(u.height+u.depth),u.depth&&(d.style.verticalAlign=Qe(-u.depth))}return u}function Uie(t){return new M0(t)}var ts=class{constructor(e,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(e,n){this.attributes[e]=n}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);this.classes.length>0&&(e.className=u1(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Ac&&this.children[r+1]instanceof Ac){for(var i=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Ac;)i+=this.children[++r].toText();e.appendChild(new Ac(i).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="',e+=rr.escape(this.attributes[n]),e+='"');this.classes.length>0&&(e+=' class ="'+rr.escape(u1(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}},Ac=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return rr.escape(this.toText())}toText(){return this.text}},hj=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Qe(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Qe(this.width)+'"/>'}toText(){return this.character?this.character:" "}},ze={MathNode:ts,TextNode:Ac,SpaceNode:hj,newDocumentFragment:Uie},$c=function(e,n,r){return Dr[n][e]&&Dr[n][e].replace&&e.charCodeAt(0)!==55349&&!(Die.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=Dr[n][e].replace),new ze.TextNode(e)},_j=function(e){return e.length===1?e[0]:new ze.MathNode("mrow",e)},Sj=function(e,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var o=e.text;if(["\\imath","\\jmath"].includes(o))return null;Dr[i][o]&&Dr[i][o].replace&&(o=Dr[i][o].replace);var a=pe.fontMap[r].fontName;return kj(o,a,i)?pe.fontMap[r].variant:null};function JP(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Ac&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var n=t.children[0];return n instanceof Ac&&n.text===","}else return!1}var Gs=function(e,n,r){if(e.length===1){var i=Ir(e[0],n);return r&&i instanceof ts&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var o=[],a,s=0;s<e.length;s++){var l=Ir(e[s],n);if(l instanceof ts&&a instanceof ts){if(l.type==="mtext"&&a.type==="mtext"&&l.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...l.children);continue}else if(l.type==="mn"&&a.type==="mn"){a.children.push(...l.children);continue}else if(JP(l)&&a.type==="mn"){a.children.push(...l.children);continue}else if(l.type==="mn"&&JP(a))l.children=[...a.children,...l.children],o.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(a.type==="mn"||JP(a))){var c=l.children[0];c instanceof ts&&c.type==="mn"&&(c.children=[...a.children,...c.children],o.pop())}else if(a.type==="mi"&&a.children.length===1){var u=a.children[0];if(u instanceof Ac&&u.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var d=l.children[0];d instanceof Ac&&d.text.length>0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),o.pop())}}}o.push(l),a=l}return o},d1=function(e,n,r){return _j(Gs(e,n,r))},Ir=function(e,n){if(!e)return new ze.MathNode("mrow");if(fC[e.type]){var r=fC[e.type](e,n);return r}else throw new Ue("Got group of unknown type: '"+e.type+"'")};function uie(t,e,n,r,i){var o=Gs(t,n),a;o.length===1&&o[0]instanceof ts&&["mrow","mtable"].includes(o[0].type)?a=o[0]:a=new ze.MathNode("mrow",o);var s=new ze.MathNode("annotation",[new ze.TextNode(e)]);s.setAttribute("encoding","application/x-tex");var l=new ze.MathNode("semantics",[a,s]),c=new ze.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return pe.makeSpan([u],[c])}var Vie=function(e){return new dC({style:e.displayMode?Vt.DISPLAY:Vt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Zie=function(e,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),e=pe.makeSpan(r,[e])}return e},dPe=function(e,n,r){var i=Vie(r),o;if(r.output==="mathml")return uie(e,n,i,r.displayMode,!0);if(r.output==="html"){var a=fj(e,i);o=pe.makeSpan(["katex"],[a])}else{var s=uie(e,n,i,r.displayMode,!1),l=fj(e,i);o=pe.makeSpan(["katex"],[s,l])}return Zie(o,r)},pPe=function(e,n,r){var i=Vie(r),o=fj(e,i),a=pe.makeSpan(["katex"],[o]);return Zie(a,r)},mPe={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},fPe=function(e){var n=new ze.MathNode("mo",[new ze.TextNode(mPe[e.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},hPe={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],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]},gPe=function(e){return e.type==="ordgroup"?e.body.length:1},bPe=function(e,n){function r(){var s=4e5,l=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var c=e,u=gPe(c.base),d,p,m;if(u>5)l==="widehat"||l==="widecheck"?(d=420,s=2364,m=.42,p=l+"4"):(d=312,s=2340,m=.34,p="tilde4");else{var f=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][f],d=[0,239,300,360,420][f],m=[0,.24,.3,.3,.36,.42][f],p=l+f):(s=[0,600,1033,2339,2340][f],d=[0,260,286,306,312][f],m=[0,.26,.286,.3,.306,.34][f],p="tilde"+f)}var h=new bd(p),x=new wu([h],{width:"100%",height:Qe(m),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:pe.makeSvgSpan([],[x],n),minWidth:0,height:m}}else{var g=[],y=hPe[l],[b,w,v]=y,k=v/1e3,_=b.length,L,S;if(_===1){var C=y[3];L=["hide-tail"],S=[C]}else if(_===2)L=["halfarrow-left","halfarrow-right"],S=["xMinYMin","xMaxYMin"];else if(_===3)L=["brace-left","brace-center","brace-right"],S=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+_+" children.");for(var T=0;T<_;T++){var M=new bd(b[T]),A=new wu([M],{width:"400em",height:Qe(k),viewBox:"0 0 "+s+" "+v,preserveAspectRatio:S[T]+" slice"}),$=pe.makeSvgSpan([L[T]],[A],n);if(_===1)return{span:$,minWidth:w,height:k};$.style.height=Qe(k),g.push($)}return{span:pe.makeSpan(["stretchy"],g,n),minWidth:w,height:k}}}var{span:i,minWidth:o,height:a}=r();return i.height=a,i.style.height=Qe(a),o>0&&(i.style.minWidth=Qe(o)),i},yPe=function(e,n,r,i,o){var a,s=e.height+e.depth+r+i;if(/fbox|color|angl/.test(n)){if(a=pe.makeSpan(["stretchy",n],[],o),n==="fbox"){var l=o.color&&o.getColor();l&&(a.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new J7({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new J7({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new wu(c,{width:"100%",height:Qe(s)});a=pe.makeSvgSpan([],[u],o)}return a.height=s,a.style.height=Qe(s),a},tm={encloseSpan:yPe,mathMLnode:fPe,svgSpan:bPe};function Tn(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Lj(t){var e=wC(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function wC(t){return t&&(t.type==="atom"||GNe.hasOwnProperty(t.type))?t:null}var Mj=(t,e)=>{var n,r,i;t&&t.type==="supsub"?(r=Tn(t.base,"accent"),n=r.base,t.base=n,i=qNe(Jn(t,e)),t.base=r):(r=Tn(t,"accent"),n=r.base);var o=Jn(n,e.havingCrampedStyle()),a=r.isShifty&&rr.isCharacterBox(n),s=0;if(a){var l=rr.getBaseElem(n),c=Jn(l,e.havingCrampedStyle());s=oie(c).skew}var u=r.label==="\\c",d=u?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),p;if(r.isStretchy)p=tm.svgSpan(r,e),p=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Qe(2*s)+")",marginLeft:Qe(2*s)}:void 0}]},e);else{var m,f;r.label==="\\vec"?(m=pe.staticSvg("vec",e),f=pe.svgData.vec[1]):(m=pe.makeOrd({mode:r.mode,text:r.label},e,"textord"),m=oie(m),m.italic=0,f=m.width,u&&(d+=m.depth)),p=pe.makeSpan(["accent-body"],[m]);var h=r.label==="\\textcircled";h&&(p.classes.push("accent-full"),d=o.height);var x=s;h||(x-=f/2),p.style.left=Qe(x),r.label==="\\textcircled"&&(p.style.top=".2em"),p=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-d},{type:"elem",elem:p}]},e)}var g=pe.makeSpan(["mord","accent"],[p],e);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]="mord",i):g},Wie=(t,e)=>{var n=t.isStretchy?tm.mathMLnode(t.label):new ze.MathNode("mo",[$c(t.label,t.mode)]),r=new ze.MathNode("mover",[Ir(t.base,e),n]);return r.setAttribute("accent","true"),r},xPe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));lt({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:(t,e)=>{var n=hC(e[0]),r=!xPe.test(t.funcName),i=!r||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Mj,mathmlBuilder:Wie});lt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var n=e[0],r=t.parser.mode;return r==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Mj,mathmlBuilder:Wie});lt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(t,e)=>{var n=Jn(t.base,e),r=tm.svgSpan(t,e),i=t.label==="\\utilde"?.12:0,o=pe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},e);return pe.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(t,e)=>{var n=tm.mathMLnode(t.label),r=new ze.MathNode("munder",[Ir(t.base,e),n]);return r.setAttribute("accentunder","true"),r}});var oC=t=>{var e=new ze.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};lt({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(t,e,n){var{parser:r,funcName:i}=t;return{type:"xArrow",mode:r.mode,label:i,body:e[0],below:n[0]}},htmlBuilder(t,e){var n=e.style,r=e.havingStyle(n.sup()),i=pe.wrapFragment(Jn(t.body,r,e),e),o=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(o+"-arrow-pad");var a;t.below&&(r=e.havingStyle(n.sub()),a=pe.wrapFragment(Jn(t.below,r,e),e),a.classes.push(o+"-arrow-pad"));var s=tm.svgSpan(t,e),l=-e.fontMetrics().axisHeight+.5*s.height,c=-e.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(a){var d=-e.fontMetrics().axisHeight+a.height+.5*s.height+.111;u=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:a,shift:d}]},e)}else u=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),pe.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var n=tm.mathMLnode(t.label);n.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(t.body){var i=oC(Ir(t.body,e));if(t.below){var o=oC(Ir(t.below,e));r=new ze.MathNode("munderover",[n,o,i])}else r=new ze.MathNode("mover",[n,i])}else if(t.below){var a=oC(Ir(t.below,e));r=new ze.MathNode("munder",[n,a])}else r=oC(),r=new ze.MathNode("mover",[n,r]);return r}});var wPe=pe.makeSpan;function Kie(t,e){var n=bo(t.body,e,!0);return wPe([t.mclass],n,e)}function Xie(t,e){var n,r=Gs(t.body,e);return t.mclass==="minner"?n=new ze.MathNode("mpadded",r):t.mclass==="mord"?t.isCharacterBox?(n=r[0],n.type="mi"):n=new ze.MathNode("mi",r):(t.isCharacterBox?(n=r[0],n.type="mo"):n=new ze.MathNode("mo",r),t.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):t.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):t.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}lt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Oi(i),isCharacterBox:rr.isCharacterBox(i)}},htmlBuilder:Kie,mathmlBuilder:Xie});var vC=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};lt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:n}=t;return{type:"mclass",mode:n.mode,mclass:vC(e[0]),body:Oi(e[1]),isCharacterBox:rr.isCharacterBox(e[1])}}});lt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:n,funcName:r}=t,i=e[1],o=e[0],a;r!=="\\stackrel"?a=vC(i):a="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Oi(i)},l={type:"supsub",mode:o.mode,base:s,sup:r==="\\underset"?null:o,sub:r==="\\underset"?o:null};return{type:"mclass",mode:n.mode,mclass:a,body:[l],isCharacterBox:rr.isCharacterBox(l)}},htmlBuilder:Kie,mathmlBuilder:Xie});lt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"pmb",mode:n.mode,mclass:vC(e[0]),body:Oi(e[0])}},htmlBuilder(t,e){var n=bo(t.body,e,!0),r=pe.makeSpan([t.mclass],n,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(t,e){var n=Gs(t.body,e),r=new ze.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var vPe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},die=()=>({type:"styling",body:[],mode:"math",style:"display"}),pie=t=>t.type==="textord"&&t.text==="@",kPe=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function CPe(t,e,n){var r=vPe[t];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:r,mode:"math",family:"rel"},a=n.callFunction("\\Big",[o],[]),s=n.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,a,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function _Pe(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var n=t.fetch().text;if(n==="&"||n==="\\\\")t.consume();else if(n==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Ue("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var r=[],i=[r],o=0;o<e.length;o++){for(var a=e[o],s=die(),l=0;l<a.length;l++)if(!pie(a[l]))s.body.push(a[l]);else{r.push(s),l+=1;var c=Lj(a[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var d=0;d<2;d++){for(var p=!0,m=l+1;m<a.length;m++){if(kPe(a[m],c)){p=!1,l=m;break}if(pie(a[m]))throw new Ue("Missing a "+c+" character to complete a CD arrow.",a[m]);u[d].body.push(a[m])}if(p)throw new Ue("Missing a "+c+" character to complete a CD arrow.",a[l])}else throw new Ue('Expected one of "<>AV=|." after @',a[l]);var f=CPe(c,u,t),h={type:"styling",body:[f],mode:"math",style:"display"};r.push(h),s=die()}o%2===0?r.push(s):r.shift(),r=[],i.push(r)}t.gullet.endGroup(),t.gullet.endGroup();var x=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:x,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}lt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:e[0]}},htmlBuilder(t,e){var n=e.havingStyle(e.style.sup()),r=pe.wrapFragment(Jn(t.label,n,e),e);return r.classes.push("cd-label-"+t.side),r.style.bottom=Qe(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(t,e){var n=new ze.MathNode("mrow",[Ir(t.label,e)]);return n=new ze.MathNode("mpadded",[n]),n.setAttribute("width","0"),t.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ze.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});lt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:n}=t;return{type:"cdlabelparent",mode:n.mode,fragment:e[0]}},htmlBuilder(t,e){var n=pe.wrapFragment(Jn(t.fragment,e),e);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(t,e){return new ze.MathNode("mrow",[Ir(t.fragment,e)])}});lt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:n}=t,r=Tn(e[0],"ordgroup"),i=r.body,o="",a=0;a<i.length;a++){var s=Tn(i[a],"textord");o+=s.text}var l=parseInt(o),c;if(isNaN(l))throw new Ue("\\@char has non-numeric argument "+o);if(l<0||l>=1114111)throw new Ue("\\@char with invalid code point "+o);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var Yie=(t,e)=>{var n=bo(t.body,e.withColor(t.color),!1);return pe.makeFragment(n)},Qie=(t,e)=>{var n=Gs(t.body,e.withColor(t.color)),r=new ze.MathNode("mstyle",n);return r.setAttribute("mathcolor",t.color),r};lt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:n}=t,r=Tn(e[0],"color-token").color,i=e[1];return{type:"color",mode:n.mode,color:r,body:Oi(i)}},htmlBuilder:Yie,mathmlBuilder:Qie});lt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:n,breakOnTokenText:r}=t,i=Tn(e[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:o}},htmlBuilder:Yie,mathmlBuilder:Qie});lt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,n){var{parser:r}=t,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:i&&Tn(i,"size").value}},htmlBuilder(t,e){var n=pe.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=Qe(ci(t.size,e)))),n},mathmlBuilder(t,e){var n=new ze.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",Qe(ci(t.size,e)))),n}});var gj={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Jie=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Ue("Expected a control sequence",t);return e},SPe=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},eoe=(t,e,n,r)=>{var i=t.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,i,r)};lt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:n}=t;e.consumeSpaces();var r=e.fetch();if(gj[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=gj[r.text]),Tn(e.parseFunction(),"internal");throw new Ue("Invalid token after macro prefix",r)}});lt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=e.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ue("Expected a control sequence",r);for(var o=0,a,s=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){a=e.gullet.future(),s[o].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ue('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==o+1)throw new Ue('Argument number "'+r.text+'" out of order');o++,s.push([])}else{if(r.text==="EOF")throw new Ue("Expected a macro definition");s[o].push(r.text)}var{tokens:l}=e.gullet.consumeArg();return a&&l.unshift(a),(n==="\\edef"||n==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:o,delimiters:s},n===gj[n]),{type:"internal",mode:e.mode}}});lt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=Jie(e.gullet.popToken());e.gullet.consumeSpaces();var i=SPe(e);return eoe(e,r,i,n==="\\\\globallet"),{type:"internal",mode:e.mode}}});lt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=Jie(e.gullet.popToken()),i=e.gullet.popToken(),o=e.gullet.popToken();return eoe(e,r,o,n==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var W7=function(e,n,r){var i=Dr.math[e]&&Dr.math[e].replace,o=kj(i||e,n,r);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+n+".");return o},Ej=function(e,n,r,i){var o=r.havingBaseStyle(n),a=pe.makeSpan(i.concat(o.sizingClasses(r)),[e],r),s=o.sizeMultiplier/r.sizeMultiplier;return a.height*=s,a.depth*=s,a.maxFontSize=o.sizeMultiplier,a},toe=function(e,n,r){var i=n.havingBaseStyle(r),o=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Qe(o),e.height-=o,e.depth+=o},LPe=function(e,n,r,i,o,a){var s=pe.makeSymbol(e,"Main-Regular",o,i),l=Ej(s,n,i,a);return r&&toe(l,i,n),l},MPe=function(e,n,r,i){return pe.makeSymbol(e,"Size"+n+"-Regular",r,i)},noe=function(e,n,r,i,o,a){var s=MPe(e,n,o,i),l=Ej(pe.makeSpan(["delimsizing","size"+n],[s],i),Vt.TEXT,i,a);return r&&toe(l,i,Vt.TEXT),l},ej=function(e,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var o=pe.makeSpan(["delimsizinginner",i],[pe.makeSpan([],[pe.makeSymbol(e,n,r)])]);return{type:"elem",elem:o}},tj=function(e,n,r){var i=gd["Size4-Regular"][e.charCodeAt(0)]?gd["Size4-Regular"][e.charCodeAt(0)][4]:gd["Size1-Regular"][e.charCodeAt(0)][4],o=new bd("inner",NNe(e,Math.round(1e3*n))),a=new wu([o],{width:Qe(i),height:Qe(n),style:"width:"+Qe(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=pe.makeSvgSpan([],[a],r);return s.height=n,s.style.height=Qe(n),s.style.width=Qe(i),{type:"elem",elem:s}},bj=.008,aC={type:"kern",size:-1*bj},EPe=["|","\\lvert","\\rvert","\\vert"],TPe=["\\|","\\lVert","\\rVert","\\Vert"],roe=function(e,n,r,i,o,a){var s,l,c,u,d="",p=0;s=c=u=e,l=null;var m="Size1-Regular";e==="\\uparrow"?c=u="\u23D0":e==="\\Uparrow"?c=u="\u2016":e==="\\downarrow"?s=c="\u23D0":e==="\\Downarrow"?s=c="\u2016":e==="\\updownarrow"?(s="\\uparrow",c="\u23D0",u="\\downarrow"):e==="\\Updownarrow"?(s="\\Uparrow",c="\u2016",u="\\Downarrow"):EPe.includes(e)?(c="\u2223",d="vert",p=333):TPe.includes(e)?(c="\u2225",d="doublevert",p=556):e==="["||e==="\\lbrack"?(s="\u23A1",c="\u23A2",u="\u23A3",m="Size4-Regular",d="lbrack",p=667):e==="]"||e==="\\rbrack"?(s="\u23A4",c="\u23A5",u="\u23A6",m="Size4-Regular",d="rbrack",p=667):e==="\\lfloor"||e==="\u230A"?(c=s="\u23A2",u="\u23A3",m="Size4-Regular",d="lfloor",p=667):e==="\\lceil"||e==="\u2308"?(s="\u23A1",c=u="\u23A2",m="Size4-Regular",d="lceil",p=667):e==="\\rfloor"||e==="\u230B"?(c=s="\u23A5",u="\u23A6",m="Size4-Regular",d="rfloor",p=667):e==="\\rceil"||e==="\u2309"?(s="\u23A4",c=u="\u23A5",m="Size4-Regular",d="rceil",p=667):e==="("||e==="\\lparen"?(s="\u239B",c="\u239C",u="\u239D",m="Size4-Regular",d="lparen",p=875):e===")"||e==="\\rparen"?(s="\u239E",c="\u239F",u="\u23A0",m="Size4-Regular",d="rparen",p=875):e==="\\{"||e==="\\lbrace"?(s="\u23A7",l="\u23A8",u="\u23A9",c="\u23AA",m="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(s="\u23AB",l="\u23AC",u="\u23AD",c="\u23AA",m="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(s="\u23A7",u="\u23A9",c="\u23AA",m="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(s="\u23AB",u="\u23AD",c="\u23AA",m="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(s="\u23A7",u="\u23AD",c="\u23AA",m="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(s="\u23AB",u="\u23A9",c="\u23AA",m="Size4-Regular");var f=W7(s,m,o),h=f.height+f.depth,x=W7(c,m,o),g=x.height+x.depth,y=W7(u,m,o),b=y.height+y.depth,w=0,v=1;if(l!==null){var k=W7(l,m,o);w=k.height+k.depth,v=2}var _=h+b+w,L=Math.max(0,Math.ceil((n-_)/(v*g))),S=_+L*v*g,C=i.fontMetrics().axisHeight;r&&(C*=i.sizeMultiplier);var T=S/2-C,M=[];if(d.length>0){var A=S-h-b,$=Math.round(S*1e3),N=PNe(d,Math.round(A*1e3)),F=new bd(d,N),D=(p/1e3).toFixed(3)+"em",O=($/1e3).toFixed(3)+"em",B=new wu([F],{width:D,height:O,viewBox:"0 0 "+p+" "+$}),P=pe.makeSvgSpan([],[B],i);P.height=$/1e3,P.style.width=D,P.style.height=O,M.push({type:"elem",elem:P})}else{if(M.push(ej(u,m,o)),M.push(aC),l===null){var U=S-h-b+2*bj;M.push(tj(c,U,i))}else{var G=(S-h-b-w)/2+2*bj;M.push(tj(c,G,i)),M.push(aC),M.push(ej(l,m,o)),M.push(aC),M.push(tj(c,G,i))}M.push(aC),M.push(ej(s,m,o))}var j=i.havingBaseStyle(Vt.TEXT),V=pe.makeVList({positionType:"bottom",positionData:T,children:M},j);return Ej(pe.makeSpan(["delimsizing","mult"],[V],j),Vt.TEXT,i,a)},nj=80,rj=.08,ij=function(e,n,r,i,o){var a=INe(e,i,r),s=new bd(e,a),l=new wu([s],{width:"400em",height:Qe(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return pe.makeSvgSpan(["hide-tail"],[l],o)},RPe=function(e,n){var r=n.havingBaseSizing(),i=soe("\\surd",e*r.sizeMultiplier,aoe,r),o=r.sizeMultiplier,a=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,d;return i.type==="small"?(u=1e3+1e3*a+nj,e<1?o=1:e<1.4&&(o=.7),l=(1+a+rj)/o,c=(1+a)/o,s=ij("sqrtMain",l,u,a,n),s.style.minWidth="0.853em",d=.833/o):i.type==="large"?(u=(1e3+nj)*K7[i.size],c=(K7[i.size]+a)/o,l=(K7[i.size]+a+rj)/o,s=ij("sqrtSize"+i.size,l,u,a,n),s.style.minWidth="1.02em",d=1/o):(l=e+a+rj,c=e+a,u=Math.floor(1e3*e+a)+nj,s=ij("sqrtTall",l,u,a,n),s.style.minWidth="0.742em",d=1.056),s.height=c,s.style.height=Qe(l),{span:s,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+a)*o}},ioe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],APe=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ooe=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],K7=[0,1.2,1.8,2.4,3],$Pe=function(e,n,r,i,o){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),ioe.includes(e)||ooe.includes(e))return noe(e,n,!1,r,i,o);if(APe.includes(e))return roe(e,K7[n],!1,r,i,o);throw new Ue("Illegal delimiter: '"+e+"'")},IPe=[{type:"small",style:Vt.SCRIPTSCRIPT},{type:"small",style:Vt.SCRIPT},{type:"small",style:Vt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],NPe=[{type:"small",style:Vt.SCRIPTSCRIPT},{type:"small",style:Vt.SCRIPT},{type:"small",style:Vt.TEXT},{type:"stack"}],aoe=[{type:"small",style:Vt.SCRIPTSCRIPT},{type:"small",style:Vt.SCRIPT},{type:"small",style:Vt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],PPe=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},soe=function(e,n,r,i){for(var o=Math.min(2,3-i.style.size),a=o;a<r.length&&r[a].type!=="stack";a++){var s=W7(e,PPe(r[a]),"math"),l=s.height+s.depth;if(r[a].type==="small"){var c=i.havingBaseStyle(r[a].style);l*=c.sizeMultiplier}if(l>n)return r[a]}return r[r.length-1]},loe=function(e,n,r,i,o,a){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var s;ooe.includes(e)?s=IPe:ioe.includes(e)?s=aoe:s=NPe;var l=soe(e,n,s,i);return l.type==="small"?LPe(e,l.style,r,i,o,a):l.type==="large"?noe(e,l.size,r,i,o,a):roe(e,n,r,i,o,a)},jPe=function(e,n,r,i,o,a){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-s,r+s),d=Math.max(u/500*l,2*u-c);return loe(e,d,!0,i,o,a)},Jp={sqrtImage:RPe,sizedDelim:$Pe,sizeToMaxHeight:K7,customSizedDelim:loe,leftRightDelim:jPe},mie={"\\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}},OPe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function kC(t,e){var n=wC(t);if(n&&OPe.includes(n.text))return n;throw n?new Ue("Invalid delimiter '"+n.text+"' after '"+e.funcName+"'",t):new Ue("Invalid delimiter type '"+t.type+"'",t)}lt({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:(t,e)=>{var n=kC(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:mie[t.funcName].size,mclass:mie[t.funcName].mclass,delim:n.text}},htmlBuilder:(t,e)=>t.delim==="."?pe.makeSpan([t.mclass]):Jp.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push($c(t.delim,t.mode));var n=new ze.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Qe(Jp.sizeToMaxHeight[t.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function fie(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}lt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=t.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ue("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:kC(e[0],t).text,color:n}}});lt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=kC(e[0],t),r=t.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=Tn(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(t,e)=>{fie(t);for(var n=bo(t.body,e,!0,["mopen","mclose"]),r=0,i=0,o=!1,a=0;a<n.length;a++)n[a].isMiddle?o=!0:(r=Math.max(n[a].height,r),i=Math.max(n[a].depth,i));r*=e.sizeMultiplier,i*=e.sizeMultiplier;var s;if(t.left==="."?s=e6(e,["mopen"]):s=Jp.leftRightDelim(t.left,r,i,e,t.mode,["mopen"]),n.unshift(s),o)for(var l=1;l<n.length;l++){var c=n[l],u=c.isMiddle;u&&(n[l]=Jp.leftRightDelim(u.delim,r,i,u.options,t.mode,[]))}var d;if(t.right===".")d=e6(e,["mclose"]);else{var p=t.rightColor?e.withColor(t.rightColor):e;d=Jp.leftRightDelim(t.right,r,i,p,t.mode,["mclose"])}return n.push(d),pe.makeSpan(["minner"],n,e)},mathmlBuilder:(t,e)=>{fie(t);var n=Gs(t.body,e);if(t.left!=="."){var r=new ze.MathNode("mo",[$c(t.left,t.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(t.right!=="."){var i=new ze.MathNode("mo",[$c(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),n.push(i)}return _j(n)}});lt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=kC(e[0],t);if(!t.parser.leftrightDepth)throw new Ue("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:(t,e)=>{var n;if(t.delim===".")n=e6(e,[]);else{n=Jp.sizedDelim(t.delim,1,e,t.mode,[]);var r={delim:t.delim,options:e};n.isMiddle=r}return n},mathmlBuilder:(t,e)=>{var n=t.delim==="\\vert"||t.delim==="|"?$c("|","text"):$c(t.delim,t.mode),r=new ze.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var Tj=(t,e)=>{var n=pe.wrapFragment(Jn(t.body,e),e),r=t.label.slice(1),i=e.sizeMultiplier,o,a=0,s=rr.isCharacterBox(t.body);if(r==="sout")o=pe.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/i,a=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var l=ci({number:.6,unit:"pt"},e),c=ci({number:.35,unit:"ex"},e),u=e.havingBaseSizing();i=i/u.sizeMultiplier;var d=n.height+n.depth+l+c;n.style.paddingLeft=Qe(d/2+l);var p=Math.floor(1e3*d*i),m=ANe(p),f=new wu([new bd("phase",m)],{width:"400em",height:Qe(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});o=pe.makeSvgSpan(["hide-tail"],[f],e),o.style.height=Qe(d),a=n.depth+l+c}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var h=0,x=0,g=0;/box/.test(r)?(g=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),h=e.fontMetrics().fboxsep+(r==="colorbox"?0:g),x=h):r==="angl"?(g=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),h=4*g,x=Math.max(0,.25-n.depth)):(h=s?.2:0,x=h),o=tm.encloseSpan(n,r,h,x,e),/fbox|boxed|fcolorbox/.test(r)?(o.style.borderStyle="solid",o.style.borderWidth=Qe(g)):r==="angl"&&g!==.049&&(o.style.borderTopWidth=Qe(g),o.style.borderRightWidth=Qe(g)),a=n.depth+x,t.backgroundColor&&(o.style.backgroundColor=t.backgroundColor,t.borderColor&&(o.style.borderColor=t.borderColor))}var y;if(t.backgroundColor)y=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:a},{type:"elem",elem:n,shift:0}]},e);else{var b=/cancel|phase/.test(r)?["svg-align"]:[];y=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:o,shift:a,wrapperClasses:b}]},e)}return/cancel/.test(r)&&(y.height=n.height,y.depth=n.depth),/cancel/.test(r)&&!s?pe.makeSpan(["mord","cancel-lap"],[y],e):pe.makeSpan(["mord"],[y],e)},Rj=(t,e)=>{var n=0,r=new ze.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ir(t.body,e)]);switch(t.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=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&r.setAttribute("mathbackground",t.backgroundColor),r};lt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,n){var{parser:r,funcName:i}=t,o=Tn(e[0],"color-token").color,a=e[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,body:a}},htmlBuilder:Tj,mathmlBuilder:Rj});lt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,n){var{parser:r,funcName:i}=t,o=Tn(e[0],"color-token").color,a=Tn(e[1],"color-token").color,s=e[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:Tj,mathmlBuilder:Rj});lt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}});lt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:Tj,mathmlBuilder:Rj});lt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\angl",body:e[0]}}});var coe={};function yd(t){for(var{type:e,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:a}=t,s={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)coe[n[l]]=s;o&&(mC[e]=o),a&&(fC[e]=a)}var uoe={};function q(t,e){uoe[t]=e}function hie(t){var e=[];t.consumeSpaces();var n=t.fetch().text;for(n==="\\relax"&&(t.consume(),t.consumeSpaces(),n=t.fetch().text);n==="\\hline"||n==="\\hdashline";)t.consume(),e.push(n==="\\hdashline"),t.consumeSpaces(),n=t.fetch().text;return e}var CC=t=>{var e=t.parser.settings;if(!e.displayMode)throw new Ue("{"+t.envName+"} can be used only in display mode.")};function Aj(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function p1(t,e,n){var{hskipBeforeAndAfter:r,addJot:i,cols:o,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:p}=e;if(t.gullet.beginGroup(),c||t.gullet.macros.set("\\cr","\\\\\\relax"),!a){var m=t.gullet.expandMacroAsText("\\arraystretch");if(m==null)a=1;else if(a=parseFloat(m),!a||a<0)throw new Ue("Invalid \\arraystretch: "+m)}t.gullet.beginGroup();var f=[],h=[f],x=[],g=[],y=l!=null?[]:void 0;function b(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(t.gullet.macros.get("\\df@tag")?(y.push(t.subparse([new $l("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(b(),g.push(hie(t));;){var v=t.parseExpression(!1,c?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),v={type:"ordgroup",mode:t.mode,body:v},n&&(v={type:"styling",mode:t.mode,style:n,body:[v]}),f.push(v);var k=t.fetch().text;if(k==="&"){if(d&&f.length===d){if(c||s)throw new Ue("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(k==="\\end"){w(),f.length===1&&v.type==="styling"&&v.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),g.length<h.length+1&&g.push([]);break}else if(k==="\\\\"){t.consume();var _=void 0;t.gullet.future().text!==" "&&(_=t.parseSizeGroup(!0)),x.push(_?_.value:null),w(),g.push(hie(t)),f=[],h.push(f),b()}else throw new Ue("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:i,arraystretch:a,body:h,cols:o,rowGaps:x,hskipBeforeAndAfter:r,hLinesBeforeRow:g,colSeparationType:s,tags:y,leqno:p}}function $j(t){return t.slice(0,1)==="d"?"display":"text"}var xd=function(e,n){var r,i,o=e.body.length,a=e.hLinesBeforeRow,s=0,l=new Array(o),c=[],u=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),d=1/n.fontMetrics().ptPerEm,p=5*d;if(e.colSeparationType&&e.colSeparationType==="small"){var m=n.havingStyle(Vt.SCRIPT).sizeMultiplier;p=.2778*(m/n.sizeMultiplier)}var f=e.colSeparationType==="CD"?ci({number:3,unit:"ex"},n):12*d,h=3*d,x=e.arraystretch*f,g=.7*x,y=.3*x,b=0;function w(Se){for(var de=0;de<Se.length;++de)de>0&&(b+=.25),c.push({pos:b,isDashed:Se[de]})}for(w(a[0]),r=0;r<e.body.length;++r){var v=e.body[r],k=g,_=y;s<v.length&&(s=v.length);var L=new Array(v.length);for(i=0;i<v.length;++i){var S=Jn(v[i],n);_<S.depth&&(_=S.depth),k<S.height&&(k=S.height),L[i]=S}var C=e.rowGaps[r],T=0;C&&(T=ci(C,n),T>0&&(T+=y,_<T&&(_=T),T=0)),e.addJot&&(_+=h),L.height=k,L.depth=_,b+=k,L.pos=b,b+=_+T,l[r]=L,w(a[r+1])}var M=b/2+n.fontMetrics().axisHeight,A=e.cols||[],$=[],N,F,D=[];if(e.tags&&e.tags.some(Se=>Se))for(r=0;r<o;++r){var O=l[r],B=O.pos-M,P=e.tags[r],U=void 0;P===!0?U=pe.makeSpan(["eqn-num"],[],n):P===!1?U=pe.makeSpan([],[],n):U=pe.makeSpan([],bo(P,n,!0),n),U.depth=O.depth,U.height=O.height,D.push({type:"elem",elem:U,shift:B})}for(i=0,F=0;i<s||F<A.length;++i,++F){for(var G=A[F]||{},j=!0;G.type==="separator";){if(j||(N=pe.makeSpan(["arraycolsep"],[]),N.style.width=Qe(n.fontMetrics().doubleRuleSep),$.push(N)),G.separator==="|"||G.separator===":"){var V=G.separator==="|"?"solid":"dashed",H=pe.makeSpan(["vertical-separator"],[],n);H.style.height=Qe(b),H.style.borderRightWidth=Qe(u),H.style.borderRightStyle=V,H.style.margin="0 "+Qe(-u/2);var ne=b-M;ne&&(H.style.verticalAlign=Qe(-ne)),$.push(H)}else throw new Ue("Invalid separator type: "+G.separator);F++,G=A[F]||{},j=!1}if(!(i>=s)){var J=void 0;(i>0||e.hskipBeforeAndAfter)&&(J=rr.deflt(G.pregap,p),J!==0&&(N=pe.makeSpan(["arraycolsep"],[]),N.style.width=Qe(J),$.push(N)));var W=[];for(r=0;r<o;++r){var ie=l[r],Z=ie[i];if(Z){var ce=ie.pos-M;Z.depth=ie.depth,Z.height=ie.height,W.push({type:"elem",elem:Z,shift:ce})}}W=pe.makeVList({positionType:"individualShift",children:W},n),W=pe.makeSpan(["col-align-"+(G.align||"c")],[W]),$.push(W),(i<s-1||e.hskipBeforeAndAfter)&&(J=rr.deflt(G.postgap,p),J!==0&&(N=pe.makeSpan(["arraycolsep"],[]),N.style.width=Qe(J),$.push(N)))}}if(l=pe.makeSpan(["mtable"],$),c.length>0){for(var se=pe.makeLineSpan("hline",n,u),be=pe.makeLineSpan("hdashline",n,u),le=[{type:"elem",elem:l,shift:0}];c.length>0;){var ge=c.pop(),ke=ge.pos-M;ge.isDashed?le.push({type:"elem",elem:be,shift:ke}):le.push({type:"elem",elem:se,shift:ke})}l=pe.makeVList({positionType:"individualShift",children:le},n)}if(D.length===0)return pe.makeSpan(["mord"],[l],n);var me=pe.makeVList({positionType:"individualShift",children:D},n);return me=pe.makeSpan(["tag"],[me],n),pe.makeFragment([l,me])},DPe={c:"center ",l:"left ",r:"right "},wd=function(e,n){for(var r=[],i=new ze.MathNode("mtd",[],["mtr-glue"]),o=new ze.MathNode("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var s=e.body[a],l=[],c=0;c<s.length;c++)l.push(new ze.MathNode("mtd",[Ir(s[c],n)]));e.tags&&e.tags[a]&&(l.unshift(i),l.push(i),e.leqno?l.unshift(o):l.push(o)),r.push(new ze.MathNode("mtr",l))}var u=new ze.MathNode("mtable",r),d=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",Qe(d));var p="",m="";if(e.cols&&e.cols.length>0){var f=e.cols,h="",x=!1,g=0,y=f.length;f[0].type==="separator"&&(p+="top ",g=1),f[f.length-1].type==="separator"&&(p+="bottom ",y-=1);for(var b=g;b<y;b++)f[b].type==="align"?(m+=DPe[f[b].align],x&&(h+="none "),x=!0):f[b].type==="separator"&&x&&(h+=f[b].separator==="|"?"solid ":"dashed ",x=!1);u.setAttribute("columnalign",m.trim()),/[sd]/.test(h)&&u.setAttribute("columnlines",h.trim())}if(e.colSeparationType==="align"){for(var w=e.cols||[],v="",k=1;k<w.length;k++)v+=k%2?"0em ":"1em ";u.setAttribute("columnspacing",v.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var _="",L=e.hLinesBeforeRow;p+=L[0].length>0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var S=1;S<L.length-1;S++)_+=L[S].length===0?"none ":L[S][0]?"dashed ":"solid ";return/[sd]/.test(_)&&u.setAttribute("rowlines",_.trim()),p!==""&&(u=new ze.MathNode("menclose",[u]),u.setAttribute("notation",p.trim())),e.arraystretch&&e.arraystretch<1&&(u=new ze.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},doe=function(e,n){e.envName.indexOf("ed")===-1&&CC(e);var r=[],i=e.envName.indexOf("at")>-1?"alignat":"align",o=e.envName==="split",a=p1(e.parser,{cols:r,addJot:!0,autoTag:o?void 0:Aj(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),s,l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",d=0;d<n[0].body.length;d++){var p=Tn(n[0].body[d],"textord");u+=p.text}s=Number(u),l=s*2}var m=!l;a.body.forEach(function(g){for(var y=1;y<g.length;y+=2){var b=Tn(g[y],"styling"),w=Tn(b.body[0],"ordgroup");w.body.unshift(c)}if(m)l<g.length&&(l=g.length);else{var v=g.length/2;if(s<v)throw new Ue("Too many math in a row: "+("expected "+s+", but got "+v),g[0])}});for(var f=0;f<l;++f){var h="r",x=0;f%2===1?h="l":f>0&&m&&(x=1),r[f]={type:"align",align:h,pregap:x,postgap:0}}return a.colSeparationType=m?"align":"alignat",a};yd({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var n=wC(e[0]),r=n?[e[0]]:Tn(e[0],"ordgroup").body,i=r.map(function(a){var s=Lj(a),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ue("Unknown column alignment: "+l,a)}),o={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return p1(t.parser,o,$j(t.envName))},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Ue("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var o=p1(t.parser,r,$j(t.envName)),a=Math.max(0,...o.body.map(s=>s.length));return o.cols=new Array(a).fill({type:"align",align:n}),e?{type:"leftright",mode:t.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},n=p1(t.parser,e,"script");return n.colSeparationType="small",n},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var n=wC(e[0]),r=n?[e[0]]:Tn(e[0],"ordgroup").body,i=r.map(function(a){var s=Lj(a),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ue("Unknown column alignment: "+l,a)});if(i.length>1)throw new Ue("{subarray} can contain only one column");var o={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=p1(t.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Ue("{subarray} can contain only one column");return o},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=p1(t.parser,e,$j(t.envName));return{type:"leftright",mode:t.mode,body:[n],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:doe,htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){["gather","gather*"].includes(t.envName)&&CC(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Aj(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return p1(t.parser,e,"display")},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:doe,htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){CC(t);var e={autoTag:Aj(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return p1(t.parser,e,"display")},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["CD"],props:{numArgs:0},handler(t){return CC(t),_Pe(t.parser)},htmlBuilder:xd,mathmlBuilder:wd});q("\\nonumber","\\gdef\\@eqnsw{0}");q("\\notag","\\nonumber");lt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Ue(t.funcName+" valid only within array environment")}});var gie=coe;lt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];if(i.type!=="ordgroup")throw new Ue("Invalid environment name",i);for(var o="",a=0;a<i.body.length;++a)o+=Tn(i.body[a],"textord").text;if(r==="\\begin"){if(!gie.hasOwnProperty(o))throw new Ue("No such environment: "+o,i);var s=gie[o],{args:l,optArgs:c}=n.parseArguments("\\begin{"+o+"}",s),u={mode:n.mode,envName:o,parser:n},d=s.handler(u,l,c);n.expect("\\end",!1);var p=n.nextToken,m=Tn(n.parseFunction(),"environment");if(m.name!==o)throw new Ue("Mismatch: \\begin{"+o+"} matched by \\end{"+m.name+"}",p);return d}return{type:"environment",mode:n.mode,name:o,nameGroup:i}}});var poe=(t,e)=>{var n=t.font,r=e.withFont(n);return Jn(t.body,r)},moe=(t,e)=>{var n=t.font,r=e.withFont(n);return Ir(t.body,r)},bie={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};lt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=hC(e[0]),o=r;return o in bie&&(o=bie[o]),{type:"font",mode:n.mode,font:o.slice(1),body:i}},htmlBuilder:poe,mathmlBuilder:moe});lt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:n}=t,r=e[0],i=rr.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:vC(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});lt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,breakOnTokenText:i}=t,{mode:o}=n,a=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:o,font:s,body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:poe,mathmlBuilder:moe});var foe=(t,e)=>{var n=e;return t==="display"?n=n.id>=Vt.SCRIPT.id?n.text():Vt.DISPLAY:t==="text"&&n.size===Vt.DISPLAY.size?n=Vt.TEXT:t==="script"?n=Vt.SCRIPT:t==="scriptscript"&&(n=Vt.SCRIPTSCRIPT),n},Ij=(t,e)=>{var n=foe(t.size,e.style),r=n.fracNum(),i=n.fracDen(),o;o=e.havingStyle(r);var a=Jn(t.numer,o,e);if(t.continued){var s=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}o=e.havingStyle(i);var c=Jn(t.denom,o,e),u,d,p;t.hasBarLine?(t.barSize?(d=ci(t.barSize,e),u=pe.makeLineSpan("frac-line",e,d)):u=pe.makeLineSpan("frac-line",e),d=u.height,p=u.height):(u=null,d=0,p=e.fontMetrics().defaultRuleThickness);var m,f,h;n.size===Vt.DISPLAY.size||t.size==="display"?(m=e.fontMetrics().num1,d>0?f=3*p:f=7*p,h=e.fontMetrics().denom1):(d>0?(m=e.fontMetrics().num2,f=p):(m=e.fontMetrics().num3,f=3*p),h=e.fontMetrics().denom2);var x;if(u){var y=e.fontMetrics().axisHeight;m-a.depth-(y+.5*d)<f&&(m+=f-(m-a.depth-(y+.5*d))),y-.5*d-(c.height-h)<f&&(h+=f-(y-.5*d-(c.height-h)));var b=-(y-.5*d);x=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:h},{type:"elem",elem:u,shift:b},{type:"elem",elem:a,shift:-m}]},e)}else{var g=m-a.depth-(c.height-h);g<f&&(m+=.5*(f-g),h+=.5*(f-g)),x=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:h},{type:"elem",elem:a,shift:-m}]},e)}o=e.havingStyle(n),x.height*=o.sizeMultiplier/e.sizeMultiplier,x.depth*=o.sizeMultiplier/e.sizeMultiplier;var w;n.size===Vt.DISPLAY.size?w=e.fontMetrics().delim1:n.size===Vt.SCRIPTSCRIPT.size?w=e.havingStyle(Vt.SCRIPT).fontMetrics().delim2:w=e.fontMetrics().delim2;var v,k;return t.leftDelim==null?v=e6(e,["mopen"]):v=Jp.customSizedDelim(t.leftDelim,w,!0,e.havingStyle(n),t.mode,["mopen"]),t.continued?k=pe.makeSpan([]):t.rightDelim==null?k=e6(e,["mclose"]):k=Jp.customSizedDelim(t.rightDelim,w,!0,e.havingStyle(n),t.mode,["mclose"]),pe.makeSpan(["mord"].concat(o.sizingClasses(e)),[v,pe.makeSpan(["mfrac"],[x]),k],e)},Nj=(t,e)=>{var n=new ze.MathNode("mfrac",[Ir(t.numer,e),Ir(t.denom,e)]);if(!t.hasBarLine)n.setAttribute("linethickness","0px");else if(t.barSize){var r=ci(t.barSize,e);n.setAttribute("linethickness",Qe(r))}var i=foe(t.size,e.style);if(i.size!==e.style.size){n=new ze.MathNode("mstyle",[n]);var o=i.size===Vt.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var s=new ze.MathNode("mo",[new ze.TextNode(t.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),t.rightDelim!=null){var l=new ze.MathNode("mo",[new ze.TextNode(t.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return _j(a)}return n};lt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],o=e[1],a,s=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,s="(",l=")";break;case"\\\\bracefrac":a=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":a=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:o,hasBarLine:a,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:Ij,mathmlBuilder:Nj});lt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],o=e[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});lt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:n,token:r}=t,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:r}}});var yie=["display","text","script","scriptscript"],xie=function(e){var n=null;return e.length>0&&(n=e,n=n==="."?null:n),n};lt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:n}=t,r=e[4],i=e[5],o=hC(e[0]),a=o.type==="atom"&&o.family==="open"?xie(o.text):null,s=hC(e[1]),l=s.type==="atom"&&s.family==="close"?xie(s.text):null,c=Tn(e[2],"size"),u,d=null;c.isBlank?u=!0:(d=c.value,u=d.number>0);var p="auto",m=e[3];if(m.type==="ordgroup"){if(m.body.length>0){var f=Tn(m.body[0],"textord");p=yie[Number(f.text)]}}else m=Tn(m,"textord"),p=yie[Number(m.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:a,rightDelim:l,size:p}},htmlBuilder:Ij,mathmlBuilder:Nj});lt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:n,funcName:r,token:i}=t;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Tn(e[0],"size").value,token:i}}});lt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],o=gNe(Tn(e[1],"infix").size),a=e[2],s=o.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:a,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ij,mathmlBuilder:Nj});var hoe=(t,e)=>{var n=e.style,r,i;t.type==="supsub"?(r=t.sup?Jn(t.sup,e.havingStyle(n.sup()),e):Jn(t.sub,e.havingStyle(n.sub()),e),i=Tn(t.base,"horizBrace")):i=Tn(t,"horizBrace");var o=Jn(i.base,e.havingBaseStyle(Vt.DISPLAY)),a=tm.svgSpan(i,e),s;if(i.isOver?(s=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},e),s.children[0].children[0].children[1].classes.push("svg-align")):(s=pe.makeVList({positionType:"bottom",positionData:o.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},e),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=pe.makeSpan(["mord",i.isOver?"mover":"munder"],[s],e);i.isOver?s=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},e):s=pe.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return pe.makeSpan(["mord",i.isOver?"mover":"munder"],[s],e)},FPe=(t,e)=>{var n=tm.mathMLnode(t.label);return new ze.MathNode(t.isOver?"mover":"munder",[Ir(t.base,e),n])};lt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:hoe,mathmlBuilder:FPe});lt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[1],i=Tn(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Oi(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var n=bo(t.body,e,!1);return pe.makeAnchor(t.href,[],n,e)},mathmlBuilder:(t,e)=>{var n=d1(t.body,e);return n instanceof ts||(n=new ts("mrow",[n])),n.setAttribute("href",t.href),n}});lt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=Tn(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],o=0;o<r.length;o++){var a=r[o];a==="~"&&(a="\\textasciitilde"),i.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:Oi(s)}}});lt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(t,e){var{parser:n}=t;return{type:"hbox",mode:n.mode,body:Oi(e[0])}},htmlBuilder(t,e){var n=bo(t.body,e,!1);return pe.makeFragment(n)},mathmlBuilder(t,e){return new ze.MathNode("mrow",Gs(t.body,e))}});lt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,token:i}=t,o=Tn(e[0],"raw").string,a=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=o,s={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,s={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,s={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var c=o.split(","),u=0;u<c.length;u++){var d=c[u].split("=");if(d.length!==2)throw new Ue("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:Oi(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(t,e)=>{var n=bo(t.body,e,!1),r=["enclosing"];t.attributes.class&&r.push(...t.attributes.class.trim().split(/\s+/));var i=pe.makeSpan(r,n,e);for(var o in t.attributes)o!=="class"&&t.attributes.hasOwnProperty(o)&&i.setAttribute(o,t.attributes[o]);return i},mathmlBuilder:(t,e)=>d1(t.body,e)});lt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"htmlmathml",mode:n.mode,html:Oi(e[0]),mathml:Oi(e[1])}},htmlBuilder:(t,e)=>{var n=bo(t.html,e,!1);return pe.makeFragment(n)},mathmlBuilder:(t,e)=>d1(t.mathml,e)});var oj=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!n)throw new Ue("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Nie(r))throw new Ue("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};lt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,n)=>{var{parser:r}=t,i={number:0,unit:"em"},o={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(n[0])for(var l=Tn(n[0],"raw").string,c=l.split(","),u=0;u<c.length;u++){var d=c[u].split("=");if(d.length===2){var p=d[1].trim();switch(d[0].trim()){case"alt":s=p;break;case"width":i=oj(p);break;case"height":o=oj(p);break;case"totalheight":a=oj(p);break;default:throw new Ue("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var m=Tn(e[0],"url").url;return s===""&&(s=m,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:o,totalheight:a,src:m}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var n=ci(t.height,e),r=0;t.totalheight.number>0&&(r=ci(t.totalheight,e)-n);var i=0;t.width.number>0&&(i=ci(t.width,e));var o={height:Qe(n+r)};i>0&&(o.width=Qe(i)),r>0&&(o.verticalAlign=Qe(-r));var a=new dj(t.src,t.alt,o);return a.height=n,a.depth=r,a},mathmlBuilder:(t,e)=>{var n=new ze.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var r=ci(t.height,e),i=0;if(t.totalheight.number>0&&(i=ci(t.totalheight,e)-r,n.setAttribute("valign",Qe(-i))),n.setAttribute("height",Qe(r+i)),t.width.number>0){var o=ci(t.width,e);n.setAttribute("width",Qe(o))}return n.setAttribute("src",t.src),n}});lt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,i=Tn(e[0],"size");if(n.settings.strict){var o=r[1]==="m",a=i.value.unit==="mu";o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(t,e){return pe.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var n=ci(t.dimension,e);return new ze.SpaceNode(n)}});lt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(t,e)=>{var n;t.alignment==="clap"?(n=pe.makeSpan([],[Jn(t.body,e)]),n=pe.makeSpan(["inner"],[n],e)):n=pe.makeSpan(["inner"],[Jn(t.body,e)]);var r=pe.makeSpan(["fix"],[]),i=pe.makeSpan([t.alignment],[n,r],e),o=pe.makeSpan(["strut"]);return o.style.height=Qe(i.height+i.depth),i.depth&&(o.style.verticalAlign=Qe(-i.depth)),i.children.unshift(o),i=pe.makeSpan(["thinbox"],[i],e),pe.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var n=new ze.MathNode("mpadded",[Ir(t.body,e)]);if(t.alignment!=="rlap"){var r=t.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});lt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:n,parser:r}=t,i=r.mode;r.switchMode("math");var o=n==="\\("?"\\)":"$",a=r.parseExpression(!1,o);return r.expect(o),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:a}}});lt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Ue("Mismatched "+t.funcName)}});var wie=(t,e)=>{switch(e.style.size){case Vt.DISPLAY.size:return t.display;case Vt.TEXT.size:return t.text;case Vt.SCRIPT.size:return t.script;case Vt.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};lt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"mathchoice",mode:n.mode,display:Oi(e[0]),text:Oi(e[1]),script:Oi(e[2]),scriptscript:Oi(e[3])}},htmlBuilder:(t,e)=>{var n=wie(t,e),r=bo(n,e,!1);return pe.makeFragment(r)},mathmlBuilder:(t,e)=>{var n=wie(t,e);return d1(n,e)}});var goe=(t,e,n,r,i,o,a)=>{t=pe.makeSpan([],[t]);var s=n&&rr.isCharacterBox(n),l,c;if(e){var u=Jn(e,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Jn(n,r.havingStyle(i.sub()),r);l={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var p;if(c&&l){var m=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+a;p=pe.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qe(-o)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Qe(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var f=t.height-a;p=pe.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qe(-o)},{type:"kern",size:l.kern},{type:"elem",elem:t}]},r)}else if(c){var h=t.depth+a;p=pe.makeVList({positionType:"bottom",positionData:h,children:[{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Qe(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return t;var x=[p];if(l&&o!==0&&!s){var g=pe.makeSpan(["mspace"],[],r);g.style.marginRight=Qe(o),x.unshift(g)}return pe.makeSpan(["mop","op-limits"],x,r)},boe=["\\smallint"],u2=(t,e)=>{var n,r,i=!1,o;t.type==="supsub"?(n=t.sup,r=t.sub,o=Tn(t.base,"op"),i=!0):o=Tn(t,"op");var a=e.style,s=!1;a.size===Vt.DISPLAY.size&&o.symbol&&!boe.includes(o.name)&&(s=!0);var l;if(o.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(u=o.name.slice(1),o.name=u==="oiint"?"\\iint":"\\iiint"),l=pe.makeSymbol(o.name,c,"math",e,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var d=l.italic,p=pe.staticSvg(u+"Size"+(s?"2":"1"),e);l=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:s?.08:0}]},e),o.name="\\"+u,l.classes.unshift("mop"),l.italic=d}}else if(o.body){var m=bo(o.body,e,!0);m.length===1&&m[0]instanceof Hs?(l=m[0],l.classes[0]="mop"):l=pe.makeSpan(["mop"],m,e)}else{for(var f=[],h=1;h<o.name.length;h++)f.push(pe.mathsym(o.name[h],o.mode,e));l=pe.makeSpan(["mop"],f,e)}var x=0,g=0;return(l instanceof Hs||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(x=(l.height-l.depth)/2-e.fontMetrics().axisHeight,g=l.italic),i?goe(l,n,r,e,a,g,x):(x&&(l.style.position="relative",l.style.top=Qe(x)),l)},t6=(t,e)=>{var n;if(t.symbol)n=new ts("mo",[$c(t.name,t.mode)]),boe.includes(t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new ts("mo",Gs(t.body,e));else{n=new ts("mi",[new Ac(t.name.slice(1))]);var r=new ts("mo",[$c("\u2061","text")]);t.parentIsSupSub?n=new ts("mrow",[n,r]):n=Uie([n,r])}return n},BPe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};lt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=r;return i.length===1&&(i=BPe[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:u2,mathmlBuilder:t6});lt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Oi(r)}},htmlBuilder:u2,mathmlBuilder:t6});var zPe={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};lt({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(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:u2,mathmlBuilder:t6});lt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:u2,mathmlBuilder:t6});lt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t,r=n;return r.length===1&&(r=zPe[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:u2,mathmlBuilder:t6});var yoe=(t,e)=>{var n,r,i=!1,o;t.type==="supsub"?(n=t.sup,r=t.sub,o=Tn(t.base,"operatorname"),i=!0):o=Tn(t,"operatorname");var a;if(o.body.length>0){for(var s=o.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),l=bo(s,e.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof Hs&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=pe.makeSpan(["mop"],l,e)}else a=pe.makeSpan(["mop"],[],e);return i?goe(a,n,r,e,e.style,0,0):a},qPe=(t,e)=>{for(var n=Gs(t.body,e.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var o=n[i];if(!(o instanceof ze.SpaceNode))if(o instanceof ze.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var a=o.children[0];o.children.length===1&&a instanceof ze.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var s=n.map(u=>u.toText()).join("");n=[new ze.TextNode(s)]}var l=new ze.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new ze.MathNode("mo",[$c("\u2061","text")]);return t.parentIsSupSub?new ze.MathNode("mrow",[l,c]):ze.newDocumentFragment([l,c])};lt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"operatorname",mode:n.mode,body:Oi(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:yoe,mathmlBuilder:qPe});q("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");T0({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?pe.makeFragment(bo(t.body,e,!1)):pe.makeSpan(["mord"],bo(t.body,e,!0),e)},mathmlBuilder(t,e){return d1(t.body,e,!0)}});lt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:n}=t,r=e[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(t,e){var n=Jn(t.body,e.havingCrampedStyle()),r=pe.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,o=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},e);return pe.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(t,e){var n=new ze.MathNode("mo",[new ze.TextNode("\u203E")]);n.setAttribute("stretchy","true");var r=new ze.MathNode("mover",[Ir(t.body,e),n]);return r.setAttribute("accent","true"),r}});lt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"phantom",mode:n.mode,body:Oi(r)}},htmlBuilder:(t,e)=>{var n=bo(t.body,e.withPhantom(),!1);return pe.makeFragment(n)},mathmlBuilder:(t,e)=>{var n=Gs(t.body,e);return new ze.MathNode("mphantom",n)}});lt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=pe.makeSpan([],[Jn(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e),pe.makeSpan(["mord"],[n],e)},mathmlBuilder:(t,e)=>{var n=Gs(Oi(t.body),e),r=new ze.MathNode("mphantom",n),i=new ze.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});lt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=pe.makeSpan(["inner"],[Jn(t.body,e.withPhantom())]),r=pe.makeSpan(["fix"],[]);return pe.makeSpan(["mord","rlap"],[n,r],e)},mathmlBuilder:(t,e)=>{var n=Gs(Oi(t.body),e),r=new ze.MathNode("mphantom",n),i=new ze.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});lt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t,r=Tn(e[0],"size").value,i=e[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(t,e){var n=Jn(t.body,e),r=ci(t.dy,e);return pe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){var n=new ze.MathNode("mpadded",[Ir(t.body,e)]),r=t.dy.number+t.dy.unit;return n.setAttribute("voffset",r),n}});lt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});lt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,n){var{parser:r}=t,i=n[0],o=Tn(e[0],"size"),a=Tn(e[1],"size");return{type:"rule",mode:r.mode,shift:i&&Tn(i,"size").value,width:o.value,height:a.value}},htmlBuilder(t,e){var n=pe.makeSpan(["mord","rule"],[],e),r=ci(t.width,e),i=ci(t.height,e),o=t.shift?ci(t.shift,e):0;return n.style.borderRightWidth=Qe(r),n.style.borderTopWidth=Qe(i),n.style.bottom=Qe(o),n.width=r,n.height=i+o,n.depth=-o,n.maxFontSize=i*1.125*e.sizeMultiplier,n},mathmlBuilder(t,e){var n=ci(t.width,e),r=ci(t.height,e),i=t.shift?ci(t.shift,e):0,o=e.color&&e.getColor()||"black",a=new ze.MathNode("mspace");a.setAttribute("mathbackground",o),a.setAttribute("width",Qe(n)),a.setAttribute("height",Qe(r));var s=new ze.MathNode("mpadded",[a]);return i>=0?s.setAttribute("height",Qe(i)):(s.setAttribute("height",Qe(i)),s.setAttribute("depth",Qe(-i))),s.setAttribute("voffset",Qe(i)),s}});function xoe(t,e,n){for(var r=bo(t,e,!1),i=e.sizeMultiplier/n.sizeMultiplier,o=0;o<r.length;o++){var a=r[o].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[o].classes,e.sizingClasses(n)):r[o].classes[a+1]==="reset-size"+e.size&&(r[o].classes[a+1]="reset-size"+n.size),r[o].height*=i,r[o].depth*=i}return pe.makeFragment(r)}var vie=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],HPe=(t,e)=>{var n=e.havingSize(t.size);return xoe(t.body,n,e)};lt({type:"sizing",names:vie,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:n,funcName:r,parser:i}=t,o=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:vie.indexOf(r)+1,body:o}},htmlBuilder:HPe,mathmlBuilder:(t,e)=>{var n=e.havingSize(t.size),r=Gs(t.body,n),i=new ze.MathNode("mstyle",r);return i.setAttribute("mathsize",Qe(n.sizeMultiplier)),i}});lt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,n)=>{var{parser:r}=t,i=!1,o=!1,a=n[0]&&Tn(n[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l){var c=a.body[l];if(s=c.text,s==="t")i=!0;else if(s==="b")o=!0;else{i=!1,o=!1;break}}else i=!0,o=!0;var u=e[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:o}},htmlBuilder:(t,e)=>{var n=pe.makeSpan([],[Jn(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(t.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var o=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e);return pe.makeSpan(["mord"],[o],e)},mathmlBuilder:(t,e)=>{var n=new ze.MathNode("mpadded",[Ir(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}});lt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:r}=t,i=n[0],o=e[0];return{type:"sqrt",mode:r.mode,body:o,index:i}},htmlBuilder(t,e){var n=Jn(t.body,e.havingCrampedStyle());n.height===0&&(n.height=e.fontMetrics().xHeight),n=pe.wrapFragment(n,e);var r=e.fontMetrics(),i=r.defaultRuleThickness,o=i;e.style.id<Vt.TEXT.id&&(o=e.fontMetrics().xHeight);var a=i+o/4,s=n.height+n.depth+a+i,{span:l,ruleWidth:c,advanceWidth:u}=Jp.sqrtImage(s,e),d=l.height-c;d>n.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var p=l.height-n.height-a-c;n.style.paddingLeft=Qe(u);var m=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:c}]},e);if(t.index){var f=e.havingStyle(Vt.SCRIPTSCRIPT),h=Jn(t.index,f,e),x=.6*(m.height-m.depth),g=pe.makeVList({positionType:"shift",positionData:-x,children:[{type:"elem",elem:h}]},e),y=pe.makeSpan(["root"],[g]);return pe.makeSpan(["mord","sqrt"],[y,m],e)}else return pe.makeSpan(["mord","sqrt"],[m],e)},mathmlBuilder(t,e){var{body:n,index:r}=t;return r?new ze.MathNode("mroot",[Ir(n,e),Ir(r,e)]):new ze.MathNode("msqrt",[Ir(n,e)])}});var kie={display:Vt.DISPLAY,text:Vt.TEXT,script:Vt.SCRIPT,scriptscript:Vt.SCRIPTSCRIPT};lt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:n,funcName:r,parser:i}=t,o=i.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:a,body:o}},htmlBuilder(t,e){var n=kie[t.style],r=e.havingStyle(n).withFont("");return xoe(t.body,r,e)},mathmlBuilder(t,e){var n=kie[t.style],r=e.havingStyle(n),i=Gs(t.body,r),o=new ze.MathNode("mstyle",i),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[t.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var GPe=function(e,n){var r=e.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Vt.DISPLAY.size||r.alwaysHandleSupSub);return i?u2:null}else if(r.type==="operatorname"){var o=r.alwaysHandleSupSub&&(n.style.size===Vt.DISPLAY.size||r.limits);return o?yoe:null}else{if(r.type==="accent")return rr.isCharacterBox(r.base)?Mj:null;if(r.type==="horizBrace"){var a=!e.sub;return a===r.isOver?hoe:null}else return null}else return null};T0({type:"supsub",htmlBuilder(t,e){var n=GPe(t,e);if(n)return n(t,e);var{base:r,sup:i,sub:o}=t,a=Jn(r,e),s,l,c=e.fontMetrics(),u=0,d=0,p=r&&rr.isCharacterBox(r);if(i){var m=e.havingStyle(e.style.sup());s=Jn(i,m,e),p||(u=a.height-m.fontMetrics().supDrop*m.sizeMultiplier/e.sizeMultiplier)}if(o){var f=e.havingStyle(e.style.sub());l=Jn(o,f,e),p||(d=a.depth+f.fontMetrics().subDrop*f.sizeMultiplier/e.sizeMultiplier)}var h;e.style===Vt.DISPLAY?h=c.sup1:e.style.cramped?h=c.sup3:h=c.sup2;var x=e.sizeMultiplier,g=Qe(.5/c.ptPerEm/x),y=null;if(l){var b=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(a instanceof Hs||b)&&(y=Qe(-a.italic))}var w;if(s&&l){u=Math.max(u,h,s.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var v=c.defaultRuleThickness,k=4*v;if(u-s.depth-(l.height-d)<k){d=k-(u-s.depth)+l.height;var _=.8*c.xHeight-(u-s.depth);_>0&&(u+=_,d-=_)}var L=[{type:"elem",elem:l,shift:d,marginRight:g,marginLeft:y},{type:"elem",elem:s,shift:-u,marginRight:g}];w=pe.makeVList({positionType:"individualShift",children:L},e)}else if(l){d=Math.max(d,c.sub1,l.height-.8*c.xHeight);var S=[{type:"elem",elem:l,marginLeft:y,marginRight:g}];w=pe.makeVList({positionType:"shift",positionData:d,children:S},e)}else if(s)u=Math.max(u,h,s.depth+.25*c.xHeight),w=pe.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:g}]},e);else throw new Error("supsub must have either sup or sub.");var C=mj(a,"right")||"mord";return pe.makeSpan([C],[a,pe.makeSpan(["msupsub"],[w])],e)},mathmlBuilder(t,e){var n=!1,r,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(n=!0,r=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var o=[Ir(t.base,e)];t.sub&&o.push(Ir(t.sub,e)),t.sup&&o.push(Ir(t.sup,e));var a;if(n)a=r?"mover":"munder";else if(t.sub)if(t.sup){var c=t.base;c&&c.type==="op"&&c.limits&&e.style===Vt.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(e.style===Vt.DISPLAY||c.limits)?a="munderover":a="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Vt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Vt.DISPLAY)?a="munder":a="msub"}else{var s=t.base;s&&s.type==="op"&&s.limits&&(e.style===Vt.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||e.style===Vt.DISPLAY)?a="mover":a="msup"}return new ze.MathNode(a,o)}});T0({type:"atom",htmlBuilder(t,e){return pe.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var n=new ze.MathNode("mo",[$c(t.text,t.mode)]);if(t.family==="bin"){var r=Sj(t,e);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else t.family==="punct"?n.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&n.setAttribute("stretchy","false");return n}});var woe={mi:"italic",mn:"normal",mtext:"normal"};T0({type:"mathord",htmlBuilder(t,e){return pe.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var n=new ze.MathNode("mi",[$c(t.text,t.mode,e)]),r=Sj(t,e)||"italic";return r!==woe[n.type]&&n.setAttribute("mathvariant",r),n}});T0({type:"textord",htmlBuilder(t,e){return pe.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var n=$c(t.text,t.mode,e),r=Sj(t,e)||"normal",i;return t.mode==="text"?i=new ze.MathNode("mtext",[n]):/[0-9]/.test(t.text)?i=new ze.MathNode("mn",[n]):t.text==="\\prime"?i=new ze.MathNode("mo",[n]):i=new ze.MathNode("mi",[n]),r!==woe[i.type]&&i.setAttribute("mathvariant",r),i}});var aj={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},sj={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};T0({type:"spacing",htmlBuilder(t,e){if(sj.hasOwnProperty(t.text)){var n=sj[t.text].className||"";if(t.mode==="text"){var r=pe.makeOrd(t,e,"textord");return r.classes.push(n),r}else return pe.makeSpan(["mspace",n],[pe.mathsym(t.text,t.mode,e)],e)}else{if(aj.hasOwnProperty(t.text))return pe.makeSpan(["mspace",aj[t.text]],[],e);throw new Ue('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var n;if(sj.hasOwnProperty(t.text))n=new ze.MathNode("mtext",[new ze.TextNode("\xA0")]);else{if(aj.hasOwnProperty(t.text))return new ze.MathNode("mspace");throw new Ue('Unknown type of space "'+t.text+'"')}return n}});var Cie=()=>{var t=new ze.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};T0({type:"tag",mathmlBuilder(t,e){var n=new ze.MathNode("mtable",[new ze.MathNode("mtr",[Cie(),new ze.MathNode("mtd",[d1(t.body,e)]),Cie(),new ze.MathNode("mtd",[d1(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var _ie={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sie={"\\textbf":"textbf","\\textmd":"textmd"},UPe={"\\textit":"textit","\\textup":"textup"},Lie=(t,e)=>{var n=t.font;if(n){if(_ie[n])return e.withTextFontFamily(_ie[n]);if(Sie[n])return e.withTextFontWeight(Sie[n]);if(n==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(UPe[n])};lt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"text",mode:n.mode,body:Oi(i),font:r}},htmlBuilder(t,e){var n=Lie(t,e),r=bo(t.body,n,!0);return pe.makeSpan(["mord","text"],r,n)},mathmlBuilder(t,e){var n=Lie(t,e);return d1(t.body,n)}});lt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Jn(t.body,e),r=pe.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,o=pe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},e);return pe.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(t,e){var n=new ze.MathNode("mo",[new ze.TextNode("\u203E")]);n.setAttribute("stretchy","true");var r=new ze.MathNode("munder",[Ir(t.body,e),n]);return r.setAttribute("accentunder","true"),r}});lt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"vcenter",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Jn(t.body,e),r=e.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return pe.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){return new ze.MathNode("mpadded",[Ir(t.body,e)],["vcenter"])}});lt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,n){throw new Ue("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var n=Mie(t),r=[],i=e.havingStyle(e.style.text()),o=0;o<n.length;o++){var a=n[o];a==="~"&&(a="\\textasciitilde"),r.push(pe.makeSymbol(a,"Typewriter-Regular",t.mode,i,["mord","texttt"]))}return pe.makeSpan(["mord","text"].concat(i.sizingClasses(e)),pe.tryCombineChars(r),i)},mathmlBuilder(t,e){var n=new ze.TextNode(Mie(t)),r=new ze.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Mie=t=>t.body.replace(/ /g,t.star?"\u2423":"\xA0"),c1=Hie,voe=`[ \r +-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.")}},T0=class{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){for(var e="",n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e}toText(){var e=n=>n.toText();return this.children.map(e).join("")}},gd={"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]}},Yk={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]},nie={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function jNe(t,e){gd[t]=e}function Sj(t,e,n){if(!gd[e])throw new Error("Font metrics not found for font: "+e+".");var r=t.charCodeAt(0),i=gd[e][r];if(!i&&t[0]in nie&&(r=nie[t[0]].charCodeAt(0),i=gd[e][r]),!i&&n==="text"&&Iie(r)&&(i=gd[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var JP={};function ONe(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!JP[e]){var n=JP[e]={cssEmPerMu:Yk.quad[e]/18};for(var r in Yk)Yk.hasOwnProperty(r)&&(n[r]=Yk[r][e])}return JP[e]}var DNe=[[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]],rie=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],iie=function(e,n){return n.size<2?e:DNe[e-1][n.size-1]},dC=class t{constructor(e){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=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=rie[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){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};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return new t(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:iie(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:rie[e-1]})}havingBaseStyle(e){e=e||this.style.text();var n=iie(t.BASESIZE,e);return this.size===n&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=ONe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};dC.BASESIZE=6;var mj={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},FNe={ex:!0,em:!0,mu:!0},Nie=function(e){return typeof e!="string"&&(e=e.unit),e in mj||e in FNe||e==="ex"},ci=function(e,n){var r;if(e.unit in mj)r=mj[e.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(e.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,e.unit==="ex")r=i.fontMetrics().xHeight;else if(e.unit==="em")r=i.fontMetrics().quad;else throw new Ue("Invalid unit: '"+e.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(e.number*r,n.maxSize)},Qe=function(e){return+e.toFixed(4)+"em"},d1=function(e){return e.filter(n=>n).join(" ")},Pie=function(e,n,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},jie=function(e){var n=document.createElement(e);n.className=d1(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n},BNe=/[\s"'>/=\x00-\x1f]/,Oie=function(e){var n="<"+e;this.classes.length&&(n+=' class="'+rr.escape(d1(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=rr.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+rr.escape(r)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if(BNe.test(o))throw new Ue("Invalid attribute name '"+o+"'");n+=" "+o+'="'+rr.escape(this.attributes[o])+'"'}n+=">";for(var a=0;a<this.children.length;a++)n+=this.children[a].toMarkup();return n+="</"+e+">",n},R0=class{constructor(e,n,r,i){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,Pie.call(this,e,r,i),this.children=n||[]}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return this.classes.includes(e)}toNode(){return jie.call(this,"span")}toMarkup(){return Oie.call(this,"span")}},J7=class{constructor(e,n,r,i){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,Pie.call(this,n,i),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,n){this.attributes[e]=n}hasClass(e){return this.classes.includes(e)}toNode(){return jie.call(this,"a")}toMarkup(){return Oie.call(this,"a")}},fj=class{constructor(e,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=e,this.classes=["mord"],this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(e.style[n]=this.style[n]);return e}toMarkup(){var e='<img src="'+rr.escape(this.src)+'"'+(' alt="'+rr.escape(this.alt)+'"'),n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=rr.hyphenate(r)+":"+this.style[r]+";");return n&&(e+=' style="'+rr.escape(n)+'"'),e+="'/>",e}},zNe={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Hs=class{constructor(e,n,r,i,o,a,s,l){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=e,this.height=n||0,this.depth=r||0,this.italic=i||0,this.skew=o||0,this.width=a||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var c=SNe(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=zNe[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Qe(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=d1(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(e),n):e}toMarkup(){var e=!1,n="<span";this.classes.length&&(e=!0,n+=' class="',n+=rr.escape(d1(this.classes)),n+='"');var r="";this.italic>0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=rr.hyphenate(i)+":"+this.style[i]+";");r&&(e=!0,n+=' style="'+rr.escape(r)+'"');var o=rr.escape(this.text);return e?(n+=">",n+=o,n+="</span>",n):o}},wu=class{constructor(e,n){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=n||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)n.appendChild(this.children[i].toNode());return n}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+rr.escape(this.attributes[n])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>",e}},bd=class{constructor(e,n){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=n}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",tie[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+rr.escape(this.alternate)+'"/>':'<path d="'+rr.escape(tie[this.pathName])+'"/>'}},e6=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",n=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var e="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="'+rr.escape(this.attributes[n])+'"');return e+="/>",e}};function oie(t){if(t instanceof Hs)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function qNe(t){if(t instanceof R0)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var HNe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},GNe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Dr={math:{},text:{}};function E(t,e,n,r,i,o){Dr[t][i]={font:e,group:n,replace:r},o&&r&&(Dr[t][r]=Dr[t][i])}var I="math",Oe="text",z="main",X="ams",ri="accent-token",gt="bin",rs="close",u2="inner",Ut="mathord",io="op-token",Nl="open",yC="punct",te="rel",nm="spacing",oe="textord";E(I,z,te,"\u2261","\\equiv",!0);E(I,z,te,"\u227A","\\prec",!0);E(I,z,te,"\u227B","\\succ",!0);E(I,z,te,"\u223C","\\sim",!0);E(I,z,te,"\u22A5","\\perp");E(I,z,te,"\u2AAF","\\preceq",!0);E(I,z,te,"\u2AB0","\\succeq",!0);E(I,z,te,"\u2243","\\simeq",!0);E(I,z,te,"\u2223","\\mid",!0);E(I,z,te,"\u226A","\\ll",!0);E(I,z,te,"\u226B","\\gg",!0);E(I,z,te,"\u224D","\\asymp",!0);E(I,z,te,"\u2225","\\parallel");E(I,z,te,"\u22C8","\\bowtie",!0);E(I,z,te,"\u2323","\\smile",!0);E(I,z,te,"\u2291","\\sqsubseteq",!0);E(I,z,te,"\u2292","\\sqsupseteq",!0);E(I,z,te,"\u2250","\\doteq",!0);E(I,z,te,"\u2322","\\frown",!0);E(I,z,te,"\u220B","\\ni",!0);E(I,z,te,"\u221D","\\propto",!0);E(I,z,te,"\u22A2","\\vdash",!0);E(I,z,te,"\u22A3","\\dashv",!0);E(I,z,te,"\u220B","\\owns");E(I,z,yC,".","\\ldotp");E(I,z,yC,"\u22C5","\\cdotp");E(I,z,oe,"#","\\#");E(Oe,z,oe,"#","\\#");E(I,z,oe,"&","\\&");E(Oe,z,oe,"&","\\&");E(I,z,oe,"\u2135","\\aleph",!0);E(I,z,oe,"\u2200","\\forall",!0);E(I,z,oe,"\u210F","\\hbar",!0);E(I,z,oe,"\u2203","\\exists",!0);E(I,z,oe,"\u2207","\\nabla",!0);E(I,z,oe,"\u266D","\\flat",!0);E(I,z,oe,"\u2113","\\ell",!0);E(I,z,oe,"\u266E","\\natural",!0);E(I,z,oe,"\u2663","\\clubsuit",!0);E(I,z,oe,"\u2118","\\wp",!0);E(I,z,oe,"\u266F","\\sharp",!0);E(I,z,oe,"\u2662","\\diamondsuit",!0);E(I,z,oe,"\u211C","\\Re",!0);E(I,z,oe,"\u2661","\\heartsuit",!0);E(I,z,oe,"\u2111","\\Im",!0);E(I,z,oe,"\u2660","\\spadesuit",!0);E(I,z,oe,"\xA7","\\S",!0);E(Oe,z,oe,"\xA7","\\S");E(I,z,oe,"\xB6","\\P",!0);E(Oe,z,oe,"\xB6","\\P");E(I,z,oe,"\u2020","\\dag");E(Oe,z,oe,"\u2020","\\dag");E(Oe,z,oe,"\u2020","\\textdagger");E(I,z,oe,"\u2021","\\ddag");E(Oe,z,oe,"\u2021","\\ddag");E(Oe,z,oe,"\u2021","\\textdaggerdbl");E(I,z,rs,"\u23B1","\\rmoustache",!0);E(I,z,Nl,"\u23B0","\\lmoustache",!0);E(I,z,rs,"\u27EF","\\rgroup",!0);E(I,z,Nl,"\u27EE","\\lgroup",!0);E(I,z,gt,"\u2213","\\mp",!0);E(I,z,gt,"\u2296","\\ominus",!0);E(I,z,gt,"\u228E","\\uplus",!0);E(I,z,gt,"\u2293","\\sqcap",!0);E(I,z,gt,"\u2217","\\ast");E(I,z,gt,"\u2294","\\sqcup",!0);E(I,z,gt,"\u25EF","\\bigcirc",!0);E(I,z,gt,"\u2219","\\bullet",!0);E(I,z,gt,"\u2021","\\ddagger");E(I,z,gt,"\u2240","\\wr",!0);E(I,z,gt,"\u2A3F","\\amalg");E(I,z,gt,"&","\\And");E(I,z,te,"\u27F5","\\longleftarrow",!0);E(I,z,te,"\u21D0","\\Leftarrow",!0);E(I,z,te,"\u27F8","\\Longleftarrow",!0);E(I,z,te,"\u27F6","\\longrightarrow",!0);E(I,z,te,"\u21D2","\\Rightarrow",!0);E(I,z,te,"\u27F9","\\Longrightarrow",!0);E(I,z,te,"\u2194","\\leftrightarrow",!0);E(I,z,te,"\u27F7","\\longleftrightarrow",!0);E(I,z,te,"\u21D4","\\Leftrightarrow",!0);E(I,z,te,"\u27FA","\\Longleftrightarrow",!0);E(I,z,te,"\u21A6","\\mapsto",!0);E(I,z,te,"\u27FC","\\longmapsto",!0);E(I,z,te,"\u2197","\\nearrow",!0);E(I,z,te,"\u21A9","\\hookleftarrow",!0);E(I,z,te,"\u21AA","\\hookrightarrow",!0);E(I,z,te,"\u2198","\\searrow",!0);E(I,z,te,"\u21BC","\\leftharpoonup",!0);E(I,z,te,"\u21C0","\\rightharpoonup",!0);E(I,z,te,"\u2199","\\swarrow",!0);E(I,z,te,"\u21BD","\\leftharpoondown",!0);E(I,z,te,"\u21C1","\\rightharpoondown",!0);E(I,z,te,"\u2196","\\nwarrow",!0);E(I,z,te,"\u21CC","\\rightleftharpoons",!0);E(I,X,te,"\u226E","\\nless",!0);E(I,X,te,"\uE010","\\@nleqslant");E(I,X,te,"\uE011","\\@nleqq");E(I,X,te,"\u2A87","\\lneq",!0);E(I,X,te,"\u2268","\\lneqq",!0);E(I,X,te,"\uE00C","\\@lvertneqq");E(I,X,te,"\u22E6","\\lnsim",!0);E(I,X,te,"\u2A89","\\lnapprox",!0);E(I,X,te,"\u2280","\\nprec",!0);E(I,X,te,"\u22E0","\\npreceq",!0);E(I,X,te,"\u22E8","\\precnsim",!0);E(I,X,te,"\u2AB9","\\precnapprox",!0);E(I,X,te,"\u2241","\\nsim",!0);E(I,X,te,"\uE006","\\@nshortmid");E(I,X,te,"\u2224","\\nmid",!0);E(I,X,te,"\u22AC","\\nvdash",!0);E(I,X,te,"\u22AD","\\nvDash",!0);E(I,X,te,"\u22EA","\\ntriangleleft");E(I,X,te,"\u22EC","\\ntrianglelefteq",!0);E(I,X,te,"\u228A","\\subsetneq",!0);E(I,X,te,"\uE01A","\\@varsubsetneq");E(I,X,te,"\u2ACB","\\subsetneqq",!0);E(I,X,te,"\uE017","\\@varsubsetneqq");E(I,X,te,"\u226F","\\ngtr",!0);E(I,X,te,"\uE00F","\\@ngeqslant");E(I,X,te,"\uE00E","\\@ngeqq");E(I,X,te,"\u2A88","\\gneq",!0);E(I,X,te,"\u2269","\\gneqq",!0);E(I,X,te,"\uE00D","\\@gvertneqq");E(I,X,te,"\u22E7","\\gnsim",!0);E(I,X,te,"\u2A8A","\\gnapprox",!0);E(I,X,te,"\u2281","\\nsucc",!0);E(I,X,te,"\u22E1","\\nsucceq",!0);E(I,X,te,"\u22E9","\\succnsim",!0);E(I,X,te,"\u2ABA","\\succnapprox",!0);E(I,X,te,"\u2246","\\ncong",!0);E(I,X,te,"\uE007","\\@nshortparallel");E(I,X,te,"\u2226","\\nparallel",!0);E(I,X,te,"\u22AF","\\nVDash",!0);E(I,X,te,"\u22EB","\\ntriangleright");E(I,X,te,"\u22ED","\\ntrianglerighteq",!0);E(I,X,te,"\uE018","\\@nsupseteqq");E(I,X,te,"\u228B","\\supsetneq",!0);E(I,X,te,"\uE01B","\\@varsupsetneq");E(I,X,te,"\u2ACC","\\supsetneqq",!0);E(I,X,te,"\uE019","\\@varsupsetneqq");E(I,X,te,"\u22AE","\\nVdash",!0);E(I,X,te,"\u2AB5","\\precneqq",!0);E(I,X,te,"\u2AB6","\\succneqq",!0);E(I,X,te,"\uE016","\\@nsubseteqq");E(I,X,gt,"\u22B4","\\unlhd");E(I,X,gt,"\u22B5","\\unrhd");E(I,X,te,"\u219A","\\nleftarrow",!0);E(I,X,te,"\u219B","\\nrightarrow",!0);E(I,X,te,"\u21CD","\\nLeftarrow",!0);E(I,X,te,"\u21CF","\\nRightarrow",!0);E(I,X,te,"\u21AE","\\nleftrightarrow",!0);E(I,X,te,"\u21CE","\\nLeftrightarrow",!0);E(I,X,te,"\u25B3","\\vartriangle");E(I,X,oe,"\u210F","\\hslash");E(I,X,oe,"\u25BD","\\triangledown");E(I,X,oe,"\u25CA","\\lozenge");E(I,X,oe,"\u24C8","\\circledS");E(I,X,oe,"\xAE","\\circledR");E(Oe,X,oe,"\xAE","\\circledR");E(I,X,oe,"\u2221","\\measuredangle",!0);E(I,X,oe,"\u2204","\\nexists");E(I,X,oe,"\u2127","\\mho");E(I,X,oe,"\u2132","\\Finv",!0);E(I,X,oe,"\u2141","\\Game",!0);E(I,X,oe,"\u2035","\\backprime");E(I,X,oe,"\u25B2","\\blacktriangle");E(I,X,oe,"\u25BC","\\blacktriangledown");E(I,X,oe,"\u25A0","\\blacksquare");E(I,X,oe,"\u29EB","\\blacklozenge");E(I,X,oe,"\u2605","\\bigstar");E(I,X,oe,"\u2222","\\sphericalangle",!0);E(I,X,oe,"\u2201","\\complement",!0);E(I,X,oe,"\xF0","\\eth",!0);E(Oe,z,oe,"\xF0","\xF0");E(I,X,oe,"\u2571","\\diagup");E(I,X,oe,"\u2572","\\diagdown");E(I,X,oe,"\u25A1","\\square");E(I,X,oe,"\u25A1","\\Box");E(I,X,oe,"\u25CA","\\Diamond");E(I,X,oe,"\xA5","\\yen",!0);E(Oe,X,oe,"\xA5","\\yen",!0);E(I,X,oe,"\u2713","\\checkmark",!0);E(Oe,X,oe,"\u2713","\\checkmark");E(I,X,oe,"\u2136","\\beth",!0);E(I,X,oe,"\u2138","\\daleth",!0);E(I,X,oe,"\u2137","\\gimel",!0);E(I,X,oe,"\u03DD","\\digamma",!0);E(I,X,oe,"\u03F0","\\varkappa");E(I,X,Nl,"\u250C","\\@ulcorner",!0);E(I,X,rs,"\u2510","\\@urcorner",!0);E(I,X,Nl,"\u2514","\\@llcorner",!0);E(I,X,rs,"\u2518","\\@lrcorner",!0);E(I,X,te,"\u2266","\\leqq",!0);E(I,X,te,"\u2A7D","\\leqslant",!0);E(I,X,te,"\u2A95","\\eqslantless",!0);E(I,X,te,"\u2272","\\lesssim",!0);E(I,X,te,"\u2A85","\\lessapprox",!0);E(I,X,te,"\u224A","\\approxeq",!0);E(I,X,gt,"\u22D6","\\lessdot");E(I,X,te,"\u22D8","\\lll",!0);E(I,X,te,"\u2276","\\lessgtr",!0);E(I,X,te,"\u22DA","\\lesseqgtr",!0);E(I,X,te,"\u2A8B","\\lesseqqgtr",!0);E(I,X,te,"\u2251","\\doteqdot");E(I,X,te,"\u2253","\\risingdotseq",!0);E(I,X,te,"\u2252","\\fallingdotseq",!0);E(I,X,te,"\u223D","\\backsim",!0);E(I,X,te,"\u22CD","\\backsimeq",!0);E(I,X,te,"\u2AC5","\\subseteqq",!0);E(I,X,te,"\u22D0","\\Subset",!0);E(I,X,te,"\u228F","\\sqsubset",!0);E(I,X,te,"\u227C","\\preccurlyeq",!0);E(I,X,te,"\u22DE","\\curlyeqprec",!0);E(I,X,te,"\u227E","\\precsim",!0);E(I,X,te,"\u2AB7","\\precapprox",!0);E(I,X,te,"\u22B2","\\vartriangleleft");E(I,X,te,"\u22B4","\\trianglelefteq");E(I,X,te,"\u22A8","\\vDash",!0);E(I,X,te,"\u22AA","\\Vvdash",!0);E(I,X,te,"\u2323","\\smallsmile");E(I,X,te,"\u2322","\\smallfrown");E(I,X,te,"\u224F","\\bumpeq",!0);E(I,X,te,"\u224E","\\Bumpeq",!0);E(I,X,te,"\u2267","\\geqq",!0);E(I,X,te,"\u2A7E","\\geqslant",!0);E(I,X,te,"\u2A96","\\eqslantgtr",!0);E(I,X,te,"\u2273","\\gtrsim",!0);E(I,X,te,"\u2A86","\\gtrapprox",!0);E(I,X,gt,"\u22D7","\\gtrdot");E(I,X,te,"\u22D9","\\ggg",!0);E(I,X,te,"\u2277","\\gtrless",!0);E(I,X,te,"\u22DB","\\gtreqless",!0);E(I,X,te,"\u2A8C","\\gtreqqless",!0);E(I,X,te,"\u2256","\\eqcirc",!0);E(I,X,te,"\u2257","\\circeq",!0);E(I,X,te,"\u225C","\\triangleq",!0);E(I,X,te,"\u223C","\\thicksim");E(I,X,te,"\u2248","\\thickapprox");E(I,X,te,"\u2AC6","\\supseteqq",!0);E(I,X,te,"\u22D1","\\Supset",!0);E(I,X,te,"\u2290","\\sqsupset",!0);E(I,X,te,"\u227D","\\succcurlyeq",!0);E(I,X,te,"\u22DF","\\curlyeqsucc",!0);E(I,X,te,"\u227F","\\succsim",!0);E(I,X,te,"\u2AB8","\\succapprox",!0);E(I,X,te,"\u22B3","\\vartriangleright");E(I,X,te,"\u22B5","\\trianglerighteq");E(I,X,te,"\u22A9","\\Vdash",!0);E(I,X,te,"\u2223","\\shortmid");E(I,X,te,"\u2225","\\shortparallel");E(I,X,te,"\u226C","\\between",!0);E(I,X,te,"\u22D4","\\pitchfork",!0);E(I,X,te,"\u221D","\\varpropto");E(I,X,te,"\u25C0","\\blacktriangleleft");E(I,X,te,"\u2234","\\therefore",!0);E(I,X,te,"\u220D","\\backepsilon");E(I,X,te,"\u25B6","\\blacktriangleright");E(I,X,te,"\u2235","\\because",!0);E(I,X,te,"\u22D8","\\llless");E(I,X,te,"\u22D9","\\gggtr");E(I,X,gt,"\u22B2","\\lhd");E(I,X,gt,"\u22B3","\\rhd");E(I,X,te,"\u2242","\\eqsim",!0);E(I,z,te,"\u22C8","\\Join");E(I,X,te,"\u2251","\\Doteq",!0);E(I,X,gt,"\u2214","\\dotplus",!0);E(I,X,gt,"\u2216","\\smallsetminus");E(I,X,gt,"\u22D2","\\Cap",!0);E(I,X,gt,"\u22D3","\\Cup",!0);E(I,X,gt,"\u2A5E","\\doublebarwedge",!0);E(I,X,gt,"\u229F","\\boxminus",!0);E(I,X,gt,"\u229E","\\boxplus",!0);E(I,X,gt,"\u22C7","\\divideontimes",!0);E(I,X,gt,"\u22C9","\\ltimes",!0);E(I,X,gt,"\u22CA","\\rtimes",!0);E(I,X,gt,"\u22CB","\\leftthreetimes",!0);E(I,X,gt,"\u22CC","\\rightthreetimes",!0);E(I,X,gt,"\u22CF","\\curlywedge",!0);E(I,X,gt,"\u22CE","\\curlyvee",!0);E(I,X,gt,"\u229D","\\circleddash",!0);E(I,X,gt,"\u229B","\\circledast",!0);E(I,X,gt,"\u22C5","\\centerdot");E(I,X,gt,"\u22BA","\\intercal",!0);E(I,X,gt,"\u22D2","\\doublecap");E(I,X,gt,"\u22D3","\\doublecup");E(I,X,gt,"\u22A0","\\boxtimes",!0);E(I,X,te,"\u21E2","\\dashrightarrow",!0);E(I,X,te,"\u21E0","\\dashleftarrow",!0);E(I,X,te,"\u21C7","\\leftleftarrows",!0);E(I,X,te,"\u21C6","\\leftrightarrows",!0);E(I,X,te,"\u21DA","\\Lleftarrow",!0);E(I,X,te,"\u219E","\\twoheadleftarrow",!0);E(I,X,te,"\u21A2","\\leftarrowtail",!0);E(I,X,te,"\u21AB","\\looparrowleft",!0);E(I,X,te,"\u21CB","\\leftrightharpoons",!0);E(I,X,te,"\u21B6","\\curvearrowleft",!0);E(I,X,te,"\u21BA","\\circlearrowleft",!0);E(I,X,te,"\u21B0","\\Lsh",!0);E(I,X,te,"\u21C8","\\upuparrows",!0);E(I,X,te,"\u21BF","\\upharpoonleft",!0);E(I,X,te,"\u21C3","\\downharpoonleft",!0);E(I,z,te,"\u22B6","\\origof",!0);E(I,z,te,"\u22B7","\\imageof",!0);E(I,X,te,"\u22B8","\\multimap",!0);E(I,X,te,"\u21AD","\\leftrightsquigarrow",!0);E(I,X,te,"\u21C9","\\rightrightarrows",!0);E(I,X,te,"\u21C4","\\rightleftarrows",!0);E(I,X,te,"\u21A0","\\twoheadrightarrow",!0);E(I,X,te,"\u21A3","\\rightarrowtail",!0);E(I,X,te,"\u21AC","\\looparrowright",!0);E(I,X,te,"\u21B7","\\curvearrowright",!0);E(I,X,te,"\u21BB","\\circlearrowright",!0);E(I,X,te,"\u21B1","\\Rsh",!0);E(I,X,te,"\u21CA","\\downdownarrows",!0);E(I,X,te,"\u21BE","\\upharpoonright",!0);E(I,X,te,"\u21C2","\\downharpoonright",!0);E(I,X,te,"\u21DD","\\rightsquigarrow",!0);E(I,X,te,"\u21DD","\\leadsto");E(I,X,te,"\u21DB","\\Rrightarrow",!0);E(I,X,te,"\u21BE","\\restriction");E(I,z,oe,"\u2018","`");E(I,z,oe,"$","\\$");E(Oe,z,oe,"$","\\$");E(Oe,z,oe,"$","\\textdollar");E(I,z,oe,"%","\\%");E(Oe,z,oe,"%","\\%");E(I,z,oe,"_","\\_");E(Oe,z,oe,"_","\\_");E(Oe,z,oe,"_","\\textunderscore");E(I,z,oe,"\u2220","\\angle",!0);E(I,z,oe,"\u221E","\\infty",!0);E(I,z,oe,"\u2032","\\prime");E(I,z,oe,"\u25B3","\\triangle");E(I,z,oe,"\u0393","\\Gamma",!0);E(I,z,oe,"\u0394","\\Delta",!0);E(I,z,oe,"\u0398","\\Theta",!0);E(I,z,oe,"\u039B","\\Lambda",!0);E(I,z,oe,"\u039E","\\Xi",!0);E(I,z,oe,"\u03A0","\\Pi",!0);E(I,z,oe,"\u03A3","\\Sigma",!0);E(I,z,oe,"\u03A5","\\Upsilon",!0);E(I,z,oe,"\u03A6","\\Phi",!0);E(I,z,oe,"\u03A8","\\Psi",!0);E(I,z,oe,"\u03A9","\\Omega",!0);E(I,z,oe,"A","\u0391");E(I,z,oe,"B","\u0392");E(I,z,oe,"E","\u0395");E(I,z,oe,"Z","\u0396");E(I,z,oe,"H","\u0397");E(I,z,oe,"I","\u0399");E(I,z,oe,"K","\u039A");E(I,z,oe,"M","\u039C");E(I,z,oe,"N","\u039D");E(I,z,oe,"O","\u039F");E(I,z,oe,"P","\u03A1");E(I,z,oe,"T","\u03A4");E(I,z,oe,"X","\u03A7");E(I,z,oe,"\xAC","\\neg",!0);E(I,z,oe,"\xAC","\\lnot");E(I,z,oe,"\u22A4","\\top");E(I,z,oe,"\u22A5","\\bot");E(I,z,oe,"\u2205","\\emptyset");E(I,X,oe,"\u2205","\\varnothing");E(I,z,Ut,"\u03B1","\\alpha",!0);E(I,z,Ut,"\u03B2","\\beta",!0);E(I,z,Ut,"\u03B3","\\gamma",!0);E(I,z,Ut,"\u03B4","\\delta",!0);E(I,z,Ut,"\u03F5","\\epsilon",!0);E(I,z,Ut,"\u03B6","\\zeta",!0);E(I,z,Ut,"\u03B7","\\eta",!0);E(I,z,Ut,"\u03B8","\\theta",!0);E(I,z,Ut,"\u03B9","\\iota",!0);E(I,z,Ut,"\u03BA","\\kappa",!0);E(I,z,Ut,"\u03BB","\\lambda",!0);E(I,z,Ut,"\u03BC","\\mu",!0);E(I,z,Ut,"\u03BD","\\nu",!0);E(I,z,Ut,"\u03BE","\\xi",!0);E(I,z,Ut,"\u03BF","\\omicron",!0);E(I,z,Ut,"\u03C0","\\pi",!0);E(I,z,Ut,"\u03C1","\\rho",!0);E(I,z,Ut,"\u03C3","\\sigma",!0);E(I,z,Ut,"\u03C4","\\tau",!0);E(I,z,Ut,"\u03C5","\\upsilon",!0);E(I,z,Ut,"\u03D5","\\phi",!0);E(I,z,Ut,"\u03C7","\\chi",!0);E(I,z,Ut,"\u03C8","\\psi",!0);E(I,z,Ut,"\u03C9","\\omega",!0);E(I,z,Ut,"\u03B5","\\varepsilon",!0);E(I,z,Ut,"\u03D1","\\vartheta",!0);E(I,z,Ut,"\u03D6","\\varpi",!0);E(I,z,Ut,"\u03F1","\\varrho",!0);E(I,z,Ut,"\u03C2","\\varsigma",!0);E(I,z,Ut,"\u03C6","\\varphi",!0);E(I,z,gt,"\u2217","*",!0);E(I,z,gt,"+","+");E(I,z,gt,"\u2212","-",!0);E(I,z,gt,"\u22C5","\\cdot",!0);E(I,z,gt,"\u2218","\\circ",!0);E(I,z,gt,"\xF7","\\div",!0);E(I,z,gt,"\xB1","\\pm",!0);E(I,z,gt,"\xD7","\\times",!0);E(I,z,gt,"\u2229","\\cap",!0);E(I,z,gt,"\u222A","\\cup",!0);E(I,z,gt,"\u2216","\\setminus",!0);E(I,z,gt,"\u2227","\\land");E(I,z,gt,"\u2228","\\lor");E(I,z,gt,"\u2227","\\wedge",!0);E(I,z,gt,"\u2228","\\vee",!0);E(I,z,oe,"\u221A","\\surd");E(I,z,Nl,"\u27E8","\\langle",!0);E(I,z,Nl,"\u2223","\\lvert");E(I,z,Nl,"\u2225","\\lVert");E(I,z,rs,"?","?");E(I,z,rs,"!","!");E(I,z,rs,"\u27E9","\\rangle",!0);E(I,z,rs,"\u2223","\\rvert");E(I,z,rs,"\u2225","\\rVert");E(I,z,te,"=","=");E(I,z,te,":",":");E(I,z,te,"\u2248","\\approx",!0);E(I,z,te,"\u2245","\\cong",!0);E(I,z,te,"\u2265","\\ge");E(I,z,te,"\u2265","\\geq",!0);E(I,z,te,"\u2190","\\gets");E(I,z,te,">","\\gt",!0);E(I,z,te,"\u2208","\\in",!0);E(I,z,te,"\uE020","\\@not");E(I,z,te,"\u2282","\\subset",!0);E(I,z,te,"\u2283","\\supset",!0);E(I,z,te,"\u2286","\\subseteq",!0);E(I,z,te,"\u2287","\\supseteq",!0);E(I,X,te,"\u2288","\\nsubseteq",!0);E(I,X,te,"\u2289","\\nsupseteq",!0);E(I,z,te,"\u22A8","\\models");E(I,z,te,"\u2190","\\leftarrow",!0);E(I,z,te,"\u2264","\\le");E(I,z,te,"\u2264","\\leq",!0);E(I,z,te,"<","\\lt",!0);E(I,z,te,"\u2192","\\rightarrow",!0);E(I,z,te,"\u2192","\\to");E(I,X,te,"\u2271","\\ngeq",!0);E(I,X,te,"\u2270","\\nleq",!0);E(I,z,nm,"\xA0","\\ ");E(I,z,nm,"\xA0","\\space");E(I,z,nm,"\xA0","\\nobreakspace");E(Oe,z,nm,"\xA0","\\ ");E(Oe,z,nm,"\xA0"," ");E(Oe,z,nm,"\xA0","\\space");E(Oe,z,nm,"\xA0","\\nobreakspace");E(I,z,nm,null,"\\nobreak");E(I,z,nm,null,"\\allowbreak");E(I,z,yC,",",",");E(I,z,yC,";",";");E(I,X,gt,"\u22BC","\\barwedge",!0);E(I,X,gt,"\u22BB","\\veebar",!0);E(I,z,gt,"\u2299","\\odot",!0);E(I,z,gt,"\u2295","\\oplus",!0);E(I,z,gt,"\u2297","\\otimes",!0);E(I,z,oe,"\u2202","\\partial",!0);E(I,z,gt,"\u2298","\\oslash",!0);E(I,X,gt,"\u229A","\\circledcirc",!0);E(I,X,gt,"\u22A1","\\boxdot",!0);E(I,z,gt,"\u25B3","\\bigtriangleup");E(I,z,gt,"\u25BD","\\bigtriangledown");E(I,z,gt,"\u2020","\\dagger");E(I,z,gt,"\u22C4","\\diamond");E(I,z,gt,"\u22C6","\\star");E(I,z,gt,"\u25C3","\\triangleleft");E(I,z,gt,"\u25B9","\\triangleright");E(I,z,Nl,"{","\\{");E(Oe,z,oe,"{","\\{");E(Oe,z,oe,"{","\\textbraceleft");E(I,z,rs,"}","\\}");E(Oe,z,oe,"}","\\}");E(Oe,z,oe,"}","\\textbraceright");E(I,z,Nl,"{","\\lbrace");E(I,z,rs,"}","\\rbrace");E(I,z,Nl,"[","\\lbrack",!0);E(Oe,z,oe,"[","\\lbrack",!0);E(I,z,rs,"]","\\rbrack",!0);E(Oe,z,oe,"]","\\rbrack",!0);E(I,z,Nl,"(","\\lparen",!0);E(I,z,rs,")","\\rparen",!0);E(Oe,z,oe,"<","\\textless",!0);E(Oe,z,oe,">","\\textgreater",!0);E(I,z,Nl,"\u230A","\\lfloor",!0);E(I,z,rs,"\u230B","\\rfloor",!0);E(I,z,Nl,"\u2308","\\lceil",!0);E(I,z,rs,"\u2309","\\rceil",!0);E(I,z,oe,"\\","\\backslash");E(I,z,oe,"\u2223","|");E(I,z,oe,"\u2223","\\vert");E(Oe,z,oe,"|","\\textbar",!0);E(I,z,oe,"\u2225","\\|");E(I,z,oe,"\u2225","\\Vert");E(Oe,z,oe,"\u2225","\\textbardbl");E(Oe,z,oe,"~","\\textasciitilde");E(Oe,z,oe,"\\","\\textbackslash");E(Oe,z,oe,"^","\\textasciicircum");E(I,z,te,"\u2191","\\uparrow",!0);E(I,z,te,"\u21D1","\\Uparrow",!0);E(I,z,te,"\u2193","\\downarrow",!0);E(I,z,te,"\u21D3","\\Downarrow",!0);E(I,z,te,"\u2195","\\updownarrow",!0);E(I,z,te,"\u21D5","\\Updownarrow",!0);E(I,z,io,"\u2210","\\coprod");E(I,z,io,"\u22C1","\\bigvee");E(I,z,io,"\u22C0","\\bigwedge");E(I,z,io,"\u2A04","\\biguplus");E(I,z,io,"\u22C2","\\bigcap");E(I,z,io,"\u22C3","\\bigcup");E(I,z,io,"\u222B","\\int");E(I,z,io,"\u222B","\\intop");E(I,z,io,"\u222C","\\iint");E(I,z,io,"\u222D","\\iiint");E(I,z,io,"\u220F","\\prod");E(I,z,io,"\u2211","\\sum");E(I,z,io,"\u2A02","\\bigotimes");E(I,z,io,"\u2A01","\\bigoplus");E(I,z,io,"\u2A00","\\bigodot");E(I,z,io,"\u222E","\\oint");E(I,z,io,"\u222F","\\oiint");E(I,z,io,"\u2230","\\oiiint");E(I,z,io,"\u2A06","\\bigsqcup");E(I,z,io,"\u222B","\\smallint");E(Oe,z,u2,"\u2026","\\textellipsis");E(I,z,u2,"\u2026","\\mathellipsis");E(Oe,z,u2,"\u2026","\\ldots",!0);E(I,z,u2,"\u2026","\\ldots",!0);E(I,z,u2,"\u22EF","\\@cdots",!0);E(I,z,u2,"\u22F1","\\ddots",!0);E(I,z,oe,"\u22EE","\\varvdots");E(Oe,z,oe,"\u22EE","\\varvdots");E(I,z,ri,"\u02CA","\\acute");E(I,z,ri,"\u02CB","\\grave");E(I,z,ri,"\xA8","\\ddot");E(I,z,ri,"~","\\tilde");E(I,z,ri,"\u02C9","\\bar");E(I,z,ri,"\u02D8","\\breve");E(I,z,ri,"\u02C7","\\check");E(I,z,ri,"^","\\hat");E(I,z,ri,"\u20D7","\\vec");E(I,z,ri,"\u02D9","\\dot");E(I,z,ri,"\u02DA","\\mathring");E(I,z,Ut,"\uE131","\\@imath");E(I,z,Ut,"\uE237","\\@jmath");E(I,z,oe,"\u0131","\u0131");E(I,z,oe,"\u0237","\u0237");E(Oe,z,oe,"\u0131","\\i",!0);E(Oe,z,oe,"\u0237","\\j",!0);E(Oe,z,oe,"\xDF","\\ss",!0);E(Oe,z,oe,"\xE6","\\ae",!0);E(Oe,z,oe,"\u0153","\\oe",!0);E(Oe,z,oe,"\xF8","\\o",!0);E(Oe,z,oe,"\xC6","\\AE",!0);E(Oe,z,oe,"\u0152","\\OE",!0);E(Oe,z,oe,"\xD8","\\O",!0);E(Oe,z,ri,"\u02CA","\\'");E(Oe,z,ri,"\u02CB","\\`");E(Oe,z,ri,"\u02C6","\\^");E(Oe,z,ri,"\u02DC","\\~");E(Oe,z,ri,"\u02C9","\\=");E(Oe,z,ri,"\u02D8","\\u");E(Oe,z,ri,"\u02D9","\\.");E(Oe,z,ri,"\xB8","\\c");E(Oe,z,ri,"\u02DA","\\r");E(Oe,z,ri,"\u02C7","\\v");E(Oe,z,ri,"\xA8",'\\"');E(Oe,z,ri,"\u02DD","\\H");E(Oe,z,ri,"\u25EF","\\textcircled");var Die={"--":!0,"---":!0,"``":!0,"''":!0};E(Oe,z,oe,"\u2013","--",!0);E(Oe,z,oe,"\u2013","\\textendash");E(Oe,z,oe,"\u2014","---",!0);E(Oe,z,oe,"\u2014","\\textemdash");E(Oe,z,oe,"\u2018","`",!0);E(Oe,z,oe,"\u2018","\\textquoteleft");E(Oe,z,oe,"\u2019","'",!0);E(Oe,z,oe,"\u2019","\\textquoteright");E(Oe,z,oe,"\u201C","``",!0);E(Oe,z,oe,"\u201C","\\textquotedblleft");E(Oe,z,oe,"\u201D","''",!0);E(Oe,z,oe,"\u201D","\\textquotedblright");E(I,z,oe,"\xB0","\\degree",!0);E(Oe,z,oe,"\xB0","\\degree");E(Oe,z,oe,"\xB0","\\textdegree",!0);E(I,z,oe,"\xA3","\\pounds");E(I,z,oe,"\xA3","\\mathsterling",!0);E(Oe,z,oe,"\xA3","\\pounds");E(Oe,z,oe,"\xA3","\\textsterling",!0);E(I,X,oe,"\u2720","\\maltese");E(Oe,X,oe,"\u2720","\\maltese");var aie='0123456789/@."';for(Qk=0;Qk<aie.length;Qk++)ej=aie.charAt(Qk),E(I,z,oe,ej,ej);var ej,Qk,sie='0123456789!@*()-=+";:?/.,';for(Jk=0;Jk<sie.length;Jk++)tj=sie.charAt(Jk),E(Oe,z,oe,tj,tj);var tj,Jk,pC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(eC=0;eC<pC.length;eC++)Z7=pC.charAt(eC),E(I,z,Ut,Z7,Z7),E(Oe,z,oe,Z7,Z7);var Z7,eC;E(I,X,oe,"C","\u2102");E(Oe,X,oe,"C","\u2102");E(I,X,oe,"H","\u210D");E(Oe,X,oe,"H","\u210D");E(I,X,oe,"N","\u2115");E(Oe,X,oe,"N","\u2115");E(I,X,oe,"P","\u2119");E(Oe,X,oe,"P","\u2119");E(I,X,oe,"Q","\u211A");E(Oe,X,oe,"Q","\u211A");E(I,X,oe,"R","\u211D");E(Oe,X,oe,"R","\u211D");E(I,X,oe,"Z","\u2124");E(Oe,X,oe,"Z","\u2124");E(I,z,Ut,"h","\u210E");E(Oe,z,Ut,"h","\u210E");var an="";for(ya=0;ya<pC.length;ya++)si=pC.charAt(ya),an=String.fromCharCode(55349,56320+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56372+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56424+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56580+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56684+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56736+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56788+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56840+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56944+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),ya<26&&(an=String.fromCharCode(55349,56632+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an),an=String.fromCharCode(55349,56476+ya),E(I,z,Ut,si,an),E(Oe,z,oe,si,an));var si,ya;an="\u{1D55C}";E(I,z,Ut,"k",an);E(Oe,z,oe,"k",an);for(c1=0;c1<10;c1++)Xp=c1.toString(),an=String.fromCharCode(55349,57294+c1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an),an=String.fromCharCode(55349,57314+c1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an),an=String.fromCharCode(55349,57324+c1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an),an=String.fromCharCode(55349,57334+c1),E(I,z,Ut,Xp,an),E(Oe,z,oe,Xp,an);var Xp,c1,hj="\xD0\xDE\xFE";for(tC=0;tC<hj.length;tC++)W7=hj.charAt(tC),E(I,z,Ut,W7,W7),E(Oe,z,oe,W7,W7);var W7,tC,nC=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],lie=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],UNe=function(e,n){var r=e.charCodeAt(0),i=e.charCodeAt(1),o=(r-55296)*1024+(i-56320)+65536,a=n==="math"?0:1;if(119808<=o&&o<120484){var s=Math.floor((o-119808)/26);return[nC[s][2],nC[s][a]]}else if(120782<=o&&o<=120831){var l=Math.floor((o-120782)/10);return[lie[l][2],lie[l][a]]}else{if(o===120485||o===120486)return[nC[0][2],nC[0][a]];if(120486<o&&o<120782)return["",""];throw new Ue("Unsupported character: "+e)}},xC=function(e,n,r){return Dr[r][e]&&Dr[r][e].replace&&(e=Dr[r][e].replace),{value:e,metrics:Sj(e,n,r)}},xu=function(e,n,r,i,o){var a=xC(e,n,r),s=a.metrics;e=a.value;var l;if(s){var c=s.italic;(r==="text"||i&&i.font==="mathit")&&(c=0),l=new Hs(e,s.height,s.depth,c,s.skew,s.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+n+"' and mode '"+r+"'")),l=new Hs(e,0,0,0,0,0,o);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var u=i.getColor();u&&(l.style.color=u)}return l},VNe=function(e,n,r,i){return i===void 0&&(i=[]),r.font==="boldsymbol"&&xC(e,"Main-Bold",n).metrics?xu(e,"Main-Bold",n,r,i.concat(["mathbf"])):e==="\\"||Dr[n][e].font==="main"?xu(e,"Main-Regular",n,r,i):xu(e,"AMS-Regular",n,r,i.concat(["amsrm"]))},ZNe=function(e,n,r,i,o){return o!=="textord"&&xC(e,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},WNe=function(e,n,r){var i=e.mode,o=e.text,a=["mord"],s=i==="math"||i==="text"&&n.font,l=s?n.font:n.fontFamily,c="",u="";if(o.charCodeAt(0)===55349&&([c,u]=UNe(o,i)),c.length>0)return xu(o,c,i,n,a.concat(u));if(l){var d,p;if(l==="boldsymbol"){var m=ZNe(o,i,n,a,r);d=m.fontName,p=[m.fontClass]}else s?(d=zie[l].fontName,p=[l]):(d=rC(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(xC(o,d,i).metrics)return xu(o,d,i,n,a.concat(p));if(Die.hasOwnProperty(o)&&d.slice(0,10)==="Typewriter"){for(var f=[],h=0;h<o.length;h++)f.push(xu(o[h],d,i,n,a.concat(p)));return Bie(f)}}if(r==="mathord")return xu(o,"Math-Italic",i,n,a.concat(["mathnormal"]));if(r==="textord"){var x=Dr[i][o]&&Dr[i][o].font;if(x==="ams"){var g=rC("amsrm",n.fontWeight,n.fontShape);return xu(o,g,i,n,a.concat("amsrm",n.fontWeight,n.fontShape))}else if(x==="main"||!x){var y=rC("textrm",n.fontWeight,n.fontShape);return xu(o,y,i,n,a.concat(n.fontWeight,n.fontShape))}else{var b=rC(x,n.fontWeight,n.fontShape);return xu(o,b,i,n,a.concat(b,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+r+" in makeOrd")},KNe=(t,e)=>{if(d1(t.classes)!==d1(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var n=t.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in t.style)if(t.style.hasOwnProperty(r)&&t.style[r]!==e.style[r])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},XNe=t=>{for(var e=0;e<t.length-1;e++){var n=t[e],r=t[e+1];n instanceof Hs&&r instanceof Hs&&KNe(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,t.splice(e+1,1),e--)}return t},Lj=function(e){for(var n=0,r=0,i=0,o=0;o<e.children.length;o++){var a=e.children[o];a.height>n&&(n=a.height),a.depth>r&&(r=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}e.height=n,e.depth=r,e.maxFontSize=i},zs=function(e,n,r,i){var o=new R0(e,n,r,i);return Lj(o),o},Fie=(t,e,n,r)=>new R0(t,e,n,r),YNe=function(e,n,r){var i=zs([e],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Qe(i.height),i.maxFontSize=1,i},QNe=function(e,n,r,i){var o=new J7(e,n,r,i);return Lj(o),o},Bie=function(e){var n=new T0(e);return Lj(n),n},JNe=function(e,n){return e instanceof T0?zs([],[e],n):e},ePe=function(e){if(e.positionType==="individualShift"){for(var n=e.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,o=i,a=1;a<n.length;a++){var s=-n[a].shift-o-n[a].elem.depth,l=s-(n[a-1].elem.height+n[a-1].elem.depth);o=o+s,r.push({type:"kern",size:l}),r.push(n[a])}return{children:r,depth:i}}var c;if(e.positionType==="top"){for(var u=e.positionData,d=0;d<e.children.length;d++){var p=e.children[d];u-=p.type==="kern"?p.size:p.elem.height+p.elem.depth}c=u}else if(e.positionType==="bottom")c=-e.positionData;else{var m=e.children[0];if(m.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")c=-m.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")c=-m.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:c}},tPe=function(e,n){for(var{children:r,depth:i}=ePe(e),o=0,a=0;a<r.length;a++){var s=r[a];if(s.type==="elem"){var l=s.elem;o=Math.max(o,l.maxFontSize,l.height)}}o+=2;var c=zs(["pstrut"],[]);c.style.height=Qe(o);for(var u=[],d=i,p=i,m=i,f=0;f<r.length;f++){var h=r[f];if(h.type==="kern")m+=h.size;else{var x=h.elem,g=h.wrapperClasses||[],y=h.wrapperStyle||{},b=zs(g,[c,x],void 0,y);b.style.top=Qe(-o-m-x.depth),h.marginLeft&&(b.style.marginLeft=h.marginLeft),h.marginRight&&(b.style.marginRight=h.marginRight),u.push(b),m+=x.height+x.depth}d=Math.min(d,m),p=Math.max(p,m)}var w=zs(["vlist"],u);w.style.height=Qe(p);var v;if(d<0){var k=zs([],[]),_=zs(["vlist"],[k]);_.style.height=Qe(-d);var L=zs(["vlist-s"],[new Hs("\u200B")]);v=[zs(["vlist-r"],[w,L]),zs(["vlist-r"],[_])]}else v=[zs(["vlist-r"],[w])];var S=zs(["vlist-t"],v);return v.length===2&&S.classes.push("vlist-t2"),S.height=p,S.depth=-d,S},nPe=(t,e)=>{var n=zs(["mspace"],[],e),r=ci(t,e);return n.style.marginRight=Qe(r),n},rC=function(e,n,r){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var o;return n==="textbf"&&r==="textit"?o="BoldItalic":n==="textbf"?o="Bold":n==="textit"?o="Italic":o="Regular",i+"-"+o},zie={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"}},qie={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rPe=function(e,n){var[r,i,o]=qie[e],a=new bd(r),s=new wu([a],{width:Qe(i),height:Qe(o),style:"width:"+Qe(i),viewBox:"0 0 "+1e3*i+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),l=Fie(["overlay"],[s],n);return l.height=o,l.style.height=Qe(o),l.style.width=Qe(i),l},pe={fontMap:zie,makeSymbol:xu,mathsym:VNe,makeSpan:zs,makeSvgSpan:Fie,makeLineSpan:YNe,makeAnchor:QNe,makeFragment:Bie,wrapFragment:JNe,makeVList:tPe,makeOrd:WNe,makeGlue:nPe,staticSvg:rPe,svgData:qie,tryCombineChars:XNe},li={number:3,unit:"mu"},E0={number:4,unit:"mu"},Yp={number:5,unit:"mu"},iPe={mord:{mop:li,mbin:E0,mrel:Yp,minner:li},mop:{mord:li,mop:li,mrel:Yp,minner:li},mbin:{mord:E0,mop:E0,mopen:E0,minner:E0},mrel:{mord:Yp,mop:Yp,mopen:Yp,minner:Yp},mopen:{},mclose:{mop:li,mbin:E0,mrel:Yp,minner:li},mpunct:{mord:li,mop:li,mrel:Yp,mopen:li,mclose:li,mpunct:li,minner:li},minner:{mord:li,mop:li,mbin:E0,mrel:Yp,mopen:li,mpunct:li,minner:li}},oPe={mord:{mop:li},mop:{mord:li,mop:li},mbin:{},mrel:{},mopen:{},mclose:{mop:li},mpunct:{},minner:{mop:li}},Hie={},mC={},fC={};function lt(t){for(var{type:e,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:a}=t,s={type:e,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:i},l=0;l<n.length;++l)Hie[n[l]]=s;e&&(o&&(mC[e]=o),a&&(fC[e]=a))}function A0(t){var{type:e,htmlBuilder:n,mathmlBuilder:r}=t;lt({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var hC=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Oi=function(e){return e.type==="ordgroup"?e.body:[e]},em=pe.makeSpan,aPe=["leftmost","mbin","mopen","mrel","mop","mpunct"],sPe=["rightmost","mrel","mclose","mpunct"],lPe={display:Vt.DISPLAY,text:Vt.TEXT,script:Vt.SCRIPT,scriptscript:Vt.SCRIPTSCRIPT},cPe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},bo=function(e,n,r,i){i===void 0&&(i=[null,null]);for(var o=[],a=0;a<e.length;a++){var s=Jn(e[a],n);if(s instanceof T0){var l=s.children;o.push(...l)}else o.push(s)}if(pe.tryCombineChars(o),!r)return o;var c=n;if(e.length===1){var u=e[0];u.type==="sizing"?c=n.havingSize(u.size):u.type==="styling"&&(c=n.havingStyle(lPe[u.style]))}var d=em([i[0]||"leftmost"],[],n),p=em([i[1]||"rightmost"],[],n),m=r==="root";return cie(o,(f,h)=>{var x=h.classes[0],g=f.classes[0];x==="mbin"&&sPe.includes(g)?h.classes[0]="mord":g==="mbin"&&aPe.includes(x)&&(f.classes[0]="mord")},{node:d},p,m),cie(o,(f,h)=>{var x=gj(h),g=gj(f),y=x&&g?f.hasClass("mtight")?oPe[x][g]:iPe[x][g]:null;if(y)return pe.makeGlue(y,c)},{node:d},p,m),o},cie=function t(e,n,r,i,o){i&&e.push(i);for(var a=0;a<e.length;a++){var s=e[a],l=Gie(s);if(l){t(l.children,n,r,null,o);continue}var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(e.unshift(u),a++))}c?r.node=s:o&&s.hasClass("newline")&&(r.node=em(["leftmost"])),r.insertAfter=(d=>p=>{e.splice(d+1,0,p),a++})(a)}i&&e.pop()},Gie=function(e){return e instanceof T0||e instanceof J7||e instanceof R0&&e.hasClass("enclosing")?e:null},uPe=function t(e,n){var r=Gie(e);if(r){var i=r.children;if(i.length){if(n==="right")return t(i[i.length-1],"right");if(n==="left")return t(i[0],"left")}}return e},gj=function(e,n){return e?(n&&(e=uPe(e,n)),cPe[e.classes[0]]||null):null},t6=function(e,n){var r=["nulldelimiter"].concat(e.baseSizingClasses());return em(n.concat(r))},Jn=function(e,n,r){if(!e)return em();if(mC[e.type]){var i=mC[e.type](e,n);if(r&&n.size!==r.size){i=em(n.sizingClasses(r),[i],n);var o=n.sizeMultiplier/r.sizeMultiplier;i.height*=o,i.depth*=o}return i}else throw new Ue("Got group of unknown type: '"+e.type+"'")};function iC(t,e){var n=em(["base"],t,e),r=em(["strut"]);return r.style.height=Qe(n.height+n.depth),n.depth&&(r.style.verticalAlign=Qe(-n.depth)),n.children.unshift(r),n}function bj(t,e){var n=null;t.length===1&&t[0].type==="tag"&&(n=t[0].tag,t=t[0].body);var r=bo(t,e,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var o=[],a=[],s=0;s<r.length;s++)if(a.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var l=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,a.push(r[s]),r[s].hasClass("nobreak")&&(l=!0);l||(o.push(iC(a,e)),a=[])}else r[s].hasClass("newline")&&(a.pop(),a.length>0&&(o.push(iC(a,e)),a=[]),o.push(r[s]));a.length>0&&o.push(iC(a,e));var c;n?(c=iC(bo(n,e,!0)),c.classes=["tag"],o.push(c)):i&&o.push(i);var u=em(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),c){var d=c.children[0];d.style.height=Qe(u.height+u.depth),u.depth&&(d.style.verticalAlign=Qe(-u.depth))}return u}function Uie(t){return new T0(t)}var ts=class{constructor(e,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(e,n){this.attributes[e]=n}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);this.classes.length>0&&(e.className=d1(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Ac&&this.children[r+1]instanceof Ac){for(var i=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Ac;)i+=this.children[++r].toText();e.appendChild(new Ac(i).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(e+=" "+n+'="',e+=rr.escape(this.attributes[n]),e+='"');this.classes.length>0&&(e+=' class ="'+rr.escape(d1(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}},Ac=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return rr.escape(this.toText())}toText(){return this.text}},yj=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",Qe(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Qe(this.width)+'"/>'}toText(){return this.character?this.character:" "}},ze={MathNode:ts,TextNode:Ac,SpaceNode:yj,newDocumentFragment:Uie},$c=function(e,n,r){return Dr[n][e]&&Dr[n][e].replace&&e.charCodeAt(0)!==55349&&!(Die.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=Dr[n][e].replace),new ze.TextNode(e)},Mj=function(e){return e.length===1?e[0]:new ze.MathNode("mrow",e)},Ej=function(e,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var o=e.text;if(["\\imath","\\jmath"].includes(o))return null;Dr[i][o]&&Dr[i][o].replace&&(o=Dr[i][o].replace);var a=pe.fontMap[r].fontName;return Sj(o,a,i)?pe.fontMap[r].variant:null};function nj(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Ac&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var n=t.children[0];return n instanceof Ac&&n.text===","}else return!1}var Gs=function(e,n,r){if(e.length===1){var i=Ir(e[0],n);return r&&i instanceof ts&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var o=[],a,s=0;s<e.length;s++){var l=Ir(e[s],n);if(l instanceof ts&&a instanceof ts){if(l.type==="mtext"&&a.type==="mtext"&&l.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...l.children);continue}else if(l.type==="mn"&&a.type==="mn"){a.children.push(...l.children);continue}else if(nj(l)&&a.type==="mn"){a.children.push(...l.children);continue}else if(l.type==="mn"&&nj(a))l.children=[...a.children,...l.children],o.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(a.type==="mn"||nj(a))){var c=l.children[0];c instanceof ts&&c.type==="mn"&&(c.children=[...a.children,...c.children],o.pop())}else if(a.type==="mi"&&a.children.length===1){var u=a.children[0];if(u instanceof Ac&&u.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var d=l.children[0];d instanceof Ac&&d.text.length>0&&(d.text=d.text.slice(0,1)+"\u0338"+d.text.slice(1),o.pop())}}}o.push(l),a=l}return o},p1=function(e,n,r){return Mj(Gs(e,n,r))},Ir=function(e,n){if(!e)return new ze.MathNode("mrow");if(fC[e.type]){var r=fC[e.type](e,n);return r}else throw new Ue("Got group of unknown type: '"+e.type+"'")};function uie(t,e,n,r,i){var o=Gs(t,n),a;o.length===1&&o[0]instanceof ts&&["mrow","mtable"].includes(o[0].type)?a=o[0]:a=new ze.MathNode("mrow",o);var s=new ze.MathNode("annotation",[new ze.TextNode(e)]);s.setAttribute("encoding","application/x-tex");var l=new ze.MathNode("semantics",[a,s]),c=new ze.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var u=i?"katex":"katex-mathml";return pe.makeSpan([u],[c])}var Vie=function(e){return new dC({style:e.displayMode?Vt.DISPLAY:Vt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Zie=function(e,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),e=pe.makeSpan(r,[e])}return e},dPe=function(e,n,r){var i=Vie(r),o;if(r.output==="mathml")return uie(e,n,i,r.displayMode,!0);if(r.output==="html"){var a=bj(e,i);o=pe.makeSpan(["katex"],[a])}else{var s=uie(e,n,i,r.displayMode,!1),l=bj(e,i);o=pe.makeSpan(["katex"],[s,l])}return Zie(o,r)},pPe=function(e,n,r){var i=Vie(r),o=bj(e,i),a=pe.makeSpan(["katex"],[o]);return Zie(a,r)},mPe={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},fPe=function(e){var n=new ze.MathNode("mo",[new ze.TextNode(mPe[e.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},hPe={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],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]},gPe=function(e){return e.type==="ordgroup"?e.body.length:1},bPe=function(e,n){function r(){var s=4e5,l=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var c=e,u=gPe(c.base),d,p,m;if(u>5)l==="widehat"||l==="widecheck"?(d=420,s=2364,m=.42,p=l+"4"):(d=312,s=2340,m=.34,p="tilde4");else{var f=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][f],d=[0,239,300,360,420][f],m=[0,.24,.3,.3,.36,.42][f],p=l+f):(s=[0,600,1033,2339,2340][f],d=[0,260,286,306,312][f],m=[0,.26,.286,.3,.306,.34][f],p="tilde"+f)}var h=new bd(p),x=new wu([h],{width:"100%",height:Qe(m),viewBox:"0 0 "+s+" "+d,preserveAspectRatio:"none"});return{span:pe.makeSvgSpan([],[x],n),minWidth:0,height:m}}else{var g=[],y=hPe[l],[b,w,v]=y,k=v/1e3,_=b.length,L,S;if(_===1){var C=y[3];L=["hide-tail"],S=[C]}else if(_===2)L=["halfarrow-left","halfarrow-right"],S=["xMinYMin","xMaxYMin"];else if(_===3)L=["brace-left","brace-center","brace-right"],S=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+_+" children.");for(var T=0;T<_;T++){var M=new bd(b[T]),A=new wu([M],{width:"400em",height:Qe(k),viewBox:"0 0 "+s+" "+v,preserveAspectRatio:S[T]+" slice"}),$=pe.makeSvgSpan([L[T]],[A],n);if(_===1)return{span:$,minWidth:w,height:k};$.style.height=Qe(k),g.push($)}return{span:pe.makeSpan(["stretchy"],g,n),minWidth:w,height:k}}}var{span:i,minWidth:o,height:a}=r();return i.height=a,i.style.height=Qe(a),o>0&&(i.style.minWidth=Qe(o)),i},yPe=function(e,n,r,i,o){var a,s=e.height+e.depth+r+i;if(/fbox|color|angl/.test(n)){if(a=pe.makeSpan(["stretchy",n],[],o),n==="fbox"){var l=o.color&&o.getColor();l&&(a.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(n)&&c.push(new e6({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&c.push(new e6({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new wu(c,{width:"100%",height:Qe(s)});a=pe.makeSvgSpan([],[u],o)}return a.height=s,a.style.height=Qe(s),a},tm={encloseSpan:yPe,mathMLnode:fPe,svgSpan:bPe};function Tn(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Tj(t){var e=wC(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function wC(t){return t&&(t.type==="atom"||GNe.hasOwnProperty(t.type))?t:null}var Rj=(t,e)=>{var n,r,i;t&&t.type==="supsub"?(r=Tn(t.base,"accent"),n=r.base,t.base=n,i=qNe(Jn(t,e)),t.base=r):(r=Tn(t,"accent"),n=r.base);var o=Jn(n,e.havingCrampedStyle()),a=r.isShifty&&rr.isCharacterBox(n),s=0;if(a){var l=rr.getBaseElem(n),c=Jn(l,e.havingCrampedStyle());s=oie(c).skew}var u=r.label==="\\c",d=u?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),p;if(r.isStretchy)p=tm.svgSpan(r,e),p=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Qe(2*s)+")",marginLeft:Qe(2*s)}:void 0}]},e);else{var m,f;r.label==="\\vec"?(m=pe.staticSvg("vec",e),f=pe.svgData.vec[1]):(m=pe.makeOrd({mode:r.mode,text:r.label},e,"textord"),m=oie(m),m.italic=0,f=m.width,u&&(d+=m.depth)),p=pe.makeSpan(["accent-body"],[m]);var h=r.label==="\\textcircled";h&&(p.classes.push("accent-full"),d=o.height);var x=s;h||(x-=f/2),p.style.left=Qe(x),r.label==="\\textcircled"&&(p.style.top=".2em"),p=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-d},{type:"elem",elem:p}]},e)}var g=pe.makeSpan(["mord","accent"],[p],e);return i?(i.children[0]=g,i.height=Math.max(g.height,i.height),i.classes[0]="mord",i):g},Wie=(t,e)=>{var n=t.isStretchy?tm.mathMLnode(t.label):new ze.MathNode("mo",[$c(t.label,t.mode)]),r=new ze.MathNode("mover",[Ir(t.base,e),n]);return r.setAttribute("accent","true"),r},xPe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));lt({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:(t,e)=>{var n=hC(e[0]),r=!xPe.test(t.funcName),i=!r||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Rj,mathmlBuilder:Wie});lt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var n=e[0],r=t.parser.mode;return r==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:t.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Rj,mathmlBuilder:Wie});lt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(t,e)=>{var n=Jn(t.base,e),r=tm.svgSpan(t,e),i=t.label==="\\utilde"?.12:0,o=pe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},e);return pe.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(t,e)=>{var n=tm.mathMLnode(t.label),r=new ze.MathNode("munder",[Ir(t.base,e),n]);return r.setAttribute("accentunder","true"),r}});var oC=t=>{var e=new ze.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};lt({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(t,e,n){var{parser:r,funcName:i}=t;return{type:"xArrow",mode:r.mode,label:i,body:e[0],below:n[0]}},htmlBuilder(t,e){var n=e.style,r=e.havingStyle(n.sup()),i=pe.wrapFragment(Jn(t.body,r,e),e),o=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(o+"-arrow-pad");var a;t.below&&(r=e.havingStyle(n.sub()),a=pe.wrapFragment(Jn(t.below,r,e),e),a.classes.push(o+"-arrow-pad"));var s=tm.svgSpan(t,e),l=-e.fontMetrics().axisHeight+.5*s.height,c=-e.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(c-=i.depth);var u;if(a){var d=-e.fontMetrics().axisHeight+a.height+.5*s.height+.111;u=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:a,shift:d}]},e)}else u=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:s,shift:l}]},e);return u.children[0].children[0].children[1].classes.push("svg-align"),pe.makeSpan(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var n=tm.mathMLnode(t.label);n.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(t.body){var i=oC(Ir(t.body,e));if(t.below){var o=oC(Ir(t.below,e));r=new ze.MathNode("munderover",[n,o,i])}else r=new ze.MathNode("mover",[n,i])}else if(t.below){var a=oC(Ir(t.below,e));r=new ze.MathNode("munder",[n,a])}else r=oC(),r=new ze.MathNode("mover",[n,r]);return r}});var wPe=pe.makeSpan;function Kie(t,e){var n=bo(t.body,e,!0);return wPe([t.mclass],n,e)}function Xie(t,e){var n,r=Gs(t.body,e);return t.mclass==="minner"?n=new ze.MathNode("mpadded",r):t.mclass==="mord"?t.isCharacterBox?(n=r[0],n.type="mi"):n=new ze.MathNode("mi",r):(t.isCharacterBox?(n=r[0],n.type="mo"):n=new ze.MathNode("mo",r),t.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):t.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):t.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}lt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Oi(i),isCharacterBox:rr.isCharacterBox(i)}},htmlBuilder:Kie,mathmlBuilder:Xie});var vC=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};lt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:n}=t;return{type:"mclass",mode:n.mode,mclass:vC(e[0]),body:Oi(e[1]),isCharacterBox:rr.isCharacterBox(e[1])}}});lt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:n,funcName:r}=t,i=e[1],o=e[0],a;r!=="\\stackrel"?a=vC(i):a="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Oi(i)},l={type:"supsub",mode:o.mode,base:s,sup:r==="\\underset"?null:o,sub:r==="\\underset"?o:null};return{type:"mclass",mode:n.mode,mclass:a,body:[l],isCharacterBox:rr.isCharacterBox(l)}},htmlBuilder:Kie,mathmlBuilder:Xie});lt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"pmb",mode:n.mode,mclass:vC(e[0]),body:Oi(e[0])}},htmlBuilder(t,e){var n=bo(t.body,e,!0),r=pe.makeSpan([t.mclass],n,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(t,e){var n=Gs(t.body,e),r=new ze.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var vPe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},die=()=>({type:"styling",body:[],mode:"math",style:"display"}),pie=t=>t.type==="textord"&&t.text==="@",kPe=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function CPe(t,e,n){var r=vPe[t];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:r,mode:"math",family:"rel"},a=n.callFunction("\\Big",[o],[]),s=n.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[i,a,s]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function _Pe(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var n=t.fetch().text;if(n==="&"||n==="\\\\")t.consume();else if(n==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Ue("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var r=[],i=[r],o=0;o<e.length;o++){for(var a=e[o],s=die(),l=0;l<a.length;l++)if(!pie(a[l]))s.body.push(a[l]);else{r.push(s),l+=1;var c=Tj(a[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var d=0;d<2;d++){for(var p=!0,m=l+1;m<a.length;m++){if(kPe(a[m],c)){p=!1,l=m;break}if(pie(a[m]))throw new Ue("Missing a "+c+" character to complete a CD arrow.",a[m]);u[d].body.push(a[m])}if(p)throw new Ue("Missing a "+c+" character to complete a CD arrow.",a[l])}else throw new Ue('Expected one of "<>AV=|." after @',a[l]);var f=CPe(c,u,t),h={type:"styling",body:[f],mode:"math",style:"display"};r.push(h),s=die()}o%2===0?r.push(s):r.shift(),r=[],i.push(r)}t.gullet.endGroup(),t.gullet.endGroup();var x=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:x,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}lt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:e[0]}},htmlBuilder(t,e){var n=e.havingStyle(e.style.sup()),r=pe.wrapFragment(Jn(t.label,n,e),e);return r.classes.push("cd-label-"+t.side),r.style.bottom=Qe(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(t,e){var n=new ze.MathNode("mrow",[Ir(t.label,e)]);return n=new ze.MathNode("mpadded",[n]),n.setAttribute("width","0"),t.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ze.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});lt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:n}=t;return{type:"cdlabelparent",mode:n.mode,fragment:e[0]}},htmlBuilder(t,e){var n=pe.wrapFragment(Jn(t.fragment,e),e);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(t,e){return new ze.MathNode("mrow",[Ir(t.fragment,e)])}});lt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:n}=t,r=Tn(e[0],"ordgroup"),i=r.body,o="",a=0;a<i.length;a++){var s=Tn(i[a],"textord");o+=s.text}var l=parseInt(o),c;if(isNaN(l))throw new Ue("\\@char has non-numeric argument "+o);if(l<0||l>=1114111)throw new Ue("\\@char with invalid code point "+o);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var Yie=(t,e)=>{var n=bo(t.body,e.withColor(t.color),!1);return pe.makeFragment(n)},Qie=(t,e)=>{var n=Gs(t.body,e.withColor(t.color)),r=new ze.MathNode("mstyle",n);return r.setAttribute("mathcolor",t.color),r};lt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:n}=t,r=Tn(e[0],"color-token").color,i=e[1];return{type:"color",mode:n.mode,color:r,body:Oi(i)}},htmlBuilder:Yie,mathmlBuilder:Qie});lt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:n,breakOnTokenText:r}=t,i=Tn(e[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var o=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:o}},htmlBuilder:Yie,mathmlBuilder:Qie});lt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,n){var{parser:r}=t,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:i&&Tn(i,"size").value}},htmlBuilder(t,e){var n=pe.makeSpan(["mspace"],[],e);return t.newLine&&(n.classes.push("newline"),t.size&&(n.style.marginTop=Qe(ci(t.size,e)))),n},mathmlBuilder(t,e){var n=new ze.MathNode("mspace");return t.newLine&&(n.setAttribute("linebreak","newline"),t.size&&n.setAttribute("height",Qe(ci(t.size,e)))),n}});var xj={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Jie=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Ue("Expected a control sequence",t);return e},SPe=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},eoe=(t,e,n,r)=>{var i=t.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!t.gullet.isExpandable(n.text)}),t.gullet.macros.set(e,i,r)};lt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:n}=t;e.consumeSpaces();var r=e.fetch();if(xj[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=xj[r.text]),Tn(e.parseFunction(),"internal");throw new Ue("Invalid token after macro prefix",r)}});lt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=e.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ue("Expected a control sequence",r);for(var o=0,a,s=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){a=e.gullet.future(),s[o].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ue('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==o+1)throw new Ue('Argument number "'+r.text+'" out of order');o++,s.push([])}else{if(r.text==="EOF")throw new Ue("Expected a macro definition");s[o].push(r.text)}var{tokens:l}=e.gullet.consumeArg();return a&&l.unshift(a),(n==="\\edef"||n==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(i,{tokens:l,numArgs:o,delimiters:s},n===xj[n]),{type:"internal",mode:e.mode}}});lt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=Jie(e.gullet.popToken());e.gullet.consumeSpaces();var i=SPe(e);return eoe(e,r,i,n==="\\\\globallet"),{type:"internal",mode:e.mode}}});lt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:n}=t,r=Jie(e.gullet.popToken()),i=e.gullet.popToken(),o=e.gullet.popToken();return eoe(e,r,o,n==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var K7=function(e,n,r){var i=Dr.math[e]&&Dr.math[e].replace,o=Sj(i||e,n,r);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+n+".");return o},Aj=function(e,n,r,i){var o=r.havingBaseStyle(n),a=pe.makeSpan(i.concat(o.sizingClasses(r)),[e],r),s=o.sizeMultiplier/r.sizeMultiplier;return a.height*=s,a.depth*=s,a.maxFontSize=o.sizeMultiplier,a},toe=function(e,n,r){var i=n.havingBaseStyle(r),o=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=Qe(o),e.height-=o,e.depth+=o},LPe=function(e,n,r,i,o,a){var s=pe.makeSymbol(e,"Main-Regular",o,i),l=Aj(s,n,i,a);return r&&toe(l,i,n),l},MPe=function(e,n,r,i){return pe.makeSymbol(e,"Size"+n+"-Regular",r,i)},noe=function(e,n,r,i,o,a){var s=MPe(e,n,o,i),l=Aj(pe.makeSpan(["delimsizing","size"+n],[s],i),Vt.TEXT,i,a);return r&&toe(l,i,Vt.TEXT),l},rj=function(e,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var o=pe.makeSpan(["delimsizinginner",i],[pe.makeSpan([],[pe.makeSymbol(e,n,r)])]);return{type:"elem",elem:o}},ij=function(e,n,r){var i=gd["Size4-Regular"][e.charCodeAt(0)]?gd["Size4-Regular"][e.charCodeAt(0)][4]:gd["Size1-Regular"][e.charCodeAt(0)][4],o=new bd("inner",NNe(e,Math.round(1e3*n))),a=new wu([o],{width:Qe(i),height:Qe(n),style:"width:"+Qe(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),s=pe.makeSvgSpan([],[a],r);return s.height=n,s.style.height=Qe(n),s.style.width=Qe(i),{type:"elem",elem:s}},wj=.008,aC={type:"kern",size:-1*wj},EPe=["|","\\lvert","\\rvert","\\vert"],TPe=["\\|","\\lVert","\\rVert","\\Vert"],roe=function(e,n,r,i,o,a){var s,l,c,u,d="",p=0;s=c=u=e,l=null;var m="Size1-Regular";e==="\\uparrow"?c=u="\u23D0":e==="\\Uparrow"?c=u="\u2016":e==="\\downarrow"?s=c="\u23D0":e==="\\Downarrow"?s=c="\u2016":e==="\\updownarrow"?(s="\\uparrow",c="\u23D0",u="\\downarrow"):e==="\\Updownarrow"?(s="\\Uparrow",c="\u2016",u="\\Downarrow"):EPe.includes(e)?(c="\u2223",d="vert",p=333):TPe.includes(e)?(c="\u2225",d="doublevert",p=556):e==="["||e==="\\lbrack"?(s="\u23A1",c="\u23A2",u="\u23A3",m="Size4-Regular",d="lbrack",p=667):e==="]"||e==="\\rbrack"?(s="\u23A4",c="\u23A5",u="\u23A6",m="Size4-Regular",d="rbrack",p=667):e==="\\lfloor"||e==="\u230A"?(c=s="\u23A2",u="\u23A3",m="Size4-Regular",d="lfloor",p=667):e==="\\lceil"||e==="\u2308"?(s="\u23A1",c=u="\u23A2",m="Size4-Regular",d="lceil",p=667):e==="\\rfloor"||e==="\u230B"?(c=s="\u23A5",u="\u23A6",m="Size4-Regular",d="rfloor",p=667):e==="\\rceil"||e==="\u2309"?(s="\u23A4",c=u="\u23A5",m="Size4-Regular",d="rceil",p=667):e==="("||e==="\\lparen"?(s="\u239B",c="\u239C",u="\u239D",m="Size4-Regular",d="lparen",p=875):e===")"||e==="\\rparen"?(s="\u239E",c="\u239F",u="\u23A0",m="Size4-Regular",d="rparen",p=875):e==="\\{"||e==="\\lbrace"?(s="\u23A7",l="\u23A8",u="\u23A9",c="\u23AA",m="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(s="\u23AB",l="\u23AC",u="\u23AD",c="\u23AA",m="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(s="\u23A7",u="\u23A9",c="\u23AA",m="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(s="\u23AB",u="\u23AD",c="\u23AA",m="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(s="\u23A7",u="\u23AD",c="\u23AA",m="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(s="\u23AB",u="\u23A9",c="\u23AA",m="Size4-Regular");var f=K7(s,m,o),h=f.height+f.depth,x=K7(c,m,o),g=x.height+x.depth,y=K7(u,m,o),b=y.height+y.depth,w=0,v=1;if(l!==null){var k=K7(l,m,o);w=k.height+k.depth,v=2}var _=h+b+w,L=Math.max(0,Math.ceil((n-_)/(v*g))),S=_+L*v*g,C=i.fontMetrics().axisHeight;r&&(C*=i.sizeMultiplier);var T=S/2-C,M=[];if(d.length>0){var A=S-h-b,$=Math.round(S*1e3),N=PNe(d,Math.round(A*1e3)),F=new bd(d,N),D=(p/1e3).toFixed(3)+"em",O=($/1e3).toFixed(3)+"em",B=new wu([F],{width:D,height:O,viewBox:"0 0 "+p+" "+$}),P=pe.makeSvgSpan([],[B],i);P.height=$/1e3,P.style.width=D,P.style.height=O,M.push({type:"elem",elem:P})}else{if(M.push(rj(u,m,o)),M.push(aC),l===null){var U=S-h-b+2*wj;M.push(ij(c,U,i))}else{var G=(S-h-b-w)/2+2*wj;M.push(ij(c,G,i)),M.push(aC),M.push(rj(l,m,o)),M.push(aC),M.push(ij(c,G,i))}M.push(aC),M.push(rj(s,m,o))}var j=i.havingBaseStyle(Vt.TEXT),V=pe.makeVList({positionType:"bottom",positionData:T,children:M},j);return Aj(pe.makeSpan(["delimsizing","mult"],[V],j),Vt.TEXT,i,a)},oj=80,aj=.08,sj=function(e,n,r,i,o){var a=INe(e,i,r),s=new bd(e,a),l=new wu([s],{width:"400em",height:Qe(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return pe.makeSvgSpan(["hide-tail"],[l],o)},RPe=function(e,n){var r=n.havingBaseSizing(),i=soe("\\surd",e*r.sizeMultiplier,aoe,r),o=r.sizeMultiplier,a=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),s,l=0,c=0,u=0,d;return i.type==="small"?(u=1e3+1e3*a+oj,e<1?o=1:e<1.4&&(o=.7),l=(1+a+aj)/o,c=(1+a)/o,s=sj("sqrtMain",l,u,a,n),s.style.minWidth="0.853em",d=.833/o):i.type==="large"?(u=(1e3+oj)*X7[i.size],c=(X7[i.size]+a)/o,l=(X7[i.size]+a+aj)/o,s=sj("sqrtSize"+i.size,l,u,a,n),s.style.minWidth="1.02em",d=1/o):(l=e+a+aj,c=e+a,u=Math.floor(1e3*e+a)+oj,s=sj("sqrtTall",l,u,a,n),s.style.minWidth="0.742em",d=1.056),s.height=c,s.style.height=Qe(l),{span:s,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+a)*o}},ioe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],APe=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ooe=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],X7=[0,1.2,1.8,2.4,3],$Pe=function(e,n,r,i,o){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),ioe.includes(e)||ooe.includes(e))return noe(e,n,!1,r,i,o);if(APe.includes(e))return roe(e,X7[n],!1,r,i,o);throw new Ue("Illegal delimiter: '"+e+"'")},IPe=[{type:"small",style:Vt.SCRIPTSCRIPT},{type:"small",style:Vt.SCRIPT},{type:"small",style:Vt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],NPe=[{type:"small",style:Vt.SCRIPTSCRIPT},{type:"small",style:Vt.SCRIPT},{type:"small",style:Vt.TEXT},{type:"stack"}],aoe=[{type:"small",style:Vt.SCRIPTSCRIPT},{type:"small",style:Vt.SCRIPT},{type:"small",style:Vt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],PPe=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},soe=function(e,n,r,i){for(var o=Math.min(2,3-i.style.size),a=o;a<r.length&&r[a].type!=="stack";a++){var s=K7(e,PPe(r[a]),"math"),l=s.height+s.depth;if(r[a].type==="small"){var c=i.havingBaseStyle(r[a].style);l*=c.sizeMultiplier}if(l>n)return r[a]}return r[r.length-1]},loe=function(e,n,r,i,o,a){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var s;ooe.includes(e)?s=IPe:ioe.includes(e)?s=aoe:s=NPe;var l=soe(e,n,s,i);return l.type==="small"?LPe(e,l.style,r,i,o,a):l.type==="large"?noe(e,l.size,r,i,o,a):roe(e,n,r,i,o,a)},jPe=function(e,n,r,i,o,a){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,c=5/i.fontMetrics().ptPerEm,u=Math.max(n-s,r+s),d=Math.max(u/500*l,2*u-c);return loe(e,d,!0,i,o,a)},Jp={sqrtImage:RPe,sizedDelim:$Pe,sizeToMaxHeight:X7,customSizedDelim:loe,leftRightDelim:jPe},mie={"\\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}},OPe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function kC(t,e){var n=wC(t);if(n&&OPe.includes(n.text))return n;throw n?new Ue("Invalid delimiter '"+n.text+"' after '"+e.funcName+"'",t):new Ue("Invalid delimiter type '"+t.type+"'",t)}lt({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:(t,e)=>{var n=kC(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:mie[t.funcName].size,mclass:mie[t.funcName].mclass,delim:n.text}},htmlBuilder:(t,e)=>t.delim==="."?pe.makeSpan([t.mclass]):Jp.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push($c(t.delim,t.mode));var n=new ze.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Qe(Jp.sizeToMaxHeight[t.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function fie(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}lt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=t.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ue("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:kC(e[0],t).text,color:n}}});lt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=kC(e[0],t),r=t.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=Tn(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(t,e)=>{fie(t);for(var n=bo(t.body,e,!0,["mopen","mclose"]),r=0,i=0,o=!1,a=0;a<n.length;a++)n[a].isMiddle?o=!0:(r=Math.max(n[a].height,r),i=Math.max(n[a].depth,i));r*=e.sizeMultiplier,i*=e.sizeMultiplier;var s;if(t.left==="."?s=t6(e,["mopen"]):s=Jp.leftRightDelim(t.left,r,i,e,t.mode,["mopen"]),n.unshift(s),o)for(var l=1;l<n.length;l++){var c=n[l],u=c.isMiddle;u&&(n[l]=Jp.leftRightDelim(u.delim,r,i,u.options,t.mode,[]))}var d;if(t.right===".")d=t6(e,["mclose"]);else{var p=t.rightColor?e.withColor(t.rightColor):e;d=Jp.leftRightDelim(t.right,r,i,p,t.mode,["mclose"])}return n.push(d),pe.makeSpan(["minner"],n,e)},mathmlBuilder:(t,e)=>{fie(t);var n=Gs(t.body,e);if(t.left!=="."){var r=new ze.MathNode("mo",[$c(t.left,t.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(t.right!=="."){var i=new ze.MathNode("mo",[$c(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),n.push(i)}return Mj(n)}});lt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var n=kC(e[0],t);if(!t.parser.leftrightDepth)throw new Ue("\\middle without preceding \\left",n);return{type:"middle",mode:t.parser.mode,delim:n.text}},htmlBuilder:(t,e)=>{var n;if(t.delim===".")n=t6(e,[]);else{n=Jp.sizedDelim(t.delim,1,e,t.mode,[]);var r={delim:t.delim,options:e};n.isMiddle=r}return n},mathmlBuilder:(t,e)=>{var n=t.delim==="\\vert"||t.delim==="|"?$c("|","text"):$c(t.delim,t.mode),r=new ze.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var $j=(t,e)=>{var n=pe.wrapFragment(Jn(t.body,e),e),r=t.label.slice(1),i=e.sizeMultiplier,o,a=0,s=rr.isCharacterBox(t.body);if(r==="sout")o=pe.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/i,a=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var l=ci({number:.6,unit:"pt"},e),c=ci({number:.35,unit:"ex"},e),u=e.havingBaseSizing();i=i/u.sizeMultiplier;var d=n.height+n.depth+l+c;n.style.paddingLeft=Qe(d/2+l);var p=Math.floor(1e3*d*i),m=ANe(p),f=new wu([new bd("phase",m)],{width:"400em",height:Qe(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});o=pe.makeSvgSpan(["hide-tail"],[f],e),o.style.height=Qe(d),a=n.depth+l+c}else{/cancel/.test(r)?s||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var h=0,x=0,g=0;/box/.test(r)?(g=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),h=e.fontMetrics().fboxsep+(r==="colorbox"?0:g),x=h):r==="angl"?(g=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),h=4*g,x=Math.max(0,.25-n.depth)):(h=s?.2:0,x=h),o=tm.encloseSpan(n,r,h,x,e),/fbox|boxed|fcolorbox/.test(r)?(o.style.borderStyle="solid",o.style.borderWidth=Qe(g)):r==="angl"&&g!==.049&&(o.style.borderTopWidth=Qe(g),o.style.borderRightWidth=Qe(g)),a=n.depth+x,t.backgroundColor&&(o.style.backgroundColor=t.backgroundColor,t.borderColor&&(o.style.borderColor=t.borderColor))}var y;if(t.backgroundColor)y=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:a},{type:"elem",elem:n,shift:0}]},e);else{var b=/cancel|phase/.test(r)?["svg-align"]:[];y=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:o,shift:a,wrapperClasses:b}]},e)}return/cancel/.test(r)&&(y.height=n.height,y.depth=n.depth),/cancel/.test(r)&&!s?pe.makeSpan(["mord","cancel-lap"],[y],e):pe.makeSpan(["mord"],[y],e)},Ij=(t,e)=>{var n=0,r=new ze.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ir(t.body,e)]);switch(t.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=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&r.setAttribute("mathbackground",t.backgroundColor),r};lt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,n){var{parser:r,funcName:i}=t,o=Tn(e[0],"color-token").color,a=e[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,body:a}},htmlBuilder:$j,mathmlBuilder:Ij});lt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,n){var{parser:r,funcName:i}=t,o=Tn(e[0],"color-token").color,a=Tn(e[1],"color-token").color,s=e[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:$j,mathmlBuilder:Ij});lt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\fbox",body:e[0]}}});lt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:$j,mathmlBuilder:Ij});lt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"enclose",mode:n.mode,label:"\\angl",body:e[0]}}});var coe={};function yd(t){for(var{type:e,names:n,props:r,handler:i,htmlBuilder:o,mathmlBuilder:a}=t,s={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)coe[n[l]]=s;o&&(mC[e]=o),a&&(fC[e]=a)}var uoe={};function q(t,e){uoe[t]=e}function hie(t){var e=[];t.consumeSpaces();var n=t.fetch().text;for(n==="\\relax"&&(t.consume(),t.consumeSpaces(),n=t.fetch().text);n==="\\hline"||n==="\\hdashline";)t.consume(),e.push(n==="\\hdashline"),t.consumeSpaces(),n=t.fetch().text;return e}var CC=t=>{var e=t.parser.settings;if(!e.displayMode)throw new Ue("{"+t.envName+"} can be used only in display mode.")};function Nj(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function m1(t,e,n){var{hskipBeforeAndAfter:r,addJot:i,cols:o,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:p}=e;if(t.gullet.beginGroup(),c||t.gullet.macros.set("\\cr","\\\\\\relax"),!a){var m=t.gullet.expandMacroAsText("\\arraystretch");if(m==null)a=1;else if(a=parseFloat(m),!a||a<0)throw new Ue("Invalid \\arraystretch: "+m)}t.gullet.beginGroup();var f=[],h=[f],x=[],g=[],y=l!=null?[]:void 0;function b(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(t.gullet.macros.get("\\df@tag")?(y.push(t.subparse([new Il("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(b(),g.push(hie(t));;){var v=t.parseExpression(!1,c?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),v={type:"ordgroup",mode:t.mode,body:v},n&&(v={type:"styling",mode:t.mode,style:n,body:[v]}),f.push(v);var k=t.fetch().text;if(k==="&"){if(d&&f.length===d){if(c||s)throw new Ue("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(k==="\\end"){w(),f.length===1&&v.type==="styling"&&v.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),g.length<h.length+1&&g.push([]);break}else if(k==="\\\\"){t.consume();var _=void 0;t.gullet.future().text!==" "&&(_=t.parseSizeGroup(!0)),x.push(_?_.value:null),w(),g.push(hie(t)),f=[],h.push(f),b()}else throw new Ue("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:i,arraystretch:a,body:h,cols:o,rowGaps:x,hskipBeforeAndAfter:r,hLinesBeforeRow:g,colSeparationType:s,tags:y,leqno:p}}function Pj(t){return t.slice(0,1)==="d"?"display":"text"}var xd=function(e,n){var r,i,o=e.body.length,a=e.hLinesBeforeRow,s=0,l=new Array(o),c=[],u=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),d=1/n.fontMetrics().ptPerEm,p=5*d;if(e.colSeparationType&&e.colSeparationType==="small"){var m=n.havingStyle(Vt.SCRIPT).sizeMultiplier;p=.2778*(m/n.sizeMultiplier)}var f=e.colSeparationType==="CD"?ci({number:3,unit:"ex"},n):12*d,h=3*d,x=e.arraystretch*f,g=.7*x,y=.3*x,b=0;function w(Se){for(var de=0;de<Se.length;++de)de>0&&(b+=.25),c.push({pos:b,isDashed:Se[de]})}for(w(a[0]),r=0;r<e.body.length;++r){var v=e.body[r],k=g,_=y;s<v.length&&(s=v.length);var L=new Array(v.length);for(i=0;i<v.length;++i){var S=Jn(v[i],n);_<S.depth&&(_=S.depth),k<S.height&&(k=S.height),L[i]=S}var C=e.rowGaps[r],T=0;C&&(T=ci(C,n),T>0&&(T+=y,_<T&&(_=T),T=0)),e.addJot&&(_+=h),L.height=k,L.depth=_,b+=k,L.pos=b,b+=_+T,l[r]=L,w(a[r+1])}var M=b/2+n.fontMetrics().axisHeight,A=e.cols||[],$=[],N,F,D=[];if(e.tags&&e.tags.some(Se=>Se))for(r=0;r<o;++r){var O=l[r],B=O.pos-M,P=e.tags[r],U=void 0;P===!0?U=pe.makeSpan(["eqn-num"],[],n):P===!1?U=pe.makeSpan([],[],n):U=pe.makeSpan([],bo(P,n,!0),n),U.depth=O.depth,U.height=O.height,D.push({type:"elem",elem:U,shift:B})}for(i=0,F=0;i<s||F<A.length;++i,++F){for(var G=A[F]||{},j=!0;G.type==="separator";){if(j||(N=pe.makeSpan(["arraycolsep"],[]),N.style.width=Qe(n.fontMetrics().doubleRuleSep),$.push(N)),G.separator==="|"||G.separator===":"){var V=G.separator==="|"?"solid":"dashed",H=pe.makeSpan(["vertical-separator"],[],n);H.style.height=Qe(b),H.style.borderRightWidth=Qe(u),H.style.borderRightStyle=V,H.style.margin="0 "+Qe(-u/2);var ne=b-M;ne&&(H.style.verticalAlign=Qe(-ne)),$.push(H)}else throw new Ue("Invalid separator type: "+G.separator);F++,G=A[F]||{},j=!1}if(!(i>=s)){var J=void 0;(i>0||e.hskipBeforeAndAfter)&&(J=rr.deflt(G.pregap,p),J!==0&&(N=pe.makeSpan(["arraycolsep"],[]),N.style.width=Qe(J),$.push(N)));var W=[];for(r=0;r<o;++r){var ie=l[r],Z=ie[i];if(Z){var le=ie.pos-M;Z.depth=ie.depth,Z.height=ie.height,W.push({type:"elem",elem:Z,shift:le})}}W=pe.makeVList({positionType:"individualShift",children:W},n),W=pe.makeSpan(["col-align-"+(G.align||"c")],[W]),$.push(W),(i<s-1||e.hskipBeforeAndAfter)&&(J=rr.deflt(G.postgap,p),J!==0&&(N=pe.makeSpan(["arraycolsep"],[]),N.style.width=Qe(J),$.push(N)))}}if(l=pe.makeSpan(["mtable"],$),c.length>0){for(var se=pe.makeLineSpan("hline",n,u),ge=pe.makeLineSpan("hdashline",n,u),ce=[{type:"elem",elem:l,shift:0}];c.length>0;){var be=c.pop(),ke=be.pos-M;be.isDashed?ce.push({type:"elem",elem:ge,shift:ke}):ce.push({type:"elem",elem:se,shift:ke})}l=pe.makeVList({positionType:"individualShift",children:ce},n)}if(D.length===0)return pe.makeSpan(["mord"],[l],n);var me=pe.makeVList({positionType:"individualShift",children:D},n);return me=pe.makeSpan(["tag"],[me],n),pe.makeFragment([l,me])},DPe={c:"center ",l:"left ",r:"right "},wd=function(e,n){for(var r=[],i=new ze.MathNode("mtd",[],["mtr-glue"]),o=new ze.MathNode("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var s=e.body[a],l=[],c=0;c<s.length;c++)l.push(new ze.MathNode("mtd",[Ir(s[c],n)]));e.tags&&e.tags[a]&&(l.unshift(i),l.push(i),e.leqno?l.unshift(o):l.push(o)),r.push(new ze.MathNode("mtr",l))}var u=new ze.MathNode("mtable",r),d=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",Qe(d));var p="",m="";if(e.cols&&e.cols.length>0){var f=e.cols,h="",x=!1,g=0,y=f.length;f[0].type==="separator"&&(p+="top ",g=1),f[f.length-1].type==="separator"&&(p+="bottom ",y-=1);for(var b=g;b<y;b++)f[b].type==="align"?(m+=DPe[f[b].align],x&&(h+="none "),x=!0):f[b].type==="separator"&&x&&(h+=f[b].separator==="|"?"solid ":"dashed ",x=!1);u.setAttribute("columnalign",m.trim()),/[sd]/.test(h)&&u.setAttribute("columnlines",h.trim())}if(e.colSeparationType==="align"){for(var w=e.cols||[],v="",k=1;k<w.length;k++)v+=k%2?"0em ":"1em ";u.setAttribute("columnspacing",v.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var _="",L=e.hLinesBeforeRow;p+=L[0].length>0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var S=1;S<L.length-1;S++)_+=L[S].length===0?"none ":L[S][0]?"dashed ":"solid ";return/[sd]/.test(_)&&u.setAttribute("rowlines",_.trim()),p!==""&&(u=new ze.MathNode("menclose",[u]),u.setAttribute("notation",p.trim())),e.arraystretch&&e.arraystretch<1&&(u=new ze.MathNode("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},doe=function(e,n){e.envName.indexOf("ed")===-1&&CC(e);var r=[],i=e.envName.indexOf("at")>-1?"alignat":"align",o=e.envName==="split",a=m1(e.parser,{cols:r,addJot:!0,autoTag:o?void 0:Nj(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),s,l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var u="",d=0;d<n[0].body.length;d++){var p=Tn(n[0].body[d],"textord");u+=p.text}s=Number(u),l=s*2}var m=!l;a.body.forEach(function(g){for(var y=1;y<g.length;y+=2){var b=Tn(g[y],"styling"),w=Tn(b.body[0],"ordgroup");w.body.unshift(c)}if(m)l<g.length&&(l=g.length);else{var v=g.length/2;if(s<v)throw new Ue("Too many math in a row: "+("expected "+s+", but got "+v),g[0])}});for(var f=0;f<l;++f){var h="r",x=0;f%2===1?h="l":f>0&&m&&(x=1),r[f]={type:"align",align:h,pregap:x,postgap:0}}return a.colSeparationType=m?"align":"alignat",a};yd({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var n=wC(e[0]),r=n?[e[0]]:Tn(e[0],"ordgroup").body,i=r.map(function(a){var s=Tj(a),l=s.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ue("Unknown column alignment: "+l,a)}),o={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return m1(t.parser,o,Pj(t.envName))},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Ue("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var o=m1(t.parser,r,Pj(t.envName)),a=Math.max(0,...o.body.map(s=>s.length));return o.cols=new Array(a).fill({type:"align",align:n}),e?{type:"leftright",mode:t.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},n=m1(t.parser,e,"script");return n.colSeparationType="small",n},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var n=wC(e[0]),r=n?[e[0]]:Tn(e[0],"ordgroup").body,i=r.map(function(a){var s=Tj(a),l=s.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ue("Unknown column alignment: "+l,a)});if(i.length>1)throw new Ue("{subarray} can contain only one column");var o={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=m1(t.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Ue("{subarray} can contain only one column");return o},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=m1(t.parser,e,Pj(t.envName));return{type:"leftright",mode:t.mode,body:[n],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:doe,htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){["gather","gather*"].includes(t.envName)&&CC(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Nj(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return m1(t.parser,e,"display")},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:doe,htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){CC(t);var e={autoTag:Nj(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return m1(t.parser,e,"display")},htmlBuilder:xd,mathmlBuilder:wd});yd({type:"array",names:["CD"],props:{numArgs:0},handler(t){return CC(t),_Pe(t.parser)},htmlBuilder:xd,mathmlBuilder:wd});q("\\nonumber","\\gdef\\@eqnsw{0}");q("\\notag","\\nonumber");lt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new Ue(t.funcName+" valid only within array environment")}});var gie=coe;lt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];if(i.type!=="ordgroup")throw new Ue("Invalid environment name",i);for(var o="",a=0;a<i.body.length;++a)o+=Tn(i.body[a],"textord").text;if(r==="\\begin"){if(!gie.hasOwnProperty(o))throw new Ue("No such environment: "+o,i);var s=gie[o],{args:l,optArgs:c}=n.parseArguments("\\begin{"+o+"}",s),u={mode:n.mode,envName:o,parser:n},d=s.handler(u,l,c);n.expect("\\end",!1);var p=n.nextToken,m=Tn(n.parseFunction(),"environment");if(m.name!==o)throw new Ue("Mismatch: \\begin{"+o+"} matched by \\end{"+m.name+"}",p);return d}return{type:"environment",mode:n.mode,name:o,nameGroup:i}}});var poe=(t,e)=>{var n=t.font,r=e.withFont(n);return Jn(t.body,r)},moe=(t,e)=>{var n=t.font,r=e.withFont(n);return Ir(t.body,r)},bie={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};lt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=hC(e[0]),o=r;return o in bie&&(o=bie[o]),{type:"font",mode:n.mode,font:o.slice(1),body:i}},htmlBuilder:poe,mathmlBuilder:moe});lt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:n}=t,r=e[0],i=rr.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:vC(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});lt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,breakOnTokenText:i}=t,{mode:o}=n,a=n.parseExpression(!0,i),s="math"+r.slice(1);return{type:"font",mode:o,font:s,body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:poe,mathmlBuilder:moe});var foe=(t,e)=>{var n=e;return t==="display"?n=n.id>=Vt.SCRIPT.id?n.text():Vt.DISPLAY:t==="text"&&n.size===Vt.DISPLAY.size?n=Vt.TEXT:t==="script"?n=Vt.SCRIPT:t==="scriptscript"&&(n=Vt.SCRIPTSCRIPT),n},jj=(t,e)=>{var n=foe(t.size,e.style),r=n.fracNum(),i=n.fracDen(),o;o=e.havingStyle(r);var a=Jn(t.numer,o,e);if(t.continued){var s=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}o=e.havingStyle(i);var c=Jn(t.denom,o,e),u,d,p;t.hasBarLine?(t.barSize?(d=ci(t.barSize,e),u=pe.makeLineSpan("frac-line",e,d)):u=pe.makeLineSpan("frac-line",e),d=u.height,p=u.height):(u=null,d=0,p=e.fontMetrics().defaultRuleThickness);var m,f,h;n.size===Vt.DISPLAY.size||t.size==="display"?(m=e.fontMetrics().num1,d>0?f=3*p:f=7*p,h=e.fontMetrics().denom1):(d>0?(m=e.fontMetrics().num2,f=p):(m=e.fontMetrics().num3,f=3*p),h=e.fontMetrics().denom2);var x;if(u){var y=e.fontMetrics().axisHeight;m-a.depth-(y+.5*d)<f&&(m+=f-(m-a.depth-(y+.5*d))),y-.5*d-(c.height-h)<f&&(h+=f-(y-.5*d-(c.height-h)));var b=-(y-.5*d);x=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:h},{type:"elem",elem:u,shift:b},{type:"elem",elem:a,shift:-m}]},e)}else{var g=m-a.depth-(c.height-h);g<f&&(m+=.5*(f-g),h+=.5*(f-g)),x=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:h},{type:"elem",elem:a,shift:-m}]},e)}o=e.havingStyle(n),x.height*=o.sizeMultiplier/e.sizeMultiplier,x.depth*=o.sizeMultiplier/e.sizeMultiplier;var w;n.size===Vt.DISPLAY.size?w=e.fontMetrics().delim1:n.size===Vt.SCRIPTSCRIPT.size?w=e.havingStyle(Vt.SCRIPT).fontMetrics().delim2:w=e.fontMetrics().delim2;var v,k;return t.leftDelim==null?v=t6(e,["mopen"]):v=Jp.customSizedDelim(t.leftDelim,w,!0,e.havingStyle(n),t.mode,["mopen"]),t.continued?k=pe.makeSpan([]):t.rightDelim==null?k=t6(e,["mclose"]):k=Jp.customSizedDelim(t.rightDelim,w,!0,e.havingStyle(n),t.mode,["mclose"]),pe.makeSpan(["mord"].concat(o.sizingClasses(e)),[v,pe.makeSpan(["mfrac"],[x]),k],e)},Oj=(t,e)=>{var n=new ze.MathNode("mfrac",[Ir(t.numer,e),Ir(t.denom,e)]);if(!t.hasBarLine)n.setAttribute("linethickness","0px");else if(t.barSize){var r=ci(t.barSize,e);n.setAttribute("linethickness",Qe(r))}var i=foe(t.size,e.style);if(i.size!==e.style.size){n=new ze.MathNode("mstyle",[n]);var o=i.size===Vt.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var s=new ze.MathNode("mo",[new ze.TextNode(t.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),t.rightDelim!=null){var l=new ze.MathNode("mo",[new ze.TextNode(t.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return Mj(a)}return n};lt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],o=e[1],a,s=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,s="(",l=")";break;case"\\\\bracefrac":a=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":a=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:o,hasBarLine:a,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:jj,mathmlBuilder:Oj});lt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],o=e[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});lt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:n,token:r}=t,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:r}}});var yie=["display","text","script","scriptscript"],xie=function(e){var n=null;return e.length>0&&(n=e,n=n==="."?null:n),n};lt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:n}=t,r=e[4],i=e[5],o=hC(e[0]),a=o.type==="atom"&&o.family==="open"?xie(o.text):null,s=hC(e[1]),l=s.type==="atom"&&s.family==="close"?xie(s.text):null,c=Tn(e[2],"size"),u,d=null;c.isBlank?u=!0:(d=c.value,u=d.number>0);var p="auto",m=e[3];if(m.type==="ordgroup"){if(m.body.length>0){var f=Tn(m.body[0],"textord");p=yie[Number(f.text)]}}else m=Tn(m,"textord"),p=yie[Number(m.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:a,rightDelim:l,size:p}},htmlBuilder:jj,mathmlBuilder:Oj});lt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:n,funcName:r,token:i}=t;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Tn(e[0],"size").value,token:i}}});lt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0],o=gNe(Tn(e[1],"infix").size),a=e[2],s=o.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:a,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:jj,mathmlBuilder:Oj});var hoe=(t,e)=>{var n=e.style,r,i;t.type==="supsub"?(r=t.sup?Jn(t.sup,e.havingStyle(n.sup()),e):Jn(t.sub,e.havingStyle(n.sub()),e),i=Tn(t.base,"horizBrace")):i=Tn(t,"horizBrace");var o=Jn(i.base,e.havingBaseStyle(Vt.DISPLAY)),a=tm.svgSpan(i,e),s;if(i.isOver?(s=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:a}]},e),s.children[0].children[0].children[1].classes.push("svg-align")):(s=pe.makeVList({positionType:"bottom",positionData:o.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:o}]},e),s.children[0].children[0].children[0].classes.push("svg-align")),r){var l=pe.makeSpan(["mord",i.isOver?"mover":"munder"],[s],e);i.isOver?s=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},e):s=pe.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return pe.makeSpan(["mord",i.isOver?"mover":"munder"],[s],e)},FPe=(t,e)=>{var n=tm.mathMLnode(t.label);return new ze.MathNode(t.isOver?"mover":"munder",[Ir(t.base,e),n])};lt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:n,funcName:r}=t;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:hoe,mathmlBuilder:FPe});lt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[1],i=Tn(e[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Oi(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var n=bo(t.body,e,!1);return pe.makeAnchor(t.href,[],n,e)},mathmlBuilder:(t,e)=>{var n=p1(t.body,e);return n instanceof ts||(n=new ts("mrow",[n])),n.setAttribute("href",t.href),n}});lt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=Tn(e[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],o=0;o<r.length;o++){var a=r[o];a==="~"&&(a="\\textasciitilde"),i.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:Oi(s)}}});lt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(t,e){var{parser:n}=t;return{type:"hbox",mode:n.mode,body:Oi(e[0])}},htmlBuilder(t,e){var n=bo(t.body,e,!1);return pe.makeFragment(n)},mathmlBuilder(t,e){return new ze.MathNode("mrow",Gs(t.body,e))}});lt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r,token:i}=t,o=Tn(e[0],"raw").string,a=e[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(r){case"\\htmlClass":l.class=o,s={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,s={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,s={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var c=o.split(","),u=0;u<c.length;u++){var d=c[u].split("=");if(d.length!==2)throw new Ue("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(s)?{type:"html",mode:n.mode,attributes:l,body:Oi(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(t,e)=>{var n=bo(t.body,e,!1),r=["enclosing"];t.attributes.class&&r.push(...t.attributes.class.trim().split(/\s+/));var i=pe.makeSpan(r,n,e);for(var o in t.attributes)o!=="class"&&t.attributes.hasOwnProperty(o)&&i.setAttribute(o,t.attributes[o]);return i},mathmlBuilder:(t,e)=>p1(t.body,e)});lt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"htmlmathml",mode:n.mode,html:Oi(e[0]),mathml:Oi(e[1])}},htmlBuilder:(t,e)=>{var n=bo(t.html,e,!1);return pe.makeFragment(n)},mathmlBuilder:(t,e)=>p1(t.mathml,e)});var lj=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!n)throw new Ue("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Nie(r))throw new Ue("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};lt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,n)=>{var{parser:r}=t,i={number:0,unit:"em"},o={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(n[0])for(var l=Tn(n[0],"raw").string,c=l.split(","),u=0;u<c.length;u++){var d=c[u].split("=");if(d.length===2){var p=d[1].trim();switch(d[0].trim()){case"alt":s=p;break;case"width":i=lj(p);break;case"height":o=lj(p);break;case"totalheight":a=lj(p);break;default:throw new Ue("Invalid key: '"+d[0]+"' in \\includegraphics.")}}}var m=Tn(e[0],"url").url;return s===""&&(s=m,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:o,totalheight:a,src:m}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var n=ci(t.height,e),r=0;t.totalheight.number>0&&(r=ci(t.totalheight,e)-n);var i=0;t.width.number>0&&(i=ci(t.width,e));var o={height:Qe(n+r)};i>0&&(o.width=Qe(i)),r>0&&(o.verticalAlign=Qe(-r));var a=new fj(t.src,t.alt,o);return a.height=n,a.depth=r,a},mathmlBuilder:(t,e)=>{var n=new ze.MathNode("mglyph",[]);n.setAttribute("alt",t.alt);var r=ci(t.height,e),i=0;if(t.totalheight.number>0&&(i=ci(t.totalheight,e)-r,n.setAttribute("valign",Qe(-i))),n.setAttribute("height",Qe(r+i)),t.width.number>0){var o=ci(t.width,e);n.setAttribute("width",Qe(o))}return n.setAttribute("src",t.src),n}});lt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,i=Tn(e[0],"size");if(n.settings.strict){var o=r[1]==="m",a=i.value.unit==="mu";o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(t,e){return pe.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var n=ci(t.dimension,e);return new ze.SpaceNode(n)}});lt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(t,e)=>{var n;t.alignment==="clap"?(n=pe.makeSpan([],[Jn(t.body,e)]),n=pe.makeSpan(["inner"],[n],e)):n=pe.makeSpan(["inner"],[Jn(t.body,e)]);var r=pe.makeSpan(["fix"],[]),i=pe.makeSpan([t.alignment],[n,r],e),o=pe.makeSpan(["strut"]);return o.style.height=Qe(i.height+i.depth),i.depth&&(o.style.verticalAlign=Qe(-i.depth)),i.children.unshift(o),i=pe.makeSpan(["thinbox"],[i],e),pe.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var n=new ze.MathNode("mpadded",[Ir(t.body,e)]);if(t.alignment!=="rlap"){var r=t.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});lt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:n,parser:r}=t,i=r.mode;r.switchMode("math");var o=n==="\\("?"\\)":"$",a=r.parseExpression(!1,o);return r.expect(o),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:a}}});lt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new Ue("Mismatched "+t.funcName)}});var wie=(t,e)=>{switch(e.style.size){case Vt.DISPLAY.size:return t.display;case Vt.TEXT.size:return t.text;case Vt.SCRIPT.size:return t.script;case Vt.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};lt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:n}=t;return{type:"mathchoice",mode:n.mode,display:Oi(e[0]),text:Oi(e[1]),script:Oi(e[2]),scriptscript:Oi(e[3])}},htmlBuilder:(t,e)=>{var n=wie(t,e),r=bo(n,e,!1);return pe.makeFragment(r)},mathmlBuilder:(t,e)=>{var n=wie(t,e);return p1(n,e)}});var goe=(t,e,n,r,i,o,a)=>{t=pe.makeSpan([],[t]);var s=n&&rr.isCharacterBox(n),l,c;if(e){var u=Jn(e,r.havingStyle(i.sup()),r);c={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Jn(n,r.havingStyle(i.sub()),r);l={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var p;if(c&&l){var m=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+a;p=pe.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qe(-o)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Qe(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var f=t.height-a;p=pe.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qe(-o)},{type:"kern",size:l.kern},{type:"elem",elem:t}]},r)}else if(c){var h=t.depth+a;p=pe.makeVList({positionType:"bottom",positionData:h,children:[{type:"elem",elem:t},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:Qe(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return t;var x=[p];if(l&&o!==0&&!s){var g=pe.makeSpan(["mspace"],[],r);g.style.marginRight=Qe(o),x.unshift(g)}return pe.makeSpan(["mop","op-limits"],x,r)},boe=["\\smallint"],d2=(t,e)=>{var n,r,i=!1,o;t.type==="supsub"?(n=t.sup,r=t.sub,o=Tn(t.base,"op"),i=!0):o=Tn(t,"op");var a=e.style,s=!1;a.size===Vt.DISPLAY.size&&o.symbol&&!boe.includes(o.name)&&(s=!0);var l;if(o.symbol){var c=s?"Size2-Regular":"Size1-Regular",u="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(u=o.name.slice(1),o.name=u==="oiint"?"\\iint":"\\iiint"),l=pe.makeSymbol(o.name,c,"math",e,["mop","op-symbol",s?"large-op":"small-op"]),u.length>0){var d=l.italic,p=pe.staticSvg(u+"Size"+(s?"2":"1"),e);l=pe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:s?.08:0}]},e),o.name="\\"+u,l.classes.unshift("mop"),l.italic=d}}else if(o.body){var m=bo(o.body,e,!0);m.length===1&&m[0]instanceof Hs?(l=m[0],l.classes[0]="mop"):l=pe.makeSpan(["mop"],m,e)}else{for(var f=[],h=1;h<o.name.length;h++)f.push(pe.mathsym(o.name[h],o.mode,e));l=pe.makeSpan(["mop"],f,e)}var x=0,g=0;return(l instanceof Hs||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(x=(l.height-l.depth)/2-e.fontMetrics().axisHeight,g=l.italic),i?goe(l,n,r,e,a,g,x):(x&&(l.style.position="relative",l.style.top=Qe(x)),l)},n6=(t,e)=>{var n;if(t.symbol)n=new ts("mo",[$c(t.name,t.mode)]),boe.includes(t.name)&&n.setAttribute("largeop","false");else if(t.body)n=new ts("mo",Gs(t.body,e));else{n=new ts("mi",[new Ac(t.name.slice(1))]);var r=new ts("mo",[$c("\u2061","text")]);t.parentIsSupSub?n=new ts("mrow",[n,r]):n=Uie([n,r])}return n},BPe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};lt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=r;return i.length===1&&(i=BPe[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:d2,mathmlBuilder:n6});lt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Oi(r)}},htmlBuilder:d2,mathmlBuilder:n6});var zPe={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};lt({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(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:d2,mathmlBuilder:n6});lt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:d2,mathmlBuilder:n6});lt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(t){var{parser:e,funcName:n}=t,r=n;return r.length===1&&(r=zPe[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:d2,mathmlBuilder:n6});var yoe=(t,e)=>{var n,r,i=!1,o;t.type==="supsub"?(n=t.sup,r=t.sub,o=Tn(t.base,"operatorname"),i=!0):o=Tn(t,"operatorname");var a;if(o.body.length>0){for(var s=o.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),l=bo(s,e.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof Hs&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=pe.makeSpan(["mop"],l,e)}else a=pe.makeSpan(["mop"],[],e);return i?goe(a,n,r,e,e.style,0,0):a},qPe=(t,e)=>{for(var n=Gs(t.body,e.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var o=n[i];if(!(o instanceof ze.SpaceNode))if(o instanceof ze.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var a=o.children[0];o.children.length===1&&a instanceof ze.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break}default:r=!1}else r=!1}if(r){var s=n.map(u=>u.toText()).join("");n=[new ze.TextNode(s)]}var l=new ze.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new ze.MathNode("mo",[$c("\u2061","text")]);return t.parentIsSupSub?new ze.MathNode("mrow",[l,c]):ze.newDocumentFragment([l,c])};lt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:n,funcName:r}=t,i=e[0];return{type:"operatorname",mode:n.mode,body:Oi(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:yoe,mathmlBuilder:qPe});q("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");A0({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?pe.makeFragment(bo(t.body,e,!1)):pe.makeSpan(["mord"],bo(t.body,e,!0),e)},mathmlBuilder(t,e){return p1(t.body,e,!0)}});lt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:n}=t,r=e[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(t,e){var n=Jn(t.body,e.havingCrampedStyle()),r=pe.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,o=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},e);return pe.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(t,e){var n=new ze.MathNode("mo",[new ze.TextNode("\u203E")]);n.setAttribute("stretchy","true");var r=new ze.MathNode("mover",[Ir(t.body,e),n]);return r.setAttribute("accent","true"),r}});lt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"phantom",mode:n.mode,body:Oi(r)}},htmlBuilder:(t,e)=>{var n=bo(t.body,e.withPhantom(),!1);return pe.makeFragment(n)},mathmlBuilder:(t,e)=>{var n=Gs(t.body,e);return new ze.MathNode("mphantom",n)}});lt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=pe.makeSpan([],[Jn(t.body,e.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e),pe.makeSpan(["mord"],[n],e)},mathmlBuilder:(t,e)=>{var n=Gs(Oi(t.body),e),r=new ze.MathNode("mphantom",n),i=new ze.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});lt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:n}=t,r=e[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(t,e)=>{var n=pe.makeSpan(["inner"],[Jn(t.body,e.withPhantom())]),r=pe.makeSpan(["fix"],[]);return pe.makeSpan(["mord","rlap"],[n,r],e)},mathmlBuilder:(t,e)=>{var n=Gs(Oi(t.body),e),r=new ze.MathNode("mphantom",n),i=new ze.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});lt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:n}=t,r=Tn(e[0],"size").value,i=e[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(t,e){var n=Jn(t.body,e),r=ci(t.dy,e);return pe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){var n=new ze.MathNode("mpadded",[Ir(t.body,e)]),r=t.dy.number+t.dy.unit;return n.setAttribute("voffset",r),n}});lt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}});lt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,n){var{parser:r}=t,i=n[0],o=Tn(e[0],"size"),a=Tn(e[1],"size");return{type:"rule",mode:r.mode,shift:i&&Tn(i,"size").value,width:o.value,height:a.value}},htmlBuilder(t,e){var n=pe.makeSpan(["mord","rule"],[],e),r=ci(t.width,e),i=ci(t.height,e),o=t.shift?ci(t.shift,e):0;return n.style.borderRightWidth=Qe(r),n.style.borderTopWidth=Qe(i),n.style.bottom=Qe(o),n.width=r,n.height=i+o,n.depth=-o,n.maxFontSize=i*1.125*e.sizeMultiplier,n},mathmlBuilder(t,e){var n=ci(t.width,e),r=ci(t.height,e),i=t.shift?ci(t.shift,e):0,o=e.color&&e.getColor()||"black",a=new ze.MathNode("mspace");a.setAttribute("mathbackground",o),a.setAttribute("width",Qe(n)),a.setAttribute("height",Qe(r));var s=new ze.MathNode("mpadded",[a]);return i>=0?s.setAttribute("height",Qe(i)):(s.setAttribute("height",Qe(i)),s.setAttribute("depth",Qe(-i))),s.setAttribute("voffset",Qe(i)),s}});function xoe(t,e,n){for(var r=bo(t,e,!1),i=e.sizeMultiplier/n.sizeMultiplier,o=0;o<r.length;o++){var a=r[o].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[o].classes,e.sizingClasses(n)):r[o].classes[a+1]==="reset-size"+e.size&&(r[o].classes[a+1]="reset-size"+n.size),r[o].height*=i,r[o].depth*=i}return pe.makeFragment(r)}var vie=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],HPe=(t,e)=>{var n=e.havingSize(t.size);return xoe(t.body,n,e)};lt({type:"sizing",names:vie,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:n,funcName:r,parser:i}=t,o=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:vie.indexOf(r)+1,body:o}},htmlBuilder:HPe,mathmlBuilder:(t,e)=>{var n=e.havingSize(t.size),r=Gs(t.body,n),i=new ze.MathNode("mstyle",r);return i.setAttribute("mathsize",Qe(n.sizeMultiplier)),i}});lt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,n)=>{var{parser:r}=t,i=!1,o=!1,a=n[0]&&Tn(n[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l){var c=a.body[l];if(s=c.text,s==="t")i=!0;else if(s==="b")o=!0;else{i=!1,o=!1;break}}else i=!0,o=!0;var u=e[0];return{type:"smash",mode:r.mode,body:u,smashHeight:i,smashDepth:o}},htmlBuilder:(t,e)=>{var n=pe.makeSpan([],[Jn(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return n;if(t.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(t.smashDepth&&(n.depth=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].depth=0;var o=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},e);return pe.makeSpan(["mord"],[o],e)},mathmlBuilder:(t,e)=>{var n=new ze.MathNode("mpadded",[Ir(t.body,e)]);return t.smashHeight&&n.setAttribute("height","0px"),t.smashDepth&&n.setAttribute("depth","0px"),n}});lt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,n){var{parser:r}=t,i=n[0],o=e[0];return{type:"sqrt",mode:r.mode,body:o,index:i}},htmlBuilder(t,e){var n=Jn(t.body,e.havingCrampedStyle());n.height===0&&(n.height=e.fontMetrics().xHeight),n=pe.wrapFragment(n,e);var r=e.fontMetrics(),i=r.defaultRuleThickness,o=i;e.style.id<Vt.TEXT.id&&(o=e.fontMetrics().xHeight);var a=i+o/4,s=n.height+n.depth+a+i,{span:l,ruleWidth:c,advanceWidth:u}=Jp.sqrtImage(s,e),d=l.height-c;d>n.height+n.depth+a&&(a=(a+d-n.height-n.depth)/2);var p=l.height-n.height-a-c;n.style.paddingLeft=Qe(u);var m=pe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:c}]},e);if(t.index){var f=e.havingStyle(Vt.SCRIPTSCRIPT),h=Jn(t.index,f,e),x=.6*(m.height-m.depth),g=pe.makeVList({positionType:"shift",positionData:-x,children:[{type:"elem",elem:h}]},e),y=pe.makeSpan(["root"],[g]);return pe.makeSpan(["mord","sqrt"],[y,m],e)}else return pe.makeSpan(["mord","sqrt"],[m],e)},mathmlBuilder(t,e){var{body:n,index:r}=t;return r?new ze.MathNode("mroot",[Ir(n,e),Ir(r,e)]):new ze.MathNode("msqrt",[Ir(n,e)])}});var kie={display:Vt.DISPLAY,text:Vt.TEXT,script:Vt.SCRIPT,scriptscript:Vt.SCRIPTSCRIPT};lt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:n,funcName:r,parser:i}=t,o=i.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:a,body:o}},htmlBuilder(t,e){var n=kie[t.style],r=e.havingStyle(n).withFont("");return xoe(t.body,r,e)},mathmlBuilder(t,e){var n=kie[t.style],r=e.havingStyle(n),i=Gs(t.body,r),o=new ze.MathNode("mstyle",i),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[t.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var GPe=function(e,n){var r=e.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Vt.DISPLAY.size||r.alwaysHandleSupSub);return i?d2:null}else if(r.type==="operatorname"){var o=r.alwaysHandleSupSub&&(n.style.size===Vt.DISPLAY.size||r.limits);return o?yoe:null}else{if(r.type==="accent")return rr.isCharacterBox(r.base)?Rj:null;if(r.type==="horizBrace"){var a=!e.sub;return a===r.isOver?hoe:null}else return null}else return null};A0({type:"supsub",htmlBuilder(t,e){var n=GPe(t,e);if(n)return n(t,e);var{base:r,sup:i,sub:o}=t,a=Jn(r,e),s,l,c=e.fontMetrics(),u=0,d=0,p=r&&rr.isCharacterBox(r);if(i){var m=e.havingStyle(e.style.sup());s=Jn(i,m,e),p||(u=a.height-m.fontMetrics().supDrop*m.sizeMultiplier/e.sizeMultiplier)}if(o){var f=e.havingStyle(e.style.sub());l=Jn(o,f,e),p||(d=a.depth+f.fontMetrics().subDrop*f.sizeMultiplier/e.sizeMultiplier)}var h;e.style===Vt.DISPLAY?h=c.sup1:e.style.cramped?h=c.sup3:h=c.sup2;var x=e.sizeMultiplier,g=Qe(.5/c.ptPerEm/x),y=null;if(l){var b=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(a instanceof Hs||b)&&(y=Qe(-a.italic))}var w;if(s&&l){u=Math.max(u,h,s.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var v=c.defaultRuleThickness,k=4*v;if(u-s.depth-(l.height-d)<k){d=k-(u-s.depth)+l.height;var _=.8*c.xHeight-(u-s.depth);_>0&&(u+=_,d-=_)}var L=[{type:"elem",elem:l,shift:d,marginRight:g,marginLeft:y},{type:"elem",elem:s,shift:-u,marginRight:g}];w=pe.makeVList({positionType:"individualShift",children:L},e)}else if(l){d=Math.max(d,c.sub1,l.height-.8*c.xHeight);var S=[{type:"elem",elem:l,marginLeft:y,marginRight:g}];w=pe.makeVList({positionType:"shift",positionData:d,children:S},e)}else if(s)u=Math.max(u,h,s.depth+.25*c.xHeight),w=pe.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:s,marginRight:g}]},e);else throw new Error("supsub must have either sup or sub.");var C=gj(a,"right")||"mord";return pe.makeSpan([C],[a,pe.makeSpan(["msupsub"],[w])],e)},mathmlBuilder(t,e){var n=!1,r,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(n=!0,r=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var o=[Ir(t.base,e)];t.sub&&o.push(Ir(t.sub,e)),t.sup&&o.push(Ir(t.sup,e));var a;if(n)a=r?"mover":"munder";else if(t.sub)if(t.sup){var c=t.base;c&&c.type==="op"&&c.limits&&e.style===Vt.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(e.style===Vt.DISPLAY||c.limits)?a="munderover":a="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===Vt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===Vt.DISPLAY)?a="munder":a="msub"}else{var s=t.base;s&&s.type==="op"&&s.limits&&(e.style===Vt.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||e.style===Vt.DISPLAY)?a="mover":a="msup"}return new ze.MathNode(a,o)}});A0({type:"atom",htmlBuilder(t,e){return pe.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var n=new ze.MathNode("mo",[$c(t.text,t.mode)]);if(t.family==="bin"){var r=Ej(t,e);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else t.family==="punct"?n.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&n.setAttribute("stretchy","false");return n}});var woe={mi:"italic",mn:"normal",mtext:"normal"};A0({type:"mathord",htmlBuilder(t,e){return pe.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var n=new ze.MathNode("mi",[$c(t.text,t.mode,e)]),r=Ej(t,e)||"italic";return r!==woe[n.type]&&n.setAttribute("mathvariant",r),n}});A0({type:"textord",htmlBuilder(t,e){return pe.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var n=$c(t.text,t.mode,e),r=Ej(t,e)||"normal",i;return t.mode==="text"?i=new ze.MathNode("mtext",[n]):/[0-9]/.test(t.text)?i=new ze.MathNode("mn",[n]):t.text==="\\prime"?i=new ze.MathNode("mo",[n]):i=new ze.MathNode("mi",[n]),r!==woe[i.type]&&i.setAttribute("mathvariant",r),i}});var cj={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},uj={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};A0({type:"spacing",htmlBuilder(t,e){if(uj.hasOwnProperty(t.text)){var n=uj[t.text].className||"";if(t.mode==="text"){var r=pe.makeOrd(t,e,"textord");return r.classes.push(n),r}else return pe.makeSpan(["mspace",n],[pe.mathsym(t.text,t.mode,e)],e)}else{if(cj.hasOwnProperty(t.text))return pe.makeSpan(["mspace",cj[t.text]],[],e);throw new Ue('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var n;if(uj.hasOwnProperty(t.text))n=new ze.MathNode("mtext",[new ze.TextNode("\xA0")]);else{if(cj.hasOwnProperty(t.text))return new ze.MathNode("mspace");throw new Ue('Unknown type of space "'+t.text+'"')}return n}});var Cie=()=>{var t=new ze.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};A0({type:"tag",mathmlBuilder(t,e){var n=new ze.MathNode("mtable",[new ze.MathNode("mtr",[Cie(),new ze.MathNode("mtd",[p1(t.body,e)]),Cie(),new ze.MathNode("mtd",[p1(t.tag,e)])])]);return n.setAttribute("width","100%"),n}});var _ie={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sie={"\\textbf":"textbf","\\textmd":"textmd"},UPe={"\\textit":"textit","\\textup":"textup"},Lie=(t,e)=>{var n=t.font;if(n){if(_ie[n])return e.withTextFontFamily(_ie[n]);if(Sie[n])return e.withTextFontWeight(Sie[n]);if(n==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(UPe[n])};lt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:n,funcName:r}=t,i=e[0];return{type:"text",mode:n.mode,body:Oi(i),font:r}},htmlBuilder(t,e){var n=Lie(t,e),r=bo(t.body,n,!0);return pe.makeSpan(["mord","text"],r,n)},mathmlBuilder(t,e){var n=Lie(t,e);return p1(t.body,n)}});lt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:n}=t;return{type:"underline",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Jn(t.body,e),r=pe.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,o=pe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},e);return pe.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(t,e){var n=new ze.MathNode("mo",[new ze.TextNode("\u203E")]);n.setAttribute("stretchy","true");var r=new ze.MathNode("munder",[Ir(t.body,e),n]);return r.setAttribute("accentunder","true"),r}});lt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:n}=t;return{type:"vcenter",mode:n.mode,body:e[0]}},htmlBuilder(t,e){var n=Jn(t.body,e),r=e.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return pe.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},e)},mathmlBuilder(t,e){return new ze.MathNode("mpadded",[Ir(t.body,e)],["vcenter"])}});lt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,n){throw new Ue("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var n=Mie(t),r=[],i=e.havingStyle(e.style.text()),o=0;o<n.length;o++){var a=n[o];a==="~"&&(a="\\textasciitilde"),r.push(pe.makeSymbol(a,"Typewriter-Regular",t.mode,i,["mord","texttt"]))}return pe.makeSpan(["mord","text"].concat(i.sizingClasses(e)),pe.tryCombineChars(r),i)},mathmlBuilder(t,e){var n=new ze.TextNode(Mie(t)),r=new ze.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Mie=t=>t.body.replace(/ /g,t.star?"\u2423":"\xA0"),u1=Hie,voe=`[ \r ]`,VPe="\\\\[a-zA-Z@]+",ZPe="\\\\[^\uD800-\uDFFF]",WPe="("+VPe+")"+voe+"*",KPe=`\\\\( |[ \r ]+ -?)[ \r ]*`,yj="[\u0300-\u036F]",XPe=new RegExp(yj+"+$"),YPe="("+voe+"+)|"+(KPe+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(yj+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(yj+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+WPe)+("|"+ZPe+")"),gC=class{constructor(e,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=n,this.tokenRegex=new RegExp(YPe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,n){this.catcodes[e]=n}lex(){var e=this.input,n=this.tokenRegex.lastIndex;if(n===e.length)return new $l("EOF",new qs(this,n,n));var r=this.tokenRegex.exec(e);if(r===null||r.index!==n)throw new Ue("Unexpected character: '"+e[n]+"'",new $l(e[n],new qs(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var o=e.indexOf(` -`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=e.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=o+1,this.lex()}return new $l(i,new qs(this,n,this.tokenRegex.lastIndex))}},xj=class{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ue("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var n in e)e.hasOwnProperty(n)&&(e[n]==null?delete this.current[n]:this.current[n]=e[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=n)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}n==null?delete this.current[e]:this.current[e]=n}},QPe=uoe;q("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});q("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});q("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});q("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});q("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return e[0].length===1&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});q("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");q("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Eie={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(t){var e=t.popToken(),n,r="";if(e.text==="'")n=8,e=t.popToken();else if(e.text==='"')n=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Ue("\\char` missing argument");r=e.text.charCodeAt(0)}else n=10;if(n){if(r=Eie[e.text],r==null||r>=n)throw new Ue("Invalid base-"+n+" digit "+e.text);for(var i;(i=Eie[t.future().text])!=null&&i<n;)r*=n,r+=i,t.popToken()}return"\\@char{"+r+"}"});var Pj=(t,e,n,r)=>{var i=t.consumeArg().tokens;if(i.length!==1)throw new Ue("\\newcommand's first argument must be a macro name");var o=i[0].text,a=t.isDefined(o);if(a&&!e)throw new Ue("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!a&&!n)throw new Ue("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",c=t.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Ue("Invalid number of arguments: "+l);s=parseInt(l),i=t.consumeArg().tokens}return a&&r||t.macros.set(o,{tokens:i,numArgs:s}),""};q("\\newcommand",t=>Pj(t,!1,!0,!1));q("\\renewcommand",t=>Pj(t,!0,!1,!1));q("\\providecommand",t=>Pj(t,!0,!0,!0));q("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(n=>n.text).join("")),""});q("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(n=>n.text).join("")),""});q("\\show",t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),c1[n],Dr.math[n],Dr.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`\xA9}");q("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");q("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");q("\u212C","\\mathscr{B}");q("\u2130","\\mathscr{E}");q("\u2131","\\mathscr{F}");q("\u210B","\\mathscr{H}");q("\u2110","\\mathscr{I}");q("\u2112","\\mathscr{L}");q("\u2133","\\mathscr{M}");q("\u211B","\\mathscr{R}");q("\u212D","\\mathfrak{C}");q("\u210C","\\mathfrak{H}");q("\u2128","\\mathfrak{Z}");q("\\Bbbk","\\Bbb{k}");q("\xB7","\\cdotp");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}}{\\char"338}');q("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");q("\\ne","\\neq");q("\u2260","\\neq");q("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");q("\u2209","\\notin");q("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");q("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");q("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");q("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");q("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");q("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");q("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");q("\u27C2","\\perp");q("\u203C","\\mathclose{!\\mkern-0.8mu!}");q("\u220C","\\notni");q("\u231C","\\ulcorner");q("\u231D","\\urcorner");q("\u231E","\\llcorner");q("\u231F","\\lrcorner");q("\xA9","\\copyright");q("\xAE","\\textregistered");q("\uFE0F","\\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("\u22EE","\\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 Tie={",":"\\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"};q("\\dots",function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in Tie?e=Tie[n]:(n.slice(0,4)==="\\not"||n in Dr.math&&["bin","rel"].includes(Dr.math[n].group))&&(e="\\dotsb"),e});var jj={")":!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(t){var e=t.future().text;return e in jj?"\\ldots\\,":"\\ldots"});q("\\dotsc",function(t){var e=t.future().text;return e in jj&&e!==","?"\\ldots\\,":"\\ldots"});q("\\cdots",function(t){var e=t.future().text;return e in jj?"\\@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",t=>{if(t.macros.get("\\df@tag"))throw new Ue("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 koe=Qe(gd["Main-Regular"][84][1]-.7*gd["Main-Regular"][65][1]);q("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+koe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");q("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+koe+"}{\\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("\u2237","\\dblcolon");q("\u2239","\\eqcolon");q("\u2254","\\coloneqq");q("\u2255","\\eqqcolon");q("\u2A74","\\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`\u220C}}");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}{\u2269}");q("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");q("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");q("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");q("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");q("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");q("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");q("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");q("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");q("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");q("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");q("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");q("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");q("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");q("\\imath","\\html@mathml{\\@imath}{\u0131}");q("\\jmath","\\html@mathml{\\@jmath}{\u0237}");q("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");q("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");q("\u27E6","\\llbracket");q("\u27E7","\\rrbracket");q("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");q("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");q("\u2983","\\lBrace");q("\u2984","\\rBrace");q("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");q("\u29B5","\\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 Coe=t=>e=>{var n=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,o=e.consumeArg().tokens,a=e.macros.get("|"),s=e.macros.get("\\|");e.macros.beginGroup();var l=d=>p=>{t&&(p.macros.set("|",a),i.length&&p.macros.set("\\|",s));var m=d;if(!d&&i.length){var f=p.future();f.text==="|"&&(p.popToken(),m=!0)}return{tokens:m?i:r,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var c=e.consumeArg().tokens,u=e.expandTokens([...o,...c,...n]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};q("\\bra@ket",Coe(!1));q("\\bra@set",Coe(!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 _oe={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},wj=class{constructor(e,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(e),this.macros=new xj(QPe,n.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new gC(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var n,r,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new $l("EOF",r.loc)),this.pushTokens(i),new $l("",qs.range(n,r))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var n=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),o,a=0,s=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++a;else if(o.text==="}"){if(--a,a===-1)throw new Ue("Extra }",o)}else if(o.text==="EOF")throw new Ue("Unexpected end of input in a macro argument, expected '"+(e&&r?e[s]:"}")+"'",o);if(e&&r)if((a===0||a===1&&e[s]==="{")&&o.text===e[s]){if(++s,s===e.length){n.splice(-s,s);break}}else s=0}while(a!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:o}}consumeArgs(e,n){if(n){if(n.length!==e+1)throw new Ue("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;i<r.length;i++){var o=this.popToken();if(r[i]!==o.text)throw new Ue("Use of the macro doesn't match its definition",o)}}for(var a=[],s=0;s<e;s++)a.push(this.consumeArg(n&&n[s+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Ue("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||e&&i.unexpandable){if(e&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Ue("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var o=i.tokens,a=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){o=o.slice();for(var s=o.length-1;s>=0;--s){var l=o[s];if(l.text==="#"){if(s===0)throw new Ue("Incomplete placeholder at end of macro body",l);if(l=o[--s],l.text==="#")o.splice(s+1,1);else if(/^[1-9]$/.test(l.text))o.splice(s,2,...a[+l.text-1]);else throw new Ue("Not a valid argument number",l)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new $l(e)]):void 0}expandTokens(e){var n=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(e){var n=this.expandMacro(e);return n&&n.map(r=>r.text).join("")}_getExpansion(e){var n=this.macros.get(e);if(n==null)return n;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var o=0;if(i.indexOf("#")!==-1)for(var a=i.replace(/##/g,"");a.indexOf("#"+(o+1))!==-1;)++o;for(var s=new gC(i,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:o};return u}return i}isDefined(e){return this.macros.has(e)||c1.hasOwnProperty(e)||Dr.math.hasOwnProperty(e)||Dr.text.hasOwnProperty(e)||_oe.hasOwnProperty(e)}isExpandable(e){var n=this.macros.get(e);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:c1.hasOwnProperty(e)&&!c1[e].primitive}},Rie=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,sC=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),lj={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},Aie={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},bC=class t{constructor(e,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 wj(e,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(e,n){if(n===void 0&&(n=!0),this.fetch().text!==e)throw new Ue("Expected '"+e+"', 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(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var n=this.nextToken;this.consume(),this.gullet.pushToken(new $l("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(e,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(t.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||e&&c1[i.text]&&c1[i.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;r.push(o)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var n=-1,r,i=0;i<e.length;i++)if(e[i].type==="infix"){if(n!==-1)throw new Ue("only one infix operator per group",e[i].token);n=i,r=e[i].replaceWith}if(n!==-1&&r){var o,a,s=e.slice(0,n),l=e.slice(n+1);s.length===1&&s[0].type==="ordgroup"?o=s[0]:o={type:"ordgroup",mode:this.mode,body:s},l.length===1&&l[0].type==="ordgroup"?a=l[0]:a={type:"ordgroup",mode:this.mode,body:l};var c;return r==="\\\\abovefrac"?c=this.callFunction(r,[o,e[n],a],[]):c=this.callFunction(r,[o,a],[]),[c]}else return e}handleSupSubscript(e){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var i;do{var o;i=this.parseGroup(e)}while(((o=i)==null?void 0:o.type)==="internal");if(!i)throw new Ue("Expected group after '"+r+"'",n);return i}formatUnsupportedCmd(e){for(var n=[],r=0;r<e.length;r++)n.push({type:"textord",mode:"text",text:e[r]});var i={type:"text",mode:this.mode,body:n},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return o}parseAtom(e){var n=this.parseGroup("atom",e);if(n?.type==="internal"||this.mode==="text")return n;for(var r,i;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(n&&n.type==="op"){var a=o.text==="\\limits";n.limits=a,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=o.text==="\\limits");else throw new Ue("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(r)throw new Ue("Double superscript",o);r=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(i)throw new Ue("Double subscript",o);i=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(r)throw new Ue("Double superscript",o);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(sC[o.text]){var c=Rie.test(o.text),u=[];for(u.push(new $l(sC[o.text])),this.consume();;){var d=this.fetch().text;if(!sC[d]||Rie.test(d)!==c)break;u.unshift(new $l(sC[d])),this.consume()}var p=this.subparse(u);c?i={type:"ordgroup",mode:"math",body:p}:r={type:"ordgroup",mode:"math",body:p}}else break}return r||i?{type:"supsub",mode:this.mode,base:n,sup:r,sub:i}:n}parseFunction(e,n){var r=this.fetch(),i=r.text,o=c1[i];if(!o)return null;if(this.consume(),n&&n!=="atom"&&!o.allowedInArgument)throw new Ue("Got function '"+i+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!o.allowedInText)throw new Ue("Can't use function '"+i+"' in text mode",r);if(this.mode==="math"&&o.allowedInMath===!1)throw new Ue("Can't use function '"+i+"' in math mode",r);var{args:a,optArgs:s}=this.parseArguments(i,o);return this.callFunction(i,a,s,r,e)}callFunction(e,n,r,i,o){var a={funcName:e,parser:this,token:i,breakOnTokenText:o},s=c1[e];if(s&&s.handler)return s.handler(a,n,r);throw new Ue("No function handler for "+e)}parseArguments(e,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],o=[],a=0;a<r;a++){var s=n.argTypes&&n.argTypes[a],l=a<n.numOptionalArgs;(n.primitive&&s==null||n.type==="sqrt"&&a===1&&o[0]==null)&&(s="primitive");var c=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)o.push(c);else if(c!=null)i.push(c);else throw new Ue("Null argument, please report this as a bug")}return{args:i,optArgs:o}}parseGroupOfType(e,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 i=this.parseArgumentGroup(r,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",r);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(r)throw new Ue("A primitive argument cannot be optional");var a=this.parseGroup(e);if(a==null)throw new Ue("Expected group as "+e,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Ue("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var i="",o;(o=this.fetch()).text!=="EOF";)i+=o.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,n){for(var r=this.fetch(),i=r,o="",a;(a=this.fetch()).text!=="EOF"&&e.test(o+a.text);)i=a,o+=i.text,this.consume();if(o==="")throw new Ue("Invalid "+n+": '"+r.text+"'",r);return r.range(i,o)}parseColorGroup(e){var n=this.parseStringGroup("color",e);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 Ue("Invalid color: '"+n.text+"'",n);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var n,r=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",e),!n)return null;!e&&n.text.length===0&&(n.text="0pt",r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!i)throw new Ue("Invalid size: '"+n.text+"'",n);var o={number:+(i[1]+i[2]),unit:i[3]};if(!Nie(o))throw new Ue("Invalid unit: '"+o.unit+"'",n);return{type:"size",mode:this.mode,value:o,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",e);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(e,n){var r=this.gullet.scanArgument(e);if(r==null)return null;var i=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return n&&this.switchMode(i),a}parseGroup(e,n){var r=this.fetch(),i=r.text,o;if(i==="{"||i==="\\begingroup"){this.consume();var a=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),l=this.fetch();this.expect(a),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:qs.range(r,l),body:s,semisimple:i==="\\begingroup"||void 0}}else if(o=this.parseFunction(n,e)||this.parseSymbol(),o==null&&i[0]==="\\"&&!_oe.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Ue("Undefined control sequence: "+i,r);o=this.formatUnsupportedCmd(i),this.consume()}return o}formLigatures(e){for(var n=e.length-1,r=0;r<n;++r){var i=e[r],o=i.text;o==="-"&&e[r+1].text==="-"&&(r+1<n&&e[r+2].text==="-"?(e.splice(r,3,{type:"textord",mode:"text",loc:qs.range(i,e[r+2]),text:"---"}),n-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:qs.range(i,e[r+1]),text:"--"}),n-=1)),(o==="'"||o==="`")&&e[r+1].text===o&&(e.splice(r,2,{type:"textord",mode:"text",loc:qs.range(i,e[r+1]),text:o+o}),n-=1)}}parseSymbol(){var e=this.fetch(),n=e.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),i=r.charAt(0)==="*";if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Ue(`\\verb assertion failed -- - please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}Aie.hasOwnProperty(n[0])&&!Dr[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',e),n=Aie[n[0]]+n.slice(1));var o=XPe.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="\u0131":n==="j"&&(n="\u0237"));var a;if(Dr[this.mode][n]){this.settings.strict&&this.mode==="math"&&pj.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var s=Dr[this.mode][n].group,l=qs.range(e),c;if(HNe.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};a=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Iie(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),a={type:"textord",mode:"text",loc:qs.range(e),text:n};else return null;if(this.consume(),o)for(var d=0;d<o[0].length;d++){var p=o[0][d];if(!lj[p])throw new Ue("Unknown accent ' "+p+"'",e);var m=lj[p][this.mode]||lj[p].text;if(!m)throw new Ue("Accent "+p+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:qs.range(e),label:m,isStretchy:!1,isShifty:!0,base:a}}return a}};bC.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Oj=function(e,n){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new bC(e,n);delete r.gullet.macros.current["\\df@tag"];var i=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 Ue("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new $l("\\df@tag")])}]}return i},Soe=function(e,n,r){n.textContent="";var i=Dj(e,r).toNode();n.appendChild(i)};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."),Soe=function(){throw new Ue("KaTeX doesn't work in quirks mode.")});var JPe=function(e,n){var r=Dj(e,n).toMarkup();return r},eje=function(e,n){var r=new X7(n);return Oj(e,r)},Loe=function(e,n,r){if(r.throwOnError||!(e instanceof Ue))throw e;var i=pe.makeSpan(["katex-error"],[new Hs(n)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+r.errorColor),i},Dj=function(e,n){var r=new X7(n);try{var i=Oj(e,r);return dPe(i,e,r)}catch(o){return Loe(o,e,r)}},tje=function(e,n){var r=new X7(n);try{var i=Oj(e,r);return pPe(i,e,r)}catch(o){return Loe(o,e,r)}},nje="0.16.25",rje={Span:E0,Anchor:Q7,SymbolNode:Hs,SvgNode:wu,PathNode:bd,LineNode:J7},Moe={version:nje,render:Soe,renderToString:JPe,ParseError:Ue,SETTINGS_SCHEMA:lC,__parse:eje,__renderToDomTree:Dj,__renderToHTMLTree:tje,__setFontMetrics:jNe,__defineSymbol:E,__defineFunction:lt,__defineMacro:q,__domTree:rje};var r6=R(ee(),1),ije=500,n6=new Map;function Eoe(t,e){let n=`${e?"D":"I"}${t}`,r=n6.get(n);if(r!==void 0)return r;let i;try{i=Moe.renderToString(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!0,strict:"ignore",trust:!1,maxSize:50,maxExpand:500})}catch{i=null}return n6.size>=ije&&n6.delete(n6.keys().next().value),n6.set(n,i),i}function Bj(t){let e=(0,Fj.c)(11),{tex:n,display:r}=t,i=r===void 0?!1:r,o;e[0]!==i||e[1]!==n?(o=Eoe(n,i),e[0]=i,e[1]=n,e[2]=o):o=e[2];let a=o;if(a===null){let u=i?`$$${n}$$`:`$${n}$`,d;return e[3]!==u?(d=(0,r6.jsx)("span",{className:"cv-math-source",children:u}),e[3]=u,e[4]=d):d=e[4],d}let s=i?"cv-math cv-math--display":"cv-math",l;e[5]!==a?(l={__html:a},e[5]=a,e[6]=l):l=e[6];let c;return e[7]!==s||e[8]!==l||e[9]!==n?(c=(0,r6.jsx)("span",{className:s,"data-tex":n,dangerouslySetInnerHTML:l}),e[7]=s,e[8]=l,e[9]=n,e[10]=c):c=e[10],c}function Toe(t){let e=(0,Fj.c)(9),{tex:n}=t,r;e[0]!==n?(r=Eoe(n,!0),e[0]=n,e[1]=r):r=e[1];let i=r;if(i===null){let s=`$$ +?)[ \r ]*`,vj="[\u0300-\u036F]",XPe=new RegExp(vj+"+$"),YPe="("+voe+"+)|"+(KPe+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(vj+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(vj+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+WPe)+("|"+ZPe+")"),gC=class{constructor(e,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=n,this.tokenRegex=new RegExp(YPe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,n){this.catcodes[e]=n}lex(){var e=this.input,n=this.tokenRegex.lastIndex;if(n===e.length)return new Il("EOF",new qs(this,n,n));var r=this.tokenRegex.exec(e);if(r===null||r.index!==n)throw new Ue("Unexpected character: '"+e[n]+"'",new Il(e[n],new qs(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var o=e.indexOf(` +`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=e.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=o+1,this.lex()}return new Il(i,new qs(this,n,this.tokenRegex.lastIndex))}},kj=class{constructor(e,n){e===void 0&&(e={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ue("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var n in e)e.hasOwnProperty(n)&&(e[n]==null?delete this.current[n]:this.current[n]=e[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=n)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}n==null?delete this.current[e]:this.current[e]=n}},QPe=uoe;q("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});q("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});q("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});q("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});q("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var n=t.future();return e[0].length===1&&e[0][0].text===n.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});q("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");q("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Eie={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(t){var e=t.popToken(),n,r="";if(e.text==="'")n=8,e=t.popToken();else if(e.text==='"')n=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Ue("\\char` missing argument");r=e.text.charCodeAt(0)}else n=10;if(n){if(r=Eie[e.text],r==null||r>=n)throw new Ue("Invalid base-"+n+" digit "+e.text);for(var i;(i=Eie[t.future().text])!=null&&i<n;)r*=n,r+=i,t.popToken()}return"\\@char{"+r+"}"});var Dj=(t,e,n,r)=>{var i=t.consumeArg().tokens;if(i.length!==1)throw new Ue("\\newcommand's first argument must be a macro name");var o=i[0].text,a=t.isDefined(o);if(a&&!e)throw new Ue("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!a&&!n)throw new Ue("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(i=t.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var l="",c=t.expandNextToken();c.text!=="]"&&c.text!=="EOF";)l+=c.text,c=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Ue("Invalid number of arguments: "+l);s=parseInt(l),i=t.consumeArg().tokens}return a&&r||t.macros.set(o,{tokens:i,numArgs:s}),""};q("\\newcommand",t=>Dj(t,!1,!0,!1));q("\\renewcommand",t=>Dj(t,!0,!1,!1));q("\\providecommand",t=>Dj(t,!0,!0,!0));q("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(n=>n.text).join("")),""});q("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(n=>n.text).join("")),""});q("\\show",t=>{var e=t.popToken(),n=e.text;return console.log(e,t.macros.get(n),u1[n],Dr.math[n],Dr.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`\xA9}");q("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");q("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");q("\u212C","\\mathscr{B}");q("\u2130","\\mathscr{E}");q("\u2131","\\mathscr{F}");q("\u210B","\\mathscr{H}");q("\u2110","\\mathscr{I}");q("\u2112","\\mathscr{L}");q("\u2133","\\mathscr{M}");q("\u211B","\\mathscr{R}");q("\u212D","\\mathfrak{C}");q("\u210C","\\mathfrak{H}");q("\u2128","\\mathfrak{Z}");q("\\Bbbk","\\Bbb{k}");q("\xB7","\\cdotp");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}}{\\char"338}');q("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");q("\\ne","\\neq");q("\u2260","\\neq");q("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");q("\u2209","\\notin");q("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");q("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");q("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");q("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");q("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");q("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");q("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");q("\u27C2","\\perp");q("\u203C","\\mathclose{!\\mkern-0.8mu!}");q("\u220C","\\notni");q("\u231C","\\ulcorner");q("\u231D","\\urcorner");q("\u231E","\\llcorner");q("\u231F","\\lrcorner");q("\xA9","\\copyright");q("\xAE","\\textregistered");q("\uFE0F","\\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("\u22EE","\\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 Tie={",":"\\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"};q("\\dots",function(t){var e="\\dotso",n=t.expandAfterFuture().text;return n in Tie?e=Tie[n]:(n.slice(0,4)==="\\not"||n in Dr.math&&["bin","rel"].includes(Dr.math[n].group))&&(e="\\dotsb"),e});var Fj={")":!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(t){var e=t.future().text;return e in Fj?"\\ldots\\,":"\\ldots"});q("\\dotsc",function(t){var e=t.future().text;return e in Fj&&e!==","?"\\ldots\\,":"\\ldots"});q("\\cdots",function(t){var e=t.future().text;return e in Fj?"\\@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",t=>{if(t.macros.get("\\df@tag"))throw new Ue("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 koe=Qe(gd["Main-Regular"][84][1]-.7*gd["Main-Regular"][65][1]);q("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+koe+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");q("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+koe+"}{\\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("\u2237","\\dblcolon");q("\u2239","\\eqcolon");q("\u2254","\\coloneqq");q("\u2255","\\eqqcolon");q("\u2A74","\\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`\u220C}}");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}{\u2269}");q("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");q("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");q("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");q("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");q("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");q("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");q("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");q("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");q("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");q("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");q("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");q("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");q("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");q("\\imath","\\html@mathml{\\@imath}{\u0131}");q("\\jmath","\\html@mathml{\\@jmath}{\u0237}");q("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");q("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");q("\u27E6","\\llbracket");q("\u27E7","\\rrbracket");q("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");q("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");q("\u2983","\\lBrace");q("\u2984","\\rBrace");q("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");q("\u29B5","\\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 Coe=t=>e=>{var n=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,o=e.consumeArg().tokens,a=e.macros.get("|"),s=e.macros.get("\\|");e.macros.beginGroup();var l=d=>p=>{t&&(p.macros.set("|",a),i.length&&p.macros.set("\\|",s));var m=d;if(!d&&i.length){var f=p.future();f.text==="|"&&(p.popToken(),m=!0)}return{tokens:m?i:r,numArgs:0}};e.macros.set("|",l(!1)),i.length&&e.macros.set("\\|",l(!0));var c=e.consumeArg().tokens,u=e.expandTokens([...o,...c,...n]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};q("\\bra@ket",Coe(!1));q("\\bra@set",Coe(!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 _oe={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Cj=class{constructor(e,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(e),this.macros=new kj(QPe,n.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new gC(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var n,r,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Il("EOF",r.loc)),this.pushTokens(i),new Il("",qs.range(n,r))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var n=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),o,a=0,s=0;do{if(o=this.popToken(),n.push(o),o.text==="{")++a;else if(o.text==="}"){if(--a,a===-1)throw new Ue("Extra }",o)}else if(o.text==="EOF")throw new Ue("Unexpected end of input in a macro argument, expected '"+(e&&r?e[s]:"}")+"'",o);if(e&&r)if((a===0||a===1&&e[s]==="{")&&o.text===e[s]){if(++s,s===e.length){n.splice(-s,s);break}}else s=0}while(a!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:o}}consumeArgs(e,n){if(n){if(n.length!==e+1)throw new Ue("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;i<r.length;i++){var o=this.popToken();if(r[i]!==o.text)throw new Ue("Use of the macro doesn't match its definition",o)}}for(var a=[],s=0;s<e;s++)a.push(this.consumeArg(n&&n[s+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Ue("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||e&&i.unexpandable){if(e&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Ue("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var o=i.tokens,a=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){o=o.slice();for(var s=o.length-1;s>=0;--s){var l=o[s];if(l.text==="#"){if(s===0)throw new Ue("Incomplete placeholder at end of macro body",l);if(l=o[--s],l.text==="#")o.splice(s+1,1);else if(/^[1-9]$/.test(l.text))o.splice(s,2,...a[+l.text-1]);else throw new Ue("Not a valid argument number",l)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Il(e)]):void 0}expandTokens(e){var n=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(e){var n=this.expandMacro(e);return n&&n.map(r=>r.text).join("")}_getExpansion(e){var n=this.macros.get(e);if(n==null)return n;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var o=0;if(i.indexOf("#")!==-1)for(var a=i.replace(/##/g,"");a.indexOf("#"+(o+1))!==-1;)++o;for(var s=new gC(i,this.settings),l=[],c=s.lex();c.text!=="EOF";)l.push(c),c=s.lex();l.reverse();var u={tokens:l,numArgs:o};return u}return i}isDefined(e){return this.macros.has(e)||u1.hasOwnProperty(e)||Dr.math.hasOwnProperty(e)||Dr.text.hasOwnProperty(e)||_oe.hasOwnProperty(e)}isExpandable(e){var n=this.macros.get(e);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:u1.hasOwnProperty(e)&&!u1[e].primitive}},Rie=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,sC=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),dj={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},Aie={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},bC=class t{constructor(e,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 Cj(e,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(e,n){if(n===void 0&&(n=!0),this.fetch().text!==e)throw new Ue("Expected '"+e+"', 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(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Il("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(e,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(t.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||e&&u1[i.text]&&u1[i.text].infix)break;var o=this.parseAtom(n);if(o){if(o.type==="internal")continue}else break;r.push(o)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var n=-1,r,i=0;i<e.length;i++)if(e[i].type==="infix"){if(n!==-1)throw new Ue("only one infix operator per group",e[i].token);n=i,r=e[i].replaceWith}if(n!==-1&&r){var o,a,s=e.slice(0,n),l=e.slice(n+1);s.length===1&&s[0].type==="ordgroup"?o=s[0]:o={type:"ordgroup",mode:this.mode,body:s},l.length===1&&l[0].type==="ordgroup"?a=l[0]:a={type:"ordgroup",mode:this.mode,body:l};var c;return r==="\\\\abovefrac"?c=this.callFunction(r,[o,e[n],a],[]):c=this.callFunction(r,[o,a],[]),[c]}else return e}handleSupSubscript(e){var n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();var i;do{var o;i=this.parseGroup(e)}while(((o=i)==null?void 0:o.type)==="internal");if(!i)throw new Ue("Expected group after '"+r+"'",n);return i}formatUnsupportedCmd(e){for(var n=[],r=0;r<e.length;r++)n.push({type:"textord",mode:"text",text:e[r]});var i={type:"text",mode:this.mode,body:n},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return o}parseAtom(e){var n=this.parseGroup("atom",e);if(n?.type==="internal"||this.mode==="text")return n;for(var r,i;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(n&&n.type==="op"){var a=o.text==="\\limits";n.limits=a,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=o.text==="\\limits");else throw new Ue("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(r)throw new Ue("Double superscript",o);r=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(i)throw new Ue("Double subscript",o);i=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(r)throw new Ue("Double superscript",o);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),r={type:"ordgroup",mode:this.mode,body:l}}else if(sC[o.text]){var c=Rie.test(o.text),u=[];for(u.push(new Il(sC[o.text])),this.consume();;){var d=this.fetch().text;if(!sC[d]||Rie.test(d)!==c)break;u.unshift(new Il(sC[d])),this.consume()}var p=this.subparse(u);c?i={type:"ordgroup",mode:"math",body:p}:r={type:"ordgroup",mode:"math",body:p}}else break}return r||i?{type:"supsub",mode:this.mode,base:n,sup:r,sub:i}:n}parseFunction(e,n){var r=this.fetch(),i=r.text,o=u1[i];if(!o)return null;if(this.consume(),n&&n!=="atom"&&!o.allowedInArgument)throw new Ue("Got function '"+i+"' with no arguments"+(n?" as "+n:""),r);if(this.mode==="text"&&!o.allowedInText)throw new Ue("Can't use function '"+i+"' in text mode",r);if(this.mode==="math"&&o.allowedInMath===!1)throw new Ue("Can't use function '"+i+"' in math mode",r);var{args:a,optArgs:s}=this.parseArguments(i,o);return this.callFunction(i,a,s,r,e)}callFunction(e,n,r,i,o){var a={funcName:e,parser:this,token:i,breakOnTokenText:o},s=u1[e];if(s&&s.handler)return s.handler(a,n,r);throw new Ue("No function handler for "+e)}parseArguments(e,n){var r=n.numArgs+n.numOptionalArgs;if(r===0)return{args:[],optArgs:[]};for(var i=[],o=[],a=0;a<r;a++){var s=n.argTypes&&n.argTypes[a],l=a<n.numOptionalArgs;(n.primitive&&s==null||n.type==="sqrt"&&a===1&&o[0]==null)&&(s="primitive");var c=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)o.push(c);else if(c!=null)i.push(c);else throw new Ue("Null argument, please report this as a bug")}return{args:i,optArgs:o}}parseGroupOfType(e,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 i=this.parseArgumentGroup(r,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",r);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(r)throw new Ue("A primitive argument cannot be optional");var a=this.parseGroup(e);if(a==null)throw new Ue("Expected group as "+e,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Ue("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,n){var r=this.gullet.scanArgument(n);if(r==null)return null;for(var i="",o;(o=this.fetch()).text!=="EOF";)i+=o.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,n){for(var r=this.fetch(),i=r,o="",a;(a=this.fetch()).text!=="EOF"&&e.test(o+a.text);)i=a,o+=i.text,this.consume();if(o==="")throw new Ue("Invalid "+n+": '"+r.text+"'",r);return r.range(i,o)}parseColorGroup(e){var n=this.parseStringGroup("color",e);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 Ue("Invalid color: '"+n.text+"'",n);var i=r[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var n,r=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",e),!n)return null;!e&&n.text.length===0&&(n.text="0pt",r=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!i)throw new Ue("Invalid size: '"+n.text+"'",n);var o={number:+(i[1]+i[2]),unit:i[3]};if(!Nie(o))throw new Ue("Invalid unit: '"+o.unit+"'",n);return{type:"size",mode:this.mode,value:o,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",e);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(e,n){var r=this.gullet.scanArgument(e);if(r==null)return null;var i=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return n&&this.switchMode(i),a}parseGroup(e,n){var r=this.fetch(),i=r.text,o;if(i==="{"||i==="\\begingroup"){this.consume();var a=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),l=this.fetch();this.expect(a),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:qs.range(r,l),body:s,semisimple:i==="\\begingroup"||void 0}}else if(o=this.parseFunction(n,e)||this.parseSymbol(),o==null&&i[0]==="\\"&&!_oe.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Ue("Undefined control sequence: "+i,r);o=this.formatUnsupportedCmd(i),this.consume()}return o}formLigatures(e){for(var n=e.length-1,r=0;r<n;++r){var i=e[r],o=i.text;o==="-"&&e[r+1].text==="-"&&(r+1<n&&e[r+2].text==="-"?(e.splice(r,3,{type:"textord",mode:"text",loc:qs.range(i,e[r+2]),text:"---"}),n-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:qs.range(i,e[r+1]),text:"--"}),n-=1)),(o==="'"||o==="`")&&e[r+1].text===o&&(e.splice(r,2,{type:"textord",mode:"text",loc:qs.range(i,e[r+1]),text:o+o}),n-=1)}}parseSymbol(){var e=this.fetch(),n=e.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var r=n.slice(5),i=r.charAt(0)==="*";if(i&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Ue(`\\verb assertion failed -- + please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}Aie.hasOwnProperty(n[0])&&!Dr[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',e),n=Aie[n[0]]+n.slice(1));var o=XPe.exec(n);o&&(n=n.substring(0,o.index),n==="i"?n="\u0131":n==="j"&&(n="\u0237"));var a;if(Dr[this.mode][n]){this.settings.strict&&this.mode==="math"&&hj.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',e);var s=Dr[this.mode][n].group,l=qs.range(e),c;if(HNe.hasOwnProperty(s)){var u=s;c={type:"atom",mode:this.mode,family:u,loc:l,text:n}}else c={type:s,mode:this.mode,loc:l,text:n};a=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Iie(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),e)),a={type:"textord",mode:"text",loc:qs.range(e),text:n};else return null;if(this.consume(),o)for(var d=0;d<o[0].length;d++){var p=o[0][d];if(!dj[p])throw new Ue("Unknown accent ' "+p+"'",e);var m=dj[p][this.mode]||dj[p].text;if(!m)throw new Ue("Accent "+p+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:qs.range(e),label:m,isStretchy:!1,isShifty:!0,base:a}}return a}};bC.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Bj=function(e,n){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new bC(e,n);delete r.gullet.macros.current["\\df@tag"];var i=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 Ue("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:r.subparse([new Il("\\df@tag")])}]}return i},Soe=function(e,n,r){n.textContent="";var i=zj(e,r).toNode();n.appendChild(i)};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."),Soe=function(){throw new Ue("KaTeX doesn't work in quirks mode.")});var JPe=function(e,n){var r=zj(e,n).toMarkup();return r},eje=function(e,n){var r=new Y7(n);return Bj(e,r)},Loe=function(e,n,r){if(r.throwOnError||!(e instanceof Ue))throw e;var i=pe.makeSpan(["katex-error"],[new Hs(n)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+r.errorColor),i},zj=function(e,n){var r=new Y7(n);try{var i=Bj(e,r);return dPe(i,e,r)}catch(o){return Loe(o,e,r)}},tje=function(e,n){var r=new Y7(n);try{var i=Bj(e,r);return pPe(i,e,r)}catch(o){return Loe(o,e,r)}},nje="0.16.25",rje={Span:R0,Anchor:J7,SymbolNode:Hs,SvgNode:wu,PathNode:bd,LineNode:e6},Moe={version:nje,render:Soe,renderToString:JPe,ParseError:Ue,SETTINGS_SCHEMA:lC,__parse:eje,__renderToDomTree:zj,__renderToHTMLTree:tje,__setFontMetrics:jNe,__defineSymbol:E,__defineFunction:lt,__defineMacro:q,__domTree:rje};var i6=R(ee(),1),ije=500,r6=new Map;function Eoe(t,e){let n=`${e?"D":"I"}${t}`,r=r6.get(n);if(r!==void 0)return r;let i;try{i=Moe.renderToString(t,{displayMode:e,output:"htmlAndMathml",throwOnError:!0,strict:"ignore",trust:!1,maxSize:50,maxExpand:500})}catch{i=null}return r6.size>=ije&&r6.delete(r6.keys().next().value),r6.set(n,i),i}function Hj(t){let e=(0,qj.c)(11),{tex:n,display:r}=t,i=r===void 0?!1:r,o;e[0]!==i||e[1]!==n?(o=Eoe(n,i),e[0]=i,e[1]=n,e[2]=o):o=e[2];let a=o;if(a===null){let u=i?`$$${n}$$`:`$${n}$`,d;return e[3]!==u?(d=(0,i6.jsx)("span",{className:"cv-math-source",children:u}),e[3]=u,e[4]=d):d=e[4],d}let s=i?"cv-math cv-math--display":"cv-math",l;e[5]!==a?(l={__html:a},e[5]=a,e[6]=l):l=e[6];let c;return e[7]!==s||e[8]!==l||e[9]!==n?(c=(0,i6.jsx)("span",{className:s,"data-tex":n,dangerouslySetInnerHTML:l}),e[7]=s,e[8]=l,e[9]=n,e[10]=c):c=e[10],c}function Toe(t){let e=(0,qj.c)(9),{tex:n}=t,r;e[0]!==n?(r=Eoe(n,!0),e[0]=n,e[1]=r):r=e[1];let i=r;if(i===null){let s=`$$ ${n} -$$`,l;return e[2]!==s?(l=(0,r6.jsx)("pre",{className:"cv-math-display cv-math-source",children:s}),e[2]=s,e[3]=l):l=e[3],l}let o;e[4]!==i?(o={__html:i},e[4]=i,e[5]=o):o=e[5];let a;return e[6]!==o||e[7]!==n?(a=(0,r6.jsx)("div",{className:"cv-math-display","data-tex":n,dangerouslySetInnerHTML:o}),e[6]=o,e[7]=n,e[8]=a):a=e[8],a}function Roe(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let i=t[r];if(/^\s*```/.test(i)&&(n=!n),n){e.push(i);continue}let o=i.match(/^(\s*)\\\[(.*)$/);if(o){let a=[],s=o[2],l=r;for(;!/\\\]\s*$/.test(s)&&l+1<t.length;)a.push(s),s=t[++l];let c=[...a,s.replace(/\\\]\s*$/,"")].map(d=>d.trim()).filter(Boolean).join(" "),u=l===r&&/^[A-Za-z'’,]+(?:\s+[A-Za-z'’,]+){2,}[.!?:]?$/.test(c);if(/\\\]\s*$/.test(s)&&!u){e.push(`${o[1]}$$${c}$$`),r=l;continue}}e.push(i.replace(/(`+)[^`]*?\1|\\\((.+?)\\\)/g,(a,s,l)=>s?a:`$${l.trim()}$`))}return e}var jC=R(qe(),1);var Ic=class extends Error{code;details;retryable;origin;constructor(e,n=ve("error.requestFailed")){super(typeof e?.userMessage=="string"?e.userMessage:n),this.name="NativeError",this.code=typeof e?.code=="string"?e.code:void 0,this.details=e?.details,this.retryable=typeof e?.retryable=="boolean"?e.retryable:void 0,this.origin=e?.origin==="native"||e?.origin==="session_host"?e.origin:void 0}};function i6(t,e,n=!1,r){let i=new Error(e);return i.name="PageError",i.code=t,i.retryable=n,r!==void 0&&(i.details=r),i}function Aoe(t){return t instanceof Error&&typeof t.code=="string"}var oje="__cmuxPageReceive",zj=class{constructor(e,n=globalThis){this.handler=e;n[oje]=r=>this.receive(r)}handler;nextId=1;listeners=new Map;lastSeq=new Map;handlers=new Map;async call(e,n,r){let i=r?.signal,o=()=>i6("cmux.op.cancelled","the caller cancelled the op",!0,r?.opid?{opid:r.opid}:void 0);if(i?.aborted)throw o();let a=r?.opid===void 0?{t:"call",id:this.nextId++,op:e,params:n}:{t:"call",id:this.nextId++,op:e,params:n,opid:r.opid},s=this.post(a);return i?await new Promise((l,c)=>{let u=()=>{this.handler.postMessage({t:"cancel",id:a.id}).catch(()=>{}),c(o())};i.addEventListener("abort",u,{once:!0}),s.then(d=>{i.removeEventListener("abort",u),i.aborted||l(d)},d=>{i.removeEventListener("abort",u),i.aborted||c(d)})}):await s}async subscribe(e,n,r){let i=r?{t:"sub",id:this.nextId++,stream:e,filter:r}:{t:"sub",id:this.nextId++,stream:e},a=(await this.post(i))?.sub;if(typeof a!="number")throw i6("cmux.protocol.invalid_result",`subscribe ${e}: no sub id`);return this.listeners.set(a,n),()=>{this.listeners.delete(a)&&(this.lastSeq.delete(a),this.handler.postMessage({t:"unsub",sub:a}).catch(()=>{}))}}handle(e,n){return this.handlers.set(e,n),()=>{this.handlers.get(e)===n&&this.handlers.delete(e)}}async post(e){let n;try{n=await this.handler.postMessage(e)}catch(i){throw i6("cmux.protocol.closed",i instanceof Error?i.message:String(i),!0)}let r=n;if(r?.t==="ok"&&r.id===e.id)return r.value;if(r?.t==="err"){let i=r;throw i6(i.code??"cmux.protocol.error",i.message??"request failed",i.retryable??!1,i.details)}throw i6("cmux.protocol.invalid_result","malformed reply")}receive(e){let n=e;if(n?.t==="ev"){let{sub:r,seq:i,data:o,opid:a}=n,s=this.listeners.get(r);if(!s||i<=(this.lastSeq.get(r)??0))return;this.lastSeq.set(r,i),s(o,i,typeof a=="string"?{opid:a}:{});return}if(n?.t==="call"){let{id:r,op:i,params:o}=n;this.answer(r,i,o)}}async answer(e,n,r){let i=this.handlers.get(n),o;if(!i)o={t:"err",id:e,code:"cmux.protocol.unknown_op",message:n};else try{o={t:"ok",id:e,value:await i(r)??null}}catch(a){o={t:"err",id:e,code:"cmux.page.failed",message:a instanceof Error?a.message:String(a)}}await this.handler.postMessage(o).catch(()=>{})}};function aje(t="cmuxPage",e=globalThis){let r=e.webkit?.messageHandlers?.[t];return r&&typeof r.postMessage=="function"?r:null}function $oe(t){let e=aje();return e?new zj(e):t?t():null}var Ioe=0,o6=1,R0=3,sje=new Set(["transport.closed","transport.stale_connection"]),qj=new Map;function Hj(t){!t||typeof t.connection!="number"||qj.get(t.connection)?.receive(t)}function lje(){let t=window;t.cmuxAcpmuxTransport||(t.cmuxAcpmuxTransport={receive:Hj})}var _C=class{constructor(e=Nc){this.post=e;lje(),this.post("transport.open").then(n=>{let r=n?.connection;if(typeof r!="number")return this.failOpen();if(this.readyState===R0){this.post("transport.close",{connection:r}).catch(()=>{});return}this.connection=r,qj.set(r,this),this.readyState=o6,this.onopen?.(new Event("open"))},()=>this.failOpen())}post;static CONNECTING=Ioe;static OPEN=o6;static CLOSED=R0;readyState=Ioe;onopen=null;onmessage=null;onerror=null;onclose=null;closeError;connection;outbox=[];flushQueued=!1;send(e){if(this.readyState!==o6)throw new DOMException("The acpmux transport is not open","InvalidStateError");this.outbox.push(e),!this.flushQueued&&(this.flushQueued=!0,queueMicrotask(()=>this.flush()))}close(){if(this.readyState===R0)return;let e=this.connection;this.finish({code:1e3,reason:"",wasClean:!0}),e!==void 0&&this.post("transport.close",{connection:e}).catch(()=>{})}receive(e){for(let n of e.frames??[]){if(this.readyState!==o6)return;this.onmessage?.({data:n})}e.closed&&(this.closeError=e.closed.error,this.finish({code:e.closed.code,reason:e.closed.reason,wasClean:e.closed.code===1e3}))}flush(){this.flushQueued=!1;let e=this.outbox;this.outbox=[];let n=this.connection;!e.length||n===void 0||this.readyState!==o6||this.post("transport.send",{connection:n,frames:e}).catch(r=>{r?.code&&sje.has(r.code)&&this.finish({code:1006,reason:r.code,wasClean:!1})})}failOpen(){this.readyState!==R0&&(this.readyState=R0,this.onerror?.(new Event("error")),this.onclose?.({code:1006,reason:"",wasClean:!1}))}finish(e){this.readyState!==R0&&(this.readyState=R0,this.connection!==void 0&&qj.delete(this.connection),this.outbox=[],this.onclose?.(e))}};var Poe=R(Q(),1),SC={show:"always",maxRows:5,scope:"turn"},Noe={min:1,max:50};function cje(t){let e=t&&typeof t=="object"?t:{},n=e.show==="collapsed"||e.show==="never"?e.show:SC.show,r=e.scope==="session"?"session":SC.scope,i=e.maxRows,o=typeof i=="number"&&Number.isInteger(i)&&i>=Noe.min&&i<=Noe.max?i:SC.maxRows;return{show:n,maxRows:o,scope:r}}var a6=SC,Gj=new Set;function Uj(t){let e=cje(t);if(!(e.show===a6.show&&e.maxRows===a6.maxRows&&e.scope===a6.scope)){a6=e;for(let n of Gj)n()}}function Vj(){return(0,Poe.useSyncExternalStore)(dje,uje)}function uje(){return a6}function dje(t){return Gj.add(t),()=>Gj.delete(t)}typeof window<"u"&&(window.cmuxAcpmuxEditedFiles=Uj);var pje="cmux.agent.host.events",mje="acpmux-focus-location",fje={ready:"handshake","chat.persistSession":"session.persist"};function hje(t){return`cmux.agent.${fje[t]??t}`}var joe=null;function LC(){return joe??=$oe(),joe}async function Doe(t,e,n={}){try{return await t.call(hje(e),n)}catch(r){if(!Aoe(r))throw new Ic(void 0,String(r));if(r.code==="cmux.protocol.unknown_op"||r.code==="cmux.protocol.invalid_params")throw new Ic({code:"native.invalid_request",origin:"native",userMessage:r.message});if(r.code.startsWith("cmux.protocol."))throw new Ic({userMessage:r.message});let i=r.details;throw new Ic({code:r.code,userMessage:r.message,retryable:r.retryable,origin:i?.origin,details:i?.details})}}function gje(t){let e=window.cmuxAcpmuxBridge,n=t.value;switch(t.kind){case"theme":{let r=t.value;window.cmuxTheme?.apply(r.web),r.agent&&e?.applyTheme(r.agent);return}case"shortcuts":return e?.applyShortcuts?.(n);case"preview":return e?.applyPreview?.(t.value===!0);case"editedFiles":return Uj(t.value);case"customization":return e?.applyCustomization(n);case"dictation":return e?.dictation?.(n);case"revealTurn":return e?.revealTurn?.(String(t.value));case"command":return e?.command?.(String(t.value));case"focusLocation":window.dispatchEvent(new Event(mje));return;case"transport":return Hj(t.value)}}var Ooe=new WeakSet;async function Foe(t){Ooe.has(t)||(Ooe.add(t),await t.subscribe(pje,e=>gje(e)))}function Nc(t,e={}){let n=LC();if(n)return Doe(n,t,e);let r=window.webkit?.messageHandlers?.agentSession;return r?Promise.resolve(r.postMessage({id:crypto.randomUUID(),method:t,params:e})).then(i=>{if(!i.ok)throw new Ic(i.error);return i.value}):Promise.reject(new Ic({code:"native.not_connected",origin:"native"},ve("error.nativeUnavailable")))}var bje=Nc;function vd(t,e){return Promise.resolve().then(()=>bje(t,e)).catch(()=>{})}var Xj=R(qe(),1),AC=R(Q(),1);var Boe=64,yje=2e3,d2=new Map,p2=new Map,MC=new Set,EC={outsideRoots:"confirm",remoteImages:"click"},TC=[],RC=[],Zj=!1,Wj=!1,zoe=0,Kj=new Set;function xje(){zoe+=1;for(let t of Kj)t()}function wje(){Zj=!1;let t=!Wj;for(Wj=!0;t||TC.length||RC.length;){t=!1;let e=TC.splice(0,Boe),n=RC.splice(0,Boe);vd("link.inspect",{paths:e,urls:n}).then(r=>{let i=r??{};for(let o of e)d2.set(o,i.paths?.[o]??null),MC.delete(o);for(let o of n)p2.set(o,i.sites?.[o]??null);i.policy&&(EC={...EC,...i.policy}),xje()})}}function Yj(t,e){d2.size+p2.size>yje&&(d2.clear(),MC.clear(),p2.clear()),t!==void 0&&!d2.has(t)&&(d2.set(t,null),MC.add(t),TC.push(t)),e!==void 0&&!p2.has(e)&&(p2.set(e,null),RC.push(e)),!Zj&&(!Wj||TC.length||RC.length)&&(Zj=!0,queueMicrotask(wje))}var m2=()=>zoe;function Qj(t){return Kj.add(t),()=>Kj.delete(t)}function $C(t){let e=(0,Xj.c)(7);(0,AC.useSyncExternalStore)(Qj,m2,m2),Yj(t);let n;e[0]!==t?(n=d2.get(t)??void 0,e[0]=t,e[1]=n):n=e[1];let r;e[2]!==t?(r=MC.has(t),e[2]=t,e[3]=r):r=e[3];let i=!r,o;return e[4]!==n||e[5]!==i?(o={info:n,answered:i,policy:EC},e[4]=n,e[5]=i,e[6]=o):o=e[6],o}function IC(t){let e=(0,Xj.c)(2);(0,AC.useSyncExternalStore)(Qj,m2,m2),t&&Yj(void 0,t);let n;return e[0]!==t?(n=t?p2.get(t)??void 0:void 0,e[0]=t,e[1]=n):n=e[1],n}function qoe(){return(0,AC.useSyncExternalStore)(Qj,m2,m2),Yj(),EC}function f2(t){if(/^file:\/\//i.test(t))try{let n=new URL(t);return n.host&&n.host!=="localhost"?void 0:NC(decodeURIComponent(n.pathname))}catch{return}return t.startsWith("//")||t.startsWith("#")||t.startsWith("?")||/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t)?void 0:NC(kje(t.split(/[?#]/)[0]))||void 0}function Hoe(t){let e=t.trim();if(/^file:\/\//i.test(e)){let r=f2(e);return r&&Jj(r)?r:void 0}if(!/^(?:~|\.{1,2})?\/[^\t\n`'"<>|*?$;&(){}[\]]+$/.test(e)||/ -/.test(e))return;let n=NC(e);return Jj(n)?n:void 0}function Jj(t){if(!/^(?:~|\.{1,2})?\//.test(t))return!1;let e=/^\.{1,2}\//.test(t),n=t.split("/").filter(r=>r&&r!=="~"&&r!=="."&&r!=="..");return n.length<(e?1:2)?!1:t.endsWith("/")||/\.[A-Za-z0-9]{1,12}$/.test(n.at(-1))}var vje=/(?<![\w/.:~@-])(?:(file:\/\/(?:localhost)?\/[^\s<>()"'`]+)|((?:~|\.{1,2})?\/(?:[\w.@+-]+\/)+(?:[\w@+-][\w.@+-]*\.[A-Za-z0-9]{1,12}(?::\d+(?::\d+)?)?(?![\w/])|(?![\w@+-]|\.\w)))|(https?:\/\/[A-Za-z0-9][^\s<>()"'`]*))/g;function Goe(t){if(!t.includes("/"))return[];let e=[];for(let n of t.matchAll(vje)){let r=n[0];(n[1]||n[3])&&(r=r.replace(/[.,;:!?*_]+$/,""));let i=n.index,o=i+r.length;if(n[3]){/^https?:\/\/[^/?#]*[A-Za-z0-9]/.test(r)&&e.push({kind:"url",start:i,end:o,value:r});continue}let a=n[1]?f2(r):NC(r);a&&Jj(a)&&e.push({kind:"path",start:i,end:o,value:r,path:a})}return e}function NC(t){return t.replace(/:\d+(?::\d+)?$/,"")}function kje(t){try{return decodeURIComponent(t)}catch{return t}}var Cje=/\/(?:\.ssh|\.gnupg|Library\/Keychains|\.aws|\.config\/gh)(?:\/|$)/;function PC(t){let e=(t.replace(/\/+$/,"").split("/").at(-1)??"").toLowerCase();return Cje.test(t)||e.endsWith(".pem")||e.endsWith(".key")||e.startsWith(".env")}function s6(t){return t.replace(/\/+$/,"").split("/").at(-1)||t}var xa=R(ee(),1);function OC(t){let e=(0,jC.c)(6),{path:n,label:r,written:i}=t;if(PC(n)){let a=i??r??n,s;return e[0]!==a?(s=(0,xa.jsx)("span",{className:"cv-chip-plain",children:a}),e[0]=a,e[1]=s):s=e[1],s}let o;return e[2]!==r||e[3]!==n||e[4]!==i?(o=(0,xa.jsx)(_je,{path:n,label:r,written:i}),e[2]=r,e[3]=n,e[4]=i,e[5]=o):o=e[5],o}function _je(t){let e=(0,jC.c)(28),{path:n,label:r,written:i}=t,o=we(),{info:a,policy:s}=$C(n);if(a?.place==="denied"||a?.place==="missing"||a?.place==="outside"&&s.outsideRoots==="text"){let w=i??r??n,v;return e[0]!==w?(v=(0,xa.jsx)("span",{className:"cv-chip-plain",children:w}),e[0]=w,e[1]=v):v=e[1],v}let c=a?.place==="outside",u;e[2]!==a?.folder||e[3]!==n?(u=a?.folder??n.endsWith("/"),e[2]=a?.folder,e[3]=n,e[4]=u):u=e[4];let d=u,p=`cv-chip is-path${c?" is-outside":""}`,m;e[5]!==c||e[6]!==n||e[7]!==o?(m=c?`${n} -${o("chip.outsideProject")}`:n,e[5]=c,e[6]=n,e[7]=o,e[8]=m):m=e[8];let f;e[9]!==n?(f=()=>{vd("link.openPath",{path:n})},e[9]=n,e[10]=f):f=e[10];let h;e[11]!==d?(h=d?(0,xa.jsx)(Gre,{size:15,className:"cv-chip__icon"}):(0,xa.jsx)(Uk,{size:15,className:"cv-chip__icon"}),e[11]=d,e[12]=h):h=e[12];let x;e[13]!==r||e[14]!==n?(x=r??s6(n),e[13]=r,e[14]=n,e[15]=x):x=e[15];let g;e[16]!==x?(g=(0,xa.jsx)("span",{className:"cv-chip__label",children:x}),e[16]=x,e[17]=g):g=e[17];let y;e[18]!==c?(y=c&&(0,xa.jsx)(zk,{size:11,className:"cv-chip__lock"}),e[18]=c,e[19]=y):y=e[19];let b;return e[20]!==n||e[21]!==p||e[22]!==m||e[23]!==f||e[24]!==h||e[25]!==g||e[26]!==y?(b=(0,xa.jsxs)("button",{type:"button",className:p,title:m,"data-path":n,onClick:f,children:[h,g,y]}),e[20]=n,e[21]=p,e[22]=m,e[23]=f,e[24]=h,e[25]=g,e[26]=y,e[27]=b):b=e[27],b}function eO(t){let e=(0,jC.c)(9),{href:n,icon:r,children:i}=t,o=IC(n),a;e[0]!==r||e[1]!==o?(a=o?.icon?(0,xa.jsx)("img",{className:"cv-chip__icon cv-chip__favicon",src:o.icon,alt:"",width:14,height:14}):r??(0,xa.jsx)(Tl,{size:15,strokeWidth:1.1,className:"cv-chip__icon"}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let s=a,l;e[3]!==i?(l=(0,xa.jsx)("span",{className:"cv-chip__label",children:i}),e[3]=i,e[4]=l):l=e[4];let c;return e[5]!==n||e[6]!==s||e[7]!==l?(c=(0,xa.jsxs)("a",{className:"cv-link cv-chip is-web",href:n,rel:"noreferrer",title:n,children:[s,l]}),e[5]=n,e[6]=s,e[7]=l,e[8]=c):c=e[8],c}function tO(t,e){let n=Goe(t);if(!n.length)return[t];let r=[],i=0;return n.forEach((o,a)=>{o.start>i&&r.push(t.slice(i,o.start)),r.push(o.kind==="path"?(0,xa.jsx)(OC,{path:o.path,written:o.value},`${e}-${a}`):(0,xa.jsx)(eO,{href:o.value,children:o.value},`${e}-${a}`)),i=o.end}),i<t.length&&r.push(t.slice(i)),r}var l6=R(qe(),1),Voe=R(Q(),1);var Fr=R(ee(),1);function Sje(t){let e=f2(t);if(e)return e;if(!(/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t)||t.startsWith("//")||t.startsWith("#")||t.startsWith("?")))return t.split(/[?#]/)[0]||void 0}function Lje(t){try{let e=new URL(t);return e.protocol==="https:"&&!e.username&&!e.password?e.host:void 0}catch{return}}var Uoe=new Map,nO=new Set;function Zoe(t,e){let n=(0,l6.c)(7),r;n[0]!==t?(r=()=>{let c=Uoe.get(t);return c?{kind:"shown",src:c}:{kind:"idle"}},n[0]=t,n[1]=r):r=n[1];let[i,o]=(0,Voe.useState)(r),a;n[2]!==t?(a=()=>{o({kind:"loading"}),vd("image.load",{src:t}).then(c=>{let u=c?.src;typeof u=="string"&&u.startsWith("data:image/")?(Uoe.set(t,u),o({kind:"shown",src:u})):(nO.delete(t),o({kind:"failed"}))})},n[2]=t,n[3]=a):a=n[3];let s=a;e&&i.kind==="idle"&&!nO.has(t)&&(nO.add(t),queueMicrotask(s));let l;return n[4]!==s||n[5]!==i?(l={state:i,load:s},n[4]=s,n[5]=i,n[6]=l):l=n[6],l}function Woe(t){let e=(0,l6.c)(13),{src:n,alt:r,fallback:i}=t,o;e[0]!==n?(o=Sje(n),e[0]=n,e[1]=o):o=e[1];let a=o,s;e[2]!==a||e[3]!==n?(s=a?void 0:Lje(n),e[2]=a,e[3]=n,e[4]=s):s=e[4];let l=s;if(!a&&!l){let u;return e[5]!==i?(u=(0,Fr.jsx)(Fr.Fragment,{children:i}),e[5]=i,e[6]=u):u=e[6],u}let c;return e[7]!==r||e[8]!==i||e[9]!==l||e[10]!==a||e[11]!==n?(c=a?(0,Fr.jsx)(Mje,{src:n,path:a,alt:r,fallback:i}):(0,Fr.jsx)(Eje,{src:n,alt:r,host:l,fallback:i}),e[7]=r,e[8]=i,e[9]=l,e[10]=a,e[11]=n,e[12]=c):c=e[12],c}function Mje(t){let e=(0,l6.c)(42),{src:n,path:r,alt:i,fallback:o}=t,a=we(),{info:s,answered:l,policy:c}=$C(r),u=s?.place,d;e[0]!==r||e[1]!==u?(d=u==="denied"||PC(r),e[0]=r,e[1]=u,e[2]=d):d=e[2];let p=d,m=l&&!p&&u!=="outside"&&u!=="missing",{state:f}=Zoe(n,m);if(f.kind==="shown"){let T;return e[3]!==i||e[4]!==f.src?(T=(0,Fr.jsx)("img",{className:"cv-img",src:f.src,alt:i}),e[3]=i,e[4]=f.src,e[5]=T):T=e[5],T}if(p){let T;e[6]!==i||e[7]!==r?(T=i||s6(r),e[6]=i,e[7]=r,e[8]=T):T=e[8];let M;return e[9]!==T?(M=(0,Fr.jsx)("span",{className:"cv-chip-plain",children:T}),e[9]=T,e[10]=M):M=e[10],M}let h=u==="outside";if(!h&&u!=="missing"&&f.kind!=="failed"){let T;return e[11]!==o?(T=(0,Fr.jsx)(Fr.Fragment,{children:o}),e[11]=o,e[12]=T):T=e[12],T}let x=h?c.outsideRoots!=="text":u!=="missing",g=`cv-image-file${h?" is-outside":""}`,y;e[13]!==h||e[14]!==r||e[15]!==a?(y=h?`${r} -${a("chip.outsideProject")}`:r,e[13]=h,e[14]=r,e[15]=a,e[16]=y):y=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=(0,Fr.jsx)(_0,{size:16,className:"cv-chip__icon"}),e[17]=b):b=e[17];let w;e[18]!==i?(w=i&&(0,Fr.jsx)("span",{className:"cv-image-file__alt",children:i}),e[18]=i,e[19]=w):w=e[19];let v;e[20]!==r?(v=s6(r),e[20]=r,e[21]=v):v=e[21];let k;e[22]!==v?(k=(0,Fr.jsx)("span",{className:"cv-image-file__name",children:v}),e[22]=v,e[23]=k):k=e[23];let _;e[24]!==h?(_=h&&(0,Fr.jsx)(zk,{size:11,className:"cv-chip__lock"}),e[24]=h,e[25]=_):_=e[25];let L;e[26]!==h||e[27]!==a?(L=!h&&(0,Fr.jsx)("span",{className:"cv-image-file__note",children:a("image.unavailable")}),e[26]=h,e[27]=a,e[28]=L):L=e[28];let S;e[29]!==x||e[30]!==r||e[31]!==a?(S=x&&(0,Fr.jsx)("button",{type:"button",className:"cv-image-file__open",onClick:()=>{vd("link.openPath",{path:r})},children:a("image.open")}),e[29]=x,e[30]=r,e[31]=a,e[32]=S):S=e[32];let C;return e[33]!==r||e[34]!==S||e[35]!==g||e[36]!==y||e[37]!==w||e[38]!==k||e[39]!==_||e[40]!==L?(C=(0,Fr.jsxs)("span",{className:g,title:y,"data-path":r,children:[b,w,k,_,L,S]}),e[33]=r,e[34]=S,e[35]=g,e[36]=y,e[37]=w,e[38]=k,e[39]=_,e[40]=L,e[41]=C):C=e[41],C}function Eje(t){let e=(0,l6.c)(16),{src:n,alt:r,host:i,fallback:o}=t,a=we(),s=qoe(),{state:l,load:c}=Zoe(n,s.remoteImages==="always");if(l.kind==="shown"){let f;return e[0]!==r||e[1]!==l.src?(f=(0,Fr.jsx)("img",{className:"cv-img",src:l.src,alt:r}),e[0]=r,e[1]=l.src,e[2]=f):f=e[2],f}if(s.remoteImages==="never"){let f;return e[3]!==o?(f=(0,Fr.jsx)(Fr.Fragment,{children:o}),e[3]=o,e[4]=f):f=e[4],f}let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,Fr.jsx)(_0,{size:16,className:"cv-chip__icon"}),e[5]=u):u=e[5];let d;e[6]!==i?(d=(0,Fr.jsx)("span",{className:"cv-image-placeholder__host",children:i}),e[6]=i,e[7]=d):d=e[7];let p;e[8]!==c||e[9]!==l.kind||e[10]!==a?(p=l.kind==="failed"?(0,Fr.jsx)("span",{className:"cv-image-placeholder__note",children:a("image.unavailable")}):(0,Fr.jsx)("button",{type:"button",className:"cv-image-placeholder__load",disabled:l.kind==="loading",onClick:c,children:a("image.load")}),e[8]=c,e[9]=l.kind,e[10]=a,e[11]=p):p=e[11];let m;return e[12]!==n||e[13]!==d||e[14]!==p?(m=(0,Fr.jsxs)("span",{className:"cv-image-placeholder",title:n,children:[u,d,p]}),e[12]=n,e[13]=d,e[14]=p,e[15]=m):m=e[15],m}var Fae=R(qe(),1);var s_={};fn(s_,{Indicator:()=>Dae,Root:()=>Iae});var Cu=R(Q(),1);function Yt(){}var Us=Object.freeze([]),xn=Object.freeze({});var A0=R(Q(),1);function kd({controlled:t,default:e,name:n,state:r="value"}){let{current:i}=A0.useRef(t!==void 0),[o,a]=A0.useState(e),s=i&&t!==void 0?t:o,l=A0.useCallback(c=>{i||a(c)},[]);return[s,l]}var Koe=R(Q(),1),Tje=()=>{},Ee=typeof document<"u"?Koe.useLayoutEffect:Tje;var Yoe=R(Q(),1),Xoe={};function Vn(t,e){let n=Yoe.useRef(Xoe);return n.current===Xoe&&(n.current=t(e)),n}function wa(t,e,n,r){let i=Vn(Joe).current;return Rje(i,t,e,n,r)&&eae(i,[t,e,n,r]),i.callback}function Qoe(t){let e=Vn(Joe).current;return Aje(e,t)&&eae(e,t),e.callback}function Joe(){return{callback:null,cleanup:null,refs:[]}}function Rje(t,e,n,r,i){return t.refs[0]!==e||t.refs[1]!==n||t.refs[2]!==r||t.refs[3]!==i}function Aje(t,e){return t.refs.length!==e.length||t.refs.some((n,r)=>n!==e[r])}function eae(t,e){if(t.refs=e,e.every(n=>n==null)){t.callback=null;return}t.callback=n=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),n!=null){let r=Array(e.length).fill(null);for(let i=0;i<e.length;i+=1){let o=e[i];if(o!=null)switch(typeof o){case"function":{let a=o(n);typeof a=="function"&&(r[i]=a);break}case"object":{o.current=n;break}default:}}t.cleanup=()=>{for(let i=0;i<e.length;i+=1){let o=e[i];if(o!=null)switch(typeof o){case"function":{let a=r[i];typeof a=="function"?a():o(null);break}case"object":{o.current=null;break}default:}}}}}}var tae={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},h2={...tae,position:"fixed",top:0,left:0},g2={...tae,position:"absolute"};function DC(){return typeof window<"u"}function Di(t){return FC(t)?(t.nodeName||"").toLowerCase():"#document"}function Qn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _d(t){var e;return(e=(FC(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function FC(t){return DC()?t instanceof Node||t instanceof Qn(t).Node:!1}function ln(t){return DC()?t instanceof Element||t instanceof Qn(t).Element:!1}function Ln(t){return DC()?t instanceof HTMLElement||t instanceof Qn(t).HTMLElement:!1}function Cd(t){return!DC()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qn(t).ShadowRoot}function I0(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=Fi(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function nae(t){return/^(table|td|th)$/.test(Di(t))}function c6(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var $je=/transform|translate|scale|rotate|perspective|filter/,Ije=/paint|layout|strict|content/,$0=t=>!!t&&t!=="none",rO;function BC(t){let e=ln(t)?Fi(t):t;return $0(e.transform)||$0(e.translate)||$0(e.scale)||$0(e.rotate)||$0(e.perspective)||!zC()&&($0(e.backdropFilter)||$0(e.filter))||$je.test(e.willChange||"")||Ije.test(e.contain||"")}function rae(t){let e=Nl(t);for(;Ln(e)&&!Pl(e);){if(BC(e))return e;if(c6(e))return null;e=Nl(e)}return null}function zC(){return rO==null&&(rO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rO}function Pl(t){return/^(html|body|#document)$/.test(Di(t))}function Fi(t){return Qn(t).getComputedStyle(t)}function u6(t){return ln(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nl(t){if(Di(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Cd(t)&&t.host||_d(t);return Cd(e)?e.host:e}function iae(t){let e=Nl(t);return Pl(e)?(t.ownerDocument||t).body:Ln(e)&&I0(e)?e:iae(e)}function vu(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=iae(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),a=Qn(i);if(o){let s=qC(a);return e.concat(a,a.visualViewport||[],I0(i)?i:[],s&&n?vu(s):[])}else return e.concat(i,vu(i,[],n))}function qC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Wt(t){return t?.ownerDocument||document}function oae(t){if(!t)return null;for(let e of t.elements){let n=e.tagName;if(n==="BUTTON"||n==="INPUT"){let r=e;if(r.type==="submit")return r}}return null}var aae="data-valid",sae="data-invalid";var lae={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},iO={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},cae={disabled:!1,...iO},HC={valid(t){return t===null?null:t?{[aae]:""}:{[sae]:""}}};var uae="data-checked",dae="data-unchecked";function GC(t){return{checked(e){return t.indeterminate?{}:e?{[uae]:""}:{[dae]:""}},...HC}}function m1(t,e,{detail:n=0}={}){t.dispatchEvent(new(Qn(t)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}function jje(t,e){return function(r,...i){let o=new URL(t);return o.searchParams.set("code",r.toString()),i.forEach(a=>o.searchParams.append("args[]",a)),`${e} error #${r}; visit ${o} for the full message.`}}var Oje=jje("https://base-ui.com/production-error","Base UI"),Dt=Oje;var f1=R(Q(),1);var mae=R(Q(),1);var pae=R(Q(),1),Dje=parseInt(pae.version,10);function b2(t){return Dje>=t}function oO(t){if(!mae.isValidElement(t))return null;let e=t,n=e.props;return(b2(19)?n?.ref:e.ref)??null}function d6(t,e){if(t&&!e)return t;if(!t&&e)return e;if(t||e)return{...t,...e}}function fae(t,e){let n={};for(let r in t){let i=t[r];if(e?.hasOwnProperty(r)){let o=e[r](i);o!=null&&Object.assign(n,o);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function hae(t,e){return typeof t=="function"?t(e):t}function gae(t,e){return typeof t=="function"?t(e):t}var aO={};function Bi(t,e,n,r,i){if(!n&&!r&&!i&&!t)return UC(e);let o=UC(t);return e&&(o=p6(o,e)),n&&(o=p6(o,n)),r&&(o=p6(o,r)),i&&(o=p6(o,i)),o}function bae(t){if(t.length===0)return aO;if(t.length===1)return UC(t[0]);let e=UC(t[0]);for(let n=1;n<t.length;n+=1)e=p6(e,t[n]);return e}function UC(t){return sO(t)?{...xae(t,aO)}:Fje(t)}function p6(t,e){return sO(e)?xae(e,t):Bje(t,e)}function Fje(t){let e={...t};for(let n in e){let r=e[n];yae(n,r)&&(e[n]=wae(r))}return e}function Bje(t,e){if(!e)return t;for(let n in e){let r=e[n];switch(n){case"style":{t[n]=d6(t.style,r);break}case"className":{t[n]=lO(t.className,r);break}default:yae(n,r)?t[n]=zje(t[n],r):t[n]=r}}return t}function yae(t,e){let n=t.charCodeAt(0),r=t.charCodeAt(1),i=t.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof e=="function"||typeof e>"u")}function sO(t){return typeof t=="function"}function xae(t,e){return sO(t)?t(e):t??aO}function zje(t,e){return e?t?(...n)=>{let r=n[0];if(vae(r)){let o=r;m6(o);let a=e(...n);return o.baseUIHandlerPrevented||t?.(...n),a}let i=e(...n);return t?.(...n),i}:wae(e):t}function wae(t){return t&&((...e)=>{let n=e[0];return vae(n)&&m6(n),t(...e)})}function m6(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}function lO(t,e){return e?t?e+" "+t:e:t}function vae(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}var cO=R(Q(),1);function We(t,e,n={}){let r=e.render;n.enabled!==!1&&(r=Uje(r));let i=qje(e,n,r);if(n.enabled===!1)return null;let o=n.state??xn;return Vje(t,r,i,o)}function qje(t,e,n){let{className:r,style:i}=t,{state:o=xn,ref:a,props:s,stateAttributesMapping:l,enabled:c=!0}=e,u=c?hae(r,o):void 0,d=c?gae(i,o):void 0,p=c?fae(o,l):xn,m=c&&s?Hje(s):void 0,f=c?d6(p,m)??{}:xn;return typeof document<"u"&&(c?Array.isArray(a)?f.ref=Qoe([f.ref,oO(n),...a]):f.ref=wa(f.ref,oO(n),a):wa(null,null)),c?(u!==void 0&&(f.className=lO(f.className,u)),d!==void 0&&(f.style=d6(f.style,d)),f):xn}function Hje(t){return Array.isArray(t)?bae(t):Bi(void 0,t)}var Gje=Symbol.for("react.lazy");function Uje(t){if(t?.$$typeof!==Gje)return t;let e=f1.Children.toArray(t)[0];return f1.isValidElement(e)?e:t}function Vje(t,e,n,r){if(e){if(typeof e=="function")return e(n,r);let i=Bi(n,e.props);return i.ref=n.ref,f1.cloneElement(e,i)}if(t&&typeof t=="string")return Zje(t,n);throw new Error(Dt(8))}function Zje(t,e){return t==="button"?(0,cO.createElement)("button",{type:"button",...e,key:e.key}):t==="img"?(0,cO.createElement)("img",{alt:"",...e,key:e.key}):f1.createElement(t,e)}var VC=R(Q(),1);var Wje=R(Q(),1),f6={...Wje};var kae=0;function Kje(t,e="mui"){let[n,r]=VC.useState(t),i=t||n;return VC.useEffect(()=>{n==null&&(kae+=1,r(`${e}-${kae}`))},[n,e]),i}var Cae=f6.useId;function jl(t,e){if(Cae!==void 0){let n=Cae();return t??(e?`${e}-${n}`:n)}return Kje(t,e)}function dr(t){return jl(t,"base-ui")}var x2=R(Q(),1);var uO=f6.useInsertionEffect,Xje=uO&&uO!==f6.useLayoutEffect?uO:t=>t();function Pe(t){let e=Vn(Yje).current;return e.next=t,Xje(e.effect),e.trampoline}function Yje(){let t={next:void 0,callback:Qje,trampoline:(...e)=>t.callback?.(...e),effect:()=>{t.callback=t.next}};return t}function Qje(){}var ZC=R(Q(),1),Jje=ZC.createContext(void 0);function y2(t=!1){let e=ZC.useContext(Jje);if(e===void 0&&!t)throw new Error(Dt(16));return e}var _ae=R(Q(),1);function Sae(t){let{focusableWhenDisabled:e,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:o}=t,a=r&&e!==!1,s=r&&e===!1;return{props:_ae.useMemo(()=>{let c={onKeyDown(u){n&&e&&u.key!=="Tab"&&u.preventDefault()}};return r||(c.tabIndex=i,!o&&n&&(c.tabIndex=e?i:-1)),(o&&(e||a)||!o&&n)&&(c["aria-disabled"]=n),o&&(!e||s)&&(c.disabled=n),c},[r,n,e,a,s,o,i])}}function zi(t={}){let{disabled:e=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:o}=t,a=x2.useRef(null),s=y2(!0),l=o??s!==void 0,{props:c}=Sae({focusableWhenDisabled:n,disabled:e,composite:l,tabIndex:r,isNativeButton:i}),u=x2.useCallback(()=>{let m=a.current;dO(m)&&l&&e&&c.disabled===void 0&&m.disabled&&(m.disabled=!1)},[e,c.disabled,l]);Ee(u,[u]);let d=x2.useCallback((m={})=>{let{onClick:f,onMouseDown:h,onKeyUp:x,onKeyDown:g,onPointerDown:y,...b}=m;return Bi({onClick(w){if(e){w.preventDefault();return}f?.(w)},onMouseDown(w){e||h?.(w)},onKeyDown(w){if(e||(m6(w),g?.(w),w.baseUIHandlerPrevented))return;let v=w.target===w.currentTarget,k=w.currentTarget,_=dO(k),L=!i&&eOe(k),S=v&&(i?_:!L),C=w.key==="Enter",T=w.key===" ",M=k.getAttribute("role"),A=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(v&&l&&T){if(w.defaultPrevented&&A)return;w.preventDefault(),(!i||_)&&(w.preventBaseUIHandler(),m1(k,w));return}if(!S||i||!T&&!C){v&&L&&T&&w.preventDefault();return}w.defaultPrevented||(w.preventDefault(),C&&(w.preventBaseUIHandler(),m1(k,w)))},onKeyUp(w){if(!e){if(m6(w),x?.(w),w.target===w.currentTarget&&i&&l&&dO(w.currentTarget)&&w.key===" "){w.preventDefault();return}w.baseUIHandlerPrevented||w.target===w.currentTarget&&!i&&!l&&!w.defaultPrevented&&w.key===" "&&(w.preventBaseUIHandler(),m1(w.currentTarget,w))}},onPointerDown(w){if(e){w.preventDefault();return}y?.(w)}},i?{type:"button"}:{role:"button"},c,b)},[e,c,l,i]),p=Pe(m=>{a.current=m,u()});return{getButtonProps:d,buttonRef:p}}function dO(t){return Ln(t)&&t.tagName==="BUTTON"}function eOe(t){return Ln(t)&&t.tagName==="A"&&!!t.href}var WC=R(Q(),1);var pO={invalid:void 0,name:void 0,validityData:{state:lae,errors:[],error:"",value:"",initialValue:null},setValidityData:Yt,disabled:void 0,setTouched:Yt,setDirty:Yt,setFilled:Yt,setFocused:Yt,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:cae,registerFieldControl:Yt,validation:{getValidationProps:(t,e=xn)=>e,inputRef:{current:null},registeredInputs:new Map,registerInput:Yt,getInputControl:()=>null,commit:async()=>{},change:Yt}},mO=WC.createContext(pO);function Vs(t=!0){let e=WC.useContext(mO);if(e.setValidityData===Yt&&!t)throw new Error(Dt(28));return e}function KC(t,e,n,r,i=!0,o){let{registerFieldControl:a}=Vs(),s=Vn(()=>Symbol());Ee(()=>{let l=s.current;if(!i){a(l,void 0);return}a(l,{controlRef:t,getValue:r,id:e,name:o,value:n})},[t,i,r,e,o,a,s,n]),Ee(()=>{let l=s.current;return()=>{a(l,void 0)}},[a,s])}var XC=R(Q(),1),tOe=XC.createContext({disabled:!1});function Lae(){return XC.useContext(tOe)}var YC=R(Q(),1);var nOe=YC.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Yt,validationMode:"onSubmit",submitCountRef:{current:0}});function QC(){return YC.useContext(nOe)}var JC=R(Q(),1);var rOe=JC.createContext({controlId:void 0,registerControlId:Yt,resetControlId:Yt,labelId:void 0,setLabelId:Yt,messageIds:[],setMessageIds:Yt,getDescriptionProps:t=>t});function h1(){return JC.useContext(rOe)}var Mae=R(Q(),1);function Eae(t,e,n,r=!0,i){let[o,a]=Mae.useState(),s=dr(i?`${i}-label`:void 0),l=t??e??o;return Ee(()=>{let c=t||e||!r?void 0:iOe(n.current,s);o!==c&&a(c)}),l}function iOe(t,e){let n=oOe(t);if(n)return!n.id&&e&&(n.id=e),n.id||void 0}function oOe(t){if(!t)return;let e=t.parentElement;if(e&&e.tagName==="LABEL")return e;let n=t.id;if(n){let i=t.nextElementSibling;if(i&&i.htmlFor===n)return i}let r=t.labels;return r&&r[0]}var fO=R(Q(),1);function w2(t={}){let{id:e,enabled:n=!0}=t,{controlId:r,registerControlId:i,resetControlId:o}=h1(),a=dr(),s=Vn(()=>Symbol()),l=fO.useRef(!1),c=fO.useRef(!1),u=Pe(()=>{!l.current||i===Yt||(l.current=!1,i(s.current,void 0))});return Ee(()=>{if(!n||i===Yt){u();return}let d;if(e!==void 0)c.current=!0,d=e;else if(c.current)d=a;else{o();return}if(d===void 0){u();return}l.current=!0,i(s.current,d)},[e,n,i,o,a,s,u]),Ee(()=>u,[u]),(n?r:void 0)??e??a}var e_=R(Q(),1),aOe=e_.createContext(void 0);function Tae(){return e_.useContext(aOe)}var t_=R(Q(),1),hO=t_.createContext(void 0);function Rae(){let t=t_.useContext(hO);if(t===void 0)throw new Error(Dt(14));return t}var he={};fn(he,{cancelOpen:()=>NOe,chipRemovePress:()=>gOe,clearPress:()=>hOe,closePress:()=>mOe,closeWatcher:()=>MOe,decrementPress:()=>xOe,disabled:()=>jOe,drag:()=>AOe,escapeKey:()=>LOe,focusOut:()=>SOe,imperativeAction:()=>FOe,incrementPress:()=>yOe,initial:()=>DOe,inputBlur:()=>kOe,inputChange:()=>wOe,inputClear:()=>vOe,inputPaste:()=>COe,inputPress:()=>_Oe,itemPress:()=>pOe,keyboard:()=>TOe,linkPress:()=>fOe,listNavigation:()=>EOe,missing:()=>OOe,none:()=>sOe,outsidePress:()=>dOe,pointer:()=>ROe,scrub:()=>IOe,siblingOpen:()=>POe,swipe:()=>BOe,trackPress:()=>bOe,triggerFocus:()=>uOe,triggerHover:()=>cOe,triggerPress:()=>lOe,wheel:()=>$Oe,windowResize:()=>zOe});var sOe="none",lOe="trigger-press",cOe="trigger-hover",uOe="trigger-focus",dOe="outside-press",pOe="item-press",mOe="close-press",fOe="link-press",hOe="clear-press",gOe="chip-remove-press",bOe="track-press",yOe="increment-press",xOe="decrement-press",wOe="input-change",vOe="input-clear",kOe="input-blur",COe="input-paste",_Oe="input-press",SOe="focus-out",LOe="escape-key",MOe="close-watcher",EOe="list-navigation",TOe="keyboard",ROe="pointer",AOe="drag",$Oe="wheel",IOe="scrub",NOe="cancel-open",POe="sibling-open",jOe="disabled",OOe="missing",DOe="initial",FOe="imperative-action",BOe="swipe",zOe="window-resize";function Xe(t,e,n,r){let i=!1,o=!1,a=r??xn;return{reason:t,event:e??new Event("base-ui"),cancel(){i=!0},allowPropagation(){o=!0},get isCanceled(){return i},get isPropagationAllowed(){return o},trigger:n,...a}}function Aae(t,e,n){let r=n??xn;return{reason:t,event:e??new Event("base-ui"),...r}}var $ae=R(Q(),1);function ku(t,e){let n=$ae.useRef(t),r=Pe(e);Ee(()=>{n.current!==t&&r(n.current),n.current=t},[t,r])}var h6=R(ee(),1),qOe="data-parent",Iae=Cu.forwardRef(function(e,n){let{checked:r,className:i,defaultChecked:o=!1,"aria-labelledby":a,disabled:s=!1,form:l,id:c,indeterminate:u=!1,inputRef:d,name:p,onCheckedChange:m,parent:f=!1,readOnly:h=!1,render:x,required:g=!1,uncheckedValue:y,value:b,nativeButton:w=!1,style:v,...k}=e,{clearErrors:_}=QC(),{disabled:L,name:S,setDirty:C,setFilled:T,setFocused:M,setTouched:A,state:$,validationMode:N,validityData:F,validation:D}=Vs(),O=Lae(),{labelId:B,registerControlId:P,getDescriptionProps:U}=h1(),G=Tae(),j=G?.allValues===void 0?void 0:G.parent,V=j!==void 0,H=L||O.disabled||G?.disabled||s,ne=S??p,J=b??ne,W=dr(),ie=G?.registerControlId!==P,Z=w2({id:c||void 0,enabled:ie}),ce=w?Z:W,se={};V&&(f?se=j.getParentProps():J!==void 0&&(se=j.getChildProps(J)));let{checked:be=r,indeterminate:le=u,onCheckedChange:ge,...ke}=se,me=G?.value,Se=Cu.useRef(null),{getButtonProps:de,buttonRef:Le}=zi({disabled:H,native:w}),Ne=G?.validation??D,[Be,_e]=kd({controlled:J!==void 0&&me!==void 0&&!f?me.includes(J):be,default:o,name:"Checkbox",state:"checked"}),xe=V?!!be:Be,Ce=V&&le||u;KC(Se,W,Be,void 0,!G&&!H,p);let K=j?.registerChildId,Y=Cu.useRef(null),ye=Ne.registerInput,Re=G?J:void 0,Ke=Cu.useCallback(Ve=>ye(Ve,{controlRef:Se,value:Re}),[ye,Re]),mt=wa(d,Y,f?void 0:Ke),dt=Eae(a,B,Y,!w,Z);Ee(()=>{Y.current&&(Y.current.indeterminate=Ce),G||T(Be)},[Be,Ce,G,T]),ku(Be,()=>{G||(_(ne),C(Be!==F.initialValue),Ne.change(Be))});let Ae=Bi({checked:Be,disabled:H,form:l,name:f?void 0:ne,id:w?void 0:Z,required:g,ref:mt,style:ne?g2:h2,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Ve){if(Ve.nativeEvent.defaultPrevented)return;if(h){Ve.preventDefault();return}let Jt=Ve.currentTarget.checked,rn=Xe(he.none,Ve.nativeEvent);if(m?.(Jt,rn),!rn.isCanceled&&(ge?.(Jt,rn),!rn.isCanceled&&(_e(Jt),J!==void 0&&G!==void 0&&!f&&!V))){let Rn=Jt?[...G.value,J]:G.value.filter(_t=>_t!==J);G.setValue(Rn,rn)}},onClick(Ve){Ve.stopPropagation()},onFocus(){Se.current?.focus()}},b!==void 0?{value:(G?Be&&b:b)||""}:xn,U,Ve=>Ne.getValidationProps(H,Ve));Cu.useEffect(()=>{if(!j||J===void 0)return;let Ve=j.disabledStatesRef.current;return Ve.set(J,H),()=>{Ve.delete(J)}},[j,H,J]);let xt=Cu.useMemo(()=>({...$,checked:xe,disabled:H,readOnly:h,required:g,indeterminate:Ce}),[$,xe,H,h,g,Ce]),Et=GC(xt),jt=We("span",e,{state:xt,ref:[Le,Se,n],props:[{id:ce,role:"checkbox","aria-checked":Ce?"mixed":xe,"aria-readonly":h||void 0,"aria-required":g||void 0,"aria-labelledby":dt,[qOe]:f?"":void 0,onFocus(){H||M(!0)},onBlur(){let Ve=Y.current;Ve&&(A(!0),M(!1),N==="onBlur"&&Ne.commit(G?me:Ve.checked))},onKeyDown(Ve){if(Ve.key!=="Enter"||(Ve.preventBaseUIHandler(),Ve.defaultPrevented))return;let Jt=Y.current?.form??null,rn=Ve.currentTarget,Rn=Ve.nativeEvent,_t=Ve.preventDefault,An=Rn.preventDefault,Xt=!1;Ve.preventDefault=()=>{Xt=!0,_t.call(Ve)},Rn.preventDefault=()=>{Xt=!0,An.call(Rn)},An.call(Rn),Qn(rn).queueMicrotask(()=>{Ve.preventDefault=_t,Rn.preventDefault=An,Xt||oae(Jt)?.click()})},onClick(Ve){if(h||H)return;Ve.preventDefault();let Jt=Y.current;Jt&&m1(Jt,Ve)}},k,ke,de,U,Ve=>Ne.getValidationProps(H,Ve)],stateAttributesMapping:Et}),Bt=jt.props.id;return Ee(()=>{if(!(!K||f||J===void 0||Bt===void 0))return K(J,Bt)},[K,f,J,Bt]),(0,h6.jsxs)(hO.Provider,{value:xt,children:[jt,!Be&&!G&&ne&&!f&&y!==void 0&&(0,h6.jsx)("input",{type:"hidden",form:l,name:ne,value:y,disabled:H}),(0,h6.jsx)("input",{...Ae,suppressHydrationWarning:!0})]})});var a_=R(Q(),1);var Oae=R(Q(),1);var bO=R(Ms(),1);var Nae=R(Q(),1);function v2(t){Nae.useEffect(t,Us)}var n_=null,E3t=globalThis.requestAnimationFrame,gO=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i<n.length;i+=1)n[i]?.(e)};request(e){let n=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(e){let n=e-this.startId;n<0||n>=this.callbacks.length||this.callbacks[n]!==null&&(this.callbacks[n]=null,this.callbacksCount-=1)}},r_=new gO;var Pc=class t{static create(){return new t}static request(e){return r_.request(e)}static cancel(e){return r_.cancel(e)}currentId=n_;request(e){this.cancel(),this.currentId=r_.request(()=>{this.currentId=n_,e()})}cancel=()=>{this.currentId!==n_&&(r_.cancel(this.currentId),this.currentId=n_)};disposeEffect=()=>this.cancel};function Ol(){let t=Vn(Pc.create).current;return v2(t.disposeEffect),t}function _u(t){return t==null?t:"current"in t?t.current:t}var i_="data-starting-style",Pae="data-ending-style";var o_=null;function HOe(t){if(!o_){let e=[];o_=e,queueMicrotask(()=>{o_=null,bO.flushSync(()=>{for(let n of e)n()})})}o_.push(t)}function jc(t,e=!1,n=!1){let r=Ol();return Pe((i,o=null)=>{r.cancel();let a=_u(t);if(a==null)return;let s=a,l=()=>{if(!n){bO.flushSync(i);return}HOe(()=>{o?.aborted||i()})};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function c(){Promise.all(s.getAnimations().map(u=>u.finished)).then(()=>{o?.aborted||l()},()=>{if(o?.aborted)return;if(s.getAnimations().some(d=>d.pending||d.playState!=="finished")){c();return}l()})}if(e){let u=i_;if(!s.hasAttribute(u)){r.request(c);return}let d=new MutationObserver(()=>{s.hasAttribute(u)||(d.disconnect(),c())});d.observe(s,{attributes:!0,attributeFilter:[u]}),o?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}r.request(c)})}function Ro(t){let{enabled:e=!0,open:n,ref:r,batch:i=!1,onComplete:o}=t,a=Pe(o),s=jc(r,n,i);Oae.useEffect(()=>{if(!e)return;let l=new AbortController;return s(a,l.signal),()=>{l.abort()}},[e,n,a,s])}var yO=R(Q(),1);function Oc(t,e=!1,n=!1,r=!1){let[i,o]=yO.useState(t&&e?"idle":void 0),[a,s]=yO.useState(t&&!r);return t&&!a&&(s(!0),o("starting")),!t&&a&&i!=="ending"&&!n&&o("ending"),!t&&!a&&i==="ending"&&o(void 0),Ee(()=>{if(!t&&a&&i!=="ending"&&n){let l=Pc.request(()=>{o("ending")});return()=>{Pc.cancel(l)}}},[t,a,i,n]),Ee(()=>{if(!t||e)return;let l=Pc.request(()=>{o(void 0)});return()=>{Pc.cancel(l)}},[e,t]),Ee(()=>{if(!t||!e)return;t&&a&&i!=="idle"&&o("starting");let l=Pc.request(()=>{o("idle")});return()=>{Pc.cancel(l)}},[e,t,a,i]),{mounted:a,setMounted:s,transitionStatus:i}}var GOe={[i_]:""},UOe={[Pae]:""},Dc={transitionStatus(t){return t==="starting"?GOe:t==="ending"?UOe:null}};var Dae=a_.forwardRef(function(e,n){let{render:r,className:i,style:o,keepMounted:a=!1,...s}=e,l=Rae(),c=l.checked||l.indeterminate,{mounted:u,transitionStatus:d,setMounted:p}=Oc(c),m=a_.useRef(null),f={...l,transitionStatus:d};Ro({batch:!0,enabled:!c,open:c,ref:m,onComplete(){c||p(!1)}});let x={...GC(l),...Dc},g=a||u,y=We("span",e,{ref:[n,m],state:f,stateAttributesMapping:x,props:s});return g?y:null});function Zs(...t){return t.filter(Boolean).join(" ")}var l_=R(ee(),1);function Bae(t){let e=(0,Fae.c)(9),{checked:n,className:r}=t,i=n&&"is-checked",o;e[0]!==r||e[1]!==i?(o=Zs(r,i,"cmux-markdown-checkbox"),e[0]=r,e[1]=i,e[2]=o):o=e[2];let a;e[3]!==n?(a=n?(0,l_.jsx)("svg",{className:"cv-checkbox__check",viewBox:"0 0 14 14","aria-hidden":"true",focusable:"false",children:(0,l_.jsx)("path",{d:"M3 7.2 5.7 10 11 4.3"})}):null,e[3]=n,e[4]=a):a=e[4];let s;return e[5]!==n||e[6]!==o||e[7]!==a?(s=(0,l_.jsx)(s_.Root,{checked:n,readOnly:!0,className:o,children:a}),e[5]=n,e[6]=o,e[7]=a,e[8]=s):s=e[8],s}var kt=R(ee(),1),b6=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,VOe=32,zae=/^\[\^([\w-]+)\]:\s*(.*)$/;function Wae(t){let e=Roe(t.replace(/\r\n?/g,` +$$`,l;return e[2]!==s?(l=(0,i6.jsx)("pre",{className:"cv-math-display cv-math-source",children:s}),e[2]=s,e[3]=l):l=e[3],l}let o;e[4]!==i?(o={__html:i},e[4]=i,e[5]=o):o=e[5];let a;return e[6]!==o||e[7]!==n?(a=(0,i6.jsx)("div",{className:"cv-math-display","data-tex":n,dangerouslySetInnerHTML:o}),e[6]=o,e[7]=n,e[8]=a):a=e[8],a}function Roe(t){let e=[],n=!1;for(let r=0;r<t.length;r++){let i=t[r];if(/^\s*```/.test(i)&&(n=!n),n){e.push(i);continue}let o=i.match(/^(\s*)\\\[(.*)$/);if(o){let a=[],s=o[2],l=r;for(;!/\\\]\s*$/.test(s)&&l+1<t.length;)a.push(s),s=t[++l];let c=[...a,s.replace(/\\\]\s*$/,"")].map(d=>d.trim()).filter(Boolean).join(" "),u=l===r&&/^[A-Za-z'’,]+(?:\s+[A-Za-z'’,]+){2,}[.!?:]?$/.test(c);if(/\\\]\s*$/.test(s)&&!u){e.push(`${o[1]}$$${c}$$`),r=l;continue}}e.push(i.replace(/(`+)[^`]*?\1|\\\((.+?)\\\)/g,(a,s,l)=>s?a:`$${l.trim()}$`))}return e}var jC=R(qe(),1);var Ic=class extends Error{code;details;retryable;origin;constructor(e,n=we("error.requestFailed")){super(typeof e?.userMessage=="string"?e.userMessage:n),this.name="NativeError",this.code=typeof e?.code=="string"?e.code:void 0,this.details=e?.details,this.retryable=typeof e?.retryable=="boolean"?e.retryable:void 0,this.origin=e?.origin==="native"||e?.origin==="session_host"?e.origin:void 0}};function o6(t,e,n=!1,r){let i=new Error(e);return i.name="PageError",i.code=t,i.retryable=n,r!==void 0&&(i.details=r),i}function Aoe(t){return t instanceof Error&&typeof t.code=="string"}var oje="__cmuxPageReceive",Gj=class{constructor(e,n=globalThis){this.handler=e;n[oje]=r=>this.receive(r)}handler;nextId=1;listeners=new Map;lastSeq=new Map;handlers=new Map;async call(e,n,r){let i=r?.signal,o=()=>o6("cmux.op.cancelled","the caller cancelled the op",!0,r?.opid?{opid:r.opid}:void 0);if(i?.aborted)throw o();let a=r?.opid===void 0?{t:"call",id:this.nextId++,op:e,params:n}:{t:"call",id:this.nextId++,op:e,params:n,opid:r.opid},s=this.post(a);return i?await new Promise((l,c)=>{let u=()=>{this.handler.postMessage({t:"cancel",id:a.id}).catch(()=>{}),c(o())};i.addEventListener("abort",u,{once:!0}),s.then(d=>{i.removeEventListener("abort",u),i.aborted||l(d)},d=>{i.removeEventListener("abort",u),i.aborted||c(d)})}):await s}async subscribe(e,n,r){let i=r?{t:"sub",id:this.nextId++,stream:e,filter:r}:{t:"sub",id:this.nextId++,stream:e},a=(await this.post(i))?.sub;if(typeof a!="number")throw o6("cmux.protocol.invalid_result",`subscribe ${e}: no sub id`);return this.listeners.set(a,n),()=>{this.listeners.delete(a)&&(this.lastSeq.delete(a),this.handler.postMessage({t:"unsub",sub:a}).catch(()=>{}))}}handle(e,n){return this.handlers.set(e,n),()=>{this.handlers.get(e)===n&&this.handlers.delete(e)}}async post(e){let n;try{n=await this.handler.postMessage(e)}catch(i){throw o6("cmux.protocol.closed",i instanceof Error?i.message:String(i),!0)}let r=n;if(r?.t==="ok"&&r.id===e.id)return r.value;if(r?.t==="err"){let i=r;throw o6(i.code??"cmux.protocol.error",i.message??"request failed",i.retryable??!1,i.details)}throw o6("cmux.protocol.invalid_result","malformed reply")}receive(e){let n=e;if(n?.t==="ev"){let{sub:r,seq:i,data:o,opid:a}=n,s=this.listeners.get(r);if(!s||i<=(this.lastSeq.get(r)??0))return;this.lastSeq.set(r,i),s(o,i,typeof a=="string"?{opid:a}:{});return}if(n?.t==="call"){let{id:r,op:i,params:o}=n;this.answer(r,i,o)}}async answer(e,n,r){let i=this.handlers.get(n),o;if(!i)o={t:"err",id:e,code:"cmux.protocol.unknown_op",message:n};else try{o={t:"ok",id:e,value:await i(r)??null}}catch(a){o={t:"err",id:e,code:"cmux.page.failed",message:a instanceof Error?a.message:String(a)}}await this.handler.postMessage(o).catch(()=>{})}};function aje(t="cmuxPage",e=globalThis){let r=e.webkit?.messageHandlers?.[t];return r&&typeof r.postMessage=="function"?r:null}function $oe(t){let e=aje();return e?new Gj(e):t?t():null}var Ioe=0,a6=1,$0=3,sje=new Set(["transport.closed","transport.stale_connection"]),Uj=new Map;function Vj(t){!t||typeof t.connection!="number"||Uj.get(t.connection)?.receive(t)}function lje(){let t=window;t.cmuxAcpmuxTransport||(t.cmuxAcpmuxTransport={receive:Vj})}var _C=class{constructor(e=Nc){this.post=e;lje(),this.post("transport.open").then(n=>{let r=n?.connection;if(typeof r!="number")return this.failOpen();if(this.readyState===$0){this.post("transport.close",{connection:r}).catch(()=>{});return}this.connection=r,Uj.set(r,this),this.readyState=a6,this.onopen?.(new Event("open"))},()=>this.failOpen())}post;static CONNECTING=Ioe;static OPEN=a6;static CLOSED=$0;readyState=Ioe;onopen=null;onmessage=null;onerror=null;onclose=null;closeError;connection;outbox=[];flushQueued=!1;send(e){if(this.readyState!==a6)throw new DOMException("The acpmux transport is not open","InvalidStateError");this.outbox.push(e),!this.flushQueued&&(this.flushQueued=!0,queueMicrotask(()=>this.flush()))}close(){if(this.readyState===$0)return;let e=this.connection;this.finish({code:1e3,reason:"",wasClean:!0}),e!==void 0&&this.post("transport.close",{connection:e}).catch(()=>{})}receive(e){for(let n of e.frames??[]){if(this.readyState!==a6)return;this.onmessage?.({data:n})}e.closed&&(this.closeError=e.closed.error,this.finish({code:e.closed.code,reason:e.closed.reason,wasClean:e.closed.code===1e3}))}flush(){this.flushQueued=!1;let e=this.outbox;this.outbox=[];let n=this.connection;!e.length||n===void 0||this.readyState!==a6||this.post("transport.send",{connection:n,frames:e}).catch(r=>{r?.code&&sje.has(r.code)&&this.finish({code:1006,reason:r.code,wasClean:!1})})}failOpen(){this.readyState!==$0&&(this.readyState=$0,this.onerror?.(new Event("error")),this.onclose?.({code:1006,reason:"",wasClean:!1}))}finish(e){this.readyState!==$0&&(this.readyState=$0,this.connection!==void 0&&Uj.delete(this.connection),this.outbox=[],this.onclose?.(e))}};var Poe=R(Q(),1),SC={show:"always",maxRows:5,scope:"turn"},Noe={min:1,max:50};function cje(t){let e=t&&typeof t=="object"?t:{},n=e.show==="collapsed"||e.show==="never"?e.show:SC.show,r=e.scope==="session"?"session":SC.scope,i=e.maxRows,o=typeof i=="number"&&Number.isInteger(i)&&i>=Noe.min&&i<=Noe.max?i:SC.maxRows;return{show:n,maxRows:o,scope:r}}var s6=SC,Zj=new Set;function Wj(t){let e=cje(t);if(!(e.show===s6.show&&e.maxRows===s6.maxRows&&e.scope===s6.scope)){s6=e;for(let n of Zj)n()}}function Kj(){return(0,Poe.useSyncExternalStore)(dje,uje)}function uje(){return s6}function dje(t){return Zj.add(t),()=>Zj.delete(t)}typeof window<"u"&&(window.cmuxAcpmuxEditedFiles=Wj);var pje="cmux.agent.host.events",mje="acpmux-focus-location",fje={ready:"handshake","chat.persistSession":"session.persist"};function hje(t){return`cmux.agent.${fje[t]??t}`}var joe=null;function LC(){return joe??=$oe(),joe}async function Doe(t,e,n={}){try{return await t.call(hje(e),n)}catch(r){if(!Aoe(r))throw new Ic(void 0,String(r));if(r.code==="cmux.protocol.unknown_op"||r.code==="cmux.protocol.invalid_params")throw new Ic({code:"native.invalid_request",origin:"native",userMessage:r.message});if(r.code.startsWith("cmux.protocol."))throw new Ic({userMessage:r.message});let i=r.details;throw new Ic({code:r.code,userMessage:r.message,retryable:r.retryable,origin:i?.origin,details:i?.details})}}function gje(t){let e=window.cmuxAcpmuxBridge,n=t.value;switch(t.kind){case"theme":{let r=t.value;window.cmuxTheme?.apply(r.web),r.agent&&e?.applyTheme(r.agent);return}case"shortcuts":return e?.applyShortcuts?.(n);case"preview":return e?.applyPreview?.(t.value===!0);case"editedFiles":return Wj(t.value);case"customization":return e?.applyCustomization(n);case"dictation":return e?.dictation?.(n);case"revealTurn":return e?.revealTurn?.(String(t.value));case"command":return e?.command?.(String(t.value));case"focusLocation":window.dispatchEvent(new Event(mje));return;case"transport":return Vj(t.value)}}var Ooe=new WeakSet;async function Foe(t){Ooe.has(t)||(Ooe.add(t),await t.subscribe(pje,e=>gje(e)))}function Nc(t,e={}){let n=LC();if(n)return Doe(n,t,e);let r=window.webkit?.messageHandlers?.agentSession;return r?Promise.resolve(r.postMessage({id:crypto.randomUUID(),method:t,params:e})).then(i=>{if(!i.ok)throw new Ic(i.error);return i.value}):Promise.reject(new Ic({code:"native.not_connected",origin:"native"},we("error.nativeUnavailable")))}var bje=Nc;function vd(t,e){return Promise.resolve().then(()=>bje(t,e)).catch(()=>{})}var Jj=R(qe(),1),AC=R(Q(),1);var Boe=64,yje=2e3,p2=new Map,m2=new Map,MC=new Set,EC={outsideRoots:"confirm",remoteImages:"click"},TC=[],RC=[],Xj=!1,Yj=!1,zoe=0,Qj=new Set;function xje(){zoe+=1;for(let t of Qj)t()}function wje(){Xj=!1;let t=!Yj;for(Yj=!0;t||TC.length||RC.length;){t=!1;let e=TC.splice(0,Boe),n=RC.splice(0,Boe);vd("link.inspect",{paths:e,urls:n}).then(r=>{let i=r??{};for(let o of e)p2.set(o,i.paths?.[o]??null),MC.delete(o);for(let o of n)m2.set(o,i.sites?.[o]??null);i.policy&&(EC={...EC,...i.policy}),xje()})}}function eO(t,e){p2.size+m2.size>yje&&(p2.clear(),MC.clear(),m2.clear()),t!==void 0&&!p2.has(t)&&(p2.set(t,null),MC.add(t),TC.push(t)),e!==void 0&&!m2.has(e)&&(m2.set(e,null),RC.push(e)),!Xj&&(!Yj||TC.length||RC.length)&&(Xj=!0,queueMicrotask(wje))}var f2=()=>zoe;function tO(t){return Qj.add(t),()=>Qj.delete(t)}function $C(t){let e=(0,Jj.c)(7);(0,AC.useSyncExternalStore)(tO,f2,f2),eO(t);let n;e[0]!==t?(n=p2.get(t)??void 0,e[0]=t,e[1]=n):n=e[1];let r;e[2]!==t?(r=MC.has(t),e[2]=t,e[3]=r):r=e[3];let i=!r,o;return e[4]!==n||e[5]!==i?(o={info:n,answered:i,policy:EC},e[4]=n,e[5]=i,e[6]=o):o=e[6],o}function IC(t){let e=(0,Jj.c)(2);(0,AC.useSyncExternalStore)(tO,f2,f2),t&&eO(void 0,t);let n;return e[0]!==t?(n=t?m2.get(t)??void 0:void 0,e[0]=t,e[1]=n):n=e[1],n}function qoe(){return(0,AC.useSyncExternalStore)(tO,f2,f2),eO(),EC}function h2(t){if(/^file:\/\//i.test(t))try{let n=new URL(t);return n.host&&n.host!=="localhost"?void 0:NC(decodeURIComponent(n.pathname))}catch{return}return t.startsWith("//")||t.startsWith("#")||t.startsWith("?")||/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t)?void 0:NC(kje(t.split(/[?#]/)[0]))||void 0}function Hoe(t){let e=t.trim();if(/^file:\/\//i.test(e)){let r=h2(e);return r&&nO(r)?r:void 0}if(!/^(?:~|\.{1,2})?\/[^\t\n`'"<>|*?$;&(){}[\]]+$/.test(e)||/ -/.test(e))return;let n=NC(e);return nO(n)?n:void 0}function nO(t){if(!/^(?:~|\.{1,2})?\//.test(t))return!1;let e=/^\.{1,2}\//.test(t),n=t.split("/").filter(r=>r&&r!=="~"&&r!=="."&&r!=="..");return n.length<(e?1:2)?!1:t.endsWith("/")||/\.[A-Za-z0-9]{1,12}$/.test(n.at(-1))}var vje=/(?<![\w/.:~@-])(?:(file:\/\/(?:localhost)?\/[^\s<>()"'`]+)|((?:~|\.{1,2})?\/(?:[\w.@+-]+\/)+(?:[\w@+-][\w.@+-]*\.[A-Za-z0-9]{1,12}(?::\d+(?::\d+)?)?(?![\w/])|(?![\w@+-]|\.\w)))|(https?:\/\/[A-Za-z0-9][^\s<>()"'`]*))/g;function Goe(t){if(!t.includes("/"))return[];let e=[];for(let n of t.matchAll(vje)){let r=n[0];(n[1]||n[3])&&(r=r.replace(/[.,;:!?*_]+$/,""));let i=n.index,o=i+r.length;if(n[3]){/^https?:\/\/[^/?#]*[A-Za-z0-9]/.test(r)&&e.push({kind:"url",start:i,end:o,value:r});continue}let a=n[1]?h2(r):NC(r);a&&nO(a)&&e.push({kind:"path",start:i,end:o,value:r,path:a})}return e}function NC(t){return t.replace(/:\d+(?::\d+)?$/,"")}function kje(t){try{return decodeURIComponent(t)}catch{return t}}var Cje=/\/(?:\.ssh|\.gnupg|Library\/Keychains|\.aws|\.config\/gh)(?:\/|$)/;function PC(t){let e=(t.replace(/\/+$/,"").split("/").at(-1)??"").toLowerCase();return Cje.test(t)||e.endsWith(".pem")||e.endsWith(".key")||e.startsWith(".env")}function l6(t){return t.replace(/\/+$/,"").split("/").at(-1)||t}var xa=R(ee(),1);function OC(t){let e=(0,jC.c)(6),{path:n,label:r,written:i}=t;if(PC(n)){let a=i??r??n,s;return e[0]!==a?(s=(0,xa.jsx)("span",{className:"cv-chip-plain",children:a}),e[0]=a,e[1]=s):s=e[1],s}let o;return e[2]!==r||e[3]!==n||e[4]!==i?(o=(0,xa.jsx)(_je,{path:n,label:r,written:i}),e[2]=r,e[3]=n,e[4]=i,e[5]=o):o=e[5],o}function _je(t){let e=(0,jC.c)(28),{path:n,label:r,written:i}=t,o=ve(),{info:a,policy:s}=$C(n);if(a?.place==="denied"||a?.place==="missing"||a?.place==="outside"&&s.outsideRoots==="text"){let w=i??r??n,v;return e[0]!==w?(v=(0,xa.jsx)("span",{className:"cv-chip-plain",children:w}),e[0]=w,e[1]=v):v=e[1],v}let c=a?.place==="outside",u;e[2]!==a?.folder||e[3]!==n?(u=a?.folder??n.endsWith("/"),e[2]=a?.folder,e[3]=n,e[4]=u):u=e[4];let d=u,p=`cv-chip is-path${c?" is-outside":""}`,m;e[5]!==c||e[6]!==n||e[7]!==o?(m=c?`${n} +${o("chip.outsideProject")}`:n,e[5]=c,e[6]=n,e[7]=o,e[8]=m):m=e[8];let f;e[9]!==n?(f=()=>{vd("link.openPath",{path:n})},e[9]=n,e[10]=f):f=e[10];let h;e[11]!==d?(h=d?(0,xa.jsx)(Gre,{size:15,className:"cv-chip__icon"}):(0,xa.jsx)(Uk,{size:15,className:"cv-chip__icon"}),e[11]=d,e[12]=h):h=e[12];let x;e[13]!==r||e[14]!==n?(x=r??l6(n),e[13]=r,e[14]=n,e[15]=x):x=e[15];let g;e[16]!==x?(g=(0,xa.jsx)("span",{className:"cv-chip__label",children:x}),e[16]=x,e[17]=g):g=e[17];let y;e[18]!==c?(y=c&&(0,xa.jsx)(zk,{size:11,className:"cv-chip__lock"}),e[18]=c,e[19]=y):y=e[19];let b;return e[20]!==n||e[21]!==p||e[22]!==m||e[23]!==f||e[24]!==h||e[25]!==g||e[26]!==y?(b=(0,xa.jsxs)("button",{type:"button",className:p,title:m,"data-path":n,onClick:f,children:[h,g,y]}),e[20]=n,e[21]=p,e[22]=m,e[23]=f,e[24]=h,e[25]=g,e[26]=y,e[27]=b):b=e[27],b}function rO(t){let e=(0,jC.c)(9),{href:n,icon:r,children:i}=t,o=IC(n),a;e[0]!==r||e[1]!==o?(a=o?.icon?(0,xa.jsx)("img",{className:"cv-chip__icon cv-chip__favicon",src:o.icon,alt:"",width:14,height:14}):r??(0,xa.jsx)(Rl,{size:15,strokeWidth:1.1,className:"cv-chip__icon"}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let s=a,l;e[3]!==i?(l=(0,xa.jsx)("span",{className:"cv-chip__label",children:i}),e[3]=i,e[4]=l):l=e[4];let c;return e[5]!==n||e[6]!==s||e[7]!==l?(c=(0,xa.jsxs)("a",{className:"cv-link cv-chip is-web",href:n,rel:"noreferrer",title:n,children:[s,l]}),e[5]=n,e[6]=s,e[7]=l,e[8]=c):c=e[8],c}function iO(t,e){let n=Goe(t);if(!n.length)return[t];let r=[],i=0;return n.forEach((o,a)=>{o.start>i&&r.push(t.slice(i,o.start)),r.push(o.kind==="path"?(0,xa.jsx)(OC,{path:o.path,written:o.value},`${e}-${a}`):(0,xa.jsx)(rO,{href:o.value,children:o.value},`${e}-${a}`)),i=o.end}),i<t.length&&r.push(t.slice(i)),r}var c6=R(qe(),1),Voe=R(Q(),1);var Fr=R(ee(),1);function Sje(t){let e=h2(t);if(e)return e;if(!(/^[A-Za-z][A-Za-z0-9+.-]*:/.test(t)||t.startsWith("//")||t.startsWith("#")||t.startsWith("?")))return t.split(/[?#]/)[0]||void 0}function Lje(t){try{let e=new URL(t);return e.protocol==="https:"&&!e.username&&!e.password?e.host:void 0}catch{return}}var Uoe=new Map,oO=new Set;function Zoe(t,e){let n=(0,c6.c)(7),r;n[0]!==t?(r=()=>{let c=Uoe.get(t);return c?{kind:"shown",src:c}:{kind:"idle"}},n[0]=t,n[1]=r):r=n[1];let[i,o]=(0,Voe.useState)(r),a;n[2]!==t?(a=()=>{o({kind:"loading"}),vd("image.load",{src:t}).then(c=>{let u=c?.src;typeof u=="string"&&u.startsWith("data:image/")?(Uoe.set(t,u),o({kind:"shown",src:u})):(oO.delete(t),o({kind:"failed"}))})},n[2]=t,n[3]=a):a=n[3];let s=a;e&&i.kind==="idle"&&!oO.has(t)&&(oO.add(t),queueMicrotask(s));let l;return n[4]!==s||n[5]!==i?(l={state:i,load:s},n[4]=s,n[5]=i,n[6]=l):l=n[6],l}function Woe(t){let e=(0,c6.c)(13),{src:n,alt:r,fallback:i}=t,o;e[0]!==n?(o=Sje(n),e[0]=n,e[1]=o):o=e[1];let a=o,s;e[2]!==a||e[3]!==n?(s=a?void 0:Lje(n),e[2]=a,e[3]=n,e[4]=s):s=e[4];let l=s;if(!a&&!l){let u;return e[5]!==i?(u=(0,Fr.jsx)(Fr.Fragment,{children:i}),e[5]=i,e[6]=u):u=e[6],u}let c;return e[7]!==r||e[8]!==i||e[9]!==l||e[10]!==a||e[11]!==n?(c=a?(0,Fr.jsx)(Mje,{src:n,path:a,alt:r,fallback:i}):(0,Fr.jsx)(Eje,{src:n,alt:r,host:l,fallback:i}),e[7]=r,e[8]=i,e[9]=l,e[10]=a,e[11]=n,e[12]=c):c=e[12],c}function Mje(t){let e=(0,c6.c)(42),{src:n,path:r,alt:i,fallback:o}=t,a=ve(),{info:s,answered:l,policy:c}=$C(r),u=s?.place,d;e[0]!==r||e[1]!==u?(d=u==="denied"||PC(r),e[0]=r,e[1]=u,e[2]=d):d=e[2];let p=d,m=l&&!p&&u!=="outside"&&u!=="missing",{state:f}=Zoe(n,m);if(f.kind==="shown"){let T;return e[3]!==i||e[4]!==f.src?(T=(0,Fr.jsx)("img",{className:"cv-img",src:f.src,alt:i}),e[3]=i,e[4]=f.src,e[5]=T):T=e[5],T}if(p){let T;e[6]!==i||e[7]!==r?(T=i||l6(r),e[6]=i,e[7]=r,e[8]=T):T=e[8];let M;return e[9]!==T?(M=(0,Fr.jsx)("span",{className:"cv-chip-plain",children:T}),e[9]=T,e[10]=M):M=e[10],M}let h=u==="outside";if(!h&&u!=="missing"&&f.kind!=="failed"){let T;return e[11]!==o?(T=(0,Fr.jsx)(Fr.Fragment,{children:o}),e[11]=o,e[12]=T):T=e[12],T}let x=h?c.outsideRoots!=="text":u!=="missing",g=`cv-image-file${h?" is-outside":""}`,y;e[13]!==h||e[14]!==r||e[15]!==a?(y=h?`${r} +${a("chip.outsideProject")}`:r,e[13]=h,e[14]=r,e[15]=a,e[16]=y):y=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=(0,Fr.jsx)(L0,{size:16,className:"cv-chip__icon"}),e[17]=b):b=e[17];let w;e[18]!==i?(w=i&&(0,Fr.jsx)("span",{className:"cv-image-file__alt",children:i}),e[18]=i,e[19]=w):w=e[19];let v;e[20]!==r?(v=l6(r),e[20]=r,e[21]=v):v=e[21];let k;e[22]!==v?(k=(0,Fr.jsx)("span",{className:"cv-image-file__name",children:v}),e[22]=v,e[23]=k):k=e[23];let _;e[24]!==h?(_=h&&(0,Fr.jsx)(zk,{size:11,className:"cv-chip__lock"}),e[24]=h,e[25]=_):_=e[25];let L;e[26]!==h||e[27]!==a?(L=!h&&(0,Fr.jsx)("span",{className:"cv-image-file__note",children:a("image.unavailable")}),e[26]=h,e[27]=a,e[28]=L):L=e[28];let S;e[29]!==x||e[30]!==r||e[31]!==a?(S=x&&(0,Fr.jsx)("button",{type:"button",className:"cv-image-file__open",onClick:()=>{vd("link.openPath",{path:r})},children:a("image.open")}),e[29]=x,e[30]=r,e[31]=a,e[32]=S):S=e[32];let C;return e[33]!==r||e[34]!==S||e[35]!==g||e[36]!==y||e[37]!==w||e[38]!==k||e[39]!==_||e[40]!==L?(C=(0,Fr.jsxs)("span",{className:g,title:y,"data-path":r,children:[b,w,k,_,L,S]}),e[33]=r,e[34]=S,e[35]=g,e[36]=y,e[37]=w,e[38]=k,e[39]=_,e[40]=L,e[41]=C):C=e[41],C}function Eje(t){let e=(0,c6.c)(16),{src:n,alt:r,host:i,fallback:o}=t,a=ve(),s=qoe(),{state:l,load:c}=Zoe(n,s.remoteImages==="always");if(l.kind==="shown"){let f;return e[0]!==r||e[1]!==l.src?(f=(0,Fr.jsx)("img",{className:"cv-img",src:l.src,alt:r}),e[0]=r,e[1]=l.src,e[2]=f):f=e[2],f}if(s.remoteImages==="never"){let f;return e[3]!==o?(f=(0,Fr.jsx)(Fr.Fragment,{children:o}),e[3]=o,e[4]=f):f=e[4],f}let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,Fr.jsx)(L0,{size:16,className:"cv-chip__icon"}),e[5]=u):u=e[5];let d;e[6]!==i?(d=(0,Fr.jsx)("span",{className:"cv-image-placeholder__host",children:i}),e[6]=i,e[7]=d):d=e[7];let p;e[8]!==c||e[9]!==l.kind||e[10]!==a?(p=l.kind==="failed"?(0,Fr.jsx)("span",{className:"cv-image-placeholder__note",children:a("image.unavailable")}):(0,Fr.jsx)("button",{type:"button",className:"cv-image-placeholder__load",disabled:l.kind==="loading",onClick:c,children:a("image.load")}),e[8]=c,e[9]=l.kind,e[10]=a,e[11]=p):p=e[11];let m;return e[12]!==n||e[13]!==d||e[14]!==p?(m=(0,Fr.jsxs)("span",{className:"cv-image-placeholder",title:n,children:[u,d,p]}),e[12]=n,e[13]=d,e[14]=p,e[15]=m):m=e[15],m}var Fae=R(qe(),1);var s_={};fn(s_,{Indicator:()=>Dae,Root:()=>Iae});var Cu=R(Q(),1);function Yt(){}var Us=Object.freeze([]),xn=Object.freeze({});var I0=R(Q(),1);function kd({controlled:t,default:e,name:n,state:r="value"}){let{current:i}=I0.useRef(t!==void 0),[o,a]=I0.useState(e),s=i&&t!==void 0?t:o,l=I0.useCallback(c=>{i||a(c)},[]);return[s,l]}var Koe=R(Q(),1),Tje=()=>{},Ee=typeof document<"u"?Koe.useLayoutEffect:Tje;var Yoe=R(Q(),1),Xoe={};function Vn(t,e){let n=Yoe.useRef(Xoe);return n.current===Xoe&&(n.current=t(e)),n}function wa(t,e,n,r){let i=Vn(Joe).current;return Rje(i,t,e,n,r)&&eae(i,[t,e,n,r]),i.callback}function Qoe(t){let e=Vn(Joe).current;return Aje(e,t)&&eae(e,t),e.callback}function Joe(){return{callback:null,cleanup:null,refs:[]}}function Rje(t,e,n,r,i){return t.refs[0]!==e||t.refs[1]!==n||t.refs[2]!==r||t.refs[3]!==i}function Aje(t,e){return t.refs.length!==e.length||t.refs.some((n,r)=>n!==e[r])}function eae(t,e){if(t.refs=e,e.every(n=>n==null)){t.callback=null;return}t.callback=n=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),n!=null){let r=Array(e.length).fill(null);for(let i=0;i<e.length;i+=1){let o=e[i];if(o!=null)switch(typeof o){case"function":{let a=o(n);typeof a=="function"&&(r[i]=a);break}case"object":{o.current=n;break}default:}}t.cleanup=()=>{for(let i=0;i<e.length;i+=1){let o=e[i];if(o!=null)switch(typeof o){case"function":{let a=r[i];typeof a=="function"?a():o(null);break}case"object":{o.current=null;break}default:}}}}}}var tae={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},g2={...tae,position:"fixed",top:0,left:0},b2={...tae,position:"absolute"};function DC(){return typeof window<"u"}function Di(t){return FC(t)?(t.nodeName||"").toLowerCase():"#document"}function Qn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _d(t){var e;return(e=(FC(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function FC(t){return DC()?t instanceof Node||t instanceof Qn(t).Node:!1}function ln(t){return DC()?t instanceof Element||t instanceof Qn(t).Element:!1}function Ln(t){return DC()?t instanceof HTMLElement||t instanceof Qn(t).HTMLElement:!1}function Cd(t){return!DC()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qn(t).ShadowRoot}function P0(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=Fi(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function nae(t){return/^(table|td|th)$/.test(Di(t))}function u6(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var $je=/transform|translate|scale|rotate|perspective|filter/,Ije=/paint|layout|strict|content/,N0=t=>!!t&&t!=="none",aO;function BC(t){let e=ln(t)?Fi(t):t;return N0(e.transform)||N0(e.translate)||N0(e.scale)||N0(e.rotate)||N0(e.perspective)||!zC()&&(N0(e.backdropFilter)||N0(e.filter))||$je.test(e.willChange||"")||Ije.test(e.contain||"")}function rae(t){let e=Pl(t);for(;Ln(e)&&!jl(e);){if(BC(e))return e;if(u6(e))return null;e=Pl(e)}return null}function zC(){return aO==null&&(aO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),aO}function jl(t){return/^(html|body|#document)$/.test(Di(t))}function Fi(t){return Qn(t).getComputedStyle(t)}function d6(t){return ln(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pl(t){if(Di(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Cd(t)&&t.host||_d(t);return Cd(e)?e.host:e}function iae(t){let e=Pl(t);return jl(e)?(t.ownerDocument||t).body:Ln(e)&&P0(e)?e:iae(e)}function vu(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=iae(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),a=Qn(i);if(o){let s=qC(a);return e.concat(a,a.visualViewport||[],P0(i)?i:[],s&&n?vu(s):[])}else return e.concat(i,vu(i,[],n))}function qC(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Wt(t){return t?.ownerDocument||document}function oae(t){if(!t)return null;for(let e of t.elements){let n=e.tagName;if(n==="BUTTON"||n==="INPUT"){let r=e;if(r.type==="submit")return r}}return null}var aae="data-valid",sae="data-invalid";var lae={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},sO={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},cae={disabled:!1,...sO},HC={valid(t){return t===null?null:t?{[aae]:""}:{[sae]:""}}};var uae="data-checked",dae="data-unchecked";function GC(t){return{checked(e){return t.indeterminate?{}:e?{[uae]:""}:{[dae]:""}},...HC}}function f1(t,e,{detail:n=0}={}){t.dispatchEvent(new(Qn(t)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}function jje(t,e){return function(r,...i){let o=new URL(t);return o.searchParams.set("code",r.toString()),i.forEach(a=>o.searchParams.append("args[]",a)),`${e} error #${r}; visit ${o} for the full message.`}}var Oje=jje("https://base-ui.com/production-error","Base UI"),Ft=Oje;var h1=R(Q(),1);var mae=R(Q(),1);var pae=R(Q(),1),Dje=parseInt(pae.version,10);function y2(t){return Dje>=t}function lO(t){if(!mae.isValidElement(t))return null;let e=t,n=e.props;return(y2(19)?n?.ref:e.ref)??null}function p6(t,e){if(t&&!e)return t;if(!t&&e)return e;if(t||e)return{...t,...e}}function fae(t,e){let n={};for(let r in t){let i=t[r];if(e?.hasOwnProperty(r)){let o=e[r](i);o!=null&&Object.assign(n,o);continue}i===!0?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function hae(t,e){return typeof t=="function"?t(e):t}function gae(t,e){return typeof t=="function"?t(e):t}var cO={};function Bi(t,e,n,r,i){if(!n&&!r&&!i&&!t)return UC(e);let o=UC(t);return e&&(o=m6(o,e)),n&&(o=m6(o,n)),r&&(o=m6(o,r)),i&&(o=m6(o,i)),o}function bae(t){if(t.length===0)return cO;if(t.length===1)return UC(t[0]);let e=UC(t[0]);for(let n=1;n<t.length;n+=1)e=m6(e,t[n]);return e}function UC(t){return uO(t)?{...xae(t,cO)}:Fje(t)}function m6(t,e){return uO(e)?xae(e,t):Bje(t,e)}function Fje(t){let e={...t};for(let n in e){let r=e[n];yae(n,r)&&(e[n]=wae(r))}return e}function Bje(t,e){if(!e)return t;for(let n in e){let r=e[n];switch(n){case"style":{t[n]=p6(t.style,r);break}case"className":{t[n]=dO(t.className,r);break}default:yae(n,r)?t[n]=zje(t[n],r):t[n]=r}}return t}function yae(t,e){let n=t.charCodeAt(0),r=t.charCodeAt(1),i=t.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof e=="function"||typeof e>"u")}function uO(t){return typeof t=="function"}function xae(t,e){return uO(t)?t(e):t??cO}function zje(t,e){return e?t?(...n)=>{let r=n[0];if(vae(r)){let o=r;f6(o);let a=e(...n);return o.baseUIHandlerPrevented||t?.(...n),a}let i=e(...n);return t?.(...n),i}:wae(e):t}function wae(t){return t&&((...e)=>{let n=e[0];return vae(n)&&f6(n),t(...e)})}function f6(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}function dO(t,e){return e?t?e+" "+t:e:t}function vae(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}var pO=R(Q(),1);function We(t,e,n={}){let r=e.render;n.enabled!==!1&&(r=Uje(r));let i=qje(e,n,r);if(n.enabled===!1)return null;let o=n.state??xn;return Vje(t,r,i,o)}function qje(t,e,n){let{className:r,style:i}=t,{state:o=xn,ref:a,props:s,stateAttributesMapping:l,enabled:c=!0}=e,u=c?hae(r,o):void 0,d=c?gae(i,o):void 0,p=c?fae(o,l):xn,m=c&&s?Hje(s):void 0,f=c?p6(p,m)??{}:xn;return typeof document<"u"&&(c?Array.isArray(a)?f.ref=Qoe([f.ref,lO(n),...a]):f.ref=wa(f.ref,lO(n),a):wa(null,null)),c?(u!==void 0&&(f.className=dO(f.className,u)),d!==void 0&&(f.style=p6(f.style,d)),f):xn}function Hje(t){return Array.isArray(t)?bae(t):Bi(void 0,t)}var Gje=Symbol.for("react.lazy");function Uje(t){if(t?.$$typeof!==Gje)return t;let e=h1.Children.toArray(t)[0];return h1.isValidElement(e)?e:t}function Vje(t,e,n,r){if(e){if(typeof e=="function")return e(n,r);let i=Bi(n,e.props);return i.ref=n.ref,h1.cloneElement(e,i)}if(t&&typeof t=="string")return Zje(t,n);throw new Error(Ft(8))}function Zje(t,e){return t==="button"?(0,pO.createElement)("button",{type:"button",...e,key:e.key}):t==="img"?(0,pO.createElement)("img",{alt:"",...e,key:e.key}):h1.createElement(t,e)}var VC=R(Q(),1);var Wje=R(Q(),1),h6={...Wje};var kae=0;function Kje(t,e="mui"){let[n,r]=VC.useState(t),i=t||n;return VC.useEffect(()=>{n==null&&(kae+=1,r(`${e}-${kae}`))},[n,e]),i}var Cae=h6.useId;function Ol(t,e){if(Cae!==void 0){let n=Cae();return t??(e?`${e}-${n}`:n)}return Kje(t,e)}function dr(t){return Ol(t,"base-ui")}var w2=R(Q(),1);var mO=h6.useInsertionEffect,Xje=mO&&mO!==h6.useLayoutEffect?mO:t=>t();function Pe(t){let e=Vn(Yje).current;return e.next=t,Xje(e.effect),e.trampoline}function Yje(){let t={next:void 0,callback:Qje,trampoline:(...e)=>t.callback?.(...e),effect:()=>{t.callback=t.next}};return t}function Qje(){}var ZC=R(Q(),1),Jje=ZC.createContext(void 0);function x2(t=!1){let e=ZC.useContext(Jje);if(e===void 0&&!t)throw new Error(Ft(16));return e}var _ae=R(Q(),1);function Sae(t){let{focusableWhenDisabled:e,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:o}=t,a=r&&e!==!1,s=r&&e===!1;return{props:_ae.useMemo(()=>{let c={onKeyDown(u){n&&e&&u.key!=="Tab"&&u.preventDefault()}};return r||(c.tabIndex=i,!o&&n&&(c.tabIndex=e?i:-1)),(o&&(e||a)||!o&&n)&&(c["aria-disabled"]=n),o&&(!e||s)&&(c.disabled=n),c},[r,n,e,a,s,o,i])}}function zi(t={}){let{disabled:e=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:o}=t,a=w2.useRef(null),s=x2(!0),l=o??s!==void 0,{props:c}=Sae({focusableWhenDisabled:n,disabled:e,composite:l,tabIndex:r,isNativeButton:i}),u=w2.useCallback(()=>{let m=a.current;fO(m)&&l&&e&&c.disabled===void 0&&m.disabled&&(m.disabled=!1)},[e,c.disabled,l]);Ee(u,[u]);let d=w2.useCallback((m={})=>{let{onClick:f,onMouseDown:h,onKeyUp:x,onKeyDown:g,onPointerDown:y,...b}=m;return Bi({onClick(w){if(e){w.preventDefault();return}f?.(w)},onMouseDown(w){e||h?.(w)},onKeyDown(w){if(e||(f6(w),g?.(w),w.baseUIHandlerPrevented))return;let v=w.target===w.currentTarget,k=w.currentTarget,_=fO(k),L=!i&&eOe(k),S=v&&(i?_:!L),C=w.key==="Enter",T=w.key===" ",M=k.getAttribute("role"),A=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(v&&l&&T){if(w.defaultPrevented&&A)return;w.preventDefault(),(!i||_)&&(w.preventBaseUIHandler(),f1(k,w));return}if(!S||i||!T&&!C){v&&L&&T&&w.preventDefault();return}w.defaultPrevented||(w.preventDefault(),C&&(w.preventBaseUIHandler(),f1(k,w)))},onKeyUp(w){if(!e){if(f6(w),x?.(w),w.target===w.currentTarget&&i&&l&&fO(w.currentTarget)&&w.key===" "){w.preventDefault();return}w.baseUIHandlerPrevented||w.target===w.currentTarget&&!i&&!l&&!w.defaultPrevented&&w.key===" "&&(w.preventBaseUIHandler(),f1(w.currentTarget,w))}},onPointerDown(w){if(e){w.preventDefault();return}y?.(w)}},i?{type:"button"}:{role:"button"},c,b)},[e,c,l,i]),p=Pe(m=>{a.current=m,u()});return{getButtonProps:d,buttonRef:p}}function fO(t){return Ln(t)&&t.tagName==="BUTTON"}function eOe(t){return Ln(t)&&t.tagName==="A"&&!!t.href}var WC=R(Q(),1);var hO={invalid:void 0,name:void 0,validityData:{state:lae,errors:[],error:"",value:"",initialValue:null},setValidityData:Yt,disabled:void 0,setTouched:Yt,setDirty:Yt,setFilled:Yt,setFocused:Yt,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:cae,registerFieldControl:Yt,validation:{getValidationProps:(t,e=xn)=>e,inputRef:{current:null},registeredInputs:new Map,registerInput:Yt,getInputControl:()=>null,commit:async()=>{},change:Yt}},gO=WC.createContext(hO);function Vs(t=!0){let e=WC.useContext(gO);if(e.setValidityData===Yt&&!t)throw new Error(Ft(28));return e}function KC(t,e,n,r,i=!0,o){let{registerFieldControl:a}=Vs(),s=Vn(()=>Symbol());Ee(()=>{let l=s.current;if(!i){a(l,void 0);return}a(l,{controlRef:t,getValue:r,id:e,name:o,value:n})},[t,i,r,e,o,a,s,n]),Ee(()=>{let l=s.current;return()=>{a(l,void 0)}},[a,s])}var XC=R(Q(),1),tOe=XC.createContext({disabled:!1});function Lae(){return XC.useContext(tOe)}var YC=R(Q(),1);var nOe=YC.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Yt,validationMode:"onSubmit",submitCountRef:{current:0}});function QC(){return YC.useContext(nOe)}var JC=R(Q(),1);var rOe=JC.createContext({controlId:void 0,registerControlId:Yt,resetControlId:Yt,labelId:void 0,setLabelId:Yt,messageIds:[],setMessageIds:Yt,getDescriptionProps:t=>t});function g1(){return JC.useContext(rOe)}var Mae=R(Q(),1);function Eae(t,e,n,r=!0,i){let[o,a]=Mae.useState(),s=dr(i?`${i}-label`:void 0),l=t??e??o;return Ee(()=>{let c=t||e||!r?void 0:iOe(n.current,s);o!==c&&a(c)}),l}function iOe(t,e){let n=oOe(t);if(n)return!n.id&&e&&(n.id=e),n.id||void 0}function oOe(t){if(!t)return;let e=t.parentElement;if(e&&e.tagName==="LABEL")return e;let n=t.id;if(n){let i=t.nextElementSibling;if(i&&i.htmlFor===n)return i}let r=t.labels;return r&&r[0]}var bO=R(Q(),1);function v2(t={}){let{id:e,enabled:n=!0}=t,{controlId:r,registerControlId:i,resetControlId:o}=g1(),a=dr(),s=Vn(()=>Symbol()),l=bO.useRef(!1),c=bO.useRef(!1),u=Pe(()=>{!l.current||i===Yt||(l.current=!1,i(s.current,void 0))});return Ee(()=>{if(!n||i===Yt){u();return}let d;if(e!==void 0)c.current=!0,d=e;else if(c.current)d=a;else{o();return}if(d===void 0){u();return}l.current=!0,i(s.current,d)},[e,n,i,o,a,s,u]),Ee(()=>u,[u]),(n?r:void 0)??e??a}var e_=R(Q(),1),aOe=e_.createContext(void 0);function Tae(){return e_.useContext(aOe)}var t_=R(Q(),1),yO=t_.createContext(void 0);function Rae(){let t=t_.useContext(yO);if(t===void 0)throw new Error(Ft(14));return t}var he={};fn(he,{cancelOpen:()=>NOe,chipRemovePress:()=>gOe,clearPress:()=>hOe,closePress:()=>mOe,closeWatcher:()=>MOe,decrementPress:()=>xOe,disabled:()=>jOe,drag:()=>AOe,escapeKey:()=>LOe,focusOut:()=>SOe,imperativeAction:()=>FOe,incrementPress:()=>yOe,initial:()=>DOe,inputBlur:()=>kOe,inputChange:()=>wOe,inputClear:()=>vOe,inputPaste:()=>COe,inputPress:()=>_Oe,itemPress:()=>pOe,keyboard:()=>TOe,linkPress:()=>fOe,listNavigation:()=>EOe,missing:()=>OOe,none:()=>sOe,outsidePress:()=>dOe,pointer:()=>ROe,scrub:()=>IOe,siblingOpen:()=>POe,swipe:()=>BOe,trackPress:()=>bOe,triggerFocus:()=>uOe,triggerHover:()=>cOe,triggerPress:()=>lOe,wheel:()=>$Oe,windowResize:()=>zOe});var sOe="none",lOe="trigger-press",cOe="trigger-hover",uOe="trigger-focus",dOe="outside-press",pOe="item-press",mOe="close-press",fOe="link-press",hOe="clear-press",gOe="chip-remove-press",bOe="track-press",yOe="increment-press",xOe="decrement-press",wOe="input-change",vOe="input-clear",kOe="input-blur",COe="input-paste",_Oe="input-press",SOe="focus-out",LOe="escape-key",MOe="close-watcher",EOe="list-navigation",TOe="keyboard",ROe="pointer",AOe="drag",$Oe="wheel",IOe="scrub",NOe="cancel-open",POe="sibling-open",jOe="disabled",OOe="missing",DOe="initial",FOe="imperative-action",BOe="swipe",zOe="window-resize";function Xe(t,e,n,r){let i=!1,o=!1,a=r??xn;return{reason:t,event:e??new Event("base-ui"),cancel(){i=!0},allowPropagation(){o=!0},get isCanceled(){return i},get isPropagationAllowed(){return o},trigger:n,...a}}function Aae(t,e,n){let r=n??xn;return{reason:t,event:e??new Event("base-ui"),...r}}var $ae=R(Q(),1);function ku(t,e){let n=$ae.useRef(t),r=Pe(e);Ee(()=>{n.current!==t&&r(n.current),n.current=t},[t,r])}var g6=R(ee(),1),qOe="data-parent",Iae=Cu.forwardRef(function(e,n){let{checked:r,className:i,defaultChecked:o=!1,"aria-labelledby":a,disabled:s=!1,form:l,id:c,indeterminate:u=!1,inputRef:d,name:p,onCheckedChange:m,parent:f=!1,readOnly:h=!1,render:x,required:g=!1,uncheckedValue:y,value:b,nativeButton:w=!1,style:v,...k}=e,{clearErrors:_}=QC(),{disabled:L,name:S,setDirty:C,setFilled:T,setFocused:M,setTouched:A,state:$,validationMode:N,validityData:F,validation:D}=Vs(),O=Lae(),{labelId:B,registerControlId:P,getDescriptionProps:U}=g1(),G=Tae(),j=G?.allValues===void 0?void 0:G.parent,V=j!==void 0,H=L||O.disabled||G?.disabled||s,ne=S??p,J=b??ne,W=dr(),ie=G?.registerControlId!==P,Z=v2({id:c||void 0,enabled:ie}),le=w?Z:W,se={};V&&(f?se=j.getParentProps():J!==void 0&&(se=j.getChildProps(J)));let{checked:ge=r,indeterminate:ce=u,onCheckedChange:be,...ke}=se,me=G?.value,Se=Cu.useRef(null),{getButtonProps:de,buttonRef:Le}=zi({disabled:H,native:w}),Ne=G?.validation??D,[Be,_e]=kd({controlled:J!==void 0&&me!==void 0&&!f?me.includes(J):ge,default:o,name:"Checkbox",state:"checked"}),xe=V?!!ge:Be,Ce=V&&ce||u;KC(Se,W,Be,void 0,!G&&!H,p);let K=j?.registerChildId,Y=Cu.useRef(null),ye=Ne.registerInput,Re=G?J:void 0,Ke=Cu.useCallback(Ve=>ye(Ve,{controlRef:Se,value:Re}),[ye,Re]),mt=wa(d,Y,f?void 0:Ke),dt=Eae(a,B,Y,!w,Z);Ee(()=>{Y.current&&(Y.current.indeterminate=Ce),G||T(Be)},[Be,Ce,G,T]),ku(Be,()=>{G||(_(ne),C(Be!==F.initialValue),Ne.change(Be))});let Ae=Bi({checked:Be,disabled:H,form:l,name:f?void 0:ne,id:w?void 0:Z,required:g,ref:mt,style:ne?b2:g2,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Ve){if(Ve.nativeEvent.defaultPrevented)return;if(h){Ve.preventDefault();return}let Jt=Ve.currentTarget.checked,rn=Xe(he.none,Ve.nativeEvent);if(m?.(Jt,rn),!rn.isCanceled&&(be?.(Jt,rn),!rn.isCanceled&&(_e(Jt),J!==void 0&&G!==void 0&&!f&&!V))){let Rn=Jt?[...G.value,J]:G.value.filter(St=>St!==J);G.setValue(Rn,rn)}},onClick(Ve){Ve.stopPropagation()},onFocus(){Se.current?.focus()}},b!==void 0?{value:(G?Be&&b:b)||""}:xn,U,Ve=>Ne.getValidationProps(H,Ve));Cu.useEffect(()=>{if(!j||J===void 0)return;let Ve=j.disabledStatesRef.current;return Ve.set(J,H),()=>{Ve.delete(J)}},[j,H,J]);let wt=Cu.useMemo(()=>({...$,checked:xe,disabled:H,readOnly:h,required:g,indeterminate:Ce}),[$,xe,H,h,g,Ce]),Tt=GC(wt),Ot=We("span",e,{state:wt,ref:[Le,Se,n],props:[{id:le,role:"checkbox","aria-checked":Ce?"mixed":xe,"aria-readonly":h||void 0,"aria-required":g||void 0,"aria-labelledby":dt,[qOe]:f?"":void 0,onFocus(){H||M(!0)},onBlur(){let Ve=Y.current;Ve&&(A(!0),M(!1),N==="onBlur"&&Ne.commit(G?me:Ve.checked))},onKeyDown(Ve){if(Ve.key!=="Enter"||(Ve.preventBaseUIHandler(),Ve.defaultPrevented))return;let Jt=Y.current?.form??null,rn=Ve.currentTarget,Rn=Ve.nativeEvent,St=Ve.preventDefault,An=Rn.preventDefault,Xt=!1;Ve.preventDefault=()=>{Xt=!0,St.call(Ve)},Rn.preventDefault=()=>{Xt=!0,An.call(Rn)},An.call(Rn),Qn(rn).queueMicrotask(()=>{Ve.preventDefault=St,Rn.preventDefault=An,Xt||oae(Jt)?.click()})},onClick(Ve){if(h||H)return;Ve.preventDefault();let Jt=Y.current;Jt&&f1(Jt,Ve)}},k,ke,de,U,Ve=>Ne.getValidationProps(H,Ve)],stateAttributesMapping:Tt}),zt=Ot.props.id;return Ee(()=>{if(!(!K||f||J===void 0||zt===void 0))return K(J,zt)},[K,f,J,zt]),(0,g6.jsxs)(yO.Provider,{value:wt,children:[Ot,!Be&&!G&&ne&&!f&&y!==void 0&&(0,g6.jsx)("input",{type:"hidden",form:l,name:ne,value:y,disabled:H}),(0,g6.jsx)("input",{...Ae,suppressHydrationWarning:!0})]})});var a_=R(Q(),1);var Oae=R(Q(),1);var wO=R(Ms(),1);var Nae=R(Q(),1);function k2(t){Nae.useEffect(t,Us)}var n_=null,A3t=globalThis.requestAnimationFrame,xO=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i<n.length;i+=1)n[i]?.(e)};request(e){let n=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(e){let n=e-this.startId;n<0||n>=this.callbacks.length||this.callbacks[n]!==null&&(this.callbacks[n]=null,this.callbacksCount-=1)}},r_=new xO;var Pc=class t{static create(){return new t}static request(e){return r_.request(e)}static cancel(e){return r_.cancel(e)}currentId=n_;request(e){this.cancel(),this.currentId=r_.request(()=>{this.currentId=n_,e()})}cancel=()=>{this.currentId!==n_&&(r_.cancel(this.currentId),this.currentId=n_)};disposeEffect=()=>this.cancel};function Dl(){let t=Vn(Pc.create).current;return k2(t.disposeEffect),t}function _u(t){return t==null?t:"current"in t?t.current:t}var i_="data-starting-style",Pae="data-ending-style";var o_=null;function HOe(t){if(!o_){let e=[];o_=e,queueMicrotask(()=>{o_=null,wO.flushSync(()=>{for(let n of e)n()})})}o_.push(t)}function jc(t,e=!1,n=!1){let r=Dl();return Pe((i,o=null)=>{r.cancel();let a=_u(t);if(a==null)return;let s=a,l=()=>{if(!n){wO.flushSync(i);return}HOe(()=>{o?.aborted||i()})};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function c(){Promise.all(s.getAnimations().map(u=>u.finished)).then(()=>{o?.aborted||l()},()=>{if(o?.aborted)return;if(s.getAnimations().some(d=>d.pending||d.playState!=="finished")){c();return}l()})}if(e){let u=i_;if(!s.hasAttribute(u)){r.request(c);return}let d=new MutationObserver(()=>{s.hasAttribute(u)||(d.disconnect(),c())});d.observe(s,{attributes:!0,attributeFilter:[u]}),o?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}r.request(c)})}function Ro(t){let{enabled:e=!0,open:n,ref:r,batch:i=!1,onComplete:o}=t,a=Pe(o),s=jc(r,n,i);Oae.useEffect(()=>{if(!e)return;let l=new AbortController;return s(a,l.signal),()=>{l.abort()}},[e,n,a,s])}var vO=R(Q(),1);function Oc(t,e=!1,n=!1,r=!1){let[i,o]=vO.useState(t&&e?"idle":void 0),[a,s]=vO.useState(t&&!r);return t&&!a&&(s(!0),o("starting")),!t&&a&&i!=="ending"&&!n&&o("ending"),!t&&!a&&i==="ending"&&o(void 0),Ee(()=>{if(!t&&a&&i!=="ending"&&n){let l=Pc.request(()=>{o("ending")});return()=>{Pc.cancel(l)}}},[t,a,i,n]),Ee(()=>{if(!t||e)return;let l=Pc.request(()=>{o(void 0)});return()=>{Pc.cancel(l)}},[e,t]),Ee(()=>{if(!t||!e)return;t&&a&&i!=="idle"&&o("starting");let l=Pc.request(()=>{o("idle")});return()=>{Pc.cancel(l)}},[e,t,a,i]),{mounted:a,setMounted:s,transitionStatus:i}}var GOe={[i_]:""},UOe={[Pae]:""},Dc={transitionStatus(t){return t==="starting"?GOe:t==="ending"?UOe:null}};var Dae=a_.forwardRef(function(e,n){let{render:r,className:i,style:o,keepMounted:a=!1,...s}=e,l=Rae(),c=l.checked||l.indeterminate,{mounted:u,transitionStatus:d,setMounted:p}=Oc(c),m=a_.useRef(null),f={...l,transitionStatus:d};Ro({batch:!0,enabled:!c,open:c,ref:m,onComplete(){c||p(!1)}});let x={...GC(l),...Dc},g=a||u,y=We("span",e,{ref:[n,m],state:f,stateAttributesMapping:x,props:s});return g?y:null});function Zs(...t){return t.filter(Boolean).join(" ")}var l_=R(ee(),1);function Bae(t){let e=(0,Fae.c)(9),{checked:n,className:r}=t,i=n&&"is-checked",o;e[0]!==r||e[1]!==i?(o=Zs(r,i,"cmux-markdown-checkbox"),e[0]=r,e[1]=i,e[2]=o):o=e[2];let a;e[3]!==n?(a=n?(0,l_.jsx)("svg",{className:"cv-checkbox__check",viewBox:"0 0 14 14","aria-hidden":"true",focusable:"false",children:(0,l_.jsx)("path",{d:"M3 7.2 5.7 10 11 4.3"})}):null,e[3]=n,e[4]=a):a=e[4];let s;return e[5]!==n||e[6]!==o||e[7]!==a?(s=(0,l_.jsx)(s_.Root,{checked:n,readOnly:!0,className:o,children:a}),e[5]=n,e[6]=o,e[7]=a,e[8]=s):s=e[8],s}var Ct=R(ee(),1),y6=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,VOe=32,zae=/^\[\^([\w-]+)\]:\s*(.*)$/;function Wae(t){let e=Roe(t.replace(/\r\n?/g,` `).split(` `));return Kae(e)}function Kae(t,e=0){let n=[],r=0;for(;r<t.length;){let i=t[r];if(!i.trim()){r++;continue}let o=i.match(/^\s*```([^\s`]*)[^`]*$/);if(o){let u=[];for(r++;r<t.length&&!/^\s*```\s*$/.test(t[r]);)u.push(t[r++]);r++,n.push({type:"code",lang:o[1]||"text",code:u.join(` -`)});continue}let a=ZOe(t,r);if(a){n.push({type:"math",tex:a.tex}),r=a.next;continue}let s=i.match(zae);if(s){let u=[s[2]];for(r++;r<t.length&&/^\s{2,}\S/.test(t[r]);)u.push(t[r++].trim());n.push({type:"footnote",id:s[1],text:u.join(" ").trim()});continue}let l=i.match(/^(#{1,6})\s+(.*)$/);if(l){n.push({type:"heading",level:l[1].length,text:l[2]}),r++;continue}if(/^\s*([-*_])(\s*\1){2,}\s*$/.test(i)){n.push({type:"hr"}),r++;continue}if(/^\s*>/.test(i)){let u=[];for(;r<t.length&&/^\s*>/.test(t[r]);)u.push(t[r++].replace(/^\s*>\s?/,""));n.push({type:"blockquote",children:Xae(u,e+1)});continue}if(i.includes("|")&&r+1<t.length&&/^\s*\|?\s*:?-{2,}:?\s*(\|\s*:?-{2,}:?\s*)*\|?\s*$/.test(t[r+1])){let u=f=>f.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(h=>h.trim()),d=u(i),p=u(t[r+1]).map(f=>f.startsWith(":")&&f.endsWith(":")?"center":f.endsWith(":")?"right":f.startsWith(":")?"left":null);r+=2;let m=[];for(;r<t.length&&t[r].includes("|")&&t[r].trim();)m.push(u(t[r++]));n.push({type:"table",align:p,header:d,rows:m});continue}if(b6.test(i)){let[u,d]=WOe(t,r,e);n.push(u),r=d;continue}let c=[t[r++].trim()];for(;r<t.length&&t[r].trim()&&!/^(#{1,6})\s/.test(t[r])&&!zae.test(t[r])&&!/^\s*```/.test(t[r])&&!/^\s*\$\$/.test(t[r])&&!/^\s*>/.test(t[r])&&!b6.test(t[r]);)c.push(t[r++].trim());n.push({type:"paragraph",text:c.join(` +`)});continue}let a=ZOe(t,r);if(a){n.push({type:"math",tex:a.tex}),r=a.next;continue}let s=i.match(zae);if(s){let u=[s[2]];for(r++;r<t.length&&/^\s{2,}\S/.test(t[r]);)u.push(t[r++].trim());n.push({type:"footnote",id:s[1],text:u.join(" ").trim()});continue}let l=i.match(/^(#{1,6})\s+(.*)$/);if(l){n.push({type:"heading",level:l[1].length,text:l[2]}),r++;continue}if(/^\s*([-*_])(\s*\1){2,}\s*$/.test(i)){n.push({type:"hr"}),r++;continue}if(/^\s*>/.test(i)){let u=[];for(;r<t.length&&/^\s*>/.test(t[r]);)u.push(t[r++].replace(/^\s*>\s?/,""));n.push({type:"blockquote",children:Xae(u,e+1)});continue}if(i.includes("|")&&r+1<t.length&&/^\s*\|?\s*:?-{2,}:?\s*(\|\s*:?-{2,}:?\s*)*\|?\s*$/.test(t[r+1])){let u=f=>f.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(h=>h.trim()),d=u(i),p=u(t[r+1]).map(f=>f.startsWith(":")&&f.endsWith(":")?"center":f.endsWith(":")?"right":f.startsWith(":")?"left":null);r+=2;let m=[];for(;r<t.length&&t[r].includes("|")&&t[r].trim();)m.push(u(t[r++]));n.push({type:"table",align:p,header:d,rows:m});continue}if(y6.test(i)){let[u,d]=WOe(t,r,e);n.push(u),r=d;continue}let c=[t[r++].trim()];for(;r<t.length&&t[r].trim()&&!/^(#{1,6})\s/.test(t[r])&&!zae.test(t[r])&&!/^\s*```/.test(t[r])&&!/^\s*\$\$/.test(t[r])&&!/^\s*>/.test(t[r])&&!y6.test(t[r]);)c.push(t[r++].trim());n.push({type:"paragraph",text:c.join(` `)})}return n}function ZOe(t,e){let n=t[e].match(/^\s*\$\$(.*)$/);if(!n)return null;let r=n[1],i=r.indexOf("$$");if(i>=0)return r.slice(i+2).trim()||!r.slice(0,i).trim()?null:{tex:r.slice(0,i).trim(),next:e+1};let o=[r];for(let a=e+1;a<t.length;a++){let s=t[a],l=s.indexOf("$$");if(l<0){o.push(s);continue}if(s.slice(l+2).trim())return null;o.push(s.slice(0,l));let c=o.join(` -`).trim();return c?{tex:c,next:a+1}:null}return null}function g6(t){return t.match(/^\s*/)[0].replace(/\t/g," ").length}function Xae(t,e){if(e<VOe)return Kae(t,e);let n=t.map(r=>r.trim()).filter(Boolean).join(` -`);return n?[{type:"paragraph",text:n}]:[]}function WOe(t,e,n){let r=t[e].match(b6),i=g6(t[e]),o=/\d/.test(r[2]),a=[],s=e;for(;s<t.length;){let c=t[s];if(!c.trim()){let p=t[s+1];if(p&&b6.test(p)&&g6(p)>=i){s++;continue}break}let u=c.match(b6),d=g6(c);if(u&&d===i&&/\d/.test(u[2])===o){let p=u[3],m=p.match(/^\[( |x|X)\]\s+(.*)$/),f=m?{text:m[2],task:!0,checked:m[1]!==" ",children:[]}:{text:p,children:[]};s++;let h=[];for(;s<t.length&&t[s].trim()&&g6(t[s])>i;)h.push(t[s++]);if(h.length){let x=Math.min(...h.map(g6));f.children=Xae(h.map(g=>g.slice(x)),n+1)}a.push(f);continue}break}let l=o?parseInt(r[2],10):1;return[{type:"list",ordered:o,start:l,items:a},s]}function KOe(t){let e=t.replace(/^\s*```[\s\S]*?(?:^\s*```|(?![\s\S]))/gm,"").replace(/(`+)[^`]*?\1/g,""),n=[];for(let r of e.matchAll(/\[\^([\w-]+)\](?!:)/g)){let i=r[1];!/^\w-\w$/.test(i)&&!n.includes(i)&&n.push(i)}return n}var qae=/^data:image\/(?:png|jpe?g|gif|webp|svg\+xml);/i,kO=2e6,Yae="data:image/x-cmux-oversized;",xO="data:image/x-cmux-ref;",Hae=4096,wO=8e6;function XOe(t){let e=new Set;if(t.length<=wO)return e;let n=0;for(let r=t.indexOf("](data:image/");r>=0;r=t.indexOf("](data:image/",r+2)){c_.lastIndex=r+2;let i=c_.exec(t)?.index??t.length,o=t.slice(r+2,i);o.length>kO||(n+=o.length,n>wO&&e.add(o))}return e}var c_=/[\s()]/g;function YOe(t,e){if(t.length<=Hae)return t;let n="",r=0;for(let i=t.indexOf("](data:");i>=0;i=t.indexOf("](data:",r)){let o=i+2;c_.lastIndex=o;let a=c_.exec(t)?.index??t.length,s=t.slice(o,a),l=s.length>kO?Yae:s.length>Hae?`${xO}${e.push(s)-1}`:s;n+=t.slice(r,o)+l,r=a}return n+t.slice(r)}function vO(t){return t.startsWith("/")&&!t.startsWith("//")||t.startsWith("file:")?"file":/github\.com/.test(t)?"github":/arxiv\.org/.test(t)?"citation":"web"}var Gae=t=>{let e=vO(t);return e==="github"?(0,kt.jsx)(Bre,{size:13,className:"cv-link__icon cv-link__icon--gh"}):e==="citation"?(0,kt.jsx)(Hre,{size:16,className:"cv-link__icon"}):e==="file"?(0,kt.jsx)(Uk,{size:16,className:"cv-link__icon"}):(0,kt.jsx)(Tl,{size:16,strokeWidth:1.1,className:"cv-link__icon"})},QOe=/(`[^`]+`)|(\*\*[^*]+\*\*)|(~~[^~]+~~)|((?<![\w*])\*[^*\s][^*]*\*(?![\w*])|(?<![\w_])_[^_\s][^_]*_(?![\w_]))|(!\[[^\]]*\]\((?:[^()\s]|\([^()\s]*\))+\)|\[[^\]]+\]\((?:[^()\s]|\([^()\s]*\))+\))|(\n)|(\$\$[^$\n]+?\$\$)|(?<![\\$])(\$(?=[^\s$])(?:\\.|[^$\\\n`])*?[^\s\\`]\$(?!\d))|(\\[\\`*_{}[\]()#+\-.!$|~<>])|(\[\^[\w-]+\](?!:))/g;function va(t,e={}){let n=[],r=YOe(t,n),i=n.length?{...e,dataRefs:n}:e,o=[],a=0,s=0;for(let l of r.matchAll(QOe)){l.index>a&&o.push(...tO(r.slice(a,l.index),`t${s++}`));let c=l[0];if(l[1]){let u=Hoe(c.slice(1,-1));o.push(u?(0,kt.jsx)(OC,{path:u,written:c.slice(1,-1)},s++):(0,kt.jsx)("code",{className:"cv-code",children:c.slice(1,-1)},s++))}else if(l[2])o.push((0,kt.jsx)("strong",{children:va(c.slice(2,-2),i)},s++));else if(l[3])o.push((0,kt.jsx)("del",{children:va(c.slice(2,-2),i)},s++));else if(l[4])o.push((0,kt.jsx)("em",{children:va(c.slice(1,-1),i)},s++));else if(l[5]?.startsWith("!"))o.push((0,kt.jsx)(JOe,{source:c,opts:i},s++));else if(l[5]){let u=c.match(/^\[([^\]]+)\]\((.+)\)$/),d=X4(u[2]),p=f2(u[2]);p?o.push((0,kt.jsx)(OC,{path:p,label:va(u[1],i)},s++)):vO(u[2])==="file"?o.push((0,kt.jsxs)("span",{className:"cv-link is-file",title:u[2],children:[(i.linkIcon??Gae)(u[2]),va(u[1],i)]},s++)):d?o.push((0,kt.jsx)(eO,{href:d,icon:vO(d)==="web"?void 0:(i.linkIcon??Gae)(d),children:va(u[1],i)},s++)):o.push((0,kt.jsx)(Ws.Fragment,{children:va(u[1],i)},s++))}else if(l[6])o.push((0,kt.jsx)("br",{},s++));else if(l[7])o.push((0,kt.jsx)(Bj,{tex:c.slice(2,-2).trim(),display:!0},s++));else if(l[8])o.push((0,kt.jsx)(Bj,{tex:c.slice(1,-1)},s++));else if(l[9])o.push(c.slice(1));else if(l[10]){let u=c.slice(2,-1),d=i.notes?.numbers.get(u);if(!d||!i.notes)o.push(c);else{let p=i.notes.anchor(u);o.push((0,kt.jsx)("sup",{className:"cv-fnref",children:(0,kt.jsx)("button",{type:"button","aria-describedby":p,onClick:()=>document.getElementById(p)?.scrollIntoView({block:"nearest",behavior:"smooth"}),children:d})},s++))}}a=l.index+c.length}return a<r.length&&o.push(...tO(r.slice(a),`t${s++}`)),o}function JOe(t){let e=(0,y6.c)(17),{source:n,opts:r}=t,i,o,a,s;if(e[0]!==r||e[1]!==n){s=Symbol.for("react.early_return_sentinel");e:{let[,f,h]=n.match(/^!\[([^\]]*)\]\((.+)\)$/)??[];i=f===void 0?"":f;let x=h===void 0?"":h;if(o=x.startsWith(xO)?r.dataRefs?.[Number(x.slice(xO.length))]??"":x,r.overBudget?.has(o)){s=(0,kt.jsx)(Uae,{alt:i,opts:r});break e}if(o===Yae||qae.test(o)&&o.length>kO){s=(0,kt.jsx)(Uae,{alt:i,opts:r});break e}if(qae.test(o)){s=(0,kt.jsx)("img",{className:"cv-img",src:o,alt:i});break e}a=i||o.split(/[?#]/)[0].split("/").filter(Boolean).at(-1)||o}e[0]=r,e[1]=n,e[2]=i,e[3]=o,e[4]=a,e[5]=s}else i=e[2],o=e[3],a=e[4],s=e[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let l=a,c;e[6]!==o?(c=X4(o),e[6]=o,e[7]=c):c=e[7];let u=c,d;e[8]!==u||e[9]!==l||e[10]!==r||e[11]!==o?(d=u?(0,kt.jsxs)("a",{className:"cv-link is-image",href:u,rel:"noreferrer",title:o,children:[(0,kt.jsx)(_0,{size:16,className:"cv-link__icon"}),va(l,r)]}):(0,kt.jsxs)("span",{className:"cv-link is-image",title:o,children:[(0,kt.jsx)(_0,{size:16,className:"cv-link__icon"}),va(l,r)]}),e[8]=u,e[9]=l,e[10]=r,e[11]=o,e[12]=d):d=e[12];let p=d,m;return e[13]!==i||e[14]!==p||e[15]!==o?(m=(0,kt.jsx)(Woe,{src:o,alt:i,fallback:p}),e[13]=i,e[14]=p,e[15]=o,e[16]=m):m=e[16],m}function Uae(t){let e=(0,y6.c)(10),{alt:n,opts:r}=t,i=we(),o;e[0]!==i?(o=i("markdown.imageTooLarge"),e[0]=i,e[1]=o):o=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,kt.jsx)(_0,{size:16,className:"cv-link__icon"}),e[2]=a):a=e[2];let s;e[3]!==n||e[4]!==r||e[5]!==i?(s=n?va(n,r):i("markdown.imageTooLarge"),e[3]=n,e[4]=r,e[5]=i,e[6]=s):s=e[6];let l;return e[7]!==o||e[8]!==s?(l=(0,kt.jsxs)("span",{className:"cv-link is-image",title:o,children:[a,s]}),e[7]=o,e[8]=s,e[9]=l):l=e[9],l}function Qae(t){let e=(0,y6.c)(100),{block:n,opts:r,depth:i,enter:o,code:a,tail:s}=t,l=o===void 0?!1:o,c=a===void 0?"final":a,u=l?" cv-enter":"",d;e[0]!==r||e[1]!==s?(d=m=>s?nDe(m,s,r):va(m,r),e[0]=r,e[1]=s,e[2]=d):d=e[2];let p=d;switch(n.type){case"heading":{let m=`h${n.level}`,f=`cv-h cv-h${Math.min(n.level,4)}${u}`,h;e[3]!==n.text||e[4]!==p?(h=p(n.text),e[3]=n.text,e[4]=p,e[5]=h):h=e[5];let x;return e[6]!==m||e[7]!==f||e[8]!==h?(x=(0,kt.jsx)(m,{className:f,children:h}),e[6]=m,e[7]=f,e[8]=h,e[9]=x):x=e[9],x}case"paragraph":{let m=`cv-p${u}`,f;e[10]!==n.text||e[11]!==p?(f=p(n.text),e[10]=n.text,e[11]=p,e[12]=f):f=e[12];let h;return e[13]!==m||e[14]!==f?(h=(0,kt.jsx)("p",{className:m,children:f}),e[13]=m,e[14]=f,e[15]=h):h=e[15],h}case"hr":{let m=`cv-hr${u}`,f;return e[16]!==m?(f=(0,kt.jsx)("hr",{className:m}),e[16]=m,e[17]=f):f=e[17],f}case"blockquote":{let m=`cv-quote${u}`,f;e[18]!==n.children||e[19]!==i||e[20]!==r?(f=(0,kt.jsx)(Vae,{blocks:n.children,opts:r,depth:i}),e[18]=n.children,e[19]=i,e[20]=r,e[21]=f):f=e[21];let h;return e[22]!==m||e[23]!==f?(h=(0,kt.jsx)("blockquote",{className:m,children:f}),e[22]=m,e[23]=f,e[24]=h):h=e[24],h}case"list":{let m=n.ordered?"ol":"ul",f=n.items.every(tDe),h=`cv-list ${n.ordered?"cv-ol":"cv-ul"}${f?" cv-tasks":""}${u}`,x=n.ordered&&n.start!==1?n.start:void 0,g;if(e[25]!==n.items||e[26]!==n.ordered||e[27]!==n.start||e[28]!==i||e[29]!==p||e[30]!==r){let b;e[32]!==n.items.length||e[33]!==n.ordered||e[34]!==n.start||e[35]!==i||e[36]!==p||e[37]!==r?(b=(w,v)=>(0,kt.jsxs)("li",{className:w.task?"cv-task":void 0,children:[n.ordered&&(0,kt.jsxs)("span",{className:"cv-li__num",children:[n.start+v,"."]}),!n.ordered&&!w.task&&(0,kt.jsx)("span",{className:`cv-li__bullet cv-li__bullet--${i%3}`}),w.task&&(0,kt.jsx)(Bae,{checked:!!w.checked,className:"cv-checkbox"}),(0,kt.jsx)("span",{className:"cv-li__text",children:v===n.items.length-1&&!w.children.length?p(w.text):va(w.text,r)}),w.children.length>0&&(0,kt.jsx)(Vae,{blocks:w.children,opts:r,depth:i+1})]},v),e[32]=n.items.length,e[33]=n.ordered,e[34]=n.start,e[35]=i,e[36]=p,e[37]=r,e[38]=b):b=e[38],g=n.items.map(b),e[25]=n.items,e[26]=n.ordered,e[27]=n.start,e[28]=i,e[29]=p,e[30]=r,e[31]=g}else g=e[31];let y;return e[39]!==m||e[40]!==i||e[41]!==h||e[42]!==x||e[43]!==g?(y=(0,kt.jsx)(m,{className:h,"data-depth":i,start:x,children:g}),e[39]=m,e[40]=i,e[41]=h,e[42]=x,e[43]=g,e[44]=y):y=e[44],y}case"table":{let m=eDe,f;if(e[45]!==n.header||e[46]!==n.rows){let _;e[48]!==n.rows?(_=(L,S)=>n.rows.some(C=>m(C[S]??"").length>40),e[48]=n.rows,e[49]=_):_=e[49],f=n.header.map(_),e[45]=n.header,e[46]=n.rows,e[47]=f}else f=e[47];let h=f,x=`cv-table-wrap${u}`,g;if(e[50]!==n.align||e[51]!==n.header||e[52]!==r||e[53]!==h){let _;e[55]!==n.align||e[56]!==r||e[57]!==h?(_=(L,S)=>(0,kt.jsx)("th",{style:{textAlign:n.align[S]??"left",width:h[S]?256:128},children:va(L,r)},S),e[55]=n.align,e[56]=r,e[57]=h,e[58]=_):_=e[58],g=n.header.map(_),e[50]=n.align,e[51]=n.header,e[52]=r,e[53]=h,e[54]=g}else g=e[54];let y;e[59]!==g?(y=(0,kt.jsx)("thead",{children:(0,kt.jsx)("tr",{children:g})}),e[59]=g,e[60]=y):y=e[60];let b;if(e[61]!==n.align||e[62]!==n.rows||e[63]!==r){let _;e[65]!==n.align||e[66]!==r?(_=(L,S)=>(0,kt.jsx)("tr",{children:L.map((C,T)=>(0,kt.jsx)("td",{style:{textAlign:n.align[T]??"left"},children:va(C,r)},T))},S),e[65]=n.align,e[66]=r,e[67]=_):_=e[67],b=n.rows.map(_),e[61]=n.align,e[62]=n.rows,e[63]=r,e[64]=b}else b=e[64];let w;e[68]!==b?(w=(0,kt.jsx)("tbody",{children:b}),e[68]=b,e[69]=w):w=e[69];let v;e[70]!==y||e[71]!==w?(v=(0,kt.jsxs)("table",{className:"cv-table",children:[y,w]}),e[70]=y,e[71]=w,e[72]=v):v=e[72];let k;return e[73]!==v||e[74]!==x?(k=(0,kt.jsx)("div",{className:x,children:v}),e[73]=v,e[74]=x,e[75]=k):k=e[75],k}case"code":{if(c==="open"){let f;return e[76]!==n.code||e[77]!==n.lang?(f=(0,kt.jsx)(o2,{code:n.code,lang:n.lang,open:!0}),e[76]=n.code,e[77]=n.lang,e[78]=f):f=e[78],f}if(c==="handoff"){let f;return e[79]!==n.code||e[80]!==n.lang?(f=(0,kt.jsx)(Jre,{code:n.code,lang:n.lang}),e[79]=n.code,e[80]=n.lang,e[81]=f):f=e[81],f}let m;return e[82]!==n.code||e[83]!==n.lang?(m=(0,kt.jsx)(Xk,{code:n.code,lang:n.lang}),e[82]=n.code,e[83]=n.lang,e[84]=m):m=e[84],m}case"math":{let m;return e[85]!==n.tex?(m=(0,kt.jsx)(Toe,{tex:n.tex}),e[85]=n.tex,e[86]=m):m=e[86],m}case"footnote":{let m;e[87]!==n.id||e[88]!==r.notes?.numbers?(m=r.notes?.numbers.get(n.id),e[87]=n.id,e[88]=r.notes?.numbers,e[89]=m):m=e[89];let f=m,h;e[90]!==n.id||e[91]!==r.notes?(h=r.notes?.anchor(n.id),e[90]=n.id,e[91]=r.notes,e[92]=h):h=e[92];let x;e[93]!==n.text||e[94]!==p?(x=p(n.text),e[93]=n.text,e[94]=p,e[95]=x):x=e[95];let g;return e[96]!==f||e[97]!==h||e[98]!==x?(g=(0,kt.jsx)("li",{id:h,className:"cv-footnote",value:f,children:x}),e[96]=f,e[97]=h,e[98]=x,e[99]=g):g=e[99],g}}}function eDe(t){return t.replace(/[`*_~]|\[|\]\([^)]*\)/g,"")}function tDe(t){return t.task}function Vae(t){let e=(0,y6.c)(9),{blocks:n,opts:r,depth:i}=t,o;if(e[0]!==n||e[1]!==i||e[2]!==r){let s;e[4]!==i||e[5]!==r?(s=(l,c)=>(0,kt.jsx)(Ws.Fragment,{children:(0,kt.jsx)(Qae,{block:l,opts:r,depth:i})},c),e[4]=i,e[5]=r,e[6]=s):s=e[6],o=n.map(s),e[0]=n,e[1]=i,e[2]=r,e[3]=o}else o=e[3];let a;return e[7]!==o?(a=(0,kt.jsx)(kt.Fragment,{children:o}),e[7]=o,e[8]=a):a=e[8],a}function nDe(t,e,n){let r=(0,kt.jsx)("span",{className:"cv-caret","aria-hidden":"true"},"caret"),i=e.text.trimEnd();if(!i||!t.endsWith(i)||/[*`_~[\]()$\\\n]/.test(i))return[...va(t,n),r];let o=va(t.slice(0,t.length-i.length),n),a=i.length,s=[];for(let l=e.steps.length-1;l>=0&&a>0;l-=1){let c=e.steps[l],u=Math.max(0,a-c.count);s.unshift((0,kt.jsx)("span",{className:"cv-fresh",style:{animationDelay:`${-(e.now-c.born)}ms`},children:i.slice(u,a)},`f${c.id}`)),a=u}return a>0&&o.push(i.slice(0,a)),[...o,...s,r]}var rDe=(0,Ws.memo)(Qae);function Zae(t,e){return t.type==="footnote"?e.notes?.numbers.get(t.id)??Number.MAX_SAFE_INTEGER:0}function Jae({children:t,className:e="",linkIcon:n,streaming:r=!1,fresh:i,now:o=0,waiting:a=!1}){let s=(0,Ws.useRef)(null);s.current??=new u_;let l=s.current.update(t,{streaming:r}),c=(0,Ws.useRef)(null);c.current??=new Set(l.map(v=>v.key));let u=KOe(t).join(" "),d=t.length>wO?t:"",p=(0,Ws.useMemo)(()=>XOe(d),[d]),m=(0,Ws.useId)(),f=(0,Ws.useMemo)(()=>{let v=u?u.split(" "):[],k=new Map(v.map((_,L)=>[_,L+1]));return{linkIcon:n,notes:{numbers:k,anchor:_=>`${m}fn-${_}`},overBudget:p}},[n,u,m,p]),h=(0,Ws.useRef)(new Set),x=i?.reduce((v,k)=>v+k.count,0)??0,g=r&&i?{steps:i,text:x?t.slice(t.length-x):"",now:o}:void 0,y=r&&(t.match(/^\s*```/gm)?.length??0)%2===1,b=(v,k)=>{let _=!c.current.has(v.key),L=y&&k===l.length-1;return L&&h.current.add(v.key),(0,kt.jsx)(rDe,{block:v.block,opts:f,depth:0,enter:r&&_,code:L?"open":_||h.current.has(v.key)?"handoff":"final",tail:k===l.length-1?g:void 0},v.key)},w=l.map((v,k)=>({entry:v,index:k})).filter(({entry:v})=>v.block.type==="footnote").sort((v,k)=>Zae(v.entry.block,f)-Zae(k.entry.block,f));return(0,kt.jsxs)("div",{className:`cv-md selectable ${e}${r&&a?" is-waiting":""}`,children:[l.map((v,k)=>v.block.type==="footnote"?null:b(v,k)),w.length>0&&(0,kt.jsx)("section",{className:"cv-footnotes",role:"doc-endnotes",children:(0,kt.jsx)("ol",{children:w.map(({entry:v,index:k})=>b(v,k))})})]})}var ese=/^\s*```/,iDe=/`[^`]*`|\\[\\$]|\$\$[^$\n]+?\$\$|(?<![\\$])\$(?=[^\s$])(?:\\.|[^$\\\n`])*?[^\s\\`]\$(?!\d)|\\\(.+?\\\)/g,oDe=/\$\$|\\\(|(?<!\\)\$(?=[^\s\d$]|$)|\\$/;function aDe(t){let e=!1,n=-1,r=/\$\$/;for(let i=0;i<t.length;i+=1){let o=t[i];if(n>=0){if(r.test(o)&&(n=-1,i===t.length-1))return{open:n,closesLast:!0};continue}if(ese.test(o)&&(e=!e),e)continue;let a=o.match(/^\s*\$\$(.*)$/);a&&!a[1].includes("$$")?[n,r]=[i,/\$\$/]:/^\s*\\\[/.test(o)&&!/\\\]\s*$/.test(o)&&([n,r]=[i,/\\\]\s*$/])}return{open:n,closesLast:!1}}function sDe(t){let n=t.replace(iDe,r=>" ".repeat(r.length)).search(oDe);return n<0?t:t.slice(0,n)}function tse(t){let e=aDe(t.split(` +`).trim();return c?{tex:c,next:a+1}:null}return null}function b6(t){return t.match(/^\s*/)[0].replace(/\t/g," ").length}function Xae(t,e){if(e<VOe)return Kae(t,e);let n=t.map(r=>r.trim()).filter(Boolean).join(` +`);return n?[{type:"paragraph",text:n}]:[]}function WOe(t,e,n){let r=t[e].match(y6),i=b6(t[e]),o=/\d/.test(r[2]),a=[],s=e;for(;s<t.length;){let c=t[s];if(!c.trim()){let p=t[s+1];if(p&&y6.test(p)&&b6(p)>=i){s++;continue}break}let u=c.match(y6),d=b6(c);if(u&&d===i&&/\d/.test(u[2])===o){let p=u[3],m=p.match(/^\[( |x|X)\]\s+(.*)$/),f=m?{text:m[2],task:!0,checked:m[1]!==" ",children:[]}:{text:p,children:[]};s++;let h=[];for(;s<t.length&&t[s].trim()&&b6(t[s])>i;)h.push(t[s++]);if(h.length){let x=Math.min(...h.map(b6));f.children=Xae(h.map(g=>g.slice(x)),n+1)}a.push(f);continue}break}let l=o?parseInt(r[2],10):1;return[{type:"list",ordered:o,start:l,items:a},s]}function KOe(t){let e=t.replace(/^\s*```[\s\S]*?(?:^\s*```|(?![\s\S]))/gm,"").replace(/(`+)[^`]*?\1/g,""),n=[];for(let r of e.matchAll(/\[\^([\w-]+)\](?!:)/g)){let i=r[1];!/^\w-\w$/.test(i)&&!n.includes(i)&&n.push(i)}return n}var qae=/^data:image\/(?:png|jpe?g|gif|webp|svg\+xml);/i,SO=2e6,Yae="data:image/x-cmux-oversized;",kO="data:image/x-cmux-ref;",Hae=4096,CO=8e6;function XOe(t){let e=new Set;if(t.length<=CO)return e;let n=0;for(let r=t.indexOf("](data:image/");r>=0;r=t.indexOf("](data:image/",r+2)){c_.lastIndex=r+2;let i=c_.exec(t)?.index??t.length,o=t.slice(r+2,i);o.length>SO||(n+=o.length,n>CO&&e.add(o))}return e}var c_=/[\s()]/g;function YOe(t,e){if(t.length<=Hae)return t;let n="",r=0;for(let i=t.indexOf("](data:");i>=0;i=t.indexOf("](data:",r)){let o=i+2;c_.lastIndex=o;let a=c_.exec(t)?.index??t.length,s=t.slice(o,a),l=s.length>SO?Yae:s.length>Hae?`${kO}${e.push(s)-1}`:s;n+=t.slice(r,o)+l,r=a}return n+t.slice(r)}function _O(t){return t.startsWith("/")&&!t.startsWith("//")||t.startsWith("file:")?"file":/github\.com/.test(t)?"github":/arxiv\.org/.test(t)?"citation":"web"}var Gae=t=>{let e=_O(t);return e==="github"?(0,Ct.jsx)(Bre,{size:13,className:"cv-link__icon cv-link__icon--gh"}):e==="citation"?(0,Ct.jsx)(Hre,{size:16,className:"cv-link__icon"}):e==="file"?(0,Ct.jsx)(Uk,{size:16,className:"cv-link__icon"}):(0,Ct.jsx)(Rl,{size:16,strokeWidth:1.1,className:"cv-link__icon"})},QOe=/(`[^`]+`)|(\*\*[^*]+\*\*)|(~~[^~]+~~)|((?<![\w*])\*[^*\s][^*]*\*(?![\w*])|(?<![\w_])_[^_\s][^_]*_(?![\w_]))|(!\[[^\]]*\]\((?:[^()\s]|\([^()\s]*\))+\)|\[[^\]]+\]\((?:[^()\s]|\([^()\s]*\))+\))|(\n)|(\$\$[^$\n]+?\$\$)|(?<![\\$])(\$(?=[^\s$])(?:\\.|[^$\\\n`])*?[^\s\\`]\$(?!\d))|(\\[\\`*_{}[\]()#+\-.!$|~<>])|(\[\^[\w-]+\](?!:))/g;function va(t,e={}){let n=[],r=YOe(t,n),i=n.length?{...e,dataRefs:n}:e,o=[],a=0,s=0;for(let l of r.matchAll(QOe)){l.index>a&&o.push(...iO(r.slice(a,l.index),`t${s++}`));let c=l[0];if(l[1]){let u=Hoe(c.slice(1,-1));o.push(u?(0,Ct.jsx)(OC,{path:u,written:c.slice(1,-1)},s++):(0,Ct.jsx)("code",{className:"cv-code",children:c.slice(1,-1)},s++))}else if(l[2])o.push((0,Ct.jsx)("strong",{children:va(c.slice(2,-2),i)},s++));else if(l[3])o.push((0,Ct.jsx)("del",{children:va(c.slice(2,-2),i)},s++));else if(l[4])o.push((0,Ct.jsx)("em",{children:va(c.slice(1,-1),i)},s++));else if(l[5]?.startsWith("!"))o.push((0,Ct.jsx)(JOe,{source:c,opts:i},s++));else if(l[5]){let u=c.match(/^\[([^\]]+)\]\((.+)\)$/),d=Y4(u[2]),p=h2(u[2]);p?o.push((0,Ct.jsx)(OC,{path:p,label:va(u[1],i)},s++)):_O(u[2])==="file"?o.push((0,Ct.jsxs)("span",{className:"cv-link is-file",title:u[2],children:[(i.linkIcon??Gae)(u[2]),va(u[1],i)]},s++)):d?o.push((0,Ct.jsx)(rO,{href:d,icon:_O(d)==="web"?void 0:(i.linkIcon??Gae)(d),children:va(u[1],i)},s++)):o.push((0,Ct.jsx)(Ws.Fragment,{children:va(u[1],i)},s++))}else if(l[6])o.push((0,Ct.jsx)("br",{},s++));else if(l[7])o.push((0,Ct.jsx)(Hj,{tex:c.slice(2,-2).trim(),display:!0},s++));else if(l[8])o.push((0,Ct.jsx)(Hj,{tex:c.slice(1,-1)},s++));else if(l[9])o.push(c.slice(1));else if(l[10]){let u=c.slice(2,-1),d=i.notes?.numbers.get(u);if(!d||!i.notes)o.push(c);else{let p=i.notes.anchor(u);o.push((0,Ct.jsx)("sup",{className:"cv-fnref",children:(0,Ct.jsx)("button",{type:"button","aria-describedby":p,onClick:()=>document.getElementById(p)?.scrollIntoView({block:"nearest",behavior:"smooth"}),children:d})},s++))}}a=l.index+c.length}return a<r.length&&o.push(...iO(r.slice(a),`t${s++}`)),o}function JOe(t){let e=(0,x6.c)(17),{source:n,opts:r}=t,i,o,a,s;if(e[0]!==r||e[1]!==n){s=Symbol.for("react.early_return_sentinel");e:{let[,f,h]=n.match(/^!\[([^\]]*)\]\((.+)\)$/)??[];i=f===void 0?"":f;let x=h===void 0?"":h;if(o=x.startsWith(kO)?r.dataRefs?.[Number(x.slice(kO.length))]??"":x,r.overBudget?.has(o)){s=(0,Ct.jsx)(Uae,{alt:i,opts:r});break e}if(o===Yae||qae.test(o)&&o.length>SO){s=(0,Ct.jsx)(Uae,{alt:i,opts:r});break e}if(qae.test(o)){s=(0,Ct.jsx)("img",{className:"cv-img",src:o,alt:i});break e}a=i||o.split(/[?#]/)[0].split("/").filter(Boolean).at(-1)||o}e[0]=r,e[1]=n,e[2]=i,e[3]=o,e[4]=a,e[5]=s}else i=e[2],o=e[3],a=e[4],s=e[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let l=a,c;e[6]!==o?(c=Y4(o),e[6]=o,e[7]=c):c=e[7];let u=c,d;e[8]!==u||e[9]!==l||e[10]!==r||e[11]!==o?(d=u?(0,Ct.jsxs)("a",{className:"cv-link is-image",href:u,rel:"noreferrer",title:o,children:[(0,Ct.jsx)(L0,{size:16,className:"cv-link__icon"}),va(l,r)]}):(0,Ct.jsxs)("span",{className:"cv-link is-image",title:o,children:[(0,Ct.jsx)(L0,{size:16,className:"cv-link__icon"}),va(l,r)]}),e[8]=u,e[9]=l,e[10]=r,e[11]=o,e[12]=d):d=e[12];let p=d,m;return e[13]!==i||e[14]!==p||e[15]!==o?(m=(0,Ct.jsx)(Woe,{src:o,alt:i,fallback:p}),e[13]=i,e[14]=p,e[15]=o,e[16]=m):m=e[16],m}function Uae(t){let e=(0,x6.c)(10),{alt:n,opts:r}=t,i=ve(),o;e[0]!==i?(o=i("markdown.imageTooLarge"),e[0]=i,e[1]=o):o=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,Ct.jsx)(L0,{size:16,className:"cv-link__icon"}),e[2]=a):a=e[2];let s;e[3]!==n||e[4]!==r||e[5]!==i?(s=n?va(n,r):i("markdown.imageTooLarge"),e[3]=n,e[4]=r,e[5]=i,e[6]=s):s=e[6];let l;return e[7]!==o||e[8]!==s?(l=(0,Ct.jsxs)("span",{className:"cv-link is-image",title:o,children:[a,s]}),e[7]=o,e[8]=s,e[9]=l):l=e[9],l}function Qae(t){let e=(0,x6.c)(100),{block:n,opts:r,depth:i,enter:o,code:a,tail:s}=t,l=o===void 0?!1:o,c=a===void 0?"final":a,u=l?" cv-enter":"",d;e[0]!==r||e[1]!==s?(d=m=>s?nDe(m,s,r):va(m,r),e[0]=r,e[1]=s,e[2]=d):d=e[2];let p=d;switch(n.type){case"heading":{let m=`h${n.level}`,f=`cv-h cv-h${Math.min(n.level,4)}${u}`,h;e[3]!==n.text||e[4]!==p?(h=p(n.text),e[3]=n.text,e[4]=p,e[5]=h):h=e[5];let x;return e[6]!==m||e[7]!==f||e[8]!==h?(x=(0,Ct.jsx)(m,{className:f,children:h}),e[6]=m,e[7]=f,e[8]=h,e[9]=x):x=e[9],x}case"paragraph":{let m=`cv-p${u}`,f;e[10]!==n.text||e[11]!==p?(f=p(n.text),e[10]=n.text,e[11]=p,e[12]=f):f=e[12];let h;return e[13]!==m||e[14]!==f?(h=(0,Ct.jsx)("p",{className:m,children:f}),e[13]=m,e[14]=f,e[15]=h):h=e[15],h}case"hr":{let m=`cv-hr${u}`,f;return e[16]!==m?(f=(0,Ct.jsx)("hr",{className:m}),e[16]=m,e[17]=f):f=e[17],f}case"blockquote":{let m=`cv-quote${u}`,f;e[18]!==n.children||e[19]!==i||e[20]!==r?(f=(0,Ct.jsx)(Vae,{blocks:n.children,opts:r,depth:i}),e[18]=n.children,e[19]=i,e[20]=r,e[21]=f):f=e[21];let h;return e[22]!==m||e[23]!==f?(h=(0,Ct.jsx)("blockquote",{className:m,children:f}),e[22]=m,e[23]=f,e[24]=h):h=e[24],h}case"list":{let m=n.ordered?"ol":"ul",f=n.items.every(tDe),h=`cv-list ${n.ordered?"cv-ol":"cv-ul"}${f?" cv-tasks":""}${u}`,x=n.ordered&&n.start!==1?n.start:void 0,g;if(e[25]!==n.items||e[26]!==n.ordered||e[27]!==n.start||e[28]!==i||e[29]!==p||e[30]!==r){let b;e[32]!==n.items.length||e[33]!==n.ordered||e[34]!==n.start||e[35]!==i||e[36]!==p||e[37]!==r?(b=(w,v)=>(0,Ct.jsxs)("li",{className:w.task?"cv-task":void 0,children:[n.ordered&&(0,Ct.jsxs)("span",{className:"cv-li__num",children:[n.start+v,"."]}),!n.ordered&&!w.task&&(0,Ct.jsx)("span",{className:`cv-li__bullet cv-li__bullet--${i%3}`}),w.task&&(0,Ct.jsx)(Bae,{checked:!!w.checked,className:"cv-checkbox"}),(0,Ct.jsx)("span",{className:"cv-li__text",children:v===n.items.length-1&&!w.children.length?p(w.text):va(w.text,r)}),w.children.length>0&&(0,Ct.jsx)(Vae,{blocks:w.children,opts:r,depth:i+1})]},v),e[32]=n.items.length,e[33]=n.ordered,e[34]=n.start,e[35]=i,e[36]=p,e[37]=r,e[38]=b):b=e[38],g=n.items.map(b),e[25]=n.items,e[26]=n.ordered,e[27]=n.start,e[28]=i,e[29]=p,e[30]=r,e[31]=g}else g=e[31];let y;return e[39]!==m||e[40]!==i||e[41]!==h||e[42]!==x||e[43]!==g?(y=(0,Ct.jsx)(m,{className:h,"data-depth":i,start:x,children:g}),e[39]=m,e[40]=i,e[41]=h,e[42]=x,e[43]=g,e[44]=y):y=e[44],y}case"table":{let m=eDe,f;if(e[45]!==n.header||e[46]!==n.rows){let _;e[48]!==n.rows?(_=(L,S)=>n.rows.some(C=>m(C[S]??"").length>40),e[48]=n.rows,e[49]=_):_=e[49],f=n.header.map(_),e[45]=n.header,e[46]=n.rows,e[47]=f}else f=e[47];let h=f,x=`cv-table-wrap${u}`,g;if(e[50]!==n.align||e[51]!==n.header||e[52]!==r||e[53]!==h){let _;e[55]!==n.align||e[56]!==r||e[57]!==h?(_=(L,S)=>(0,Ct.jsx)("th",{style:{textAlign:n.align[S]??"left",width:h[S]?256:128},children:va(L,r)},S),e[55]=n.align,e[56]=r,e[57]=h,e[58]=_):_=e[58],g=n.header.map(_),e[50]=n.align,e[51]=n.header,e[52]=r,e[53]=h,e[54]=g}else g=e[54];let y;e[59]!==g?(y=(0,Ct.jsx)("thead",{children:(0,Ct.jsx)("tr",{children:g})}),e[59]=g,e[60]=y):y=e[60];let b;if(e[61]!==n.align||e[62]!==n.rows||e[63]!==r){let _;e[65]!==n.align||e[66]!==r?(_=(L,S)=>(0,Ct.jsx)("tr",{children:L.map((C,T)=>(0,Ct.jsx)("td",{style:{textAlign:n.align[T]??"left"},children:va(C,r)},T))},S),e[65]=n.align,e[66]=r,e[67]=_):_=e[67],b=n.rows.map(_),e[61]=n.align,e[62]=n.rows,e[63]=r,e[64]=b}else b=e[64];let w;e[68]!==b?(w=(0,Ct.jsx)("tbody",{children:b}),e[68]=b,e[69]=w):w=e[69];let v;e[70]!==y||e[71]!==w?(v=(0,Ct.jsxs)("table",{className:"cv-table",children:[y,w]}),e[70]=y,e[71]=w,e[72]=v):v=e[72];let k;return e[73]!==v||e[74]!==x?(k=(0,Ct.jsx)("div",{className:x,children:v}),e[73]=v,e[74]=x,e[75]=k):k=e[75],k}case"code":{if(c==="open"){let f;return e[76]!==n.code||e[77]!==n.lang?(f=(0,Ct.jsx)(a2,{code:n.code,lang:n.lang,open:!0}),e[76]=n.code,e[77]=n.lang,e[78]=f):f=e[78],f}if(c==="handoff"){let f;return e[79]!==n.code||e[80]!==n.lang?(f=(0,Ct.jsx)(Jre,{code:n.code,lang:n.lang}),e[79]=n.code,e[80]=n.lang,e[81]=f):f=e[81],f}let m;return e[82]!==n.code||e[83]!==n.lang?(m=(0,Ct.jsx)(Xk,{code:n.code,lang:n.lang}),e[82]=n.code,e[83]=n.lang,e[84]=m):m=e[84],m}case"math":{let m;return e[85]!==n.tex?(m=(0,Ct.jsx)(Toe,{tex:n.tex}),e[85]=n.tex,e[86]=m):m=e[86],m}case"footnote":{let m;e[87]!==n.id||e[88]!==r.notes?.numbers?(m=r.notes?.numbers.get(n.id),e[87]=n.id,e[88]=r.notes?.numbers,e[89]=m):m=e[89];let f=m,h;e[90]!==n.id||e[91]!==r.notes?(h=r.notes?.anchor(n.id),e[90]=n.id,e[91]=r.notes,e[92]=h):h=e[92];let x;e[93]!==n.text||e[94]!==p?(x=p(n.text),e[93]=n.text,e[94]=p,e[95]=x):x=e[95];let g;return e[96]!==f||e[97]!==h||e[98]!==x?(g=(0,Ct.jsx)("li",{id:h,className:"cv-footnote",value:f,children:x}),e[96]=f,e[97]=h,e[98]=x,e[99]=g):g=e[99],g}}}function eDe(t){return t.replace(/[`*_~]|\[|\]\([^)]*\)/g,"")}function tDe(t){return t.task}function Vae(t){let e=(0,x6.c)(9),{blocks:n,opts:r,depth:i}=t,o;if(e[0]!==n||e[1]!==i||e[2]!==r){let s;e[4]!==i||e[5]!==r?(s=(l,c)=>(0,Ct.jsx)(Ws.Fragment,{children:(0,Ct.jsx)(Qae,{block:l,opts:r,depth:i})},c),e[4]=i,e[5]=r,e[6]=s):s=e[6],o=n.map(s),e[0]=n,e[1]=i,e[2]=r,e[3]=o}else o=e[3];let a;return e[7]!==o?(a=(0,Ct.jsx)(Ct.Fragment,{children:o}),e[7]=o,e[8]=a):a=e[8],a}function nDe(t,e,n){let r=(0,Ct.jsx)("span",{className:"cv-caret","aria-hidden":"true"},"caret"),i=e.text.trimEnd();if(!i||!t.endsWith(i)||/[*`_~[\]()$\\\n]/.test(i))return[...va(t,n),r];let o=va(t.slice(0,t.length-i.length),n),a=i.length,s=[];for(let l=e.steps.length-1;l>=0&&a>0;l-=1){let c=e.steps[l],u=Math.max(0,a-c.count);s.unshift((0,Ct.jsx)("span",{className:"cv-fresh",style:{animationDelay:`${-(e.now-c.born)}ms`},children:i.slice(u,a)},`f${c.id}`)),a=u}return a>0&&o.push(i.slice(0,a)),[...o,...s,r]}var rDe=(0,Ws.memo)(Qae);function Zae(t,e){return t.type==="footnote"?e.notes?.numbers.get(t.id)??Number.MAX_SAFE_INTEGER:0}function Jae({children:t,className:e="",linkIcon:n,streaming:r=!1,fresh:i,now:o=0,waiting:a=!1}){let s=(0,Ws.useRef)(null);s.current??=new u_;let l=s.current.update(t,{streaming:r}),c=(0,Ws.useRef)(null);c.current??=new Set(l.map(v=>v.key));let u=KOe(t).join(" "),d=t.length>CO?t:"",p=(0,Ws.useMemo)(()=>XOe(d),[d]),m=(0,Ws.useId)(),f=(0,Ws.useMemo)(()=>{let v=u?u.split(" "):[],k=new Map(v.map((_,L)=>[_,L+1]));return{linkIcon:n,notes:{numbers:k,anchor:_=>`${m}fn-${_}`},overBudget:p}},[n,u,m,p]),h=(0,Ws.useRef)(new Set),x=i?.reduce((v,k)=>v+k.count,0)??0,g=r&&i?{steps:i,text:x?t.slice(t.length-x):"",now:o}:void 0,y=r&&(t.match(/^\s*```/gm)?.length??0)%2===1,b=(v,k)=>{let _=!c.current.has(v.key),L=y&&k===l.length-1;return L&&h.current.add(v.key),(0,Ct.jsx)(rDe,{block:v.block,opts:f,depth:0,enter:r&&_,code:L?"open":_||h.current.has(v.key)?"handoff":"final",tail:k===l.length-1?g:void 0},v.key)},w=l.map((v,k)=>({entry:v,index:k})).filter(({entry:v})=>v.block.type==="footnote").sort((v,k)=>Zae(v.entry.block,f)-Zae(k.entry.block,f));return(0,Ct.jsxs)("div",{className:`cv-md selectable ${e}${r&&a?" is-waiting":""}`,children:[l.map((v,k)=>v.block.type==="footnote"?null:b(v,k)),w.length>0&&(0,Ct.jsx)("section",{className:"cv-footnotes",role:"doc-endnotes",children:(0,Ct.jsx)("ol",{children:w.map(({entry:v,index:k})=>b(v,k))})})]})}var ese=/^\s*```/,iDe=/`[^`]*`|\\[\\$]|\$\$[^$\n]+?\$\$|(?<![\\$])\$(?=[^\s$])(?:\\.|[^$\\\n`])*?[^\s\\`]\$(?!\d)|\\\(.+?\\\)/g,oDe=/\$\$|\\\(|(?<!\\)\$(?=[^\s\d$]|$)|\\$/;function aDe(t){let e=!1,n=-1,r=/\$\$/;for(let i=0;i<t.length;i+=1){let o=t[i];if(n>=0){if(r.test(o)&&(n=-1,i===t.length-1))return{open:n,closesLast:!0};continue}if(ese.test(o)&&(e=!e),e)continue;let a=o.match(/^\s*\$\$(.*)$/);a&&!a[1].includes("$$")?[n,r]=[i,/\$\$/]:/^\s*\\\[/.test(o)&&!/\\\]\s*$/.test(o)&&([n,r]=[i,/\\\]\s*$/])}return{open:n,closesLast:!1}}function sDe(t){let n=t.replace(iDe,r=>" ".repeat(r.length)).search(oDe);return n<0?t:t.slice(0,n)}function tse(t){let e=aDe(t.split(` `)),n=e.open>=0?t.split(` `).slice(0,e.open).concat(""):t.split(` `),r=!1;for(let l=0;l<n.length-1;l+=1)ese.test(n[l])&&(r=!r);let i=n.at(-1)??"";if(/^\s*`{1,3}[^`]*$/.test(i))i="";else if(!r){e.closesLast||(i=sDe(i)),/^\s*\|/.test(i)&&(i="");let l=n.slice(0,-1),c=l.length-1,u=p=>p!==void 0&&/^\s*\|/.test(p);c>=0&&u(l[c])&&!u(l[c-1])?n[c]="":c>0&&/^\s*\|?\s*:?-/.test(l[c])&&u(l[c-1])&&(/-\s*\|/.test(l[c])||(n[c]=n[c-1]=""));let d=i.lastIndexOf("[");d>=0&&/^\[[^\]]*(?:\](?:\([^)]*)?)?$/.test(i.slice(d))&&(i=i.slice(0,d>0&&i[d-1]==="!"?d-1:d))}n[n.length-1]=i;let o=n.join(` `);if(r)return o;let a=l=>l.slice(l.lastIndexOf(` -`)+1),s=(l,c)=>(c.match(l)?.length??0)%2===1;if(s(/\*\*/g,a(o))){let l=o.replace(/\*{1,2}\s*$/,"");o=s(/\*\*/g,a(l))?`${l}**`:l}if(s(/`/g,a(o).replace(/\*\*/g,""))){let l=o.replace(/`\s*$/,"");o=s(/`/g,a(l))?`${l}\``:l}return o}var lDe=/^(\s*)([-*+]|\d+[.)])\s+/,cDe=/^\s*```/,nse=/^\s*\\\[/,CO=/\\\]\s*$/,uDe=/^\s*\$\$(?!.*\$\$)/,dDe=/\$\$/,u_=class{source="";streaming=!1;closed=[];closedEnd=0;tail=[];lastParsedLength=0;update(e,n={}){let r=n.streaming??!1;if(e===this.source&&r===this.streaming)return[...this.closed,...this.tail];this.streaming=r,e.startsWith(this.source.slice(0,this.closedEnd))||this.reset(),this.source=e,this.lastParsedLength=0;let i=_O(e,this.closedEnd);i>this.closedEnd&&(this.closed.push(...this.parse(e.slice(this.closedEnd,i),this.closed.length)),this.closedEnd=i);let o=new Map(this.tail.map(s=>[s.key,s])),a=e.slice(this.closedEnd);return this.tail=this.parse(r?tse(a):a,this.closed.length).map(s=>{let l=o.get(s.key);return l&&rse(l.block,s.block)?l:s}),[...this.closed,...this.tail]}reset(){this.source="",this.closed=[],this.closedEnd=0,this.tail=[]}parse(e,n){return this.lastParsedLength+=e.length,Wae(e).map((r,i)=>{let o=String(n+i),a=this.tail.find(s=>s.key===o);return a&&rse(a.block,r)?a:{key:o,block:r}})}};function _O(t,e){let n=e,r=!1,i=!1,o=CO,a=!0,s=e;for(;s<t.length;){let l=t.indexOf(` -`,s);if(l<0)break;let c=t.slice(s,l).replace(/\r$/,"");s>e&&a&&!r&&!i&&/^\S/.test(c)&&!lDe.test(c)&&(n=s),cDe.test(c)&&!i?r=!r:r||(i?i=!o.test(c):uDe.test(c)?[i,o]=[!0,dDe]:nse.test(c)&&([i,o]=[!CO.test(c.replace(nse,"")),CO])),a=!c.trim(),s=l+1}return n}function rse(t,e){return t===e||JSON.stringify(t)===JSON.stringify(e)}var mDe="14px system-ui",p_=22.75,fDe=20,hDe=20,sse=t=>t.kind==="user"?fDe+(t.status?hDe:0):0,gDe=.7,bDe=32,yDe=14,xDe=28,wDe=21,vDe=20,kDe=58.5,CDe=13,_De=40,SDe=7.3,LDe=15,MDe=8,EDe=720,TDe=26.5,k2=t=>Math.max(120,Math.min(EDe,t-2*TDe));function ise(t){try{return QQ(t,{gfm:!0,breaks:!0}).filter(e=>e.type!=="space")}catch{return[{type:"text",raw:t,text:t}]}}function lse(t,e){let n=new Map(e.map(a=>[a.id,a])),r=[],i=[];for(let a of e){let s=t.get(a.id);s?s.version!==a.version&&i.push(a):r.push(a)}let o=[...t.keys()].filter(a=>!n.has(a));return{added:r,updated:i,removed:o}}function RDe(t,e=0){let n=t+e;return n<=1&&e===0?58:58+34*Math.min(n,3)+(n>3?34:0)}function SO(t){let e=[],n=new Set;return t.forEach((r,i)=>{if(!r.tool||r.tool.diffs?.length)return;let o=mI(r.tool);o.length||e.push({key:`unknown-${r.tool.id}-${i}`});for(let a of o)n.has(a)||(n.add(a),e.push({key:`path-${a}`,path:a}))}),e}function ose(t,e){let n=Math.max(1,Math.ceil((t.text?.length??0)/Math.max(24,Math.floor(e/8))));if(t.kind==="activity"){let r=t.items?.filter(i=>i.tool?.kind==="edit"||i.tool?.kind==="fileChange")??[];if(r.length&&!Pb(t)){let i=new Set(r.flatMap(o=>o.tool?.diffs?.map(a=>a.path)??[])).size;return 14+RDe(i,SO(r).length)}return t.settled&&t.items&&Xw(t.items)?36:Math.max(34,10+26*(t.items?.length??1))}return t.kind===zf||t.kind===Ib||t.kind===$b?35:t.kind===Ab?36:t.kind===Nb?252:t.kind==="permission"?87:t.kind==="turnSummary"||t.kind==="notice"||t.kind==="plan"||t.kind==="typing"?37:24+sse(t)+n*p_}function m_(t,e){return t?.length?t.map(n=>n.type==="codespan"?n.text.replace(/\S/g,"0").replace(/ /g,"0 "):n.type==="link"&&!X4(n.href)?n.text:"tokens"in n?m_(n.tokens,"text"in n?n.text:n.raw??""):n.raw??("text"in n?n.text:"")).join(""):e}function d_(t,e,n){let r=n.get(t);if(r===void 0){try{r=NQ(t,mDe,{whiteSpace:"pre-wrap"})}catch{r=null}n.set(t,r)}if(r)return PQ(r,e,p_).height;let i=Math.max(24,Math.floor(e/MDe));return t.split(` +`)+1),s=(l,c)=>(c.match(l)?.length??0)%2===1;if(s(/\*\*/g,a(o))){let l=o.replace(/\*{1,2}\s*$/,"");o=s(/\*\*/g,a(l))?`${l}**`:l}if(s(/`/g,a(o).replace(/\*\*/g,""))){let l=o.replace(/`\s*$/,"");o=s(/`/g,a(l))?`${l}\``:l}return o}var lDe=/^(\s*)([-*+]|\d+[.)])\s+/,cDe=/^\s*```/,nse=/^\s*\\\[/,LO=/\\\]\s*$/,uDe=/^\s*\$\$(?!.*\$\$)/,dDe=/\$\$/,u_=class{source="";streaming=!1;closed=[];closedEnd=0;tail=[];lastParsedLength=0;update(e,n={}){let r=n.streaming??!1;if(e===this.source&&r===this.streaming)return[...this.closed,...this.tail];this.streaming=r,e.startsWith(this.source.slice(0,this.closedEnd))||this.reset(),this.source=e,this.lastParsedLength=0;let i=MO(e,this.closedEnd);i>this.closedEnd&&(this.closed.push(...this.parse(e.slice(this.closedEnd,i),this.closed.length)),this.closedEnd=i);let o=new Map(this.tail.map(s=>[s.key,s])),a=e.slice(this.closedEnd);return this.tail=this.parse(r?tse(a):a,this.closed.length).map(s=>{let l=o.get(s.key);return l&&rse(l.block,s.block)?l:s}),[...this.closed,...this.tail]}reset(){this.source="",this.closed=[],this.closedEnd=0,this.tail=[]}parse(e,n){return this.lastParsedLength+=e.length,Wae(e).map((r,i)=>{let o=String(n+i),a=this.tail.find(s=>s.key===o);return a&&rse(a.block,r)?a:{key:o,block:r}})}};function MO(t,e){let n=e,r=!1,i=!1,o=LO,a=!0,s=e;for(;s<t.length;){let l=t.indexOf(` +`,s);if(l<0)break;let c=t.slice(s,l).replace(/\r$/,"");s>e&&a&&!r&&!i&&/^\S/.test(c)&&!lDe.test(c)&&(n=s),cDe.test(c)&&!i?r=!r:r||(i?i=!o.test(c):uDe.test(c)?[i,o]=[!0,dDe]:nse.test(c)&&([i,o]=[!LO.test(c.replace(nse,"")),LO])),a=!c.trim(),s=l+1}return n}function rse(t,e){return t===e||JSON.stringify(t)===JSON.stringify(e)}var mDe="14px system-ui",p_=22.75,fDe=20,hDe=20,sse=t=>t.kind==="user"?fDe+(t.status?hDe:0):0,gDe=.7,bDe=32,yDe=14,xDe=28,wDe=21,vDe=20,kDe=58.5,CDe=13,_De=40,SDe=7.3,LDe=15,MDe=8,EDe=720,TDe=26.5,C2=t=>Math.max(120,Math.min(EDe,t-2*TDe));function ise(t){try{return QQ(t,{gfm:!0,breaks:!0}).filter(e=>e.type!=="space")}catch{return[{type:"text",raw:t,text:t}]}}function lse(t,e){let n=new Map(e.map(a=>[a.id,a])),r=[],i=[];for(let a of e){let s=t.get(a.id);s?s.version!==a.version&&i.push(a):r.push(a)}let o=[...t.keys()].filter(a=>!n.has(a));return{added:r,updated:i,removed:o}}function RDe(t,e=0){let n=t+e;return n<=1&&e===0?58:58+34*Math.min(n,3)+(n>3?34:0)}function EO(t){let e=[],n=new Set;return t.forEach((r,i)=>{if(!r.tool||r.tool.diffs?.length)return;let o=gI(r.tool);o.length||e.push({key:`unknown-${r.tool.id}-${i}`});for(let a of o)n.has(a)||(n.add(a),e.push({key:`path-${a}`,path:a}))}),e}function ose(t,e){let n=Math.max(1,Math.ceil((t.text?.length??0)/Math.max(24,Math.floor(e/8))));if(t.kind==="activity"){let r=t.items?.filter(i=>i.tool?.kind==="edit"||i.tool?.kind==="fileChange")??[];if(r.length&&!jb(t)){let i=new Set(r.flatMap(o=>o.tool?.diffs?.map(a=>a.path)??[])).size;return 14+RDe(i,EO(r).length)}return t.settled&&t.items&&Xw(t.items)?36:Math.max(34,10+26*(t.items?.length??1))}return t.kind===qf||t.kind===Nb||t.kind===Ib?35:t.kind===$b?36:t.kind===Pb?252:t.kind==="permission"?87:t.kind==="turnSummary"||t.kind==="notice"||t.kind==="plan"||t.kind==="typing"?37:24+sse(t)+n*p_}function m_(t,e){return t?.length?t.map(n=>n.type==="codespan"?n.text.replace(/\S/g,"0").replace(/ /g,"0 "):n.type==="link"&&!Y4(n.href)?n.text:"tokens"in n?m_(n.tokens,"text"in n?n.text:n.raw??""):n.raw??("text"in n?n.text:"")).join(""):e}function d_(t,e,n){let r=n.get(t);if(r===void 0){try{r=NQ(t,mDe,{whiteSpace:"pre-wrap"})}catch{r=null}n.set(t,r)}if(r)return PQ(r,e,p_).height;let i=Math.max(24,Math.floor(e/MDe));return t.split(` `).reduce((o,a)=>o+Math.max(1,Math.ceil(a.length/i)),0)*p_}function cse(t,e,n){let r=e-xDe;return t.items.reduce((i,o)=>{let a=o.tokens.filter(c=>c.type==="list"),s=m_(o.tokens.filter(c=>c.type!=="list"),a.length?"":o.text),l=s?d_(s,r,n):0;return i+Math.max(p_,l+a.reduce((c,u)=>c+cse(u,r,n),0))},0)}function ADe(t,e,n){switch(t.type){case"list":return cse(t,e,n);case"blockquote":return d_(m_(t.tokens,t.text),e-wDe,n);case"hr":return 2;case"code":{let r=t.text.split(` -`),i=r.some(o=>o.length*SDe>e-CDe);return kDe+r.length*vDe+(i?LDe:0)}case"table":return(1+t.rows.length)*_De;case"paragraph":case"text":case"heading":return d_(m_("tokens"in t?t.tokens:void 0,t.text),e,n);default:return d_(t.raw,e,n)}}function $De(t,e){e.startsWith(t.text.slice(0,t.closedEnd))||(t.closedBlocks=[],t.closedEnd=0),t.lexedLength=0;let n=_O(e,t.closedEnd);if(n>t.closedEnd){let i=e.slice(t.closedEnd,n);t.closedBlocks=[...t.closedBlocks,...ise(i)],t.lexedLength+=i.length,t.closedEnd=n}let r=e.slice(t.closedEnd);t.lexedLength+=r.length,t.blocks=[...t.closedBlocks,...ise(r)],t.text=e}function IDe(t,e,n){if(!t.text)return ose(t,e);let r=n.get(t.id);if(r||(r={text:"",blocks:[],closedBlocks:[],closedEnd:0,lexedLength:0,prepared:new Map},n.set(t.id,r)),(r.text!==t.text||r.lexedLength===0)&&($De(r,t.text),r.prepared.size>64&&r.prepared.clear()),r.blocks.length===0)return ose(t,e);let i=Math.max(80,t.kind==="user"?gDe*e-bDe:e),o=(r.blocks.length-1)*yDe;for(let a of r.blocks)o+=ADe(a,i,r.prepared);return Math.max(34,16+sse(t)+o)}function use(t,e,n=new Map,r){let i=new Float64Array(t.length),o=new Float64Array(t.length),a=0;for(let s=0;s<t.length;s+=1){i[s]=a;let l=r?.(t[s],e),c=l!==void 0&&Number.isFinite(l)&&l>0?l:IDe(t[s],e,n);o[s]=c,a+=c}return{tops:i,heights:o,totalHeight:a}}function dse(t,e){let n=new Float64Array(t.heights.length),r=new Float64Array(t.heights.length),i=0;for(let o=0;o<r.length;o+=1){n[o]=i;let a=e(o),s=a!==void 0&&a>0?a:t.heights[o];r[o]=s,i+=s}return{tops:n,heights:r,totalHeight:i}}function ase(t,e){let n=0,r=t.length;for(;n<r;){let i=n+r>>>1;t[i]<=e?n=i+1:r=i}return n}function LO(t,e,n,r=4){if(t.tops.length===0)return{first:0,last:0};let i=Math.max(0,ase(t.tops,Math.max(0,e))-1-r),o=Math.min(t.tops.length,ase(t.tops,e+n)+r);return{first:i,last:o}}function pse(t,e=ve){let n=t.summary?.harness,r=n?Hf(n,t.catalog?.find(u=>u.id===n)?.name):e("header.agentChat"),i=t.connection,o=i.startsWith("connecting:")||i==="reconnecting",a=/^(error|failed)(:|$)/i.test(i)||i==="fork failed",s=i==="disconnected"?e("header.disconnected"):o?e("header.reconnecting"):a?e("header.failed"):"";if(!s)return{title:r,status:s};let l=i.includes(":")?i.slice(i.indexOf(":")+1).trim():void 0,c;if(a&&!l)for(let u=t.rows.length-1;u>=0&&(c=t.rows[u]?.error,!c);u--);return{title:r,status:s,detail:l||c||s}}function mse(t,e){let n=fse(t),r=e?.harnesses;if(!Array.isArray(r))return n;let i=new Map,o=new Map;for(let l of r){let c=f_({probeError:l?.probeError});typeof l?.harness=="string"&&c&&o.set(l.harness,c),!(typeof l?.harness!="string"||!Array.isArray(l.models))&&i.set(l.harness,l.models.map(u=>({id:String(u.id??u.modelId),name:typeof u.name=="string"?u.name:void 0,...typeof u.unavailable=="string"?{unavailable:u.unavailable}:{}})))}let a=l=>{let c=l.unavailable??o.get(l.id);return c?{...l,unavailable:c}:l},s=n.map(l=>a(l.models.length>0?l:{...l,models:i.get(l.id)??[]}));for(let[l,c]of i)s.some(u=>u.id===l)||s.push(a({id:l,name:l,models:c}));return s}function x6(t,e){let n=t.find(i=>i.id===e?.harness)?.models??[];return n.length>0?n.map(i=>({id:i.id,name:NDe(i)})):(e?.configOptions?.find(i=>i.category==="model"||i.id==="model")?.options??[]).map(i=>({id:i.value,name:i.name||i.value}))}function NDe(t){let e=t.name||t.id;if(!t.unavailable)return e;let n=t.unavailable.length>60?`${t.unavailable.slice(0,59)}\u2026`:t.unavailable;return`${e} \xB7 unavailable: ${n}`}function MO(t){if(t?.sessionUpdate!=="available_commands_update"||!Array.isArray(t.availableCommands))return;let e=[];for(let n of t.availableCommands){let r=typeof n?.name=="string"?n.name.replace(/^\//,"").trim():"";if(!r)continue;let i=typeof n.input?.hint=="string"&&n.input.hint.trim()?n.input.hint.trim():void 0;e.push({name:r,description:typeof n.description=="string"?n.description:"",hint:i})}return e}function hse(t,e){return/^\/(\S*)$/.exec(t.slice(0,e))?.[1]}function gse(t,e){let n=e.toLowerCase(),r=[];return t.forEach((i,o)=>{let a=i.name.toLowerCase();if(!n)return r.push({match:{command:i,ranges:[]},score:0,index:o});if(a.startsWith(n))return r.push({match:{command:i,ranges:[[0,n.length]]},score:0,index:o});let s=PDe(a,n);if(s>=0)return r.push({match:{command:i,ranges:[[s,s+n.length]]},score:1,index:o});let l=jDe(a,n);l&&r.push({match:{command:i,ranges:l},score:2,index:o})}),r.sort((i,o)=>i.score-o.score||i.index-o.index).map(i=>i.match)}function PDe(t,e){for(let n=t.indexOf(e,1);n>0;n=t.indexOf(e,n+1))if("-_:.$".includes(t[n-1]))return n;return-1}function jDe(t,e){let n=[],r=0;for(let i of e){let o=t.indexOf(i,r);if(o<0)return;let a=n[n.length-1];a&&a[1]===o?a[1]=o+1:n.push([o,o+1]),r=o+1}return n}function bse(t,e,n){let r=`/${n.name} `,i=t.slice(e).replace(/^\S*\s?/,"");return{text:r+i,caret:r.length}}var ODe=new Set(["image/png","image/jpeg","image/gif","image/webp"]);async function yse(t,e,n){let r=[],i=[];for(let o of t){if(e+r.length>=10){i.push({name:o.name,reason:"tooMany"});continue}let a=await DDe(o,n).catch(()=>({name:o.name,reason:"unsupported"}));"reason"in a?i.push(a):r.push(a)}return{attachments:r,errors:i}}async function DDe(t,e){let n=t.name||"file",r=crypto.randomUUID();if(ODe.has(t.type))return e?t.size>5242880?{name:n,reason:"tooLarge"}:{id:r,kind:"image",name:n,mimeType:t.type,size:t.size,data:BDe(new Uint8Array(await t.arrayBuffer()))}:{name:n,reason:"imagesUnsupported"};if(t.size>262144)return{name:n,reason:"tooLarge"};let i=FDe(new Uint8Array(await t.arrayBuffer()));return i===void 0?{name:n,reason:"unsupported"}:{id:r,kind:"text",name:n,mimeType:t.type||"text/plain",size:t.size,text:i}}function FDe(t){try{let e=new TextDecoder("utf-8",{fatal:!0}).decode(t);return e.includes("\0")?void 0:e}catch{return}}function BDe(t){let e="";for(let n=0;n<t.length;n+=32768)e+=String.fromCharCode(...t.subarray(n,n+32768));return btoa(e)}function EO(t,e){let n=e.filter(r=>r.kind==="text").map(r=>{let i=r.text??"",o="`".repeat(Math.max(3,zDe(i)+1));return`${r.name} +`),i=r.some(o=>o.length*SDe>e-CDe);return kDe+r.length*vDe+(i?LDe:0)}case"table":return(1+t.rows.length)*_De;case"paragraph":case"text":case"heading":return d_(m_("tokens"in t?t.tokens:void 0,t.text),e,n);default:return d_(t.raw,e,n)}}function $De(t,e){e.startsWith(t.text.slice(0,t.closedEnd))||(t.closedBlocks=[],t.closedEnd=0),t.lexedLength=0;let n=MO(e,t.closedEnd);if(n>t.closedEnd){let i=e.slice(t.closedEnd,n);t.closedBlocks=[...t.closedBlocks,...ise(i)],t.lexedLength+=i.length,t.closedEnd=n}let r=e.slice(t.closedEnd);t.lexedLength+=r.length,t.blocks=[...t.closedBlocks,...ise(r)],t.text=e}function IDe(t,e,n){if(!t.text)return ose(t,e);let r=n.get(t.id);if(r||(r={text:"",blocks:[],closedBlocks:[],closedEnd:0,lexedLength:0,prepared:new Map},n.set(t.id,r)),(r.text!==t.text||r.lexedLength===0)&&($De(r,t.text),r.prepared.size>64&&r.prepared.clear()),r.blocks.length===0)return ose(t,e);let i=Math.max(80,t.kind==="user"?gDe*e-bDe:e),o=(r.blocks.length-1)*yDe;for(let a of r.blocks)o+=ADe(a,i,r.prepared);return Math.max(34,16+sse(t)+o)}function use(t,e,n=new Map,r){let i=new Float64Array(t.length),o=new Float64Array(t.length),a=0;for(let s=0;s<t.length;s+=1){i[s]=a;let l=r?.(t[s],e),c=l!==void 0&&Number.isFinite(l)&&l>0?l:IDe(t[s],e,n);o[s]=c,a+=c}return{tops:i,heights:o,totalHeight:a}}function dse(t,e){let n=new Float64Array(t.heights.length),r=new Float64Array(t.heights.length),i=0;for(let o=0;o<r.length;o+=1){n[o]=i;let a=e(o),s=a!==void 0&&a>0?a:t.heights[o];r[o]=s,i+=s}return{tops:n,heights:r,totalHeight:i}}function ase(t,e){let n=0,r=t.length;for(;n<r;){let i=n+r>>>1;t[i]<=e?n=i+1:r=i}return n}function TO(t,e,n,r=4){if(t.tops.length===0)return{first:0,last:0};let i=Math.max(0,ase(t.tops,Math.max(0,e))-1-r),o=Math.min(t.tops.length,ase(t.tops,e+n)+r);return{first:i,last:o}}function pse(t,e=we){let n=t.summary?.harness,r=n?Gf(n,t.catalog?.find(u=>u.id===n)?.name):e("header.agentChat"),i=t.connection,o=i.startsWith("connecting:")||i==="reconnecting",a=/^(error|failed)(:|$)/i.test(i)||i==="fork failed",s=i==="disconnected"?e("header.disconnected"):o?e("header.reconnecting"):a?e("header.failed"):"";if(!s)return{title:r,status:s};let l=i.includes(":")?i.slice(i.indexOf(":")+1).trim():void 0,c;if(a&&!l)for(let u=t.rows.length-1;u>=0&&(c=t.rows[u]?.error,!c);u--);return{title:r,status:s,detail:l||c||s}}function mse(t,e){let n=fse(t),r=e?.harnesses;if(!Array.isArray(r))return n;let i=new Map,o=new Map;for(let l of r){let c=f_({probeError:l?.probeError});typeof l?.harness=="string"&&c&&o.set(l.harness,c),!(typeof l?.harness!="string"||!Array.isArray(l.models))&&i.set(l.harness,l.models.map(u=>({id:String(u.id??u.modelId),name:typeof u.name=="string"?u.name:void 0,...typeof u.unavailable=="string"?{unavailable:u.unavailable}:{}})))}let a=l=>{let c=l.unavailable??o.get(l.id);return c?{...l,unavailable:c}:l},s=n.map(l=>a(l.models.length>0?l:{...l,models:i.get(l.id)??[]}));for(let[l,c]of i)s.some(u=>u.id===l)||s.push(a({id:l,name:l,models:c}));return s}function w6(t,e){let n=t.find(i=>i.id===e?.harness)?.models??[];return n.length>0?n.map(i=>({id:i.id,name:NDe(i)})):(e?.configOptions?.find(i=>i.category==="model"||i.id==="model")?.options??[]).map(i=>({id:i.value,name:i.name||i.value}))}function NDe(t){let e=t.name||t.id;if(!t.unavailable)return e;let n=t.unavailable.length>60?`${t.unavailable.slice(0,59)}\u2026`:t.unavailable;return`${e} \xB7 unavailable: ${n}`}function RO(t){if(t?.sessionUpdate!=="available_commands_update"||!Array.isArray(t.availableCommands))return;let e=[];for(let n of t.availableCommands){let r=typeof n?.name=="string"?n.name.replace(/^\//,"").trim():"";if(!r)continue;let i=typeof n.input?.hint=="string"&&n.input.hint.trim()?n.input.hint.trim():void 0;e.push({name:r,description:typeof n.description=="string"?n.description:"",hint:i})}return e}function hse(t,e){return/^\/(\S*)$/.exec(t.slice(0,e))?.[1]}function gse(t,e){let n=e.toLowerCase(),r=[];return t.forEach((i,o)=>{let a=i.name.toLowerCase();if(!n)return r.push({match:{command:i,ranges:[]},score:0,index:o});if(a.startsWith(n))return r.push({match:{command:i,ranges:[[0,n.length]]},score:0,index:o});let s=PDe(a,n);if(s>=0)return r.push({match:{command:i,ranges:[[s,s+n.length]]},score:1,index:o});let l=jDe(a,n);l&&r.push({match:{command:i,ranges:l},score:2,index:o})}),r.sort((i,o)=>i.score-o.score||i.index-o.index).map(i=>i.match)}function PDe(t,e){for(let n=t.indexOf(e,1);n>0;n=t.indexOf(e,n+1))if("-_:.$".includes(t[n-1]))return n;return-1}function jDe(t,e){let n=[],r=0;for(let i of e){let o=t.indexOf(i,r);if(o<0)return;let a=n[n.length-1];a&&a[1]===o?a[1]=o+1:n.push([o,o+1]),r=o+1}return n}function bse(t,e,n){let r=`/${n.name} `,i=t.slice(e).replace(/^\S*\s?/,"");return{text:r+i,caret:r.length}}var ODe=new Set(["image/png","image/jpeg","image/gif","image/webp"]);async function yse(t,e,n){let r=[],i=[];for(let o of t){if(e+r.length>=10){i.push({name:o.name,reason:"tooMany"});continue}let a=await DDe(o,n).catch(()=>({name:o.name,reason:"unsupported"}));"reason"in a?i.push(a):r.push(a)}return{attachments:r,errors:i}}async function DDe(t,e){let n=t.name||"file",r=crypto.randomUUID();if(ODe.has(t.type))return e?t.size>5242880?{name:n,reason:"tooLarge"}:{id:r,kind:"image",name:n,mimeType:t.type,size:t.size,data:BDe(new Uint8Array(await t.arrayBuffer()))}:{name:n,reason:"imagesUnsupported"};if(t.size>262144)return{name:n,reason:"tooLarge"};let i=FDe(new Uint8Array(await t.arrayBuffer()));return i===void 0?{name:n,reason:"unsupported"}:{id:r,kind:"text",name:n,mimeType:t.type||"text/plain",size:t.size,text:i}}function FDe(t){try{let e=new TextDecoder("utf-8",{fatal:!0}).decode(t);return e.includes("\0")?void 0:e}catch{return}}function BDe(t){let e="";for(let n=0;n<t.length;n+=32768)e+=String.fromCharCode(...t.subarray(n,n+32768));return btoa(e)}function AO(t,e){let n=e.filter(r=>r.kind==="text").map(r=>{let i=r.text??"",o="`".repeat(Math.max(3,zDe(i)+1));return`${r.name} ${o}${qDe(r.name)} ${i}${i.endsWith(` `)?"":` `}${o}`});return[t,...n].filter(Boolean).join(` -`)}function xse(t,e){let n=[],r=EO(t,e);r&&n.push({type:"text",text:r});for(let i of e)i.kind==="image"&&i.data&&n.push({type:"image",mimeType:i.mimeType,data:i.data});return n}function zDe(t){let e=0;for(let n of t.match(/`+/g)??[])e=Math.max(e,n.length);return e}function qDe(t){let e=t.lastIndexOf("."),n=e>0?t.slice(e+1).toLowerCase():"";return/^[a-z0-9+#-]{1,12}$/.test(n)?n:""}function TO(t){return t?[...t.files]:[]}function RO(t){return!!(t&&[...t.types].includes("Files"))}var HDe=new Set(["open","draft","merged","closed"]),GDe=new Set(["passing","failing","pending"]),ka=t=>typeof t=="string"&&t?t:void 0,C2=t=>t==="local"||t==="cloud"?t:void 0,UDe="pinned";function h_(t){let e=Number(t.pendingPermissions??0);return{sessionId:t.sessionId,displayTitle:AO(t),title:t.title,name:t.name,harness:t.harness,status:t.status,model:t.model,cwd:typeof t.cwd=="string"?t.cwd:void 0,updatedAt:typeof t.updatedAt=="number"?t.updatedAt:void 0,pendingPermissions:Number.isFinite(e)?e:0,unread:t.unread===!0,host:ka(t.host),peer:ka(t.peer),hostKind:C2(t.hostKind),branch:ka(t.branch),worktree:ka(t.worktree),pinned:t.pinned===!0||Array.isArray(t.tags)&&t.tags.includes(UDe),pullRequest:VDe(t.pullRequest),preview:ka(t.preview)}}function VDe(t){if(!(!Number.isInteger(t?.number)||t.number<=0||!ka(t.title)||!HDe.has(t.state)))return{number:t.number,title:t.title,state:t.state,reviewReady:t.reviewReady===!0||void 0,checks:GDe.has(t.checks)?t.checks:void 0}}function AO(t,e=ve){let n=t.name??"",r=n.split("/").pop()??n,i=o=>!!o&&r.startsWith(o)&&/^(?:-(?:fork|\d+))*$/.test(r.slice(o.length));return n&&!i(t.harness)&&!i(t.family)?n:t.title?.trim()||t.lastPrompt?.trim()||e("sidebar.newChat")}function wi(t,e=ve){let n=(t??"").replace(/\/+$/,"");if(!n)return e("project.noFolder");let r=n.split("/").filter(Boolean);return r.length===2&&(r[0]==="Users"||r[0]==="home")?"~":r[r.length-1]??n}function wse(t){return t.replace(/^\/(?:Users|home)\/[^/]+(?=\/|$)/,"~")}function _2(t,e){if((t.pendingPermissions??0)>0||t.status==="waiting")return"input";if(t.status==="running")return"running";if(t.status==="disconnected"||t.status==="unreachable")return"error";if(t.unread&&!e)return"unread"}var S2="acp.session.fork";function L2(t,e){let n=t?._meta?.acpmux?.operations;return Array.isArray(n)&&n.includes(e)}function vse(t){if(!t)return[];let e=t.split(` -`);return e[e.length-1]===""&&e.pop(),e.map(n=>n.endsWith("\r")?n.slice(0,-1):n)}function ZDe(t,e){let n=t.length,r=e.length,i=Math.min(n+r,1e3),o=i+1,a=new Int32Array(2*i+3),s=[];for(let l=0;l<=i;l+=1){s.push(a.slice());for(let c=-l;c<=l;c+=2){let u=c===-l||c!==l&&a[o+c-1]<a[o+c+1]?a[o+c+1]:a[o+c-1]+1,d=u-c;for(;u<n&&d<r&&t[u]===e[d];)u+=1,d+=1;if(a[o+c]=u,u>=n&&d>=r)return WDe(s,t,e,o,l)}}}function WDe(t,e,n,r,i){let o=[],a=e.length,s=n.length;for(let l=i;l>0;l-=1){let c=t[l],u=a-s,d=u===-l||u!==l&&c[r+u-1]<c[r+u+1],p=d?u+1:u-1,m=c[r+p],f=m-p;for(;a>m&&s>f;)a-=1,s-=1,o.push({type:"context",text:e[a]});d?(s-=1,o.push({type:"add",text:n[s]})):(a-=1,o.push({type:"del",text:e[a]}))}for(;a>0&&s>0;)a-=1,s-=1,o.push({type:"context",text:e[a]});return o.reverse()}function $O(t,e){let n=vse(t),r=vse(e),i=0;for(;i<n.length&&i<r.length&&n[i]===r[i];)i+=1;let o=0;for(;o<n.length-i&&o<r.length-i&&n[n.length-1-o]===r[r.length-1-o];)o+=1;let a=n.slice(i,n.length-o),s=r.slice(i,r.length-o),l=ZDe(a,s)??[...a.map(c=>({type:"del",text:c})),...s.map(c=>({type:"add",text:c}))];return[...n.slice(0,i).map(c=>({type:"context",text:c})),...l,...n.slice(n.length-o).map(c=>({type:"context",text:c}))]}function IO(t,e=1,n=3){let r=[],i=e,o=e;for(let u of t)u.type==="context"?r.push({...u,oldLine:i++,newLine:o++}):u.type==="del"?r.push({...u,oldLine:i++}):r.push({...u,newLine:o++});let a=r.flatMap((u,d)=>u.type==="context"?[]:[d]),s=[],l=-1,c=-1;for(let u of a){if(l>=0&&u-n<=c+1){c=Math.min(r.length-1,u+n);continue}l>=0&&s.push({lines:r.slice(l,c+1)}),l=Math.max(0,u-n),c=Math.min(r.length-1,u+n)}return l>=0&&s.push({lines:r.slice(l,c+1)}),s}function N0(t,e){let n=t.findIndex(o=>o.id===e);if(n<0)return[];let r=n;for(;r>0&&t[r].kind!=="user";)r-=1;let i=n+1;for(;i<t.length&&t[i].kind!=="user";)i+=1;return t.slice(r,i)}function KDe(t){if(t.length===0)return"";let e=t.map(r=>r.split("/").slice(0,-1)),n=0;for(;e.every(r=>n<r.length&&r[n]===e[0][n]);)n+=1;return n?`${e[0].slice(0,n).join("/")}/`:""}function Sd(t){return w6(t.flatMap(e=>e.kind==="activity"?(e.items??[]).flatMap(n=>n.tool??[]):[]))}function w6(t){let e=new Map;for(let i of t)for(let o of i.diffs??[]){let a=e.get(o.path);a||(a={path:o.path,displayPath:o.path,edits:[],additions:0,deletions:0,created:o.oldText==null},e.set(o.path,a)),a.edits.push(XDe(i.id,o))}let n=[...e.values()],r=KDe(n.map(i=>i.path));for(let i of n){i.displayPath=i.path.slice(r.length);for(let o of i.edits)for(let a of o.hunks)for(let s of a.lines)s.type==="add"?i.additions+=1:s.type==="del"&&(i.deletions+=1)}return n}function XDe(t,e){let n=e.oldText==null||e.line!==void 0;return{toolId:t,hunks:IO($O(e.oldText,e.newText),e.line??1),numbered:n}}function M2(t,e){let n=t.displayPath,r=[`diff --git a/${n} b/${n}`,t.created?"--- /dev/null":`--- a/${n}`,t.deleted?"+++ /dev/null":`+++ b/${n}`];for(let i of e.hunks){let o=i.lines.filter(c=>c.type!=="add"),a=i.lines.filter(c=>c.type!=="del"),s=o[0]?.oldLine??Math.max(0,(a[0]?.newLine??1)-1),l=a[0]?.newLine??Math.max(0,(o[0]?.oldLine??1)-1);r.push(`@@ -${s},${o.length} +${l},${a.length} @@`);for(let c of i.lines)r.push(`${c.type==="add"?"+":c.type==="del"?"-":" "}${c.text}`)}return`${r.join(` +`)}function xse(t,e){let n=[],r=AO(t,e);r&&n.push({type:"text",text:r});for(let i of e)i.kind==="image"&&i.data&&n.push({type:"image",mimeType:i.mimeType,data:i.data});return n}function zDe(t){let e=0;for(let n of t.match(/`+/g)??[])e=Math.max(e,n.length);return e}function qDe(t){let e=t.lastIndexOf("."),n=e>0?t.slice(e+1).toLowerCase():"";return/^[a-z0-9+#-]{1,12}$/.test(n)?n:""}function $O(t){return t?[...t.files]:[]}function IO(t){return!!(t&&[...t.types].includes("Files"))}var HDe=new Set(["open","draft","merged","closed"]),GDe=new Set(["passing","failing","pending"]),ka=t=>typeof t=="string"&&t?t:void 0,_2=t=>t==="local"||t==="cloud"?t:void 0,UDe="pinned";function h_(t){let e=Number(t.pendingPermissions??0);return{sessionId:t.sessionId,displayTitle:NO(t),title:t.title,name:t.name,harness:t.harness,status:t.status,model:t.model,cwd:typeof t.cwd=="string"?t.cwd:void 0,updatedAt:typeof t.updatedAt=="number"?t.updatedAt:void 0,pendingPermissions:Number.isFinite(e)?e:0,unread:t.unread===!0,host:ka(t.host),peer:ka(t.peer),hostKind:_2(t.hostKind),branch:ka(t.branch),worktree:ka(t.worktree),pinned:t.pinned===!0||Array.isArray(t.tags)&&t.tags.includes(UDe),pullRequest:VDe(t.pullRequest),preview:ka(t.preview)}}function VDe(t){if(!(!Number.isInteger(t?.number)||t.number<=0||!ka(t.title)||!HDe.has(t.state)))return{number:t.number,title:t.title,state:t.state,reviewReady:t.reviewReady===!0||void 0,checks:GDe.has(t.checks)?t.checks:void 0}}function NO(t,e=we){let n=t.name??"",r=n.split("/").pop()??n,i=o=>!!o&&r.startsWith(o)&&/^(?:-(?:fork|\d+))*$/.test(r.slice(o.length));return n&&!i(t.harness)&&!i(t.family)?n:t.title?.trim()||t.lastPrompt?.trim()||e("sidebar.newChat")}function wi(t,e=we){let n=(t??"").replace(/\/+$/,"");if(!n)return e("project.noFolder");let r=n.split("/").filter(Boolean);return r.length===2&&(r[0]==="Users"||r[0]==="home")?"~":r[r.length-1]??n}function wse(t){return t.replace(/^\/(?:Users|home)\/[^/]+(?=\/|$)/,"~")}function S2(t,e){if((t.pendingPermissions??0)>0||t.status==="waiting")return"input";if(t.status==="running")return"running";if(t.status==="disconnected"||t.status==="unreachable")return"error";if(t.unread&&!e)return"unread"}var L2="acp.session.fork";function M2(t,e){let n=t?._meta?.acpmux?.operations;return Array.isArray(n)&&n.includes(e)}function vse(t){if(!t)return[];let e=t.split(` +`);return e[e.length-1]===""&&e.pop(),e.map(n=>n.endsWith("\r")?n.slice(0,-1):n)}function ZDe(t,e){let n=t.length,r=e.length,i=Math.min(n+r,1e3),o=i+1,a=new Int32Array(2*i+3),s=[];for(let l=0;l<=i;l+=1){s.push(a.slice());for(let c=-l;c<=l;c+=2){let u=c===-l||c!==l&&a[o+c-1]<a[o+c+1]?a[o+c+1]:a[o+c-1]+1,d=u-c;for(;u<n&&d<r&&t[u]===e[d];)u+=1,d+=1;if(a[o+c]=u,u>=n&&d>=r)return WDe(s,t,e,o,l)}}}function WDe(t,e,n,r,i){let o=[],a=e.length,s=n.length;for(let l=i;l>0;l-=1){let c=t[l],u=a-s,d=u===-l||u!==l&&c[r+u-1]<c[r+u+1],p=d?u+1:u-1,m=c[r+p],f=m-p;for(;a>m&&s>f;)a-=1,s-=1,o.push({type:"context",text:e[a]});d?(s-=1,o.push({type:"add",text:n[s]})):(a-=1,o.push({type:"del",text:e[a]}))}for(;a>0&&s>0;)a-=1,s-=1,o.push({type:"context",text:e[a]});return o.reverse()}function PO(t,e){let n=vse(t),r=vse(e),i=0;for(;i<n.length&&i<r.length&&n[i]===r[i];)i+=1;let o=0;for(;o<n.length-i&&o<r.length-i&&n[n.length-1-o]===r[r.length-1-o];)o+=1;let a=n.slice(i,n.length-o),s=r.slice(i,r.length-o),l=ZDe(a,s)??[...a.map(c=>({type:"del",text:c})),...s.map(c=>({type:"add",text:c}))];return[...n.slice(0,i).map(c=>({type:"context",text:c})),...l,...n.slice(n.length-o).map(c=>({type:"context",text:c}))]}function jO(t,e=1,n=3){let r=[],i=e,o=e;for(let u of t)u.type==="context"?r.push({...u,oldLine:i++,newLine:o++}):u.type==="del"?r.push({...u,oldLine:i++}):r.push({...u,newLine:o++});let a=r.flatMap((u,d)=>u.type==="context"?[]:[d]),s=[],l=-1,c=-1;for(let u of a){if(l>=0&&u-n<=c+1){c=Math.min(r.length-1,u+n);continue}l>=0&&s.push({lines:r.slice(l,c+1)}),l=Math.max(0,u-n),c=Math.min(r.length-1,u+n)}return l>=0&&s.push({lines:r.slice(l,c+1)}),s}function j0(t,e){let n=t.findIndex(o=>o.id===e);if(n<0)return[];let r=n;for(;r>0&&t[r].kind!=="user";)r-=1;let i=n+1;for(;i<t.length&&t[i].kind!=="user";)i+=1;return t.slice(r,i)}function KDe(t){if(t.length===0)return"";let e=t.map(r=>r.split("/").slice(0,-1)),n=0;for(;e.every(r=>n<r.length&&r[n]===e[0][n]);)n+=1;return n?`${e[0].slice(0,n).join("/")}/`:""}function Sd(t){return v6(t.flatMap(e=>e.kind==="activity"?(e.items??[]).flatMap(n=>n.tool??[]):[]))}function v6(t){let e=new Map;for(let i of t)for(let o of i.diffs??[]){let a=e.get(o.path);a||(a={path:o.path,displayPath:o.path,edits:[],additions:0,deletions:0,created:o.oldText==null},e.set(o.path,a)),a.edits.push(XDe(i.id,o))}let n=[...e.values()],r=KDe(n.map(i=>i.path));for(let i of n){i.displayPath=i.path.slice(r.length);for(let o of i.edits)for(let a of o.hunks)for(let s of a.lines)s.type==="add"?i.additions+=1:s.type==="del"&&(i.deletions+=1)}return n}function XDe(t,e){let n=e.oldText==null||e.line!==void 0;return{toolId:t,hunks:jO(PO(e.oldText,e.newText),e.line??1),numbered:n}}function E2(t,e){let n=t.displayPath,r=[`diff --git a/${n} b/${n}`,t.created?"--- /dev/null":`--- a/${n}`,t.deleted?"+++ /dev/null":`+++ b/${n}`];for(let i of e.hunks){let o=i.lines.filter(c=>c.type!=="add"),a=i.lines.filter(c=>c.type!=="del"),s=o[0]?.oldLine??Math.max(0,(a[0]?.newLine??1)-1),l=a[0]?.newLine??Math.max(0,(o[0]?.oldLine??1)-1);r.push(`@@ -${s},${o.length} +${l},${a.length} @@`);for(let c of i.lines)r.push(`${c.type==="add"?"+":c.type==="del"?"-":" "}${c.text}`)}return`${r.join(` `)} -`}var E2=(t,e,n)=>{let r=t.edits[e].toolId,i=t.edits.slice(0,e).filter(o=>o.toolId===r).length;return`${r}\0${t.path}\0${i}\0${n}`};function kse(t,e,n){let r=n.lines.filter(l=>l.type!=="add"),i=n.lines.filter(l=>l.type!=="del"),o=(l,c)=>`${l[0]?.[c]??0},${l.length}`,a=e.numbered?`@@ -${o(r,"oldLine")} +${o(i,"newLine")} @@`:"@@",s=n.lines.map(l=>`${l.type==="add"?"+":l.type==="del"?"-":" "}${l.text}`);return[`--- ${t.path}`,`+++ ${t.path}`,a,...s].join(` +`}var T2=(t,e,n)=>{let r=t.edits[e].toolId,i=t.edits.slice(0,e).filter(o=>o.toolId===r).length;return`${r}\0${t.path}\0${i}\0${n}`};function kse(t,e,n){let r=n.lines.filter(l=>l.type!=="add"),i=n.lines.filter(l=>l.type!=="del"),o=(l,c)=>`${l[0]?.[c]??0},${l.length}`,a=e.numbered?`@@ -${o(r,"oldLine")} +${o(i,"newLine")} @@`:"@@",s=n.lines.map(l=>`${l.type==="add"?"+":l.type==="del"?"-":" "}${l.text}`);return[`--- ${t.path}`,`+++ ${t.path}`,a,...s].join(` `)}function Cse(t,e){return[t.length===1?"I reviewed your changes and rejected this one. Please revert it and keep your other changes:":`I reviewed your changes and rejected these ${t.length}. Please revert them and keep your other changes:`,"",...YDe(t),...e?.trim()?["",e.trim()]:[]].join(` `)}function YDe(t){let e=Math.max(0,...t.map(r=>Math.max(0,...(r.match(/`+/g)??[]).map(i=>i.length)))),n="`".repeat(Math.max(3,e+1));return[`${n}diff`,t.join(` -`),n]}var NO=t=>typeof t=="string"&&t?t:void 0,QDe=t=>typeof t=="number"&&Number.isFinite(t)&&t>0?t:0;function _se(t){if(!t||typeof t!="object"||!("checkpointId"in t))return;let e=t,n=NO(e.checkpointId)??null,r=NO(e.endCheckpointId),i=NO(e.checkpointError);return{from:n,...r?{to:r}:{},...i?{reason:i}:{}}}async function Sse(t,e,n){let r=N0([...t],e).find(s=>s.kind==="turnSummary");if(!r)throw new Error("The turn has not ended");let i=r.checkpoint;if(!i)return{unsupported:!0};if(!i.from||!i.to)return null;let o=await n(i.from,i.to),a=o&&typeof o=="object"?o:{};return{checkpoint_id:`${i.from}..${i.to}`,complete:a.complete===!0&&QDe(a.files_omitted)===0,diff:o}}var JDe=65536,vi={prepare:"_acpmux/handoff_prepare",get:"_acpmux/handoff_get",draft:"_acpmux/handoff_draft",start:"_acpmux/handoff_start",discard:"_acpmux/handoff_discard"};function Mse(t){return Object.values(vi).every(e=>L2(t,e))}function T2(t){if(!t||typeof t!="object"||Array.isArray(t))throw new Error(ve("error.invalid.continuationResponse"));return t}function rm(t){if(typeof t!="string"||!t.trim())throw new Error(ve("error.invalid.continuationResponse"));return t}function Lse(t){let e=T2(t),n=T2(e.enforcement);if(n.label!=="native_policy"||n.isolation!=="unverified"||!Array.isArray(e.coverage))throw new Error(ve("error.unsupported.continuationCoverage"));if(rm(n.policy),n.detail!==null&&typeof n.detail!="string")throw new Error(ve("error.invalid.enforcementReport"));for(let r of e.coverage)if(!r||!["transcript","tool_output","plan","files","memory","checkpoint","model"].includes(r.item)||!["included","summarized","omitted","unavailable"].includes(r.status)||r.detail!==null&&typeof r.detail!="string")throw new Error(ve("error.invalid.continuationCoverage"));return{sessionId:rm(e.sessionId),harness:rm(e.harness),cwd:rm(e.cwd),coverage:e.coverage,enforcement:n}}function P0(t){let e=T2(t),n=Lse(e.source),r=Lse(e.target),i=T2(e.capsule),o=T2(i.context);if(!Number.isSafeInteger(e.revision)||e.revision<1||n.sessionId===r.sessionId||n.cwd!==r.cwd||n.harness===r.harness||!["draft","starting","started","discarded"].includes(e.state)||!Number.isSafeInteger(e.source.seq)||e.source.seq<0||typeof i.text!="string"||i.maxBytes!==JDe||new TextEncoder().encode(i.text).length>i.maxBytes||!Array.isArray(i.memoryRefs)||i.memoryRefs.some(a=>typeof a!="string")||typeof o.truncated!="boolean"||[o.fromSeq,o.toSeq,o.bytes,o.totalBytes].some(a=>!Number.isSafeInteger(a)||a<0)||o.fromSeq>o.toSeq||o.bytes>o.totalBytes)throw new Error(ve("error.invalid.continuationResponse"));if(i.checkpoint!==null){let a=T2(i.checkpoint);if(rm(a.ref),a.attestedBy!=="user"||typeof a.attestedAt!="string")throw new Error(ve("error.invalid.checkpointAttestation"))}for(let a of["promptId","turnId"])if(e[a]!==null&&typeof e[a]!="string")throw new Error(ve("error.invalid.continuationResponse"));return rm(e.handoffId),rm(e.handoffKey),rm(e.createdAt),rm(e.updatedAt),{...e,source:{...n,seq:e.source.seq},target:r}}var im=class extends Error{reason;code;data;handoff;constructor(e){super(e.message??"acpmux request failed"),this.code=e.code,this.data=e.data;let n=e.data&&typeof e.data=="object"?e.data:void 0;if(this.reason=typeof n?.reason=="string"?n.reason:void 0,n?.handoff)try{this.handoff=P0(n.handoff)}catch{}}};var eFe={transcript:"handoff.transcript",tool_output:"handoff.tool_output",plan:"handoff.plan",files:"handoff.files",model:"handoff.model",included:"handoff.included",summarized:"handoff.summarized",omitted:"handoff.omitted",unavailable:"handoff.unavailable",continueIn:"handoff.continueIn",review:"handoff.review",fromTo:"handoff.fromTo",context:"handoff.context",checkpoint:"handoff.checkpoint",checkpointPlaceholder:"handoff.checkpointPlaceholder",checkpointConfirm:"handoff.checkpointConfirm",memory:"handoff.memory",memoryHelp:"handoff.memoryHelp",starting:"handoff.starting",continueTarget:"handoff.continueTarget",returnSource:"handoff.returnSource",discard:"handoff.discard",saving:"handoff.saving",reload:"handoff.reload",coverage:"handoff.coverage",source:"handoff.source",target:"handoff.target",nativePolicy:"handoff.nativePolicy",unverified:"handoff.unverified",unverifiedDetail:"handoff.unverifiedDetail",reviewContext:"handoff.reviewContext",tooLarge:"handoff.tooLarge",saveCheckpoint:"handoff.saveCheckpoint",checkpointSingle:"handoff.checkpointSingle",memoryLimit:"handoff.memoryLimit",failedReview:"handoff.failedReview"};function g_(t=ve){return Object.fromEntries(Object.entries(eFe).map(([e,n])=>[e,t(n)]))}function v6(t,...e){let n=0;return t.replace(/%@/g,()=>e[n++]??"")}function Ese(t){for(let e=0;e<t.length;e+=1){let n=t.charCodeAt(e);if(n<32||n===127)return!0}return!1}function b_(t,e,n,r,i=65536,o=g_()){let a=e.trim(),s=[...new Set(r.split(/\r?\n/).map(l=>l.trim()).filter(Boolean))];if(!t.trim())throw new Error(o.reviewContext);if(new TextEncoder().encode(t).length>i)throw new Error(v6(o.tooLarge,String(i)));if(!a||!n)throw new Error(o.saveCheckpoint);if(a.length>2048||Ese(a))throw new Error(o.checkpointSingle);if(s.length>32||s.some(l=>l.length>2048||Ese(l)))throw new Error(o.memoryLimit);return{capsule:t,checkpoint:{reference:a,confirmed:!0},approvedMemoryReferences:s}}function Tse(t){if(!t||typeof t!="object")return;let e=t;return e.label==="native_policy"&&e.isolation==="unverified"&&typeof e.policy=="string"&&e.policy.trim()&&(e.detail===null||typeof e.detail=="string")?e:void 0}var y_=class{constructor(e,n,r=()=>crypto.randomUUID()){this.request=e;this.changed=n;this.key=r}request;changed;key;state={};sessionId;selection=0;prepareAttempt;preparing;starting;ownRevisions=new Map;uncertainDraft;saved=Promise.resolve();select(e){this.sessionId=e,this.selection+=1,this.state={}}disconnect(){this.state.ready=!1,this.changed()}adopt(e){(this.sessionId===e.source.sessionId||this.sessionId===e.target.sessionId)&&(this.state.record=e)}async refresh(){let e=this.sessionId,n=this.selection;if(!e)return;let r=await this.request(vi.get,{sessionId:e});n===this.selection&&(this.state={ready:!0,record:r===null?void 0:P0(r)},this.changed())}prepare(e){if(this.preparing&&this.preparing.sessionId===this.sessionId&&this.preparing.harness===e)return this.preparing.promise;let n=this.prepareOnce(e),r={sessionId:this.sessionId,harness:e,promise:n};return this.preparing=r,n.finally(()=>{this.preparing===r&&(this.preparing=void 0)}).catch(()=>{}),n}async prepareOnce(e){let n=this.sessionId;if(!n||!this.state.ready||this.state.busy)return;let r=this.selection;this.state.error=void 0,this.state.busy="preparing",this.changed();try{let i=this.state.record;if(i?.state==="draft"&&i.source.sessionId===n&&i.target.harness===e)return i;let o=this.prepareAttempt;this.prepareAttempt=o?.sessionId===n&&o.harness===e?o:{sessionId:n,harness:e,handoffKey:this.key()};let a=P0(await this.request(vi.prepare,this.prepareAttempt));return this.prepareAttempt=void 0,r!==this.selection?void 0:(this.adopt(a),a)}catch(i){throw r===this.selection&&(this.state.error=i instanceof Error?i.message:ve("handoff.error.prepare")),i}finally{r===this.selection&&(this.state.busy=void 0,this.changed())}}save(e){if(!this.state.ready||this.state.conflict)return Promise.resolve(void 0);let n=this.state.record?.handoffId,r=this.selection,i=async()=>{let a=this.state.record;if(!a||a.handoffId!==n||r!==this.selection||a.state!=="draft"||!this.state.ready||this.state.conflict)return;if(new TextEncoder().encode(e.capsule).length>a.capsule.maxBytes)throw new Error(ve("handoff.error.tooLarge"));this.state.busy="saving",this.state.error=void 0,this.changed();let s=e.revision??a.revision,l=this.ownRevisions.get(a.handoffId);for(;l?.has(s)&&l.get(s)>s;)s=l.get(s);let c={handoffId:n,revision:s,draftKey:this.key(),capsule:{text:e.capsule,memoryRefs:e.approvedMemoryReferences},checkpoint:e.checkpoint?.confirmed?{ref:e.checkpoint.reference,attest:!0}:null},u=JSON.stringify({id:n,review:e});this.uncertainDraft?.content===u&&(c=this.uncertainDraft.params),this.uncertainDraft={content:u,params:c};try{let d;try{d=await this.request(vi.draft,c)}catch(m){if(m instanceof im||!this.state.ready||r!==this.selection)throw m;await this.request(vi.get,{handoffId:n}),d=await this.request(vi.draft,c)}let p=P0(d);if(this.uncertainDraft=void 0,p.revision>c.revision){let m=this.ownRevisions.get(a.handoffId)??new Map;m.set(c.revision,p.revision),this.ownRevisions.set(a.handoffId,m)}return r===this.selection&&this.adopt(p),p}catch(d){throw r===this.selection&&(this.state.error=d instanceof Error?d.message:ve("handoff.error.save"),this.state.conflict=d instanceof im&&d.reason==="stale_revision"),d}finally{r===this.selection&&(this.state.busy=void 0,this.changed())}},o=this.saved.then(i);return this.saved=o.catch(()=>{}),o}start(e){if(this.starting&&this.starting.selection===this.selection)return this.starting.promise;let n=this.startOnce(e),r={selection:this.selection,promise:n};return this.starting=r,n.finally(()=>{this.starting===r&&(this.starting=void 0)}).catch(()=>{}),n}async startOnce(e){await this.saved;let n=this.state.record;if(!n||!this.state.ready||this.sessionId!==n.target.sessionId||this.state.busy||this.state.conflict||this.state.receipt)return;b_(e.capsule,e.checkpoint.reference,e.checkpoint.confirmed,e.approvedMemoryReferences.join(` -`),n.capsule.maxBytes);let r=this.selection,i={handoffId:n.handoffId,revision:e.revision??n.revision,promptId:n.promptId??n.handoffId,capsule:{text:e.capsule,memoryRefs:e.approvedMemoryReferences},checkpoint:{ref:e.checkpoint.reference,attest:!0}};this.state.busy="starting",this.state.error=void 0,this.changed();try{let o;try{o=await this.request(vi.start,i)}catch(a){if(a instanceof im&&a.reason!=="uncertain_delivery"||!this.state.ready||r!==this.selection)throw a;let s=P0(await this.request(vi.get,{handoffId:n.handoffId}));r===this.selection&&this.adopt(s),o=await this.request(vi.start,i)}if(o.handoffId!==n.handoffId||o.targetSessionId!==n.target.sessionId||o.promptId!==i.promptId||!["started","already_started"].includes(o.outcome))throw new Error("Invalid continuation acknowledgement.");if(r===this.selection){this.state.receipt=o;let a=P0(await this.request(vi.get,{handoffId:n.handoffId}));r===this.selection&&this.adopt(a)}return o}catch(o){throw r===this.selection&&(this.state.error=o instanceof Error?o.message:ve("handoff.error.confirm"),this.state.conflict=o instanceof im&&o.reason==="stale_revision"),o}finally{r===this.selection&&(this.state.busy=void 0,this.changed())}}async discard(){await this.saved;let e=this.state.record;if(!e||!this.state.ready||this.state.busy)return;let n=this.selection;this.state.busy="discarding",this.changed();try{if((await this.request(vi.discard,{handoffId:e.handoffId}))?.discarded!==!0)throw new Error(ve("handoff.error.discard"));return n===this.selection&&(this.state={ready:!0}),e}catch(r){throw n===this.selection&&(this.state.error=r instanceof Error?r.message:ve("handoff.error.discard")),r}finally{n===this.selection&&(this.state.busy=void 0,this.changed())}}};var tFe={"transport.gesture_required":"transport.gestureRequired","transport.path_outside_roots":"transport.pathOutsideRoots","transport.session_not_in_pane":"transport.sessionNotInPane","transport.intent_invalid":"transport.intentInvalid","transport.mode_not_confirmed":"transport.modeNotConfirmed"};function Su(t){let e=typeof t=="object"&&t!==null?t.code:void 0,n=typeof e=="string"?tFe[e]??(e.startsWith("transport.")?"transport.refused":void 0):void 0;return n?(e==="transport.intent_invalid"&&console.error("agent pane: the host refused a request",t),ve(n)):t instanceof Error?t.message:typeof t=="string"?t:""}var C6={groups:"_acpmux/permission_groups",respond:"_acpmux/permission_group_respond",revoke:"_acpmux/permission_chat_revoke"};function Rse(t){return Object.values(C6).every(e=>L2(t,e))}function om(t,e="error.invalid.permissionResponse"){if(!t||typeof t!="object"||Array.isArray(t))throw new Error(ve(e));return t}function x_(t,e){if(typeof t!="string"||t.length===0)throw new Error(ve("error.invalid.permissionField",{field:e}));return t}function k6(t,e){if(typeof t!="number"||!Number.isSafeInteger(t)||t<0)throw new Error(ve("error.invalid.permissionField",{field:e}));return t}function Ase(t){if(t!=="allow_once"&&t!=="allow_chat"&&t!=="deny")throw new Error(ve("error.invalid.permissionDecision"));return t}function nFe(t){if(!Array.isArray(t))throw new Error(ve("error.invalid.permissionDecisions"));let e=t.map(Ase);if(new Set(e).size!==e.length)throw new Error(ve("error.invalid.permissionDecisions"));return e}function PO(t){let e=om(t),n=e.state;if(!["collecting","pending","resolved","cancelled"].includes(n))throw new Error(ve("error.invalid.permissionGroupState"));if(!Array.isArray(e.items))throw new Error(ve("error.invalid.permissionGroupItems"));let r=e.items.map(o=>{let a=om(o,"error.invalid.permissionItem"),s=a.state;if(!["pending","resolved","cancelled"].includes(s))throw new Error(ve("error.invalid.permissionItemState"));return{permissionId:x_(a.permissionId,"permission id"),request:om(a.request,"error.invalid.permissionRequest"),state:s}}),i=e.decision===null?null:Ase(e.decision);return{groupId:x_(e.groupId,"group id"),sessionId:x_(e.sessionId,"session id"),turnId:e.turnId===null?null:x_(e.turnId,"turn id"),revision:k6(e.revision,"revision"),state:n,items:r,decisions:nFe(e.decisions),decision:i}}function rFe(t){return PO(t)}function $se(t){let e=om(t);if(!Array.isArray(e.groups))throw new Error(ve("error.invalid.permissionGroups"));let n=om(e.chatAllowance,"error.invalid.permissionAllowance");if(typeof n.active!="boolean"||n.expires!=="session_stop_or_daemon_restart")throw new Error(ve("error.invalid.permissionAllowance"));let r=om(e.coverage,"error.invalid.permissionCoverage");if(r.label!=="acp_requests_only"||r.isolation!=="unverified"||typeof r.detail!="string")throw new Error(ve("error.invalid.permissionCoverage"));let i=om(e.batching,"error.invalid.permissionBatching");return{groups:e.groups.map(PO),chatAllowance:{active:n.active,expires:n.expires},coverage:{label:r.label,isolation:r.isolation,detail:r.detail},batching:{windowMs:k6(i.windowMs,"batching"),maxItems:k6(i.maxItems,"batching"),maxPendingGroups:k6(i.maxPendingGroups,"batching"),maxReceipts:k6(i.maxReceipts,"batching")}}}function Ise(t){let e=om(t);if(typeof e.replayed!="boolean")throw new Error(ve("error.invalid.permissionReceipt"));return{group:PO(e.group),replayed:e.replayed}}function Nse(t){if(om(t).active!==!1)throw new Error(ve("error.invalid.permissionRevokeReceipt"));return{active:!1}}var Lu=class extends Error{code;reason;details;retryable;origin;uncertain;group;constructor(e,n){let r=typeof e=="string"?{code:e,message:n}:e,i=r.data&&typeof r.data=="object"?r.data:void 0,o=r.details??i?.details,a=i&&typeof i.reason=="string"&&i.reason||(o&&typeof o=="object"&&typeof o.reason=="string"?o.reason:void 0);if(super(typeof r.userMessage=="string"?r.userMessage:typeof r.message=="string"?r.message:typeof i?.message=="string"?i.message:ve("error.permissionFailed")),this.name="PermissionRpcError",this.code=typeof r.code=="string"?r.code:typeof r.code=="number"?String(r.code):"operation.failed",this.reason=a,this.details=o,this.retryable=typeof r.retryable=="boolean"?r.retryable:void 0,this.origin=r.origin==="native"||r.origin==="session_host"?r.origin:void 0,this.uncertain=this.code==="mutation.indeterminate"||this.origin==="native"&&this.code==="native.timed_out",i?.group!==void 0)try{this.group=rFe(i.group)}catch{}}};var w_=new Map,iFe={get(t){try{let e=globalThis.sessionStorage?.getItem(t);return e==null?w_.get(t):JSON.parse(e)}catch{return w_.get(t)}},set(t,e){w_.set(t,e);try{globalThis.sessionStorage?.setItem(t,JSON.stringify(e))}catch{}},delete(t){w_.delete(t);try{globalThis.sessionStorage?.removeItem(t)}catch{}}};function k_(t){return Array.isArray(t)?`[${t.map(k_).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([e],[n])=>e.localeCompare(n)).map(([e,n])=>`${JSON.stringify(e)}:${k_(n)}`).join(",")}}`:JSON.stringify(t)??"null"}function oFe(){try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}}function v_(t){if(t instanceof Lu)return t;if(t&&typeof t=="object"){let e=t;return new Lu({code:e.code,message:e.message,userMessage:e.userMessage,data:e.data,details:e.details,retryable:e.retryable,origin:e.origin})}return new Lu({code:"operation.failed",message:t instanceof Error?Su(t):ve("permission.error.failed")})}function Ks(t,e,n){return new Lu({code:t,message:e,data:n?{reason:n}:void 0})}function aFe(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=t;return typeof e.sessionId=="string"&&typeof e.groupId=="string"&&typeof e.revision=="number"&&Number.isSafeInteger(e.revision)&&e.revision>=0&&typeof e.decisionKey=="string"&&(e.decision==="allow_once"||e.decision==="allow_chat"||e.decision==="deny")}var C_=class{state={supported:!1,ready:!1,groups:[],chatAllowance:!1,loading:!1,busy:!1};request;changed;storage;sessionId;generation=0;refreshSerial=0;authoritative=!1;pendingRevoke=!1;mutationInFlight=!1;constructor(e,n,r=iFe){this.request=e,this.changed=n,this.storage=r}configure(e){this.state={supported:e,ready:!1,groups:e?this.state.groups:[],chatAllowance:e?this.state.chatAllowance:!1,loading:!1,busy:!1,error:void 0,uncertain:e?this.state.uncertain:void 0},this.authoritative=!1,this.refreshSerial+=1,this.changed()}select(e){e!==this.sessionId&&(this.generation+=1,this.refreshSerial+=1,this.sessionId=e,this.authoritative=!1,this.pendingRevoke=!1,this.state={supported:this.state.supported,ready:!1,groups:[],chatAllowance:!1,loading:!1,busy:!1,error:void 0,uncertain:void 0},this.changed())}session(){if(!this.state.supported)throw Ks("operation.unsupported",ve("permission.error.unavailable"));if(!this.sessionId)throw Ks("validation.invalid",ve("permission.error.selectSession"));return this.sessionId}storageKey(e){return`cmux.permission.group:${e}`}async savedPending(e){let n=await this.storage.get(this.storageKey(e));return aFe(n)?n:void 0}async savePending(e){await this.storage.set(this.storageKey(e.sessionId),e)}async clearPending(e){await this.storage.delete(this.storageKey(e))}markFailure(e,n){n===this.generation&&((e.code==="operation.unsupported"||e.code==="-32601")&&(this.state.supported=!1,this.authoritative=!1),this.state.error=e.message,this.state.uncertain=e.uncertain||this.state.uncertain,this.changed())}async refresh(){let e=this.session(),n=this.generation,r=++this.refreshSerial,i=this.state.uncertain,o=this.state.error;this.state={...this.state,ready:!1,loading:!0,error:void 0},this.changed();try{let a=$se(await this.request(C6.groups,{sessionId:e}));if(n!==this.generation||r!==this.refreshSerial||this.sessionId!==e)return;if(this.authoritative=!0,a.groups.some(l=>l.sessionId!==e))throw new Lu({code:"operation.failed",message:ve("permission.error.wrongSession"),data:{reason:"invalid_scope"}});this.state={...this.state,ready:!0,groups:a.groups,chatAllowance:a.chatAllowance.active,uncertain:i,error:i?o:void 0};let s=await this.savedPending(e);if(n!==this.generation||r!==this.refreshSerial||this.sessionId!==e)return;if(s&&a.groups.some(l=>l.groupId===s.groupId&&(l.state==="resolved"||l.state==="cancelled"))){if(await this.clearPending(e),n!==this.generation||r!==this.refreshSerial||e!==this.sessionId)return;this.state={...this.state,uncertain:!1,error:void 0}}else s&&(this.state={...this.state,uncertain:!0,error:this.state.error??ve("permission.error.awaitingRetry")})}catch(a){let s=v_(a);throw n===this.generation&&r===this.refreshSerial&&(this.authoritative=!1,this.state={...this.state,ready:!1},this.markFailure(s,n)),s}finally{n===this.generation&&r===this.refreshSerial&&(this.state={...this.state,loading:!1},this.changed())}}requireAuthoritative(e=!1){let n=this.session();if(!this.authoritative)throw this.notReady();if(!e&&(this.state.busy||this.mutationInFlight))throw Ks("operation.failed",ve("permission.error.busy"),"busy");return n}notReady(){let e=Ks("operation.failed",ve("permission.error.readRequired"),"read_required");return this.state={...this.state,error:e.message},this.changed(),e}selectionChanged(){return Ks("operation.failed",ve("permission.error.selectionChanged"),"selection_changed")}async sendDecision(e,n){this.state={...this.state,busy:!0,error:void 0},this.changed();try{let r;r=await this.request(C6.respond,{sessionId:e.sessionId,groupId:e.groupId,revision:e.revision,decisionKey:e.decisionKey,decision:e.decision});let i;try{i=Ise(r)}catch{throw new Lu({code:"mutation.indeterminate",message:ve("permission.error.answerUncertain"),origin:"session_host"})}if(i.group.sessionId!==e.sessionId||i.group.groupId!==e.groupId)throw new Lu({code:"mutation.indeterminate",message:ve("permission.error.wrongGroup"),origin:"session_host"});await this.clearPending(e.sessionId),n===this.generation&&this.sessionId===e.sessionId&&(this.state={...this.state,groups:this.state.groups.map(o=>o.groupId===i.group.groupId?i.group:o),uncertain:!1,error:void 0})}catch(r){let i=v_(r);throw i.uncertain||await this.clearPending(e.sessionId),this.markFailure(i,n),i}finally{n===this.generation&&(this.state={...this.state,busy:!1},this.changed())}}async respond(e,n,r){let i=this.requireAuthoritative(),o=this.generation;if(this.state.uncertain)throw Ks("operation.failed",ve("permission.error.readResult"),"uncertain");if(!Number.isSafeInteger(n)||n<0)throw Ks("validation.invalid",ve("permission.error.invalidRevision"));if(!this.state.groups.find(s=>s.groupId===e))throw Ks("resource.not_found",ve("permission.error.notFound"));if(this.mutationInFlight)throw Ks("operation.failed",ve("permission.error.busy"),"busy");this.mutationInFlight=!0,this.state={...this.state,busy:!0,error:void 0},this.changed();try{let s=await this.savedPending(i);if(o!==this.generation||i!==this.sessionId)throw this.selectionChanged();let l={sessionId:i,groupId:e,revision:n,decision:r},c;if(s){if(s.sessionId!==i||k_({sessionId:s.sessionId,groupId:s.groupId,revision:s.revision,decision:s.decision})!==k_(l))throw Ks("idempotency.conflict",ve("permission.error.awaitingRetry"));c=s}else if(c={...l,decisionKey:oFe()},await this.savePending(c),o!==this.generation||i!==this.sessionId)throw this.selectionChanged();await this.sendDecision(c,o)}catch(s){let l=v_(s);throw o===this.generation&&i===this.sessionId&&this.markFailure(l,o),l}finally{this.mutationInFlight=!1,o===this.generation&&this.state.busy&&(this.state={...this.state,busy:!1},this.changed())}}async retry(){if(this.mutationInFlight)throw Ks("operation.failed",ve("permission.error.busy"),"busy");let e=this.session(),n=this.generation;this.mutationInFlight=!0;try{let r=await this.savedPending(e);if(n!==this.generation||e!==this.sessionId)throw this.selectionChanged();if(this.pendingRevoke){if(await this.refresh(),n!==this.generation||e!==this.sessionId)throw this.selectionChanged();await this.sendRevoke(n,!0);return}if(!r)throw Ks("validation.invalid",ve("permission.error.noRetry"));if(await this.refresh(),n!==this.generation||e!==this.sessionId)throw this.selectionChanged();let i=this.state.groups.find(o=>o.groupId===r.groupId);if(!i)throw await this.clearPending(e),n===this.generation&&e===this.sessionId&&(this.state={...this.state,uncertain:!1,error:ve("permission.error.noLongerAvailable")},this.changed()),Ks("resource.not_found",ve("permission.error.notFound"));if((i.state==="resolved"||i.state==="cancelled")&&i.revision>=r.revision){if(await this.clearPending(e),n!==this.generation||e!==this.sessionId)return;this.state={...this.state,uncertain:!1,error:void 0},this.changed();return}if(i.revision!==r.revision){if(await this.clearPending(e),n!==this.generation||e!==this.sessionId)throw this.selectionChanged();let o=new Lu({code:"revision.conflict",message:ve("permission.error.groupChanged"),data:{reason:"stale_revision",group:i}});throw this.state={...this.state,uncertain:!1,error:o.message},this.changed(),o}await this.sendDecision(r,this.generation)}finally{this.mutationInFlight=!1,n===this.generation&&this.state.busy&&!this.state.loading&&(this.state={...this.state,busy:!1},this.changed())}}async sendRevoke(e,n=!1){let r=this.requireAuthoritative(n);if(!n){if(this.mutationInFlight)throw Ks("operation.failed",ve("permission.error.busy"),"busy");this.mutationInFlight=!0}this.state={...this.state,busy:!0,error:void 0},this.changed();try{Nse(await this.request(C6.revoke,{sessionId:r})),e===this.generation&&(this.pendingRevoke=!1,this.state={...this.state,chatAllowance:!1,uncertain:!1,error:void 0})}catch(i){let o=v_(i);throw e===this.generation&&(this.pendingRevoke=o.uncertain,this.markFailure(o,e)),o}finally{e===this.generation&&(this.state={...this.state,busy:!1},this.changed()),n||(this.mutationInFlight=!1)}}async revoke(){this.requireAuthoritative(),await this.sendRevoke(this.generation)}disconnected(){this.generation+=1,this.refreshSerial+=1,this.authoritative=!1,this.state={...this.state,ready:!1,loading:!0,busy:!1,error:ve("permission.error.disconnected"),uncertain:this.state.uncertain},this.changed()}};function sFe(t,e){if(t.length!==0)return t[Math.min(t.length-1,Math.round((t.length-1)*e))]}function Pse(t){try{let e=new URL(t);return e.searchParams.delete("token"),e.toString()}catch{return"(invalid endpoint)"}}var jO=class{log=[];bytes=0;nextSeq=1;droppedCount=0;pending=new Map;latencies=[];counters={requests:0,errors:0,connects:0,closes:0,reconnects:0};lastError;listeners=new Set;now;clock;constructor(e=Date.now,n=()=>performance.now()){this.now=e,this.clock=n}sent(e,n,r){r!==void 0&&(this.counters.requests+=1,this.pending.set(r,{method:n,startedAt:this.clock()})),this.push({dir:"out",kind:r===void 0?"notification":"request",method:n,id:r,...this.body(e)})}received(e){let n;try{n=JSON.parse(e)}catch{this.push({dir:"in",kind:"invalid",...this.body(e)});return}if(typeof n?.id=="number"&&!("method"in n)){let r=this.pending.get(n.id);this.pending.delete(n.id);let i=r?Math.round((this.clock()-r.startedAt)*100)/100:void 0;i!==void 0&&this.recordLatency(i);let o=n.error!==void 0;o&&(this.counters.errors+=1,this.lastError=`${r?.method??`request ${n.id}`}: ${String(n.error?.message??"error")}`),this.push({dir:"in",kind:o?"error":"response",method:r?.method,id:n.id,latencyMs:i,...this.body(e)});return}this.push({dir:"in",kind:"notification",method:typeof n?.method=="string"?n.method:void 0,...this.body(e)})}lifecycle(e,n){if(e==="connected"&&(this.counters.connects+=1),e==="close"&&(this.counters.closes+=1),e==="reconnect scheduled"&&(this.counters.reconnects+=1),(e==="error"||e==="connect failed")&&(this.lastError=`${e}${n?.message?`: ${String(n.message)}`:""}`),e==="close"){for(let[r,i]of this.pending)this.push({dir:"local",kind:"lifecycle",event:"abandoned",id:r,method:i.method});this.pending.clear()}this.push({dir:"local",kind:"lifecycle",event:e,detail:n})}entries(){return this.log.slice()}stats(){let e=[...this.latencies].sort((n,r)=>n-r);return{entries:this.log.length,dropped:this.droppedCount,...this.counters,inFlight:this.pending.size,lastError:this.lastError,latencyP50Ms:sFe(e,.5),latencyMaxMs:e.length?e[e.length-1]:void 0}}exportJsonl(e={}){let n=[JSON.stringify({type:"acp-wire-log",exportedAt:new Date(this.now()).toISOString(),...e,stats:this.stats()})];for(let r of this.log)n.push(JSON.stringify(r));return`${n.join(` +`),n]}var OO=t=>typeof t=="string"&&t?t:void 0,QDe=t=>typeof t=="number"&&Number.isFinite(t)&&t>0?t:0;function _se(t){if(!t||typeof t!="object"||!("checkpointId"in t))return;let e=t,n=OO(e.checkpointId)??null,r=OO(e.endCheckpointId),i=OO(e.checkpointError);return{from:n,...r?{to:r}:{},...i?{reason:i}:{}}}async function Sse(t,e,n){let r=j0([...t],e).find(s=>s.kind==="turnSummary");if(!r)throw new Error("The turn has not ended");let i=r.checkpoint;if(!i)return{unsupported:!0};if(!i.from||!i.to)return null;let o=await n(i.from,i.to),a=o&&typeof o=="object"?o:{};return{checkpoint_id:`${i.from}..${i.to}`,complete:a.complete===!0&&QDe(a.files_omitted)===0,diff:o}}var JDe=65536,vi={prepare:"_acpmux/handoff_prepare",get:"_acpmux/handoff_get",draft:"_acpmux/handoff_draft",start:"_acpmux/handoff_start",discard:"_acpmux/handoff_discard"};function Mse(t){return Object.values(vi).every(e=>M2(t,e))}function R2(t){if(!t||typeof t!="object"||Array.isArray(t))throw new Error(we("error.invalid.continuationResponse"));return t}function rm(t){if(typeof t!="string"||!t.trim())throw new Error(we("error.invalid.continuationResponse"));return t}function Lse(t){let e=R2(t),n=R2(e.enforcement);if(n.label!=="native_policy"||n.isolation!=="unverified"||!Array.isArray(e.coverage))throw new Error(we("error.unsupported.continuationCoverage"));if(rm(n.policy),n.detail!==null&&typeof n.detail!="string")throw new Error(we("error.invalid.enforcementReport"));for(let r of e.coverage)if(!r||!["transcript","tool_output","plan","files","memory","checkpoint","model"].includes(r.item)||!["included","summarized","omitted","unavailable"].includes(r.status)||r.detail!==null&&typeof r.detail!="string")throw new Error(we("error.invalid.continuationCoverage"));return{sessionId:rm(e.sessionId),harness:rm(e.harness),cwd:rm(e.cwd),coverage:e.coverage,enforcement:n}}function O0(t){let e=R2(t),n=Lse(e.source),r=Lse(e.target),i=R2(e.capsule),o=R2(i.context);if(!Number.isSafeInteger(e.revision)||e.revision<1||n.sessionId===r.sessionId||n.cwd!==r.cwd||n.harness===r.harness||!["draft","starting","started","discarded"].includes(e.state)||!Number.isSafeInteger(e.source.seq)||e.source.seq<0||typeof i.text!="string"||i.maxBytes!==JDe||new TextEncoder().encode(i.text).length>i.maxBytes||!Array.isArray(i.memoryRefs)||i.memoryRefs.some(a=>typeof a!="string")||typeof o.truncated!="boolean"||[o.fromSeq,o.toSeq,o.bytes,o.totalBytes].some(a=>!Number.isSafeInteger(a)||a<0)||o.fromSeq>o.toSeq||o.bytes>o.totalBytes)throw new Error(we("error.invalid.continuationResponse"));if(i.checkpoint!==null){let a=R2(i.checkpoint);if(rm(a.ref),a.attestedBy!=="user"||typeof a.attestedAt!="string")throw new Error(we("error.invalid.checkpointAttestation"))}for(let a of["promptId","turnId"])if(e[a]!==null&&typeof e[a]!="string")throw new Error(we("error.invalid.continuationResponse"));return rm(e.handoffId),rm(e.handoffKey),rm(e.createdAt),rm(e.updatedAt),{...e,source:{...n,seq:e.source.seq},target:r}}var im=class extends Error{reason;code;data;handoff;constructor(e){super(e.message??"acpmux request failed"),this.code=e.code,this.data=e.data;let n=e.data&&typeof e.data=="object"?e.data:void 0;if(this.reason=typeof n?.reason=="string"?n.reason:void 0,n?.handoff)try{this.handoff=O0(n.handoff)}catch{}}};var eFe={transcript:"handoff.transcript",tool_output:"handoff.tool_output",plan:"handoff.plan",files:"handoff.files",model:"handoff.model",included:"handoff.included",summarized:"handoff.summarized",omitted:"handoff.omitted",unavailable:"handoff.unavailable",continueIn:"handoff.continueIn",review:"handoff.review",fromTo:"handoff.fromTo",context:"handoff.context",checkpoint:"handoff.checkpoint",checkpointPlaceholder:"handoff.checkpointPlaceholder",checkpointConfirm:"handoff.checkpointConfirm",memory:"handoff.memory",memoryHelp:"handoff.memoryHelp",starting:"handoff.starting",continueTarget:"handoff.continueTarget",returnSource:"handoff.returnSource",discard:"handoff.discard",saving:"handoff.saving",reload:"handoff.reload",coverage:"handoff.coverage",source:"handoff.source",target:"handoff.target",nativePolicy:"handoff.nativePolicy",unverified:"handoff.unverified",unverifiedDetail:"handoff.unverifiedDetail",reviewContext:"handoff.reviewContext",tooLarge:"handoff.tooLarge",saveCheckpoint:"handoff.saveCheckpoint",checkpointSingle:"handoff.checkpointSingle",memoryLimit:"handoff.memoryLimit",failedReview:"handoff.failedReview"};function g_(t=we){return Object.fromEntries(Object.entries(eFe).map(([e,n])=>[e,t(n)]))}function k6(t,...e){let n=0;return t.replace(/%@/g,()=>e[n++]??"")}function Ese(t){for(let e=0;e<t.length;e+=1){let n=t.charCodeAt(e);if(n<32||n===127)return!0}return!1}function b_(t,e,n,r,i=65536,o=g_()){let a=e.trim(),s=[...new Set(r.split(/\r?\n/).map(l=>l.trim()).filter(Boolean))];if(!t.trim())throw new Error(o.reviewContext);if(new TextEncoder().encode(t).length>i)throw new Error(k6(o.tooLarge,String(i)));if(!a||!n)throw new Error(o.saveCheckpoint);if(a.length>2048||Ese(a))throw new Error(o.checkpointSingle);if(s.length>32||s.some(l=>l.length>2048||Ese(l)))throw new Error(o.memoryLimit);return{capsule:t,checkpoint:{reference:a,confirmed:!0},approvedMemoryReferences:s}}function Tse(t){if(!t||typeof t!="object")return;let e=t;return e.label==="native_policy"&&e.isolation==="unverified"&&typeof e.policy=="string"&&e.policy.trim()&&(e.detail===null||typeof e.detail=="string")?e:void 0}var y_=class{constructor(e,n,r=()=>crypto.randomUUID()){this.request=e;this.changed=n;this.key=r}request;changed;key;state={};sessionId;selection=0;prepareAttempt;preparing;starting;ownRevisions=new Map;uncertainDraft;saved=Promise.resolve();select(e){this.sessionId=e,this.selection+=1,this.state={}}disconnect(){this.state.ready=!1,this.changed()}adopt(e){(this.sessionId===e.source.sessionId||this.sessionId===e.target.sessionId)&&(this.state.record=e)}async refresh(){let e=this.sessionId,n=this.selection;if(!e)return;let r=await this.request(vi.get,{sessionId:e});n===this.selection&&(this.state={ready:!0,record:r===null?void 0:O0(r)},this.changed())}prepare(e){if(this.preparing&&this.preparing.sessionId===this.sessionId&&this.preparing.harness===e)return this.preparing.promise;let n=this.prepareOnce(e),r={sessionId:this.sessionId,harness:e,promise:n};return this.preparing=r,n.finally(()=>{this.preparing===r&&(this.preparing=void 0)}).catch(()=>{}),n}async prepareOnce(e){let n=this.sessionId;if(!n||!this.state.ready||this.state.busy)return;let r=this.selection;this.state.error=void 0,this.state.busy="preparing",this.changed();try{let i=this.state.record;if(i?.state==="draft"&&i.source.sessionId===n&&i.target.harness===e)return i;let o=this.prepareAttempt;this.prepareAttempt=o?.sessionId===n&&o.harness===e?o:{sessionId:n,harness:e,handoffKey:this.key()};let a=O0(await this.request(vi.prepare,this.prepareAttempt));return this.prepareAttempt=void 0,r!==this.selection?void 0:(this.adopt(a),a)}catch(i){throw r===this.selection&&(this.state.error=i instanceof Error?i.message:we("handoff.error.prepare")),i}finally{r===this.selection&&(this.state.busy=void 0,this.changed())}}save(e){if(!this.state.ready||this.state.conflict)return Promise.resolve(void 0);let n=this.state.record?.handoffId,r=this.selection,i=async()=>{let a=this.state.record;if(!a||a.handoffId!==n||r!==this.selection||a.state!=="draft"||!this.state.ready||this.state.conflict)return;if(new TextEncoder().encode(e.capsule).length>a.capsule.maxBytes)throw new Error(we("handoff.error.tooLarge"));this.state.busy="saving",this.state.error=void 0,this.changed();let s=e.revision??a.revision,l=this.ownRevisions.get(a.handoffId);for(;l?.has(s)&&l.get(s)>s;)s=l.get(s);let c={handoffId:n,revision:s,draftKey:this.key(),capsule:{text:e.capsule,memoryRefs:e.approvedMemoryReferences},checkpoint:e.checkpoint?.confirmed?{ref:e.checkpoint.reference,attest:!0}:null},u=JSON.stringify({id:n,review:e});this.uncertainDraft?.content===u&&(c=this.uncertainDraft.params),this.uncertainDraft={content:u,params:c};try{let d;try{d=await this.request(vi.draft,c)}catch(m){if(m instanceof im||!this.state.ready||r!==this.selection)throw m;await this.request(vi.get,{handoffId:n}),d=await this.request(vi.draft,c)}let p=O0(d);if(this.uncertainDraft=void 0,p.revision>c.revision){let m=this.ownRevisions.get(a.handoffId)??new Map;m.set(c.revision,p.revision),this.ownRevisions.set(a.handoffId,m)}return r===this.selection&&this.adopt(p),p}catch(d){throw r===this.selection&&(this.state.error=d instanceof Error?d.message:we("handoff.error.save"),this.state.conflict=d instanceof im&&d.reason==="stale_revision"),d}finally{r===this.selection&&(this.state.busy=void 0,this.changed())}},o=this.saved.then(i);return this.saved=o.catch(()=>{}),o}start(e){if(this.starting&&this.starting.selection===this.selection)return this.starting.promise;let n=this.startOnce(e),r={selection:this.selection,promise:n};return this.starting=r,n.finally(()=>{this.starting===r&&(this.starting=void 0)}).catch(()=>{}),n}async startOnce(e){await this.saved;let n=this.state.record;if(!n||!this.state.ready||this.sessionId!==n.target.sessionId||this.state.busy||this.state.conflict||this.state.receipt)return;b_(e.capsule,e.checkpoint.reference,e.checkpoint.confirmed,e.approvedMemoryReferences.join(` +`),n.capsule.maxBytes);let r=this.selection,i={handoffId:n.handoffId,revision:e.revision??n.revision,promptId:n.promptId??n.handoffId,capsule:{text:e.capsule,memoryRefs:e.approvedMemoryReferences},checkpoint:{ref:e.checkpoint.reference,attest:!0}};this.state.busy="starting",this.state.error=void 0,this.changed();try{let o;try{o=await this.request(vi.start,i)}catch(a){if(a instanceof im&&a.reason!=="uncertain_delivery"||!this.state.ready||r!==this.selection)throw a;let s=O0(await this.request(vi.get,{handoffId:n.handoffId}));r===this.selection&&this.adopt(s),o=await this.request(vi.start,i)}if(o.handoffId!==n.handoffId||o.targetSessionId!==n.target.sessionId||o.promptId!==i.promptId||!["started","already_started"].includes(o.outcome))throw new Error("Invalid continuation acknowledgement.");if(r===this.selection){this.state.receipt=o;let a=O0(await this.request(vi.get,{handoffId:n.handoffId}));r===this.selection&&this.adopt(a)}return o}catch(o){throw r===this.selection&&(this.state.error=o instanceof Error?o.message:we("handoff.error.confirm"),this.state.conflict=o instanceof im&&o.reason==="stale_revision"),o}finally{r===this.selection&&(this.state.busy=void 0,this.changed())}}async discard(){await this.saved;let e=this.state.record;if(!e||!this.state.ready||this.state.busy)return;let n=this.selection;this.state.busy="discarding",this.changed();try{if((await this.request(vi.discard,{handoffId:e.handoffId}))?.discarded!==!0)throw new Error(we("handoff.error.discard"));return n===this.selection&&(this.state={ready:!0}),e}catch(r){throw n===this.selection&&(this.state.error=r instanceof Error?r.message:we("handoff.error.discard")),r}finally{n===this.selection&&(this.state.busy=void 0,this.changed())}}};var tFe={"transport.gesture_required":"transport.gestureRequired","transport.path_outside_roots":"transport.pathOutsideRoots","transport.session_not_in_pane":"transport.sessionNotInPane","transport.intent_invalid":"transport.intentInvalid","transport.mode_not_confirmed":"transport.modeNotConfirmed"};function Su(t){let e=typeof t=="object"&&t!==null?t.code:void 0,n=typeof e=="string"?tFe[e]??(e.startsWith("transport.")?"transport.refused":void 0):void 0;return n?(e==="transport.intent_invalid"&&console.error("agent pane: the host refused a request",t),we(n)):t instanceof Error?t.message:typeof t=="string"?t:""}var _6={groups:"_acpmux/permission_groups",respond:"_acpmux/permission_group_respond",revoke:"_acpmux/permission_chat_revoke"};function Rse(t){return Object.values(_6).every(e=>M2(t,e))}function om(t,e="error.invalid.permissionResponse"){if(!t||typeof t!="object"||Array.isArray(t))throw new Error(we(e));return t}function x_(t,e){if(typeof t!="string"||t.length===0)throw new Error(we("error.invalid.permissionField",{field:e}));return t}function C6(t,e){if(typeof t!="number"||!Number.isSafeInteger(t)||t<0)throw new Error(we("error.invalid.permissionField",{field:e}));return t}function Ase(t){if(t!=="allow_once"&&t!=="allow_chat"&&t!=="deny")throw new Error(we("error.invalid.permissionDecision"));return t}function nFe(t){if(!Array.isArray(t))throw new Error(we("error.invalid.permissionDecisions"));let e=t.map(Ase);if(new Set(e).size!==e.length)throw new Error(we("error.invalid.permissionDecisions"));return e}function DO(t){let e=om(t),n=e.state;if(!["collecting","pending","resolved","cancelled"].includes(n))throw new Error(we("error.invalid.permissionGroupState"));if(!Array.isArray(e.items))throw new Error(we("error.invalid.permissionGroupItems"));let r=e.items.map(o=>{let a=om(o,"error.invalid.permissionItem"),s=a.state;if(!["pending","resolved","cancelled"].includes(s))throw new Error(we("error.invalid.permissionItemState"));return{permissionId:x_(a.permissionId,"permission id"),request:om(a.request,"error.invalid.permissionRequest"),state:s}}),i=e.decision===null?null:Ase(e.decision);return{groupId:x_(e.groupId,"group id"),sessionId:x_(e.sessionId,"session id"),turnId:e.turnId===null?null:x_(e.turnId,"turn id"),revision:C6(e.revision,"revision"),state:n,items:r,decisions:nFe(e.decisions),decision:i}}function rFe(t){return DO(t)}function $se(t){let e=om(t);if(!Array.isArray(e.groups))throw new Error(we("error.invalid.permissionGroups"));let n=om(e.chatAllowance,"error.invalid.permissionAllowance");if(typeof n.active!="boolean"||n.expires!=="session_stop_or_daemon_restart")throw new Error(we("error.invalid.permissionAllowance"));let r=om(e.coverage,"error.invalid.permissionCoverage");if(r.label!=="acp_requests_only"||r.isolation!=="unverified"||typeof r.detail!="string")throw new Error(we("error.invalid.permissionCoverage"));let i=om(e.batching,"error.invalid.permissionBatching");return{groups:e.groups.map(DO),chatAllowance:{active:n.active,expires:n.expires},coverage:{label:r.label,isolation:r.isolation,detail:r.detail},batching:{windowMs:C6(i.windowMs,"batching"),maxItems:C6(i.maxItems,"batching"),maxPendingGroups:C6(i.maxPendingGroups,"batching"),maxReceipts:C6(i.maxReceipts,"batching")}}}function Ise(t){let e=om(t);if(typeof e.replayed!="boolean")throw new Error(we("error.invalid.permissionReceipt"));return{group:DO(e.group),replayed:e.replayed}}function Nse(t){if(om(t).active!==!1)throw new Error(we("error.invalid.permissionRevokeReceipt"));return{active:!1}}var Lu=class extends Error{code;reason;details;retryable;origin;uncertain;group;constructor(e,n){let r=typeof e=="string"?{code:e,message:n}:e,i=r.data&&typeof r.data=="object"?r.data:void 0,o=r.details??i?.details,a=i&&typeof i.reason=="string"&&i.reason||(o&&typeof o=="object"&&typeof o.reason=="string"?o.reason:void 0);if(super(typeof r.userMessage=="string"?r.userMessage:typeof r.message=="string"?r.message:typeof i?.message=="string"?i.message:we("error.permissionFailed")),this.name="PermissionRpcError",this.code=typeof r.code=="string"?r.code:typeof r.code=="number"?String(r.code):"operation.failed",this.reason=a,this.details=o,this.retryable=typeof r.retryable=="boolean"?r.retryable:void 0,this.origin=r.origin==="native"||r.origin==="session_host"?r.origin:void 0,this.uncertain=this.code==="mutation.indeterminate"||this.origin==="native"&&this.code==="native.timed_out",i?.group!==void 0)try{this.group=rFe(i.group)}catch{}}};var w_=new Map,iFe={get(t){try{let e=globalThis.sessionStorage?.getItem(t);return e==null?w_.get(t):JSON.parse(e)}catch{return w_.get(t)}},set(t,e){w_.set(t,e);try{globalThis.sessionStorage?.setItem(t,JSON.stringify(e))}catch{}},delete(t){w_.delete(t);try{globalThis.sessionStorage?.removeItem(t)}catch{}}};function k_(t){return Array.isArray(t)?`[${t.map(k_).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([e],[n])=>e.localeCompare(n)).map(([e,n])=>`${JSON.stringify(e)}:${k_(n)}`).join(",")}}`:JSON.stringify(t)??"null"}function oFe(){try{return crypto.randomUUID()}catch{return`${Date.now()}-${Math.random().toString(36).slice(2)}`}}function v_(t){if(t instanceof Lu)return t;if(t&&typeof t=="object"){let e=t;return new Lu({code:e.code,message:e.message,userMessage:e.userMessage,data:e.data,details:e.details,retryable:e.retryable,origin:e.origin})}return new Lu({code:"operation.failed",message:t instanceof Error?Su(t):we("permission.error.failed")})}function Ks(t,e,n){return new Lu({code:t,message:e,data:n?{reason:n}:void 0})}function aFe(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=t;return typeof e.sessionId=="string"&&typeof e.groupId=="string"&&typeof e.revision=="number"&&Number.isSafeInteger(e.revision)&&e.revision>=0&&typeof e.decisionKey=="string"&&(e.decision==="allow_once"||e.decision==="allow_chat"||e.decision==="deny")}var C_=class{state={supported:!1,ready:!1,groups:[],chatAllowance:!1,loading:!1,busy:!1};request;changed;storage;sessionId;generation=0;refreshSerial=0;authoritative=!1;pendingRevoke=!1;mutationInFlight=!1;constructor(e,n,r=iFe){this.request=e,this.changed=n,this.storage=r}configure(e){this.state={supported:e,ready:!1,groups:e?this.state.groups:[],chatAllowance:e?this.state.chatAllowance:!1,loading:!1,busy:!1,error:void 0,uncertain:e?this.state.uncertain:void 0},this.authoritative=!1,this.refreshSerial+=1,this.changed()}select(e){e!==this.sessionId&&(this.generation+=1,this.refreshSerial+=1,this.sessionId=e,this.authoritative=!1,this.pendingRevoke=!1,this.state={supported:this.state.supported,ready:!1,groups:[],chatAllowance:!1,loading:!1,busy:!1,error:void 0,uncertain:void 0},this.changed())}session(){if(!this.state.supported)throw Ks("operation.unsupported",we("permission.error.unavailable"));if(!this.sessionId)throw Ks("validation.invalid",we("permission.error.selectSession"));return this.sessionId}storageKey(e){return`cmux.permission.group:${e}`}async savedPending(e){let n=await this.storage.get(this.storageKey(e));return aFe(n)?n:void 0}async savePending(e){await this.storage.set(this.storageKey(e.sessionId),e)}async clearPending(e){await this.storage.delete(this.storageKey(e))}markFailure(e,n){n===this.generation&&((e.code==="operation.unsupported"||e.code==="-32601")&&(this.state.supported=!1,this.authoritative=!1),this.state.error=e.message,this.state.uncertain=e.uncertain||this.state.uncertain,this.changed())}async refresh(){let e=this.session(),n=this.generation,r=++this.refreshSerial,i=this.state.uncertain,o=this.state.error;this.state={...this.state,ready:!1,loading:!0,error:void 0},this.changed();try{let a=$se(await this.request(_6.groups,{sessionId:e}));if(n!==this.generation||r!==this.refreshSerial||this.sessionId!==e)return;if(this.authoritative=!0,a.groups.some(l=>l.sessionId!==e))throw new Lu({code:"operation.failed",message:we("permission.error.wrongSession"),data:{reason:"invalid_scope"}});this.state={...this.state,ready:!0,groups:a.groups,chatAllowance:a.chatAllowance.active,uncertain:i,error:i?o:void 0};let s=await this.savedPending(e);if(n!==this.generation||r!==this.refreshSerial||this.sessionId!==e)return;if(s&&a.groups.some(l=>l.groupId===s.groupId&&(l.state==="resolved"||l.state==="cancelled"))){if(await this.clearPending(e),n!==this.generation||r!==this.refreshSerial||e!==this.sessionId)return;this.state={...this.state,uncertain:!1,error:void 0}}else s&&(this.state={...this.state,uncertain:!0,error:this.state.error??we("permission.error.awaitingRetry")})}catch(a){let s=v_(a);throw n===this.generation&&r===this.refreshSerial&&(this.authoritative=!1,this.state={...this.state,ready:!1},this.markFailure(s,n)),s}finally{n===this.generation&&r===this.refreshSerial&&(this.state={...this.state,loading:!1},this.changed())}}requireAuthoritative(e=!1){let n=this.session();if(!this.authoritative)throw this.notReady();if(!e&&(this.state.busy||this.mutationInFlight))throw Ks("operation.failed",we("permission.error.busy"),"busy");return n}notReady(){let e=Ks("operation.failed",we("permission.error.readRequired"),"read_required");return this.state={...this.state,error:e.message},this.changed(),e}selectionChanged(){return Ks("operation.failed",we("permission.error.selectionChanged"),"selection_changed")}async sendDecision(e,n){this.state={...this.state,busy:!0,error:void 0},this.changed();try{let r;r=await this.request(_6.respond,{sessionId:e.sessionId,groupId:e.groupId,revision:e.revision,decisionKey:e.decisionKey,decision:e.decision});let i;try{i=Ise(r)}catch{throw new Lu({code:"mutation.indeterminate",message:we("permission.error.answerUncertain"),origin:"session_host"})}if(i.group.sessionId!==e.sessionId||i.group.groupId!==e.groupId)throw new Lu({code:"mutation.indeterminate",message:we("permission.error.wrongGroup"),origin:"session_host"});await this.clearPending(e.sessionId),n===this.generation&&this.sessionId===e.sessionId&&(this.state={...this.state,groups:this.state.groups.map(o=>o.groupId===i.group.groupId?i.group:o),uncertain:!1,error:void 0})}catch(r){let i=v_(r);throw i.uncertain||await this.clearPending(e.sessionId),this.markFailure(i,n),i}finally{n===this.generation&&(this.state={...this.state,busy:!1},this.changed())}}async respond(e,n,r){let i=this.requireAuthoritative(),o=this.generation;if(this.state.uncertain)throw Ks("operation.failed",we("permission.error.readResult"),"uncertain");if(!Number.isSafeInteger(n)||n<0)throw Ks("validation.invalid",we("permission.error.invalidRevision"));if(!this.state.groups.find(s=>s.groupId===e))throw Ks("resource.not_found",we("permission.error.notFound"));if(this.mutationInFlight)throw Ks("operation.failed",we("permission.error.busy"),"busy");this.mutationInFlight=!0,this.state={...this.state,busy:!0,error:void 0},this.changed();try{let s=await this.savedPending(i);if(o!==this.generation||i!==this.sessionId)throw this.selectionChanged();let l={sessionId:i,groupId:e,revision:n,decision:r},c;if(s){if(s.sessionId!==i||k_({sessionId:s.sessionId,groupId:s.groupId,revision:s.revision,decision:s.decision})!==k_(l))throw Ks("idempotency.conflict",we("permission.error.awaitingRetry"));c=s}else if(c={...l,decisionKey:oFe()},await this.savePending(c),o!==this.generation||i!==this.sessionId)throw this.selectionChanged();await this.sendDecision(c,o)}catch(s){let l=v_(s);throw o===this.generation&&i===this.sessionId&&this.markFailure(l,o),l}finally{this.mutationInFlight=!1,o===this.generation&&this.state.busy&&(this.state={...this.state,busy:!1},this.changed())}}async retry(){if(this.mutationInFlight)throw Ks("operation.failed",we("permission.error.busy"),"busy");let e=this.session(),n=this.generation;this.mutationInFlight=!0;try{let r=await this.savedPending(e);if(n!==this.generation||e!==this.sessionId)throw this.selectionChanged();if(this.pendingRevoke){if(await this.refresh(),n!==this.generation||e!==this.sessionId)throw this.selectionChanged();await this.sendRevoke(n,!0);return}if(!r)throw Ks("validation.invalid",we("permission.error.noRetry"));if(await this.refresh(),n!==this.generation||e!==this.sessionId)throw this.selectionChanged();let i=this.state.groups.find(o=>o.groupId===r.groupId);if(!i)throw await this.clearPending(e),n===this.generation&&e===this.sessionId&&(this.state={...this.state,uncertain:!1,error:we("permission.error.noLongerAvailable")},this.changed()),Ks("resource.not_found",we("permission.error.notFound"));if((i.state==="resolved"||i.state==="cancelled")&&i.revision>=r.revision){if(await this.clearPending(e),n!==this.generation||e!==this.sessionId)return;this.state={...this.state,uncertain:!1,error:void 0},this.changed();return}if(i.revision!==r.revision){if(await this.clearPending(e),n!==this.generation||e!==this.sessionId)throw this.selectionChanged();let o=new Lu({code:"revision.conflict",message:we("permission.error.groupChanged"),data:{reason:"stale_revision",group:i}});throw this.state={...this.state,uncertain:!1,error:o.message},this.changed(),o}await this.sendDecision(r,this.generation)}finally{this.mutationInFlight=!1,n===this.generation&&this.state.busy&&!this.state.loading&&(this.state={...this.state,busy:!1},this.changed())}}async sendRevoke(e,n=!1){let r=this.requireAuthoritative(n);if(!n){if(this.mutationInFlight)throw Ks("operation.failed",we("permission.error.busy"),"busy");this.mutationInFlight=!0}this.state={...this.state,busy:!0,error:void 0},this.changed();try{Nse(await this.request(_6.revoke,{sessionId:r})),e===this.generation&&(this.pendingRevoke=!1,this.state={...this.state,chatAllowance:!1,uncertain:!1,error:void 0})}catch(i){let o=v_(i);throw e===this.generation&&(this.pendingRevoke=o.uncertain,this.markFailure(o,e)),o}finally{e===this.generation&&(this.state={...this.state,busy:!1},this.changed()),n||(this.mutationInFlight=!1)}}async revoke(){this.requireAuthoritative(),await this.sendRevoke(this.generation)}disconnected(){this.generation+=1,this.refreshSerial+=1,this.authoritative=!1,this.state={...this.state,ready:!1,loading:!0,busy:!1,error:we("permission.error.disconnected"),uncertain:this.state.uncertain},this.changed()}};function sFe(t,e){if(t.length!==0)return t[Math.min(t.length-1,Math.round((t.length-1)*e))]}function Pse(t){try{let e=new URL(t);return e.searchParams.delete("token"),e.toString()}catch{return"(invalid endpoint)"}}var FO=class{log=[];bytes=0;nextSeq=1;droppedCount=0;pending=new Map;latencies=[];counters={requests:0,errors:0,connects:0,closes:0,reconnects:0};lastError;listeners=new Set;now;clock;constructor(e=Date.now,n=()=>performance.now()){this.now=e,this.clock=n}sent(e,n,r){r!==void 0&&(this.counters.requests+=1,this.pending.set(r,{method:n,startedAt:this.clock()})),this.push({dir:"out",kind:r===void 0?"notification":"request",method:n,id:r,...this.body(e)})}received(e){let n;try{n=JSON.parse(e)}catch{this.push({dir:"in",kind:"invalid",...this.body(e)});return}if(typeof n?.id=="number"&&!("method"in n)){let r=this.pending.get(n.id);this.pending.delete(n.id);let i=r?Math.round((this.clock()-r.startedAt)*100)/100:void 0;i!==void 0&&this.recordLatency(i);let o=n.error!==void 0;o&&(this.counters.errors+=1,this.lastError=`${r?.method??`request ${n.id}`}: ${String(n.error?.message??"error")}`),this.push({dir:"in",kind:o?"error":"response",method:r?.method,id:n.id,latencyMs:i,...this.body(e)});return}this.push({dir:"in",kind:"notification",method:typeof n?.method=="string"?n.method:void 0,...this.body(e)})}lifecycle(e,n){if(e==="connected"&&(this.counters.connects+=1),e==="close"&&(this.counters.closes+=1),e==="reconnect scheduled"&&(this.counters.reconnects+=1),(e==="error"||e==="connect failed")&&(this.lastError=`${e}${n?.message?`: ${String(n.message)}`:""}`),e==="close"){for(let[r,i]of this.pending)this.push({dir:"local",kind:"lifecycle",event:"abandoned",id:r,method:i.method});this.pending.clear()}this.push({dir:"local",kind:"lifecycle",event:e,detail:n})}entries(){return this.log.slice()}stats(){let e=[...this.latencies].sort((n,r)=>n-r);return{entries:this.log.length,dropped:this.droppedCount,...this.counters,inFlight:this.pending.size,lastError:this.lastError,latencyP50Ms:sFe(e,.5),latencyMaxMs:e.length?e[e.length-1]:void 0}}exportJsonl(e={}){let n=[JSON.stringify({type:"acp-wire-log",exportedAt:new Date(this.now()).toISOString(),...e,stats:this.stats()})];for(let r of this.log)n.push(JSON.stringify(r));return`${n.join(` `)} -`}clear(){this.log=[],this.bytes=0,this.droppedCount=0,this.latencies=[],this.notify()}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}body(e){let n=e.length>16384;return{size:e.length,text:n?e.slice(0,16384):e,truncated:n||void 0}}recordLatency(e){this.latencies.push(e),this.latencies.length>2e3&&this.latencies.shift()}push(e){let n={seq:this.nextSeq++,at:this.now(),...e};for(this.log.push(n),this.bytes+=n.text?.length??0;this.log.length>2e3||this.bytes>2097152&&this.log.length>1;){let r=this.log.shift();this.bytes-=r.text?.length??0,this.droppedCount+=1}this.notify()}notify(){for(let e of this.listeners)e()}},j0=new jO;function ui(t){return Math.round(t*100)/100}function Mu(t,e){return t.length===0?0:t[Math.min(t.length-1,Math.max(0,Math.round((t.length-1)*e)))]}function _6(t){return Mu([...t].sort((e,n)=>e-n),.5)}function lFe(t){let e=[];for(let n=1;n<t.length;n+=1)e.push(t[n]-t[n-1]);return e}function cFe(t,e){if(!(e>0))return 0;let n=0;for(let r of t)n+=Math.max(0,Math.round(r/e)-1);return n}function __(t,e){let n=lFe(t).sort((r,i)=>r-i);return{frames:t.length,nominal_ms:ui(e),p50_ms:ui(Mu(n,.5)),p95_ms:ui(Mu(n,.95)),p99_ms:ui(Mu(n,.99)),max_ms:ui(n.at(-1)??0),dropped_frames:cFe(n,e)}}function R2(t){let e=[...t].sort((n,r)=>n-r);return{p50_ms:ui(Mu(e,.5)),p95_ms:ui(Mu(e,.95)),max_ms:ui(e.at(-1)??0)}}function jse(t,e,n,r,i){let o=Math.max(0,n),a=Math.min(i,n+r);return a<=o?!1:t>o+.5||e<a-.5}var OO=class{capacity;interval;layout;react;blank;next=0;count=0;constructor(e=2048){this.capacity=e,this.interval=new Float64Array(e),this.layout=new Float64Array(e),this.react=new Float64Array(e),this.blank=new Uint8Array(e)}get size(){return this.count}clear(){this.next=0,this.count=0}push(e,n,r,i){this.interval[this.next]=e,this.layout[this.next]=n,this.react[this.next]=r,this.blank[this.next]=i?1:0,this.next=(this.next+1)%this.capacity,this.count=Math.min(this.capacity,this.count+1)}samples(){let e=[],n=(this.next-this.count+this.capacity)%this.capacity;for(let r=0;r<this.count;r+=1){let i=(n+r)%this.capacity;e.push({interval:this.interval[i],layout:this.layout[i],react:this.react[i],other:Math.max(0,this.interval[i]-this.layout[i]-this.react[i]),blank:this.blank[i]===1})}return e}};function Ose(t){return{keys:t.length,to_frame:R2(t.map(e=>e.frame)),to_paint:R2(t.map(e=>e.paint))}}var DO=class{enabled=!1;ring=new OO;layoutSinceMark=0;reactSinceMark=0;lastMark;mountedTop=0;mountedBottom=0;commitWaiters=[];typing=[];agentMarks={};keyListener;enable(e=typeof document>"u"?void 0:document){this.enabled=!0,!(this.keyListener||!e)&&(this.keyListener=n=>{if(!n.target?.closest?.(".acpmux-composer"))return;let i=n.timeStamp;requestAnimationFrame(()=>{let o=performance.now(),a=new MessageChannel;a.port1.onmessage=()=>{this.typing.push({frame:o-i,paint:performance.now()-i}),this.typing.length>4096&&this.typing.shift(),a.port1.close()},a.port2.postMessage(0)})},e.addEventListener("keydown",this.keyListener,!0))}markAgent(e){e==="handshakeStart"&&(delete this.agentMarks.handshakeReady,delete this.agentMarks.composerReady,delete this.agentMarks.firstToken),!(e==="firstToken"&&this.agentMarks.firstToken!==void 0)&&(this.agentMarks[e]=performance.now())}agentLatency(){let e=this.agentMarks.handshakeStart,n={};for(let[r,i]of Object.entries(this.agentMarks))i!==void 0&&(n[`${r}_ms`]=ui(e===void 0?i:i-e));return e!==void 0&&this.agentMarks.composerReady!==void 0&&(n.composer_ready_ms=ui(this.agentMarks.composerReady-e)),e!==void 0&&this.agentMarks.firstToken!==void 0&&(n.first_token_ms=ui(this.agentMarks.firstToken-e)),n}addLayout(e){this.layoutSinceMark+=e}commit(e,n,r,i,o){this.reactSinceMark+=Math.max(0,e-n),this.mountedTop=r,this.mountedBottom=i;let a=this.commitWaiters;this.commitWaiters=[];for(let s of a)s(o)}nextCommit(e=1e4){return new Promise(n=>{let r=setTimeout(()=>{this.commitWaiters=this.commitWaiters.filter(o=>o!==i),n(void 0)},e),i=o=>{clearTimeout(r),n(o)};this.commitWaiters.push(i)})}resetFrames(){this.ring.clear(),this.lastMark=void 0,this.layoutSinceMark=0,this.reactSinceMark=0}markFrame(e,n){this.lastMark!==void 0&&this.ring.push(e-this.lastMark,this.layoutSinceMark,this.reactSinceMark,n),this.lastMark=e,this.layoutSinceMark=0,this.reactSinceMark=0}stats(e=!1){let n=this.ring.samples(),r={frames:n.length,blank_frames:n.filter(i=>i.blank).length,interval:R2(n.map(i=>i.interval)),layout:R2(n.map(i=>i.layout)),react:R2(n.map(i=>i.react)),other:R2(n.map(i=>i.other))};return e&&(r.samples=n.map(i=>({interval_ms:ui(i.interval),layout_ms:ui(i.layout),react_ms:ui(i.react),other_ms:ui(i.other),blank:i.blank}))),r}},Mn=new DO;var uFe=["Desktop","Documents","Downloads","Pictures","Music","Movies","Library/Mobile Documents","Library/CloudStorage","Library/Containers","Library/Group Containers","Library/Mail","Library/Messages","Library/Safari","Library/Calendars"],dFe=["/Volumes","/Network","/net"];function pFe(t){return/^\/(Users|home)\/[^/]+/i.exec(t)?.[0]}function Dse(t){let e=t.replace(/\/+$/,"");if(!e.startsWith("/")||e===""||e.split("/").includes(".."))return!1;let n=e.toLowerCase(),r=o=>n===o.toLowerCase()||n.startsWith(`${o.toLowerCase()}/`);if(dFe.some(r))return!1;let i=pFe(e);return i?n===i.toLowerCase()?!1:!uFe.some(o=>r(`${i}/${o}`)):!0}function Fse(t,e){return t.adopt?{mcpServers:[],_meta:{acpmux:{harness:e??t.adopt.harness,adopt:t.adopt}}}:{...t.cwd?{cwd:t.cwd}:{},mcpServers:[],_meta:{acpmux:{harness:e,...t.peer?{peer:t.peer}:{}}}}}function mFe(t,e){return t?._meta?.acpmux?.agentSessionId===e.agentSessionId}var Bse="_acpmux/prewarm",FO="available_commands_update",zse="usage_update";function qse(t,e){let n=t??{},r=n?.request??n,i=n?.sessionId??r?.sessionId,o=n?.permissionId??r?.permissionId;if(!(!o||i!==e))return{permissionId:String(o),groupId:typeof n.groupId=="string"?n.groupId:void 0,turnId:typeof n.turnId=="string"?n.turnId:void 0,title:r.toolCall?.title,kind:r.toolCall?.kind,pending:!0,options:(r.options??[]).map(a=>({id:String(a.optionId??a.id),name:String(a.name??a.optionId),allow:String(a.kind??"").startsWith("allow")}))}}function fFe(t,e,n){let r=typeof n?.promptId=="string"?n.promptId:void 0;if(!r)return;let i=e.get(r);i&&t.delete(i),e.delete(r)}function BO(...t){let e=new Map;for(let n of t.flat())e.set(n.seq,n);return[...e.values()].sort((n,r)=>n.seq-r.seq)}function hFe(t,e,n,r){n.add(r);for(let i of e.get(r)??[])t.delete(i);e.delete(r)}function gFe(t,e,n){return t||(n?void 0:e[0]?.sessionId)}function Vse(t,e){if(!Array.isArray(t))return;let n=new Map;for(let i of Array.isArray(e)?e:[])typeof i?.path=="string"&&Number.isInteger(i.line)&&i.line>0&&!n.has(i.path)&&n.set(i.path,i.line);let r=t.filter(i=>i?.type==="diff"&&typeof i.path=="string"&&typeof i.newText=="string").map(i=>({path:i.path,oldText:typeof i.oldText=="string"?i.oldText:void 0,newText:i.newText,line:n.get(i.path)}));return r.length?r:void 0}function bFe(t,e){return!t||!Array.isArray(e)?t:Vse(t.map(n=>({type:"diff",...n})),e)??t}function yFe(t,e,n,r,i){let o=t?.tool,a=e.title??e.name,s=String(e.status??o?.status??"in_progress"),l=s==="completed"||s==="failed";return{kind:"tool",text:String(a??t?.text??n),tool:{id:n,title:String(e.title??o?.title??n),kind:e.kind??o?.kind,status:s,inputSummary:e.rawInput?JSON.stringify(e.rawInput):o?.inputSummary,output:r||vFe(e.rawOutput)||(e.content===void 0?o?.output:void 0),command:xFe(e.rawInput)??o?.command,exitCode:wFe(e.rawOutput)??o?.exitCode,startedAt:o?.startedAt??i,endedAt:o?.endedAt??(l?i:void 0),locations:Array.isArray(e.locations)?e.locations:o?.locations,diffs:e.content===void 0?bFe(o?.diffs,e.locations):Vse(e.content,Array.isArray(e.locations)?e.locations:o?.locations)}}}function xFe(t){let e=t?.command;if(typeof e=="string")return e;if(!Array.isArray(e)||!e.every(o=>typeof o=="string")||!e.length)return;let[n,r,i]=e;return e.length===3&&/(^|\/)(ba|z|da|fi)?sh$/.test(n)&&/^-l?c$/.test(r)?i:e.map(o=>/^[\w@%+=:,./-]+$/.test(o)?o:`'${o.replace(/'/g,"'\\''")}'`).join(" ")}function wFe(t){let e=t?.exit_code??t?.exitCode;return typeof e=="number"?e:void 0}function vFe(t){let e=t?.formatted_output;return typeof e=="string"?e:""}function qO(t){return typeof t=="string"?t:t?.type==="text"?String(t.text??""):t?.type==="content"?qO(t.content):Array.isArray(t)?t.map(qO).join(""):""}function Hse(t){return t.dir==="in"&&t.msg.method==="session/update"?t.msg.params?.update:void 0}var Gse="cmux-bridge://acpmux/",Zse=t=>{let e=!1,n=()=>{e||(e=!0,t())};requestAnimationFrame(n),setTimeout(n,50)};function kFe(t,e){let n=t.at(-1);return n?.kind==="thought"&&!n.tool?[...t.slice(0,-1),{...n,text:n.text+e}]:[...t,{kind:"thought",text:e}]}var CFe=0,zO=t=>`${t}-${CFe+=1}`,HO=class extends Map{order=new Map;local=new Set;made=0;current;latest=0;set(e,n){return this.order.has(e)?this.current!==void 0&&(this.latest=Math.max(this.latest,this.current)):this.current!==void 0?(this.order.set(e,this.current),this.latest=Math.max(this.latest,this.current)):(this.order.set(e,this.latest+.5+(this.made+=1e-6)),this.local.add(e)),super.set(e,n)}saw(e){this.latest=Math.max(this.latest,e)}delete(e){return this.order.delete(e),this.local.delete(e),super.delete(e)}clear(){this.order.clear(),this.local.clear(),this.latest=0,super.clear()}retain(e){for(let n of this.values())e(n)||this.delete(n.id);this.latest=0}placeLocalLast(){[...this.local].sort((n,r)=>(this.order.get(n)??0)-(this.order.get(r)??0)).forEach((n,r)=>this.order.set(n,this.latest+.5+(r+1)*1e-6))}sorted(){return[...this.values()].sort((e,n)=>(this.order.get(e.id)??0)-(this.order.get(n.id)??0)||e.at-n.at)}},A2=class t{constructor(e,n,r,i=s=>new WebSocket(s),o="native",a=j0){this.openSocket=i;this.gitRoute=o;this.wire=a;this.host=e,this.listener=n,this.onLost=r,this.selectedSessionId=e.sessionId}openSocket;gitRoute;wire;static scheduleFrame;frameSnapshot;socket;nextRequest=1;pending=new Map;events=[];rows=new HO;sessions=[];sessionEntries=new WeakMap;unseen=new Set;selectedSessionId;missingSession;summary;queue=[];pendingPermission;groupedPermissions=new Map;commands=[];usage;commandsApplied=!1;optimisticPromptRows=new Map;optimisticPromptTexts=new Map;promptAccepts=new Map;failedPrompts=new Map;firstSeq;lastSeq=0;turnOpen=!1;canFork=!1;handoffSupported=!1;extensions=[];localOrigin=!1;origin="unknown";handoff=new y_((e,n)=>this.request(e,n,15e3),()=>this.emit());permissions=new C_((e,n)=>this.request(e,n,15e3),()=>{for(let e of this.permissions.state.groups)for(let n of e.items)n.state!=="pending"&&this.groupedPermissions.delete(n.permissionId);!this.permissions.state.supported&&!this.pendingPermission&&(this.pendingPermission=[...this.groupedPermissions.values()].at(-1)),this.emit()});forking=!1;streamingAssistant;streamingAssistantMessageId;streamingActivity;supersededMessageIds=new Set;messageRows=new Map;toolRows=new Map;listener;host;peers=[];reconnectTimer;reconnectDelay=250;onLost;opening=!1;hasConnected=!1;closed=!1;selectionGeneration=0;attachedGeneration=-1;historyExhausted=!1;static async connect(e,n,r,i,o,a){let s=new t(e,n,r,i,o,a);return await s.open(),s}async open(){if(this.opening||this.closed)return;this.opening=!0;let e=new URL(this.host.endpoint??Gse);this.host.token&&e.searchParams.set("token",this.host.token),this.wire.lifecycle("connecting",{endpoint:this.host.endpoint?Pse(this.host.endpoint):Gse,sessionId:this.selectedSessionId}),await new Promise((n,r)=>{let i=this.openSocket(e);this.socket=i;let o=!1;i.onopen=()=>{o=!0,this.wire.lifecycle("open"),n()},i.onerror=()=>{this.wire.lifecycle("error",{message:o?"WebSocket error":"Unable to connect"}),this.opening=!1,r(new Error(ve("error.connectFailed")))},i.onclose=a=>{if(this.socket===i){if(this.wire.lifecycle("close",{code:a?.code,reason:a?.reason||void 0,wasClean:a?.wasClean,established:o}),!o){this.opening=!1,r(new Error(ve("error.closedBeforeConnect")));return}if(this.handoff.disconnect(),this.groupedPermissions.clear(),this.permissions.disconnected(),this.rejectPending(),this.emit("disconnected"),!(!this.hasConnected||this.closed))if(this.onLost){this.wire.lifecycle("lost",{message:"asking for a fresh handshake"});let s=this.onLost;this.close(),s()}else this.scheduleReconnect()}},i.onmessage=a=>this.receive(String(a.data))});try{let n=await this.request("initialize",{protocolVersion:1,clientInfo:{name:"cmux-react-agent-pane",version:"1"},clientCapabilities:{}});this.canFork=L2(n,S2);let r=n?._meta?.acpmux?.extensions;this.extensions=Array.isArray(r)?r.map(String):[],this.localOrigin=n?._meta?.acpmux?.origin==="local";let i=n?._meta?.acpmux?.origin;this.origin=i==="local"||i==="remote"||i==="peer"?i:"unknown",this.handoffSupported=Mse(n);let o=Rse(n);o||this.groupedPermissions.clear(),this.permissions.configure(o);let a=await this.request("_acpmux/status",{}).catch(()=>{});this.peers=Array.isArray(a?.peers)?a.peers.map(d=>typeof d?.name=="string"?d.name:void 0).filter(d=>!!d):[];let s=await this.request("_acpmux/watch",{enabled:!0});this.sessions=this.reread(s?.sessions),this.selectedSessionId&&!this.sessions.some(d=>d.sessionId===this.selectedSessionId)&&(this.host.sessionMustExist&&(this.missingSession=this.selectedSessionId),this.selectedSessionId=this.host.sessionMustExist?void 0:this.sessions[0]?.sessionId,this.selectionGeneration+=1,this.resetSessionState()),this.selectedSessionId=gFe(this.selectedSessionId,this.sessions,this.host.newSession||this.missingSession!==void 0),this.selectedSessionId&&this.markSeen(this.selectedSessionId);let l=this.lastSeq,c=this.selectedSessionId,u=this.selectionGeneration;if(c){let d=await this.attach(c,u),p=d.length>0?Math.min(...d.map(m=>m.seq)):0;l>0&&p>l+1&&await this.fetchMissedEvents(c,u,l,!1)}else this.host.adopt&&await this.adoptChat(this.host.adopt);this.hasConnected=!0,this.reconnectDelay=250,this.wire.lifecycle("connected",{sessionId:this.selectedSessionId,sessions:this.sessions.length}),this.emit("connected")}catch(n){throw this.wire.lifecycle("connect failed",{message:n instanceof Error?n.message:String(n)}),this.socket?.close(),n}finally{this.opening=!1}}resetSessionState(){this.events=[],this.historyExhausted=!1,this.rows.clear(),this.failedPrompts.clear(),this.firstSeq=void 0,this.lastSeq=0,this.summary=void 0,this.usage=void 0,this.queue=[],this.turnOpen=!1,this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0,this.streamingActivity=void 0,this.optimisticPromptRows.clear(),this.optimisticPromptTexts.clear(),this.supersededMessageIds.clear(),this.messageRows.clear(),this.toolRows.clear(),this.pendingPermission=void 0,this.groupedPermissions.clear(),this.commands=[],this.commandsApplied=!1,this.handoff.select(this.selectedSessionId),this.permissions.select(this.selectedSessionId)}scheduleReconnect(){if(this.reconnectTimer!==void 0||this.closed)return;let e=this.reconnectDelay;this.reconnectDelay=Math.min(e*2,3e4),this.wire.lifecycle("reconnect scheduled",{delayMs:e}),this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=void 0,this.open().catch(()=>this.scheduleReconnect())},e)}receive(e){this.wire.received(e);let n;try{n=JSON.parse(e)}catch{return}if("id"in n&&typeof n.id=="number"){let i=this.pending.get(n.id);if(!i)return;if(this.pending.delete(n.id),i.timer&&clearTimeout(i.timer),n.error){let o=n.error.data;i.reject(Object.assign(new im(n.error),{code:o?.code??n.error.code,...o?.details===void 0?{}:{details:o.details},...typeof o?.reason=="string"?{reason:o.reason}:{},...typeof o?.cwd=="string"?{cwd:o.cwd}:{}}))}else i.resolve(n.result);return}let r=n;r.method==="_acpmux/event"?this.apply(r.params):r.method==="session/update"?this.apply({sessionId:r.params?.sessionId,seq:Number(r.params?._meta?.acpmux?.seq??0),at:Number(r.params?._meta?.acpmux?.at??Date.now()),dir:"in",kind:String(r.params?.update?.sessionUpdate??""),msg:{method:"session/update",params:{update:r.params?.update}}}):r.method==="_acpmux/session_changed"?this.sessionChanged(r.params):r.method==="_acpmux/permission_pending"?this.applyPermission(r.params):r.method==="_acpmux/lagged"&&this.resyncAfterLag(r.params)}resyncAfterLag(e){e?.watch===!0&&this.refreshSessions().catch(()=>{});let n=this.selectedSessionId;if(!n||this.attachedGeneration!==this.selectionGeneration||Array.isArray(e?.sessionIds)&&!e.sessionIds.map(String).includes(n))return;this.emit("resyncing"),this.permissions.refresh().catch(()=>{});let r=this.selectionGeneration;this.fetchMissedEvents(n,r,this.lastSeq).catch(()=>{!this.closed&&r===this.selectionGeneration&&this.emit(this.socket?.readyState===WebSocket.OPEN?"failed":"disconnected")})}async fetchMissedEvents(e,n,r,i=!0){for(let o=r;;){let a=await this.request("_acpmux/events",{sessionId:e,afterSeq:o,limit:5e3});if(n!==this.selectionGeneration||this.selectedSessionId!==e)return;let s=a?.events??[];if(this.events=BO(this.events,s),this.rebuildKeepingLiveState(i?o:void 0),a?.more!==!0||s.length===0)break;o=Math.max(o,...s.map(l=>l.seq))}this.emit("resynced")}async refreshSessions(){let e=this.selectionGeneration,n=await this.request("_acpmux/watch",{enabled:!0});this.sessions=this.reread(n?.sessions),this.selectedSessionId!==void 0&&!this.sessions.some(i=>i.sessionId===this.selectedSessionId)&&e===this.selectionGeneration?this.selectFallbackSession("session changed"):this.emit("session changed")}selectFallbackSession(e){this.selectedSessionId=this.sessions[0]?.sessionId,this.selectedSessionId&&this.markSeen(this.selectedSessionId);let n=++this.selectionGeneration;this.resetSessionState(),this.emit(e),this.selectedSessionId&&this.attach(this.selectedSessionId,n).catch(()=>{})}reread(e){let n=(e??[]).filter(o=>o.sessionId),r=new Set(n.map(o=>o.sessionId)),i=new Set(this.sessions.filter(o=>o.status==="running").map(o=>o.sessionId));for(let o of this.unseen)r.has(o)||this.unseen.delete(o);for(let o of n)i.has(o.sessionId)&&o.status!=="running"&&o.sessionId!==this.selectedSessionId&&this.unseen.add(o.sessionId);return n.map(this.withUnseen)}withUnseen=e=>this.unseen.has(e.sessionId)&&e.unread!==!0?{...e,unread:!0}:e;markSeen(e){this.unseen.delete(e),this.sessions=this.sessions.map(n=>n.sessionId===e&&n.unread===!0?{...n,unread:!1}:n)}trustGet(e){return this.request("acp.trust.get",{cwd:e,...this.selectedSessionId?{sessionId:this.selectedSessionId}:{}})}trustSet(e,n){return this.request("acp.trust.set",{cwd:e,level:n,...this.selectedSessionId?{sessionId:this.selectedSessionId}:{}})}fileSearch(e,n,r){if(this.gitRoute==="daemon")return this.request("file.search",{...e?{path:e}:{},query:n,limit:r});let i=this.selectedSessionId,o=this.summary?.sessionId===i?this.summary:void 0,a=this.sessions.find(l=>l.sessionId===i),s=e??ka(o?.cwd)??ka(a?.cwd);return s?C2(o?.hostKind)==="cloud"||a?.hostKind==="cloud"?Promise.reject(new Error(ve("error.remoteSearch"))):Nc("file.search",{cwd:s,query:n,limit:r}):Promise.reject(new Error(ve("error.noFolderSearch")))}gitDiff(e){return this.git("git.diff",{scope:e,include_patch:!0})}gitStatus(){return this.git("git.status",{})}gitCheckpointDiff(e,n){return this.git("git.checkpoint.diff",{from:e,to:n,include_patch:!0})}git(e,n){let r=this.selectedSessionId,i=this.summary?.sessionId===r?this.summary:void 0,o=this.sessions.find(s=>s.sessionId===r),a=ka(i?.cwd)??ka(o?.cwd);return!r||!a?Promise.reject(new Error(ve("error.noFolderChanges"))):C2(i?.hostKind)==="cloud"||o?.hostKind==="cloud"?Promise.reject(new Error(ve("error.remoteChanges"))):this.gitRoute==="daemon"?this.request(e,{sessionId:r,cwd:a,...n}):Nc(e,{cwd:a,...n})}request(e,n,r){if(this.socket?.readyState!==WebSocket.OPEN)return Promise.reject(Object.assign(new Error(ve("error.notOpen")),{code:"native.not_connected",origin:"native"}));let i=this.nextRequest++;return new Promise((o,a)=>{let s=r?setTimeout(()=>{this.pending.delete(i),a(Object.assign(new Error(ve("error.timedOut")),{code:"native.timed_out",origin:"native"}))},r):void 0;this.pending.set(i,{resolve:o,reject:a,timer:s});let l=JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:n});this.wire.sent(l,e,i),this.socket.send(l)})}async attach(e,n=this.selectionGeneration){if(n!==this.selectionGeneration||this.selectedSessionId!==e)return[];let r=await this.request("_acpmux/attach",{sessionId:e,limit:400,kinds:["transcript",FO,zse],eventStream:!0});if(n!==this.selectionGeneration||this.selectedSessionId!==e)return[];let i=r?.events??[];!i.some(a=>a.kind===FO)&&typeof r?.lastSeq=="number"&&r.lastSeq>0&&this.fetchCommands(e,n,r.lastSeq).catch(()=>{});let o=r?.session??{};if(this.summary=o,this.queue=(o.queue??[]).map(a=>({id:String(a.promptId),prompt:String(a.prompt??"")})),this.events=BO(i,this.events),this.rebuild(),this.attachedGeneration=n,this.permissions.select(e),await this.permissions.refresh().catch(()=>{}),n!==this.selectionGeneration||this.selectedSessionId!==e)return[];if(Array.isArray(o.pending)){let a=new Set(this.permissions.state.supported?this.permissions.state.groups.flatMap(s=>s.items.map(l=>l.permissionId)):[]);this.pendingPermission=o.pending.map(s=>qse({...s,sessionId:e},e)).find(s=>s&&(!this.permissions.state.supported||!s.groupId&&!a.has(s.permissionId)))}if(this.handoffSupported){this.handoff.select(e);try{await this.handoff.refresh()}catch{}}return n!==this.selectionGeneration?[]:(this.emit("attached"),i)}async fetchCommands(e,n,r){let i=await this.request("_acpmux/events",{sessionId:e,beforeSeq:r+1,limit:1,kinds:[FO]});if(n!==this.selectionGeneration||this.selectedSessionId!==e||this.commandsApplied)return;let o=i?.events?.at(-1),a=o?MO(Hse(o)):void 0;a&&(this.commands=a,this.emit("commands"))}sessionChanged(e){let n=e?.session;if(e?.kind==="purged"&&n?.sessionId){this.sessions=this.sessions.filter(i=>i.sessionId!==n.sessionId),this.unseen.delete(n.sessionId),n.sessionId===this.selectedSessionId&&this.handoff.state.busy!=="discarding"?this.selectFallbackSession("session purged"):this.emit("session purged");return}if(!n?.sessionId)return;let r=this.sessions.find(i=>i.sessionId===n.sessionId);n.sessionId!==this.selectedSessionId&&r?.status==="running"&&n.status!=="running"&&this.unseen.add(n.sessionId),this.sessions=[...this.sessions.filter(i=>i.sessionId!==n.sessionId),this.withUnseen(n)],n.sessionId===this.selectedSessionId&&(this.summary={...this.summary,...n},n.queue&&(this.queue=n.queue.map(i=>({id:String(i.promptId),prompt:String(i.prompt??i.preview??"")})))),this.emit("session changed")}applyPermission(e){let n=qse(e,this.selectedSessionId??"");if(n){if(n.groupId&&this.permissions.state.supported){this.groupedPermissions.set(n.permissionId,n);return}this.pendingPermission=n,this.emit("permission")}}apply(e){!e?.seq||e.sessionId!==this.selectedSessionId||e.seq<=this.lastSeq||(this.events.push(e),this.lastSeq=e.seq,this.firstSeq=this.firstSeq===void 0?e.seq:Math.min(this.firstSeq,e.seq),this.reduce(e),this.emitInFrame(e.kind))}emitInFrame(e){let n=t.scheduleFrame;if(!n)return this.emit(e);let r=this.frameSnapshot!==void 0;this.frameSnapshot=e,!r&&n(()=>{let i=this.frameSnapshot;i!==void 0&&!this.closed&&this.emit(i)})}rebuild(){let e=new Set(this.optimisticPromptRows.values());this.rows.retain(r=>r.failed===!0||e.has(r.id)),this.firstSeq=void 0,this.lastSeq=0,this.turnOpen=!1,this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0,this.streamingActivity=void 0,this.supersededMessageIds.clear(),this.messageRows.clear(),this.toolRows.clear(),this.pendingPermission=void 0;let n=[...this.events].sort((r,i)=>r.seq-i.seq);for(let r of n)this.lastSeq=Math.max(this.lastSeq,r.seq),this.firstSeq=this.firstSeq===void 0?r.seq:Math.min(this.firstSeq,r.seq),this.reduce(r);this.rows.placeLocalLast()}rebuildKeepingLiveState(e){let n=this.summary,r=this.queue,i=this.pendingPermission;if(this.rebuild(),this.summary=n,this.queue=r,this.pendingPermission=i,e!==void 0)for(let o of this.events)o.seq>e&&o.dir==="mux"&&this.reduceLiveState(o)}reduceLiveState(e){let n=e.msg??{};if(e.kind==="queued"||e.kind==="queue_updated"){let r=String(n.promptId??"");r&&(this.queue=[...this.queue.filter(i=>i.id!==r),{id:r,prompt:String(n.text??"")}])}else e.kind==="queue_removed"||e.kind==="dequeued"?this.queue=this.queue.filter(r=>r.id!==String(n.promptId??"")):e.kind==="permission_request"?this.applyPermission({...n,sessionId:e.sessionId}):e.kind==="permission_decision"?(n.permissionId?this.groupedPermissions.delete(String(n.permissionId)):this.groupedPermissions.clear(),(!n.permissionId||this.pendingPermission?.permissionId===n.permissionId)&&(this.pendingPermission=this.permissions.state.supported?void 0:[...this.groupedPermissions.values()].at(-1))):e.kind==="permission_group"||e.kind==="permission_chat_allowance"?this.permissions.refresh().catch(()=>{}):e.kind==="status"&&(this.summary={...this.summary,status:n.status})}reduce(e){this.rows.current=e.seq;try{this.reduceEvent(e)}finally{this.rows.current=void 0,e.seq&&this.rows.saw(e.seq)}}reduceEvent(e){let n=e.msg??{},r=Hse(e);if(r?.sessionUpdate===zse){let a=Number(r.used),s=Number(r.size);Number.isFinite(a)&&Number.isFinite(s)&&s>0&&(this.usage={used:a,size:s});return}if(e.dir==="mux"){if(e.kind==="user_message"){let a=typeof n.promptId=="string"?n.promptId:void 0,s=typeof n.text=="string"?n.text:void 0,l=a??(s?[...this.optimisticPromptTexts.entries()].find(([,c])=>c===s)?.[0]:void 0);fFe(this.rows,this.optimisticPromptRows,{...n,promptId:l}),l&&(this.optimisticPromptTexts.delete(l),this.promptAccepts.get(l)?.()),this.endAssistantSegment(),this.streamingActivity=void 0,this.rows.set(`user-${e.seq}`,{id:`user-${e.seq}`,version:1,at:e.at,kind:"user",text:String(n.text??"")}),this.turnOpen=!0}else if(e.kind==="turn_started")this.turnOpen=!0,this.rows.set("typing",{id:"typing",version:1,at:e.at,kind:"typing"});else if(e.kind==="message_superseded"){let a=typeof n.oldMessageId=="string"?n.oldMessageId:void 0;a&&(hFe(this.rows,this.messageRows,this.supersededMessageIds,a),this.streamingAssistantMessageId===a&&(this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0))}else if(e.kind==="turn_end"||e.kind==="turn_result"){if(this.turnOpen=!1,this.pendingPermission=void 0,this.groupedPermissions.clear(),this.streamingAssistant){let s=this.rows.get(this.streamingAssistant);s&&(s.streaming=!1,s.version+=1)}this.rows.delete("typing");let a=e.kind==="turn_result"?_se(n):void 0;e.kind==="turn_result"&&this.rows.set(`summary-${e.seq}`,{id:`summary-${e.seq}`,version:1,at:e.at,kind:"turnSummary",seq:e.seq,...this.turnTotals(e.at),status:String(n.status??"completed"),error:n.errorText,...a?{checkpoint:a}:{}}),this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0,this.streamingActivity=void 0}else this.reduceLiveState(e);return}if(!r)return;let i=MO(r);if(i){this.commands=i,this.commandsApplied=!0;return}let o=qO(r.content);if(e.kind==="agent_message_chunk"&&o){Mn.markAgent("firstToken");let a=typeof r.messageId=="string"?r.messageId:void 0;if(a&&this.supersededMessageIds.has(a))return;let l=!!(this.streamingAssistant&&(!a||!this.streamingAssistantMessageId||this.streamingAssistantMessageId===a))?this.streamingAssistant:`assistant-${e.seq}`,c=this.rows.get(l);if(this.streamingActivity=void 0,this.rows.set(l,{id:l,version:(c?.version??0)+1,at:c?.at??e.at,kind:"assistant",text:`${c?.text??""}${o}`,streaming:!0}),this.streamingAssistant=l,this.streamingAssistantMessageId=a,a){let u=this.messageRows.get(a)??[];u.includes(l)||this.messageRows.set(a,[...u,l])}this.rows.delete("typing")}else if(e.kind==="agent_thought_chunk"&&o){this.endAssistantSegment();let a=this.streamingActivity??`activity-${e.seq}`,s=this.rows.get(a);this.rows.set(a,{id:a,version:(s?.version??0)+1,at:s?.at??e.at,kind:"activity",toolCount:s?.toolCount??0,items:kFe(s?.items??[],o)}),this.streamingActivity=a}else if(e.kind==="tool_call"||e.kind==="tool_call_update"){let a=String(r.toolCallId??`tool-${e.seq}`),s=this.toolRows.get(a),l=s&&this.rows.has(s)?s:void 0;l||this.endAssistantSegment();let c=l??this.streamingActivity??`activity-${e.seq}`,u=this.rows.get(c),d=[...u?.items??[]],p=d.findIndex(f=>f.tool?.id===a),m=yFe(p>=0?d[p]:void 0,r,a,o,e.at);p>=0?d[p]=m:d.push(m),this.rows.set(c,{id:c,version:(u?.version??0)+1,at:u?.at??e.at,kind:"activity",toolCount:d.filter(f=>f.kind==="tool").length,items:d}),this.toolRows.set(a,c),l||(this.streamingActivity=c)}else e.kind==="plan"&&this.rows.set(`plan-${e.seq}`,{id:`plan-${e.seq}`,version:1,at:e.at,kind:"plan",text:o||JSON.stringify(r.entries??r.content??"")})}turnTotals(e){let n=this.rows.sorted().filter(a=>!a.pending&&!a.failed),r=n.length;for(;r>0&&n[r-1].kind!=="user";)r-=1;let i=n[r-1],o=n.slice(r).reduce((a,s)=>a+(s.kind==="activity"?s.toolCount??0:0),0);return{durationMs:i?Math.max(0,e-i.at):void 0,toolCount:o}}endAssistantSegment(){if(!this.streamingAssistant)return;let e=this.rows.get(this.streamingAssistant);e&&this.rows.set(e.id,{...e,version:e.version+1,streaming:!1}),this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0}emit(e="connected"){this.frameSnapshot=void 0;let n=this.summary,r=(n?.configOptions??[]).find(i=>i.category==="thought_level"||i.id==="reasoning_effort");this.listener({type:"snapshot",protocolVersion:1,rows:this.rows.sorted(),sessions:this.sessions.map(i=>{let o=this.sessionEntries.get(i);return o||(o=h_(i),this.sessionEntries.set(i,o)),o}),peers:this.peers,summary:n?{sessionId:n.sessionId,cwd:n.cwd,turnCount:n.turnCount,usage:this.usage,host:ka(n.host),peer:ka(n.peer),hostKind:C2(n.hostKind),branch:ka(n.branch),worktree:ka(n.worktree),title:n.title,name:n.name,harness:n.harness,family:typeof n.family=="string"?n.family:void 0,model:n.model,effort:r?.currentValue,promptCapabilities:n.agentCapabilities?.promptCapabilities,status:n.status,enforcement:Tse(n.enforcement),modes:n.modes,configOptions:n.configOptions}:void 0,connection:e,origin:this.origin,sessionId:this.selectedSessionId,isWorking:this.turnOpen||n?.status==="running",canFork:this.canFork,canHandoff:this.handoffSupported,handoff:this.handoff.state,permissionGroups:this.permissions.state,queue:this.queue,permission:this.pendingPermission,catalog:[],commands:this.commands,canLoadOlder:!this.historyExhausted&&(this.firstSeq??1)>1,missingSession:this.selectedSessionId?void 0:this.missingSession})}snapshot(){this.emit()}get selectedSession(){return this.selectedSessionId}creating;async ensureSession(){return this.creating&&await this.creating.catch(()=>{}),this.selectedSessionId||await this.create(),this.selectedSessionId}async warmRecentProjects(e=3){let n=[],r=new Set;for(let i of[...this.sessions].sort((o,a)=>Number(a.updatedAt??0)-Number(o.updatedAt??0))){let o=typeof i.cwd=="string"?i.cwd:"";if(!(!o||r.has(o)||!Dse(o))&&(r.add(o),n.push(i.sessionId),n.length>=e))break}n.length&&await this.request("_acpmux/warm",{sessionIds:n,limit:e}).catch(()=>{})}async send(e,n=[],r=crypto.randomUUID(),i){let o=this.handoff.state.record;if(this.handoffSupported&&this.selectedSessionId&&(!this.handoff.state.ready||o?.target.sessionId===this.selectedSessionId&&o.state!=="started"&&o.state!=="discarded"&&!this.handoff.state.receipt))throw new Error(ve("error.reviewContinuation"));let s=(this.creating?void 0:this.selectedSessionId)??await this.ensureSession();if(!s)return;let l=EO(e,n),c=`local-${r}`,u=Date.now();this.optimisticPromptRows.set(r,c),this.optimisticPromptTexts.set(r,l),this.rows.set(c,{id:c,version:1,at:u,kind:"user",text:l,pending:!0});let d=!1,p=()=>{this.promptAccepts.delete(r),!d&&(d=!0,i?.())};this.promptAccepts.set(r,p),this.emit();try{await this.request("session/prompt",{sessionId:s,prompt:xse(e,n),_meta:{acpmux:{promptId:r}}}),p()}catch(m){this.promptAccepts.delete(r);let f=m?.code,h=typeof f=="string"&&f.startsWith("transport."),x=!d&&i!==void 0;if($2(m)||x)throw this.rows.delete(c),this.optimisticPromptRows.delete(r),this.optimisticPromptTexts.delete(r),x&&!$2(m)?this.notice(ve("prompt.notSent",{reason:Su(m)})):this.emit(),m;let g=this.rows.get(c);throw g&&(this.rows.set(c,{...g,pending:!1,failed:!0,error:f==="transport.gesture_required"?ve("prompt.notSentGesture"):ve("prompt.notSent",{reason:Su(m)}),version:g.version+1}),this.failedPrompts.set(c,{input:e,attachments:n})),this.optimisticPromptRows.delete(r),this.optimisticPromptTexts.delete(r),this.emit(h?void 0:"failed"),m}return s}async retryPrompt(e){let n=this.failedPrompts.get(e);if(n)return this.failedPrompts.delete(e),this.rows.delete(e),this.emit(),this.send(n.input,n.attachments)}async continueIn(e){if(!this.handoffSupported||this.turnOpen||this.summary?.status==="running"||this.queue.length>0)return;let n=this.selectionGeneration,r=await this.handoff.prepare(e);if(!(!r||n!==this.selectionGeneration))return this.select(r.target.sessionId)}saveHandoff(e){return this.handoff.save(e)}startHandoff(e){return this.handoff.start(e)}async discardHandoff(){let e=this.selectionGeneration,n=await this.handoff.discard();if(!(!n||e!==this.selectionGeneration))return this.select(n.source.sessionId)}refreshHandoff(){return this.handoff.refresh()}async cancel(){if(!this.selectedSessionId||!this.socket)return;let e=JSON.stringify({jsonrpc:"2.0",method:"session/cancel",params:{sessionId:this.selectedSessionId}});this.wire.sent(e,"session/cancel"),this.socket.send(e)}async permission(e,n){this.selectedSessionId&&await this.request("_acpmux/permission_respond",{sessionId:this.selectedSessionId,permissionId:e,optionId:n})}async permissionGroup(e,n,r){await this.permissions.respond(e,n,r)}async select(e){let n=this.selectedSessionId,r=++this.selectionGeneration;return this.selectedSessionId=e,this.missingSession=void 0,this.markSeen(e),this.resetSessionState(),n&&await this.request("_acpmux/detach",{sessionId:n}),await this.attach(e,r),r===this.selectionGeneration&&this.selectedSessionId===e?e:void 0}create(e,n,r){let i=(async()=>{let a=await this.startSession(e,n,r);return a?this.select(a):void 0})(),o=i.finally(()=>{this.creating===o&&(this.creating=void 0)});return o.catch(()=>{}),this.creating=o,i}async startSession(e,n,r){let i=await this.request("session/new",Fse(n?{cwd:n,peer:r}:{...this.host,peer:r},e));return i?.sessionId&&!n&&(this.host={...this.host,cwd:void 0}),i?.sessionId?String(i.sessionId):void 0}shownSession(){let e=this.selectedSessionId;if(!e)return;let n=this.summary?.sessionId===e?this.summary:void 0,r=Number(n?.turnCount??0),i=C2(n?.hostKind)!=="cloud"&&!ka(n?.host);return{sessionId:e,harness:typeof n?.harness=="string"?n.harness:void 0,empty:this.rows.size===0&&this.queue.length===0&&r===0&&!this.turnOpen,...i&&typeof n?.cwd=="string"&&n.cwd?{cwd:n.cwd}:{}}}turnRunning(){return this.turnOpen||this.summary?.status==="running"}leave(){let e=this.selectedSessionId;e&&(this.selectedSessionId=void 0,this.selectionGeneration+=1,this.resetSessionState(),this.emit(),this.request("_acpmux/detach",{sessionId:e}).catch(()=>{}))}discard(e){e!==this.selectedSessionId&&this.request("_acpmux/kill",{sessionId:e,purge:!0}).catch(()=>{})}get prewarmSupported(){return this.localOrigin&&this.extensions.includes(Bse)}prewarm(e,n){this.prewarmSupported&&this.request(Bse,n?{harness:e,cwd:n}:{harness:e}).catch(()=>{})}adopted;async adoptChat(e){this.host={...this.host,adopt:void 0};let n;try{n=await this.request("session/new",Fse({adopt:e}))}catch(i){if(this.socket?.readyState!==WebSocket.OPEN)throw i;this.adoptFailed(i instanceof Error&&i.message?`: ${i.message}`:"");return}let r=n?.sessionId?String(n.sessionId):void 0;if(r&&mFe(n,e)){this.adopted=r,await this.select(r);return}r&&await this.request("_acpmux/kill",{sessionId:r,purge:!0}).catch(()=>{}),this.adoptFailed(": this acpmux can't resume chats")}notice(e){let n=Date.now(),r=zO("notice");this.rows.set(r,{id:r,version:1,at:n,kind:"notice",text:e}),this.emit()}adoptFailed(e){let n=Date.now(),r=zO("notice-adopt");this.rows.set(r,{id:r,version:1,at:n,kind:"notice",text:`Couldn't resume this chat${e}`}),this.emit()}async fork(e){if(!this.canFork||!this.selectedSessionId||this.forking)return;this.forking=!0;let n=this.selectionGeneration;try{let r=await this.request(S2,{sessionId:this.selectedSessionId,throughSeq:e});return!r?.sessionId||n!==this.selectionGeneration?void 0:await this.select(String(r.sessionId))}catch(r){if(n===this.selectionGeneration){let i=Date.now(),o=r instanceof Error&&r.message?`: ${r.message}`:"",a=zO("notice-fork");this.rows.set(a,{id:a,version:1,at:i,kind:"notice",text:`Couldn't fork this chat${o}`}),this.emit("fork failed")}return}finally{this.forking=!1}}async setModel(e){this.selectedSessionId&&await this.request("session/set_model",{sessionId:this.selectedSessionId,modelId:e})}async setMode(e,n){this.selectedSessionId&&await this.request("session/set_mode",{sessionId:this.selectedSessionId,modeId:e,...Use(n)})}async setConfig(e,n,r){this.selectedSessionId&&await this.request("session/set_config_option",{sessionId:this.selectedSessionId,configId:e,value:n,...Use(r)})}async harnesses(){let[e,n]=await Promise.all([this.request("_acpmux/harnesses",{}),this.request("_acpmux/models",{}).catch(()=>{})]);return mse(e,n)}async loadOlder(){if(!this.selectedSessionId||!this.firstSeq||this.firstSeq<=1||this.historyExhausted)return;let e=this.selectedSessionId,n=this.selectionGeneration,r=await this.request("_acpmux/events",{sessionId:e,beforeSeq:this.firstSeq,limit:400,kinds:["transcript"]});if(n!==this.selectionGeneration||this.selectedSessionId!==e)return;let i=r?.events??[];this.events=BO(i,this.events),this.rebuildKeepingLiveState(),this.historyExhausted=r?.more===!1||i.length===0||(this.firstSeq??1)<=1,this.emit("history")}close(){this.closed=!0,this.reconnectTimer!==void 0&&window.clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0,this.permissions.disconnected(),this.socket?.close(),this.socket=void 0,this.rejectPending()}rejectPending(){for(let e of this.pending.values())e.timer&&clearTimeout(e.timer),e.reject(Object.assign(new Error(ve("error.interrupted")),{code:"native.timed_out",origin:"native"}));this.pending.clear()}},Use=t=>t?{_meta:{cmuxGesture:t}}:{};function $2(t){let e=t?.reason;return e==="trust.pending"||e==="trust.untrusted"}function f_(t){for(let e of[t?.unavailable,t?.probeError])if(typeof e=="string"&&e)return e}function fse(t){let e=t?.harnesses??t?.items??t??[];return(Array.isArray(e)?e:Object.entries(e).map(([n,r])=>({id:n,...r}))).map(n=>({id:String(n.id??n.name),name:Hf(String(n.id??n.name),n.name==null?void 0:String(n.name)),models:(n.models??[]).map(r=>({id:String(r.id??r.modelId),name:r.name})),...f_(n)?{unavailable:f_(n)}:{}}))}var Nu=R(qe(),1),Xo=R(Q(),1);var Xse=R(qe(),1),I2=R(Q(),1);var GO={claude:{name:"Claude",viewBox:[0,0,94,94],tone:"#D97757",paths:[{d:"m18.77 62.44 18.41-10.32.3-.9-.3-.51h-.9l-3.1-.19-10.52-.28-9.1-.38-8.86-.47-2.23-.47L.4 46.16l.2-1.37 1.87-1.26 2.69.23 5.92.42 8.9.61 6.43.38 9.56.99h1.52l.2-.61-.5-.38-.41-.38-9.21-6.24-9.97-6.57-5.2-3.8-2.8-1.93-1.4-1.78-.62-3.94 2.53-2.82 3.44.23.86.24 3.5 2.67 7.43 5.78 9.72 7.13 1.41 1.18.57-.39.1-.27-.67-1.08-5.26-9.53-5.61-9.72-2.53-4.03-.66-2.4c-.26-1-.4-1.83-.4-2.86L24.88.72 26.5.2l3.9.52 1.61 1.4 2.43 5.54 3.9 8.69 6.07 11.83 1.77 3.52.96 3.24.35.98h.61v-.56l.5-6.67.92-8.16.9-10.52.31-2.96 1.47-3.56 2.93-1.93 2.28 1.08 1.87 2.68-.25 1.73-1.11 7.23-2.18 11.32-1.42 7.6h.81l.96-.99 3.85-5.07 6.43-8.07 2.83-3.2 3.34-3.51 2.12-1.7h4.05l2.93 4.42-1.31 4.55-4.15 5.26-3.44 4.46-4.93 6.6-3.06 5.32.27.44.74-.06 11.13-2.4 6.02-1.07 7.18-1.23 3.24 1.5.36 1.56-1.27 3.14-7.69 1.88-9 1.83-13.42 3.16-.14.12.17.26 6.05.54 2.58.14h6.32l11.8.9 3.08 2.01L94 56.5l-.3 1.92-4.76 2.4-6.37-1.51-14.93-3.57-5.11-1.27h-.7v.43l4.24 4.17 7.84 7.05 9.77 9.1.5 2.25-1.26 1.79-1.32-.19-8.6-6.48-3.34-2.9-7.48-6.34h-.51V64l1.72 2.54 9.16 13.75.45 4.23-.65 1.36-2.38.84-2.58-.47-5.42-7.55-5.51-8.45-4.45-7.6-.54.33-2.65 28.3-1.22 1.45-2.83 1.08-2.38-1.78-1.26-2.91 1.26-5.78 1.52-7.5 1.22-5.97 1.1-7.42.69-2.47-.06-.17-.54.1-5.6 7.66-8.5 11.5-6.73 7.18-1.61.66-2.79-1.46.26-2.58 1.56-2.3 9.31-11.83 5.62-7.37 3.62-4.23-.04-.6-.2-.03L16.5 72.63l-4.4.56-1.93-1.78.26-2.91.9-.94z"}]},anthropic:{name:"Anthropic",viewBox:[0,0,24,24],tone:["#FFFFFF","#191919"],paths:[{d:"M17.3 3.54h-3.67l6.7 16.92H24Zm-10.6 0L0 20.46h3.74l1.37-3.55h7l1.38 3.55h3.74l-6.7-16.92Zm-.38 10.22 2.3-5.94 2.29 5.94Z"}]},openai:{name:"OpenAI",viewBox:[180.4,180.4,354.9,354.9],tone:["#FFFFFF","#000000"],paths:[{d:"M508.7 317.4a90.2 90.2 0 0 0-110.4-110.5 90.2 90.2 0 0 0-151 40.5A90.2 90.2 0 0 0 207 398.3a90.2 90.2 0 0 0 110.5 110.5 90.2 90.2 0 0 0 151-40.5 90.2 90.2 0 0 0 40.3-150.9M471 244.8c16 16 22.6 37.8 19.8 58.6L415.6 260c-3.2-1.8-7-1.8-10.3 0l-87.9 50.8v-33.3c0-2.3 1.3-4.5 3.3-5.7l67-38.6a70 70 0 0 1 83.2 11.6m-113 66.3 40.4 23.4v46.7l-40.5 23.3-40.4-23.3v-46.7zm-93.1-41.4A69.7 69.7 0 0 1 377 215.6l-75 43.3a10 10 0 0 0-5.2 8.9v101.5L268 352.7a7 7 0 0 1-3.3-5.7zm-61.4 46.8a70 70 0 0 1 40.9-46.5v86.7c0 3.7 2 7 5 8.9l88 50.8-28.8 16.6a7 7 0 0 1-6.6 0l-67-38.6a70 70 0 0 1-31.5-78m41.4 154.4a70 70 0 0 1-19.8-58.6l75.1 43.3c3.2 1.9 7 1.9 10.2 0l88-50.7V438c0 2.4-1.3 4.6-3.3 5.7l-67 38.7a70 70 0 0 1-83.2-11.6m206.1-25A69.7 69.7 0 0 1 338.5 500l75.2-43.4c3.1-1.8 5-5.2 5-8.8V346.3l29 16.7c2 1.1 3.2 3.3 3.2 5.7zm61.4-46.7a70 70 0 0 1-40.9 46.5v-86.8c0-3.6-2-7-5.1-8.8l-88-50.8 28.9-16.6c2-1.2 4.5-1.2 6.5 0l67 38.6a70 70 0 0 1 31.6 78"}]},opencode:{name:"OpenCode",viewBox:[0,0,240,300],tone:["#F1ECEC","#211E1E"],paths:[{d:"M180 60H60v180h120zm60 240H0V0h240z",evenOdd:!0},{d:"M180 240H60V120h120z",tone:["#4B4646","#CFCECD"],monoOpacity:.35}]},pi:{name:"Pi",viewBox:[0,0,560,560],tone:["#FFFFFF","#000000"],paths:[{d:"M420 280H280V140H0V0h420z"},{d:"M560 560H420V280h140z"},{d:"M140 560H0V140h140v140h140v140H140z"}]},omp:{name:"oh-my-pi",viewBox:[0,0,120,90],tone:["#FAFAFA","#0D0D0D"],paths:[{d:"M12 8h96q2 0 2 2v8q0 2-2 2H12q-2 0-2-2v-8q0-2 2-2m15 12h8q2 0 2 2v58q0 2-2 2h-8q-2 0-2-2V22q0-2 2-2m50 0h8q2 0 2 2v41q0 2-2 2h-8q-2 0-2-2V22q0-2 2-2"},{d:"M74 55h14q3 0 3 3v10q0 3-3 3H74q-3 0-3-3V58q0-3 3-3M16 14a2 2 0 1 0 4 0 2 2 0 1 0-4 0m84 0a2 2 0 1 0 4 0 2 2 0 1 0-4 0",tone:"#F97316"},{d:"M77 59h1q1 0 1 1v6q0 1-1 1h-1q-1 0-1-1v-6q0-1 1-1m6 0h1q1 0 1 1v6q0 1-1 1h-1q-1 0-1-1v-6q0-1 1-1",tone:["#0D0D0D","#FAFAFA"],monoOpacity:0}]},hermes:{name:"Hermes Agent",viewBox:[441,2477,4640,4640],tone:["#FFFFFF","#000000"],paths:[{d:"M2780 2572a1368 1368 0 0 0-190 14 2820 2820 0 0 0-182 29l-35 7-32 7a3729 3729 0 0 0-177 41l-26 7-53 14-29 8a1014 1014 0 0 0-103 34l-13 4-26 10-29 11-50 19-58 25c-115 47-325 154-385 196l-37 24a1726 1726 0 0 0-128 86 1754 1754 0 0 0-376 344l-17 22c-20 28-60 88-81 126a2289 2289 0 0 0-136 291 2542 2542 0 0 0-48 154 955 955 0 0 0-24 112l-7 53c-5 32-6 44-6 133s1 108 10 160a629 629 0 0 0 210 369l20 15c44 35 126 80 166 90l25 9c37 12 64 19 69 17q3-2-1-3a268 268 0 0 1-93-85c-15-22-45-76-52-94l-9-21-6-16-20-53q-7-23-1-24a576 576 0 0 0 138 181c33 30 84 71 90 71s4 2 7 5l7 6-2 29c-1 30-5 69-14 154l-7 75-4 52-6 68c-2 24-5 56-8 71l-3 38-29 272-11 99-14 112a3847 3847 0 0 1-59 351c-14 61-48 143-74 177q-46 61-104 74c-24 6-97 5-118-2-39-14-61-28-93-59-41-42-63-90-77-168-5-27-4-121 1-148 10-47 16-67 38-111 10-19 17-35 16-36a603 603 0 0 0-111 141l-6 9a496 496 0 0 0-47 235 433 433 0 0 0 44 218q37 76 95 124c28 23 39 31 71 46a352 352 0 0 0 245 24c23-6 85-33 114-49l34-22a620 620 0 0 0 218-265q5-11 8-11c5 0 5-2 1 23a512 512 0 0 1-38 137c-8 18-38 76-50 94-23 35-35 50-70 85-63 62-114 93-186 110-23 6-100 6-124 0-26-6-82-23-88-26l-9-3c-3 0-55-25-76-38-31-17-48-30-78-60a398 398 0 0 1-111-176 515 515 0 0 1-26-120l-3-18q1-8-2-14-2-5-3 1a1395 1395 0 0 0 4 177c3 28 16 82 29 122 9 28 44 100 57 118 14 20 43 55 59 71a687 687 0 0 0 294 170l8 2 13 2 21 6c20 5 20 6 24 37q3 38 15 73a284 284 0 0 0 171 169l15 6 33 10c22 6 25 6 84 6a287 287 0 0 0 153-30c76-38 147-111 187-188q24-47 18-13l-20 91c-7 30-28 95-39 121-48 120-92 298-160 820-22 23-45 46-53 52l-6 6h594c20-8 96-47 121-84q20-67 31-36 4 7 4 22c0 8-9 43-20 56l-30 35-5 7h23l2-5c7-11 22-33 35-56 7-38 8-38 26-48 9-3 20-10 24-16 7-8 9 12 5 51-5 23-10 35-17 56l-7 18h85l5-10 16-28c4-6 12-17 16-36 35-376 107-683 136-710q47-44 48-25c0 13-6 17-12 30-17 34-60 146-148 739l-37 40h142l10-12c14-17 49-91 89-451 11-109 31-233 43-257 45-52 62-70 88-92 25-21 45-34 52-34s4 3 4 11c0 9-3 15-10 28l-15 22c-6 7-14 23-12 24q1 2 4-1 178-114 363-218l185-105c38-22 117-86 164-73q-10 16-26 27c-35 31-179 174-202 202-22 27-45 56-55 71-41 60-88 115-140 239-48 404-98 585-109 599l-17 20h128l1-3c18-40 37-207 56-555 39-206 83-286 140-354 74-89 171-158 276-208 104-50 217-81 331-102a764 764 0 0 0-313 163l-111 100c-53 61-98 107-137 179-36 67-70 539-88 767q-1 6-6 11l-2 2h120c19-450 94-772 170-852 87-92 192-175 304-234 169-87 363-73 551-20 210 60 395 263 435 1017l13 89h59c-3-16-9-49-11-72-57-840-272-1058-558-1125a1109 1109 0 0 0-153-24c-9-5-2-7 13-6l69 3c51 3 69 4 108 10l32 5c94 11 183 53 257 112a750 750 0 0 1 218 276c35 84 51 560 65 821h48c-5-51-8-381 20-691 35-69 96-100 144-142 52-46 102-98 131-161a1046 1046 0 0 0 111-484c4-79 2-138-8-229q-16-168-52-334c-22-104-43-213-75-315l-3-15-4-14-8-27-7-27-6-21-8-32-11-39-6-20-7-21c-1-10-6-26-9-37l-8-28-4-15-14-47-6-21-5-22-8-26-33-126-20-79-9-45-4-14-7-29-7-26-4-18-6-26-17-76q-3-4-6-21l-14-59-14-63-5-25-8-31-7-32-7-31-6-25-6-27-23-113-13-65-11-62-16-82-4-26c-9-37-10-40-10-46l-4-23-7-35-7-33-7-35-15-69-4-16-7-28-7-23-4-18c-3-15-28-102-35-120l-4-13-14-40-13-37-44-115-13-32a1028 1028 0 0 0-36-89l-4-11-13-32c-12-30-17-41-47-102a1508 1508 0 0 0-102-186l-44-63c-8-14-55-73-76-97l-40-47a1765 1765 0 0 0-268-234c-5-2-18-11-31-20a1437 1437 0 0 0-285-147l-37-15-30-10-27-10-88-28a1508 1508 0 0 0-219-52l-40-7-26-3-28-4c-50-8-104-11-195-10m-427 100c81 0 92 0 161 11a528 528 0 0 1 75 16 490 490 0 0 1 73 23l28 11 29 11a921 921 0 0 1 149 82l33 23c6 3 25 19 45 34a1471 1471 0 0 1 301 341c35 53 66 107 98 172s56 114 56 118l2 8a426 426 0 0 1 26 64l8 20 26 77 7 20 7 21 7 24 7 24 8 24 3 16 2 10c3 6 11 44 21 93l7 35q7 34-1 48c-4 7-17 16-23 16s-7 2-12 5c-12 5-24 18-26 28s4 29 13 37c6 6 40 22 46 22 8 0 86 43 113 63 21 16 48 42 48 48q-1 9-19-4c-6-5-26-16-43-25l-33-18-3-2-22-9-55-26c-43-18-53-26-61-49-16-45-18-64-6-75l21-13c7-4 18-9 22-13l10-6-1-29c-2-24-2-30-7-42-8-16-16-20-33-20s-46 4-78 10l-38 6c-67 9-84 16-96 36-6 10-8 14-8 31s1 22 5 31c8 16 13 19 32 19 35 0 39 3 42 29 2 14-4 65-9 76-5 16-8 20-15 31-10 15-26 33-68 78-45 49-49 50-26 3 15-30 23-41 56-75 29-31 34-38 36-57 1-18-3-28-16-38-8-7-37-19-45-19-9 0-26-34-26-56 0-23-1-10-3-14-1-4-4-18-5-31l-19-85-29-114-10-32-8-27-13-38-16-48a2569 2569 0 0 0-132-275 1317 1317 0 0 0-406-408l-23-14c-23-16-120-66-126-66-7 0-5-1-7-2a811 811 0 0 0-327-63c-53 1-143 9-174 16l-23 4-58 13c-33 10-44 7-21-4l15-6 11-4c24-11 28-13 32-13q7-1 9-3l8-4 22-7a2049 2049 0 0 1 234-70l25-6a618 618 0 0 1 191-18m-567 142q3 0 2 4-5 4-7 0-2-2 2-4zm2234 302h2c2 2 12 11 21 22a1416 1416 0 0 1 244 342c18 35 57 120 57 123l7 17 58 140 36 105 26 83 21 67a2322 2322 0 0 1 47 203q-1 21-6 7a2221 2221 0 0 0-89-319l-5-14-7-20-6-18-3-10-17-47-3-9-6-15-61-155c-18-43-61-131-72-148l-13-23-10-17-3-5-9-15-15-22c-7-12-30-44-44-63l-16-23c-12-17-26-33-27-32q-1 2 5 10l6 9 6 9c17 24 20 45 14 100-6 64-7 85-2 99 2 7 5 15 7 16q4 5 1 6c-4 3-16-11-32-34-15-23-17-25-19-23s5 23 15 41a3391 3391 0 0 1 121 263q4 11 1 14-1 3-14-22a1615 1615 0 0 0-95-179l-16-26q-8-10-8-14l-2-2-12-18q-14-25-16-19c-2 1 5 30 12 50 13 39 14 42 11 44q-3 6-26-33-10-20-16-21c-3-1-3 2-3 22a277 277 0 0 0 25 107l12 25 3 10 11 27 21 52 17 41q40 103 37 108-5 2-12-18l-81-180-18-35a691 691 0 0 0-112-160c-3 0-4 12-1 14q2 1 3 7a424 424 0 0 0 28 65l6 13 6 14 7 16 7 18 7 16 8 17 5 13 30 72 6 15 22 56c19 47 33 86 35 96q2 5-2 5t-4-4l-3-9q-4-4-4-9 0-4-3-10l-9-17c-2-8-10-23-15-36l-34-76-125-253q-9-16-13-10c-1 4-27 34-41 47-15 13-21 15-37 8l-23-10c-8-2-21-8-29-12l-25-11-15-6-17-7-18-7-18-6c-26-8-35-11-42-15q-15-7-3 8l5 7 67 142 19 41 25 56 5 10 35 79 7 17 10 25 11 26 6 15 2 5 3 11 9 21 7 18 12 31 13 35 7 16 4 12 3 11 11 29 9 27 3 9 15 43 16 46 20 63 10 32 26 83 5 15 22 70c0 3 2 14 6 25l10 36 11 38c5 12 8 25 10 31l10 34 11 38 7 23 19 64 13 46 6 20 7 24 7 24 10 34 9 30c2 2 6 16 10 29l18 56a2335 2335 0 0 1 54 183c10 38 14 54 16 69l21 92 6 32 6 33c2 7 3 17 5 20l2 14 3 19a504 504 0 0 1 17 93l6 38 5 35 12 87 6 47 5 40 8 87q-1 20-6 15l-2-18-19-133-5-28-4-27-6-37-6-35-4-26-7-32-7-38-6-29-16-83-3-17c-2-7-6-20-7-31l-14-60-10-41a508 508 0 0 0-16-65l-7-28-7-25a2474 2474 0 0 0-49-156l-15-48-9-30-18-52c-4-18-13-44-17-60l-16-52-13-43-11-40-15-52-12-44-6-22-6-19-35-121-33-110-13-42-10-30-24-75-23-69-43-125-10-25a454 454 0 0 0-24-64c-36-96-93-221-121-265-16-27-23-37-43-62l-6-7v7c0 8 7 35 18 65 4 12 8 23 7 24q-4 3-23-26l-21-28c-11-17-64-67-77-74l-21-11-14-5q-5 0-11-3l-23-6c-16-1-17-1-25 5q-12 10-16 1l-5-8-7-20-8-21c-7-14-7-15 23-15 29 0 70 8 111 18a440 440 0 0 0-6-116l-15-40q-10-25-7-27 1-2 4 1l9 15a2258 2258 0 0 1 75 120q3 6 10 4 6-1 18 1l28 7 38 10 37 11q14 3 20 6l17 3c10 1 12 1 23-9 13-12 46-47 51-55 3-5 3-7-7-24l-37-59-25-38-22-34c0-9 11 2 41 40 37 47 53 66 56 66q5-1 10-26l3-14h12c10 0 24 2 61 8q9 3 10-1c2-5-9-34-15-41l-8-12c-6-10-40-57-57-77-40-52-48-64-43-64 6 0 24 21 50 49 66 69 142 145 145 145q8 1-6-18l-10-14-7-11-7-10-15-22-17-24-13-17-10-14-16-23q-5-9 1-11 5 1 3 4l3 4c6 2 79 95 94 118 21 34 24 38 24 40q0 4 5 5 5 3 6 0l2-64c2-66 0-87-8-107-7-15-44-82-49-88-4-4-3-10 0-10m-1275 87a840 840 0 0 1 133 145q1 4 10 16c15 22 20 31 48 86l26 51 12-8q13-8 30-9c19-3 24 0 33 17 12 24 22 44 22 47q0 5 3 9l8 20 10 26q9 21-7 11c-11-8-47-26-62-32-19-7-22-5-20 12q1 14-1 14c-2 0-29-48-32-58a1075 1075 0 0 0-129-194q-8-14-13 6l-7 25c-12 33-12 37-11 49 1 13 3 20 14 44l7 16 6 15c12 26 13 29 13 34q0 6-4 2l-17-21c-12-15-31-34-35-34s5 41 12 53l3 10 3 11 23 64-1 8-5-8-15-28c-16-33-38-62-47-62s-3 5-3 12q0 32-12 8l-8-14c-4-3-6-3-16 1l-15 7c-4 3-4 36 0 54q7 24 0 24c-4 0-5-5-20-33l-14-22-8-12h-54c-49 0-54 0-58-4l-3-6-9-14-17-28-15-26q-7-10-7-15 1-6 13-19 21-22 48-60l8-10-6-13c-3-8-14-26-22-41-24-40-28-48-26-49 2-3 18 16 33 39 14 22 18 25 26 21q10-5 45-9c19-2 22-5 19-12l-8-24c-11-37-13-46-21-63-5-13-5-15 0-15s27 26 51 58q28 36 34 40c3 1 12-4 62-41l22-15 3-3q3-5-23-36-16-18-9-17m-428 80q4 0 22 19c42 46 104 127 130 173l16 26a1884 1884 0 0 1 84 176l10 26 22 74c-1 1-16-12-36-32l-34-34 1 19c2 11 3 34 4 53a976 976 0 0 0 15 115c0 4-5 2-7-2l-9-27a1494 1494 0 0 0-61-166c-4 0-2 34-2 77l-3 76q-4-3-16-25c-11-22-25-47-60-104q-18-30-15-13l4 22 3 17 6 41 7 51c4 16 3 38 1 38q-3 0-5-7a1229 1229 0 0 0-33-108c0-6-9-18-13-18q-7 0-19 7l-34 15q-4 0-7 4c-4 5-4 6 1 33q8 41 0 35l-7-19-10-25c-10-15-66-43-106-51l-26-6-21-5q-6 0-10-7c-6-7-21-69-22-87 0-8 0-9 17-17l29-13 18-7 29-12c33-12 36-15 31-33-3-16-5-31-3-35 4-4 5-2 14 22l10 29 3 9c0 3 8 19 10 19l33-31 33-30-2-15c-1-16-6-37-20-77q-11-34-5-35c4 0 8 14 15 32 18 46 19 48 25 54l5 5 8-6 9-6q6 0 9 19c2 20 8 45 10 45q7 1 4-60c-1-23-3-50-5-60a667 667 0 0 0-43-139q-9-19-4-19m1456 12q3 0 2 2l-2 3q-3-1-3-3t3-2m-2674 15h2q3 2-3 7-16 10-5-4zm410 13c2 3 3 0-17 38-19 38-68 142-78 168l-10 21-7 18-7 17-10 24-10 25c-4 9-6 18-6 19l-4 9-3 9q0 4-3 7l-7 18-7 20-24 67-7 20-7 21-6 22-9 34c-9 37-11 30-11-37 0-68-1-62-2-63q-3 0-7 9-5 8-8 9c-4 0-3-8 5-44l1-12-14 6-29 13-27 10c-12 5-26 21-26 27 0 7-2 6-4 8l-7 19-4 14h-39q-38 0-38-3 0-4 7-21l13-29 15-30 9-20 13-26 19-37 25-43 12-20 6-9q1-5 10-18l14-23 24-38c39-60 60-78 31-27a2014 2014 0 0 0-110 222c-3 7-4 19-3 19l18-9q14-10 20-12l16-10c18-10 41-29 56-45q20-22 60-87a1640 1640 0 0 1 176-250m-426 1h1l3 4q0 2-3 2-2 0-2-3zm-7 7q4 1-28 34c-45 49-96 115-128 165l-9 14c-2 2-20 28-24 36l-17 27-19 31-53 106-11 24-26 60-5 12-11 24-60 133-2 6q-3 4-20 51-10 27-11 10a560 560 0 0 1 35-125l10-28 39-105q10-19-13 3-19 21-18 13c0-5 4-16 7-23 8-20 11-44 3-31q-9 16-15 16-5 0 4-27l15-35 15-36 15-31 20-35 43-45 110-105a2491 2491 0 0 1 154-139m685 85c3-2 3 27 3 131s2 167 12 233c6 40 4 54-7 30l-7-18q-23-48-23-55 0-6-4-9-6-5-7 0v21q5 57 2 56l-10-17-14-32-7-18q0-3-5-7c-5-2-16 0-54 14l-65 19c-9 4-10 6-16 40-5 28-9 21-9-13 0-35-1-24-7-25-8-3-57 5-98 15-30 7-32 7-43-5-41-46-38-43-37-52l3-15 6-19 12-36 14-38 8-19 4-8q0-3 3-7 7-6 68 29c31 18 75 37 78 33l9-32 18-67c4-18 23-82 28-95q6-16 9-3l-9 39-15 59-9 44-4 20c-6 25-8 47-7 48l14-2 28-8 50-13c18-7 24-12 29-31a2135 2135 0 0 1 44-136l9-33q2-14 6-18m-134 7 4 2c2 3-2 10-5 9-2-3-1-11 1-11m-539 15 1 2c0 9-18 30-29 45l-24 37-25 37c-11 16-21 31-22 35q-2 9 11 9 11 1 18 6c14 6 15 5 28-14l20-29 28-40 59-77c7-8 14-8 9-1a4149 4149 0 0 0-113 187l-9 18q-15 23-7 24 5 0 14-6c11-5 17-6 43-8l31-1 16-25c8-15 16-26 18-25 3 0 1 10-4 20a3134 3134 0 0 0-129 306q-19 51-10-6c6-38 11-71 10-77q-1-5-4-7c-4-1-23 20-35 39-15 24-17 22-19-20q-2-29-5-33c-3-3-3-3-9 4q-5 6-9 7c-3 0-2-16 3-35 8-33 9-55 1-45-10 12-52 102-70 148l-11 27-3 12q0 4-3 8-4 5-4 9l-3 12-7 17c-5 13-30 99-30 103 0 3-5 6-7 2a619 619 0 0 1 30-130l20-65 7-22c11-34 17-50 23-63 8-14 6-20-2-8l-5 8c0 5-10 6-40 3l-44-3c-13 0-14-1-14-5 0-7 9-31 20-55l7-17 2-7 8-15 7-14 46-91q1-5 13-18l11-16h20l36 2 15 2 14-21c20-30 34-49 51-69l11-15c19-26 39-46 45-46m928 54q3 0 4 5l16 56 18 61 7 30 26 112 5 37q1 15-1 17l-15-24c-16-32-25-46-31-51-8-5-83-9-136-8-46 2-44 2-51-13q-4-6-8-8c-4-1-4 2-5 28 0 16-2 28-3 28q-2 0-7-18l-13-39-12-35-8-20c-8-16-16-79-13-102l2-12 27 2a975 975 0 0 1 173 23q29 7 27-20l-3-36q-2-12 1-13m-850 100q3 0 2 2l-4 2-1-2q0-2 3-2m-6 9q2 0 3 4-1 5-6 2-2-4 3-6m1837 12 2 3q-1 6-6 3-1-5 4-6m-169 27q2-1 3 1 2 4 1 6-3 6-8 0-2-6 4-7m1426 144q3 1 3 6 0 9-4 4c-2-3-2-10 1-10m7 17 3 2 2 5c0 3-7 2-9-1q0-3 2-5zm-2445 48 3 1-1 6q-3 2-4-1-2-3 1-5zm4 18q2 0 4 4c2 5 15 47 15 51q0 5 3 9l4 14a922 922 0 0 0 32 97l5 11 3 9 4 13 20 48a884 884 0 0 0 35 81c0 4 36 73 54 106l20 36q0 2 3 5l12 19 29 48c8 9 18 28 17 32q0 5-15 6c-8 0-21 2-29 4-25 3-31 3-35-3-11-17-44-84-60-120l-11-25-11-29-9-26c-6-14-24-72-34-105l-9-34-7-30-3-15c-4-12-17-67-21-88l-7-39-12-73q0-6 3-6m2374 72h1l3 5q-1 3-3 3-3 0-2-4zm-53 44q2 0 2 5l-2 4q-3-1-3-4 0-5 3-5m401 254q2 0 4 11 1 15-6 8l-1-10q0-9 3-9m7 37c2 0 5 9 3 13l-4 2c-3 0-3-14 0-15zm-3216 18 3 3q0 2-3 3-2 1-2-3 0-3 2-3m4 9c2 0 10 8 10 11q0 4 8 15l8 13 41 61c39 54 124 137 166 160 15 9 26 10 41 5a1129 1129 0 0 1 130-34c43-10 47-11 49-8q3 1-8 13c-13 11-40 42-50 57-18 23-33 63-25 63 7 0 9-3 17-7l19-7c5 0 31-15 39-22l15-11 25-17c26-17 29-20 44-28 35-20 84-43 92-43s6-2 9-4l11-3 8-2q2-2 9-3c10-2 39-12 58-21 7-4 20-8 28-10 20-3 16-7 68 64q9 12 16 14c3 1 31 0 60-2l115-4c60-2 188 0 201 3q8 2 13-3c6-4 6-5 6-61l3-60c2-6 7 6 11 21l5 25q15 46 17 64c2 14 9 20 29 21 28 3 86 12 121 19 24 5 49 12 54 16q3 4 6 17c4 21 6 299 2 344l-4 55a1407 1407 0 0 1-14 117q-4 34-14 87l-5 37-5 27-6 35-11 58-2 16-5 23-15 82c-3 9-6 25-7 34-2 10-6 26-7 37l-5 26a503 503 0 0 1-14 78l-14 74-5 26-36 234c-2 4-2 11-8 66l-5 36-6 46-7 63c-3 22-4 55-3 124 0 101 0 107 14 178 3 20 6 38 5 41 0 3-19 21-41 40l-61 56c-12 12-23 21-25 21q-5 0-18-28c-28-54-57-101-96-153-46-61-94-117-122-140-49-40-75-47-132-38l-49 7-50 7-38 6-40 6c-48 7-63 9-91 11l-55 4c-47 4-108 3-153-4a240 240 0 0 1-78-31c-16-8-47-40-61-61-15-22-29-46-29-47l-8-13-21-39-27-48c-87-156-113-207-159-306-16-35-35-83-40-102l-5-15c-4-9-11-35-14-47l-8-31-9-43-7-38a1358 1358 0 0 1 9-263q2-32 7-17c8 42 16 61 36 88 14 19 43 49 68 71q37 31 45 61c8 26 4 55-10 73-30 43-34 51-28 76l6 20 7 18c9 22 17 35 41 66 17 23 21 30 18 32q-6 4-19-6-5-6-8-6c-3 0-1 14 4 23 5 11 14 49 14 60s20 41 52 69a239 239 0 0 0 35 28q13 12 20 4 5-9-15-22l-9-7q0-3 35-10c10-2 14-4 40-16 25-11 31-21 9-14-28 9-48 11-78 10-33-1-39-3-51-15q-15-15-16-37c0-13 0-13 12-26 13-16 21-21 47-24l37-7c16-4 23-4 50-4a466 466 0 0 1 133 24c2 3-2 9-7 9-12 0-52 20-52 26s3 3 21-2a351 351 0 0 0 84-32l18-5 10-2v-12c0-11-1-14-7-21q-10-12-19-1c-4 4-6 4-17 3a223 223 0 0 1-89-37l-34-20c-47-28-65-35-108-48-22-6-56-1-67 10q-10 8-21-10c-4-6-15-21-26-33q-18-21-16-25l3-8q1-6 9-21c14-24 15-30 17-54 0-21 0-23-8-39-10-20-20-33-59-69-34-31-44-43-63-76q-26-44-23-79c1-14 2-19 7-26 6-10 34-34 56-48 16-11 46-38 58-51 8-11 19-26 38-56 13-20 32-61 38-82l6-21c2-4 4-22 4-41 1-30 1-35-4-51q-9-28-28-58c-11-18-48-54-66-66l-26-16c-28-18-67-29-67-19 0 9 0 3 1 3q4 1 19 13l31 19 18 8c1 2 13 9 26 16 17 9 26 17 37 29q14 15 15 19-1 6-16-3c-16-10-65-23-91-26a162 162 0 0 0-69 13c-1 0-7 3-10 6l-7 5 14-5c22-9 61-11 86-5l28 6q24 4 43 13l19 5q5-1 14 10 7 10 7 15l3 5c2 3 9 28 11 40q1 9-2 10-3 0-22-17c-21-21-30-29-57-47q-13-9-47-20c-11-4-55-3-64 1-15 6-41 16-48 17-10 3-20-13-45-67-7-14-14-38-12-42 1-5 35-24 50-29l17-6q6-3 40-6 24-2 63 8 26 6 13-10c-8-9-19-18-43-29-14-7-15-8-13-11l8-5 12-5 43-14 22-7a614 614 0 0 1 122-29q0-3-11-21a1170 1170 0 0 1-115-250zm705 291c-45-1-63 0-101 8-50 10-61 15-84 38-40 42-61 71-58 78q6 8 35-9 15-10 22-9 6 2 7-2c2-7 37-28 41-25l1 3-8 6c-4 2-14 10-21 17-7 6-16 13-18 13q-5 2-5 5 0 4-10 14t-9 12c2 3 9 1 12-2 3-4 12-4 13 0 2 3-5 8-30 24-23 14-13 13 16-1l14-5c2 2 0 5-18 28q-22 26-17 32 3 2 9-3 5-5 8-5l10-7q7-6 10-5 1 2-3 17c-4 14-4 15 0 21q6 13 8 1c5-18 22-47 38-63 18-19 45-40 56-46q9-3 12-8 8-4 5 6-13 27-17 44c-11 51-8 61 17 72l13 7q1 3-8 11l-10 9 3 8c10 24 49 65 72 76 14 6 17 7 42 7s29-1 40-6c16-7 44-30 61-48 11-13 24-36 24-42q-1-4-12-14c-17-14-15-19 8-24 7-2 16-12 16-17q-1-6-6-14-13-26 11-14l31 17 41 24 19 14v11c-1 19-15 46-33 64-34 32-69 50-139 70-22 7-46 9-89 9-65 0-102-6-154-28-28-12-44-13-60-4-10 7-15 16-6 12 9-3 31-6 38-5l24 10c19 9 20 12 12 26q-10 20 10 6 12-7 21-7h9l1 12 1 12 10-8 12-9q6 2 7 12 0 8 2 9 2 5 6-1c12-14 14-15 19-15q6 1 7 9c3 13 6 15 17 3 16-16 23-13 31 10q1 3 6 4c4 0 5-1 8-15q2-6 8-8c7-2 11 0 25 12 9 7 9 7 13 3q5-5 6-9-1-7 15-6c13-1 15-1 28 8q24 17 14-4l-4-9 7-5c7-6 18-6 41 0l19 5q12 3-5-14-8-10-8-13c1-5 51-6 62-1q8 3 10 2c2-2-9-11-20-17q-19-9-9-15 4-4 31-5 41-3 23-8l-13-3-11-3q-5 0-5-4c0-7 8-10 35-10 24 0 33-2 35-6q0-5-26-9-10-1-11-4-1-5 33-3c21 2 24 1 25-2q5-9-21-9c-33 0-36-9-4-11q19-2 19-4 1-6 12-6 11-2 21-9c4-2-9-5-23-5s-17-2-17-3l9-7 17-10c8-5 32-14 58-22q18-6 20-13c0-4-14-1-32-1q-48 0-46-6 1-5 7-5c11-4 29-14 35-19 7-6 7-6-24 5-21 7-47 10-50 5q-1-2-9-4c-12-2-23-8-22-11 1-4 10-5 14-2 3 3 14 4 14 1s-11-12-25-19l-38-19-117-59-20-8q-4-3-8-3c-3 0-15-4-28-10l-13-4-10-2q-5-3-21-5l-80-11q-22-4-12-9l35-4c29-2 38-1 79 8 14 3 51 15 62 20l18 7 37 15 23 10 23 11q2 1 2-1l-10-7q-11-4-20-11t-13-7c-1 0-9-2-16-7l-40-18-13-6-8-2q-4 0-10-3l-18-7-22-7c-16-5-31-7-73-8m-168 44q5 0 4 2c-1 5-8 6-8 1q0-3 4-3m38 5 3 2q3 3 0 4-8 4-11 0c-2-2 4-6 8-6m-47 2q2 0 2 3-1 6-3 4l-4 2q0 2-3 3-8 1 1-8zm33 6q6 0 2 4-5 6-10 2-4-4 3-6zm-17 6 4 3q6 3-4 8l-27 18-25 17c-9 4-9 4-9 1q1-6 15-17l20-13 16-10 6-4zm415 24h-2q-2 2 1 2l4-2zm1229 69c50 3 86 16 126 45 18 13 44 41 43 47q0 3-18 5c-58 5-57 5-76-5-36-19-50-22-101-22a199 199 0 0 0-102 19q-24 13-41 3l-20-8q-26-6-10-19c10-11 35-29 55-39 40-21 80-28 144-26m-1661 126c-4 1-5 17-1 23 3 7 9 6 9-2 0-9-4-21-8-21m-607 10h11v31l1 31 8 7 15 11 6 5-8 6c-8 7-8 11-2 30 9 31 29 63 44 72 9 5 7 8-12 19-11 7-16 8-33 9l-20 1-8-9c-5-4-11-13-12-18l-7-17a375 375 0 0 1-10-159q9-19 27-19m-30 245c4 0 12 7 15 13l4 9 10-6q18-10 20-3c0 6-3 5-6 7-15 9-39 31-44 38q-14 22-11-12c2-19 7-42 10-45zm167 200h-5q-6 1 7 7 42 21 79 65 6 7 8 3c2-4 0-19-4-29-4-9-20-25-35-33-10-5-37-13-50-13m2651 249c7 3 18 140 17 239a1085 1085 0 0 1-24 230c-5 2-4-13 3-70a2232 2232 0 0 0 3-399m-2694 24 5 6q3 16 21 40l12 17c0 13-33-22-39-40q-8-23 0-23m104 42 8 1 20 6 17 6q7 4 10 4c4 0 32 15 32 18q0 4-22 4c-55 4-65 4-76-1-14-5-29-17-26-21 0-2 9-7 19-11q14-7 18-6m-13 50c5 1 13 3 13 6q-1 3-10 3-10 0-10-3t3-5zm37 15q9 3-4 17-9 8-16 8-7 2-7-7 0-8 4-7l12-6zm1711 19q3 0 4 40c3 60 6 128 9 157l6 69c4 49 10 101 13 120 2 12 2 14-3 18l-26 16c-29 15-28 15-55 31-31 18-95 61-114 75l-16 12q-6-1 3-22l7-22 28-83 10-31 7-20 12-37c3-5 19-55 26-77l8-23a408 408 0 0 0 22-60l13-36 15-44 12-36a229 229 0 0 1 19-47m1395 5c13 118 54 281 73 390a1668 1668 0 0 1 14 553c-6 48-12 95-26 154-1 5-10 27-10 22-1-9 13-97 14-110l10-114c35-380-58-610-75-895m-3109 49c-6 0-16 12-20 26-5 11-5 13 0 21l7 12q6 8 12-12c2-7 6-16 9-19 9-11 10-16 2-23q-6-5-10-5m2559 277 3 3q1 2-3 2l-4-2zm-142 23 3 6c1 6-4 12-6 6-2-4-1-11 3-12m-6 25q2 0 2 9a914 914 0 0 1-49 174q-8 4-1-18c7-20 29-98 38-134q8-30 10-31m-646 171q6 0 5 10c0 14 1 14 4 21l3 20 4 23 20 88 7 31c0 12-51 65-85 88-16 10-45 24-60 29-19 6-61 5-83-1-13-4-35-22-45-37-21-33-37-78-32-95 2-9 24-31 47-48q27-19 89-54l16-11 18-10 13-7a640 640 0 0 1 79-47m592 16q4 0 4 7t-4 7-3-7q0-6 3-7m-7 20h1q3 3 3 5-1 7-6 1-2-4 2-6m-2416 351q3 0 0 13a978 978 0 0 1-30 188l-21 70-2 7-3 12-12 31c-19 51-58 119-87 152-26 30-43 45-60 59-29 21-52 32-91 42l-55 2c-48 0-70-4-93-16-15-8-41-29-51-41-10-13-23-37-22-39l64-3c70-1 105-5 147-18 31-9 72-30 94-48a512 512 0 0 0 117-143c11-19 35-67 41-83l7-18 4-11 7-19c9-22 18-50 32-102l8-28q2-5 5-7zm1263 16c9 0 3 2 3 4 0 3 5 15 11 28l4 8 10 26c38 81 85 130 202 213l23 17c29 25 80 55 132 78q20 10 20 13l-26 20c-14 8-26 17-27 18l-7 5-14 10a1890 1890 0 0 1-143 95 1053 1053 0 0 1-142 71l-42 19-10 5-14 6-95 45-28 14-43 19c-25 9-29 9-30 1a560 560 0 0 0-76-167l-47-73-49-76c-37-57-62-99-62-106s13-6 42-6a238 238 0 0 0 85-14l34-14 30-15 89-90c84-84 161-154 170-154m1962 185q3 1 0 12-4 14-8 6l3-11q3-7 5-7m-7 36c3 0 2 12-1 14l-5 1c-2-1 3-14 6-15"}],small:{viewBox:[-19.7,0,78.5,78.5],paths:[{d:"M37.2 0 33 7.8l-4.1 5.6-8.2 9L6.9 35.6l-3.8 5-2.2 4.3-.9 2.9v3.4L3.4 53l1.4 2.5.8 3.9v4l-.9 3.7-3.1 3.4 2.9 3.9 1.1 4.2 1.2-1.9V73l.7-1.7 3.4-4.1.3-1.2 2-1.5.6-1.3-.1-1.7 2-1.5.7-1.3-.2-2.7 1.3-.6 2-2.6.3-2.3-1-1.4 1.9-2.4 5.5-2.6 4.7-3.4 2.6-2.6 2.4-3.8 1-2.7.1-2.6-8 5.1 4.2-4.2 4.1-6.3 1.2-3.6.3-5.1-1 .5-6.4 7.3-3.9 3.3 5.9-7.4 3.5-7.4 1-4.8V1.5L37.4 0Zm-8.1 34.2-.3.1Z",evenOdd:!0}]}},deepseek:{name:"DeepSeek",viewBox:[0,0,24,24],tone:"#5786FE",paths:[{d:"M23.75 4.65c-.26-.12-.37.11-.51.23l-.14.14c-.37.4-.8.66-1.37.63a2.7 2.7 0 0 0-2.17.84 2 2 0 0 0-1.24-1.54c-.36-.16-.71-.31-.96-.65-.17-.24-.22-.51-.3-.78-.06-.16-.11-.32-.3-.35-.2-.03-.27.14-.35.28q-.46.87-.43 1.84a4 4 0 0 0 1.84 3.4q.2.13.13.31l-.26.84c-.06.18-.14.22-.33.14a6 6 0 0 1-1.74-1.18c-.86-.83-1.63-1.74-2.6-2.46l-.68-.47c-.99-.96.13-1.74.38-1.84.27-.1.1-.43-.78-.43-.87 0-1.67.3-2.68.69a3 3 0 0 1-.47.14 10 10 0 0 0-2.88-.1 6.2 6.2 0 0 0-4.5 2.62 7.7 7.7 0 0 0-1.26 6.07 9.3 9.3 0 0 0 3.36 5.65 9 9 0 0 0 6.44 2.14 7.6 7.6 0 0 0 5-1.86c.46.24.96.33 1.77.4.63.06 1.24-.03 1.7-.13.74-.15.7-.83.43-.96-2.16-1-1.68-.6-2.12-.93 1.1-1.29 2.77-3.6 3.29-6.73.05-.34.11-.83.1-1.11 0-.17.04-.24.24-.26a4 4 0 0 0 1.54-.47c1.4-.77 1.96-2.02 2.1-3.52.02-.23 0-.47-.25-.59M11.58 18.17c-2.09-1.64-3.1-2.19-3.52-2.16-.39.02-.32.47-.23.76s.2.49.37.74c.11.17.19.42-.12.6-.67.42-1.84-.14-1.9-.16a8.7 8.7 0 0 1-3.3-3.31 10 10 0 0 1-1.3-4.48c-.01-.39.1-.52.48-.6a5 5 0 0 1 1.53-.03 9.6 9.6 0 0 1 5.47 2.77c.87.86 1.53 1.89 2.2 2.9.72 1.06 1.5 2.07 2.48 2.9q.51.45.9.68c-.8.1-2.15.11-3.06-.61m1-6.44a.3.3 0 0 1 .42-.29l.1.07a.3.3 0 0 1 .1.22.3.3 0 0 1-.31.3.3.3 0 0 1-.3-.3m3.1 1.6q-.3.13-.59.15a1.3 1.3 0 0 1-.8-.25c-.27-.23-.47-.36-.55-.76a2 2 0 0 1 .02-.59c.07-.32-.01-.53-.24-.72-.19-.16-.43-.2-.7-.2l-.24-.08a.25.25 0 0 1-.12-.36 1 1 0 0 1 .2-.2c.35-.2.76-.14 1.14 0 .35.15.62.42 1 .8.4.44.46.57.69.9q.27.4.44.85.1.3-.25.45"}]},gemini:{name:"Gemini",viewBox:[0,0,24,24],tone:"#3186FF",paths:[{d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12 12 0 0 1-3.81-2.58 12 12 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12 12 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}],overlays:[{x1:7,y1:15.5,x2:11,y2:12,stops:[[0,"#08B962",1],[1,"#08B962",0]]},{x1:8,y1:5.5,x2:11.5,y2:11,stops:[[0,"#F94543",1],[1,"#F94543",0]]},{x1:3.5,y1:13.5,x2:17.5,y2:12,stops:[[0,"#FABC12",1],[.46,"#FABC12",0]]}]},cursor:{name:"Cursor",viewBox:[0,0,466.7,532.1],tone:["#EDECEC","#26251E"],paths:[{d:"M457.4 126 244.4 3c-6.8-4-15.3-4-22.1 0L9.3 126A19 19 0 0 0 0 142v248c0 6.7 3.6 12.8 9.3 16.2l213 123a22 22 0 0 0 22.1 0l213-123c5.8-3.4 9.3-9.5 9.3-16.2V142c0-6.6-3.5-12.7-9.3-16m-13.3 26L238.4 508.2c-1.4 2.4-5 1.4-5-1.4V273.6c0-4.7-2.5-9-6.6-11.3l-202-116.6c-2.3-1.4-1.3-5 1.4-5h411.3c5.8 0 9.5 6.2 6.6 11.3"}]},amp:{name:"Amp",wordmark:!0,viewBox:[0,0,281,144],tone:["#FFFFFF","#000000"],paths:[{d:"M236 20a43 43 0 0 1 44.6 44.7c0 28.8-20.5 49.5-47 49.5q-14.3 0-25-5.7A34 34 0 0 1 195 94.3l-6.8 47.5-.2 1.2h-13.7l.2-1.6 17.4-119h13.6l-1.5 9A47 47 0 0 1 236 20m-189 .2c9.4 0 18 1.7 25 5.6a34 34 0 0 1 13.8 14.3l2.3-16.4.2-1.2h13.6l-12.7 88.1-.2 1.2H75.4l1.3-9a46 46 0 0 1-32.1 11.5A43 43 0 0 1 0 69.6c0-28.8 20.5-49.4 47-49.4m69.2 90.4-.1 1.2h-13.6l12.9-88.1.1-1.2h13.6zm24.5 0-.2 1.2h-13.6l12.9-88.1.2-1.2h13.5zM178 22.5l-13 88.1-.2 1.2h-13.5l12.8-88.1.2-1.2zM48.5 32C27.9 32 14 48.4 14 69c0 8.8 2.8 17.2 8.3 23.3a32 32 0 0 0 25 10.2c20.6 0 34.4-16.6 34.4-37.1 0-10-3.5-18.3-9.3-24.2a33 33 0 0 0-24-9.2m184.9-.2c-20.7 0-34.5 16.6-34.5 37.2 0 10 3.5 18.2 9.3 24a33 33 0 0 0 24 9.3c20.5 0 34.4-16.4 34.4-37 0-8.8-2.8-17.2-8.3-23.3a32 32 0 0 0-25-10.2"}]},copilot:{name:"GitHub Copilot",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M23.92 17c-.86 1.5-5.86 5.02-11.92 5.02S.94 18.49.08 17L0 16.74v-2.87l.05-.22c.38-.93 1.35-2.29 2.6-2.65.18-.43.42-1.06.65-1.52a10 10 0 0 1-.05-1.09c0-1.33.28-2.5 1.13-3.37q.6-.6 1.48-.95a9.5 9.5 0 0 1 6.12-2.09c2.73 0 4.76.96 6.16 2.1q.88.34 1.48.95c.85.86 1.13 2.03 1.13 3.36q0 .56-.05 1.09c.23.46.48 1.09.64 1.52 1.26.36 2.23 1.72 2.6 2.65l.06.22v2.87zm-11.75-6h-.34a4 4 0 0 1-.36.51c-.77.95-1.91 1.5-3.5 1.5-1.73 0-3-.36-3.79-1.26l-.08-.1-.1.1v6.58c1.44.78 4.51 2.18 8 2.18s6.57-1.4 8-2.18v-6.58l-.1-.1-.08.1c-.8.9-2.06 1.25-3.78 1.25-1.6 0-2.74-.54-3.51-1.49a4 4 0 0 1-.36-.5m2.33 3.25a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1 1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1m-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1 1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1m3.31-6.18c.14 1.06.4 1.91.88 2.5.44.54 1.14.93 2.35.93 1.57 0 2.29-.33 2.65-.75.39-.43.56-1.15.56-2.36 0-1.14-.24-1.84-.7-2.32-.48-.48-1.32-.86-2.83-1.02-1.49-.16-2.2.14-2.53.53q-.42.43-.44 1.58v.02q0 .4.06.89m-1.62 0q.06-.5.06-.9v-.01c0-.77-.17-1.27-.44-1.58-.34-.4-1.04-.7-2.53-.53-1.5.16-2.35.54-2.82 1.02s-.71 1.18-.71 2.32c0 1.21.18 1.93.56 2.36.36.42 1.08.76 2.66.76 1.2 0 1.9-.4 2.34-.94q.69-.9.88-2.5"}]},grok:{name:"Grok",viewBox:[56,56,400,400],tone:["#FFFFFF","#000000"],paths:[{d:"m210.5 312.8 133-102.4c6.5-5 15.8-3 19 4.7 16.3 41.1 9 90.5-23.6 124.5A105 105 0 0 1 219.8 364l-45.2 21.8c64.8 46.2 143.5 34.8 192.7-16.5 39-40.7 51-96.2 39.8-146.2v.1c-16.3-73.5 4.1-102.8 46-162.9L456 56l-55 57.4v-.2z"},{d:"M183 337.6c-46.5-46.3-38.5-118 1.2-159.4a108 108 0 0 1 119.5-24.7l45-21.7a145 145 0 0 0-193 16.8A162 162 0 0 0 123 318c17 43.2-10.9 73.7-39 104.6-10 10.9-20 21.8-28 33.4z"}]},kiro:{name:"Kiro",viewBox:[202,202,796,796],tone:"#FFFFFF",paths:[{d:"M399 819c-83 182 92 228 222 121 38 120 180 30 231-62a643 643 0 0 0 56-456c-80-293-480-293-549 2-16 52-17 110-26 171a330 330 0 0 1-50 146c-23 43-13 126 105 83zm237-270c-33 0-38-39-38-62q0-32 11-49 10-14 27-14 18 0 28 15 12 16 13 48-2 60-41 62m135 0c-33 0-38-39-38-62q0-32 11-49 11-14 27-14 18 0 29 15 12 16 12 48-1 60-41 62",evenOdd:!0},{d:"M636 549c-33 0-38-39-38-62q0-32 11-49 10-14 27-14 18 0 28 15 12 16 13 48-2 60-41 62m135 0c-33 0-38-39-38-62q0-32 11-49 11-14 27-14 18 0 29 15 12 16 12 48-1 60-41 62",tone:"#000000",monoOpacity:0}],tile:{viewBox:[0,0,1200,1200],radius:260,tone:"#9046FF"}},antigravity:{name:"Antigravity",viewBox:[13.9,15.1,83.6,83.6],tone:["#FFFFFF","#000000"],paths:[{d:"M89.7 93.7c4.67 3.5 11.67 1.16 5.25-5.26-19.25-18.66-15.17-70-39.08-70-23.92 0-19.84 51.34-39.09 70-7 7 .59 8.75 5.25 5.25 18.09-12.25 16.92-33.83 33.84-33.83 16.91 0 15.75 21.58 33.83 33.83"}]},factory:{name:"Factory",viewBox:[93.8,93.3,317.3,317.3],tone:["#FAFAFA","#020202"],paths:[{d:"M322 150.7a4 4 0 0 1-2.8-2.2 4 4 0 0 1-.1-3.4c8.1-19.4 11.7-34.9 6-41.4-15.4-17.2-77 17-96.6 28.6a4.3 4.3 0 0 1-6.2-2c-8.2-19.3-17-32.7-25.7-33.3-23.3-1.5-42.1 65.2-47.6 87a4 4 0 0 1-2.2 2.7 4 4 0 0 1-3.6 0c-19.8-7.9-35.7-11.4-42.3-5.7-17.6 15 17.4 75.1 29.3 94.3a4 4 0 0 1-.6 5q-.6.6-1.4 1c-19.8 8-33.6 16.5-34.2 25.1-1.6 22.8 66.7 41.1 89 46.5a4 4 0 0 1 2.8 2.2 4 4 0 0 1 .1 3.5c-8.1 19.3-11.7 34.8-6 41.3 15.4 17.2 77-17 96.7-28.6a4.3 4.3 0 0 1 6 2c8.3 19.3 17 32.7 25.8 33.3 23.3 1.6 42.1-65.2 47.6-87a4 4 0 0 1 2.2-2.6 4 4 0 0 1 3.6-.1c19.8 7.9 35.7 11.4 42.3 5.7 17.6-15-17.4-75.1-29.3-94.3a4 4 0 0 1 .6-5q.6-.6 1.5-1c19.7-8 33.5-16.5 34-25.1 1.7-22.8-66.6-41.1-88.9-46.5M295.3 129c4.4 7.8-18.7 60.1-35.8 96.7q-.5.8-1.4 1.4a3 3 0 0 1-3.8-.3q-1-.7-1.1-1.6c-7-23.8-14.9-51.7-23.4-75.4a4 4 0 0 1 0-2.9q.6-1.4 2-2.1c21.2-11.3 57.4-26.3 63.5-15.8m-101.6 6.5c8.9 2.4 30.4 55.3 44.7 93a3 3 0 0 1-1 3.7 3 3 0 0 1-3.8.3c-22.1-12-48-26.2-71-37.1q-1.5-.7-2.1-2.1a4 4 0 0 1-.2-2.9c6.8-22.6 21.6-58.2 33.4-55m-67 74.6c8-4.3 61.5 18.2 99 35q.8.4 1.4 1.3a3 3 0 0 1-.3 3.8q-.6.8-1.7 1c-24.3 6.8-52.9 14.6-77.2 22.8q-1.5.6-2.9 0-1.5-.6-2.2-1.9c-11.5-20.7-27-56-16.1-62m6.6 99.2c2.5-8.6 56.7-29.7 95.3-43.7a4 4 0 0 1 3.7 1 3 3 0 0 1 .4 3.7c-12.3 21.6-27 46.9-38.1 69.5q-.7 1.4-2.1 2-1.5.5-3 .2c-23-6.7-59.6-21.1-56.2-32.7m76.4 65.5c-4.4-7.8 18.6-60 35.8-96.6q.5-1 1.4-1.5a3 3 0 0 1 3.8.3q.9.6 1.1 1.6c7 23.8 14.9 51.7 23.4 75.4q.4 1.5 0 2.9-.6 1.5-2 2.1c-21.2 11.3-57.4 26.4-63.4 15.8m101.5-6.4c-8.8-2.5-30.3-55.4-44.6-93.1a3 3 0 0 1 1-3.7 3 3 0 0 1 3.8-.3c22 12 47.9 26.3 71 37.2q1.5.6 2.1 2 .6 1.5.2 2.9c-6.8 22.6-21.6 58.2-33.5 55m67.1-74.7c-8 4.3-61.5-18.2-99-35q-.9-.4-1.4-1.3a3 3 0 0 1 .3-3.8q.6-.8 1.6-1c24.4-6.8 53-14.6 77.2-22.8q1.5-.5 3 0t2.2 1.9c11.5 20.7 27 56 16.1 62m-6.6-99.2c-2.5 8.7-56.7 29.7-95.3 43.7a4 4 0 0 1-3.7-1 3 3 0 0 1-.4-3.7c12.3-21.6 27-46.8 38-69.5q.8-1.4 2.2-2t3-.1c23 6.6 59.6 21 56.2 32.6"}]},qoder:{name:"Qoder",viewBox:[31.5,32.5,143,143],tone:["#FFFFFF","#0F0D0C"],paths:[{d:"m104 35.8 1 .5 49.9 26.3.3.2q8.4 4.6 13 13t4.6 19.3v63.2q0 8-6.8 12.3a14 14 0 0 1-14 1l-8.5-4v.1l-.2.1h-.1l-1.7 1-.3.2-1.2.6-.7.3h-.1l-1.2.6-.7.4-1.2.4h-.1l-.1.1h-.2l-1.8.8h-.2l-.5.2-2 .6-3.6 1-1.8.4-.4.1-.4.1-1.4.3h-.5l-1.4.3h-1l-.5.1h-.1l-1.5.1h-5.2l-1.3-.2h-.3l-1.4-.3h-.5l-.6-.2h-.3l-1.3-.4-.5-.1-2.2-.7h-.1l-1.6-.7-.2-.1-1.1-.5h-.1l-.3-.2h-.2v-.1l-.4-.2-49.4-26-1-.6a32 32 0 0 1-8.6-6.9l-1.4-1.8a38 38 0 0 1-7.3-23.4V90.5a72 72 0 0 1 .6-8.2v-.2l.3-1.1v-.3l1-4.1v-.1l.7-2.4 1.6-4.3.4-1 1.6-3.3.6-1.3 1.7-2.9.5-.9 1.3-2 .3-.4.3-.4v-.1l.7-.9.7-1 .4-.4.3-.4 2.4-2.9.7-.7 1-1.1.6-.7 3.5-3.2.6-.5 5-3.8.5-.4 3.6-2.1.6-.4 3.2-1.5.4-.2.4-.2 1.2-.5h.3l4.6-1.6 3.5-1a37 37 0 0 1 5.4-1.1h.7l1.2-.2h.4l1.8-.1h4.7l1.3.2h.3l1.6.3 1.2.3 1.3.3h.3v.1h.3l3.4 1.3h.2zm.9 126.8.8.4.2.1h.1l.1.1h.2l.8.4.3.2q.4 0 1 .4h.2l1.4.5h.2l1.1.3h.4l.4.2 1 .1h.3l.9.2h5.2l.6-.1h.5l1-.2h.3l.2-.1h.1l.9-.2h.3l.3-.1 1.3-.4 3.5-1q1-.1 1.7-.4l.2-.1h.2l1.2-.5h.2l.1-.1.2-.1h.2l.8-.4.6-.3 1-.5h.1l.5-.2 1-.6h.2l.2-.2h.2l1-.7h.2l.2-.2h.2l1.2-.9.4-.2a5 5 0 0 1 4.8-.4l11 5q2.4 1 4.6-.4t2.1-4v-63q0-17.1-12.5-23.7l-.3-.2h-.2l-.2-.1-2-.9h-.2l-1.3-.5h-.3l-1-.3h-.2l-.7-.2-2.2-.3h-.3l-2-.1h-.4l-2.2.1h-.4l-2.6.4-2.8.6-3.5 1-1.5.5h-.3l-.3.2-2.6 1-.7.3-.4.1v18.3l-.1 2.9v.2l-.2 2.2v.5l-.3 1.8v.4l-.7 3.2v.2l-.5 1.8-.1.5-.6 1.8-.1.5-.9 2.5-.1.3v.2l-1 2v.2l-.9 1.9v.3l-.2.2-1 1.9-.3.6-.2.4-.6 1-1.1 2h-.1l-1 1.5-.2.4-.6.8v.1l-.7.8-1.4 1.9-.2.3-1.1 1.4-3 3.3-.2.2-1.2 1.2-.2.1-.2.2-.3.3-1.6 1.4-.1.1-.1.1-.1.1-.2.2-1.4 1-.3.3-.1.2h-.1l-3 2.2-.3.2H95l-1.8 1.2q.3 15.8 11.7 22.3M85.1 152q-1.9-6-1.9-12.8v-22.5a50 50 0 0 1 .7-8.2v-.1l.7-3.3 1.1-4.2.2-.6a59 59 0 0 1 3-7.4l1-2 .1-.2 1.1-2 .3-.5.3-.5 1-1.7.2-.3 3.4-4.7.4-.4.4-.5.7-.9 3.2-3.5 3.6-3.3.6-.6 3-2.3.5-.4 1.4-1 .4-.2 4-2.4.2-.1 1.4-.7 2-1 .7-.3 3.4-1.3.3-.1.3-.1 2-.6 3.6-1 .7-.2L100.3 45l-.4-.2-.7-.3-.8-.3-1-.4-1.3-.4H96l-1.2-.4h-.5l-.3-.1h-.2l-2-.4h-5.5l-.6.2h-.6l-4 .9-3.6 1-3.6 1.2h-.2l-1 .4-.3.2-.4.1-.9.5-1.6.8-.6.3-3 1.8-1.4 1-1.8 1.3v.1l-5 4.4-.2.3-.8.8-.7.8-1.8 2.2-.4.5-.3.4-1 1.2q0 .3-.2.3l-.2.4-.3.5-1.4 2v.1l-.2.4-1.3 2.3-.2.2-.2.6-.5.9-1.3 2.8v.2l-.5 1v.3l-.1.1-1.4 4.2v.4l-.5 1.6q0 .7-.3 1.4l-.2 1-.4 3-.1 3.9V113a28 28 0 0 0 6.3 18.7l1.6 1.7a21 21 0 0 0 4.6 3.2zm8-23.9.8-.6.2-.1v-.1l.2-.2 1.4-1.2.1-.1.2-.2.2-.2 3.7-4 1-1 .2-.4 1.1-1.5.6-.8.5-.7.2-.3.8-1.2v-.1l1-1.5v-.2l.6-.8.1-.4.3-.5.9-1.7.1-.3.7-1.5.2-.4.6-1.5v-.2l.1-.2.1-.2v-.2q.4-.8.6-1.7l.2-.4.4-1.5.2-.4.3-1.5v-.2l.5-2.5v-.3h.1l.2-1.5v-.4l.2-1.7V79.3l-.2.3h-.1l-.2.2-.2.2a51 51 0 0 0-5.5 5.5l-.2.2-.5.7-.4.4-.3.5-2.8 3.9-.2.2-.9 1.4-.2.5-.3.4-1.9 3.6-1.7 4-.8 2.3v.2l-.1.2-1 3.6-.5 2.5v.2l-.4 3.7v.3l-.1.6v13.3",evenOdd:!0},{d:"M41.8 61.3v.1l-2.1 3.7-.2.3-2 4.4L36 74l-.2.6-.5 1.8-.7 2.6-.3 1.9-.2 1v.3a57 57 0 0 0-.7 8.2V113a38 38 0 0 0 8.7 25.2q1.2 1.5 2.4 2.5a31 31 0 0 0 7.2 5l49.4 26 .4.2.2.1.3.1 1.2.6h.2v.1l1.6.6h.1l.5.2 1.7.6h.4v.1l1.4.3h.2v.1l.7.1.5.1 1.4.2h.3l1.3.2h.7l.2.1h5.9l.5-.1h.6l.4-.1 1.4-.2.5-.1 1.4-.3h.4l.4-.2q.9 0 1.8-.4l3.6-1 2.5-.8h.2l1.8-.7h.2l.1-.1h.1l1.2-.5.7-.4 1.2-.5h.1l.7-.4 1.2-.6.2-.2h.1l1.7-1 .2-.1 8.6 3.9q7.3 3.3 14-1 6.7-4.4 6.7-12.3V95q0-10.8-4.5-19.3A32 32 0 0 0 155 62.5l-50-26.3-.9-.5-1.5-.7h-.2L99 33.9h-.2v-.1h-.4l-1.3-.4-1-.2h-.2l-.2-.1-1.7-.3-1.3-.1h-.3l-1-.1h-5.6l-.3.1-.9.1h-.3l-.4.1a33 33 0 0 0-5.4 1.1L75 35l-4.6 1.5-.3.1-1.2.5-.4.2-.4.2L65 39l-.7.4-4 2.5-5.1 3.8-.6.5-4.1 3.9h-.1l-1 1-.6.8-2.4 2.9-.3.4-.4.4-1.3 1.9-.4.5-.3.5zm62.8 11.2a61 61 0 0 0-6.8 6.8l-.7.9-.4.5-.4.4a54 54 0 0 0-4.6 6.7l-.3.5-.3.5L89 93a55 55 0 0 0-3 7.4l-.2.6-1.1 4.2v.2l-.7 3.1v.1a54 54 0 0 0-.7 8.2v22.5q0 7 2 12.8l-29.4-15.4h-.1v-.1a21 21 0 0 1-4.5-3.1A22 22 0 0 1 48 130q-5-7-5-17V90.5a60 60 0 0 1 .8-8l.3-1.2V81l.5-1.8L46 75l.1-.3.5-1.3.2-.3.6-1.3 1-2 .1-.3.1-.3.2-.2 1.5-2.7.8-1.3.6-.8.3-.5.2-.4.2-.2.4-.5.6-.8.3-.4.4-.5 1.8-2.2.7-.8 1-1 .3-.4 4.6-4.1h.1l3.2-2.4h.1l3.1-2 .6-.3 1.6-.8 1-.5.3-.1.3-.2 4.8-1.7 3.5-1 4.1-.8h.6l.6-.1h.6l4.3-.1h.5l2.3.4h.4l.4.1 1.2.3 1.3.5.8.3h.3l1.5.7.4.2 28.8 15.2-.7.2-3.5 1-2.1.6-.3.1h-.3l-3.4 1.4-.8.3-3.3 1.7h-.2l-.4.3-4 2.4-1.4 1-.5.4zm.3 90 .8.5.2.1h.1l.1.1h.2l.8.4.3.2q.4 0 1 .4h.2l1.4.5h.2l1.1.3h.4l.4.2 1 .1h.3l.9.2h5.2l.6-.1h.5l1-.2h.3l.2-.1h.1l.9-.2h.3l.3-.1 1.3-.4 3.5-1q1-.1 1.7-.4l.2-.1h.2l1.2-.5h.2l.1-.1.2-.1h.2l.8-.4.6-.3 1-.5h.1l.5-.2 1-.6h.2l.2-.2h.2l1-.7h.2l.2-.2h.2l1.2-.9.4-.2a5 5 0 0 1 4.8-.4l11 5q2.4 1 4.6-.4t2.1-4v-63q0-17.1-12.5-23.7l-.3-.2h-.2l-.2-.1-2-.9h-.2l-1.3-.5h-.3l-1-.3h-.2l-.7-.2-2.2-.3h-.3l-2-.1h-.4l-2.2.1h-.4l-2.6.4-2.8.6-3.5 1-1.5.5h-.3l-.3.2-2.6 1-.7.3-.4.1v18.3l-.1 2.9v.2l-.2 2.2v.5l-.3 1.8v.4l-.7 3.2v.2l-.5 1.8-.1.5-.6 1.8-.1.5-.9 2.5-.1.3v.2l-1 2v.2l-.9 1.9v.3l-.2.2-1 1.9-.3.6-.2.4-.6 1-1.1 2h-.1l-1 1.5-.2.4-.6.8v.1l-.7.8-1.4 1.9-.2.3-1.1 1.4-3 3.3-.2.2-1.2 1.2-.2.1-.2.2-.3.3-1.6 1.4-.1.1-.1.1-.1.1-.2.2-1.4 1-.3.3-.1.2h-.1l-3 2.2-.3.2H95l-1.8 1.2q.3 15.8 11.7 22.3Zm-11.8-34.3.8-.6.2-.1v-.1l.2-.2 1.4-1.2.1-.1.2-.2.2-.2 3.7-4 1-1 .2-.4 1.1-1.5.6-.8.5-.7.2-.3.8-1.2v-.1l1-1.5v-.2l.6-.8.1-.4.3-.5.9-1.7.1-.3.7-1.5.2-.4.6-1.5v-.2l.1-.2.1-.2v-.2q.4-.8.6-1.7l.2-.4.4-1.5.2-.4.3-1.5v-.2l.5-2.5v-.3h.1l.2-1.5v-.4l.2-1.7V79.3l-.2.3h-.1l-.2.2-.2.2a51 51 0 0 0-5.5 5.5l-.2.2-.5.7-.4.4-.3.5-2.8 3.9-.2.2-.9 1.4-.2.5-.3.4-1.9 3.6-1.7 4-.8 2.3v.2l-.1.2-1 3.6-.5 2.5v.2l-.4 3.7v.3l-.1.6z",strokeWidth:3.5}]},kimi:{name:"Kimi",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M21.77.35a2.24 2.24 0 0 1 0 4.47h-1.98a.26.26 0 0 1-.26-.26V2.59A2.24 2.24 0 0 1 21.76.35M9.42 13.39 17.86 5c.16-.16.07-.47-.14-.47h-4.55s-.1.02-.14.06l-9.1 9.03c-.14.14-.35.02-.35-.21V4.8c0-.15-.1-.27-.22-.27H.22c-.12 0-.22.12-.22.27v18.57c0 .15.1.27.22.27h3.14c.12 0 .22-.12.22-.27v-3.79a.3.3 0 0 1 .08-.21l2.82-2.8a.2.2 0 0 1 .24-.03l7.55 5.55a9 9 0 0 0 4.02 1.5c.12 0 .23-.11.23-.27v-3.57q-.01-.23-.2-.26a6 6 0 0 1-2.35-.94l-6.53-4.73c-.14-.1-.15-.32-.03-.44"}]},codebuddy:{name:"CodeBuddy",viewBox:[0,0,24,24],tone:"#6C4DFF",paths:[{d:"M18.64.29h-.11c-.18 0-.2.02-.45.24-.71.63-1.72 2.55-2.7 5.14l-.27.72-.5.16q-2.34.74-4.16 1.89a18 18 0 0 0-2.77 2.06l-.58.5-.26-.04c-2.53-.45-4.8-.61-5.84-.43-.41.08-.76.22-.86.35a.7.7 0 0 0-.14.47q0 .28.1.73a18 18 0 0 0 2.03 4.78l.7 1.24-.02.46c-.03.5 0 1.27.06 1.8.04.32.03.32-.14.51-.56.65-.7 1.68-.4 2.84h5.36l-.33-.57c-.64-1.1-.96-1.66-1.13-2.18a5.5 5.5 0 0 1 1.56-5.84c.4-.35.96-.67 2.07-1.31l6.38-3.69c1.11-.64 1.67-.96 2.18-1.13A5.5 5.5 0 0 1 24 10.28V6.46l-.12-.06-.5-.25-.36-.66c-.92-1.7-2.4-3.7-3.48-4.67-.4-.36-.65-.51-.9-.53m-7.07 17.34a1.26 1.26 0 0 1 1.72.47l1.36 2.35c.84 1.45-1.34 2.71-2.18 1.26l-1.36-2.35a1.26 1.26 0 0 1 .46-1.73m6.8-3.92a1.26 1.26 0 0 1 1.72.46l1.36 2.35c.84 1.46-1.34 2.72-2.18 1.26l-1.36-2.35a1.26 1.26 0 0 1 .46-1.72"}]},rovodev:{name:"Rovo Dev",viewBox:[4.5,4.5,15,15],tone:"#101214",paths:[{d:"M11.26 4.71a1.7 1.7 0 0 1 1.67.02l5 2.89c.53.3.85.86.85 1.46v5.78a1.7 1.7 0 0 1-.85 1.47l-3.76 2.17.02-.07q.1-.32.11-.68v-5.78c0-.79-.42-1.52-1.11-1.92l-2.8-1.62V6.2q0-.27.07-.52.2-.61.77-.95z"},{d:"M9.99 5.45 6.22 7.62a1.7 1.7 0 0 0-.84 1.47v5.78c0 .6.32 1.17.84 1.47l5 2.89a1.7 1.7 0 0 0 1.67.01l.03-.02q.56-.33.77-.95.08-.24.08-.51v-2.24l-2.8-1.62a2.2 2.2 0 0 1-1.12-1.92V6.2a2 2 0 0 1 .14-.75"}],tile:{viewBox:[0,0,24,24],radius:6,tone:"#94C748"}},goose:{name:"goose",viewBox:[2.7,1.1,40.6,40.6],tone:["#FFFFFF","#101010"],paths:[{d:"m43.21 39.25-3.4-2.8a21 21 0 0 1-4.65-5.4 21 21 0 0 0-6.84-6.98l-1.37-.8c-.47-.32-.8-.83-.84-1.4q-.05-.55.26-1c.71-1 4.6-5.17 5.27-5.73.87-.72 1.83-1.31 2.73-2l.38-.3h.02q.44-.33.78-.76c1.05-1.22 1.03-2.25 1.03-2.25a3 3 0 0 0-1.34-1.53c.73-.02 1.55.26 1.92.62.44-.7.73-1.15 1.18-1.92.1-.18.16-.51-.04-.7l-.01-.01-.02-.02-.02-.02-.02-.02-.02-.01-.02-.03-.01-.01-.01-.01c-.2-.21-.53-.15-.7-.05-1 .59-1.97 1.21-2.83 1.77 0 0-1.04-.03-2.26 1.03q-.41.33-.75.77l-.01.02-.3.38c-.68.9-1.28 1.87-2 2.74-.55.67-4.73 4.55-5.73 5.26q-.44.3-1 .27a2 2 0 0 1-1.4-.84l-.8-1.37a21 21 0 0 0-6.98-6.85 21 21 0 0 1-5.4-4.65l-2.8-3.4a.3.3 0 0 0-.5.06 20 20 0 0 0-1.39 3.68q0 .07.03.12c.58.7 1.92 2.24 3.51 3.54.11.1.02.27-.12.23A20 20 0 0 1 3.03 7.4a.13.13 0 0 0-.2.1 17 17 0 0 0-.02 4.06q0 .07.07.1a31 31 0 0 0 4.89 1.68c.14.03.13.23 0 .26-1.5.28-3.06.34-4.33.33a.13.13 0 0 0-.13.16q.38 1.35 1.05 2.74.29.63.62 1.22.05.11.18.1c1.05-.04 2.32-.15 3.6-.38.21-.04.33.25.14.37-.86.58-1.78 1.08-2.64 1.49a.2.2 0 0 0-.08.3q.77 1.05 1.68 1.96s3 3.09 3.08 3.33c1.75-1.8 4.63-3.78 7.8-5.52a56 56 0 0 0-7.81 7.48l-.84 1.16q-.64.92-1.12 1.93A141 141 0 0 0 6.2 37.1a.9.9 0 0 0 .2.94l.02.01.02.02c.23.23.58.34.94.2 0 0 4.57-1.73 6.83-2.78q1.01-.45 1.92-1.12l1.29-.91a1.7 1.7 0 0 1 2.2.18l2.97 2.97q.92.9 1.95 1.68c.1.07.25.03.3-.08.42-.86.92-1.78 1.5-2.65.12-.18.4-.06.37.15a29 29 0 0 0-.4 3.6q.01.11.11.18.6.33 1.22.62 1.4.67 2.74 1.05.15.02.17-.13c-.02-1.27.05-2.83.33-4.33.02-.14.22-.14.26 0a31 31 0 0 0 1.67 4.88q.03.08.11.08c1.44.17 2.81.13 4.06-.03.1-.01.14-.11.1-.2-.51-1-1.11-2.33-1.49-3.7-.04-.15.14-.24.23-.13 1.3 1.6 2.85 2.94 3.54 3.52q.06.03.12.02a19 19 0 0 0 3.69-1.39.3.3 0 0 0 .05-.5"}]},aider:{name:"Aider",viewBox:[0,0,436,436],tone:["#FFFFFF","#000000"],paths:[{d:"M0 218v218h436V0H0zM271 36c2 2 2 12 3 40v31h21l23 1 1 10 3 17c1 9 1 8-2 23-2 7-1 37 0 44q3 13 1 25c-3 12-3 36 0 46q3 14 0 33l-2 13v4h20l22 1 3 15 2 17-4 38c-1 2-2 2-21 2q-21 0-22-2c-2-2-3-30-2-50v-19h-43c-1 1 0 15 1 26v14l-1 15c-1 12-2 14-5 15l-67 1h-66l-1-3c-3-10-4-34-3-54l1-12-1-3h-19c-21 0-26 0-26-3-2-3-2-39-1-52 1-19 0-17 26-18l22-1-1-11-2-16q-2-7 1-18l4-24c1-1 13-2 67-2h65l1-3v-13c-1-12-1-35 1-46v-8l-65-1h-64l-2-2-3-6-1-15c-1-13 1-45 2-48l5-1z"},{d:"M136 253v35l-1 35h63l72-1 1-3c-3-14-4-49-1-60q2-4-1-6l-67-1z"}]},qwen:{name:"Qwen",viewBox:[0,0,24,24],tone:"#6950EF",paths:[{d:"m23.92 14.55-3.1-5.38 1.47-2.54a.6.6 0 0 0 0-.57l-1.64-2.83a.6.6 0 0 0-.49-.28h-6.2L12.49.4a.6.6 0 0 0-.5-.28H8.74a.6.6 0 0 0-.49.28l-3.1 5.38H2.2a.6.6 0 0 0-.5.28L.09 8.89a.6.6 0 0 0 0 .56l3.1 5.38-1.47 2.55a.6.6 0 0 0 0 .56l1.63 2.83a.6.6 0 0 0 .5.28h6.2l1.47 2.55a.6.6 0 0 0 .49.28h3.27a.6.6 0 0 0 .49-.28l3.1-5.38h2.94a.6.6 0 0 0 .49-.28l1.63-2.83a.6.6 0 0 0 0-.56M8.73.69l1.64 2.82-1.64 2.83H21.8l-1.64 2.83H7.43l-1.8-3.11Zm1.3 19.8h-6.2l1.64-2.83h3.26L2.2 6.34h3.27l6.37 11.04zm10.13-5.66L18.53 12 12 23.32l-1.64-2.84 6.38-11.02h3.59l3.1 5.37z"}]},mistral:{name:"Mistral AI",viewBox:[0,0,24,24],tone:"#FA520F",paths:[{d:"M17.14 3.43v3.43h-3.43v3.43H10.3V6.86H6.86V3.43H3.43v13.71H0v3.43h10.29v-3.43H6.86v-3.42h3.43v3.42h3.43v-3.42h3.42v3.42h-3.42v3.43H24v-3.43h-3.43V3.43z"}]},ollama:{name:"Ollama",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M16.36 10.26a1 1 0 0 0-.56.47l-.07.15v.2c0 .2 0 .22.06.36.08.2.15.31.3.45q.33.35.86.2a1 1 0 0 0 .52-.43 1 1 0 0 0 .08-.5 1 1 0 0 0-.72-.9 1 1 0 0 0-.47 0m-9.2 0a1 1 0 0 0-.65.64 1 1 0 0 0-.06.52c.06.31.3.6.6.67q.53.15.87-.2c.14-.14.21-.26.29-.45a1 1 0 0 0 .06-.36v-.2l-.07-.15a1 1 0 0 0-.57-.47 1 1 0 0 0-.47 0m4.18 2c-.13.08-.22.26-.2.39q.06.22.36.4c.1.07.11.08.12.14l-.03.24-.04.23c0 .07.07.2.15.25.06.05.07.05.25.06.16 0 .2 0 .26-.03q.26-.1.15-.53c-.05-.24-.04-.28.1-.35a1 1 0 0 0 .32-.32.37.37 0 0 0-.18-.48.4.4 0 0 0-.18-.03c-.13 0-.2.03-.36.12l-.08.06-.05-.03c-.22-.13-.26-.15-.4-.15a.4.4 0 0 0-.19.03m.4-2.19c-.38.04-.48.05-.66.09-.3.06-.68.2-.95.32a3.2 3.2 0 0 0-1.79 2.12c-.04.17-.04.23-.04.53s0 .35.04.52c.26 1.16 1.33 2.02 2.71 2.17.3.04 1.6.04 1.9 0a3.2 3.2 0 0 0 2.5-1.57 2.3 2.3 0 0 0 .26-1.12c0-.3-.01-.36-.05-.53-.29-1.3-1.54-2.3-3.07-2.5a7 7 0 0 0-.86-.03zm.64.94a3 3 0 0 1 1.44.51c.22.15.53.46.67.66q.24.37.3.82c.02.15.01.25-.04.49-.08.34-.33.7-.67.95a3 3 0 0 1-.7.35c-.37.12-.62.14-1.52.14-.58 0-.68-.01-.85-.04a2.4 2.4 0 0 1-1.35-.68 1.6 1.6 0 0 1-.45-.95c-.03-.2.02-.5.14-.78.13-.32.48-.73.83-.96a3.3 3.3 0 0 1 2.2-.51M6.88 0a2 2 0 0 0-.69.3C5.62.73 5.17 1.66 5 2.8a10 10 0 0 0 .06 3.43l-.2.16a5 5 0 0 0-.94 1.02 5.5 5.5 0 0 0-.94 2.34 7 7 0 0 0-.02 1.36q.13 1.15.72 2.04l.13.2-.03.06a6 6 0 0 0-.7 3.03 5.7 5.7 0 0 0 .85 3.2l-.05.14a7 7 0 0 0-.54 1.87 5 5 0 0 0-.07 1c0 .56.03.83.14 1.27l.02.07H4.9l-.05-.1c-.3-.54-.33-1.57-.07-2.59.12-.47.25-.82.5-1.3l.15-.28v-.18c0-.17 0-.19-.06-.3a1 1 0 0 0-.2-.24 2 2 0 0 1-.38-.55 5.6 5.6 0 0 1-.2-3.45c.12-.48.32-.92.54-1.15a.8.8 0 0 0 .22-.53q0-.29-.23-.53a3 3 0 0 1-.81-1.72c-.14-.96.11-2 .69-2.84a3.4 3.4 0 0 1 2.23-1.47c.2-.04.57-.03.78 0 .23.05.37.04.51-.03.18-.09.27-.2.38-.43A3.3 3.3 0 0 1 10.08 5q.63-.43 1.35-.57c.17-.04.25-.04.57-.04s.4 0 .57.04a4 4 0 0 1 1.91 1c.12.1.4.45.5.6l.12.27c.1.24.2.34.38.43a1 1 0 0 0 .5.04c.34-.06.6-.05.94.02a3.6 3.6 0 0 1 2.58 2.43 3.6 3.6 0 0 1-.3 3.16q-.13.21-.33.42c-.3.32-.3.72 0 1.05.5.54.8 1.86.71 3.03a4 4 0 0 1-.53 1.86l-.23.26a1 1 0 0 0-.19.25c-.05.1-.06.12-.06.29v.18l.15.29c.25.47.38.82.5 1.3.25 1 .23 2-.06 2.57l-.04.1.73.01h.73l.02-.07.03-.14.1-.51a7.3 7.3 0 0 0-.64-3.62l.1-.16q.55-.84.72-2.23c.03-.26.03-1.38 0-1.63a7 7 0 0 0-.35-1.52 6 6 0 0 0-.32-.7l-.04-.07.13-.19q.59-.88.73-2.04a7 7 0 0 0-.03-1.36 5.5 5.5 0 0 0-.94-2.34 5 5 0 0 0-.95-1.02l-.18-.15.02-.2c.2-1.1.2-2.45-.02-3.51a4 4 0 0 0-.98-2.08A1.5 1.5 0 0 0 16.83 0c-1 .06-1.8 1.2-2.11 3.01l-.1.73q0 .05-.02.06l-.14-.07a5 5 0 0 0-2.46-.7c-.83 0-1.69.24-2.46.7l-.14.08q-.02 0-.02-.07l-.1-.73C9 1.4 8.34.31 7.46.05A2 2 0 0 0 6.88 0m.29 1.4c.25.2.52.76.68 1.39l.1.52q.1.54.11 1.24v.48l-.12.17-.11.18h-.28q-.5 0-.96.12l-.23.06c-.04.01-.04 0-.06-.14a8 8 0 0 1 .01-2.32c.13-.8.42-1.5.7-1.71.07-.05.08-.05.16 0m9.82-.01c.17.12.36.46.5.88.28.86.36 2.03.21 3.15-.02.14-.02.15-.05.14l-.24-.06a4 4 0 0 0-.96-.12h-.27l-.12-.18-.12-.17v-.48c0-.67.07-1.19.21-1.77.16-.62.44-1.18.68-1.38.08-.06.1-.06.16-.01"}]},openrouter:{name:"OpenRouter",viewBox:[0,0,24,24],tone:"#94A3B8",paths:[{d:"M16.78 1.84v1.92l-1.14-.03q-.7 0-1.42.04C12.3 3.89 10.2 4.5 8.08 6 5.16 8.07 5.34 7.96 3.94 8.75c-.4.22-1.35.57-2.19.8-.84.22-1.75.33-1.75.33v4.22s.77.11 1.61.34c.84.22 1.79.57 2.18.8 1.41.8 1.23.68 4.14 2.75a12 12 0 0 0 6.15 2.23q1.31.07 2.56 0v1.93l7.22-4.17-7.22-4.17v2.17q-1.28.08-2.28.02a7 7 0 0 1-3.98-1.46 53 53 0 0 0-3.68-2.5 51 51 0 0 0 3.82-2.6A7 7 0 0 1 14.5 8q1-.06 2.28.02v2.17L24 6.01Z"}]},lmstudio:{name:"LM Studio",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M14.03 0c3.49 0 5.23 0 6.57.68a6.2 6.2 0 0 1 2.72 2.72C24 4.74 24 6.48 24 9.98v4.04c0 3.5 0 5.24-.68 6.58a6.2 6.2 0 0 1-2.72 2.72c-1.34.68-3.08.68-6.58.68H9.99c-3.5 0-5.24 0-6.58-.68A6.2 6.2 0 0 1 .68 20.6C0 19.26 0 17.52 0 14.02V9.99c0-3.5 0-5.24.68-6.58A6.2 6.2 0 0 1 3.4.68C4.74 0 6.48 0 9.97 0zM7.69 16.31a1.31 1.31 0 0 0 0 2.63H19.3a1.31 1.31 0 0 0 0-2.63zm-3-3.75a1.31 1.31 0 0 0 0 2.63H16.3a1.31 1.31 0 0 0 0-2.63zm3-3.75a1.31 1.31 0 0 0 0 2.63H19.3a1.31 1.31 0 0 0 0-2.63zm-3-3.75a1.31 1.31 0 0 0 0 2.63H16.3a1.31 1.31 0 0 0 0-2.63z"}]}},Kse=16,Wse={acli:"rovodev",agy:"antigravity",aider:"aider",amp:"amp",anthropic:"anthropic",antigravity:"antigravity",bedrock:null,campfire:null,chatgpt:"openai",claude:"claude","claude-code":"claude","claude-sr":"claude",claude_code:"claude",claudecode:"claude",codebuddy:"codebuddy",codex:"openai","codex-acp":"openai","codex-cli":"openai",copilot:"copilot","copilot-cli":"copilot",cursor:"cursor","cursor-agent":"cursor","cursor-cli":"cursor",deepseek:"deepseek","deepseek-harness":"deepseek",droid:"factory",dsh:"deepseek",factory:"factory",gemini:"gemini","gemini-cli":"gemini","github-copilot":"copilot",goose:"goose",grok:"grok","grok-cli":"grok",groq:null,hermes:"hermes","hermes-agent":"hermes",kimi:"kimi","kimi-cli":"kimi",kiro:"kiro","kiro-cli":"kiro",lmstudio:"lmstudio",mistral:"mistral",mux:null,"oh-my-pi":"omp",ollama:"ollama",omp:"omp",openai:"openai",opencode:"opencode","opencode-go":"opencode","opencode-v2":"opencode",opencode2:"opencode",openrouter:"openrouter",pi:"pi","pi-acp":"pi","pi-agent":"pi",prime:null,"prime-agent":null,qoder:"qoder",qodercli:"qoder",qwen:"qwen","qwen-code":"qwen","rovo-dev":"rovodev",rovodev:"rovodev",vertex:null,xai:"grok"};function _Fe(t){let e=t.trim().toLowerCase();if(!e)return[];let n=[e],r=o=>{o&&!n.includes(o)&&n.push(o)};r(e.split(":").filter(Boolean).at(-1)),r(e.split("/").filter(Boolean).at(-1));let i=n.at(-1).split(/\s+/).find(Boolean);return r(i),r(i?.split(/[-_.]/).find(Boolean)),n}function S6(t){if(t){for(let e of _Fe(t))if(Object.hasOwn(Wse,e))return Wse[e]??void 0}}var Dl=R(ee(),1);var S_=new Set,L6;function SFe(t){return S_.add(t),!L6&&typeof MutationObserver<"u"&&typeof document<"u"&&(L6=new MutationObserver(()=>S_.forEach(e=>e())),L6.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-agent-marks"]})),()=>{S_.delete(t),S_.size===0&&(L6?.disconnect(),L6=void 0)}}var LFe=()=>{if(typeof document>"u")return"dark brand";let{theme:t,agentMarks:e}=document.documentElement.dataset;return`${t==="light"?"light":"dark"} ${e==="mono"?"mono":"brand"}`},UO=(t,e)=>typeof t=="string"?t:e?t[0]:t[1],MFe=t=>t.join(" ");function M6(t){let e=(0,Xse.c)(25),{agent:n,size:r,label:i,onDark:o}=t,a=r===void 0?16:r,s;e[0]!==n?(s=S6(n),e[0]=n,e[1]=s):s=e[1];let l=s,c=(0,I2.useSyncExternalStore)(SFe,LFe,TFe),u;e[2]!==c?(u=c.split(" "),e[2]=c,e[3]=u):u=e[3];let[d,p]=u,m=o??d==="dark",f=p==="brand",h=(0,I2.useId)(),x;if(e[4]!==h){let v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=/[^\w-]/g,e[6]=v):v=e[6],x=h.replace(v,""),e[4]=h,e[5]=x}else x=e[5];let g=`agent-mark${x}`,y=l?GO[l]:void 0,b,w;if(e[7]!==f||e[8]!==m||e[9]!==y||e[10]!==g||e[11]!==l||e[12]!==i||e[13]!==a){w=Symbol.for("react.early_return_sentinel");e:{let v=y?.small&&a<=Kse?{...y,viewBox:y.small.viewBox,paths:y.small.paths,overlays:void 0,small:void 0}:y,k;e[16]!==i?(k=i?{role:"img","aria-label":i}:{"aria-hidden":!0},e[16]=i,e[17]=k):k=e[17];let _=k;if(!v){let M,A;e[18]===Symbol.for("react.memo_cache_sentinel")?(M=(0,Dl.jsx)("rect",{x:"2.25",y:"2.75",width:"11.5",height:"10.5",rx:"2.5"}),A=(0,Dl.jsx)("path",{d:"m5.25 6.5 2 1.75-2 1.75M8.75 10h2"}),e[18]=M,e[19]=A):(M=e[18],A=e[19]);let $;e[20]!==_||e[21]!==a?($=(0,Dl.jsxs)("svg",{className:"agent-mark agent-mark-generic",width:a,height:a,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round",focusable:"false",..._,children:[M,A]}),e[20]=_,e[21]=a,e[22]=$):$=e[22],w=$;break e}let L=f?v.tile:void 0,S=f?UO(v.tone,m):m?"#fff":"#000",C=(M,A,$)=>{let N=f&&M.tone?UO(M.tone,m):void 0,F=f?void 0:M.monoOpacity;if(F===0)return null;let D=$??N;return M.strokeWidth?(0,Dl.jsx)("path",{d:M.d,fill:"none",stroke:D??S,strokeWidth:M.strokeWidth,opacity:F},A):(0,Dl.jsx)("path",{d:M.d,fill:D,fillRule:M.evenOdd?"evenodd":void 0,opacity:F},A)},T;e[23]!==C?(T=(M,A)=>C(M,A),e[23]=C,e[24]=T):T=e[24],b=(0,Dl.jsxs)("svg",{className:"agent-mark","data-agent":l,width:a,height:a,viewBox:MFe(L?.viewBox??v.viewBox),fill:S,focusable:"false",..._,children:[L&&(0,Dl.jsx)("rect",{x:L.viewBox[0],y:L.viewBox[1],width:L.viewBox[2],height:L.viewBox[3],rx:L.radius,fill:UO(L.tone,m)}),v.paths.map(T),f&&v.overlays?.map((M,A)=>(0,Dl.jsxs)(I2.default.Fragment,{children:[(0,Dl.jsx)("defs",{children:(0,Dl.jsx)("linearGradient",{id:`${g}-${A}`,gradientUnits:"userSpaceOnUse",x1:M.x1,y1:M.y1,x2:M.x2,y2:M.y2,children:M.stops.map(EFe)})}),v.paths.map(($,N)=>$.strokeWidth?null:C($,N,`url(#${g}-${A})`))]},`overlay${A}`))]})}e[7]=f,e[8]=m,e[9]=y,e[10]=g,e[11]=l,e[12]=i,e[13]=a,e[14]=b,e[15]=w}else b=e[14],w=e[15];return w!==Symbol.for("react.early_return_sentinel")?w:b}function EFe(t,e){let[n,r,i]=t;return(0,Dl.jsx)("stop",{offset:n,stopColor:r,stopOpacity:i},e)}function TFe(){return"dark brand"}var Ra=R(qe(),1),di=R(Q(),1);var L_="default",RFe=/^default\b/i;function Fl(t){return t.id.toLowerCase()===L_||RFe.test(t.name??"")}function Yse(t){let e=/^claude-([a-z]+)-(\d+)(?:-(\d{1,2}))?(?:-\d{8})?(\[1m\])?$/i.exec(t);if(!e)return t;let[,n,r,i,o]=e,a=`${n[0].toUpperCase()}${n.slice(1).toLowerCase()} ${r}${i?`.${i}`:""}`;return o?`${a} \xB7 1M context`:a}function Qse(t){if(!t?.model||t.model.toLowerCase()!==L_||t.confirmedModel&&t.confirmedModel.toLowerCase()!==L_)return;let n=t.configOptions?.find(r=>r.category==="model"||r.id==="model")?.currentValue;return typeof n=="string"&&n&&n.toLowerCase()!==L_?n:void 0}var Jse="cmux.acpmux.resolvedDefaults";function VO(){try{let t=JSON.parse(globalThis.localStorage?.getItem(Jse)??"{}");return t&&typeof t=="object"?t:{}}catch{return{}}}function ele(t,e){try{let n=VO();if(n[t]===e)return;globalThis.localStorage?.setItem(Jse,JSON.stringify({...n,[t]:e}))}catch{}}var ale=R(qe(),1),Eu=R(Q(),1);var tle=R(qe(),1),M_=R(Q(),1);var O0=R(ee(),1);function E_(t){let e=(0,tle.c)(43),{efforts:n,current:r,onPick:i,onEscape:o,autoFocus:a}=t,s=a===void 0?!1:a,l=we(),c=(0,M_.useRef)(null),u,d;e[0]!==s?(u=()=>{s&&c.current?.focus()},d=[s],e[0]=s,e[1]=u,e[2]=d):(u=e[1],d=e[2]),(0,M_.useEffect)(u,d);let p;if(e[3]!==r||e[4]!==n){let $;e[6]!==r?($=N=>N.id===r,e[6]=r,e[7]=$):$=e[7],p=n.findIndex($),e[3]=r,e[4]=n,e[5]=p}else p=e[5];let m=Math.max(0,p),f;e[8]!==n||e[9]!==m||e[10]!==l?(f=n[m]?.name??l("effort.title"),e[8]=n,e[9]=m,e[10]=l,e[11]=f):f=e[11];let h=f,x;e[12]!==r||e[13]!==n||e[14]!==i?(x=$=>{let N=n[$];N&&N.id!==r&&i(N.id)},e[12]=r,e[13]=n,e[14]=i,e[15]=x):x=e[15];let g=x,y=n.length>1?m/(n.length-1):0,b;e[16]!==y?(b={"--acpmux-effort":y},e[16]=y,e[17]=b):b=e[17];let w=b,v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=(0,O0.jsx)("span",{className:"acpmux-effort-fill"}),e[18]=v):v=e[18];let k;if(e[19]!==n||e[20]!==m){let $;e[22]!==n.length||e[23]!==m?($=(N,F)=>F===m?null:(0,O0.jsx)("span",{className:"acpmux-effort-stop","aria-hidden":"true",style:{"--acpmux-stop":n.length>1?F/(n.length-1):0}},N.id),e[22]=n.length,e[23]=m,e[24]=$):$=e[24],k=n.map($),e[19]=n,e[20]=m,e[21]=k}else k=e[21];let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=(0,O0.jsx)("span",{className:"acpmux-effort-thumb"}),e[25]=_):_=e[25];let L=Math.max(n.length-1,0),S;e[26]!==l?(S=l("effort.title"),e[26]=l,e[27]=S):S=e[27];let C;e[28]!==g?(C=$=>g(Number($.target.value)),e[28]=g,e[29]=C):C=e[29];let T;e[30]!==o?(T=$=>{$.key!=="Escape"||!o||($.preventDefault(),$.stopPropagation(),o())},e[30]=o,e[31]=T):T=e[31];let M;e[32]!==m||e[33]!==h||e[34]!==L||e[35]!==S||e[36]!==C||e[37]!==T?(M=(0,O0.jsx)("input",{ref:c,className:"acpmux-effort-range",type:"range",min:0,max:L,step:1,value:m,"aria-label":S,"aria-valuetext":h,onChange:C,onKeyDown:T}),e[32]=m,e[33]=h,e[34]=L,e[35]=S,e[36]=C,e[37]=T,e[38]=M):M=e[38];let A;return e[39]!==k||e[40]!==M||e[41]!==w?(A=(0,O0.jsxs)("div",{className:"acpmux-effort-track",style:w,children:[v,k,_,M]}),e[39]=k,e[40]=M,e[41]=w,e[42]=A):A=e[42],A}var E6=new Map;function Xs(t,e){return E6.set(t,e),()=>{E6.get(t)===e&&E6.delete(t)}}function nle(t){let e=E6.get(t);return e?.(),e!==void 0}function rle(){return[...E6.keys()]}var ile=R(qe(),1),T_=R(Q(),1),T6=6;function AFe(t,e,n,r={}){let i=r.side??"below",o=r.align??"start",a=r.gap??T6,s=r.margin??8,l=r.direction??"ltr",c=Math.max(0,n.height-t.bottom-a-s),u=Math.max(0,t.top-a-s),d=i==="below"?c>=e.height||c>=u?"below":"above":u>=e.height||u>=c?"above":"below",p=d==="below"?c:u,m=o==="start"?l==="rtl"?t.right-e.width:t.left:l==="rtl"?t.left:t.right-e.width,f=Math.max(s,n.width-e.width-s),h=Math.min(Math.max(m,s),f),x=d==="below"?t.bottom+a:t.top-a-e.height;return{left:h,top:x,side:d,maxHeight:Math.max(0,p)}}function $Fe(t){if(!t||t.offsetWidth===0||t.offsetHeight===0)return{x:1,y:1};let e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1}}function Ys(t,e,n,r){let i=(0,ile.c)(13),o;i[0]!==r?(o=r===void 0?{}:r,i[0]=r,i[1]=o):o=i[1];let a=o,{align:s,direction:l,gap:c,margin:u,side:d}=a,p;i[2]===Symbol.for("react.memo_cache_sentinel")?(p={visibility:"hidden"},i[2]=p):p=i[2];let[m,f]=(0,T_.useState)(p),h,x;return i[3]!==s||i[4]!==t||i[5]!==c||i[6]!==u||i[7]!==n||i[8]!==e||i[9]!==l||i[10]!==d?(h=()=>{if(!n){f({visibility:"hidden"});return}let g=()=>{let b=t.current,w=e.current;if(!b||!w)return;let v=b.getBoundingClientRect(),k=w.getBoundingClientRect(),_=l??(b.ownerDocument.defaultView?.getComputedStyle(b).direction==="rtl"?"rtl":"ltr"),L=AFe({left:v.left,top:v.top,right:v.right,bottom:v.bottom},{width:k.width,height:k.height},{width:window.innerWidth,height:window.innerHeight},{align:s,direction:_,gap:c,margin:u,side:d}),S=w.offsetParent instanceof HTMLElement?w.offsetParent:null,C=S?.getBoundingClientRect()??{left:0,top:0},T=$Fe(S),M=(L.left-C.left)/T.x+(S?.scrollLeft??0),A=(L.top-C.top)/T.y+(S?.scrollTop??0);f({position:"absolute",left:M,top:A,right:"auto",bottom:"auto",maxHeight:L.maxHeight/T.y,visibility:"visible"})};g(),window.addEventListener("resize",g),window.addEventListener("scroll",g,!0);let y=typeof ResizeObserver>"u"?void 0:new ResizeObserver(g);return y?.observe(t.current),y?.observe(e.current),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g,!0),y?.disconnect()}},x=[s,t,c,u,n,e,l,d],i[3]=s,i[4]=t,i[5]=c,i[6]=u,i[7]=n,i[8]=e,i[9]=l,i[10]=d,i[11]=h,i[12]=x):(h=i[11],x=i[12]),(0,T_.useLayoutEffect)(h,x),m}var R_=R(Q(),1);function ole(t,e){let n=(0,R_.useRef)(e);n.current=e,(0,R_.useEffect)(()=>{if(!t)return;let r=i=>{i.key!=="Escape"||i.defaultPrevented||i.isComposing||(i.preventDefault(),n.current())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}var am=R(ee(),1);function sle(t){let e=(0,ale.c)(50),{label:n,efforts:r,current:i,model:o,onPick:a,chevron:s}=t,l=we(),[c,u]=(0,Eu.useState)(!1),d=(0,Eu.useRef)(null),p=(0,Eu.useRef)(null),m=(0,Eu.useRef)(null),f=(0,Eu.useId)(),h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={side:"above",align:"start"},e[0]=h):h=e[0];let x=Ys(p,m,c,h),g;if(e[1]!==i||e[2]!==r){let U;e[4]!==i?(U=G=>G.id===i,e[4]=i,e[5]=U):U=e[5],g=r.findIndex(U),e[1]=i,e[2]=r,e[3]=g}else g=e[3];let y=Math.max(0,g),b;e[6]!==r||e[7]!==y||e[8]!==l?(b=r[y]?.name??l("effort.title"),e[6]=r,e[7]=y,e[8]=l,e[9]=b):b=e[9];let w=b,v;e[10]!==r||e[11]!==y||e[12]!==w||e[13]!==l?(v=r[y]&&Fl(r[y])?l("picker.reasoning"):w,e[10]=r,e[11]=y,e[12]=w,e[13]=l,e[14]=v):v=e[14];let k=v,_,L;e[15]!==n?(_=()=>Xs(n,()=>{let U=d.current?.querySelector(".acpmux-effort-range");if(U){U.focus();return}document.activeElement instanceof HTMLElement&&document.activeElement.blur(),u(!0)}),L=[n],e[15]=n,e[16]=_,e[17]=L):(_=e[16],L=e[17]),(0,Eu.useEffect)(_,L);let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{u(!1),p.current?.focus()},e[18]=S):S=e[18];let C=S;ole(c,C);let T,M;e[19]!==c?(T=()=>{if(!c)return;let U=j=>{d.current?.contains(j.target)||u(!1)},G=()=>u(!1);return document.addEventListener("pointerdown",U),window.addEventListener("blur",G),()=>{document.removeEventListener("pointerdown",U),window.removeEventListener("blur",G)}},M=[c],e[19]=c,e[20]=T,e[21]=M):(T=e[20],M=e[21]),(0,Eu.useEffect)(T,M);let A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A={position:"relative"},e[22]=A):A=e[22];let $;e[23]!==l?($=l("effort.title"),e[23]=l,e[24]=$):$=e[24];let N=c?f:void 0,F;e[25]!==c?(F=()=>u(!c),e[25]=c,e[26]=F):F=e[26];let D;e[27]!==k?(D=(0,am.jsx)("span",{children:k}),e[27]=k,e[28]=D):D=e[28];let O;e[29]!==s||e[30]!==n||e[31]!==c||e[32]!==$||e[33]!==N||e[34]!==F||e[35]!==D?(O=(0,am.jsxs)("button",{ref:p,type:"button",className:"acpmux-picker-button","data-menu":n,"aria-label":$,"aria-haspopup":"dialog","aria-expanded":c,"aria-controls":N,onClick:F,children:[D,s]}),e[29]=s,e[30]=n,e[31]=c,e[32]=$,e[33]=N,e[34]=F,e[35]=D,e[36]=O):O=e[36];let B;e[37]!==i||e[38]!==r||e[39]!==f||e[40]!==x||e[41]!==o||e[42]!==w||e[43]!==a||e[44]!==c||e[45]!==l?(B=c&&(0,am.jsxs)("div",{ref:m,className:"acpmux-menu acpmux-menu-end acpmux-effort-pop",style:x,id:f,role:"dialog","aria-label":l("effort.title"),children:[(0,am.jsx)("div",{className:"acpmux-effort-title",children:w}),o&&(0,am.jsx)("div",{className:"acpmux-effort-model",children:o}),(0,am.jsx)(E_,{efforts:r,current:i,onPick:a,autoFocus:!0,onEscape:C})]}),e[37]=i,e[38]=r,e[39]=f,e[40]=x,e[41]=o,e[42]=w,e[43]=a,e[44]=c,e[45]=l,e[46]=B):B=e[46];let P;return e[47]!==O||e[48]!==B?(P=(0,am.jsxs)("span",{ref:d,className:"acpmux-picker acpmux-effort",style:A,children:[O,B]}),e[47]=O,e[48]=B,e[49]=P):P=e[49],P}var Fc=R(Q(),1);var lle="Anthropic",ZO="OpenAI",N2=t=>t&&t[0].toUpperCase()+t.slice(1);function IFe(t,e){let n=t.id.toLowerCase(),r=(t.name||t.id).trim(),i=/^claude-(?:[\d-]+-)?([a-z]+)/.exec(n);if(i)return{provider:lle,family:N2(i[1])};let o=/^(?:claude\s+)?(opus|sonnet|haiku|fable)\b/i.exec(r);if(o)return{provider:lle,family:N2(o[1].toLowerCase())};if(n.startsWith("gpt-oss"))return{provider:ZO,family:"gpt-oss"};let a=/^gpt-(\d+)/.exec(n);if(a)return{provider:ZO,family:`GPT-${a[1]}`};let s=/^o(\d+)(?:-|$)/.exec(n);if(s)return{provider:ZO,family:`o${s[1]}`};let l=/^gemini-(\d+)/.exec(n);if(l)return{provider:"Google",family:`Gemini ${l[1]}`};let c=u=>u.split(/[\s\-_:/]+/)[0]??u;return/^(?:mistral|devstral|codestral|magistral)/.test(n)?{provider:"Mistral",family:N2(c(n))}:n.startsWith("qwen")?{provider:"Qwen",family:N2(c(n))}:n.startsWith("deepseek")?{provider:"DeepSeek",family:N2(c(n).replace(/^deepseek/,"DeepSeek"))}:/^(?:meta-)?llama/.test(n)?{provider:"Meta",family:"Llama"}:{provider:e,family:N2(c(r))}}function NFe(t){let e=/\d+(?:\.\d+)*/.exec(t.name??"");return e?e[0].split(".").map(Number):(t.id.match(/\d+/g)??[]).map(Number)}function A_(t,e){let n=Math.max(t.version.length,e.version.length);for(let r=0;r<n;r+=1){let i=(e.version[r]??-1)-(t.version[r]??-1);if(i!==0)return i}return t.order-e.order}function $_(t,e){let n=[],r=new Map,i=[];t.forEach((o,a)=>{if(r.has(o.id)||Fl(o))return;let{provider:s,family:l}=IFe(o,e),c={id:o.id,name:o.name||o.id,provider:s,family:l,version:NFe(o),order:a};r.set(o.id,c),i.push(c);let u=n.find(p=>p.name===s);u||(u={name:s,families:[],models:[]},n.push(u)),u.models.push(c);let d=u.families.find(p=>p.name===l);d||(d={key:`${s}\0${l}`,name:l,provider:s,models:[]},u.families.push(d)),d.models.push(c)});for(let o of n)for(let a of o.families)a.models.sort(A_);return{providers:n,models:i,byId:r}}function WO(t,e,n={}){let r=i=>t.find(o=>o.id===i);return r(n.model)??e.map(i=>r(i.model)).find(Boolean)??[...t].sort(A_)[0]}function I_(t,e,n={}){return WO(t.models,e,n)}function KO(t,e,n={}){let r=o=>t.models.some(a=>a.id===o);if(r(n.model)||e.some(o=>r(o.model)))return WO(t.models,e,n);let i=t.families[0];return i?I_(i,e,n):void 0}function PFe(t,e,n={}){return t===n.model?n.effort:e.find(r=>r.model===t&&r.effort)?.effort??n.effort}function N_(t,e,n={}){return{model:t.id,effort:PFe(t.id,e,n)}}function cle(t,e,n={}){let r=I_(t,e,n);return r&&N_(r,e,n)}function ule(t,e,n={}){let r=KO(t,e,n);return r&&N_(r,e,n)}function dle(t,e,n={}){let r=WO(t,e,n),i=[];for(let a of e){let s=t.find(l=>l.id===a.model);s&&s!==r&&!i.includes(s)&&i.push(s)}let o=[...t].filter(a=>a!==r&&!i.includes(a)).sort(A_);return[...r?[r]:[],...i,...o]}function ple(t,e,n={}){return fle(t,r=>r.models,e,n)}function mle(t,e,n={}){return fle(t,r=>r.models,e,n)}function fle(t,e,n,r){let i=[r.model,...n.map(a=>a.model)],o=a=>{let s=i.findIndex(l=>l&&e(a).some(c=>c.id===l));return s<0?i.length:s};return t.map((a,s)=>({item:a,index:s,rank:o(a)})).sort((a,s)=>a.rank-s.rank||a.index-s.index).map(a=>a.item)}function hle(t,e,n){return n||t.length<=e+1?{visible:t,hidden:0}:{visible:t.slice(0,e),hidden:t.length-e}}function gle(t,e){let n=e.trim().toLowerCase().split(/\s+/).filter(Boolean);if(n.length===0)return t.models;let r=[];for(let i of t.models){let o=i.name.toLowerCase(),a=`${o} ${i.id.toLowerCase()} ${i.family.toLowerCase()} ${i.provider.toLowerCase()}`;if(!n.every(l=>a.includes(l)))continue;let s=o.startsWith(n[0])?0:o.includes(n[0])?1:2;r.push({model:i,score:s})}return r.sort((i,o)=>i.score-o.score||A_(i.model,o.model)).map(i=>i.model)}function ble(t,e,n,r,i){return t.filter(o=>o.harness===n&&(e.byId.has(o.model)||o.model===i)).slice(0,r)}var XO=R(Q(),1),yle=4,xle=3,wle=120,jFe=250;function vle(t,e){return t>=e*jFe?"cascade":"drill"}var kle=t=>t.getBoundingClientRect().left;function P_({trigger:t,handle:e},n,r){(0,XO.useLayoutEffect)(()=>(e.current=n,()=>{e.current=void 0})),(0,XO.useLayoutEffect)(()=>{let i=t.current;if(i)return r?i.setAttribute("aria-activedescendant",r):i.removeAttribute("aria-activedescendant"),()=>i.removeAttribute("aria-activedescendant")},[t,r])}var Tle=R(qe(),1),I6=R(Q(),1);var Lle=R(Q(),1);var Cle=R(qe(),1);var Tu=R(ee(),1);function _le(t){let e=(0,Cle.c)(30),{node:n,id:r,active:i,open:o,onHover:a,onPick:s}=t,l=!!(n.children?.length||n.panel),c=n.checked===void 0?"menuitem":"menuitemradio",u=n.children?.length?"menu":void 0,d=l?!!o:void 0,p=`acpmux-menu-item acpmux-mp-row${i?" acpmux-menu-active":""}${o?" acpmux-mp-open":""}${n.more?" acpmux-mp-more":""}`,m;e[0]!==s?(m=v=>{v.preventDefault(),s()},e[0]=s,e[1]=m):m=e[1];let f;e[2]!==n.hint?(f=n.hint&&(0,Tu.jsx)("kbd",{className:"acpmux-menu-hint",children:n.hint}),e[2]=n.hint,e[3]=f):f=e[3];let h;e[4]!==n.icon?(h=n.icon&&(0,Tu.jsx)("span",{className:"acpmux-menu-icon","aria-hidden":"true",children:n.icon}),e[4]=n.icon,e[5]=h):h=e[5];let x;e[6]!==n.label?(x=(0,Tu.jsx)("span",{className:"acpmux-menu-text",children:(0,Tu.jsx)("span",{className:"acpmux-menu-label",children:n.label})}),e[6]=n.label,e[7]=x):x=e[7];let g;e[8]!==n.detail?(g=n.detail&&(0,Tu.jsx)("span",{className:"acpmux-mp-detail",children:n.detail}),e[8]=n.detail,e[9]=g):g=e[9];let y;e[10]!==n.checked?(y=n.checked&&(0,Tu.jsx)(YO,{}),e[10]=n.checked,e[11]=y):y=e[11];let b;e[12]!==l?(b=l&&(0,Tu.jsx)("span",{className:"acpmux-mp-chevron",children:(0,Tu.jsx)(Sle,{})}),e[12]=l,e[13]=b):b=e[13];let w;return e[14]!==r||e[15]!==n.checked||e[16]!==n.key||e[17]!==a||e[18]!==c||e[19]!==y||e[20]!==b||e[21]!==u||e[22]!==d||e[23]!==p||e[24]!==m||e[25]!==f||e[26]!==h||e[27]!==x||e[28]!==g?(w=(0,Tu.jsxs)("div",{id:r,"data-key":n.key,role:c,tabIndex:-1,"aria-checked":n.checked,"aria-haspopup":u,"aria-expanded":d,className:p,onPointerEnter:a,onMouseDown:m,children:[f,h,x,g,y,b]}),e[14]=r,e[15]=n.checked,e[16]=n.key,e[17]=a,e[18]=c,e[19]=y,e[20]=b,e[21]=u,e[22]=d,e[23]=p,e[24]=m,e[25]=f,e[26]=h,e[27]=x,e[28]=g,e[29]=w):w=e[29],w}var sm=R(ee(),1),R6=(t,e,n)=>`${t}-${e}-${n.replace(/[^\w-]/g,r=>`_${r.charCodeAt(0).toString(16)}`)}`;function A6({nodes:t,level:e,tree:n,idPrefix:r,subAbove:i=!1}){let o=n.activeKey(e),a=(l,c)=>c&&(0,sm.jsx)("div",{className:`acpmux-mp-sub${l.panel?" acpmux-mp-panel":""}`,"data-mp-sub":e,role:l.panel?void 0:"menu",onPointerEnter:n.cancelHover,children:l.panel??(0,sm.jsx)(A6,{nodes:l.children??[],level:e+1,tree:n,idPrefix:r,subAbove:i})}),s;return(0,sm.jsx)("div",{className:"acpmux-mp-level",role:"group","data-level":e,children:t.map(l=>{let c=l.section&&l.section!==s?l.section:void 0;s=l.section;let u=n.path[e]===l.key&&!!(l.children?.length||l.panel);return(0,sm.jsxs)(Lle.default.Fragment,{children:[c&&(0,sm.jsx)("div",{className:"acpmux-menu-header",children:c}),(0,sm.jsxs)("div",{className:"acpmux-mp-entry",children:[i&&a(l,u),(0,sm.jsx)(_le,{node:l,id:R6(r,e,l.key),active:l.key===o,open:u,onHover:()=>n.hover(e,l),onPick:()=>n.click(l)}),!i&&a(l,u)]})]},l.key)})})}var D_=R(ee(),1);function F_(t){let e=t.catalog.find(f=>f.id===t.harness),n=$_(e?.models??[],e?.name??t.harness??""),r={model:t.model,effort:t.effort},i=e?.models.find(f=>Fl(f)),o=ble(t.recents,n,t.harness,Number.MAX_SAFE_INTEGER,i?.id),a=o.slice(0,yle),s=n.byId.get(t.model??""),l=n.providers.find(f=>f.name===s?.provider),c=l?.families.find(f=>f.name===s?.family),u=f=>t.efforts.find(h=>h.id===f)?.name??f,d=f=>f.effort&&!Fl({id:f.effort,name:f.effortName})?f.effortName??u(f.effort):void 0,p=t.catalog.filter(f=>f.id===t.harness||t.onHarness),m=f=>{f&&t.onLand(f.model,f.effort)};return{taxonomy:n,current:r,recents:o,numbered:a,model:s,provider:l,family:c,harnesses:p,harnessName:e?.name??t.harness??"",defaultChoice:i,effortName:u,comboEffort:d,isCurrentCombo:f=>f.model===t.model&&(f.effort??void 0)===(t.effort??void 0),landModel:f=>m(N_(f,o,r)),landFamily:f=>m(cle(f,o,r)),landProvider:f=>m(ule(f,o,r)),landCombo:f=>t.onLand(f.model,f.effort),rankModels:f=>dle(f,o,r),rankFamilies:f=>ple(f,o,r),rankProviders:f=>mle(f,o,r),filter:(f,h)=>{let x=gle(n,f);return h?x.filter(g=>h.includes(g)):x}}}function B_(t,e,n){return t.metaKey||t.ctrlKey||t.altKey?!1:t.key==="Backspace"?e?(t.preventDefault(),n(e.slice(0,-1)),!0):!1:t.key.length!==1||!e&&t.key===" "?!1:(t.preventDefault(),n(e+t.key),!0)}function z_(t,e,n){if(!(e||t.metaKey||t.ctrlKey||t.altKey||!/^[1-9]$/.test(t.key))&&!(Number(t.key)>n))return t.preventDefault(),Number(t.key)-1}var O_=(t,e)=>e==="bestLast"?[...t].reverse():t;function j_(t,e,n,r,i,o,a){let{visible:s,hidden:l}=hle(n,xle,o.has(e)),c=s.map(r);if(l===0)return O_(c,i);let u={key:`${e}:more`,section:c[0]?.section,label:t("picker.more"),detail:String(l),more:!0,run:()=>(a(e),"keep")};return i==="bestLast"?[u,...O_(c,i)]:[...c,u]}function QO(t,e,n,r){let i={key:`harness:${t.id}`,label:t.name,icon:(0,D_.jsx)(M6,{agent:t.id,size:14}),section:r,checked:t.id===e.harness};return t.unavailable&&t.id!==e.harness?{...i,detail:n("picker.unavailable"),children:[{key:`harness:${t.id}:reason`,label:t.unavailable},{key:`harness:${t.id}:retry`,label:n("picker.tryAgain"),run:()=>e.onHarness?.(t.id)}]}:{...i,detail:e.harnessNotes?.[t.id]??(t.id===e.harness?void 0:n("picker.newChat")),rest:()=>e.onHarnessHint?.(t.id),run:()=>{t.id!==e.harness&&e.onHarness?.(t.id)}}}function q_(t,e,{order:n,expanded:r,expand:i,t:o}){let a=(m,f,h)=>({key:`model:${m.id}`,label:m.name,detail:h,section:f,checked:m.id===e.model,run:()=>t.landModel(m)}),s=(m,f)=>j_(o,`family:${m.key}`,t.rankModels(m.models),h=>a(h,f),n,r,i),l=()=>{let m=t.family;if(!m)return[];let f=new Set(t.numbered.map(h=>h.model));return j_(o,`current:${m.key}`,t.rankModels(m.models).filter(h=>!f.has(h.id)),h=>a(h,m.name),n,r,i)},c=(m,f)=>({key:`family:${m.key}`,label:m.name,detail:I_(m,t.recents,t.current)?.name,section:f,run:()=>t.landFamily(m),children:s(m)}),u=(m,f)=>j_(o,`families:${m.name}`,t.rankFamilies(m.families),h=>c(h,f),n,r,i),d=(m,f)=>({key:`provider:${m.name}`,label:m.name,detail:KO(m,t.recents,t.current)?.name,section:f,run:()=>t.landProvider(m),children:u(m)}),p=m=>{let f=t.defaultChoice;if(f)return{key:`model:${f.id}`,label:e.resolvedDefault??o("picker.default"),detail:e.resolvedDefault?o("picker.default"):void 0,section:m,checked:f.id===e.model,run:()=>e.onLand(f.id)}};return{modelRow:a,defaultRow:p,familyModels:s,currentFamily:l,familyRow:c,providerRow:d,upperLayer(m=!0){let f=t.taxonomy.providers,h=m?o(f.length===1?"picker.family":"picker.provider"):void 0,x=f.length===1?u(f[0],h):j_(o,"providers",t.rankProviders(f),y=>d(y,h),n,r,i),g=p(h);return g?n==="bestLast"?[...x,g]:[g,...x]:x},harnessRow(){if(!(t.harnesses.length<2))return{key:"harness",label:t.harnessName,icon:e.harness?(0,D_.jsx)(M6,{agent:e.harness,size:14}):void 0,detail:o("picker.harness"),children:t.harnesses.map(m=>QO(m,e,o))}},effortRow(m){if(e.efforts.length===0)return;let f=Math.max(0,e.efforts.findIndex(h=>h.id===e.effort));return{key:"effort",label:o("picker.reasoning"),detail:t.effortName(e.effort),panel:(0,D_.jsx)(E_,{efforts:e.efforts,current:e.effort,onPick:e.onEffort,onEscape:m}),step:h=>{let x=e.efforts[f+h];x&&e.onEffort(x.id)}}},recentRows(){let m=t.numbered.map((f,h)=>({key:`recent:${h}`,label:t.taxonomy.byId.get(f.model)?.name??(f.model===t.defaultChoice?.id?e.resolvedDefault??o("picker.default"):f.model),detail:t.comboEffort(f),hint:String(h+1),section:o("picker.recent"),checked:t.isCurrentCombo(f),run:()=>t.landCombo(f)}));return O_(m,n)},matches(m,f){let h=t.filter(m,f),x=f?void 0:p(),g=m.trim().toLowerCase().split(/\s+/).filter(Boolean),y=`${o("picker.default")} default ${e.resolvedDefault??""}`.toLowerCase(),b=h.map(w=>a(w,void 0,`${w.provider} \xB7 ${w.family}`));return x&&g.every(w=>y.includes(w))&&b.unshift(x),b.length===0?[{key:"none",label:o("picker.noMatches")}]:O_(b,n)}}}var Ele=R(qe(),1),H_=R(Q(),1);var D0=R(Q(),1);function OFe(t,e,n,r){let i=(l,c)=>(c.x-l.x)*(t.y-l.y)-(c.y-l.y)*(t.x-l.x),o=i(e,n),a=i(n,r),s=i(r,e);return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0}function DFe(t,e,n){if(!t||!e||!n||n.right<=n.left||n.bottom<=n.top||t.x===e.x&&t.y===e.y)return!1;if(e.x>=n.left&&e.x<=n.right&&e.y>=n.top&&e.y<=n.bottom)return!0;let r=t.x<n.left||t.x>n.right,[i,o]=r?[{x:t.x<n.left?n.left:n.right,y:n.top},{x:t.x<n.left?n.left:n.right,y:n.bottom}]:[{x:n.left,y:t.y<n.top?n.top:n.bottom},{x:n.right,y:t.y<n.top?n.top:n.bottom}];return OFe(e,t,i,o)}function Mle(t=wle){let e=(0,D0.useRef)(void 0),n=(0,D0.useRef)([]);return(0,D0.useEffect)(()=>()=>clearTimeout(e.current),[]),(0,D0.useMemo)(()=>({track(r){n.current=[...n.current.slice(-1),{x:r.clientX,y:r.clientY}]},schedule(r,i){clearTimeout(e.current);let o=n.current.at(-1),a=0,s=()=>{e.current=setTimeout(()=>{let[l,c]=n.current,u=c!==o;o=c,u&&a<6&&DFe(l,c,i?.()?.getBoundingClientRect())?(a+=1,s()):r()},t)};s()},cancel(){clearTimeout(e.current)}}),[t])}var JO=t=>!!(t&&(t.children?.length||t.panel));function $6(t,e){let n=(0,Ele.c)(31),{entry:r,rootEntry:i,onDone:o,aim:a}=e,s=i===void 0?r:i,l;n[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],n[0]=l):l=n[0];let[c,u]=(0,H_.useState)(l),[d,p]=(0,H_.useState)(0),m;n[1]===Symbol.for("react.memo_cache_sentinel")?(m=[],n[1]=m):m=n[1];let[f,h]=(0,H_.useState)(m),x=Mle(),g;n[2]!==c||n[3]!==t?(g=N=>{let F=t;for(let D=0;D<N;D=D+1,D)F=F.find(O=>O.key===c[D])?.children??[];return F},n[2]=c,n[3]=t,n[4]=g):g=n[4];let y=g,b;n[5]!==r?(b=N=>(r==="last"?N.at(-1):N[0])?.key,n[5]=r,n[6]=b):b=n[6];let w=b,v;n[7]!==f||n[8]!==y||n[9]!==s?(v=N=>{let F=y(N),D=f[N];if(D&&F.some(O=>O.key===D))return D;if(!(N>0))return([...F].reverse().find(FFe)??(s==="last"?F.at(-1):F[0]))?.key},n[7]=f,n[8]=y,n[9]=s,n[10]=v):v=n[10];let k=v,_;n[11]!==y?(_=(N,F)=>{y(N).find(D=>D.key===F)?.rest?.(),h(D=>{let O=D.slice(0,N+1);return O[N]=F,O})},n[11]=y,n[12]=_):_=n[12];let L=_,S;n[13]!==w?(S=(N,F,D)=>{if(u(B=>[...B.slice(0,N),F.key]),!D)return;p(N+1);let O=w(F.children??[]);F.children?.find(B=>B.key===O)?.rest?.(),h(B=>{let P=B.slice(0,N+2);return P[N]=F.key,P[N+1]=O,P})},n[13]=w,n[14]=S):S=n[14];let C=S,T;n[15]===Symbol.for("react.memo_cache_sentinel")?(T=N=>u(F=>F.slice(0,N)),n[15]=T):T=n[15];let M=T,A;if(n[16]!==y||n[17]!==o||n[18]!==C||n[19]!==c){A=F=>{if(F.run){F.run()!=="keep"&&o();return}let D=N(F);D>=0&&JO(F)&&C(D,F,!0)};let N=F=>{for(let D=0;D<=c.length;D=D+1,D)if(y(D).includes(F))return D;return-1};n[16]=y,n[17]=o,n[18]=C,n[19]=c,n[20]=A}else A=n[20];let $;return n[21]!==k||n[22]!==a||n[23]!==x||n[24]!==d||n[25]!==y||n[26]!==C||n[27]!==c||n[28]!==A||n[29]!==L?($={path:c,level:d,activeKey:k,nodesAt:y,reset(){x.cancel(),u([]),p(0),h([])},collapse(N){x.cancel(),M(N),p(F=>Math.min(F,N))},track:x.track,cancelHover:x.cancel,hover(N,F){L(N,F.key),x.schedule(()=>{p(N),JO(F)?C(N,F,!1):M(N)},()=>a(N))},click(N){x.cancel(),A(N)},keyDown(N){let F=y(d),D=d>0?y(d-1).find(U=>U.key===c[d-1]):void 0;if(D?.panel&&!D.children?.length){if(N.key==="ArrowRight"||N.key==="ArrowUp")D.step?.(1);else if(N.key==="ArrowLeft"||N.key==="ArrowDown")D.step?.(-1);else if(N.key==="Escape"||N.key==="Enter")p(d-1),M(d-1);else return!1;return N.preventDefault(),!0}let O=k(d),B=F.findIndex(U=>U.key===O),P=F[B];if(N.key==="ArrowDown"||N.key==="ArrowUp"){if(F.length===0)return!0;let U=N.key==="ArrowDown"?1:-1,G=B<0?U>0?-1:F.length:B;L(d,F[(G+U+F.length)%F.length].key)}else if(N.key==="ArrowRight"){if(!P||!JO(P))return!0;C(d,P,!0)}else if(N.key==="ArrowLeft"){if(d===0)return c.length>0&&M(0),!0;p(d-1),M(d-1)}else if(N.key==="Enter")P&&A(P);else if(N.key==="Escape")if(d>0)p(d-1),M(d-1);else if(c.length>0)M(0);else return!1;else return!1;return N.preventDefault(),!0}},n[21]=k,n[22]=a,n[23]=x,n[24]=d,n[25]=y,n[26]=C,n[27]=c,n[28]=A,n[29]=L,n[30]=$):$=n[30],$}function FFe(t){return t.checked}var lm=R(ee(),1);function Rle(t){let e=(0,Tle.c)(25),n=we(),{trigger:r,menu:i,close:o}=t,[a,s]=(0,I6.useState)(""),[l,c]=(0,I6.useState)(zFe),u=(0,I6.useId)(),d;if(e[0]!==u){let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=/[^\w]/g,e[2]=N):N=e[2],d=u.replace(N,""),e[0]=u,e[1]=d}else d=e[1];let p=`mp${d}`,m=F_(t),f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=N=>c(F=>new Set([...F,N])),e[3]=f):f=e[3];let h=q_(m,t,{order:"bestLast",expanded:l,expand:f,t:n}),x=BFe,g=a?h.matches(a):[...x(h.harnessRow()),...h.upperLayer(),...h.currentFamily(),...x(h.effortRow(()=>{w.reset(),r.current?.focus()})),...h.recentRows()],y;e[4]!==i?(y=N=>i.current?.querySelector(`[data-mp-sub="${N}"]`),e[4]=i,e[5]=y):y=e[5];let b;e[6]!==o||e[7]!==y?(b={entry:"last",onDone:o,aim:y},e[6]=o,e[7]=y,e[8]=b):b=e[8];let w=$6(g,b),v=N=>{s(N),w.reset()},k=N=>{N.key==="Escape"&&N.stopPropagation();let F=z_(N,a,m.numbered.length);if(F!==void 0){let D=m.numbered[F];D&&(m.landCombo(D),o());return}w.keyDown(N)||(N.key==="Escape"?(N.preventDefault(),a?v(""):o()):N.key==="Tab"?o():B_(N,a,v))},_=w.activeKey(w.level);P_(t,{keyDown:k,track:N=>w.track(N)},_&&R6(p,w.level,_));let L=`acpmux-menu-search${a?"":" acpmux-menu-search-empty"}`,S;e[9]===Symbol.for("react.memo_cache_sentinel")?(S=(0,lm.jsx)(P2,{}),e[9]=S):S=e[9];let C;e[10]!==a||e[11]!==n?(C=a||n("picker.search"),e[10]=a,e[11]=n,e[12]=C):C=e[12];let T;e[13]!==C?(T=(0,lm.jsx)("span",{children:C}),e[13]=C,e[14]=T):T=e[14];let M;e[15]!==L||e[16]!==T?(M=(0,lm.jsxs)("div",{className:L,"aria-live":"polite",children:[S,T]}),e[15]=L,e[16]=T,e[17]=M):M=e[17];let A;e[18]!==p||e[19]!==g||e[20]!==w?(A=(0,lm.jsx)(A6,{nodes:g,level:0,tree:w,idPrefix:p}),e[18]=p,e[19]=g,e[20]=w,e[21]=A):A=e[21];let $;return e[22]!==A||e[23]!==M?($=(0,lm.jsxs)(lm.Fragment,{children:[M,A]}),e[22]=A,e[23]=M,e[24]=$):$=e[24],$}function BFe(t){return t?[t]:[]}function zFe(){return new Set}var g1=R(Q(),1);var is=R(ee(),1);function Ale(t){let e=we(),{trigger:n,menu:r,close:i}=t,[o,a]=(0,g1.useState)(!1),[s,l]=(0,g1.useState)(""),[c,u]=(0,g1.useState)(()=>new Set),d=`mp${(0,g1.useId)().replace(/[^\w]/g,"")}`,p=F_(t),m=q_(p,t,{order:"bestLast",expanded:c,expand:A=>u($=>new Set([...$,A])),t:e}),f=A=>A?[A]:[],h=[{key:"browse",label:e("picker.moreModels"),detail:p.harnessName,run:()=>(a(!0),l(""),b.reset(),"keep")},...f(m.effortRow(()=>{b.reset(),n.current?.focus()})),...m.currentFamily(),...m.recentRows()],g=[...p.harnesses.length>1?p.harnesses.map(A=>QO(A,t,e,e("picker.harness"))):[],...m.upperLayer()],y=o?g:h,b=$6(y,{entry:"last",onDone:i,aim:A=>r.current?.querySelector(`[data-mp-sub="${A}"]`)}),w=[];if(o)for(let A=0;A<b.path.length;A+=1){let $=b.path[A],N=b.nodesAt(A).find(B=>B.key===$)?.label,F=p.taxonomy.providers.find(B=>`provider:${B.name}`===$),D=p.taxonomy.providers.flatMap(B=>B.families).find(B=>`family:${B.key}`===$),O=F?.models??D?.models;N&&O&&w.push({label:N,models:O})}let v=w.at(-1)?.models,k=s?m.matches(s,o?v:void 0):y,_=$6(s?k:[],{entry:"last",onDone:i,aim:()=>{}}),L=s?_:b,S=A=>{l(A),_.reset()},C=()=>{a(!1),l(""),b.reset()},T=A=>{A.key==="Escape"&&A.stopPropagation();let $=z_(A,s,p.numbered.length);if($!==void 0){let N=p.numbered[$];N&&(p.landCombo(N),i());return}L.keyDown(A)||(A.key==="Escape"?(A.preventDefault(),s?S(""):o?C():i()):A.key==="Backspace"&&!s&&o?(A.preventDefault(),C()):A.key==="Tab"?i():B_(A,s,S))};(0,g1.useLayoutEffect)(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[r,o,s]);let M=L.activeKey(L.level);return P_(t,{keyDown:T,track:A=>L.track(A)},M&&R6(d,L.level,M)),(0,is.jsxs)(is.Fragment,{children:[o&&(0,is.jsxs)("nav",{className:"acpmux-mp-crumbs","aria-label":e("picker.allModels"),children:[(0,is.jsx)("button",{type:"button",tabIndex:-1,className:"acpmux-mp-crumb acpmux-mp-back","aria-label":e("picker.back"),onMouseDown:A=>{A.preventDefault(),C()},children:"\u2039"}),(0,is.jsx)("button",{type:"button",tabIndex:-1,className:"acpmux-mp-crumb",onMouseDown:A=>{A.preventDefault(),b.collapse(0)},children:p.harnessName}),w.map((A,$)=>(0,is.jsxs)("span",{className:"acpmux-mp-crumb-step",children:[(0,is.jsx)("span",{"aria-hidden":"true",children:"\u203A"}),(0,is.jsx)("button",{type:"button",tabIndex:-1,className:"acpmux-mp-crumb","aria-current":$===w.length-1?"location":void 0,onMouseDown:N=>{N.preventDefault(),b.collapse($+1)},children:A.label})]},A.label))]}),(0,is.jsxs)("div",{className:`acpmux-menu-search${s?"":" acpmux-menu-search-empty"}`,"aria-live":"polite",children:[(0,is.jsx)(P2,{}),(0,is.jsx)("span",{children:s||e("picker.search")})]}),(0,is.jsx)(A6,{nodes:k,level:0,tree:L,idPrefix:d,subAbove:!0})]})}var y1=R(Q(),1);var b1=R(ee(),1);function $le({layout:t,chip:e,detail:n,offersEffort:r=!1,open:i,onOpenChange:o,onKeyDown:a,onPointerMove:s,trigger:l,menu:c,children:u}){let d=we(),p=d(Ru.model),m=d(Ru.effort),f=(0,y1.useRef)(null),h=(0,y1.useId)(),x=Ys(l,c,i,{side:"above",align:"start"});(0,y1.useEffect)(()=>{if(!i)return;let b=v=>{f.current?.contains(v.target)||o(!1)},w=()=>o(!1);return document.addEventListener("pointerdown",b),window.addEventListener("blur",w),()=>{document.removeEventListener("pointerdown",b),window.removeEventListener("blur",w)}},[i,o]);let g=()=>{i||o(!0),l.current?.focus()},y=(0,y1.useRef)(g);return y.current=g,(0,y1.useEffect)(()=>{let b=()=>{let k=document.activeElement;k instanceof HTMLElement&&!f.current?.contains(k)&&k.blur(),y.current()},w=Xs(p,b),v=r?Xs(m,b):void 0;return()=>{w(),v?.()}},[p,m,r]),(0,b1.jsxs)("span",{ref:f,className:"acpmux-picker acpmux-model",style:{position:"relative"},onBlur:b=>{i&&!f.current?.contains(b.relatedTarget)&&o(!1)},children:[(0,b1.jsxs)("button",{ref:l,type:"button",role:"combobox",className:"acpmux-picker-button","data-menu":p,"aria-label":p,"aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?h:void 0,onKeyDown:b=>{i?a(b):(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),o(!0))},onClick:()=>i?o(!1):g(),children:[(0,b1.jsx)("span",{className:"acpmux-model-name",children:e}),n&&(0,b1.jsx)("span",{className:"acpmux-model-effort",children:n}),(0,b1.jsx)(x1,{})]}),i&&(0,b1.jsx)("div",{ref:c,id:h,className:`acpmux-menu acpmux-menu-end acpmux-mp acpmux-mp-${t??"cascade"}`,role:"menu","aria-label":p,style:x,onPointerMove:s,children:u})]})}var eD=R(ee(),1);function Ile(t){let[e,n]=(0,Fc.useState)(!1),[r,i]=(0,Fc.useState)(void 0),o=(0,Fc.useRef)(null),a=(0,Fc.useRef)(null),s=(0,Fc.useRef)(void 0),{onHarnessHint:l}=t,c=(0,Fc.useCallback)(h=>{n(h),i(void 0),h||l?.(void 0)},[l]),u=(0,Fc.useCallback)(()=>c(!1),[c]),{catalog:d,harness:p,measureRoom:m=kle}=t;(0,Fc.useLayoutEffect)(()=>{if(!e||r||!a.current)return;let h=d.find(g=>g.id===p),x=$_(h?.models??[],h?.name??p??"").providers.length>1?2:1;i(vle(m(a.current),x))},[e,r,d,p,m]);let f=r==="drill"?Ale:Rle;return(0,eD.jsx)($le,{layout:r,chip:t.label,detail:t.detail,offersEffort:t.efforts.length>0,open:e,onOpenChange:c,onKeyDown:h=>s.current?.keyDown(h),onPointerMove:h=>s.current?.track(h),trigger:o,menu:a,children:r&&(0,eD.jsx)(f,{...t,trigger:o,menu:a,handle:s,close:u})})}var Ide=R(qe(),1);var rg={};fn(rg,{Arrow:()=>sde,Backdrop:()=>cde,Close:()=>hde,Description:()=>mde,Handle:()=>ux,Popup:()=>ode,Portal:()=>Iue,Positioner:()=>tde,Root:()=>Mue,Title:()=>dde,Trigger:()=>Rue,Viewport:()=>Ede,createHandle:()=>Tde});var rx=R(Q(),1);var Nle=R(Q(),1);var tD=[],nD;function Ple(){return nD}function jle(t){tD.push(t)}function N6(t){let e=(n,r)=>{let i=Vn(qFe).current,o;try{nD=i;for(let a of tD)a.before(i);o=t(n,r);for(let a of tD)a.after(i);i.didInitialize=!0}finally{nD=void 0}return o};return e.displayName=t.displayName||t.name,e}function G_(t){return Nle.forwardRef(N6(t))}function qFe(){return{didInitialize:!1}}var P6=0,Ca=class t{static create(){return new t}currentId=P6;start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=P6,n()},e)}isStarted(){return this.currentId!==P6}clear=()=>{this.currentId!==P6&&(clearTimeout(this.currentId),this.currentId=P6)};disposeEffect=()=>this.clear};function Br(){let t=Vn(Ca.create).current;return v2(t.disposeEffect),t}var Nn={};fn(Nn,{engine:()=>sD,env:()=>cD,mediaQuery:()=>uD,os:()=>oD,screenReader:()=>lD});var oD={};fn(oD,{android:()=>Fle,apple:()=>iD,ios:()=>rD,linux:()=>ZFe,mac:()=>Ble,windows:()=>VFe});function HFe(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:GFe,platform:UFe,maxTouchPoints:Ole}=HFe(),F0=GFe.toLowerCase(),B0=UFe.toLowerCase();var rD=/^i(os$|p)/.test(B0)||B0==="macintel"&&Ole>1,Dle="android",Fle=B0===Dle||F0.includes(Dle),Ble=!rD&&B0.startsWith("mac"),VFe=B0.startsWith("win"),ZFe=!Fle&&/^(linux|chrome os)/.test(B0),iD=Ble||rD;var sD={};fn(sD,{blink:()=>KFe,gecko:()=>WFe,webkit:()=>aD});var aD=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),WFe=!aD&&F0.includes("firefox"),KFe=!aD&&F0.includes("chrom");var lD={};fn(lD,{voiceOver:()=>XFe});var XFe=iD;var cD={};fn(cD,{jsdom:()=>YFe});var YFe=/jsdom|happydom/.test(F0);var uD={};fn(uD,{iOS:()=>QFe});var QFe="@supports (-webkit-touch-callout: none)";function zr(t){t.preventDefault(),t.stopPropagation()}function zle(t){return"nativeEvent"in t}function j2(t){return t.pointerType===""&&t.isTrusted?!0:Nn.os.android&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function O2(t){return Nn.env.jsdom?!1:!Nn.os.android&&t.width===0&&t.height===0||Nn.os.android&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function cm(t,e){let n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function qle(t){let e=t.type;return e==="click"||e==="mousedown"||e==="keydown"||e==="keyup"}function yo(t){let e=t.activeElement;for(;e?.shadowRoot?.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function ot(t,e){if(!t||!e)return!1;let n=e.getRootNode?.();if(t.contains(e))return!0;if(n&&Cd(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function lr(t){return"composedPath"in t?t.composedPath()[0]??t.target:t.target}var j6="data-base-ui-focusable";var dD="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",um="ArrowLeft",dm="ArrowRight",O6="ArrowUp",D2="ArrowDown";var Hle="data-open",Gle="data-closed";var Ule="data-anchor-hidden";var z0={};fn(z0,{popupOpen:()=>U_,pressed:()=>pD});var U_="data-popup-open",pD="data-pressed";var eBe={[U_]:""},tBe={[U_]:"",[pD]:""},nBe={[Hle]:""},rBe={[Gle]:""},iBe={[Ule]:""},F2={open(t){return t?eBe:null}},q0={open(t){return t?tBe:null}},Bl={open(t){return t?nBe:rBe},anchorHidden(t){return t?iBe:null}},w1={...Bl,...Dc};var sxt=z0.popupOpen,mD="data-trigger-disabled";function v1(t,e){if(!ln(t))return!1;let n=t;if(e.hasElement(n))return!n.hasAttribute(mD);for(let[,r]of e.entries())if(ot(r,n))return!r.hasAttribute(mD);return!1}function V_(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);let n=t;return n.target!=null&&e.contains(n.target)}function Vle(t){return t.matches("html,body")}function H0(t){return Ln(t)&&t.matches(dD)}function D6(t){return t?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${dD}`)!=null}function F6(t){return t?t.getAttribute("role")==="combobox"&&H0(t):!1}function Zle(t){if(!t||Nn.env.jsdom)return!0;try{return t.matches(":focus-visible")}catch{return!0}}function B6(t){return t?t.hasAttribute(j6)?t:t.querySelector(`[${j6}]`)||t:null}function aBe(t,e){return e!=null&&!cm(e)?0:typeof t=="function"?t():t}function z6(t,e,n){let r=aBe(t,n);return typeof r=="number"?r:r?.[e]}function fD(t){return typeof t=="function"?t():t}function Z_(t,e){return e||t==="click"||t==="mousedown"}function Wle(t){return t?.includes("mouse")&&t!=="mousedown"}var Ea=R(Q(),1);function hn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function _a(...t){return()=>{for(let e=0;e<t.length;e+=1){let n=t[e];n&&n()}}}function Yr(t){let e=Vn(sBe,t).current;return e.next=t,Ee(e.effect),e}function sBe(t){let e={current:t,next:t,effect:()=>{e.current=e.next}};return e}var W_=R(Q(),1);var Kle=R(ee(),1),Bc=W_.forwardRef(function(e,n){let[r,i]=W_.useState();return Ee(()=>{Nn.screenReader.voiceOver&&Nn.engine.webkit&&i("button")},[]),(0,Kle.jsx)("span",{...e,ref:n,style:h2,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var k1=Math.min,Au=Math.max,C1=Math.round,pm=Math.floor,Ld=t=>({x:t,y:t}),lBe={left:"right",right:"left",bottom:"top",top:"bottom"};function X_(t,e,n){return Au(t,k1(e,n))}function Md(t,e){return typeof t=="function"?t(e):t}function Sa(t){return t.split("-")[0]}function zc(t){return t.split("-")[1]}function Y_(t){return t==="x"?"y":"x"}function H6(t){return t==="y"?"height":"width"}function Qs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function G6(t){return Y_(Qs(t))}function Qle(t,e,n){n===void 0&&(n=!1);let r=zc(t),i=G6(t),o=H6(i),a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=q6(a)),[a,q6(a)]}function Jle(t){let e=q6(t);return[K_(t),e,K_(e)]}function K_(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var Xle=["left","right"],Yle=["right","left"],cBe=["top","bottom"],uBe=["bottom","top"];function dBe(t,e,n){switch(t){case"top":case"bottom":return n?e?Yle:Xle:e?Xle:Yle;case"left":case"right":return e?cBe:uBe;default:return[]}}function ece(t,e,n,r){let i=zc(t),o=dBe(Sa(t),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),e&&(o=o.concat(o.map(K_)))),o}function q6(t){let e=Sa(t);return lBe[e]+t.slice(e.length)}function pBe(t){var e,n,r,i;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(r=t.bottom)!=null?r:0,left:(i=t.left)!=null?i:0}}function Q_(t){return typeof t!="number"?pBe(t):{top:t,right:t,bottom:t,left:t}}function G0(t){let{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function J_(t,e,n){return Math.floor(t/e)!==n}function U0(t,e){return e<0||e>=t.length}function eS(t,e){return La(t.current,{disabledIndices:e})}function hD(t,e){return La(t.current,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function La(t,{startingIndex:e=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=e;do o+=n?-i:i;while(o>=0&&o<=t.length-1&&U6(t,o,r));return o}function tce(t,{event:e,orientation:n,loopFocus:r,onLoop:i,rtl:o,cols:a,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}){let p=u,m;if(e.key===O6?m="up":e.key===D2&&(m="down"),m){let f=[],h=[],x=!1,g=0;{let S=null,C=-1;t.forEach((T,M)=>{if(T==null)return;g+=1;let A=T.closest('[role="row"]');A&&(x=!0),(A!==S||C===-1)&&(S=A,C+=1,f[C]=[]),f[C].push(M),h[M]=C})}let y=!1,b=0;if(x)for(let S of f){let C=S.length;C>b&&(b=C),C!==a&&(y=!0)}let w=y&&g<t.length,v=b||a,k=S=>{if(!y||u===-1)return;let C=h[u];if(C==null)return;let T=f[C].indexOf(u),M=S==="up"?-1:1;for(let A=C+M,$=0;$<f.length;$+=1,A+=M){if(A<0||A>=f.length){if(!r||w)return;if(A=A<0?f.length-1:0,i){let F=Math.min(T,f[A].length-1),D=f[A][F]??f[A][0],O=i(e,u,D);A=h[O]??A}}let N=f[A];for(let F=Math.min(T,N.length-1);F>=0;F-=1){let D=N[F];if(!U6(t,D,s))return D}}},_=S=>{if(!w||u===-1)return;let C=u%v,T=S==="up"?-v:v,M=c-c%v,A=pm(c/v)+1;for(let $=u-C+T,N=0;N<A;N+=1,$+=T){if($<0||$>c){if(!r)return;$=$<0?M:0}let F=Math.min($+v-1,c);for(let D=Math.min($+C,F);D>=$;D-=1)if(!U6(t,D,s))return D}};d&&zr(e);let L=k(m)??_(m);if(L!==void 0)p=L;else if(u===-1)p=m==="up"?c:l;else if(p=La(t,{startingIndex:u,amount:v,decrement:m==="up",disabledIndices:s}),r){if(m==="up"&&(u-v<l||p<0)){let S=u%v,C=c%v,T=c-(C-S);C===S?p=c:p=C>S?T:T-v,i&&(p=i(e,u,p))}m==="down"&&u+v>c&&(p=La(t,{startingIndex:u%v-v,amount:v,disabledIndices:s}),i&&(p=i(e,u,p)))}U0(t,p)&&(p=u)}if(n==="both"){let f=pm(u/a);e.key===(o?um:dm)&&(d&&zr(e),u%a!==a-1?(p=La(t,{startingIndex:u,disabledIndices:s}),r&&J_(p,a,f)&&(p=La(t,{startingIndex:u-u%a-1,disabledIndices:s}),i&&(p=i(e,u,p)))):r&&(p=La(t,{startingIndex:u-u%a-1,disabledIndices:s}),i&&(p=i(e,u,p))),J_(p,a,f)&&(p=u)),e.key===(o?dm:um)&&(d&&zr(e),u%a!==0?(p=La(t,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&J_(p,a,f)&&(p=La(t,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}),i&&(p=i(e,u,p)))):r&&(p=La(t,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}),i&&(p=i(e,u,p))),J_(p,a,f)&&(p=u));let h=pm(c/a)===f;U0(t,p)&&(r&&h?(p=e.key===(o?dm:um)?c:La(t,{startingIndex:u-u%a-1,disabledIndices:s}),i&&(p=i(e,u,p))):p=u)}return p}function U6(t,e,n){if(typeof n=="function"?n(e):n?.includes(e)??!1)return!0;let i=t[e];return i?!V0(i)||i.matches(":disabled")?!0:!n&&(i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true"):!1}function mBe(t){return t.visibility==="hidden"||t.visibility==="collapse"}function V0(t,e=t?Fi(t):null){return!t||!t.isConnected||!e||mBe(e)?!1:typeof t.checkVisibility=="function"?t.checkVisibility():e.display!=="none"&&e.display!=="contents"}var fBe='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function hBe(t){let e=t.assignedSlot;if(e)return e;if(t.parentElement)return t.parentElement;let n=t.getRootNode();return Cd(n)?n.host:null}function bD(t){for(let e of Array.from(t.children))if(Di(e)==="summary")return e;return null}function gBe(t,e){let n=bD(e);return!!n&&(t===n||ot(n,t))}function nce(t){let e=t?Di(t):"";return t!=null&&t.matches(fBe)&&(e!=="summary"||t.parentElement!=null&&Di(t.parentElement)==="details"&&bD(t.parentElement)===t)&&(e!=="details"||bD(t)==null)&&(e!=="input"||t.type!=="hidden")}function rce(t){if(!nce(t)||!t.isConnected||t.matches(":disabled"))return!1;for(let e=t;e;e=hBe(e)){let n=e!==t,r=Di(e)==="slot";if(e.hasAttribute("inert")||n&&Di(e)==="details"&&!e.open&&!gBe(t,e)||e.hasAttribute("hidden")||!r&&!bBe(e,n))return!1}return!0}function bBe(t,e){let n=Fi(t);return e?n.display!=="none":V0(t,n)}function ice(t){let e=t.tabIndex;if(e<0){let n=Di(t);if(n==="details"||n==="audio"||n==="video"||Ln(t)&&t.isContentEditable)return 0}return e}function gD(t){if(Di(t)!=="input")return null;let e=t;return e.type==="radio"&&e.name!==""?e:null}function yBe(t,e){let n=gD(t);if(!n)return!0;let r=e.find(i=>{let o=gD(i);return o?.name===n.name&&o.form===n.form&&o.checked});return r?r===n:e.find(i=>{let o=gD(i);return o?.name===n.name&&o.form===n.form})===n}function oce(t){if(Ln(t)&&Di(t)==="slot"){let e=t.assignedElements({flatten:!0});if(e.length>0)return e}return Ln(t)&&t.shadowRoot?Array.from(t.shadowRoot.children):Array.from(t.children)}function ace(t,e){oce(t).forEach(n=>{nce(n)&&e.push(n),ace(n,e)})}function sce(t,e,n){oce(t).forEach(r=>{Ln(r)&&r.matches(e)&&n.push(r),sce(r,e,n)})}function tS(t){return rce(t)&&ice(t)>=0}function yD(t){let e=[];return ace(t,e),e.filter(rce)}function B2(t){let e=yD(t);return e.filter(n=>ice(n)>=0&&yBe(n,e))}function lce(t,e){let n=B2(t),r=n.length;if(r===0)return;let i=yo(Wt(t)),o=n.indexOf(i),a=o===-1?e===1?0:r-1:o+e;return n[a]}function z2(t){return lce(Wt(t).body,1)||t}function nS(t){return lce(Wt(t).body,-1)||t}function cce(t,e){if(!t)return null;let n=B2(Wt(t).body),r=n.length;if(r===0)return null;let i=n.indexOf(t);if(i===-1)return null;let o=(i+e+r)%r;return n[o]}function uce(t){return cce(t,1)}function dce(t){return cce(t,-1)}function mm(t,e){let n=e||t.currentTarget,r=t.relatedTarget;return!r||!ot(n,r)}function pce(t){B2(t).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function xD(t){let e=[];sce(t,"[data-tabindex]",e),e.forEach(n=>{let r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function qc(t,e,n=!0){return t.filter(i=>i.parentId===e).flatMap(i=>[...!n||i.context?.open?[i]:[],...qc(t,i.id,n)])}function wD(t,e){let n=[],r=t.find(i=>i.id===e)?.parentId;for(;r;){let i=t.find(o=>o.id===r);r=i?.parentId,i&&(n=n.concat(i))}return n}function fm(t){return`data-base-ui-${t}`}var rS=0;function q2(t,e={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=e;cancelAnimationFrame(rS);function o(){i&&!i()||t?.focus({preventScroll:n})}if(r)return o(),Yt;let a=requestAnimationFrame(o);return rS=a,()=>{rS===a&&(cancelAnimationFrame(a),rS=0)}}var vD={inert:new WeakMap,"aria-hidden":new WeakMap},mce="data-base-ui-inert",CD={inert:new WeakSet,"aria-hidden":new WeakSet},V6=new WeakMap,kD=0;function xBe(t){return CD[t]}function bce(t){return t?Cd(t)?t.host:bce(t.parentNode):null}var fce=(t,e)=>e.map(n=>{if(t.contains(n))return n;let r=bce(n);return t.contains(r)?r:null}).filter(n=>n!=null),hce=t=>{let e=new Set;return t.forEach(n=>{let r=n;for(;r&&!e.has(r);)e.add(r),r=r.parentNode}),e},gce=(t,e,n)=>{let r=[],i=o=>{!o||n.has(o)||Array.from(o.children).forEach(a=>{Di(a)!=="script"&&(e.has(a)?i(a):r.push(a))})};return i(t),r};function wBe(t,e,n,r,{mark:i=!0}){let o=null;r?o="inert":n&&(o="aria-hidden");let a=null,s=null,l=fce(e,t),c=i?gce(e,hce(l),new Set(l)):[],u=[],d=[];if(o){let p=vD[o],m=xBe(o);s=m,a=p;let f=fce(e,Array.from(e.querySelectorAll("[aria-live]"))),h=l.concat(f);gce(e,hce(h),new Set(h)).forEach(g=>{let y=g.getAttribute(o),b=y!==null&&y!=="false",w=(p.get(g)||0)+1;p.set(g,w),u.push(g),w===1&&b&&m.add(g),b||g.setAttribute(o,o==="inert"?"":"true")})}return i&&c.forEach(p=>{let m=(V6.get(p)||0)+1;V6.set(p,m),d.push(p),m===1&&p.setAttribute(mce,"")}),kD+=1,()=>{a&&u.forEach(p=>{let f=(a.get(p)||0)-1;a.set(p,f),f||(!s?.has(p)&&o&&p.removeAttribute(o),s?.delete(p))}),i&&d.forEach(p=>{let m=(V6.get(p)||0)-1;V6.set(p,m),m||p.removeAttribute(mce)}),kD-=1,kD||(vD.inert=new WeakMap,vD["aria-hidden"]=new WeakMap,CD.inert=new WeakSet,CD["aria-hidden"]=new WeakSet,V6=new WeakMap)}}function _D(t,e={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=e,o=Wt(t[0]).body;return wBe(t,o,n,r,{mark:i})}var Qr=R(Q(),1),SD=R(Ms(),1);var yce={style:{transition:"none"}},iS="data-base-ui-click-trigger",vBe="data-base-ui-swipe-ignore",kBe="data-swipe-ignore",Hxt=`[${vBe}]`,Gxt=`[${kBe}]`,oS={fallbackAxisSide:"none"},aS={fallbackAxisSide:"end"},xce={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Z0=R(ee(),1),wce=Qr.createContext(null),LD=()=>Qr.useContext(wce),CBe=fm("portal");function vce(t={}){let{ref:e,container:n,componentProps:r=xn,elementProps:i}=t,o=jl(),s=LD()?.portalNode,[l,c]=Qr.useState(null),[u,d]=Qr.useState(null),p=Pe(x=>{x!==null&&d(x)}),m=Qr.useRef(null);Ee(()=>{if(n===null){m.current&&(m.current=null,d(null),c(null));return}let x=(n&&(FC(n)?n:n.current))??s??document.body;if(x==null){m.current&&(m.current=null,d(null),c(null));return}m.current!==x&&(m.current=x,d(null),c(x))},[n,s]);let f=We("div",r,{ref:[e,p],props:[{id:o,[CBe]:""},i]}),h=l&&f?SD.createPortal(f,l):null;return{node:u,nodeId:Qr.isValidElement(f)?f.props.id:void 0,subtree:h}}var W0=Qr.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,container:s,portalOwnerRole:l,...c}=e,{node:u,nodeId:d,subtree:p}=vce({container:s,ref:n,componentProps:e,elementProps:c}),m=Qr.useRef(null),f=Qr.useRef(null),h=Qr.useRef(null),x=Qr.useRef(null),[g,y]=Qr.useState(null),b=Qr.useRef(!1),w=g?.modal,v=g?.open,k=!!g&&!g.modal&&g.open&&!!u;Qr.useEffect(()=>{if(!u||w)return;function L(S){u&&S.relatedTarget&&mm(S)&&(S.type==="focusin"?b.current&&(xD(u),b.current=!1):(pce(u),b.current=!0))}return _a(hn(u,"focusin",L,!0),hn(u,"focusout",L,!0))},[u,w]),Ee(()=>{!u||v!==!0||!b.current||(xD(u),b.current=!1)},[v,u]);let _=Qr.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:f,beforeInsideRef:h,afterInsideRef:x,portalNode:u,setFocusManagerState:y}),[u]);return(0,Z0.jsxs)(Qr.Fragment,{children:[p,(0,Z0.jsxs)(wce.Provider,{value:_,children:[k&&u&&(0,Z0.jsx)(Bc,{"data-type":"outside",ref:m,onFocus:L=>{if(mm(L,u))h.current?.focus();else{let S=g?g.domReference:null;nS(S)?.focus()}}}),k&&u&&(0,Z0.jsx)("span",{role:l,"aria-owns":d,style:xce}),u&&SD.createPortal(a,u),k&&u&&(0,Z0.jsx)(Bc,{"data-type":"outside",ref:f,onFocus:L=>{if(mm(L,u))x.current?.focus();else{let S=g?g.domReference:null;z2(S)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Xe(he.focusOut,L.nativeEvent))}}})]})]})});var S1=R(Q(),1);function sS(){let t=new Map;return{emit(e,n){t.get(e)?.forEach(r=>r(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){t.get(e)?.delete(n)}}}var _1=class{nodesRef={current:[]};events=sS();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let n=this.nodesRef.current.findIndex(r=>r===e);n!==-1&&this.nodesRef.current.splice(n,1)}};var MD=R(ee(),1),kce=S1.createContext(null),Cce=S1.createContext(null),as=()=>S1.useContext(kce)?.id||null,Ma=t=>{let e=S1.useContext(Cce);return t??e};function K0(t){let e=jl(),n=Ma(t),r=as();return Ee(()=>{if(!e)return;let i={id:e,parentId:r};return n?.addNode(i),()=>{n?.removeNode(i)}},[n,e,r]),e}function Z6(t){let{children:e,id:n}=t,r=as();return(0,MD.jsx)(kce.Provider,{value:S1.useMemo(()=>({id:n,parentId:r}),[n,r]),children:e})}function W6(t){let{children:e,externalTree:n}=t,r=Vn(()=>n??new _1).current;return(0,MD.jsx)(Cce.Provider,{value:r,children:e})}var K6=R(ee(),1);function _Be(t,e){let n=Qn(lr(t));return t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?e||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof n.MouseEvent?e||(t.detail===0?"keyboard":"mouse"):""}var _ce=20,L1=[];function ED(){L1=L1.filter(t=>t.deref()?.isConnected)}function Sce(t){ED(),t&&Di(t)!=="body"&&(L1.push(new WeakRef(t)),L1.length>_ce&&(L1=L1.slice(-_ce)))}function Lce(){return ED(),L1[L1.length-1]?.deref()}function SBe(t){return t?tS(t)?t:B2(t)[0]||t:null}function Mce(t){if(t.hasAttribute("tabindex")&&!t.hasAttribute("data-tabindex")||!t.getAttribute("role")?.includes("dialog"))return;let n=yD(t).filter(i=>{let o=i.getAttribute("data-tabindex")||"";return tS(i)||i.hasAttribute("data-tabindex")&&!o.startsWith("-")}),r=t.getAttribute("tabindex");n.length===0?r!=="0"&&(t.setAttribute("tabindex","0"),t.setAttribute("data-tabindex","0")):(r!=="-1"||t.hasAttribute("data-tabindex")&&t.getAttribute("data-tabindex")!=="-1")&&(t.setAttribute("tabindex","-1"),t.setAttribute("data-tabindex","-1"))}function X0(t){let{context:e,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:o=!0,restoreFocus:a=!1,modal:s=!0,closeOnFocusOut:l=!0,openInteractionType:c="",nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:f}=t,h="rootStore"in e?e.rootStore:e,x=h.useState("open"),g=h.useState("domReferenceElement"),y=h.useState("floatingElement"),{events:b,dataRef:w}=h.context,v=Pe(()=>w.current.floatingContext?.nodeId),k=i===!1,_=F6(g)&&k,L=Yr(i),S=Yr(o),C=Yr(c),T=Yr(x),M=Ma(m),A=LD(),$=Ea.useRef(!1),N=Ea.useRef(!1),F=Ea.useRef(!1),D=Ea.useRef(null),O=Ea.useRef(""),B=Ea.useRef(""),P=Ea.useRef(null),U=Ea.useRef(null),G=wa(P,p,A?.beforeInsideRef),j=wa(U,A?.afterInsideRef),V=Br(),H=Br(),ne=Ol(),J=A!=null,W=B6(y),ie=Pe((se=W)=>se?B2(se):[]),Z=Pe(()=>f?.().filter(se=>se!=null)??[]);Ea.useEffect(()=>{if(r||!s)return;function se(le){le.key==="Tab"&&ot(W,yo(Wt(W)))&&ie().length===0&&!_&&zr(le)}let be=Wt(W);return hn(be,"keydown",se)},[r,W,s,_,ie]),Ea.useEffect(()=>{if(r||!x)return;let se=Wt(W);function be(){F.current=!1}function le(ke){let me=lr(ke),Se=Z(),de=ot(y,me)||ot(g,me)||ot(A?.portalNode,me)||Se.some(Le=>Le===me||ot(Le,me));F.current=!de,B.current=ke.pointerType||"keyboard",me?.closest(`[${iS}]`)&&(N.current=!0,H.start(0,()=>{N.current=!1}))}function ge(){B.current="keyboard"}return _a(hn(se,"pointerdown",le,!0),hn(se,"pointerup",be,!0),hn(se,"pointercancel",be,!0),hn(se,"keydown",ge,!0),be)},[r,y,g,W,x,A,H,Z]),Ea.useEffect(()=>{if(r||!l)return;let se=Wt(W);function be(){N.current=!0,H.start(0,()=>{N.current=!1})}function le(Se){let de=lr(Se);tS(de)&&(D.current=de)}function ge(Se){let de=Se.relatedTarget,Le=Se.currentTarget,Ne=lr(Se);s&&de==null&&Ne!=null&&ot(y,Ne)&&Sce(Ne),queueMicrotask(()=>{let Be=v(),_e=h.context.triggerElements,xe=Z(),Ce=de?.hasAttribute(fm("focus-guard"))&&[P.current,U.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,_u(d),_u(u)].includes(de),K=!(ot(g,de)||ot(y,de)||ot(de,y)||ot(A?.portalNode,de)||xe.some(Y=>Y===de||ot(Y,de))||_e.hasMatchingElement(Y=>ot(Y,de))||Ce||M&&(qc(M.nodesRef.current,Be).find(Y=>ot(Y.context?.elements.floating,de)||ot(Y.context?.elements.domReference,de))||wD(M.nodesRef.current,Be).find(Y=>[Y.context?.elements.floating,B6(Y.context?.elements.floating)].includes(de)||Y.context?.elements.domReference===de)));if(Le===g&&W&&Mce(W),a&&Le!==g&&!V0(Ne)&&yo(se)===se.body){if(Ln(W)&&(W.focus(),a==="popup")){ne.request(()=>{W.focus()});return}let Y=ie(),ye=D.current,Re=(ye&&Y.includes(ye)?ye:null)||Y[Y.length-1]||W;Ln(Re)&&Re.focus()}if(w.current.insideReactTree){w.current.insideReactTree=!1;return}(_||!s)&&de&&K&&!N.current&&(_||de!==Lce())&&($.current=!0,h.setOpen(!1,Xe(he.focusOut,Se)))})}function ke(){F.current||(w.current.insideReactTree=!0,V.start(0,()=>{w.current.insideReactTree=!1}))}let me=Ln(g)?g:null;if(!(!y&&!me))return _a(me&&hn(me,"focusout",ge),me&&hn(me,"pointerdown",be),y&&hn(y,"focusin",le),y&&hn(y,"focusout",ge),y&&A&&hn(y,"focusout",ke,!0))},[r,g,y,W,s,M,A,h,l,a,ie,_,v,w,V,H,ne,u,d,Z]),Ea.useEffect(()=>{if(r||!y||!x)return;let se=Array.from(A?.portalNode?.querySelectorAll(`[${fm("portal")}]`)||[]),le=(M?wD(M.nodesRef.current,v()):[]).find(Le=>F6(Le.context?.elements.domReference||null))?.context?.elements.domReference,ke=[...[y,...se,P.current,U.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...Z()],le,_u(d),_u(u),_?g:null].filter(Le=>Le!=null),me=_D(ke,{ariaHidden:s||_,mark:!1}),Se=[y,...se].filter(Le=>Le!=null),de=_D(Se);return()=>{de(),me()}},[x,r,g,y,s,A,_,M,v,u,d,Z]),Ee(()=>{if(!x||r||!Ln(W))return;O.current="",B.current="";let se=Wt(W),be=yo(se);queueMicrotask(()=>{let le=L.current,ge=typeof le=="function"?le(C.current||""):le;if(ge===void 0||ge===!1||ot(W,be))return;let me=null,Se=()=>(me==null&&(me=ie(W)),me[0]||W),de;ge===!0||ge===null?de=Se():de=_u(ge),de=de||Se();let Le=ot(W,yo(se));q2(de,{preventScroll:de===W,shouldFocus(){if(!T.current)return!1;if(Le)return!0;let Ne=yo(se);return!(Ne!==de&&ot(W,Ne))}})})},[r,x,W,ie,L,C,T]),Ee(()=>{if(r||!W)return;let se=Wt(W),be=yo(se),le=C.current==null;Sce(be);function ge(me){if(me.open||(O.current=_Be(me.nativeEvent,B.current)),me.reason===he.triggerHover&&me.nativeEvent.type==="mouseleave"&&($.current=!0),me.reason===he.outsidePress)if(me.nested)$.current=!1;else if(j2(me.nativeEvent)||O2(me.nativeEvent))$.current=!1;else{let Se=!1;Wt(W).createElement("div").focus({get preventScroll(){return Se=!0,!1}}),Se?$.current=!1:$.current=!0}}b.on("openchange",ge);function ke(me){let Se=S.current,de=typeof Se=="function"?Se(me):Se;if(de===void 0||de===!1)return null;de===null&&(de=!0);let Le=g?.isConnected?g:null,Ne=be?.isConnected&&Di(be)!=="body"?be:null,Be=le?Ne||Le:Le||Ne;return Be||(Be=Lce()||null),typeof de=="boolean"?Be:_u(de)||Be||null}return()=>{b.off("openchange",ge);let me=yo(se),Se=Z(),de=ot(y,me)||Se.some(_e=>_e===me||ot(_e,me))||M&&qc(M.nodesRef.current,v(),!1).some(_e=>ot(_e.context?.elements.floating,me)),Le=S.current,Ne=O.current,Be=ke(Ne);queueMicrotask(()=>{let _e=SBe(Be),xe=typeof Le!="boolean";if(Le&&!$.current&&Ln(_e)&&(!(!xe&&_e!==me&&me!==se.body)||de)){let Ce={preventScroll:!0};Ne==="keyboard"&&(Ce.focusVisible=!0),_e.focus(Ce)}$.current=!1})}},[r,y,W,S,C,b,M,g,v,Z]),Ee(()=>{if(!Nn.engine.webkit||x||!y)return;let se=yo(Wt(y));!Ln(se)||!H0(se)||ot(y,se)&&se.blur()},[x,y]),Ee(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:l,open:x,onOpenChange:h.setOpen,domReference:g}),()=>{A.setFocusManagerState(null)}},[r,A,s,x,h,l,g]),Ee(()=>{if(!(r||!W))return Mce(W),()=>{queueMicrotask(ED)}},[r,W]);let ce=!r&&(s?!_:!0)&&(J||s);return(0,K6.jsxs)(Ea.Fragment,{children:[ce&&(0,K6.jsx)(Bc,{"data-type":"inside",ref:G,onFocus:se=>{if(s){let be=ie();q2(be[be.length-1])}else A?.portalNode&&($.current=!1,mm(se,A.portalNode)?z2(g)?.focus():_u(d??A.beforeOutsideRef)?.focus())}}),n,ce&&(0,K6.jsx)(Bc,{"data-type":"inside",ref:j,onFocus:se=>{s?q2(ie()[0]):A?.portalNode&&(l&&($.current=!0),mm(se,A.portalNode)?nS(g)?.focus():_u(u??A.afterOutsideRef)?.focus())}})]})}var X6=R(Q(),1);function $u(t,e={}){let{enabled:n=!0,event:r="click",toggle:i=!0,ignoreMouse:o=!1,stickIfOpen:a=!0,touchOpenDelay:s=0,reason:l=he.triggerPress}=e,c="rootStore"in t?t.rootStore:t,u=c.context.dataRef,d=X6.useRef(void 0),p=Ol(),m=Br(),f=X6.useMemo(()=>{function h(g,y,b,w){let v=Xe(l,y,b);g&&w==="touch"&&s>0?m.start(s,()=>{c.setOpen(!0,v)}):c.setOpen(g,v)}function x(g,y,b){let w=u.current.openEvent,v=c.select("domReferenceElement")!==y;return g&&v||!g||!i?!0:w&&a?!b(w.type):!1}return{onPointerDown(g){d.current=cm(g.pointerType,!0)&&O2(g.nativeEvent)?"virtual":g.pointerType},onMouseDown(g){let y=d.current,b=g.nativeEvent,w=c.select("open");if(g.button!==0||r==="click"||cm(y,!0)&&o)return;let v=x(w,g.currentTarget,L=>L==="click"||L==="mousedown"),k=lr(b);if(H0(k)){h(v,b,k,y);return}let _=g.currentTarget;p.request(()=>{h(v,b,_,y)})},onClick(g){if(r==="mousedown-only")return;let y=d.current;if(r==="mousedown"&&y){d.current=void 0;return}if(cm(y,!0)&&o)return;let b=c.select("open"),w=x(b,g.currentTarget,v=>v==="click"||v==="mousedown"||v==="keydown"||v==="keyup");h(w,g.nativeEvent,g.currentTarget,y)},onKeyDown(){d.current=void 0}}},[u,r,o,l,c,a,i,p,m,s]);return X6.useMemo(()=>n?{reference:f}:xn,[n,f])}var ss=R(Q(),1);function LBe(){return!1}function MBe(t){return{escapeKey:typeof t=="boolean"?t:t?.escapeKey??!1,outsidePress:typeof t=="boolean"?t:t?.outsidePress??!0}}function Y0(t,e={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:o="sloppy",referencePress:a=LBe,bubbles:s,externalTree:l}=e,c="rootStore"in t?t.rootStore:t,u=c.useState("open"),d=c.useState("floatingElement"),{dataRef:p,events:m}=c.context,f=Ma(l),h=Pe(typeof i=="function"?i:()=>!1),x=typeof i=="function"?h:i,g=x!==!1,y=Pe(()=>o),{escapeKey:b,outsidePress:w}=MBe(s),v=ss.useRef(!1),k=ss.useRef(!1),_=ss.useRef(!1),L=ss.useRef(!1),S=ss.useRef(!1),C=ss.useRef(""),T=ss.useRef(null),M=Br(),A=Br(),$=Pe(()=>{A.clear(),p.current.insideReactTree=!1}),N=Pe(V=>{let H=p.current.floatingContext?.nodeId;return(f?qc(f.nodesRef.current,H):[]).some(J=>J.context?.open&&!J.context.dataRef.current[V])}),F=Pe(V=>V_(V,c.select("floatingElement"))||V_(V,c.select("domReferenceElement"))),D=Pe(V=>{a()&&c.setOpen(!1,Xe(he.triggerPress,V.nativeEvent))}),O=Pe(V=>{if(!u||!n||!r||V.key!=="Escape"||S.current||!b&&N("__escapeKeyBubbles"))return;let H=zle(V)?V.nativeEvent:V,ne=Xe(he.escapeKey,H);c.setOpen(!1,ne),ne.isCanceled||V.preventDefault(),!b&&!ne.isPropagationAllowed&&V.stopPropagation()}),B=Pe(()=>{p.current.insideReactTree=!0,A.start(0,$)}),P=Pe(V=>{if(!u||!n||V.button!==0)return;let H=lr(V.nativeEvent);ot(c.select("floatingElement"),H)&&(v.current||(v.current=!0,k.current=!1))}),U=Pe(V=>{!u||!n||(V.defaultPrevented||V.nativeEvent.defaultPrevented)&&v.current&&(k.current=!0)});ss.useEffect(()=>{function V(H){H.open||(L.current=!1)}return m.on("openchange",V),()=>{m.off("openchange",V)}},[m]),ss.useEffect(()=>{if(!u||!n)return u||(L.current=!1),$;p.current.__escapeKeyBubbles=b,p.current.__outsidePressBubbles=w;let V=new Ca,H=new Ca,ne=Wt(d);function J(){V.clear(),S.current=!0}function W(){V.start(Nn.engine.webkit?5:0,()=>{S.current=!1})}function ie(){_.current=!0,H.start(0,()=>{_.current=!1})}function Z(){v.current=!1,k.current=!1}function ce(){let K=C.current,Y=K==="pen"||!K?"mouse":K,ye=y(),Re=typeof ye=="function"?ye():ye;return typeof Re=="string"?Re:Re[Y]}function se(K){let Y=ce();return Y==="intentional"&&K.type!=="click"||Y==="sloppy"&&K.type==="click"}function be(K){let Y=p.current.floatingContext?.nodeId,ye=f&&qc(f.nodesRef.current,Y).some(Re=>V_(K,Re.context?.elements.floating));return F(K)||ye}function le(K){if(se(K)){K.type!=="click"&&!F(K)&&(H.clear(),_.current=!1),$();return}if(p.current.insideReactTree){$();return}let Y=lr(K),ye=`[${fm("inert")}]`,Re=ln(Y)?Y.getRootNode():null,Ke=Array.from((Cd(Re)?Re:Wt(c.select("floatingElement"))).querySelectorAll(ye)),mt=c.context.triggerElements;if(Y&&(mt.hasElement(Y)||mt.hasMatchingElement(Ae=>ot(Ae,Y))))return;let dt=ln(Y)?Y:null;for(;dt&&!Pl(dt);){let Ae=Nl(dt);if(Pl(Ae)||!ln(Ae))break;dt=Ae}if(!(Ke.length&&ln(Y)&&!Vle(Y)&&!ot(Y,c.select("floatingElement"))&&Ke.every(Ae=>!ot(dt,Ae)))){if(Ln(Y)&&!("touches"in K)){let Ae=Pl(Y),xt=Fi(Y),Et=/auto|scroll/,jt=Ae||Et.test(xt.overflowX),Bt=Ae||Et.test(xt.overflowY),Ve=jt&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,Jt=Bt&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,rn=xt.direction==="rtl",Rn=Jt&&(rn?K.offsetX<=Y.offsetWidth-Y.clientWidth:K.offsetX>Y.clientWidth),_t=Ve&&K.offsetY>Y.clientHeight;if(Rn||_t)return}if(!be(K)){if(ce()==="intentional"){if(K.detail!==0&&!j2(K)&&!L.current)return;if(_.current){H.clear(),_.current=!1;return}}typeof x=="function"&&!x(K)||N("__outsidePressBubbles")||(c.setOpen(!1,Xe(he.outsidePress,K)),$())}}}function ge(K){ce()!=="sloppy"||K.pointerType==="touch"||!c.select("open")||!n||F(K)||le(K)}function ke(K){if(ce()!=="sloppy"||!c.select("open")||!n||F(K))return;let Y=K.touches[0];Y&&(T.current={startTime:Date.now(),startX:Y.clientX,startY:Y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function me(K,Y){let ye=lr(K);if(!ye)return;let Re=hn(ye,K.type,()=>{Y(K),Re()})}function Se(K){C.current="touch",me(K,ke)}function de(K){M.clear(),K.type==="pointerdown"&&(K.button===0&&(L.current=!0),C.current=K.pointerType),!(K.type==="mousedown"&&T.current&&!T.current.dismissOnMouseDown)&&me(K,Y=>{Y.type==="pointerdown"?ge(Y):le(Y)})}function Le(K){if(K.type==="pointercancel"&&(L.current=!1),!v.current)return;let Y=k.current;if(Z(),ce()==="intentional"){if(K.type==="pointercancel"){Y&&ie();return}if(!be(K)){if(Y){ie();return}typeof x=="function"&&!x(K)||(H.clear(),_.current=!0,$())}}}function Ne(K){if(ce()!=="sloppy"||!T.current||F(K))return;let Y=K.touches[0];if(!Y)return;let ye=Math.abs(Y.clientX-T.current.startX),Re=Math.abs(Y.clientY-T.current.startY),Ke=Math.sqrt(ye*ye+Re*Re);Ke>5&&(T.current.dismissOnTouchEnd=!0),Ke>10&&(le(K),M.clear(),T.current=null)}function Be(K){me(K,Ne)}function _e(K){ce()!=="sloppy"||!T.current||F(K)||(T.current.dismissOnTouchEnd&&le(K),M.clear(),T.current=null)}function xe(K){me(K,_e)}let Ce=_a(r&&_a(hn(ne,"keydown",O),hn(ne,"compositionstart",J),hn(ne,"compositionend",W)),g&&_a(hn(ne,"click",de,!0),hn(ne,"pointerdown",de,!0),hn(ne,"pointerup",Le,!0),hn(ne,"pointercancel",Le,!0),hn(ne,"mousedown",de,!0),hn(ne,"mouseup",Le,!0),hn(ne,"touchstart",Se,{capture:!0,passive:!0}),hn(ne,"touchmove",Be,{capture:!0,passive:!0}),hn(ne,"touchend",xe,{capture:!0,passive:!0})));return()=>{Ce(),V.clear(),H.clear(),Z(),_.current=!1,$()}},[p,d,r,g,x,u,n,b,w,O,$,y,N,F,f,c,M]);let G=ss.useMemo(()=>({onKeyDown:O,onPointerDown:D,onClick:D}),[O,D]),j=ss.useMemo(()=>({onKeyDown:O,onPointerDown:U,onMouseDown:U,onClickCapture:B,onMouseDownCapture(V){B(),P(V)},onPointerDownCapture(V){B(),P(V)},onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[O,B,P,U]);return ss.useMemo(()=>n?{reference:G,floating:j,trigger:G}:{},[n,G,j])}var Ta=R(Q(),1);function Ece(t,e,n){let{reference:r,floating:i}=t,o=Qs(e),a=G6(e),s=H6(a),l=Sa(e),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2,m;switch(l){case"top":m={x:u,y:r.y-i.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}let f=zc(e);return f&&(m[a]+=p*(f==="end"?1:-1)*(n&&c?-1:1)),m}async function Tce(t,e){var n;e===void 0&&(e={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=Md(e,t),f=Q_(m),x=s[p?d==="floating"?"reference":"floating":d],g=G0(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),w=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},v=G0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-v.top+f.top)/w.y,bottom:(v.bottom-g.bottom+f.bottom)/w.y,left:(g.left-v.left+f.left)/w.x,right:(v.right-g.right+f.right)/w.x}}var EBe=50,Rce=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Tce},l=await(a.isRTL==null?void 0:a.isRTL(e)),c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=Ece(c,r,l),p=r,m=0,f={};for(let h=0;h<o.length;h++){let x=o[h];if(!x)continue;let{name:g,fn:y}=x,{x:b,y:w,data:v,reset:k}=await y({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:c,platform:s,elements:{reference:t,floating:e}});u=b??u,d=w??d,f[g]={...f[g],...v},k&&m<EBe&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:d}=Ece(c,p,l)),h=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:f}};var Ace=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;let{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...x}=Md(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};let g=Sa(i),y=Qs(s),b=Sa(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=p||(b||!h?[q6(s)]:Jle(s)),k=f!=="none";!p&&k&&v.push(...ece(s,h,f,w));let _=[s,...v],L=await l.detectOverflow(e,x),S=[],C=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&S.push(L[g]),d){let $=Qle(i,a,w);S.push(L[$[0]],L[$[1]])}if(C=[...C,{placement:i,overflows:S}],!S.every($=>$<=0)){var T,M;let $=(((T=o.flip)==null?void 0:T.index)||0)+1,N=_[$];if(N&&(!(d==="alignment"?y!==Qs(N):!1)||C.every(O=>Qs(O.placement)===y?O.overflows[0]>0:!0)))return{data:{index:$,overflows:C},reset:{placement:N}};let F=(M=C.filter(D=>D.overflows[0]<=0).sort((D,O)=>D.overflows[1]-O.overflows[1])[0])==null?void 0:M.placement;if(!F)switch(m){case"bestFit":{var A;let D=(A=C.filter(O=>{if(k){let B=Qs(O.placement);return B===y||B==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(B=>B>0).reduce((B,P)=>B+P,0)]).sort((O,B)=>O[1]-B[1])[0])==null?void 0:A[0];D&&(F=D);break}case"initialPlacement":F=s;break}if(i!==F)return{reset:{placement:F}}}return{}}}};var $ce=new Set(["left","top"]);async function TBe(t,e){let{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Sa(n),s=zc(n),l=Qs(n)==="y",c=$ce.has(a)?-1:1,u=o&&l?-1:1,d=Md(e,t),{mainAxis:p,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof f=="number"&&(m=s==="end"?f*-1:f),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}var Ice=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=e,l=await TBe(e,t);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Nce=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:i,platform:o}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=Md(t,e),u={x:n,y:r},d=await o.detectOverflow(e,c),p=Qs(i),m=Y_(p),f=u[m],h=u[p],x=(y,b)=>X_(b+d[y==="y"?"top":"left"],b,b-d[y==="y"?"bottom":"right"]);a&&(f=x(m,f)),s&&(h=x(p,h));let g=l.fn({...e,[m]:f,[p]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[p]:s}}}}}},Pce=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,r;let{x:i,y:o,placement:a,rects:s,middlewareData:l}=e,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=Md(t,e),p={x:i,y:o},m=Qs(a),f=Y_(m),h=p[f],x=p[m],g=Md(c,e),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(n=g.mainAxis)!=null?n:0,crossAxis:(r=g.crossAxis)!=null?r:0};if(u){let v=f==="y"?"height":"width",k=s.reference[f]-s.floating[v]+y.mainAxis,_=s.reference[f]+s.reference[v]-y.mainAxis;h<k?h=k:h>_&&(h=_)}if(d){var b,w;let v=f==="y"?"width":"height",k=$ce.has(Sa(a)),_=s.reference[m]-s.floating[v]+(k&&((b=l.offset)==null?void 0:b[m])||0)+(k?0:y.crossAxis),L=s.reference[m]+s.reference[v]+(k?0:((w=l.offset)==null?void 0:w[m])||0)-(k?y.crossAxis:0);x<_?x=_:x>L&&(x=L)}return{[f]:h,[m]:x}}}},jce=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:r,platform:i,elements:o}=e,{apply:a=()=>{},...s}=Md(t,e),l=await i.detectOverflow(e,s),c=Sa(n),u=zc(n),d=Qs(n)==="y",{width:p,height:m}=r.floating,f,h;c==="top"||c==="bottom"?(f=c,h=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(h=c,f=u==="end"?"top":"bottom");let x=m-l.top-l.bottom,g=p-l.left-l.right,y=k1(m-l[f],x),b=k1(p-l[h],g),w=e.middlewareData.shift,v=!w,k=y,_=b;w!=null&&w.enabled.x&&(_=g),w!=null&&w.enabled.y&&(k=x),v&&!u&&(d?_=p-2*Au(l.left,l.right):k=m-2*Au(l.top,l.bottom)),await a({...e,availableWidth:_,availableHeight:k});let L=await i.getDimensions(o.floating);return p!==L.width||m!==L.height?{reset:{rects:!0}}:{}}}};function Fce(t){let e=Fi(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=Ln(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r,s=C1(n)!==o||C1(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function RD(t){return ln(t)?t:t.contextElement}function H2(t){let e=RD(t);if(!Ln(e))return Ld(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Fce(e),a=(o?C1(n.width):n.width)/r,s=(o?C1(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}var RBe=Ld(0);function Bce(t){let e=Qn(t);return!zC()||!e.visualViewport?RBe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ABe(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===Qn(t)}function Q0(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=RD(t),a=Ld(1);e&&(r?ln(r)&&(a=H2(r)):a=H2(t));let s=ABe(o,n,r)?Bce(o):Ld(0),l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o&&r){let p=Qn(o),m=ln(r)?Qn(r):r,f=p,h=qC(f);for(;h&&m!==f;){let x=H2(h),g=h.getBoundingClientRect(),y=Fi(h),b=g.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,w=g.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=w,f=Qn(h),h=qC(f)}}return G0({width:u,height:d,x:l,y:c})}function lS(t,e){let n=u6(t).scrollLeft;return e?e.left+n:Q0(_d(t)).left+n}function zce(t,e){let n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-lS(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function $Be(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t,o=i==="fixed",a=_d(r),s=e?c6(e.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Ld(1),u=Ld(0),d=Ln(r);if((d||!o)&&((Di(r)!=="body"||I0(a))&&(l=u6(r)),d)){let m=Q0(r);c=H2(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}let p=a&&!d&&!o?zce(a,l):Ld(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function IBe(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function NBe(t){let e=u6(t),n=t.ownerDocument.body,r=Au(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Au(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-e.scrollLeft+lS(t),a=-e.scrollTop;return Fi(n).direction==="rtl"&&(o+=Au(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:o,y:a}}var PBe=25;function jBe(t,e,n){n===void 0&&(n="viewport");let r=n==="layoutViewport",i=Qn(t),o=_d(t),a=i.visualViewport,s=o.clientWidth,l=o.clientHeight,c=0,u=0;if(a){let p=!zC()||e==="fixed";r?p||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,p&&(c=a.offsetLeft,u=a.offsetTop))}if(lS(o)<=0){let p=o.ownerDocument,m=p.body,f=getComputedStyle(m),h=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,x=Math.abs(o.clientWidth-m.clientWidth-h),g=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;g<=PBe&&(s-=g)}return{width:s,height:l,x:c,y:u}}function OBe(t,e){let n=Q0(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=H2(t),a=t.clientWidth*o.x,s=t.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function Oce(t,e,n){let r;if(e==="viewport"||e==="layoutViewport")r=jBe(t,n,e);else if(e==="document")r=NBe(_d(t));else if(ln(e))r=OBe(e,n);else{let i=Bce(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return G0(r)}function DBe(t,e){let n=e.get(t);if(n)return n;let r=vu(t,[],!1).filter(s=>ln(s)&&Di(s)!=="body"),i=null,o=Fi(t).position==="fixed",a=o?Nl(t):t;for(;ln(a)&&!Pl(a);){let s=Fi(a),l=BC(a),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&s.position==="static")?r=r.filter(d=>d!==a):i=s,a=Nl(a)}return e.set(t,r),r}function FBe(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,a=[...n==="clippingAncestors"?c6(e)?[]:DBe(e,this._c):[].concat(n),r],s=Oce(e,a[0],i),l=s.top,c=s.right,u=s.bottom,d=s.left;for(let p=1;p<a.length;p++){let m=Oce(e,a[p],i);l=Au(m.top,l),c=k1(m.right,c),u=k1(m.bottom,u),d=Au(m.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function BBe(t){let{width:e,height:n}=Fce(t);return{width:e,height:n}}function zBe(t,e,n){let r=Ln(e),i=_d(e),o=n==="fixed",a=Q0(t,!0,o,e),s={scrollLeft:0,scrollTop:0},l=Ld(0);if((r||!o)&&((Di(e)!=="body"||I0(i))&&(s=u6(e)),r)){let p=Q0(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&i&&(l.x=lS(i));let c=i&&!r&&!o?zce(i,s):Ld(0),u=a.left+s.scrollLeft-l.x-c.x,d=a.top+s.scrollTop-l.y-c.y;return{x:u,y:d,width:a.width,height:a.height}}function TD(t){return Fi(t).position==="static"}function Dce(t,e){if(!Ln(t)||Fi(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return _d(t)===n&&(n=n.ownerDocument.body),n}function qce(t,e){let n=Qn(t);if(c6(t))return n;if(!Ln(t)){let i=Nl(t);for(;i&&!Pl(i);){if(ln(i)&&!TD(i))return i;i=Nl(i)}return n}let r=Dce(t,e);for(;r&&nae(r)&&TD(r);)r=Dce(r,e);return r&&Pl(r)&&TD(r)&&!BC(r)?n:r||rae(t)||n}var qBe=async function(t){let e=this.getOffsetParent||qce,n=this.getDimensions,r=await n(t.floating);return{reference:zBe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HBe(t){return Fi(t).direction==="rtl"}var AD={convertOffsetParentRelativeRectToViewportRelativeRect:$Be,getDocumentElement:_d,getClippingRect:FBe,getOffsetParent:qce,getElementRects:qBe,getClientRects:IBe,getDimensions:BBe,getScale:H2,isElement:ln,isRTL:HBe};function Hce(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function GBe(t,e,n){let r=null,i,o=_d(t);function a(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function s(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),a();let p=t.getBoundingClientRect(),{left:m,top:f,width:h,height:x}=p;if(u||e(),!h||!x)return;let g=pm(f),y=pm(o.clientWidth-(m+h)),b=pm(o.clientHeight-(f+x)),w=pm(m),k={rootMargin:-g+"px "+-y+"px "+-b+"px "+-w+"px",threshold:Au(0,k1(1,d))||1},_=!0;function L(S){let C=S[0].intersectionRatio;if(!Hce(p,t.getBoundingClientRect()))return s();if(C!==d){if(!_)return s();C?s(!1,C):i=setTimeout(()=>{s(!1,1e-7)},1e3)}_=!1}try{r=new IntersectionObserver(L,{...k,root:o.ownerDocument})}catch{r=new IntersectionObserver(L,k)}r.observe(t)}let l=Qn(t),c=()=>s(n);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}function Y6(t,e,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=RD(t),u=i||o?[...c?vu(c):[],...e?vu(e):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",n),o&&g.addEventListener("resize",n)});let d=c&&s?GBe(c,n,o):null,p=-1,m=null;a&&(m=new ResizeObserver(g=>{let[y]=g;y&&y.target===c&&m&&e&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(e)})),n()}),c&&!l&&m.observe(c),e&&m.observe(e));let f,h=l?Q0(t):null;l&&x();function x(){let g=Q0(t);h&&!Hce(h,g)&&n(),h=g,f=requestAnimationFrame(x)}return n(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d?.(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(f)}}var Gce=Ice;var Uce=Nce,Vce=Ace,Zce=jce;var Wce=Pce,cS=(t,e,n)=>{let r=new Map,i=n??{},o={...AD,...i.platform,_c:r};return Rce(t,e,{...i,platform:o})};var oo=R(Q(),1),Xce=R(Q(),1),Yce=R(Ms(),1),VBe=typeof document<"u",ZBe=function(){},uS=VBe?Xce.useLayoutEffect:ZBe;function dS(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!dS(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){let o=i[r];if(!(o==="_owner"&&t.$$typeof)&&!dS(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function Qce(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Kce(t,e){let n=Qce(t);return Math.round(e*n)/n}function $D(t){let e=oo.useRef(t);return uS(()=>{e.current=t}),e}function Jce(t){t===void 0&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=t,[u,d]=oo.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,m]=oo.useState(r);dS(p,r)||m(r);let[f,h]=oo.useState(null),[x,g]=oo.useState(null),y=oo.useCallback(O=>{O!==k.current&&(k.current=O,h(O))},[]),b=oo.useCallback(O=>{O!==_.current&&(_.current=O,g(O))},[]),w=o||f,v=a||x,k=oo.useRef(null),_=oo.useRef(null),L=oo.useRef(u),S=l!=null,C=$D(l),T=$D(i),M=$D(c),A=oo.useCallback(()=>{if(!k.current||!_.current)return;let O={placement:e,strategy:n,middleware:p};T.current&&(O.platform=T.current),cS(k.current,_.current,O).then(B=>{let P={...B,isPositioned:M.current!==!1};$.current&&!dS(L.current,P)&&(L.current=P,Yce.flushSync(()=>{d(P)}))})},[p,e,n,T,M]);uS(()=>{c===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[c]);let $=oo.useRef(!1);uS(()=>($.current=!0,()=>{$.current=!1}),[]),uS(()=>{if(w&&(k.current=w),v&&(_.current=v),w&&v){if(C.current)return C.current(w,v,A);A()}},[w,v,A,C,S]);let N=oo.useMemo(()=>({reference:k,floating:_,setReference:y,setFloating:b}),[y,b]),F=oo.useMemo(()=>({reference:w,floating:v}),[w,v]),D=oo.useMemo(()=>{let O={position:n,left:0,top:0};if(!F.floating)return O;let B=Kce(F.floating,u.x),P=Kce(F.floating,u.y);return s?{...O,transform:"translate("+B+"px, "+P+"px)",...Qce(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:P}},[n,s,F.floating,u.x,u.y]);return oo.useMemo(()=>({...u,update:A,refs:N,elements:F,floatingStyles:D}),[u,A,N,F,D])}var ID=(t,e)=>{let n=Gce(t);return{name:n.name,fn:n.fn,options:[t,e]}},ND=(t,e)=>{let n=Uce(t);return{name:n.name,fn:n.fn,options:[t,e]}},PD=(t,e)=>({fn:Wce(t).fn,options:[t,e]}),jD=(t,e)=>{let n=Vce(t);return{name:n.name,fn:n.fn,options:[t,e]}},OD=(t,e)=>{let n=Zce(t);return{name:n.name,fn:n.fn,options:[t,e]}};var G2=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,n,r=!0){this.fallbackStore=e,this.componentName=n,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){return this.attachedStores.push(e),this.setActiveStore(e),()=>{let n=this.attachedStores.lastIndexOf(e);n!==-1&&this.attachedStores.splice(n,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(n=>{n()}))}openByTrigger(e){let n=this.attachedStore;if(n===null)return;let r;if(e){for(let i=this.attachedStores.length-1;i>=0&&!r;i-=1)r=this.attachedStores[i].context.triggerElements.getById(e);r??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!r&&this.throwOnMissingTrigger)throw new Error(Dt(99,this.componentName,e,this.componentName));n.setOpen(!0,Xe(he.imperativeAction,void 0,r))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,Xe(he.imperativeAction))}};var BD=R(Q(),1),bze=R(Ms(),1);var cue=R(Q(),1);var sue=R(Q(),1),FD=R(pS(),1),lue=R(aue(),1);var dze=b2(19),pze=dze?fze:hze;function fS(t,e,n,r,i){return pze(t,e,n,r,i)}function mze(t,e,n,r,i){let o=sue.useCallback(()=>e(t.getSnapshot(),n,r,i),[t,e,n,r,i]);return(0,FD.useSyncExternalStore)(t.subscribe,o,o)}jle({before(t){t.syncIndex=0,t.didInitialize||(t.syncTick=1,t.syncHooks=[],t.didChangeStore=!0,t.getSnapshot=()=>{let e=!1;for(let n=0;n<t.syncHooks.length;n+=1){let r=t.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(e=!0,r.value=i)}return e&&(t.syncTick+=1),t.syncTick})},after(t){t.syncHooks.length>0&&(t.didChangeStore&&(t.didChangeStore=!1,t.subscribe=e=>{let n=new Set;for(let i of t.syncHooks)n.add(i.store);let r=[];for(let i of n)r.push(i.subscribe(e));return()=>{for(let i of r)i()}}),(0,FD.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getSnapshot))}});function fze(t,e,n,r,i){let o=Ple();if(!o)return mze(t,e,n,r,i);let a=o.syncIndex;o.syncIndex+=1;let s;return o.didInitialize?(s=o.syncHooks[a],(s.store!==t||s.selector!==e||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==t&&(o.didChangeStore=!0),s.store=t,s.selector=e,s.a1=n,s.a2=r,s.a3=i,s.value=e(t.getSnapshot(),n,r,i))):(s={store:t,selector:e,a1:n,a2:r,a3:i,value:e(t.getSnapshot(),n,r,i)},o.syncHooks.push(s)),s.value}function hze(t,e,n,r,i){return(0,lue.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getSnapshot,o=>e(o,n,r,i))}var hS=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let n=this.updateTick;for(let r of this.listeners){if(n!==this.updateTick)return;r(e)}}update(e){for(let n in e)if(!Object.is(this.state[n],e[n])){this.setState({...this.state,...e});return}}set(e,n){Object.is(this.state[e],n)||this.setState({...this.state,[e]:n})}notifyAll(){let e={...this.state};this.setState(e)}use(e,n,r,i){return fS(this,e,n,r,i)}};var J0=R(Q(),1);var Hc=class extends hS{constructor(e,n={},r){super(e),this.context=n,this.selectors=r}useSyncedValue(e,n){J0.useDebugValue(e);let r=this;Ee(()=>{r.state[e]!==n&&r.set(e,n)},[r,e,n])}useSyncedValueWithCleanup(e,n){let r=this;Ee(()=>(r.state[e]!==n&&r.set(e,n),()=>{r.set(e,void 0)}),[r,e,n])}useSyncedValues(e){let n=this,r=Object.values(e);Ee(()=>{n.update(e)},[n,...r])}useControlledProp(e,n){J0.useDebugValue(e);let r=this,i=n!==void 0;Ee(()=>{i&&!Object.is(r.state[e],n)&&r.setState({...r.state,[e]:n})},[r,e,n,i])}select(e,n,r,i){let o=this.selectors[e];return o(this.state,n,r,i)}useState(e,n,r,i){return J0.useDebugValue(e),fS(this,this.selectors[e],n,r,i)}useContextCallback(e,n){J0.useDebugValue(e);let r=Pe(n??Yt);this.context[e]=r}useStateSetter(e){let n=J0.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(e,r)}),n.current}observe(e,n){let r;typeof e=="function"?r=e:r=this.selectors[e];let i=r(this.state);return n(i,i,this),this.subscribe(o=>{let a=r(o);if(!Object.is(i,a)){let s=i;i=a,n(a,s,this)}})}};var gze={open:t=>t.open,transitionStatus:t=>t.transitionStatus,domReferenceElement:t=>t.domReferenceElement,referenceElement:t=>t.positionReference??t.referenceElement,floatingElement:t=>t.floatingElement,floatingId:t=>t.floatingId},M1=class extends Hc{constructor(e){let{syncOnly:n,nested:r,onOpenChange:i,triggerElements:o,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:sS(),nested:r,triggerElements:o},gze),this.syncOnly=n}syncOpenEvent=(e,n)=>{(!e||!this.state.open||n!=null&&qle(n))&&(this.context.dataRef.current.openEvent=e?n:void 0)};dispatchOpenChange=(e,n)=>{this.syncOpenEvent(e,n.event);let r={open:e,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(e,n)=>{if(this.syncOnly){this.context.onOpenChange?.(e,n);return}this.dispatchOpenChange(e,n),this.context.onOpenChange?.(e,n)}};function Q6(t){let{popupStore:e,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:o,onOpenChange:a}=t,s=e.useState("open"),l=e.useState("activeTriggerElement"),c=e.useState(n?"popupElement":"positionerElement"),u=e.context.triggerElements,d=a,p=cue.useRef(null);r===void 0&&p.current===null&&(p.current=new M1({open:s,transitionStatus:void 0,referenceElement:l,floatingElement:c,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:o}));let m=r??p.current;return e.useSyncedValue("floatingId",i),Ee(()=>{let f={open:s,floatingId:i,referenceElement:l,floatingElement:c};ln(l)&&(f.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(f.positionReference=l),m.update(f)},[s,i,l,c,m]),m.context.onOpenChange=d,m.context.nested=o,m}var V2={tabIndex:-1,[j6]:""};function due(t){return e=>e==="touch"?t.current:!0}function pue(t,e=!1){let n=jl(),r=as()!=null,i=Vn(()=>t(n,r)).current;return Q6({popupStore:i,treatPopupAsFloatingElement:e,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function gS({handle:t,store:e}){return Ee(()=>t.attachStore(e),[t,e]),null}function uue(t){let e=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==e&&t.set("triggerCount",e)}function zD(t,e){let n=BD.useRef(null);return Pe(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===e&&i.id===t)return;n.current=null;let o=i.store;o.context.triggerElements.getById(i.id)===i.element&&(o.context.triggerElements.delete(i.id),uue(o))}r!==null&&t!==void 0&&(n.current={store:e,id:t,element:r},e.context.triggerElements.add(t,r),uue(e))})}function bS(t,e,n,r=!1){let i=t.preventUnmountingOnClose;e?i=!1:r&&(i=!0);let o=n?.id??null,a=t.activeTriggerId,s=t.activeTriggerElement;return(o||e)&&(a=o,s=n??null),{open:e,preventUnmountingOnClose:i,activeTriggerId:a,activeTriggerElement:s}}function yS(t){let e=!1;return t.preventUnmountOnClose=()=>{e=!0},()=>e}function xS(t,e,n,r){let i=n.useState("isMountedByTrigger",t),o=zD(t,n),a=Pe(l=>{let c=n.select("open"),u=n.select("activeTriggerId");if(u===t){let d={activeTriggerElement:l,...c?r:null};n.update(d);return}if(u==null&&c){let d={activeTriggerId:t??null,activeTriggerElement:l,...r};n.update(d)}}),s=Pe(l=>{o(l),l&&a(l)});return Ee(()=>(s(e.current),()=>s(null)),[s,e,n,t]),Ee(()=>{if(i){let l={activeTriggerElement:e.current,...r};n.update(l)}},[i,n,e,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function wS(t,e={}){let{closeOnActiveTriggerUnmount:n=!1}=e,r=BD.useRef(null),i=t.useState("open"),o=t.useState("triggerCount"),a=t.useState("activeTriggerId"),s=t.useState("activeTriggerElement");Ee(()=>{if(!i){r.current=null,t.state.triggerCount!==0&&t.set("triggerCount",0);return}let l=t.context.triggerElements.size,c={};t.state.triggerCount!==l&&(c.triggerCount=l);let u=t.select("activeTriggerId"),d=null;if(u){let p=t.context.triggerElements.getById(u);if(p)r.current=u,p!==t.state.activeTriggerElement&&(c.activeTriggerElement=p);else{for(let[m,f]of t.context.triggerElements.entries())if(f===t.state.activeTriggerElement){c.activeTriggerId=m,c.activeTriggerElement=f,r.current=m;break}c.activeTriggerId===void 0&&(r.current===u?d=u:r.current=null)}}else r.current=null;if(!d&&!u&&l===1){let p=t.context.triggerElements.entries().next();if(!p.done){let[m,f]=p.value;c.activeTriggerId=m,c.activeTriggerElement=f,r.current=m}}(c.triggerCount!==void 0||c.activeTriggerId!==void 0||c.activeTriggerElement!==void 0)&&t.update(c),d&&n&&queueMicrotask(()=>{if(t.select("open")&&t.select("activeTriggerId")===d&&!t.context.triggerElements.getById(d)){let p=Xe(he.none);t.setOpen(!1,p),p.isCanceled||t.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,t,o,a,s,n])}function vS(t,e,n,r){let{mounted:i,setMounted:o,transitionStatus:a}=Oc(t,!1,!1,r),s=e.useState("preventUnmountingOnClose"),l=t?!1:s;e.useSyncedValues({mounted:i,transitionStatus:a,preventUnmountingOnClose:l});let c=Pe(()=>{o(!1),e.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),e.context.onOpenChangeComplete?.(!1)});return Ro({enabled:i&&!t&&!l,open:t,ref:e.context.popupRef,onComplete(){t||c()}}),{forceUnmount:c,transitionStatus:a}}function kS(t,e){t.useSyncedValues(e),Ee(()=>()=>{t.update({activeTriggerProps:xn,inactiveTriggerProps:xn,popupProps:xn})},[t])}function mue(t,e){Ee(()=>{!e&&t.state.openMethod!==null&&t.set("openMethod",null)},[e,t]),Ee(()=>()=>{t.state.openMethod!==null&&t.set("openMethod",null)},[t])}var Ed=class{constructor(){this.idMap=new Map}add(e,n){this.idMap.set(e,n)}delete(e){this.idMap.delete(e)}hasElement(e){for(let n of this.idMap.values())if(n===e)return!0;return!1}hasMatchingElement(e){for(let n of this.idMap.values())if(e(n))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function CS(t,e,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new M1({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:t,floatingId:e,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:e,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:xn,inactiveTriggerProps:xn,popupProps:xn}}var J6=t=>t.triggerIdProp??t.activeTriggerId,qD=t=>t.openProp??t.open,fue=t=>(t.popupElement?.id??t.floatingId)||void 0;function hue(t,e){return e!==void 0&&qD(t)&&J6(t)===e}function yze(t,e){return hue(t,e)?!0:e!==void 0&&qD(t)&&J6(t)==null&&t.triggerCount===1}var _S={open:qD,mounted:t=>t.mounted,transitionStatus:t=>t.transitionStatus,floatingRootContext:t=>t.floatingRootContext,triggerCount:t=>t.triggerCount,preventUnmountingOnClose:t=>t.preventUnmountingOnClose,payload:t=>t.payload,activeTriggerId:J6,activeTriggerElement:t=>t.mounted?t.activeTriggerElement:null,popupId:fue,isTriggerActive:(t,e)=>e!==void 0&&J6(t)===e,isOpenedByTrigger:(t,e)=>hue(t,e),isMountedByTrigger:(t,e)=>e!==void 0&&J6(t)===e&&t.mounted,triggerProps:(t,e)=>e?t.activeTriggerProps:t.inactiveTriggerProps,triggerPopupId:(t,e)=>yze(t,e)?fue(t):void 0,popupProps:t=>t.popupProps,popupElement:t=>t.popupElement,positionerElement:t=>t.positionerElement};var HD=R(Q(),1),gue=R(pS(),1);function SS(t){let e=HD.useCallback(r=>t===void 0?Yt:t.subscribeStore(r),[t]),n=HD.useCallback(()=>t===void 0?void 0:t.store,[t]);return(0,gue.useSyncExternalStore)(e,n,()=>t?.serverStore)}function GD(t){let{open:e=!1,onOpenChange:n,elements:r={}}=t,i=jl(),o=as()!=null,a=Vn(()=>new M1({open:e,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ed,floatingId:i,syncOnly:!1,nested:o})).current;return Ee(()=>{let s={open:e,floatingId:i};r.reference!==void 0&&(s.referenceElement=r.reference,s.domReferenceElement=ln(r.reference)?r.reference:null),r.floating!==void 0&&(s.floatingElement=r.floating),a.update(s)},[e,i,r.reference,r.floating,a]),a.context.onOpenChange=n,a.context.nested=o,a}function bue(t){return xze(t,t.rootContext)}function xze(t,e){let{nodeId:n,externalTree:r}=t,i=e.useState("referenceElement"),o=e.useState("floatingElement"),a=e.useState("domReferenceElement"),s=e.useState("open"),l=e.useState("floatingId"),[c,u]=Ta.useState(null),[d,p]=Ta.useState(void 0),[m,f]=Ta.useState(void 0),h=Ta.useRef(null),x=Ma(r),g=Ta.useMemo(()=>({reference:i,floating:o,domReference:a}),[i,o,a]),y=Jce({...t,elements:{...g,...c&&{reference:c}}}),b=ln(d)?d:null,w=m===void 0?e.state.floatingElement:m;e.useSyncedValue("referenceElement",d??null),e.useSyncedValue("domReferenceElement",d===void 0?a:b),e.useSyncedValue("floatingElement",w);let v=Ta.useCallback(T=>{let M=ln(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;u(M),y.refs.setReference(M)},[y.refs]),k=Ta.useCallback(T=>{(ln(T)||T===null)&&(h.current=T,p(T)),(ln(y.refs.reference.current)||y.refs.reference.current===null||T!==null&&!ln(T))&&y.refs.setReference(T)},[y.refs,p]),_=Ta.useCallback(T=>{f(T),y.refs.setFloating(T)},[y.refs]),L=Ta.useMemo(()=>({...y.refs,setReference:k,setFloating:_,setPositionReference:v,domReference:h}),[y.refs,k,_,v]),S=Ta.useMemo(()=>({...y.elements,domReference:a}),[y.elements,a]),C=Ta.useMemo(()=>({...y,dataRef:e.context.dataRef,open:s,onOpenChange:e.setOpen,events:e.context.events,floatingId:l,refs:L,elements:S,nodeId:n,rootStore:e}),[y,L,S,n,e,s,l]);return Ee(()=>{a&&(h.current=a)},[a]),Ee(()=>{e.context.dataRef.current.floatingContext=C;let T=x?.nodesRef.current.find(M=>M.id===n);T&&(T.context=C)}),Ta.useMemo(()=>({...y,context:C,refs:L,elements:S,rootStore:e}),[y,L,S,C,e])}var Td=R(Q(),1);var UD=Nn.os.mac&&Nn.engine.webkit;function VD(t,e={}){let{enabled:n=!0,delay:r}=e,i="rootStore"in t?t.rootStore:t,{events:o,dataRef:a}=i.context,s=Td.useRef(!1),l=Td.useRef(null),c=Td.useRef(!0),u=Br();Td.useEffect(()=>{let p=i.select("domReferenceElement");if(!n)return;let m=Qn(p);function f(){let g=i.select("domReferenceElement");!i.select("open")&&Ln(g)&&g===yo(Wt(g))&&(s.current=!0,l.current=g)}function h(){c.current=!0}function x(){c.current=!1}return _a(hn(m,"blur",f),UD&&hn(m,"keydown",h,!0),UD&&hn(m,"pointerdown",x,!0))},[i,n]),Td.useEffect(()=>{if(!n)return;function p(m){if(m.reason===he.triggerPress||m.reason===he.escapeKey){let f=i.select("domReferenceElement");ln(f)&&(l.current=f,s.current=!0)}}return o.on("openchange",p),()=>{o.off("openchange",p)}},[o,n,i]);let d=Td.useMemo(()=>{function p(){s.current=!1,l.current=null}return{onMouseLeave(){p()},onFocus(m){let f=m.currentTarget;if(s.current){if(l.current===f)return;p()}let h=lr(m.nativeEvent);if(ln(h)){if(UD&&!m.relatedTarget){if(!c.current&&!H0(h))return}else if(!Zle(h))return}let x=v1(m.relatedTarget,i.context.triggerElements),{nativeEvent:g,currentTarget:y}=m,b=typeof r=="function"?r():r;if(i.select("open")&&x||b===0||b===void 0){i.setOpen(!0,Xe(he.triggerFocus,g,y));return}u.start(b,()=>{s.current||i.setOpen(!0,Xe(he.triggerFocus,g,y))})},onBlur(m){p();let f=m.relatedTarget,h=m.nativeEvent,x=ln(f)&&f.hasAttribute(fm("focus-guard"))&&f.getAttribute("data-type")==="outside";u.start(0,()=>{let g=i.select("domReferenceElement"),y=yo(Wt(g));!f&&y===g||ot(a.current.floatingContext?.refs.floating.current,y)||ot(g,y)||x||v1(f??y,i.context.triggerElements)||i.setOpen(!1,Xe(he.triggerFocus,h))})}}},[a,r,i,u]);return Td.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var WD=R(Q(),1);var ZD=class t{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ca,this.restTimeout=new Ca,this.handleCloseOptions=void 0}static create(){return new t}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},LS=new WeakMap;function Z2(t){if(!t.performedPointerEventsMutation)return;let e=t.pointerEventsScopeElement;e&&LS.get(e)===t&&(t.pointerEventsScopeElement?.style.removeProperty("pointer-events"),t.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),t.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),LS.delete(e)),t.performedPointerEventsMutation=!1,t.pointerEventsScopeElement=null,t.pointerEventsReferenceElement=null,t.pointerEventsFloatingElement=null}function MS(t,e){let{scopeElement:n,referenceElement:r,floatingElement:i}=e,o=LS.get(n);o&&o!==t&&Z2(o),Z2(t),t.performedPointerEventsMutation=!0,t.pointerEventsScopeElement=n,t.pointerEventsReferenceElement=r,t.pointerEventsFloatingElement=i,LS.set(n,t),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"}function ES(t){let e=t.context.dataRef.current,n=Vn(()=>e.hoverInteractionState??ZD.create()).current;return e.hoverInteractionState||(e.hoverInteractionState=n),v2(e.hoverInteractionState.disposeEffect),e.hoverInteractionState}function ex(t,e={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=e,o="rootStore"in t?t.rootStore:t,a=o.useState("open"),s=o.useState("floatingElement"),l=o.useState("domReferenceElement"),{dataRef:c}=o.context,u=Ma(),d=as(),p=ES(o),m=Br(),f=Pe(()=>Z_(c.current.openEvent?.type,p.interactedInside)),h=Pe(()=>Wle(c.current.openEvent?.type)),x=Pe(()=>{Z2(p)});Ee(()=>{a||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,x())},[a,p,x]),WD.useEffect(()=>x,[x]),Ee(()=>{if(n&&a&&p.handleCloseOptions?.blockPointerEvents&&h()&&ln(l)&&s){let g=l,y=s,b=Wt(s),w=u?.nodesRef.current.find(L=>L.id===d)?.context?.elements.floating;w&&(w.style.pointerEvents="");let v=p.pointerEventsScopeElement!==y?p.pointerEventsScopeElement:null,k=w!==y?w:null,_=p.handleCloseOptions?.getScope?.()??v??k??g.closest("[data-rootownerid]")??b.body;return MS(p,{scopeElement:_,referenceElement:g,floatingElement:y}),()=>{x()}}},[n,a,l,s,p,h,u,d,x]),WD.useEffect(()=>{if(!n)return;function g(){return!!(u&&d&&qc(u.nodesRef.current,d).length>0)}function y(L){let S=z6(r,"close",p.pointerType),C=()=>{o.setOpen(!1,Xe(he.triggerHover,L)),u?.events.emit("floating.closed",L)};S?p.openChangeTimeout.start(S,C):(p.openChangeTimeout.clear(),C())}function b(L){let S=lr(L);if(!D6(S)){p.interactedInside=!1;return}p.interactedInside=S?.closest("[aria-haspopup]")!=null}function w(){p.openChangeTimeout.clear(),m.clear(),u?.events.off("floating.closed",k),x()}function v(L){if(g()&&u){u.events.on("floating.closed",k);return}if(v1(L.relatedTarget,o.context.triggerElements))return;let S=c.current.floatingContext?.nodeId??i,C=L.relatedTarget;if(!(u&&S&&ln(C)&&qc(u.nodesRef.current,S,!1).some(M=>ot(M.context?.elements.floating,C)))){if(p.handler){p.handler(L);return}x(),h()&&!f()&&y(L)}}function k(L){!u||!d||g()||m.start(0,()=>{u.events.off("floating.closed",k),o.setOpen(!1,Xe(he.triggerHover,L)),u.events.emit("floating.closed",L)})}let _=s;return _a(_&&hn(_,"mouseenter",w),_&&hn(_,"mouseleave",v),_&&hn(_,"pointerdown",b,!0),()=>{u?.events.off("floating.closed",k)})},[n,s,o,c,r,i,h,f,x,p,u,d,m])}var E1=R(Q(),1),yue=R(Ms(),1);var wze={current:null};function eg(t,e={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:o=!1,restMs:a=0,move:s=!0,triggerElementRef:l=wze,externalTree:c,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:p,shouldOpen:m,guardStaleOpen:f=!1}=e,h="rootStore"in t?t.rootStore:t,{dataRef:x,events:g}=h.context,y=Ma(c),b=ES(h),w=E1.useRef(!1),v=Yr(i),k=Yr(r),_=Yr(a),L=Yr(n),S=Yr(m),C=Yr(p),T=Pe(()=>Z_(x.current.openEvent?.type,b.interactedInside)),M=Pe(()=>S.current?.()!==!1),A=Pe((F,D,O)=>{let B=h.context.triggerElements;if(B.hasElement(D))return!F||!ot(F,D);if(!ln(O))return!1;let P=O;return B.hasMatchingElement(U=>ot(U,P))&&(!F||!ot(F,P))}),$=Pe(()=>{if(!b.handler)return;Wt(h.select("domReferenceElement")).removeEventListener("mousemove",b.handler),b.handler=void 0}),N=Pe(()=>{Z2(b)});return u&&(b.handleCloseOptions=i?.__options),E1.useEffect(()=>$,[$]),E1.useEffect(()=>{if(!n)return;function F(D){D.open?w.current=!1:(w.current=D.reason===he.triggerHover,$(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return g.on("openchange",F),()=>{g.off("openchange",F)}},[n,g,b,$]),E1.useEffect(()=>{if(!n)return;function F(G,j=!0){let V=z6(k.current,"close",b.pointerType);V?b.openChangeTimeout.start(V,()=>{h.setOpen(!1,Xe(he.triggerHover,G)),y?.events.emit("floating.closed",G)}):j&&(b.openChangeTimeout.clear(),h.setOpen(!1,Xe(he.triggerHover,G)),y?.events.emit("floating.closed",G))}let D=l.current??(u?h.select("domReferenceElement"):null);if(!ln(D))return;function O(G){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,o&&!cm(b.pointerType))return;let j=fD(_.current),V=z6(k.current,"open",b.pointerType),H=lr(G),ne=G.currentTarget??null,J=h.select("domReferenceElement"),W=ne;if(ln(H)&&!h.context.triggerElements.hasElement(H)){for(let me of h.context.triggerElements.elements())if(ot(me,H)){W=me;break}}ln(ne)&&ln(J)&&!h.context.triggerElements.hasElement(ne)&&ot(ne,J)&&(W=J);let ie=W==null?!1:A(J,W,H),Z=h.select("open"),ce=C.current?.()??h.select("transitionStatus")==="ending",se=!Z&&ce&&w.current,be=!ie&&ln(W)&&ln(J)&&ot(J,W)&&se,le=j>0&&!V,ge=ie&&(Z||se)||be,ke=!Z||ie;if(ge){M()&&h.setOpen(!0,Xe(he.triggerHover,G,W));return}le||(V?b.openChangeTimeout.start(V,()=>{ke&&M()&&h.setOpen(!0,Xe(he.triggerHover,G,W))}):ke&&M()&&h.setOpen(!0,Xe(he.triggerHover,G,W)))}function B(G){if(T()){N();return}$();let j=h.select("domReferenceElement"),V=Wt(j);b.restTimeout.clear(),b.restTimeoutPending=!1;let H=x.current.floatingContext??d?.();if(v1(G.relatedTarget,h.context.triggerElements))return;if(v.current&&H){h.select("open")||b.openChangeTimeout.clear();let J=l.current;b.handler=v.current({...H,tree:y,x:G.clientX,y:G.clientY,onClose(){N(),$(),L.current&&!T()&&J===h.select("domReferenceElement")&&F(G,!0)}}),V.addEventListener("mousemove",b.handler),b.handler(G);return}(b.pointerType!=="touch"||!ot(h.select("floatingElement"),G.relatedTarget))&&F(G)}function P(G){ot(D,G.relatedTarget)||(b.openChangeTimeout.clear(),b.restTimeout.clear(),b.restTimeoutPending=!1)}let U=f?hn(D,"mouseout",P):void 0;return s?_a(hn(D,"mousemove",O,{once:!0}),hn(D,"mouseenter",O),hn(D,"mouseleave",B),U):_a(hn(D,"mouseenter",O),hn(D,"mouseleave",B),U)},[$,N,x,k,h,n,v,b,u,A,T,o,s,_,l,y,L,d,C,M,f]),E1.useMemo(()=>{if(!n)return;function F(D){b.pointerType=D.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(D){let{nativeEvent:O}=D,B=D.currentTarget,P=h.select("domReferenceElement"),U=h.select("open"),G=A(P,B,D.target);if(o&&!cm(b.pointerType))return;if(U&&G&&b.handleCloseOptions?.blockPointerEvents){let H=h.select("floatingElement");if(H){let ne=b.handleCloseOptions?.getScope?.()??B.ownerDocument.body;MS(b,{scopeElement:ne,referenceElement:B,floatingElement:H})}}let j=fD(_.current);if(U&&!G||j===0||!G&&b.restTimeoutPending&&D.movementX**2+D.movementY**2<2)return;b.restTimeout.clear();function V(){if(b.restTimeoutPending=!1,T())return;let H=h.select("open");!b.blockMouseMove&&(!H||G)&&M()&&h.setOpen(!0,Xe(he.triggerHover,O,B))}b.pointerType==="touch"?yue.flushSync(()=>{V()}):G&&U?V():(b.restTimeoutPending=!0,b.restTimeout.start(j,V))}}},[n,b,T,A,o,h,_,M])}var Wo=R(Q(),1);var vze="Escape";function xue(t){return Nn.engine.webkit&&t.movementX===0&&t.movementY===0}function RS(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function TS(t,e){return RS(e,t===O6||t===D2,t===um||t===dm)}function KD(t,e,n){return RS(e,t===D2,n?t===um:t===dm)||t==="Enter"||t===" "||t===""}function kze(t,e,n){return RS(e,n?t===um:t===dm,t===D2)}function Cze(t,e,n,r){let i=n?t===dm:t===um,o=t===O6;return e==="both"||e==="horizontal"&&r?t===vze:RS(e,i,o)}function tx(t,e){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:o=!0,selectedIndex:a=null,allowEscape:s=!1,loopFocus:l=!1,nested:c=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:p="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:f=!0,disabledIndices:h=void 0,orientation:x="vertical",parentOrientation:g,id:y,resetOnPointerLeave:b=!0,externalTree:w,grid:v}=e,k=v!=null,_="rootStore"in t?t.rootStore:t,L=_.useState("open"),S=_.useState("floatingElement"),C=_.useState("domReferenceElement"),T=_.context.dataRef,M=B6(S),A=F6(C),$=Yr(M),N=as(),F=Ma(w),D=Wo.useRef(p),O=Wo.useRef(a??-1),B=Wo.useRef(null),P=Wo.useRef(!0),U=Pe(xe=>{i(O.current===-1?null:O.current,xe)}),G=Wo.useRef(!!S),j=Wo.useRef(L),V=Wo.useRef(!1),H=Wo.useRef(!1),ne=Wo.useRef(null),J=Yr(h),W=Yr(L),ie=Yr(a),Z=Yr(b),ce=Ol(),se=Ol(),be=Pe(()=>{function xe(ye){d?F?.events.emit("virtualfocus",ye):ne.current=q2(ye,{sync:V.current,preventScroll:!0})}let Ce=n.current[O.current],K=H.current;Ce&&xe(Ce),(V.current?ye=>ye():ye=>ce.request(ye))(()=>{let ye=n.current[O.current]||Ce;if(!ye)return;Ce||xe(ye),de&&(K||!P.current)&&ye.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Ee(()=>{T.current.orientation=x},[T,x]),Ee(()=>{o&&(L&&S?(O.current=a??-1,D.current&&a!=null&&(H.current=!0,U())):G.current&&(O.current=-1,U()))},[o,L,S,a,U]),Ee(()=>{if(o){if(!L){V.current=!1;return}if(S)if(r==null){if(V.current=!1,ie.current!=null)return;if(G.current&&(O.current=-1,be()),(!j.current||!G.current)&&D.current&&(B.current!=null||D.current===!0&&B.current==null)){let xe=0,Ce=()=>{n.current[0]==null?(xe<2&&(xe?Y=>se.request(Y):queueMicrotask)(Ce),xe+=1):(O.current=B.current==null||KD(B.current,x,u)||c?eS(n):hD(n),B.current=null,U())};Ce()}}else U0(n.current,r)||(O.current=r,be(),H.current=!1)}},[o,L,S,r,ie,c,n,x,u,U,be,se]),Ee(()=>{if(!o||S||!F||d||!G.current)return;let xe=F.nodesRef.current,Ce=xe.find(ye=>ye.id===N)?.context?.elements.floating,K=yo(Wt(C??Ce??null)),Y=xe.some(ye=>ye.context&&ot(ye.context.elements.floating,K));Ce&&!Y&&P.current&&Ce.focus({preventScroll:!0})},[o,S,C,F,N,d]),Ee(()=>{j.current=L,G.current=!!S}),Ee(()=>{L||(B.current=null,D.current=p)},[L,p]);let le=r!=null,ge=Pe(xe=>{if(!W.current)return;let Ce=n.current.indexOf(xe.currentTarget);Ce!==-1&&(O.current!==Ce||r!==Ce)&&(O.current=Ce,U(xe))}),ke=Pe(()=>g??F?.nodesRef.current.find(xe=>xe.id===N)?.context?.dataRef?.current.orientation),me=Pe(()=>eS(n,J.current)),Se=Pe(xe=>{if(P.current=!1,V.current=!0,xe.which===229||!W.current&&xe.currentTarget===$.current)return;if(c&&Cze(xe.key,x,u,k)){TS(xe.key,ke())||zr(xe),_.setOpen(!1,Xe(he.listNavigation,xe.nativeEvent)),Ln(C)&&(d?F?.events.emit("virtualfocus",C):C.focus());return}let Ce=O.current,K=eS(n,h),Y=hD(n,h);if(A||(xe.key==="Home"&&(zr(xe),O.current=K,U(xe)),xe.key==="End"&&(zr(xe),O.current=Y,U(xe))),v!=null){let ye=v(xe,O.current,n,x,l,u,h,K,Y);if(ye!=null&&(O.current=ye,U(xe)),x==="both")return}if(TS(xe.key,x)){if(zr(xe),L&&!d&&yo(xe.currentTarget.ownerDocument)===xe.currentTarget){O.current=KD(xe.key,x,u)?K:Y,U(xe);return}KD(xe.key,x,u)?l?Ce>=Y?s&&Ce!==n.current.length?O.current=-1:(V.current=!1,O.current=K):O.current=La(n.current,{startingIndex:Ce,disabledIndices:h}):O.current=Math.min(Y,La(n.current,{startingIndex:Ce,disabledIndices:h})):l?Ce<=K?s&&Ce!==-1?O.current=n.current.length:(V.current=!1,O.current=Y):O.current=La(n.current,{startingIndex:Ce,decrement:!0,disabledIndices:h}):O.current=Math.max(K,La(n.current,{startingIndex:Ce,decrement:!0,disabledIndices:h})),U0(n.current,O.current)&&(O.current=-1),U(xe)}}),de=Wo.useMemo(()=>({onFocus(Ce){V.current=!0,ge(Ce)},onClick:({currentTarget:Ce})=>Ce.focus({preventScroll:!0}),onMouseMove(Ce){xue(Ce)||(V.current=!0,H.current=!1,m&&ge(Ce))},onPointerLeave(Ce){if(!W.current||!P.current||Ce.pointerType==="touch")return;V.current=!0;let K=Ce.relatedTarget;if(!(!m||n.current.includes(K))&&Z.current&&(ne.current?.(),ne.current=null,O.current=-1,U(Ce),!d)){let Y=$.current,ye=yo(Wt(Y));Y&&ot(Y,ye)&&Y.focus({preventScroll:!0})}}}),[ge,W,$,m,n,U,Z,d]),Le=Wo.useMemo(()=>d&&L&&le&&{"aria-activedescendant":`${y}-${r}`},[d,L,le,y,r]),Ne=Wo.useMemo(()=>({...A?{}:Le,onKeyDown(xe){if(xe.key==="Tab"&&xe.shiftKey&&L&&!d){let Ce=lr(xe.nativeEvent);if(Ce&&!ot($.current,Ce))return;zr(xe),_.setOpen(!1,Xe(he.focusOut,xe.nativeEvent)),Ln(C)&&C.focus();return}Se(xe)},onPointerMove(xe){xue(xe)||(P.current=!0)}}),[Le,Se,$,A,_,L,d,C]),Be=Wo.useMemo(()=>{function xe(Y){_.setOpen(!0,Xe(he.listNavigation,Y.nativeEvent,Y.currentTarget))}function Ce(Y){p==="auto"&&j2(Y.nativeEvent)&&(D.current=!d)}function K(Y){D.current=p,p==="auto"&&O2(Y.nativeEvent)&&(D.current=!0)}return{onKeyDown(Y){let ye=_.select("open");P.current=!1;let Re=Y.key.startsWith("Arrow"),Ke=kze(Y.key,ke(),u),mt=TS(Y.key,x),dt=(c?Ke:mt)||Y.key==="Enter"||Y.key.trim()==="";if(d&&ye)return Se(Y);if(!(!ye&&!f&&Re)){if(dt){let Ae=TS(Y.key,ke());B.current=c&&Ae?null:Y.key}if(c){Ke&&(zr(Y),ye?(O.current=me(),U(Y)):xe(Y));return}mt&&(ie.current!=null&&(O.current=ie.current),zr(Y),!ye&&f?xe(Y):Se(Y),ye&&U(Y))}},onFocus(Y){_.select("open")&&!d&&(O.current=-1,U(Y))},onPointerDown:K,onPointerEnter:K,onMouseDown:Ce,onClick:Ce}},[Se,p,me,c,U,_,f,x,ke,u,ie,d]),_e=Wo.useMemo(()=>({...Le,...Be}),[Le,Be]);return Wo.useMemo(()=>o?{reference:_e,floating:Ne,item:de,trigger:Be}:{},[o,_e,Ne,Be,de])}var tg=R(Q(),1);function nx(t,e){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:o,disabledIndices:a,onTyping:s,enabled:l=!0,resetMs:c=750,selectedIndex:u=null}=e,d="rootStore"in t?t.rootStore:t,p=d.useState("open"),m=Br(),f=tg.useRef(""),h=tg.useRef(u??i??-1),x=tg.useRef(null),g=Pe(w=>{function v($){return r?.current[$]}function k($){let N=v($);return N&&!V0(N)||N?.matches(":disabled")?!1:a==null||!U6(Us,$,a)}function _($,N,F=0){if($.length===0)return-1;let D=(F%$.length+$.length)%$.length,O=N.toLowerCase();for(let B=0;B<$.length;B+=1){let P=(D+B)%$.length;if(!(!$[P]?.toLowerCase().startsWith(O)||!k(P)))return P}return-1}let L=n.current;if(f.current.length>0&&w.key===" "&&(zr(w),s?.(!0)),f.current.length>0&&f.current[0]!==" "&&_(L,f.current)===-1&&w.key!==" "&&s?.(!1),L==null||w.key.length!==1||w.ctrlKey||w.metaKey||w.altKey)return;p&&w.key!==" "&&(zr(w),s?.(!0));let S=f.current==="";S&&(h.current=u??i??-1),L.every(($,N)=>$&&k(N)?$[0]?.toLowerCase()!==$[1]?.toLowerCase():!0)&&f.current===w.key&&(f.current="",h.current=x.current),f.current+=w.key,m.start(c,()=>{f.current="",h.current=x.current,s?.(!1)});let M=((S?u??i??-1:h.current)??0)+1,A=_(L,f.current,M);A!==-1?(o?.(A),x.current=A):w.key!==" "&&(f.current="",s?.(!1))}),y=Pe(w=>{let v=w.relatedTarget,k=d.select("domReferenceElement"),_=d.select("floatingElement");ot(k,v)||ot(_,v)||(m.clear(),f.current="",h.current=x.current,s?.(!1))});Ee(()=>{!p&&u!==null||(m.clear(),x.current=null,f.current!==""&&(f.current=""))},[p,u,m]);let b=tg.useMemo(()=>({onKeyDown:g,onBlur:y}),[g,y]);return tg.useMemo(()=>l?{reference:b,floating:b}:{},[l,b])}var wue=.1,_ze=wue*wue,Sr=.5;function AS(t,e,n,r,i,o){return r>=e!=o>=e&&t<=(i-n)*(e-r)/(o-r)+n}function $S(t,e,n,r,i,o,a,s,l,c){let u=!1;return AS(t,e,n,r,i,o)&&(u=!u),AS(t,e,i,o,a,s)&&(u=!u),AS(t,e,a,s,l,c)&&(u=!u),AS(t,e,l,c,n,r)&&(u=!u),u}function Sze(t,e,n){return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height}function IS(t,e,n,r,i,o){let a=Math.min(n,i),s=Math.max(n,i),l=Math.min(r,o),c=Math.max(r,o);return t>=a&&t<=s&&e>=l&&e<=c}function ng(t={}){let{blockPointerEvents:e=!1}=t,n=new Ca,r=({x:i,y:o,placement:a,elements:s,onClose:l,nodeId:c,tree:u})=>{let d=a?.split("-")[0],p=!1,m=null,f=null,h=typeof performance<"u"?performance.now():0;function x(y,b){let w=performance.now(),v=w-h;if(m===null||f===null||v===0)return m=y,f=b,h=w,!1;let k=y-m,_=b-f,L=k*k+_*_,S=v*v*_ze;return m=y,f=b,h=w,L<S}function g(){n.clear(),l()}return function(b){n.clear();let w=s.domReference,v=s.floating;if(!w||!v||d==null||i==null||o==null)return;let{clientX:k,clientY:_}=b,L=lr(b),S=b.type==="mouseleave",C=ot(v,L),T=ot(w,L);if(C&&(p=!0,!S))return;if(T&&(p=!1,!S)){p=!0;return}if(S&&ln(b.relatedTarget)&&ot(v,b.relatedTarget))return;function M(){return!!(u&&qc(u.nodesRef.current,c).length>0)}function A(){M()||g()}if(M())return;let $=w.getBoundingClientRect(),N=v.getBoundingClientRect(),F=i>N.right-N.width/2,D=o>N.bottom-N.height/2,O=N.width>$.width,B=N.height>$.height,P=(O?$:N).left,U=(O?$:N).right,G=(B?$:N).top,j=(B?$:N).bottom;if(d==="top"&&o>=$.bottom-1||d==="bottom"&&o<=$.top+1||d==="left"&&i>=$.right-1||d==="right"&&i<=$.left+1){A();return}let V=!1;switch(d){case"top":V=IS(k,_,P,$.top+1,U,N.bottom-1);break;case"bottom":V=IS(k,_,P,N.top+1,U,$.bottom-1);break;case"left":V=IS(k,_,N.right-1,j,$.left+1,G);break;case"right":V=IS(k,_,$.right-1,j,N.left+1,G);break;default:}if(V)return;if(p&&!Sze(k,_,$)){A();return}if(!S&&x(k,_)){A();return}let H=!1;switch(d){case"top":{let ne=O?Sr/2:Sr*4,J=O||F?i+ne:i-ne,W=O?i-ne:F?i+ne:i-ne,ie=o+Sr+1,Z=F||O?N.bottom-Sr:N.top,ce=F?O?N.bottom-Sr:N.top:N.bottom-Sr;H=$S(k,_,J,ie,W,ie,N.left,Z,N.right,ce);break}case"bottom":{let ne=O?Sr/2:Sr*4,J=O||F?i+ne:i-ne,W=O?i-ne:F?i+ne:i-ne,ie=o-Sr,Z=F||O?N.top+Sr:N.bottom,ce=F?O?N.top+Sr:N.bottom:N.top+Sr;H=$S(k,_,J,ie,W,ie,N.left,Z,N.right,ce);break}case"left":{let ne=B?Sr/2:Sr*4,J=B||D?o+ne:o-ne,W=B?o-ne:D?o+ne:o-ne,ie=i+Sr+1,Z=D||B?N.right-Sr:N.left,ce=D?B?N.right-Sr:N.left:N.right-Sr;H=$S(k,_,Z,N.top,ce,N.bottom,ie,J,ie,W);break}case"right":{let ne=B?Sr/2:Sr*4,J=B||D?o+ne:o-ne,W=B?o-ne:D?o+ne:o-ne,ie=i-Sr,Z=D||B?N.left+Sr:N.right,ce=D?B?N.left+Sr:N.right:N.left+Sr;H=$S(k,_,ie,J,ie,W,Z,N.top,ce,N.bottom);break}default:}H?p||n.start(40,A):A()}};return r.__options={...t,blockPointerEvents:e},r}var NS=R(Q(),1),XD=NS.createContext(void 0);function ki(t){let e=NS.useContext(XD);if(e===void 0&&!t)throw new Error(Dt(47));return e}var PS=R(Q(),1),vue=R(Ms(),1);var W2=class extends Hc{setState(e){}update(e){}set(e,n){}notifyAll(){}};var kue={..._S,disabled:t=>t.disabled,instantType:t=>t.instantType,openMethod:t=>t.openMethod,openChangeReason:t=>t.openChangeReason,modal:t=>t.modal,focusManagerModal:t=>t.focusManagerModal,stickIfOpen:t=>t.stickIfOpen,titleElementId:t=>t.titleElementId,descriptionElementId:t=>t.descriptionElementId,openOnHover:t=>t.openOnHover,closeDelay:t=>t.closeDelay,adaptiveOrigin:t=>t.adaptiveOrigin},jS=class extends Hc{constructor(e,n,r){let i=new Ed;super(_ue(e,i,n,r),Sue(i),kue)}setOpen=(e,n)=>{let r=n.reason===he.triggerHover,i=n.reason===he.triggerPress&&n.event.detail===0,o=!e&&(n.reason===he.escapeKey||n.reason==null),a=yS(n),s=this.select("activeTriggerId");if(!e&&n.reason===he.closePress&&n.trigger==null&&s!=null&&(n.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,n);let l=()=>{let u=bS(this.state,e,n.trigger,a());u.openChangeReason=n.reason,this.update(u)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),vue.flushSync(l)):l();let c;i?c="click":o?c="dismiss":n.reason===he.focusOut&&(c="focus"),this.set("instantType",c)}};function Cue(){let t=new Ed,e=new W2(Object.freeze(_ue(void 0,t)),Object.freeze(Sue(t)),kue);return Object.assign(e,{setOpen:Yt})}function _ue(t,e,n,r=!1){let i={...CS(e,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...t};return i.open&&t?.mounted===void 0&&(i.mounted=!0),i}function Sue(t){return{popupRef:PS.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:PS.createRef(),beforeContentFocusGuardRef:PS.createRef(),stickIfOpenTimeout:new Ca,triggerElements:t}}var T1=R(ee(),1),Lue=N6(function({props:e}){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:o,onOpenChangeComplete:a,modal:s=!1,handle:l,triggerId:c,defaultTriggerId:u=null}=e,d=Mze(l,{modal:s,open:i,openProp:r,activeTriggerId:u,triggerIdProp:c});d.useControlledProp("openProp",r),d.useControlledProp("triggerIdProp",c);let p=d.useState("open"),m=d.useState("mounted"),f=d.useState("payload");d.useContextCallback("onOpenChange",o),d.useContextCallback("onOpenChangeComplete",a),mue(d,p),wS(d);let{forceUnmount:h}=vS(p,d,()=>{d.update({stickIfOpen:!0,openChangeReason:null})});d.useSyncedValues({modal:s}),rx.useEffect(()=>{p||d.context.stickIfOpenTimeout.clear()},[d,p]),rx.useImperativeHandle(e.actionsRef,()=>({unmount:h,close:()=>d.setOpen(!1,Xe(he.imperativeAction))}),[h,d]);let x=p||m;return(0,T1.jsxs)(XD.Provider,{value:d,children:[l&&(0,T1.jsx)(gS,{handle:l,store:d}),x&&(0,T1.jsx)(Eze,{store:d,modal:s}),typeof n=="function"?n({payload:f}):n]})});function Mue(t){return ki(!0)?(0,T1.jsx)(Lue,{props:t}):(0,T1.jsx)(W6,{children:(0,T1.jsx)(Lue,{props:t})})}function Mze(t,e){let n=pue((r,i)=>new jS(e,r,i));return rx.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Eze({store:t,modal:e}){let n=t.useState("floatingRootContext"),r=Y0(n,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),i=r.reference,o=r.floating;return kS(t,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:o}),null}var ax=R(Q(),1);var Eue=R(Q(),1),YD=R(Ms(),1);function OS(t,e){let n=Eue.useRef(null);function r(o){YD.flushSync(()=>{t.setOpen(!1,Xe(he.focusOut,o.nativeEvent,o.currentTarget))}),dce(n.current)?.focus()}function i(o){let a=t.select("positionerElement");if(a&&mm(o,a))t.context.beforeContentFocusGuardRef.current?.focus();else{YD.flushSync(()=>{t.setOpen(!1,Xe(he.focusOut,o.nativeEvent,o.currentTarget))});let s=uce(t.context.triggerFocusTargetRef.current||e.current);for(;s!==null&&ot(a,s);){let l=s;if(s=z2(s),s===l)break}s?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}var ox=R(Q(),1);var ix=R(Q(),1);function Tue(t){let e=ix.useRef(""),n=ix.useCallback(i=>{i.defaultPrevented||(e.current=i.pointerType,t(i,i.pointerType))},[t]);return{onClick:ix.useCallback(i=>{if(i.detail===0){t(i,"keyboard");return}"pointerType"in i?t(i,i.pointerType):t(i,e.current),e.current=""},[t]),onPointerDown:n}}function QD(t,e){let n=Pe((o,a)=>{(typeof t=="function"?t():t)||e(a||(Nn.os.ios?"touch":""))}),{onClick:r,onPointerDown:i}=Tue(n);return ox.useMemo(()=>({onClick:r,onPointerDown:i}),[r,i])}function DS(t){let[e,n]=ox.useState(null),r=QD(t,n);return ku(t,i=>{i&&!t&&n(null)}),ox.useMemo(()=>({openMethod:e,triggerProps:r}),[e,r])}var K2=R(ee(),1),Rue=G_(function(e,n){let{render:r,className:i,style:o,disabled:a=!1,nativeButton:s=!0,handle:l,payload:c,openOnHover:u=!1,delay:d=300,closeDelay:p=0,id:m,...f}=e,h=ki(!0),g=SS(l)??h;if(!g)throw new Error(Dt(74));let y=dr(m),b=g.useState("isTriggerActive",y),w=g.useState("floatingRootContext"),v=g.useState("isOpenedByTrigger",y),k=g.useState("triggerPopupId",y),_=ax.useRef(null),{registerTrigger:L,isMountedByThisTrigger:S}=xS(y,_,g,{payload:c,disabled:a,openOnHover:u,closeDelay:p}),C=g.useState("openChangeReason"),T=g.useState("stickIfOpen"),M=g.useState("openMethod"),A=g.useState("focusManagerModal"),$=eg(w,{enabled:!a&&u&&(M!=="touch"||C!==he.triggerPress),mouseOnly:!0,move:!1,handleClose:ng(),restMs:d,delay:{close:p},triggerElementRef:_,isActiveTrigger:b,isClosing:()=>g.select("transitionStatus")==="ending"}),N=$u(w,{stickIfOpen:T}),F=QD(()=>g.select("open"),J=>{g.set("openMethod",J)}),D=g.useState("triggerProps",S),{getButtonProps:O,buttonRef:B}=zi({disabled:a,native:s}),P={open(J){return J&&C===he.triggerPress?q0.open(J):F2.open(J)}},{preFocusGuardRef:U,handlePreFocusGuardFocus:G,handleFocusTargetFocus:j}=OS(g,_),H=We("button",e,{state:{disabled:a,open:v},ref:[B,n,L,_],props:[N.reference,$,D,F,{[iS]:"",id:y,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":k},f,O],stateAttributesMapping:P}),ne=(0,K2.jsx)(ax.Fragment,{children:H},y);return S&&!A?(0,K2.jsxs)(ax.Fragment,{children:[(0,K2.jsx)(Bc,{ref:U,onFocus:G}),ne,(0,K2.jsx)(Bc,{ref:g.context.triggerFocusTargetRef,onFocus:j})]}):ne});var $ue=R(Q(),1);var FS=R(Q(),1),JD=FS.createContext(void 0);function Aue(){let t=FS.useContext(JD);if(t===void 0)throw new Error(Dt(45));return t}var eF=R(ee(),1),Iue=$ue.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e;return ki().useState("mounted")||r?(0,eF.jsx)(JD.Provider,{value:r,children:(0,eF.jsx)(W0,{ref:n,...i})}):null});var US=R(Q(),1);function R1(t){return b2(19)?t:t?"true":void 0}var BS=R(Q(),1),tF=BS.createContext(void 0);function X2(){let t=BS.useContext(tF);if(!t)throw new Error(Dt(46));return t}var zl=R(Q(),1);var zS=R(Q(),1),nF=zS.createContext(void 0);function Gc(){return zS.useContext(nF)?.direction??"ltr"}var Tze=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0,offsetParent:d="real"}=Md(t,e)||{};if(c==null)return{};let p=Q_(u),m={x:n,y:r},f=G6(i),h=H6(f),x=await a.getDimensions(c),g=f==="y",y=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",v=o.reference[h]+o.reference[f]-m[f]-o.floating[h],k=m[f]-o.reference[f],_=d==="real"?await a.getOffsetParent?.(c):s.floating,L=s.floating[w]||o.floating[h];(!L||!await a.isElement?.(_))&&(L=s.floating[w]||o.floating[h]);let S=v/2-k/2,C=L/2-x[h]/2-1,T=Math.min(p[y],C),M=Math.min(p[b],C),A=T,$=L-x[h]-M,N=L/2-x[h]/2+S,F=X_(A,N,$),D=!l.arrow&&zc(i)!=null&&N!==F&&o.reference[h]/2-(N<A?T:M)-x[h]/2<0,O=D?N<A?N-A:N-$:0;return{[f]:m[f]+O,data:{[f]:F,centerOffset:N-F-O,...D&&{alignmentOffset:O}},reset:D}}}),Nue=(t,e)=>{let{name:n,fn:r}=Tze(t);return{name:n,fn:r,options:[t,e]}};var Pue={name:"hide",async fn(t){let{width:e,height:n,x:r,y:i}=t.rects.reference,o=e===0&&n===0&&r===0&&i===0,a=await t.platform.detectOverflow(t,{elementContext:"reference"});return{data:{referenceHidden:a.top-n>=0||a.right-e>=0||a.bottom-n>=0||a.left-e>=0||o}}}};var Y2={sideX:"left",sideY:"top"};var qS="--available-width",HS="--available-height",jue="--anchor-width",Oue="--anchor-height",Due="--transform-origin",Fue="--positioner-width",Bue="--positioner-height";var que=qS,Hue=HS;function Vue(t,e,n){let r=t==="inline-start"||t==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[e]}function Gue(t,e,n){let{rects:r,placement:i}=t;return{side:Vue(e,Sa(i),n),align:zc(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Q2(t){return Rze(t,bue)}function Rze(t,e){let{anchor:n,positionMethod:r="absolute",side:i="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,collisionBoundary:l,collisionPadding:c=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:p=!1,inline:m,keepMounted:f=!1,floatingRootContext:h,mounted:x,collisionAvoidance:g,shift:y,nodeId:b,adaptiveOrigin:w,lazyFlip:v=!1,externalTree:k}=t,[_,L]=zl.useState(null);!x&&_!==null&&L(null);let S=g.side||"flip",C=g.align||"flip",T=g.fallbackAxisSide||"end",M=y?.crossAxis??!1,A=y?.rootBoundary,$=typeof n=="function"?n:void 0,N=Pe($),F=$?N:n,D=Yr(n),O=Yr(x),P=Gc()==="rtl",U=_||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":P?"left":"right","inline-start":P?"right":"left"}[i],G=a==="center"?U:`${U}-${a}`,j=c;typeof j=="number"?j={top:j,right:j,bottom:j,left:j}:j&&(j={top:j.top||0,right:j.right||0,bottom:j.bottom||0,left:j.left||0});let V=1,H=i==="bottom"?V:0,ne=i==="top"?V:0,J=i==="right"?V:0,W=i==="left"?V:0,ie={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:j},Z=zl.useRef(null),ce=Yr(o),se=Yr(s),be=typeof o!="function"?o:0,le=typeof s!="function"?s:0,ge=[];m&&ge.push(m),ge.push(ID(_t=>{let An=Gue(_t,i,P),Xt=typeof ce.current=="function"?ce.current(An):ce.current,zn=typeof se.current=="function"?se.current(An):se.current;return{mainAxis:Xt,crossAxis:zn,alignmentAxis:zn}},[be,le,P,i]));let ke=C==="none"&&S!=="shift",me=!ke&&(u||M||S==="shift"),Se=S==="none"?null:jD({...ie,padding:{top:j.top+V+H,right:j.right+V+W,bottom:j.bottom+V+ne,left:j.left+V+J},mainAxis:!M&&S==="flip",crossAxis:C==="flip"?"alignment":!1,fallbackAxisSideDirection:T}),de=ke?null:ND({...ie,rootBoundary:A,mainAxis:C!=="none",crossAxis:me,limiter:u||M?void 0:PD(_t=>{if(!Z.current)return{};let{width:An,height:Xt}=Z.current.getBoundingClientRect(),zn=Qs(Sa(_t.placement)),Ot=zn==="y"?An:Xt,mn=zn==="y"?j.left+j.right:j.top+j.bottom;return{offset:Ot/2+mn/2}})},[ie,u,M,A,j,C]);S==="shift"||C==="shift"||a==="center"?ge.push(de,Se):ge.push(Se,de),ge.push(OD({...ie,apply({elements:{floating:_t},availableWidth:An,availableHeight:Xt,rects:zn}){if(!O.current)return;let Ot=_t.style;Ot.setProperty(que,`${An}px`),Ot.setProperty(Hue,`${Xt}px`);let mn=Qn(_t).devicePixelRatio||1,{x:yn,y:In,width:er,height:ae}=zn.reference,st=(Math.round((yn+er)*mn)-Math.round(yn*mn))/mn,Lt=(Math.round((In+ae)*mn)-Math.round(In*mn))/mn;Ot.setProperty(jue,`${st}px`),Ot.setProperty(Oue,`${Lt}px`)}}),Nue(_t=>({element:Z.current||Wt(_t.elements.floating).createElement("div"),padding:Z.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(_t){let{elements:{floating:An},middlewareData:Xt,placement:zn,platform:Ot,rects:mn,y:yn}=_t,In=Sa(zn),er=zc(zn),ae=Qs(In)==="y",st=Z.current,Lt=typeof o=="function"?o(Gue(_t,i,P)):o,Ye;if(!st&&er&&Math.abs(ae?Xt.shift?.x||0:Xt.shift?.y||0)<=1)Ye=er==="start"===(ae&&Ot.isRTL?.(An)===!0)?"100%":"0%";else{let jn=ae?Xt.arrow?.x||0:Xt.arrow?.y||0,Kn=ae?st?.clientWidth||0:st?.clientHeight||0;Ye=`${jn+Kn/2}px`}let wt=In==="top"||In==="left"?`calc(100% + ${Lt}px)`:`${-Lt}px`;return me&&ae&&Math.abs(Xt.shift?.y||0)>Lt&&(wt=`${mn.reference.y+mn.reference.height/2-yn}px`),An.style.setProperty(Due,ae?`${Ye} ${wt}`:`${wt} ${Ye}`),{}}},Pue,w),Ee(()=>{!x&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,h]);let Le=zl.useMemo(()=>({ancestorScroll:!p,elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Ne,elements:Be,x:_e,y:xe,middlewareData:Ce,update:K,placement:Y,context:ye,isPositioned:Re,floatingStyles:Ke}=e({rootContext:h,open:f?x:void 0,placement:G,middleware:ge,strategy:r,whileElementsMounted:f?void 0:(..._t)=>Y6(..._t,Le),nodeId:b,externalTree:k}),{sideX:mt,sideY:dt}=Ce.adaptiveOrigin||Y2,Ae=Re?r:"fixed",xt=zl.useMemo(()=>{let _t;return Re?w?_t={position:Ae,[mt]:_e,[dt]:xe}:_t={...Ke,position:Ae}:_t={position:Ae,top:0,left:0},_t[que]="100vw",_t[Hue]="100vh",Re||(_t.opacity=0),_t},[w,Ae,mt,_e,dt,xe,Ke,Re]),Et=zl.useRef(null);Ee(()=>{if(!x)return;let _t=D.current,An=typeof _t=="function"?_t():_t,zn=(Uue(An)?An.current:An)||null||null;zn!==Et.current&&(Ne.setPositionReference(zn),Et.current=zn)},[x,Ne,F,D]),zl.useEffect(()=>{if(!x)return;let _t=D.current;typeof _t!="function"&&Uue(_t)&&_t.current!==Et.current&&(Ne.setPositionReference(_t.current),Et.current=_t.current)},[x,Ne,F,D]),zl.useEffect(()=>{if(f&&x&&Be.reference&&Be.floating)return Y6(Be.reference,Be.floating,K,Le)},[f,x,Be,K,Le]);let jt=Sa(Y),Bt=Vue(i,jt,P),Ve=zc(Y)||"center",Jt=!!Ce.hide?.referenceHidden;Ee(()=>{v&&x&&Re&&jt!==U&&L(jt)},[v,x,Re,jt,U]);let rn=zl.useMemo(()=>({position:"absolute",top:Ce.arrow?.y,left:Ce.arrow?.x}),[Ce.arrow]),Rn=Ce.arrow?.centerOffset!==0;return zl.useMemo(()=>({positionerStyles:xt,arrowStyles:rn,arrowRef:Z,arrowUncentered:Rn,side:Bt,align:Ve,physicalSide:jt,anchorHidden:Jt,refs:Ne,context:ye,isPositioned:Re,update:K}),[xt,rn,Z,Rn,Bt,Ve,jt,Jt,Ne,ye,Re,K])}function Uue(t){return t!=null&&"current"in t}var Zue=R(Q(),1),Wue=R(ee(),1),J2=Zue.forwardRef(function(e,n){let{cutout:r,...i}=e,o;if(r){let a=r.getBoundingClientRect();o=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${a.left}px ${a.top}px,${a.left}px ${a.bottom}px,${a.right}px ${a.bottom}px,${a.right}px ${a.top}px,${a.left}px ${a.top}px)`}return(0,Wue.jsx)("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:o}})});function A1(t){return t==="starting"?yce:xn}function ey(t,e,{styles:n,transitionStatus:r,props:i,refs:o,hidden:a,inert:s=!1}){let l={...n};return s&&(l.pointerEvents="none"),We("div",t,{state:e,ref:o,props:[{role:"presentation",hidden:a,style:l},A1(r),i],stateAttributesMapping:Bl})}var ede=R(Q(),1);var Kue={},Xue={},Yue="";function GS(t,e){return I0(t)?t:e}function Que(t,e,n){return/hidden|clip/.test(t.getComputedStyle(GS(e,n)).overflowY)}function Aze(t){if(typeof document>"u")return!1;let e=Wt(t);return Qn(e).innerWidth-e.documentElement.clientWidth>0}function $ze(t){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let n=Wt(t),r=n.documentElement,i=n.body,o=GS(r,i),a=o.style.overflowY,s=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",o.style.overflowY="scroll";let l=o.offsetWidth;o.style.overflowY="hidden";let c=o.offsetWidth;return o.style.overflowY=a,r.style.scrollbarGutter=s,l===c}function Ize(t){let e=Wt(t),n=e.documentElement,r=e.body,i=GS(n,r),o={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,o)}}function Nze(t){let e=Wt(t),n=e.documentElement,r=e.body,i=Qn(n),o=0,a=0,s=!1,l=Pc.create();if(Nn.engine.webkit&&(i.visualViewport?.scale??1)!==1)return()=>{};function c(){let m=i.getComputedStyle(n),f=i.getComputedStyle(r),g=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=n.scrollTop,a=n.scrollLeft,Kue={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Yue=n.style.scrollBehavior,Xue={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let y=n.scrollHeight>n.clientHeight,b=n.scrollWidth>n.clientWidth,w=m.overflowY==="scroll"||f.overflowY==="scroll",v=m.overflowX==="scroll"||f.overflowX==="scroll",k=Math.max(0,i.innerWidth-r.clientWidth),_=Math.max(0,i.innerHeight-r.clientHeight),L=parseFloat(f.marginTop)+parseFloat(f.marginBottom),S=parseFloat(f.marginLeft)+parseFloat(f.marginRight),C=GS(n,r);if(s=$ze(t),s){n.style.scrollbarGutter=g,C.style.overflowY="hidden",C.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(y||w)&&(n.style.overflowY="scroll"),(b||v)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:L||_?`calc(100dvh - ${L+_}px)`:"100dvh",width:S||k?`calc(100vw - ${S+k}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=o,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function u(){Object.assign(n.style,Kue),Object.assign(r.style,Xue),s||(n.scrollTop=o,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=Yue)}function d(){u(),l.request(c)}c();let p=hn(i,"resize",d);return()=>{l.cancel(),u(),typeof i.removeEventListener=="function"&&p()}}var rF=class{lockCount=0;restore=null;timeoutLock=Ca.create();timeoutUnlock=Ca.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let n=Wt(e),r=n.documentElement,i=n.body,o=Qn(r);if(Que(o,r,i)){let s=new o.MutationObserver(()=>{Que(o,r,i)||(s.disconnect(),this.restore=null,this.lock(e))}),l={attributes:!0};s.observe(r,l),s.observe(i,l),this.restore=()=>s.disconnect();return}let a=Nn.os.ios||!Aze(e);this.restore=a?Ize(e):Nze(e)}},Pze=new rF;function Jue(t=!0,e=null){Ee(()=>{if(t)return Pze.acquire(e)},[t,e])}var jze=20;function ty(t,e,n,r){let[i,o]=ede.useState(!1);Ee(()=>{if(!t||!e||n==null){o(!1);return}let a=Wt(n).documentElement.clientWidth,s=n.offsetWidth;o(a>0&&s>0&&s>=a-jze)},[t,e,n]),Jue(t&&(!e||i),r)}var sx=R(ee(),1),tde=US.forwardRef(function(e,n){let{render:r,className:i,style:o,anchor:a,positionMethod:s,side:l,align:c,sideOffset:u,alignOffset:d,collisionBoundary:p="clipping-ancestors",collisionPadding:m,arrowPadding:f,sticky:h,disableAnchorTracking:x=!1,collisionAvoidance:g=aS,...y}=e,b=ki(),w=Aue(),v=K0(),k=b.useState("floatingRootContext"),_=b.useState("mounted"),L=b.useState("open"),S=b.useState("openChangeReason"),C=b.useState("activeTriggerElement"),T=b.useState("modal"),M=b.useState("openMethod"),A=b.useState("positionerElement"),$=b.useState("instantType"),N=b.useState("transitionStatus"),F=b.useState("adaptiveOrigin"),D=US.useRef(null),O=jc(A),B=Q2({anchor:a,floatingRootContext:k,positionMethod:s,mounted:_,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:h,disableAnchorTracking:x,keepMounted:w,nodeId:v,collisionAvoidance:g,adaptiveOrigin:F}),P=k.useState("domReferenceElement");Ee(()=>{let H=P,ne=D.current;if(H&&(D.current=H),ne&&H&&H!==ne){b.set("instantType",void 0);let J=new AbortController;return O(()=>{b.set("instantType","trigger-change")},J.signal),()=>{J.abort()}}},[P,O,b]);let U=T===!0&&S!==he.triggerHover;ty(L&&U,M==="touch",A,C);let G=b.useStateSetter("positionerElement"),j={open:L,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:$},V=ey(e,j,{styles:B.positionerStyles,transitionStatus:N,props:y,refs:[n,G],hidden:!_,inert:!L});return(0,sx.jsxs)(tF.Provider,{value:B,children:[_&&U&&(0,sx.jsx)(J2,{inert:R1(!L),cutout:C}),(0,sx.jsx)(Z6,{id:v,children:V})]})});var ide=R(Q(),1);var Oze="ArrowUp",Dze="ArrowDown",Fze="ArrowLeft",Bze="ArrowRight",zze="Home",qze="End";var VS=new Set([Oze,Dze,Fze,Bze,zze,qze]);var ZS=R(Q(),1),Hze=ZS.createContext(void 0);function WS(t){let e=ZS.useContext(Hze);if(e===void 0&&!t)throw new Error(Dt(69));return e}var $1=R(Q(),1);var iF=$1.createContext(void 0);function nde(){let[t,e]=$1.useState(0),n=Pe(()=>(e(i=>i+1),()=>{e(i=>Math.max(0,i-1))}));return{context:$1.useMemo(()=>({register:n}),[n]),hasClosePart:t>0}}function rde(){let t=$1.useContext(iF);Ee(()=>t?.register(),[t])}var oF=R(ee(),1),ode=ide.forwardRef(function(e,n){let{render:r,className:i,style:o,initialFocus:a,finalFocus:s,...l}=e,c=ki(),u=X2(),d=WS(!0)!=null,{context:p,hasClosePart:m}=nde(),f=c.useState("open"),h=c.useState("openMethod"),x=c.useState("instantType"),g=c.useState("transitionStatus"),y=c.useState("popupProps"),b=c.useState("titleElementId"),w=c.useState("descriptionElementId"),v=c.useState("modal"),k=c.useState("mounted"),_=c.useState("openChangeReason"),L=c.useState("activeTriggerElement"),S=c.useState("floatingRootContext"),C=S.useState("floatingId"),T=c.useState("disabled"),M=c.useState("openOnHover"),A=c.useState("closeDelay");Ro({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete?.(!0)}}),ex(S,{enabled:M&&!T,closeDelay:A});let $=a===void 0?due(c.context.popupRef):a,N=v!==!1&&m;c.useSyncedValue("focusManagerModal",N);let F=c.useStateSetter("popupElement"),D={open:f,side:u.side,align:u.align,instant:x,transitionStatus:g},O=We("div",e,{state:D,ref:[n,c.context.popupRef,F],props:[y,{id:C,role:"dialog",...V2,"aria-labelledby":b,"aria-describedby":w,onKeyDown(B){d&&VS.has(B.key)&&B.stopPropagation()}},A1(g),l],stateAttributesMapping:w1});return(0,oF.jsx)(X0,{context:S,openInteractionType:h,modal:N,disabled:!k||_===he.triggerHover,initialFocus:$,returnFocus:s,restoreFocus:"popup",previousFocusableElement:Ln(L)?L:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,oF.jsx)(iF.Provider,{value:p,children:O})})});var ade=R(Q(),1);var sde=ade.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,l=ki().useState("open"),{arrowRef:c,side:u,align:d,arrowUncentered:p,arrowStyles:m}=X2();return We("div",e,{state:{open:l,side:u,align:d,uncentered:p},ref:[n,c],props:[{style:m,"aria-hidden":!0},a],stateAttributesMapping:Bl})});var lde=R(Q(),1);var cde=lde.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=ki(),l=s.useState("open"),c=s.useState("mounted"),u=s.useState("transitionStatus"),d=s.useState("openChangeReason");return We("div",e,{state:{open:l,transitionStatus:u},ref:n,props:[{role:"presentation",hidden:!c,style:{pointerEvents:d===he.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},a],stateAttributesMapping:w1})});var ude=R(Q(),1);var dde=ude.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=ki(),l=dr(a.id);return s.useSyncedValueWithCleanup("titleElementId",l),We("h2",e,{ref:n,props:[{id:l},a]})});var pde=R(Q(),1);var mde=pde.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=ki(),l=dr(a.id);return s.useSyncedValueWithCleanup("descriptionElementId",l),We("p",e,{ref:n,props:[{id:l},a]})});var fde=R(Q(),1);var hde=fde.forwardRef(function(e,n){let{render:r,className:i,style:o,disabled:a=!1,nativeButton:s=!0,...l}=e,{buttonRef:c,getButtonProps:u}=zi({disabled:a,focusableWhenDisabled:!1,native:s}),d=ki();return rde(),We("button",e,{ref:[n,c],props:[{onClick(m){d.setOpen(!1,Xe(he.closePress,m.nativeEvent))}},l,u]})});var Mde=R(Q(),1);var Ko=R(Q(),1),Lde=R(Ms(),1);var gde=R(Q(),1);function bde(t){let[e,n]=gde.useState({current:t,previous:null});return Object.is(t,e.current)||n({current:t,previous:e.current}),e.previous}var ny=R(Q(),1);function aF(t){let e=Fi(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=Ln(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r;return(C1(n)!==o||C1(r)!==a)&&(n=o,r=a),{width:n,height:r}}var lx="--popup-width",cx="--popup-height";function wde(t){let{popupElement:e,positionerElement:n,content:r,mounted:i,onMeasureLayout:o,onMeasureLayoutComplete:a,side:s,direction:l}=t,c=jc(e,!0),u=Ol(),d=ny.useRef(null),p=ny.useRef(!0),m=ny.useRef(Yt),f=Pe(o),h=Pe(a),x=ny.useMemo(()=>Gze(s,l),[s,l]);Ee(()=>{if(!i){m.current=Yt,p.current=!0,d.current=null;return}if(!e||!n)return;m.current=xde(e,x),sF(e,"auto");let g=XS(e,"position","static"),y=XS(e,"transform","none"),b=XS(e,"scale","1"),w=xde(n,{[qS]:"max-content",[HS]:"max-content"});function v(){g(),y(),w()}function k(){v(),b()}if(f?.(),p.current||d.current===null){KS(n,"max-content");let C=aF(e);return d.current=C,KS(n,C),k(),h?.(null,C),p.current=!1,()=>{m.current(),m.current=Yt}}KS(n,"max-content");let _=d.current,L=aF(e);d.current=L,sF(e,_),k(),h?.(_,L),KS(n,L);let S=new AbortController;return u.request(()=>{sF(e,L),c(()=>{e.style.setProperty(lx,"auto"),e.style.setProperty(cx,"auto")},S.signal)}),()=>{S.abort(),u.cancel(),m.current(),m.current=Yt}},[r,e,n,c,u,i,f,h,x])}function Gze(t,e){let n=t==="top",r=t==="left"||t===(e==="rtl"?"inline-end":"inline-start");return!n&&!r?xn:{position:"absolute",[n?"bottom":"top"]:"0",[r?"right":"left"]:"0"}}function XS(t,e,n){let r=t.style.getPropertyValue(e);return t.style.setProperty(e,n),()=>{t.style.setProperty(e,r)}}function xde(t,e){let n=[];for(let[r,i]of Object.entries(e))n.push(XS(t,r,i));return n.length?()=>{n.forEach(r=>r())}:Yt}function sF(t,e){let n=e==="auto"?"auto":`${e.width}px`,r=e==="auto"?"auto":`${e.height}px`;t.style.setProperty(lx,n),t.style.setProperty(cx,r)}function KS(t,e){let n=e==="max-content"?"max-content":`${e.width}px`,r=e==="max-content"?"max-content":`${e.height}px`;t.style.setProperty(Fue,n),t.style.setProperty(Bue,r)}var vde=R(Q(),1);var kde=R(ee(),1),YS=function(e){let{direction:n="ltr"}=e,r=vde.useMemo(()=>({direction:n}),[n]);return(0,kde.jsx)(nF.Provider,{value:r,children:e.children})};var Cde={name:"adaptiveOrigin",async fn(t){let{x:e,y:n,rects:{floating:r},elements:{floating:i},platform:o,strategy:a,placement:s}=t,l=Qn(i),c=l.getComputedStyle(i);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:e,y:n,data:Y2};let d=await o.getOffsetParent?.(i),p={width:0,height:0};if(a==="fixed"&&l?.visualViewport)p={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let y=Wt(i);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await o.isElement?.(d)&&(p=await o.getDimensions(d));let m=Sa(s),f=e,h=n;m==="left"&&(f=p.width-(e+r.width)),m==="top"&&(h=p.height-(n+r.height));let x=m==="left"?"right":Y2.sideX,g=m==="top"?"bottom":Y2.sideY;return{x:f,y:h,data:{sideX:x,sideY:g}}}};var _de="data-activation-direction";var ry=R(ee(),1),QS={activationDirection:t=>t?{[_de]:t}:null};function JS(t){let{store:e,side:n,children:r}=t,i=Gc(),o=e.useState("activeTriggerElement"),a=e.useState("activeTriggerId"),s=e.useState("open"),l=e.useState("payload"),c=e.useState("mounted"),u=e.useState("popupElement"),d=e.useState("positionerElement"),p=bde(s?o:null),m=Wze(a,l),f=Ko.useRef(null),[h,x]=Ko.useState(null),[g,y]=Ko.useState(null),b=Ko.useRef(null),w=Ko.useRef(null),v=jc(b,!0),k=Ol(),_=Ko.useRef(null),[L,S]=Ko.useState(null),[C,T]=Ko.useState(!1);Ee(()=>(e.set("adaptiveOrigin",Cde),()=>{e.set("adaptiveOrigin",void 0)}),[e]);let M=Pe(()=>{b.current?.style.setProperty("animation","none"),b.current?.style.setProperty("transition","none"),w.current?.style.setProperty("display","none")}),A=Pe(B=>{b.current?.style.removeProperty("animation"),b.current?.style.removeProperty("transition"),w.current?.style.removeProperty("display"),B&&S(B)}),$=Pe(()=>{_.current?.abort();let B=new AbortController;_.current=B,v(()=>{x(null),S(null),f.current=null},B.signal)}),N=Ko.useRef(null);Ee(()=>{(!s||!c)&&(N.current=null)},[s,c]),Ee(()=>{if(o&&p&&o!==p&&N.current!==o&&f.current){x(f.current),T(!0);let B=Zze(p,o);y(B),N.current=o}},[o,p]),Ee(()=>{h!=null&&(_.current?.abort(),T(!0),k.request(()=>{Lde.flushSync(()=>{T(!1)}),$()}))},[m,h,$,k]),Ee(()=>{let B=b.current;if(!B)return;let P=Wt(B).createElement("div");for(let U of Array.from(B.childNodes))P.appendChild(U.cloneNode(!0));f.current=P});let F=h!=null,D;F?D=(0,ry.jsxs)(Ko.Fragment,{children:[(0,ry.jsx)("div",{"data-previous":!0,inert:R1(!0),ref:w,style:{...L?{[lx]:`${L.width}px`,[cx]:`${L.height}px`}:null,position:"absolute"},"data-ending-style":C?void 0:""},"previous"),(0,ry.jsx)("div",{"data-current":!0,ref:b,"data-starting-style":C?"":void 0,children:r},m)]}):D=(0,ry.jsx)("div",{"data-current":!0,ref:b,children:r},m),Ee(()=>{let B=w.current;!B||!h||B.replaceChildren(...Array.from(h.childNodes))},[h]),wde({popupElement:u,positionerElement:d,mounted:c,content:l,onMeasureLayout:M,onMeasureLayoutComplete:A,side:n,direction:i});let O={activationDirection:Vze(g),transitioning:F};return{children:D,state:O}}function Vze(t){if(t)return`${Sde(t.horizontal,5,"right","left")} ${Sde(t.vertical,5,"down","up")}`}function Sde(t,e,n,r){return t>e?n:t<-e?r:""}function Zze(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i={x:n.left+n.width/2,y:n.top+n.height/2},o={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:o.x-i.x,vertical:o.y-i.y}}function Wze(t,e){let[n,r]=Ko.useState(0),i=Ko.useRef(t),o=Ko.useRef(e),a=Ko.useRef(!1);return Ee(()=>{let s=i.current,l=o.current,c=t!==s,u=e!==l;c?(r(d=>d+1),a.current=!u):a.current&&u&&(r(d=>d+1),a.current=!1),i.current=t,o.current=e},[t,e]),`${t??"current"}-${n}`}var Ede=Mde.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,l=ki(),{side:c}=X2(),u=l.useState("instantType"),{children:d,state:p}=JS({store:l,side:c,children:a}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return We("div",e,{state:m,ref:n,props:[s,{children:d}],stateAttributesMapping:QS})});var ux=class extends G2{constructor(){super(Cue(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Tde(){return new ux}var Rde=R(qe(),1),eL=R(Q(),1);var lF=R(ee(),1),Ade=(0,eL.createContext)({container:null,dir:"ltr"});function $de(t){let e=(0,Rde.c)(9),{container:n,dir:r,children:i}=t,o=r===void 0?"ltr":r,a;e[0]!==n||e[1]!==o?(a={container:n,dir:o},e[0]=n,e[1]=o,e[2]=a):a=e[2];let s;e[3]!==i||e[4]!==o?(s=(0,lF.jsx)(YS,{direction:o,children:i}),e[3]=i,e[4]=o,e[5]=s):s=e[5];let l;return e[6]!==a||e[7]!==s?(l=(0,lF.jsx)(Ade,{value:a,children:s}),e[6]=a,e[7]=s,e[8]=l):l=e[8],l}function iy(){return(0,eL.use)(Ade).container??void 0}var dx=R(ee(),1);function Kze(t){if(!t||t instanceof Element)return t;let e=t;return{getBoundingClientRect:()=>{let n=e.right-e.left,r=e.bottom-e.top;return{x:e.left,y:e.top,left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:n,height:r,toJSON:()=>e}}}}function oy(t){let e=(0,Ide.c)(22),{open:n,onOpenChange:r,anchor:i,label:o,className:a,initialFocus:s,finalFocus:l,children:c}=t,u=iy(),d;e[0]!==r?(d=y=>r(y),e[0]=r,e[1]=d):d=e[1];let p;e[2]!==i?(p=Kze(i),e[2]=i,e[3]=p):p=e[3];let m;e[4]!==a?(m=Zs("ui-popup ui-popover",a),e[4]=a,e[5]=m):m=e[5];let f;e[6]!==c||e[7]!==l||e[8]!==s||e[9]!==o||e[10]!==m?(f=(0,dx.jsx)(rg.Popup,{className:m,"aria-label":o,initialFocus:s,finalFocus:l,children:c}),e[6]=c,e[7]=l,e[8]=s,e[9]=o,e[10]=m,e[11]=f):f=e[11];let h;e[12]!==p||e[13]!==f?(h=(0,dx.jsx)(rg.Positioner,{className:"ui-positioner",anchor:p,side:"bottom",align:"start",sideOffset:T6,children:f}),e[12]=p,e[13]=f,e[14]=h):h=e[14];let x;e[15]!==u||e[16]!==h?(x=(0,dx.jsx)(rg.Portal,{container:u,children:h}),e[15]=u,e[16]=h,e[17]=x):x=e[17];let g;return e[18]!==n||e[19]!==d||e[20]!==x?(g=(0,dx.jsx)(rg.Root,{open:n,onOpenChange:d,modal:!1,children:x}),e[18]=n,e[19]=d,e[20]=x,e[21]=g):g=e[21],g}var et=R(ee(),1),Ru={model:"picker.model",mode:"picker.mode",effort:"picker.effort",plan:"picker.plan",build:"picker.build",planHint:"picker.planHint",context:"picker.context"},Xze=1500,Nde="cmux.acpmux.recentModels";function Pde(){try{let t=JSON.parse(localStorage.getItem(Nde)??"[]");return Array.isArray(t)?t.filter(e=>typeof e?.harness=="string"&&typeof e.model=="string"&&(e.effort===void 0||typeof e.effort=="string")&&(e.effortName===void 0||typeof e.effortName=="string")):[]}catch{return[]}}function Yze(t,e){let n=s=>`${s.harness}\0${s.model}\0${s.effort??""}`,r=s=>n(s)===n(e),i=new Set,o=[...Pde(),...t].filter(s=>!i.has(n(s))&&i.add(n(s)));if(o[0]&&r(o[0]))return o;let a=[e,...o.filter(s=>!r(s))].slice(0,12);try{localStorage.setItem(Nde,JSON.stringify(a))}catch{}return a}var Qze=(t,e)=>{let n=setTimeout(t,e);return()=>clearTimeout(n)};function jde({snapshot:t,onModel:e,onMode:n,onEffort:r,onHarness:i,onHarnessHint:o,settleMs:a=Xze,settleTimer:s=Qze,measurePickerRoom:l,showPlan:c=!0,onCompact:u}){let d=we(),p=t.summary,m=x6(t.catalog,p).map(Z=>Fl(Z)?{...Z,name:d("picker.default")}:Z),f=(p?.modes?.availableModes??[]).map(Z=>({id:Z.id,name:Z.name||Z.id,description:Z.description})),h=f.find(Z=>Jze(Z.id)),x=f.filter(Z=>Z!==h),g=p?.modes?.currentModeId,y=h!==void 0&&g===h.id,b=(0,di.useRef)({});b.current.sessionId!==p?.sessionId&&(b.current={sessionId:p?.sessionId}),g&&!y&&(b.current.mode=g);let w=x.find(Z=>Z.id===(y?b.current.mode:g)),v=p?.configOptions?.find(Z=>Z.category==="thought_level"||Z.id==="effort"||Z.id==="reasoning_effort"),k=(v?.options??[]).map(Z=>{let ce={id:Z.value,name:Z.name||Z.value};return Fl(ce)?{...ce,name:d("picker.default")}:ce}),_=m.find(Z=>Z.id===p?.model),L=k.find(Z=>Z.id===v?.currentValue)?.name,[S,C]=(0,di.useState)(Pde),T=p?.harness,M=p?.model,A=p?.confirmedModel??M,$=v?.currentValue,N=v!==void 0,F=t.switching!==void 0;(0,di.useEffect)(()=>{if(!(F||!T||!A||N&&!$))return s(()=>C(Z=>Yze(Z,{harness:T,model:A,effort:$,effortName:L})),a)},[F,T,A,$,N,L,a,s]);let D=(0,di.useRef)(void 0),O=v?.id,B=(v?.options??[]).map(Z=>Z.value).join("\0");(0,di.useEffect)(()=>{let Z=D.current;if(!Z)return;let ce=A!==Z.model&&(A!==Z.from||Z.reached);if(Z.sessionId!==p?.sessionId||ce){D.current=void 0;return}A===Z.model&&(Z.reached=!0),!(A!==Z.model||!O||!B.split("\0").includes(Z.effort))&&(D.current=void 0,Z.effort!==$&&r(O,Z.effort))},[p?.sessionId,A,$,O,B,r]);let P=(Z,ce)=>{D.current=void 0,Z!==M?(D.current=ce?{sessionId:p?.sessionId,from:A,model:Z,effort:ce}:void 0,e(Z)):v&&ce&&ce!==$&&k.some(se=>se.id===ce)&&r(v.id,ce)},U=M!==void 0&&Fl(_??{id:M}),G=F?void 0:Qse(p);(0,di.useEffect)(()=>{T&&G&&ele(T,G)},[T,G]);let j=U?G??(T?VO()[T]:void 0):void 0,V=j&&(m.find(Z=>Z.id===j&&!Fl(Z))?.name??Yse(j)),H=U?V??d("picker.default"):_?.name??p?.model,ne=p?.usage,J=k.find(Z=>Z.id===$),W=J&&!Fl(J)?J.name:void 0,ie=u&&t.commands?.some(Z=>Z.name==="compact")?u:void 0;return(0,et.jsxs)("div",{className:"acpmux-chips",children:[x.length>0&&(0,et.jsx)(cF,{label:d(Ru.mode),warnUnrestricted:!0,className:`acpmux-mode${w&&Ode(w.id)?" acpmux-unrestricted":""}`,button:(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(uF,{}),(0,et.jsx)("span",{children:w?.name??d(Ru.mode)}),(0,et.jsx)(x1,{})]}),sections:[{choices:x,current:w?.id,onPick:n}],heading:d("approval.title"),align:"start"}),c&&h&&(0,et.jsxs)("button",{type:"button",className:"acpmux-plan","aria-pressed":y,title:d(Ru.planHint),onClick:()=>n(y?b.current.mode??x[0]?.id??h.id:h.id),children:[y?(0,et.jsx)(dF,{}):(0,et.jsx)(pF,{}),(0,et.jsx)("span",{children:d(y?Ru.plan:Ru.build)})]}),(0,et.jsx)("span",{className:"acpmux-chips-spacer"}),m.length>0&&(0,et.jsx)(Ile,{catalog:t.catalog,harness:T,model:M,label:H??d(Ru.model),detail:W,resolvedDefault:V,efforts:k,effort:$,recents:S,onLand:P,onEffort:Z=>{D.current=void 0,v&&r(v.id,Z)},onHarness:i,onHarnessHint:o,harnessNotes:t.switching?.phase==="failed"?{[t.switching.harness]:d("switch.failedShort")}:void 0,measureRoom:l}),(ne||p?.sessionId)&&(0,et.jsx)(eqe,{used:ne?.used,size:ne?.size,onCompact:ie,working:t.isWorking}),m.length===0&&v&&k.length>0&&(0,et.jsx)(sle,{label:d(Ru.effort),efforts:k,current:v.currentValue,model:H,chevron:(0,et.jsx)(x1,{}),onPick:Z=>{D.current=void 0,r(v.id,Z)}})]})}function Jze(t){return/(^|[-_])plan$/i.test(t)}function eqe({used:t,size:e,onCompact:n,working:r=!1}){let i=we(),[o,a]=(0,di.useState)(!1),s=(0,di.useRef)(null),l=(0,di.useRef)(null),c=t!==void 0&&e!==void 0&&e>0,u=c?Math.min(1,Math.max(0,t/e)):0,d=Math.round(u*100),p=c?i(Ru.context,{percent:d}):i("context.title"),m=6.5,f=2*Math.PI*m;(0,di.useEffect)(()=>Xs(i("context.title"),()=>a(!0)),[i]);let h=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),x=u>=.8?" acpmux-context-full":"";return(0,et.jsxs)("span",{className:`acpmux-picker acpmux-context${x}`,children:[(0,et.jsx)("button",{ref:s,type:"button",className:"acpmux-context-ring","data-menu":i("context.title"),"aria-label":p,"aria-haspopup":"dialog","aria-expanded":o,onPointerDown:()=>l.current=o,onClick:()=>{a(!(l.current??o)),l.current=null},children:(0,et.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[(0,et.jsx)("circle",{cx:"8",cy:"8",r:m,fill:"none",stroke:"currentColor",strokeOpacity:.28,strokeWidth:2}),u>0&&(0,et.jsx)("circle",{cx:"8",cy:"8",r:m,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeDasharray:`${f*u} ${f}`,transform:"rotate(-90 8 8)"})]})}),(0,et.jsxs)(oy,{open:o,onOpenChange:a,anchor:o?s.current:null,label:i("context.title"),className:`acpmux-context-pop${x}`,finalFocus:s,children:[(0,et.jsx)("div",{className:"acpmux-context-title",children:i("context.title")}),(0,et.jsx)("div",{className:"acpmux-context-percent",children:i("context.percent",{percent:d})}),(0,et.jsx)("div",{className:"acpmux-context-bar","aria-hidden":"true",children:(0,et.jsx)("span",{style:{width:`${d}%`}})}),c&&(0,et.jsx)("div",{className:"acpmux-context-tokens",children:i("context.tokens",{used:h.format(t),size:h.format(e)})}),n&&(0,et.jsx)("button",{type:"button",className:"acpmux-context-compact",disabled:r,onClick:()=>{a(!1),n()},children:i("context.compact")})]})]})}function Ode(t){return/bypass|full|yolo|dangerous|auto[-_ ]?approve/i.test(t)}function cF({label:t,className:e,button:n,sections:r,align:i,warnUnrestricted:o=!1,returnFocus:a=!0,heading:s}){let[l,c]=(0,di.useState)(!1),[u,d]=(0,di.useState)(0),p=(0,di.useRef)(null),m=(0,di.useRef)(null),f=(0,di.useRef)(null),h=(0,di.useId)(),x=Ys(m,f,l,{side:"above",align:"start"}),g=r.flatMap((C,T)=>C.choices.map(M=>({section:T,choice:M}))),y=Math.min(u,Math.max(g.length-1,0));(0,di.useEffect)(()=>{if(!l)return;let C=M=>{p.current?.contains(M.target)||c(!1)},T=()=>c(!1);return document.addEventListener("pointerdown",C),window.addEventListener("blur",T),()=>{document.removeEventListener("pointerdown",C),window.removeEventListener("blur",T)}},[l]);let b=()=>{let C=g.findIndex(T=>T.choice.id===r[T.section].current);d(Math.max(C,0)),c(!0),m.current?.focus()},w=(0,di.useRef)(b);w.current=b,(0,di.useEffect)(()=>Xs(t,()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),w.current()}),[t]);let v=()=>{c(!1),m.current?.focus()},k=C=>{let T=g[C];T&&r[T.section].onPick(T.choice.id)!=="keep"&&(a?v():c(!1))},_=C=>{if(!l){(C.key==="ArrowUp"||C.key==="ArrowDown")&&(C.preventDefault(),b());return}if(C.key==="Escape")C.preventDefault(),C.stopPropagation(),v();else if(C.key==="ArrowDown"||C.key==="ArrowUp"){C.preventDefault();let T=C.key==="ArrowDown"?1:-1;g.length>0&&d((y+T+g.length)%g.length)}else C.key==="Enter"?(C.preventDefault(),k(y)):C.key===" "?C.preventDefault():C.key==="Tab"&&c(!1)},L=C=>{l&&C.key===" "&&(C.preventDefault(),k(y))},S=-1;return(0,et.jsxs)("span",{ref:p,className:`acpmux-picker ${e}`,style:{position:"relative"},onBlur:C=>{l&&!p.current?.contains(C.relatedTarget)&&c(!1)},children:[(0,et.jsx)("button",{ref:m,type:"button",role:"combobox",className:"acpmux-picker-button","data-menu":t,"aria-label":t,"aria-haspopup":"listbox","aria-expanded":l,"aria-controls":l?h:void 0,"aria-activedescendant":l&&g.length>0?`${h}-${y}`:void 0,onKeyDown:_,onKeyUp:L,onClick:()=>l?c(!1):b(),children:n}),l&&(0,et.jsx)("div",{ref:f,style:x,className:`acpmux-menu acpmux-menu-${i}`,children:(0,et.jsxs)("div",{id:h,role:"listbox","aria-label":s??t,children:[s&&(0,et.jsx)("div",{className:"acpmux-menu-heading","aria-hidden":"true",children:s}),r.map((C,T)=>{let M=C.title&&r.length>1;return(0,et.jsxs)("div",{className:"acpmux-menu-section",role:"group","aria-labelledby":M?`${h}-group-${T}`:void 0,"aria-label":M?void 0:t,children:[M&&(0,et.jsx)("div",{className:"acpmux-menu-header",id:`${h}-group-${T}`,children:C.title}),C.choices.map(A=>{S+=1;let $=S,N=A.id===C.current;return(0,et.jsxs)("div",{id:`${h}-${$}`,"data-value":A.id,role:"option",tabIndex:-1,"aria-selected":$===y,"aria-checked":C.current===void 0?void 0:N,className:`acpmux-menu-item${$===y?" acpmux-menu-active":""}${o&&Ode(A.id)?" acpmux-unrestricted":""}`,onMouseMove:()=>{$!==y&&d($)},onMouseDown:F=>{F.preventDefault(),k($)},children:[A.icon,(0,et.jsxs)("span",{className:"acpmux-menu-text",children:[(0,et.jsx)("span",{className:"acpmux-menu-label",children:A.name}),A.description&&(0,et.jsx)("span",{className:"acpmux-menu-description",children:A.description})]}),A.hint&&(0,et.jsx)("kbd",{className:"acpmux-menu-hint",children:A.hint}),N&&(0,et.jsx)(YO,{})]},A.id)})]},T)})]})})]})}function ql(t){let e=(0,Ra.c)(3),{children:n,size:r}=t,i=r===void 0?18:r,o;return e[0]!==n||e[1]!==i?(o=(0,et.jsx)("svg",{className:"acpmux-icon",width:i,height:i,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:n}),e[0]=n,e[1]=i,e[2]=o):o=e[2],o}var uF=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(ql,{children:[(0,et.jsx)("path",{d:"M8 1.9 13 3.7v4.1c0 3.1-2.3 5.3-5 6.3-2.7-1-5-3.2-5-6.3V3.7Z"}),(0,et.jsx)("path",{d:"M8 5.2v3.3"}),(0,et.jsx)("circle",{cx:"8",cy:"10.9",r:".35",fill:"currentColor"})]}),t[0]=e):e=t[0],e},x1=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(ql,{size:14,children:(0,et.jsx)("path",{d:"M4.6 6.3 8 9.6l3.4-3.3"})}),t[0]=e):e=t[0],e},Sle=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(ql,{children:(0,et.jsx)("path",{d:"m6.25 4.25 3.5 3.75-3.5 3.75"})}),t[0]=e):e=t[0],e},P2=t=>{let e=(0,Ra.c)(4),{size:n}=t,r=n===void 0?16:n,i,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,et.jsx)("circle",{cx:"7",cy:"7",r:"4.25"}),o=(0,et.jsx)("path",{d:"m10.25 10.25 3 3"}),e[0]=i,e[1]=o):(i=e[0],o=e[1]);let a;return e[2]!==r?(a=(0,et.jsxs)(ql,{size:r,children:[i,o]}),e[2]=r,e[3]=a):a=e[3],a},YO=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(ql,{children:(0,et.jsx)("path",{d:"M3 8.6 6.3 12 13 4.5"})}),t[0]=e):e=t[0],e},Dde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(ql,{children:(0,et.jsx)("path",{d:"M8 2.75v10.5M2.75 8h10.5"})}),t[0]=e):e=t[0],e},tL=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(ql,{children:(0,et.jsx)("path",{d:"M8 13.4V2.8M3.4 7.3 8 2.7l4.6 4.6"})}),t[0]=e):e=t[0],e},Fde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)("svg",{className:"acpmux-icon",width:18,height:18,viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:(0,et.jsx)("rect",{x:"4.5",y:"4.5",width:"7",height:"7",rx:"1.5",fill:"currentColor"})}),t[0]=e):e=t[0],e},dF=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(ql,{children:[(0,et.jsx)("path",{d:"M5.5 4.25h7.25M5.5 8h7.25M5.5 11.75h7.25"}),(0,et.jsx)("circle",{cx:"3",cy:"4.25",r:".6",fill:"currentColor"}),(0,et.jsx)("circle",{cx:"3",cy:"8",r:".6",fill:"currentColor"}),(0,et.jsx)("circle",{cx:"3",cy:"11.75",r:".6",fill:"currentColor"})]}),t[0]=e):e=t[0],e},pF=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(ql,{children:[(0,et.jsx)("path",{d:"m9.6 3.2 3.2 3.2-6.9 6.9H2.7V10.1Z"}),(0,et.jsx)("path",{d:"m8.2 4.6 3.2 3.2"})]}),t[0]=e):e=t[0],e},Bde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(ql,{children:(0,et.jsx)("path",{d:"m13.1 7.6-5 5a3.2 3.2 0 0 1-4.5-4.5l5.3-5.3a2.1 2.1 0 0 1 3 3L6.6 11a1.05 1.05 0 0 1-1.5-1.5L10 4.6"})}),t[0]=e):e=t[0],e},zde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(ql,{children:[(0,et.jsx)("circle",{cx:"8",cy:"8",r:"2.4"}),(0,et.jsx)("path",{d:"M10.4 8v.9a1.8 1.8 0 0 0 3.6 0V8A6 6 0 1 0 11 13.2"})]}),t[0]=e):e=t[0],e},qde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(ql,{children:[(0,et.jsx)("rect",{x:"5.5",y:"1.5",width:"5",height:"8.5",rx:"2.5"}),(0,et.jsx)("path",{d:"M3 7.5a5 5 0 0 0 10 0M8 12.5V15"})]}),t[0]=e):e=t[0],e},Hde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(ql,{children:(0,et.jsx)("path",{d:"M10.5 2.5 5.5 13.5"})}),t[0]=e):e=t[0],e};var mF=R(qe(),1),Hl=R(Q(),1);var Ci=R(ee(),1);function Gde(t){let e=(0,mF.c)(70),{projects:n,current:r,currentLabel:i,icon:o,onPick:a,onBrowse:s}=t,l=we(),[c,u]=(0,Hl.useState)(!1),[d,p]=(0,Hl.useState)(""),[m,f]=(0,Hl.useState)(void 0),h=(0,Hl.useRef)(null),x=(0,Hl.useRef)(null),g=(0,Hl.useRef)(null),y=(0,Hl.useRef)(null),b=(0,Hl.useId)(),w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w={side:"above",align:"start"},e[0]=w):w=e[0];let v=Ys(x,g,c,w),k;if(e[1]!==n||e[2]!==d){let le=d.trim().toLowerCase().split(/\s+/).filter(Boolean);k=n.filter(ge=>{let ke=`${ge.label} ${ge.cwd}`.toLowerCase();return le.every(me=>ke.includes(me))}),e[1]=n,e[2]=d,e[3]=k}else k=e[3];let _=k,L;if(e[4]!==d){let le=d.trim();L=le.startsWith("/")||le.startsWith("~/")?le:void 0,e[4]=d,e[5]=L}else L=e[5];let S=L,C;if(e[6]!==m||e[7]!==_){let le;e[9]!==m?(le=ge=>ge.cwd===m,e[9]=m,e[10]=le):le=e[10],C=_.findIndex(le),e[6]=m,e[7]=_,e[8]=C}else C=e[8];let T=Math.max(0,C),M;e[11]!==r?(M=()=>{p(""),f(r),u(!0)},e[11]=r,e[12]=M):M=e[12];let A=M,$;e[13]===Symbol.for("react.memo_cache_sentinel")?($=le=>{u(!1),le&&x.current?.focus()},e[13]=$):$=e[13];let N=$,F;e[14]!==r||e[15]!==a||e[16]!==S?(F=le=>{let ge=le?.cwd??S;if(!ge)return;let ke=ge!==r;N(!ke),ke&&a(ge)},e[14]=r,e[15]=a,e[16]=S,e[17]=F):F=e[17];let D=F,O,B;e[18]!==c?(O=()=>{if(!c)return;y.current?.focus();let le=ke=>{h.current?.contains(ke.target)||u(!1)},ge=()=>u(!1);return document.addEventListener("pointerdown",le),window.addEventListener("blur",ge),()=>{document.removeEventListener("pointerdown",le),window.removeEventListener("blur",ge)}},B=[c],e[18]=c,e[19]=O,e[20]=B):(O=e[19],B=e[20]),(0,Hl.useEffect)(O,B);let P;e[21]!==D||e[22]!==T||e[23]!==_?(P=le=>{le.key==="Escape"?(le.preventDefault(),le.stopPropagation(),N(!0)):le.key==="ArrowDown"||le.key==="ArrowUp"?(le.preventDefault(),_.length>0&&f(_[(T+(le.key==="ArrowDown"?1:-1)+_.length)%_.length].cwd)):le.key==="Enter"&&(le.preventDefault(),D(_[T]))},e[21]=D,e[22]=T,e[23]=_,e[24]=P):P=e[24];let U=P,G;e[25]!==c?(G=le=>{c&&!h.current?.contains(le.relatedTarget)&&u(!1)},e[25]=c,e[26]=G):G=e[26];let j;e[27]!==l?(j=l("project.label"),e[27]=l,e[28]=j):j=e[28];let V=c?b:void 0,H;e[29]!==r||e[30]!==l?(H=r?`${l("project.label")}: ${r}`:void 0,e[29]=r,e[30]=l,e[31]=H):H=e[31];let ne;e[32]!==c?(ne=le=>{c&&le.preventDefault()},e[32]=c,e[33]=ne):ne=e[33];let J;e[34]!==c||e[35]!==A?(J=()=>c?N(!0):A(),e[34]=c,e[35]=A,e[36]=J):J=e[36];let W;e[37]!==i||e[38]!==l?(W=i??l("project.choose"),e[37]=i,e[38]=l,e[39]=W):W=e[39];let ie;e[40]!==W?(ie=(0,Ci.jsx)("span",{children:W}),e[40]=W,e[41]=ie):ie=e[41];let Z;e[42]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,Ci.jsx)(x1,{}),e[42]=Z):Z=e[42];let ce;e[43]!==o||e[44]!==c||e[45]!==j||e[46]!==V||e[47]!==H||e[48]!==ne||e[49]!==J||e[50]!==ie?(ce=(0,Ci.jsxs)("button",{ref:x,type:"button",className:"acpmux-context-chip acpmux-project-button","aria-label":j,"aria-haspopup":"listbox","aria-expanded":c,"aria-controls":V,title:H,onMouseDown:ne,onClick:J,children:[o,ie,Z]}),e[43]=o,e[44]=c,e[45]=j,e[46]=V,e[47]=H,e[48]=ne,e[49]=J,e[50]=ie,e[51]=ce):ce=e[51];let se;e[52]!==r||e[53]!==o||e[54]!==U||e[55]!==b||e[56]!==v||e[57]!==s||e[58]!==c||e[59]!==D||e[60]!==d||e[61]!==T||e[62]!==_||e[63]!==l||e[64]!==S?(se=c&&(0,Ci.jsxs)("div",{ref:g,className:"acpmux-menu acpmux-menu-start acpmux-project-menu",style:v,children:[(0,Ci.jsxs)("div",{className:"acpmux-project-search",children:[(0,Ci.jsx)(tqe,{}),(0,Ci.jsx)("input",{ref:y,type:"text",role:"combobox","aria-label":l("project.search"),"aria-expanded":"true","aria-controls":b,"aria-autocomplete":"list","aria-activedescendant":_.length>0?`${b}-${T}`:void 0,placeholder:l("project.search"),value:d,spellCheck:!1,autoComplete:"off",onChange:le=>{p(le.target.value),f(void 0)},onKeyDown:U})]}),(0,Ci.jsxs)("div",{id:b,role:"listbox","aria-label":l("project.label"),children:[_.map((le,ge)=>(0,Ci.jsxs)("div",{id:`${b}-${ge}`,role:"option",tabIndex:-1,"aria-selected":ge===T,"aria-checked":le.cwd===r,"aria-label":`${le.label}, ${le.cwd}`,className:`acpmux-menu-item${ge===T?" acpmux-menu-active":""}`,title:le.cwd,onPointerMove:()=>f(le.cwd),onMouseDown:ke=>{ke.preventDefault(),D(le)},children:[o,(0,Ci.jsxs)("span",{className:"acpmux-menu-text",children:[(0,Ci.jsx)("span",{className:"acpmux-menu-label",children:le.label}),(0,Ci.jsx)("span",{className:"acpmux-menu-description","data-path":le.cwd})]})]},le.cwd)),_.length===0&&(S?(0,Ci.jsxs)("button",{type:"button",className:"acpmux-menu-item acpmux-menu-active",onMouseDown:le=>{le.preventDefault(),D(void 0)},children:[o,(0,Ci.jsx)("span",{className:"acpmux-menu-label",children:l("project.usePath",{path:S})})]}):(0,Ci.jsx)("div",{className:"acpmux-project-empty",children:l("project.none")}))]}),s&&(0,Ci.jsx)("button",{type:"button",className:"acpmux-project-browse",onMouseDown:le=>{le.preventDefault(),N(!1),s()},children:l("project.browse")})]}),e[52]=r,e[53]=o,e[54]=U,e[55]=b,e[56]=v,e[57]=s,e[58]=c,e[59]=D,e[60]=d,e[61]=T,e[62]=_,e[63]=l,e[64]=S,e[65]=se):se=e[65];let be;return e[66]!==G||e[67]!==ce||e[68]!==se?(be=(0,Ci.jsxs)("span",{ref:h,className:"acpmux-picker acpmux-project",onBlur:G,children:[ce,se]}),e[66]=G,e[67]=ce,e[68]=se,e[69]=be):be=e[69],be}function tqe(){let t=(0,mF.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Ci.jsxs)("svg",{className:"acpmux-icon",width:14,height:14,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round","aria-hidden":"true",focusable:"false",children:[(0,Ci.jsx)("circle",{cx:"7",cy:"7",r:"4.25"}),(0,Ci.jsx)("path",{d:"m10.25 10.25 3 3"})]}),t[0]=e):e=t[0],e}var nL={tabs:[],workspaces:[],sessions:[],folders:[],commands:[],history:[]},ig=40,Iu=t=>typeof t=="string"&&t?t:void 0,fF=t=>(Array.isArray(t)?t:[]).filter(e=>typeof e=="object"&&e!==null);function Ude(t){if(typeof t!="object"||t===null)return;let e=t,n=new Set(["terminal","browser","agent"]);return{tabs:fF(e.tabs).flatMap(r=>{let i=Iu(r.id),o=Iu(r.title)??"";if(!i||!n.has(r.kind))return[];let a=Iu(r.detail),s=Iu(r.workspace);return[{id:i,kind:r.kind,title:o,...a?{detail:a}:{},...s?{workspace:s}:{}}]}).slice(0,ig),workspaces:fF(e.workspaces).flatMap(r=>{let i=Iu(r.id),o=Iu(r.name),a=Iu(r.detail);return i&&o?[{id:i,name:o,...a?{detail:a}:{}}]:[]}).slice(0,ig),sessions:[],folders:(Array.isArray(e.folders)?e.folders:[]).flatMap(r=>Iu(r)??[]).slice(0,ig),commands:(Array.isArray(e.commands)?e.commands:[]).flatMap(r=>Iu(r)??[]).slice(0,ig),history:fF(e.history).flatMap(r=>{let i=Iu(r.url),o=Iu(r.title);return i?[{url:i,...o?{title:o}:{}}]:[]}).slice(0,ig)}}var ay={tabs:4,workspaces:3,sessions:3,folders:2,commands:2,history:3},nqe=9;function px(t,...e){let n=t.trim().toLowerCase();if(!n)return 0;let r=0;for(let i of e){let o=i?.toLowerCase();if(!o)continue;let a=o.indexOf(n);if(a===0)return 3;a>0&&(r=Math.max(r,/[\s/._:@#-]/.test(o[a-1])?2:1))}return r}function Vde(t,e,n){let r=t.trim(),i=n.tabs.map(f=>({type:"tab",id:f.id,kind:f.kind,title:f.title,...f.detail||f.workspace?{detail:[f.workspace,f.detail].filter(Boolean).join(" \xB7 ")}:{}})),o=n.workspaces.map(f=>({type:"workspace",id:f.id,title:f.name,...f.detail?{detail:f.detail}:{}})),a=n.sessions.map(f=>({type:"session",id:f.sessionId,title:f.title,...f.harness?{harness:f.harness}:{},...f.detail?{detail:f.detail}:{}})),s=n.folders.map(f=>({type:"folder",path:f})),l=n.commands.map(f=>({type:"command",command:f})),c=n.history.map(f=>({type:"history",url:f.url,...f.title?{title:f.title}:{}}));if(!r)return[...i.slice(0,ay.tabs),...o.slice(0,ay.workspaces),...a.slice(0,ay.sessions),...s.slice(0,ay.folders),...l.slice(0,ay.commands),...c.slice(0,ay.history)];let u={tab:.6,workspace:.5,session:.4,folder:.3,command:e==="terminal"?.35:.2,history:e==="browser"?.35:.1,run:0,open:0,ask:0},d=[...i,...o,...a,...s,...l,...c].map(f=>({row:f,score:px(r,...rqe(f))})).filter(f=>f.score>0).map(f=>({row:f.row,score:f.score+u[f.row.type]})).sort((f,h)=>h.score-f.score).map(f=>f.row),p=e==="terminal"?[{type:"run",text:r}]:e==="browser"?[{type:"open",text:r}]:[],m={type:"ask",text:r};return[...p,...d.slice(0,nqe-p.length-1),m]}function Zde(t,e,n){return n.trim()?e==="agent"?t.length-1:0:-1}function rqe(t){switch(t.type){case"tab":case"workspace":case"session":return[t.title,t.detail];case"folder":return[t.path,t.path.split("/").pop()];case"command":return[t.command];case"history":return[t.title,t.url.replace(/^https?:\/\/(www\.)?/,"")];default:return[]}}var ht=R(ee(),1),og=["terminal","browser","agent"],mx="acpmux-focus-location",rL=["same-kind","terminal","browser","agent","page","auto"],Aa={kinds:{terminal:"newTabPage.kind.terminal",browser:"newTabPage.kind.browser",agent:"newTabPage.kind.agent"},placeholder:{terminal:(t,e)=>e?t("newTabPage.placeholder.terminalIn",{folder:e}):t("newTabPage.placeholder.terminal"),browser:t=>t("newTabPage.placeholder.browser"),agent:(t,e)=>t("newTabPage.placeholder.agent",{agent:e})},switchLabel:"newTabPage.switchLabel",editShortcut:"newTabPage.editShortcut",open:"newTabPage.open",suggestions:"newTabPage.suggestions",rows:{tab:"newTabPage.row.tab",workspace:"newTabPage.row.workspace",session:"newTabPage.row.session",folder:"newTabPage.row.folder",command:"newTabPage.row.command",history:"newTabPage.row.history",run:"newTabPage.row.run",open:"newTabPage.row.open"},ask:"newTabPage.ask",defaultKind:"newTabPage.defaultKind",defaultKinds:{"same-kind":"newTabPage.defaultKind.sameKind",terminal:"newTabPage.defaultKind.terminal",browser:"newTabPage.defaultKind.browser",agent:"newTabPage.defaultKind.agent",page:"newTabPage.defaultKind.page",auto:"newTabPage.defaultKind.auto"},defaultKindHint:"newTabPage.defaultKindHint",allSessions:"newTabPage.allSessions",thisMac:"newTabPage.thisMac"};function iL(t){let e=t.newTab;if(e!==!0&&(typeof e!="object"||e===null))return;let n=typeof e=="object"?e:{},r=typeof n.hotkeys=="object"&&n.hotkeys!==null?n.hotkeys:{},i={};for(let l of og)typeof r[l]=="string"&&r[l]&&(i[l]=r[l]);let o=og.includes(n.kind)?n.kind:"agent",a=typeof n.cwd=="string"?n.cwd:typeof t.cwd=="string"?t.cwd:void 0,s=Ude(n.omnibar);return{hotkeys:i,initialKind:o,...a?{cwd:a}:{},...typeof n.host=="string"?{host:n.host}:{},...typeof n.location=="string"&&n.location?{location:n.location}:{},...s?{omnibar:s}:{},...Array.isArray(n.projects)?{projects:n.projects.filter(l=>typeof l=="string"&&l.length>0).slice(0,ig)}:{},...rL.includes(n.defaultKind)?{defaultKind:n.defaultKind}:{},layout:n.layout==="a"?"a":"b",...typeof n.lastAgent=="string"&&n.lastAgent?{lastAgent:n.lastAgent}:{},...typeof n.home=="string"&&n.home.startsWith("/")?{home:n.home}:{}}}var iqe=6,oqe={"!":"terminal","?":"agent"};function aqe(t,e){if(t!==""||e.length===0)return;let n=oqe[e[0]];return n?{kind:n,text:e.slice(1)}:void 0}function sqe(t,e=1){let n=og.indexOf(t);return og[(n+e+og.length)%og.length]}function hF(t,e=iqe){let n=t.map(i=>h_(i)),r=i=>_2(i,!1)==="input"?0:1;return n.sort((i,o)=>r(i)-r(o)||(o.updatedAt??0)-(i.updatedAt??0)).slice(0,e)}function Kde(t,e=Date.now(),n=ve){if(!t)return"";let r=Math.max(0,Math.round((e-t)/6e4));if(r<1)return n("age.now");if(r<60)return n("age.minutes",{n:r});let i=Math.round(r/60);return i<24?n("age.hours",{n:i}):n("age.days",{n:Math.round(i/24)})}function Xde(t){let e=(0,Nu.c)(146),{snapshot:n,hotkeys:r,initialKind:i,cwd:o,host:a,chips:s,omnibar:l,location:c,defaultKind:u,onSetDefaultKind:d,projects:p,onSubmit:m,onJump:f,onOpenSession:h,onShowAll:x,onEditShortcut:g,onImport:y,onBrowseProject:b}=t,w=r===void 0?{}:r,v=i===void 0?"agent":i,k=l===void 0?nL:l,_;e[0]!==p?(_=p===void 0?[]:p,e[0]=p,e[1]=_):_=e[1];let L=_,S=we(),[C,T]=(0,Xo.useState)(v),[M,A]=(0,Xo.useState)(u),[$,N]=(0,Xo.useState)(o),[F,D]=(0,Xo.useState)(c??""),[O,B]=(0,Xo.useState)(!1),P=O?F:"",[U,G]=(0,Xo.useState)(-1),j=(0,Xo.useRef)(!1),V=(0,Xo.useRef)(null),[H,ne]=(0,Xo.useState)(),J=(0,Xo.useRef)(null),W=(0,Xo.useRef)(!1),ie;e[2]!==n.sessions?(ie=hF(n.sessions),e[2]=n.sessions,e[3]=ie):ie=e[3];let Z=ie,ce;e[4]!==C||e[5]!==k||e[6]!==P||e[7]!==Z?(ce=Vde(P,C,{...k,sessions:Z.map(lqe)}),e[4]=C,e[5]=k,e[6]=P,e[7]=Z,e[8]=ce):ce=e[8];let se=ce,be;e[9]!==C||e[10]!==P||e[11]!==se||e[12]!==G?(be=()=>G(Zde(se,C,P)),e[9]=C,e[10]=P,e[11]=se,e[12]=G,e[13]=be):be=e[13];let le;e[14]!==C||e[15]!==P||e[16]!==se?(le=[se,C,P],e[14]=C,e[15]=P,e[16]=se,e[17]=le):le=e[17],(0,Xo.useEffect)(be,le);let ge,ke;e[18]!==U?(ge=()=>{V.current?.querySelector(`#acpmux-omni-${U}`)?.scrollIntoView?.({block:"nearest"})},ke=[U],e[18]=U,e[19]=ge,e[20]=ke):(ge=e[19],ke=e[20]),(0,Xo.useEffect)(ge,ke);let me;e[21]!==$?(me=$?wi($):void 0,e[21]=$,e[22]=me):me=e[22];let Se=me,de,Le;if(e[23]!==C||e[24]!==$||e[25]!==n.catalog||e[26]!==n.summary?.harness||e[27]!==S){let Ge=$?wi($):"";de=qf(n.summary?.harness??n.catalog[0]?.id??"agent"),Le=Aa.placeholder[C](S,C==="agent"?de:Ge),e[23]=C,e[24]=$,e[25]=n.catalog,e[26]=n.summary?.harness,e[27]=S,e[28]=de,e[29]=Le}else de=e[28],Le=e[29];let Ne=Le,Be,_e;e[30]===Symbol.for("react.memo_cache_sentinel")?(Be=()=>{let Ge=()=>{J.current?.focus(),J.current?.select()};Ge();let dn=J.current?.ownerDocument.defaultView;return dn?.addEventListener(mx,Ge),()=>dn?.removeEventListener(mx,Ge)},_e=[],e[30]=Be,e[31]=_e):(Be=e[30],_e=e[31]),(0,Xo.useEffect)(Be,_e);let xe=Ge=>{T(Ge),ne(void 0),J.current?.focus()},Ce;e[32]!==f||e[33]!==h||e[34]!==m||e[35]!==$?(Ce=Ge=>{switch(Ge.type){case"tab":case"workspace":return f?.(Ge.type,Ge.id);case"session":return h(Ge.id);case"folder":return m("terminal","",Ge.path);case"command":return m("terminal",Ge.command,$);case"history":return m("browser",Ge.url);case"run":return m("terminal",Ge.text,$);case"open":return m("browser",Ge.text);case"ask":return m("agent",Ge.text,$)}},e[32]=f,e[33]=h,e[34]=m,e[35]=$,e[36]=Ce):Ce=e[36];let K=Ce,Y;e[37]!==K||e[38]!==C||e[39]!==m||e[40]!==$||e[41]!==P||e[42]!==se||e[43]!==U?(Y=Ge=>{Ge?.preventDefault();let dn=se[U];if(dn)return K(dn);C==="browser"&&!P.trim()||m(C,P.trim(),C==="browser"?void 0:$)},e[37]=K,e[38]=C,e[39]=m,e[40]=$,e[41]=P,e[42]=se,e[43]=U,e[44]=Y):Y=e[44];let ye=Y,Re;e[45]!==H||e[46]!==se.length||e[47]!==G||e[48]!==F?(Re=Ge=>{if(W.current||Ge.nativeEvent.isComposing)return;let dn=Ge.currentTarget;if(j.current=dn.value!==""&&dn.selectionStart===0&&dn.selectionEnd===dn.value.length,(Ge.key==="ArrowDown"||Ge.key==="ArrowUp")&&se.length){Ge.preventDefault();let pt=Ge.key==="ArrowDown"?1:-1;G(vs=>vs<0&&pt<0?se.length-1:(vs+pt+se.length)%se.length)}else Ge.key==="Escape"&&F?(Ge.preventDefault(),D(""),B(!0)):Ge.key==="Tab"&&!Ge.altKey&&!Ge.metaKey&&!Ge.ctrlKey?(Ge.preventDefault(),ne(void 0),T(pt=>sqe(pt,Ge.shiftKey?-1:1))):Ge.key==="Backspace"&&F===""&&H&&(Ge.preventDefault(),T(H),ne(void 0))},e[45]=H,e[46]=se.length,e[47]=G,e[48]=F,e[49]=Re):Re=e[49];let Ke=Re,mt;e[50]!==C||e[51]!==F?(mt=Ge=>{B(!0);let dn=W.current?void 0:aqe(j.current?"":F,Ge);if(j.current=!1,dn&&dn.kind!==C){ne(C),T(dn.kind),D(dn.text);return}D(Ge)},e[50]=C,e[51]=F,e[52]=mt):mt=e[52];let dt=mt,Ae="acpmux-newtab",xt="acpmux-newtab-box",Et="acpmux-newtab-row",jt;e[53]!==C?(jt=(0,ht.jsx)(ag,{kind:C}),e[53]=C,e[54]=jt):jt=e[54];let Bt=U>=0?`acpmux-omni-${U}`:void 0,Ve=C==="agent",Jt;e[55]!==dt?(Jt=Ge=>dt(Ge.target.value),e[55]=dt,e[56]=Jt):Jt=e[56];let rn,Rn;e[57]===Symbol.for("react.memo_cache_sentinel")?(rn=()=>{W.current=!0},Rn=()=>{W.current=!1},e[57]=rn,e[58]=Rn):(rn=e[57],Rn=e[58]);let _t;e[59]!==Ke||e[60]!==Ne||e[61]!==Bt||e[62]!==Ve||e[63]!==Jt||e[64]!==F?(_t=(0,ht.jsx)("input",{ref:J,className:"acpmux-newtab-field","aria-label":Ne,placeholder:Ne,value:F,"aria-controls":"acpmux-omni","aria-activedescendant":Bt,spellCheck:Ve,autoCapitalize:"off",autoCorrect:"off",onChange:Jt,onKeyDown:Ke,onCompositionStart:rn,onCompositionEnd:Rn}),e[59]=Ke,e[60]=Ne,e[61]=Bt,e[62]=Ve,e[63]=Jt,e[64]=F,e[65]=_t):_t=e[65];let An="acpmux-newtab-switch",Xt;e[66]!==S?(Xt=S(Aa.switchLabel),e[66]=S,e[67]=Xt):Xt=e[67];let zn=og.map(Ge=>(0,ht.jsxs)("button",{type:"button","aria-pressed":Ge===C,tabIndex:-1,className:Ge===C?"acpmux-newtab-kind is-selected":"acpmux-newtab-kind",title:w[Ge]?S(Aa.editShortcut,{kind:S(Aa.kinds[Ge]),keys:w[Ge]}):void 0,onClick:()=>xe(Ge),onContextMenu:dn=>{g&&(dn.preventDefault(),g(Ge))},children:[(0,ht.jsx)(ag,{kind:Ge}),(0,ht.jsx)("span",{children:S(Aa.kinds[Ge])}),w[Ge]&&(0,ht.jsx)("kbd",{children:w[Ge]})]},Ge)),Ot;e[68]!==Xt||e[69]!==zn?(Ot=(0,ht.jsx)("fieldset",{className:An,"aria-label":Xt,children:zn}),e[68]=Xt,e[69]=zn,e[70]=Ot):Ot=e[70];let mn;e[71]!==jt||e[72]!==_t||e[73]!==Ot?(mn=(0,ht.jsxs)("div",{className:Et,children:[jt,_t,Ot]}),e[71]=jt,e[72]=_t,e[73]=Ot,e[74]=mn):mn=e[74];let yn;e[75]!==C||e[76]!==b||e[77]!==$||e[78]!==L||e[79]!==Se||e[80]!==N?(yn=C!=="browser"&&(0,ht.jsx)(Gde,{projects:L,current:$,currentLabel:Se,icon:(0,ht.jsx)(Yde,{}),onPick:N,onBrowse:b}),e[75]=C,e[76]=b,e[77]=$,e[78]=L,e[79]=Se,e[80]=N,e[81]=yn):yn=e[81];let In;e[82]!==a||e[83]!==C||e[84]!==S?(In=C==="terminal"&&(0,ht.jsxs)("span",{className:"acpmux-newtab-chip",children:[(0,ht.jsx)(pqe,{}),a??S(Aa.thisMac)]}),e[82]=a,e[83]=C,e[84]=S,e[85]=In):In=e[85];let er;e[86]!==de||e[87]!==C?(er=C==="agent"&&(0,ht.jsxs)("span",{className:"acpmux-newtab-chip",children:[(0,ht.jsx)(ag,{kind:"agent"}),de]}),e[86]=de,e[87]=C,e[88]=er):er=e[88];let ae;e[89]!==s||e[90]!==C||e[91]!==n?(ae=C==="agent"&&s&&(0,ht.jsx)(s,{snapshot:n}),e[89]=s,e[90]=C,e[91]=n,e[92]=ae):ae=e[92];let st;e[93]!==yn||e[94]!==In||e[95]!==er||e[96]!==ae?(st=(0,ht.jsxs)("span",{className:"acpmux-newtab-context",children:[yn,In,er,ae]}),e[93]=yn,e[94]=In,e[95]=er,e[96]=ae,e[97]=st):st=e[97];let Lt;e[98]!==M||e[99]!==d||e[100]!==A||e[101]!==S?(Lt=M&&d&&(0,ht.jsx)("button",{type:"button",className:"acpmux-newtab-default",title:S(Aa.defaultKindHint),onClick:()=>{let Ge=rL[(rL.indexOf(M)+1)%rL.length];A(Ge),d(Ge)},children:S(Aa.defaultKind,{kind:S(Aa.defaultKinds[M])})}),e[98]=M,e[99]=d,e[100]=A,e[101]=S,e[102]=Lt):Lt=e[102];let Ye=`acpmux-send${P.trim()||C!=="browser"?" acpmux-send-ready":""}`,wt;e[103]!==S?(wt=S(Aa.open),e[103]=S,e[104]=wt):wt=e[104];let jn;e[105]!==S?(jn=S(Aa.open),e[105]=S,e[106]=jn):jn=e[106];let Kn=`${jn} \u21B5`,un;e[107]===Symbol.for("react.memo_cache_sentinel")?(un=(0,ht.jsx)(tL,{}),e[107]=un):un=e[107];let it;e[108]!==Ye||e[109]!==wt||e[110]!==Kn?(it=(0,ht.jsx)("button",{type:"submit",className:Ye,"aria-label":wt,title:Kn,children:un}),e[108]=Ye,e[109]=wt,e[110]=Kn,e[111]=it):it=e[111];let ft;e[112]!==st||e[113]!==Lt||e[114]!==it?(ft=(0,ht.jsxs)("div",{className:"acpmux-newtab-under",children:[st,Lt,it]}),e[112]=st,e[113]=Lt,e[114]=it,e[115]=ft):ft=e[115];let En;e[116]!==ye||e[117]!==mn||e[118]!==ft?(En=(0,ht.jsxs)("form",{className:xt,onSubmit:ye,children:[mn,ft]}),e[116]=ye,e[117]=mn,e[118]=ft,e[119]=En):En=e[119];let Pt;e[120]!==K||e[121]!==de||e[122]!==se||e[123]!==U||e[124]!==G||e[125]!==n.catalog||e[126]!==n.summary?.harness||e[127]!==S?(Pt=se.length>0&&(0,ht.jsx)("div",{ref:V,className:"acpmux-omni",id:"acpmux-omni",role:"listbox","aria-label":S(Aa.suggestions),children:se.map((Ge,dn)=>(0,ht.jsxs)("div",{id:`acpmux-omni-${dn}`,role:"option",tabIndex:-1,"aria-selected":dn===U,className:dn===U?"acpmux-omni-row is-selected":"acpmux-omni-row",onMouseMove:()=>dn!==U&&G(dn),onMouseDown:pt=>{pt.preventDefault(),K(Ge)},children:[(0,ht.jsx)(dqe,{row:Ge,agent:n.summary?.harness??n.catalog[0]?.id}),(0,ht.jsxs)("span",{className:"acpmux-omni-text",children:[(0,ht.jsxs)("span",{className:"acpmux-omni-title",children:[Ge.type==="ask"&&(0,ht.jsxs)("b",{children:[S(Aa.ask,{agent:de}),": "]}),uqe(Ge)]}),Wde(Ge)&&(0,ht.jsx)("span",{className:"acpmux-omni-detail",children:Wde(Ge)})]}),(0,ht.jsxs)("span",{className:"acpmux-omni-action",children:[Ge.type==="ask"?S(Aa.ask,{agent:de}):S(Aa.rows[Ge.type]),dn===U&&(0,ht.jsx)("kbd",{children:"\u21B5"})]})]},cqe(Ge)))}),e[120]=K,e[121]=de,e[122]=se,e[123]=U,e[124]=G,e[125]=n.catalog,e[126]=n.summary?.harness,e[127]=S,e[128]=Pt):Pt=e[128];let It;e[129]!==S?(It=S(Aa.allSessions),e[129]=S,e[130]=It):It=e[130];let mi;e[131]===Symbol.for("react.memo_cache_sentinel")?(mi=(0,ht.jsx)(hqe,{}),e[131]=mi):mi=e[131];let Ei;e[132]!==x||e[133]!==It?(Ei=(0,ht.jsxs)("button",{type:"button",className:"acpmux-newtab-all",onClick:x,children:[It,mi]}),e[132]=x,e[133]=It,e[134]=Ei):Ei=e[134];let Ti;e[135]!==y||e[136]!==S?(Ti=y&&(0,ht.jsx)("button",{type:"button",className:"acpmux-newtab-all",onClick:y,children:S("newtab.importAndSync")}),e[135]=y,e[136]=S,e[137]=Ti):Ti=e[137];let Ua;e[138]!==Ei||e[139]!==Ti?(Ua=(0,ht.jsxs)("div",{className:"acpmux-newtab-actions",children:[Ei,Ti]}),e[138]=Ei,e[139]=Ti,e[140]=Ua):Ua=e[140];let ml;return e[141]!==C||e[142]!==En||e[143]!==Pt||e[144]!==Ua?(ml=(0,ht.jsxs)("div",{className:Ae,"data-kind":C,children:[En,Pt,Ua]}),e[141]=C,e[142]=En,e[143]=Pt,e[144]=Ua,e[145]=ml):ml=e[145],ml}function lqe(t){return{sessionId:t.sessionId,title:t.displayTitle??t.sessionId,...t.harness?{harness:t.harness}:{},detail:wi(t.cwd)}}function cqe(t){switch(t.type){case"tab":case"workspace":case"session":return`${t.type}:${t.id}`;case"folder":return`folder:${t.path}`;case"command":return`command:${t.command}`;case"history":return`history:${t.url}`;default:return t.type}}function uqe(t){switch(t.type){case"tab":case"workspace":case"session":return t.title;case"folder":return wi(t.path);case"command":return t.command;case"history":return t.title||t.url;default:return t.text}}function Wde(t){switch(t.type){case"tab":case"workspace":case"session":return t.detail;case"folder":return wse(t.path);case"history":return t.title?t.url.replace(/^https?:\/\//,""):void 0;default:return}}function dqe(t){let e=(0,Nu.c)(11),{row:n,agent:r}=t;switch(n.type){case"tab":{let i;return e[0]!==n.kind?(i=(0,ht.jsx)(ag,{kind:n.kind}),e[0]=n.kind,e[1]=i):i=e[1],i}case"workspace":{let i;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(mqe,{}),e[2]=i):i=e[2],i}case"session":{let i;return e[3]!==n.harness?(i=(0,ht.jsx)(sy,{harness:n.harness}),e[3]=n.harness,e[4]=i):i=e[4],i}case"folder":{let i;return e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(Yde,{}),e[5]=i):i=e[5],i}case"command":case"run":{let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(ag,{kind:"terminal"}),e[6]=i):i=e[6],i}case"history":{let i;return e[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(fqe,{}),e[7]=i):i=e[7],i}case"open":{let i;return e[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(ag,{kind:"browser"}),e[8]=i):i=e[8],i}case"ask":{let i;return e[9]!==r?(i=(0,ht.jsx)(sy,{harness:r}),e[9]=r,e[10]=i):i=e[10],i}}}function sy(t){let e=(0,Nu.c)(2),{harness:n}=t,r;return e[0]!==n?(r=S6(n)?(0,ht.jsx)(M6,{agent:n,size:16}):(0,ht.jsx)(ag,{kind:"agent"}),e[0]=n,e[1]=r):r=e[1],r}function I1(t){let e=(0,Nu.c)(2),{children:n}=t,r;return e[0]!==n?(r=(0,ht.jsx)("svg",{className:"acpmux-icon",width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:n}),e[0]=n,e[1]=r):r=e[1],r}function ag(t){let e=(0,Nu.c)(3),{kind:n}=t;switch(n){case"terminal":{let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,ht.jsxs)(I1,{children:[(0,ht.jsx)("rect",{x:"1.75",y:"2.75",width:"12.5",height:"10.5",rx:"2"}),(0,ht.jsx)("path",{d:"m4.6 6.2 2 1.8-2 1.8M8.4 10h3"})]}),e[0]=r):r=e[0],r}case"browser":{let r;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,ht.jsxs)(I1,{children:[(0,ht.jsx)("circle",{cx:"8",cy:"8",r:"6.1"}),(0,ht.jsx)("path",{d:"M1.9 8h12.2M8 1.9c1.7 1.7 2.5 3.7 2.5 6.1S9.7 12.4 8 14.1C6.3 12.4 5.5 10.4 5.5 8S6.3 3.6 8 1.9Z"})]}),e[1]=r):r=e[1],r}case"agent":{let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,ht.jsxs)(I1,{children:[(0,ht.jsx)("path",{d:"M8 1.9c.4 2.9 1.6 4.1 4.6 4.6-3 .5-4.2 1.7-4.6 4.6-.4-2.9-1.6-4.1-4.6-4.6 3-.5 4.2-1.7 4.6-4.6Z"}),(0,ht.jsx)("path",{d:"M12.4 10.4c.15 1.1.6 1.55 1.7 1.7-1.1.15-1.55.6-1.7 1.7-.15-1.1-.6-1.55-1.7-1.7 1.1-.15 1.55-.6 1.7-1.7Z"})]}),e[2]=r):r=e[2],r}}}var Yde=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsx)(I1,{children:(0,ht.jsx)("path",{d:"M1.9 4.6c0-.8.6-1.4 1.4-1.4h2.6l1.5 1.6h5.3c.8 0 1.4.6 1.4 1.4v5.6c0 .8-.6 1.4-1.4 1.4H3.3c-.8 0-1.4-.6-1.4-1.4Z"})}),t[0]=e):e=t[0],e},pqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsxs)(I1,{children:[(0,ht.jsx)("rect",{x:"3",y:"3.4",width:"10",height:"7",rx:"1.2"}),(0,ht.jsx)("path",{d:"M1.6 12.6h12.8"})]}),t[0]=e):e=t[0],e},mqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsxs)(I1,{children:[(0,ht.jsx)("rect",{x:"2",y:"2.6",width:"12",height:"10.8",rx:"2"}),(0,ht.jsx)("path",{d:"M6.2 2.6v10.8"})]}),t[0]=e):e=t[0],e},fqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsxs)(I1,{children:[(0,ht.jsx)("circle",{cx:"8",cy:"8",r:"6.1"}),(0,ht.jsx)("path",{d:"M8 4.6V8l2.3 1.5"})]}),t[0]=e):e=t[0],e},hqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsx)(I1,{children:(0,ht.jsx)("path",{d:"m6.3 4.6 3.3 3.4-3.3 3.4"})}),t[0]=e):e=t[0],e};var dpe=R(qe(),1),Js=R(Q(),1);var epe=R(qe(),1);var Jde=R(qe(),1);function gqe(t,e={},n=jb()){return UI(`newTab.${t}`,e,n)}var Qde=new Map;function oL(){let t=(0,Jde.c)(4),e=ZI(),n;t[0]!==e?(n=Qde.get(e),t[0]=e,t[1]=n):n=t[1];let r=n;if(!r){let i;t[2]!==e?(i=(o,a)=>gqe(o,a,e),t[2]=e,t[3]=i):i=t[3],r=i,Qde.set(e,r)}return r}var $a=R(ee(),1);function tpe(t){let e=(0,epe.c)(25),{cards:n,onOpen:r,onShowAll:i}=t,o=oL(),a;e[0]!==o?(a=o("sections"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==o?(s=o("chats"),e[2]=o,e[3]=s):s=e[3];let l;e[4]!==s?(l=(0,$a.jsx)("span",{className:"nt-chats-tab is-selected",children:s}),e[4]=s,e[5]=l):l=e[5];let c;e[6]!==i?(c=()=>i(),e[6]=i,e[7]=c):c=e[7];let u;e[8]!==o?(u=o("allChats"),e[8]=o,e[9]=u):u=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,$a.jsx)("svg",{viewBox:"0 0 16 16",width:"12",height:"12","aria-hidden":"true",children:(0,$a.jsx)("path",{d:"m6 3.5 4.5 4.5L6 12.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),e[10]=d):d=e[10];let p;e[11]!==c||e[12]!==u?(p=(0,$a.jsxs)("button",{type:"button",className:"nt-chats-all",onClick:c,children:[u,d]}),e[11]=c,e[12]=u,e[13]=p):p=e[13];let m;e[14]!==l||e[15]!==p?(m=(0,$a.jsxs)("header",{className:"nt-chats-head",children:[l,p]}),e[14]=l,e[15]=p,e[16]=m):m=e[16];let f;e[17]!==n||e[18]!==o||e[19]!==r?(f=n.length===0?(0,$a.jsx)("p",{className:"nt-chats-empty",children:o("noChats")}):(0,$a.jsx)("div",{className:"nt-cards",children:n.map(x=>(0,$a.jsxs)("button",{type:"button",className:"nt-card","data-state":x.state,"aria-label":o("card.open",{title:x.title}),onClick:()=>r(x.sessionId),children:[(0,$a.jsxs)("span",{className:"nt-card-meta",children:[(0,$a.jsx)(sy,{harness:x.harness}),(0,$a.jsx)("span",{className:"nt-card-age",children:x.age})]}),(0,$a.jsx)("span",{className:"nt-card-title",children:x.title}),(0,$a.jsx)("span",{className:"nt-card-message",children:x.state==="idle"?x.message??"":o(`card.${x.state}`)})]},x.sessionId))}),e[17]=n,e[18]=o,e[19]=r,e[20]=f):f=e[20];let h;return e[21]!==a||e[22]!==m||e[23]!==f?(h=(0,$a.jsxs)("section",{className:"nt-chats","aria-label":a,children:[m,f]}),e[21]=a,e[22]=m,e[23]=f,e[24]=h):h=e[24],h}var bqe=new Set(["c","cc","cfg","cjs","conf","cpp","cs","css","csv","dart","env","ex","exs","gif","go","gradle","gz","h","hpp","html","ini","java","jpeg","jpg","js","json","jsx","kt","lock","log","lua","md","mdx","mjs","mts","nix","pdf","php","pl","plist","png","py","rb","rs","scss","sh","sql","svelte","svg","swift","tar","toml","ts","tsx","txt","vue","xml","yaml","yml","zig","zip","zsh"]);function ipe(t,e={}){let n=t.trim();if(!n)return{kind:"none"};if(n.startsWith("!"))return{kind:"terminal",command:n.slice(1).trim()};let r=yqe(n,e.home);return r?{kind:"url",url:r}:{kind:"prompt",text:n}}function yqe(t,e){let n=t.trim();if(!n)return;let r=xqe(n);if(r===void 0)return;let i=wqe(r,e);if(i!==void 0)return i;if(/\s/u.test(r))return;let o=vqe(r);if(o!==void 0)return kqe(r,o);if(!Eqe(r))return _qe(r)}function xqe(t){let e=t.search(/[\n\r\t]/);if(e<0)return t;let n=t.indexOf("://"),r=n<0?0:n+3;if(r>e)return;let i=t.slice(r).search(/[/?#]/);if(i<0||r+i>=e)return;let o=t.replace(/[\n\r\t]/g,"");return/\s/u.test(o)?void 0:o}function wqe(t,e){if(t.startsWith("/"))return"file://"+npe(t);if(!e||t!=="~"&&!t.startsWith("~/"))return;let n=e.endsWith("/")?e:e+"/";return"file://"+npe(t==="~"?n:n+t.slice(2))}var npe=t=>t.split("/").map(encodeURIComponent).join("/"),rpe=t=>/^[0-9]+$/.test(t)&&Number(t)<=65535;function vqe(t){let e=t.indexOf(":");if(e<0)return;let n=t.slice(0,e);if(!/^\p{L}[\p{L}\p{N}+.-]*$/u.test(n))return;let r=t.slice(e+1),i=/^[0-9]*/.exec(r)[0];if(i&&!r.startsWith("//")){let o=r.slice(i.length);if(!o||"/?#".includes(o[0]))return}return n.toLowerCase()}function kqe(t,e){switch(e){case"http":case"https":return Cqe(t)?t:void 0;case"file":return/^file:\/\/\//i.test(t)?t:void 0;case"about":return t.toLowerCase()==="about:blank"?"about:blank":void 0;default:return}}function Cqe(t){let e=/^[^:]+:\/\/([^/?#]*)/.exec(t);if(!e)return"";let n=e[1].replace(/^[^@]*@/,"");return n.startsWith("[")?n.slice(1,n.indexOf("]")):n.replace(/:[0-9]*$/,"")}function _qe(t){let e=t.search(/[/?#]/),n=e<0?t:t.slice(0,e);if(!n||n.includes("@"))return;let{host:r,hasPort:i}=Sqe(n);if(r){if(Lqe(r))return"http://"+t;if(i||Mqe(r))return"https://"+t}}function Sqe(t){let e=t.toLowerCase();if(e.startsWith("[")){let r=e.indexOf("]");if(r<0)return{host:"",hasPort:!1};let i=e.slice(1,r),o=e.slice(r+1);return o?o.startsWith(":")&&rpe(o.slice(1))?{host:i,hasPort:!0}:{host:"",hasPort:!1}:{host:i,hasPort:!1}}let n=e.indexOf(":");return n<0?{host:e,hasPort:!1}:rpe(e.slice(n+1))?{host:e.slice(0,n),hasPort:!0}:{host:"",hasPort:!1}}function Lqe(t){if(t==="localhost"||t.endsWith(".localhost")||t==="::1"||t==="0.0.0.0")return!0;let e=t.split(".");return e.length===4&&e[0]==="127"&&e.every(ope)}var ope=t=>/^[0-9]+$/.test(t)&&Number(t)<=255;function Mqe(t){let e=t.split(".");if(e.length<2||e.some(r=>!r))return!1;if(e.length===4&&e.every(ope))return!0;let n=e[e.length-1];return/^\p{L}{2,}$/u.test(n)||n.startsWith("xn--")}function Eqe(t){if(/[/?#:]/.test(t))return!1;let e=t.toLowerCase();if(e.startsWith("www."))return!1;let n=e.lastIndexOf(".");return n>0&&bqe.has(e.slice(n+1))}var Tqe=4,Rqe=4,Aqe=3;function $qe(t,e){let n=t.find(i=>i.id===e),r=t.filter(i=>i!==n);return(n?[n,...r]:r).slice(0,Tqe)}function spe(t,e){let n=ipe(t,e.home?{home:e.home}:{});if(n.kind==="none"||n.kind==="terminal")return[];let r=t.trim(),i=new Map;for(let l of e.agents)i.set(l.name,(i.get(l.name)??0)+1);let o=$qe(e.agents,e.lastAgent).map(l=>({type:"agent",harness:l.id,name:(i.get(l.name)??0)>1?`${l.name} (${l.id})`:l.name,text:r})),a={type:"search",text:r};return[...n.kind==="url"?[{type:"open",url:n.url,text:r},a,...o]:[...o,a],...Iqe(r,e.omnibar)]}function Iqe(t,e){return[...e.tabs.map(r=>({row:{type:"tab",id:r.id,title:r.title,...r.detail?{detail:r.detail}:{}},score:px(t,r.title,r.detail)+.6})),...e.workspaces.map(r=>({row:{type:"workspace",id:r.id,title:r.name,...r.detail?{detail:r.detail}:{}},score:px(t,r.name,r.detail)+.5})),...e.history.map(r=>({row:{type:"history",url:r.url,...r.title?{title:r.title}:{}},score:px(t,r.title,r.url.replace(/^https?:\/\/(www\.)?/,""))+.1}))].filter(r=>r.score>=1).sort((r,i)=>i.score-r.score).slice(0,Rqe).map(r=>r.row)}function lpe(t,e,n){if(!(t!==""&&!n)&&e.startsWith("!"))return{command:e.slice("!".length).replace(/^\s+/,"")}}function cpe(t,e=Date.now(),n=ve){return hF(t,Aqe).map(r=>({sessionId:r.sessionId,title:r.displayTitle??r.sessionId,...r.harness?{harness:r.harness}:{},age:Kde(r.updatedAt,e,n),...r.preview?{message:r.preview}:{},state:_2(r,!1)??"idle"}))}var ls=R(ee(),1);function ppe(t){let e=(0,dpe.c)(74),n=oL(),{snapshot:r,omnibar:i,location:o,lastAgent:a,home:s,now:l}=t,c=i===void 0?nL:i,[u,d]=(0,Js.useState)(o??""),[p,m]=(0,Js.useState)(!1),[f,h]=(0,Js.useState)(0),[x,g]=(0,Js.useState)(!1),y=(0,Js.useRef)(null),b=(0,Js.useRef)(!1),w=(0,Js.useRef)(!1),v=(0,Js.useRef)(!1),k;e[0]!==t?(k=()=>{v.current||(v.current=!0,t.onTouched?.())},e[0]=t,e[1]=k):k=e[1];let _=k,L;e[2]!==r.catalog?(L=r.catalog.map(Nqe),e[2]=r.catalog,e[3]=L):L=e[3];let S=L,C;e[4]!==S||e[5]!==s||e[6]!==a||e[7]!==c||e[8]!==x||e[9]!==u||e[10]!==p?(C=p&&!x?spe(u,{agents:S,omnibar:c,lastAgent:a,home:s}):[],e[4]=S,e[5]=s,e[6]=a,e[7]=c,e[8]=x,e[9]=u,e[10]=p,e[11]=C):C=e[11];let T=C,M=we(),A;e[12]!==l||e[13]!==r.sessions||e[14]!==M?(A=cpe(r.sessions,l,M),e[12]=l,e[13]=r.sessions,e[14]=M,e[15]=A):A=e[15];let $=A,N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=()=>h(0),e[16]=N):N=e[16];let F;e[17]!==T?(F=[T],e[17]=T,e[18]=F):F=e[18],(0,Js.useEffect)(N,F);let D,O;e[19]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{let de=()=>{y.current?.focus(),y.current?.select()};de();let Le=y.current?.ownerDocument.defaultView;return Le?.addEventListener(mx,de),()=>Le?.removeEventListener(mx,de)},O=[],e[19]=D,e[20]=O):(D=e[19],O=e[20]),(0,Js.useLayoutEffect)(D,O);let B;e[21]!==t?(B=de=>{switch(de.type){case"agent":return t.onAsk(de.harness,de.text);case"search":return t.onSearch(de.text);case"open":return t.onOpen(de.url);case"history":return t.onOpen(de.url);case"tab":case"workspace":return t.onJump(de.type,de.id)}},e[21]=t,e[22]=B):B=e[22];let P=B,U;e[23]!==x||e[24]!==u||e[25]!==_?(U=de=>{_(),m(!0);let Le=w.current||x?void 0:lpe(u,de,b.current);if(b.current=!1,Le){g(!0),d(Le.command);return}d(de)},e[23]=x,e[24]=u,e[25]=_,e[26]=U):U=e[26];let G=U,j;e[27]!==P||e[28]!==t||e[29]!==T||e[30]!==f||e[31]!==x||e[32]!==u||e[33]!==_?(j=de=>{if(_(),w.current||de.nativeEvent.isComposing)return;let Le=de.currentTarget;if(x){if(de.key==="Enter"){de.preventDefault();let Ne=u.trim();Ne&&t.onShell(Ne)}else(de.key==="Escape"||de.key==="Backspace"&&Le.selectionEnd===0)&&(de.preventDefault(),g(!1));return}if(b.current=Le.value!==""&&Le.selectionStart===0&&Le.selectionEnd===Le.value.length,(de.key==="ArrowDown"||de.key==="ArrowUp")&&T.length){de.preventDefault();let Ne=de.key==="ArrowDown"?1:-1;h(Be=>(Be+Ne+T.length)%T.length)}else if(de.key==="Enter"){de.preventDefault();let Ne=T[f];Ne&&P(Ne)}else de.key==="Escape"&&u&&(de.preventDefault(),d(""),m(!0))},e[27]=P,e[28]=t,e[29]=T,e[30]=f,e[31]=x,e[32]=u,e[33]=_,e[34]=j):j=e[34];let V=j,H=x||void 0,ne;e[35]!==x?(ne=x&&(0,ls.jsx)("span",{className:"nt-shell-glyph","aria-hidden":"true",children:"!"}),e[35]=x,e[36]=ne):ne=e[36];let J;e[37]!==n||e[38]!==x||e[39]!==M?(J=x?M("composer.shell"):n("placeholder"),e[37]=n,e[38]=x,e[39]=M,e[40]=J):J=e[40];let W;e[41]!==n||e[42]!==x||e[43]!==M?(W=x?M("composer.shellPlaceholder"):n("placeholder"),e[41]=n,e[42]=x,e[43]=M,e[44]=W):W=e[44];let ie=T.length?`nt-row-${f}`:void 0,Z=!x,ce;e[45]!==G?(ce=de=>G(de.target.value),e[45]=G,e[46]=ce):ce=e[46];let se,be;e[47]===Symbol.for("react.memo_cache_sentinel")?(se=()=>{w.current=!0},be=()=>{w.current=!1},e[47]=se,e[48]=be):(se=e[47],be=e[48]);let le;e[49]!==V||e[50]!==J||e[51]!==W||e[52]!==ie||e[53]!==Z||e[54]!==ce||e[55]!==u?(le=(0,ls.jsx)("input",{ref:y,className:"nt-field","aria-label":J,placeholder:W,value:u,"aria-controls":"nt-rows","aria-activedescendant":ie,spellCheck:Z,autoCapitalize:"off",autoCorrect:"off",onChange:ce,onKeyDown:V,onCompositionStart:se,onCompositionEnd:be}),e[49]=V,e[50]=J,e[51]=W,e[52]=ie,e[53]=Z,e[54]=ce,e[55]=u,e[56]=le):le=e[56];let ge;e[57]!==ne||e[58]!==le?(ge=(0,ls.jsxs)("div",{className:"nt-box",children:[ne,le]}),e[57]=ne,e[58]=le,e[59]=ge):ge=e[59];let ke;e[60]!==P||e[61]!==n||e[62]!==T||e[63]!==f?(ke=T.length>0&&(0,ls.jsx)("div",{className:"nt-rows",id:"nt-rows",role:"listbox","aria-label":n("suggestions"),children:T.map((de,Le)=>(0,ls.jsxs)("div",{id:`nt-row-${Le}`,role:"option",tabIndex:-1,"aria-selected":Le===f,"data-type":de.type,className:Le===f?"nt-row is-selected":"nt-row",onMouseMove:()=>Le!==f&&h(Le),onMouseDown:Ne=>{Ne.preventDefault(),P(de)},children:[de.type==="agent"?(0,ls.jsx)(sy,{harness:de.harness}):(0,ls.jsx)("span",{className:"nt-row-glyph"}),(0,ls.jsx)("span",{className:"nt-row-title",children:jqe(n,de)}),upe(de)&&(0,ls.jsx)("span",{className:"nt-row-detail",children:upe(de)}),(0,ls.jsxs)("span",{className:"nt-row-action",children:[Oqe(n,de),Le===f&&(0,ls.jsx)("kbd",{children:"\u21B5"})]})]},Pqe(de)))}),e[60]=P,e[61]=n,e[62]=T,e[63]=f,e[64]=ke):ke=e[64];let me;e[65]!==$||e[66]!==t.onOpenSession||e[67]!==t.onShowAll?(me=(0,ls.jsx)(tpe,{cards:$,onOpen:t.onOpenSession,onShowAll:t.onShowAll}),e[65]=$,e[66]=t.onOpenSession,e[67]=t.onShowAll,e[68]=me):me=e[68];let Se;return e[69]!==H||e[70]!==ge||e[71]!==ke||e[72]!==me?(Se=(0,ls.jsxs)("div",{className:"nt-screen","data-shell":H,children:[ge,ke,me]}),e[69]=H,e[70]=ge,e[71]=ke,e[72]=me,e[73]=Se):Se=e[73],Se}function Nqe(t){return{id:t.id,name:t.name}}function Pqe(t){switch(t.type){case"agent":return`agent:${t.harness}`;case"tab":case"workspace":return`${t.type}:${t.id}`;case"history":return`history:${t.url}`;default:return t.type}}function jqe(t,e){switch(e.type){case"agent":return t("row.ask",{agent:e.name});case"search":case"open":return e.text;case"history":return e.title??e.url;default:return e.title}}function upe(t){switch(t.type){case"agent":return t.text;case"open":return t.url===t.text?void 0:t.url;case"history":return t.title?t.url.replace(/^https?:\/\/(www\.)?/,""):void 0;case"tab":case"workspace":return t.detail;default:return}}function Oqe(t,e){switch(e.type){case"agent":return"";case"search":return t("row.search");case"open":return t("row.open");case"tab":return t("row.tab");case"workspace":return t("row.workspace");case"history":return t("row.history")}}function mpe(t){let{callNative:e,cwd:n}=t,r=o=>{o.catch(()=>{})},i=o=>r(e("newTab.remember",{agent:o}));return{onAsk(o,a){i(o),t.leave();let s={harness:o,...n?{cwd:n}:{}};r(e("chat.new",s).then(()=>a?e("chat.send",{text:a}):void 0))},onOpen:o=>{if(o.startsWith("file://"))return r(e("file.open",{path:decodeURIComponent(new URL(o).pathname),where:"tab"}));r(e("tab.open",{kind:"browser",text:o}))},onSearch:o=>r(e("tab.open",{kind:"browser",text:o,search:!0})),onShell(o){t.leave(),t.runShell(o,n)},onJump:(o,a)=>r(e("tab.jump",{target:o,id:a})),onOpenSession(o){t.leave(),t.selectSession(o)},onShowAll:t.showAllChats,onTouched:()=>r(e("newTab.touched"))}}var hpe=R(qe(),1),aL=R(Q(),1),gpe=R(Ms(),1);var fpe="acpmux-newtab-adopt";function bpe(t){let e=(0,hpe.c)(3),[n,r]=(0,aL.useState)(0),i,o;return e[0]!==t?(i=()=>{let a=s=>{let l=iL({newTab:s.detail});l&&(0,gpe.flushSync)(()=>{t(l),r(Dqe)})};return window.addEventListener(fpe,a),()=>window.removeEventListener(fpe,a)},o=[t],e[0]=t,e[1]=i,e[2]=o):(i=e[1],o=e[2]),(0,aL.useEffect)(i,o),n}function Dqe(t){return t+1}function gF(t){return typeof t=="string"&&t.trim()?t:void 0}function ype(t,e){return e&&!t?e:t}var Fqe=/\bhttps?:\/\/[^\s<>"'`()[\]{}]+/g,Bqe=new Set(["localhost","127.0.0.1","0.0.0.0","[::1]"]);function zqe(t){let e=t.hostname.toLowerCase();if(!(!Bqe.has(e)&&!e.endsWith(".localhost")))return e==="0.0.0.0"&&(t.hostname="localhost"),t}var qqe=t=>/^(www\.)?github\.com$/i.test(t.hostname)&&/^\/[^/]+\/[^/]+\/pull\/\d+/.test(t.pathname);function Hqe(t){let e=t.text?[t.text]:[];for(let n of t.items??[])e.push(n.text,n.tool?.inputSummary??"",n.tool?.output??"");return e}function Gqe(t,e=20){let n=[],r=new Set;for(let i=t.length-1;i>=0;i-=1){let o=Hqe(t[i]);for(let a=o.length-1;a>=0;a-=1){let s=[...o[a].match(Fqe)??[]].reverse();for(let l of s){let c;try{c=new URL(l.replace(/[.,;:!?]+$/,""))}catch{continue}let u=zqe(c)?0:qqe(c)?1:void 0,d=c.toString();u===void 0||r.has(d)||(r.add(d),n.push({url:d,rank:u}))}}}return n.sort((i,o)=>i.rank-o.rank).map(i=>i.url).slice(0,e)}function xpe(t){let e=t.sessions.find(n=>n.sessionId===t.sessionId)?.cwd;return{...e?{cwd:e}:{},urls:Gqe(t.rows)}}var vpe=R(qe(),1);var Uqe=6e4;function kpe(){return new uI({defaultOptions:{queries:{retry:1}}})}var wpe="cmux.acpmux.harnessCatalog.v1",bF=class{constructor(e=Vqe){this.storage=e}storage;memory;loaded=!1;read(){if(this.loaded)return this.memory;this.loaded=!0;try{let e=JSON.parse(this.storage()?.getItem(wpe)??"null");e&&Array.isArray(e.catalog)&&typeof e.at=="number"&&(this.memory={catalog:e.catalog,at:e.at})}catch{}return this.memory}merge(e,n){let r=new Map((this.read()?.catalog??[]).map(o=>[o.id,o])),i=e.map(o=>o.models.length>0||!r.get(o.id)?.models.length?o:{...o,models:r.get(o.id).models});this.memory={catalog:i,at:n};try{this.storage()?.setItem(wpe,JSON.stringify(this.memory))}catch{}return i}};function Vqe(){try{return globalThis.localStorage}catch{return}}var Zqe=new bF;function Wqe(t){return["acpmux","harnesses",t]}function Cpe(t,e,n){let r=(0,vpe.c)(21),i=n===void 0?Zqe:n,o=t?.id??0,a;r[0]!==o?(a=Wqe(o),r[0]=o,r[1]=a):a=r[1];let s;r[2]!==i||r[3]!==t?(s=async()=>i.merge(await t.client.harnesses(),Date.now()),r[2]=i,r[3]=t,r[4]=s):s=r[4];let l=t!==void 0,c;r[5]!==i?(c=()=>i.read()?.catalog,r[5]=i,r[6]=c):c=r[6];let u;r[7]!==a||r[8]!==s||r[9]!==l||r[10]!==c?(u={queryKey:a,queryFn:s,enabled:l,staleTime:Uqe,initialData:c,initialDataUpdatedAt:0,placeholderData:iI},r[7]=a,r[8]=s,r[9]=l,r[10]=c,r[11]=u):u=r[11];let d=dI(u),p;r[12]!==i||r[13]!==e?(p=()=>i.read()?.catalog??e,r[12]=i,r[13]=e,r[14]=p):p=r[14];let m=p;if(!t){let h;return r[15]!==m||r[16]!==e?(h=e.length>0?e:m(),r[15]=m,r[16]=e,r[17]=h):h=r[17],h}if(d.dataUpdatedAt===0&&e.length>0)return e;let f;return r[18]!==m||r[19]!==d.data?(f=d.data??m(),r[18]=m,r[19]=d.data,r[20]=f):f=r[20],f}var _pe="cmux.acpmux.harnessProfiles.v1",yF=class{constructor(e=Kqe){this.storage=e}storage;profiles;saved="";get(e){return e?this.load().get(e):void 0}observe(e,n=!1){if(!e?.harness||!e.sessionId)return;let r=this.load(),i=r.get(e.harness),o={harness:e.harness,startModel:n&&e.model?e.model:i?.startModel,model:e.model??i?.model,modes:e.modes??i?.modes,configOptions:e.configOptions?.length?e.configOptions:i?.configOptions,promptCapabilities:e.promptCapabilities??i?.promptCapabilities};r.set(e.harness,o),this.save()}load(){if(this.profiles)return this.profiles;this.profiles=new Map;try{let e=JSON.parse(this.storage()?.getItem(_pe)??"[]");if(Array.isArray(e))for(let n of e)typeof n?.harness=="string"&&this.profiles.set(n.harness,n)}catch{}return this.profiles}save(){let e=JSON.stringify([...this.load().values()]);if(e!==this.saved){this.saved=e;try{this.storage()?.setItem(_pe,e)}catch{}}}};function Kqe(){try{return globalThis.localStorage}catch{return}}var sL=new yF;var Xqe={now:()=>typeof performance>"u"?Date.now():performance.now(),schedule:(t,e)=>{let n=setTimeout(t,e);return()=>clearTimeout(n)}},Yqe=150,Qqe=3e4;function Jqe(){let t,e=new Promise(n=>t=n);return{resolve:t,promise:e}}var xF=Su,lL=class{constructor(e=Xqe){this.clock=e}clock;intent;modelPick;port;generation=0;current={};listeners=new Set;left;hintTarget;cancelHint;lastHint;handlers={};subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));view=()=>this.current;setHandlers(e){this.handlers=e}connect(e){this.port=e;let n=this.intent;n&&n.phase!=="failed"&&!n.running&&this.run(n)}disconnect(e){e&&this.port!==e||(this.port=void 0,this.intent&&(this.intent.running=void 0))}switchTo(e,n){let r=this.intent,i=this.port,o=i?.shown(),a=n??r?.cwd??o?.cwd;if(r&&r.harness===e&&r.phase!=="failed"&&r.cwd===a)return r.done.promise;let s=r?.shown??!(i?.turnRunning()??!1);if(!s&&r&&o?.harness===e)return this.cancel(),Promise.resolve(o.sessionId);let l=Jqe(),c={id:++this.generation,harness:e,cwd:a,shown:s,phase:"starting",queued:r?.queued??[],config:{options:{}},tickets:new Map,done:l};return r&&this.retire(r,!1),this.modelPick=void 0,this.intent=c,s&&o&&!r&&(this.left=o.empty?{sessionId:o.sessionId,harness:o.harness}:void 0,i?.leave()),s&&this.left&&this.left.harness===e&&(c.sessionId=this.left.sessionId,c.reused=!0),this.cancelHintTimer(),this.changed(),this.run(c),l.promise}send(e,n=[],r){let i=this.intent;if(!i)return;i.phase==="failed"&&(this.switchTo(i.harness,i.cwd),i=this.intent);let{promise:o,resolve:a,reject:s}=(()=>{let l,c;return{promise:new Promise((d,p)=>{l=d,c=p}),resolve:l,reject:c}})();return i.queued=[...i.queued,{id:crypto.randomUUID(),text:e,attachments:n,at:Date.now(),resolve:a,reject:s,written:r}],i.shown||(i.shown=!0,this.port?.leave()),this.changed(),i.sessionId&&!i.running&&this.run(i),o}pickModel(e,n){let r=this.intent;if(r)return r.config={...r.config,model:e},this.changed(),Promise.resolve();let i=this.port;if(!i||!n)return Promise.resolve();let o={sessionId:n.sessionId,from:n.model,model:e};return this.modelPick=o,this.changed(),i.setModel(e).catch(a=>{this.modelPick===o&&(this.modelPick=void 0,this.changed(),this.handlers.notice?.(ve("switch.modelFailed",{model:e,reason:xF(a)||"?"})))})}pickMode(e){return this.intent?(this.intent.config={...this.intent.config,mode:e},this.intent.tickets.set("mode",this.takeTicket({method:"session/set_mode",params:{modeId:e}})),this.changed(),!0):!1}pickConfig(e,n){return this.intent?(this.intent.config={...this.intent.config,options:{...this.intent.config.options,[e]:n}},this.intent.tickets.set(`config:${e}`,this.takeTicket({method:"session/set_config_option",params:{configId:e,value:n}})),this.changed(),!0):!1}takeTicket(e){let n=this.handlers.gesture;if(!n)return Promise.resolve(void 0);try{return n(e).catch(()=>{})}catch{return Promise.resolve(void 0)}}cancelQueued(e){let n=this.intent,r=n?.queued.find(i=>i.id===e);!n||!r||(n.queued=n.queued.filter(i=>i!==r),this.handlers.restore?.(r.text,r.attachments),r.reject(new Error(ve("switch.cancelled"))),this.changed())}retry(){let e=this.intent;e?.phase==="failed"&&this.switchTo(e.harness,e.cwd)}cancel(){let e=this.intent;e&&(this.intent=void 0,this.retire(e,!0)),this.modelPick=void 0,this.left=void 0,this.changed()}hint(e){e!==this.hintTarget&&(this.cancelHintTimer(),this.hintTarget=e,!(!e||!this.port?.prewarmSupported())&&(this.cancelHint=this.clock.schedule(()=>{this.cancelHint=void 0;let n=this.port;if(!n||this.hintTarget!==e)return;let r=n.shown(),i=this.intent?.harness??r?.harness;if(e===i)return;let o=this.clock.now(),a=this.lastHint;a?.harness===e&&o-a.at<Qqe||(this.lastHint={harness:e,at:o},n.prewarm(e,this.intent?.cwd??r?.cwd))},Yqe)))}cancelHintTimer(){this.cancelHint?.(),this.cancelHint=void 0}retire(e,n){if(e.sessionId&&!e.reused&&e.phase!=="failed"&&this.port?.discard(e.sessionId),e.sessionId=void 0,n&&e.queued.length){this.handBack(e.queued);for(let r of e.queued)r.reject(new Error(ve("switch.cancelled")));e.queued=[]}e.done.resolve(void 0)}async run(e){let n=this.port;if(!n||e.running)return;e.running=n;let r=e.sessionId;if(!r){try{r=await n.create(e.harness,e.cwd)}catch(p){if(e.running===n&&(e.running=void 0),this.intent!==e||this.port!==n)return;this.fail(e,p);return}if(this.intent!==e){r&&n.discard(r);return}if(!r){e.running=void 0,this.fail(e,new Error(ve("switch.noSession")));return}e.sessionId=r}if(!e.shown){e.running=void 0,e.phase="waiting",this.changed();return}let i;try{i=await n.open(r)}catch(p){if(e.running===n&&(e.running=void 0),this.intent!==e||this.port!==n)return;this.fail(e,p);return}if(this.intent!==e)return;if(!i){e.running=void 0,this.port===n&&this.fail(e,new Error(ve("switch.noSession")));return}this.left=void 0,this.handlers.opened?.(i);let{model:o,mode:a,options:s}=e.config,l=[];o&&l.push(n.setModel(o).catch(p=>this.refused(o,p)));let c=p=>{let m=p?.code;typeof m=="string"&&m.startsWith("transport.")&&this.handlers.notice?.(Su(p))},u=p=>e.tickets.get(p)??Promise.resolve(void 0);a&&l.push(u("mode").then(p=>n.setMode(a,p)).catch(c));for(let[p,m]of Object.entries(s))l.push(u(`config:${p}`).then(f=>n.setConfig(p,m,f)).catch(c));if(await Promise.all(l),this.intent!==e)return;let d=e.queued;e.queued=[],this.intent=void 0;for(let p of d)n.send(p.text,p.attachments,p.id).then(p.resolve,p.reject),p.written?.();this.changed(),e.done.resolve(i)}handBack(e){this.handlers.restore?.(e.map(n=>n.text).join(` +`}clear(){this.log=[],this.bytes=0,this.droppedCount=0,this.latencies=[],this.notify()}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}body(e){let n=e.length>16384;return{size:e.length,text:n?e.slice(0,16384):e,truncated:n||void 0}}recordLatency(e){this.latencies.push(e),this.latencies.length>2e3&&this.latencies.shift()}push(e){let n={seq:this.nextSeq++,at:this.now(),...e};for(this.log.push(n),this.bytes+=n.text?.length??0;this.log.length>2e3||this.bytes>2097152&&this.log.length>1;){let r=this.log.shift();this.bytes-=r.text?.length??0,this.droppedCount+=1}this.notify()}notify(){for(let e of this.listeners)e()}},D0=new FO;function ui(t){return Math.round(t*100)/100}function Mu(t,e){return t.length===0?0:t[Math.min(t.length-1,Math.max(0,Math.round((t.length-1)*e)))]}function S6(t){return Mu([...t].sort((e,n)=>e-n),.5)}function lFe(t){let e=[];for(let n=1;n<t.length;n+=1)e.push(t[n]-t[n-1]);return e}function cFe(t,e){if(!(e>0))return 0;let n=0;for(let r of t)n+=Math.max(0,Math.round(r/e)-1);return n}function __(t,e){let n=lFe(t).sort((r,i)=>r-i);return{frames:t.length,nominal_ms:ui(e),p50_ms:ui(Mu(n,.5)),p95_ms:ui(Mu(n,.95)),p99_ms:ui(Mu(n,.99)),max_ms:ui(n.at(-1)??0),dropped_frames:cFe(n,e)}}function A2(t){let e=[...t].sort((n,r)=>n-r);return{p50_ms:ui(Mu(e,.5)),p95_ms:ui(Mu(e,.95)),max_ms:ui(e.at(-1)??0)}}function jse(t,e,n,r,i){let o=Math.max(0,n),a=Math.min(i,n+r);return a<=o?!1:t>o+.5||e<a-.5}var BO=class{capacity;interval;layout;react;blank;next=0;count=0;constructor(e=2048){this.capacity=e,this.interval=new Float64Array(e),this.layout=new Float64Array(e),this.react=new Float64Array(e),this.blank=new Uint8Array(e)}get size(){return this.count}clear(){this.next=0,this.count=0}push(e,n,r,i){this.interval[this.next]=e,this.layout[this.next]=n,this.react[this.next]=r,this.blank[this.next]=i?1:0,this.next=(this.next+1)%this.capacity,this.count=Math.min(this.capacity,this.count+1)}samples(){let e=[],n=(this.next-this.count+this.capacity)%this.capacity;for(let r=0;r<this.count;r+=1){let i=(n+r)%this.capacity;e.push({interval:this.interval[i],layout:this.layout[i],react:this.react[i],other:Math.max(0,this.interval[i]-this.layout[i]-this.react[i]),blank:this.blank[i]===1})}return e}};function Ose(t){return{keys:t.length,to_frame:A2(t.map(e=>e.frame)),to_paint:A2(t.map(e=>e.paint))}}var zO=class{enabled=!1;ring=new BO;layoutSinceMark=0;reactSinceMark=0;lastMark;mountedTop=0;mountedBottom=0;commitWaiters=[];typing=[];agentMarks={};keyListener;enable(e=typeof document>"u"?void 0:document){this.enabled=!0,!(this.keyListener||!e)&&(this.keyListener=n=>{if(!n.target?.closest?.(".acpmux-composer"))return;let i=n.timeStamp;requestAnimationFrame(()=>{let o=performance.now(),a=new MessageChannel;a.port1.onmessage=()=>{this.typing.push({frame:o-i,paint:performance.now()-i}),this.typing.length>4096&&this.typing.shift(),a.port1.close()},a.port2.postMessage(0)})},e.addEventListener("keydown",this.keyListener,!0))}markAgent(e){e==="handshakeStart"&&(delete this.agentMarks.handshakeReady,delete this.agentMarks.composerReady,delete this.agentMarks.firstToken),!(e==="firstToken"&&this.agentMarks.firstToken!==void 0)&&(this.agentMarks[e]=performance.now())}agentLatency(){let e=this.agentMarks.handshakeStart,n={};for(let[r,i]of Object.entries(this.agentMarks))i!==void 0&&(n[`${r}_ms`]=ui(e===void 0?i:i-e));return e!==void 0&&this.agentMarks.composerReady!==void 0&&(n.composer_ready_ms=ui(this.agentMarks.composerReady-e)),e!==void 0&&this.agentMarks.firstToken!==void 0&&(n.first_token_ms=ui(this.agentMarks.firstToken-e)),n}addLayout(e){this.layoutSinceMark+=e}commit(e,n,r,i,o){this.reactSinceMark+=Math.max(0,e-n),this.mountedTop=r,this.mountedBottom=i;let a=this.commitWaiters;this.commitWaiters=[];for(let s of a)s(o)}nextCommit(e=1e4){return new Promise(n=>{let r=setTimeout(()=>{this.commitWaiters=this.commitWaiters.filter(o=>o!==i),n(void 0)},e),i=o=>{clearTimeout(r),n(o)};this.commitWaiters.push(i)})}resetFrames(){this.ring.clear(),this.lastMark=void 0,this.layoutSinceMark=0,this.reactSinceMark=0}markFrame(e,n){this.lastMark!==void 0&&this.ring.push(e-this.lastMark,this.layoutSinceMark,this.reactSinceMark,n),this.lastMark=e,this.layoutSinceMark=0,this.reactSinceMark=0}stats(e=!1){let n=this.ring.samples(),r={frames:n.length,blank_frames:n.filter(i=>i.blank).length,interval:A2(n.map(i=>i.interval)),layout:A2(n.map(i=>i.layout)),react:A2(n.map(i=>i.react)),other:A2(n.map(i=>i.other))};return e&&(r.samples=n.map(i=>({interval_ms:ui(i.interval),layout_ms:ui(i.layout),react_ms:ui(i.react),other_ms:ui(i.other),blank:i.blank}))),r}},Mn=new zO;var uFe=["Desktop","Documents","Downloads","Pictures","Music","Movies","Library/Mobile Documents","Library/CloudStorage","Library/Containers","Library/Group Containers","Library/Mail","Library/Messages","Library/Safari","Library/Calendars"],dFe=["/Volumes","/Network","/net"];function pFe(t){return/^\/(Users|home)\/[^/]+/i.exec(t)?.[0]}function Dse(t){let e=t.replace(/\/+$/,"");if(!e.startsWith("/")||e===""||e.split("/").includes(".."))return!1;let n=e.toLowerCase(),r=o=>n===o.toLowerCase()||n.startsWith(`${o.toLowerCase()}/`);if(dFe.some(r))return!1;let i=pFe(e);return i?n===i.toLowerCase()?!1:!uFe.some(o=>r(`${i}/${o}`)):!0}function Fse(t,e){return t.adopt?{mcpServers:[],_meta:{acpmux:{harness:e??t.adopt.harness,adopt:t.adopt}}}:{...t.cwd?{cwd:t.cwd}:{},mcpServers:[],_meta:{acpmux:{harness:e,...t.peer?{peer:t.peer}:{}}}}}function mFe(t,e){return t?._meta?.acpmux?.agentSessionId===e.agentSessionId}var Bse="_acpmux/prewarm",qO="available_commands_update",zse="usage_update";function qse(t,e){let n=t??{},r=n?.request??n,i=n?.sessionId??r?.sessionId,o=n?.permissionId??r?.permissionId;if(!(!o||i!==e))return{permissionId:String(o),groupId:typeof n.groupId=="string"?n.groupId:void 0,turnId:typeof n.turnId=="string"?n.turnId:void 0,title:r.toolCall?.title,kind:r.toolCall?.kind,pending:!0,options:(r.options??[]).map(a=>({id:String(a.optionId??a.id),name:String(a.name??a.optionId),allow:String(a.kind??"").startsWith("allow")}))}}function fFe(t,e,n){let r=typeof n?.promptId=="string"?n.promptId:void 0;if(!r)return;let i=e.get(r);i&&t.delete(i),e.delete(r)}function HO(...t){let e=new Map;for(let n of t.flat())e.set(n.seq,n);return[...e.values()].sort((n,r)=>n.seq-r.seq)}function hFe(t,e,n,r){n.add(r);for(let i of e.get(r)??[])t.delete(i);e.delete(r)}function gFe(t,e,n){return t||(n?void 0:e[0]?.sessionId)}function Vse(t,e){if(!Array.isArray(t))return;let n=new Map;for(let i of Array.isArray(e)?e:[])typeof i?.path=="string"&&Number.isInteger(i.line)&&i.line>0&&!n.has(i.path)&&n.set(i.path,i.line);let r=t.filter(i=>i?.type==="diff"&&typeof i.path=="string"&&typeof i.newText=="string").map(i=>({path:i.path,oldText:typeof i.oldText=="string"?i.oldText:void 0,newText:i.newText,line:n.get(i.path)}));return r.length?r:void 0}function bFe(t,e){return!t||!Array.isArray(e)?t:Vse(t.map(n=>({type:"diff",...n})),e)??t}function yFe(t,e,n,r,i){let o=t?.tool,a=e.title??e.name,s=String(e.status??o?.status??"in_progress"),l=s==="completed"||s==="failed";return{kind:"tool",text:String(a??t?.text??n),tool:{id:n,title:String(e.title??o?.title??n),kind:e.kind??o?.kind,status:s,inputSummary:e.rawInput?JSON.stringify(e.rawInput):o?.inputSummary,output:r||vFe(e.rawOutput)||(e.content===void 0?o?.output:void 0),command:xFe(e.rawInput)??o?.command,exitCode:wFe(e.rawOutput)??o?.exitCode,startedAt:o?.startedAt??i,endedAt:o?.endedAt??(l?i:void 0),locations:Array.isArray(e.locations)?e.locations:o?.locations,diffs:e.content===void 0?bFe(o?.diffs,e.locations):Vse(e.content,Array.isArray(e.locations)?e.locations:o?.locations)}}}function xFe(t){let e=t?.command;if(typeof e=="string")return e;if(!Array.isArray(e)||!e.every(o=>typeof o=="string")||!e.length)return;let[n,r,i]=e;return e.length===3&&/(^|\/)(ba|z|da|fi)?sh$/.test(n)&&/^-l?c$/.test(r)?i:e.map(o=>/^[\w@%+=:,./-]+$/.test(o)?o:`'${o.replace(/'/g,"'\\''")}'`).join(" ")}function wFe(t){let e=t?.exit_code??t?.exitCode;return typeof e=="number"?e:void 0}function vFe(t){let e=t?.formatted_output;return typeof e=="string"?e:""}function UO(t){return typeof t=="string"?t:t?.type==="text"?String(t.text??""):t?.type==="content"?UO(t.content):Array.isArray(t)?t.map(UO).join(""):""}function Hse(t){return t.dir==="in"&&t.msg.method==="session/update"?t.msg.params?.update:void 0}var Gse="cmux-bridge://acpmux/",Zse=t=>{let e=!1,n=()=>{e||(e=!0,t())};requestAnimationFrame(n),setTimeout(n,50)};function kFe(t,e){let n=t.at(-1);return n?.kind==="thought"&&!n.tool?[...t.slice(0,-1),{...n,text:n.text+e}]:[...t,{kind:"thought",text:e}]}var CFe=0,GO=t=>`${t}-${CFe+=1}`,VO=class extends Map{order=new Map;local=new Set;made=0;current;latest=0;set(e,n){return this.order.has(e)?this.current!==void 0&&(this.latest=Math.max(this.latest,this.current)):this.current!==void 0?(this.order.set(e,this.current),this.latest=Math.max(this.latest,this.current)):(this.order.set(e,this.latest+.5+(this.made+=1e-6)),this.local.add(e)),super.set(e,n)}saw(e){this.latest=Math.max(this.latest,e)}delete(e){return this.order.delete(e),this.local.delete(e),super.delete(e)}clear(){this.order.clear(),this.local.clear(),this.latest=0,super.clear()}retain(e){for(let n of this.values())e(n)||this.delete(n.id);this.latest=0}placeLocalLast(){[...this.local].sort((n,r)=>(this.order.get(n)??0)-(this.order.get(r)??0)).forEach((n,r)=>this.order.set(n,this.latest+.5+(r+1)*1e-6))}sorted(){return[...this.values()].sort((e,n)=>(this.order.get(e.id)??0)-(this.order.get(n.id)??0)||e.at-n.at)}},$2=class t{constructor(e,n,r,i=s=>new WebSocket(s),o="native",a=D0){this.openSocket=i;this.gitRoute=o;this.wire=a;this.host=e,this.listener=n,this.onLost=r,this.selectedSessionId=e.sessionId}openSocket;gitRoute;wire;static scheduleFrame;frameSnapshot;socket;nextRequest=1;pending=new Map;events=[];rows=new VO;sessions=[];sessionEntries=new WeakMap;unseen=new Set;selectedSessionId;missingSession;summary;queue=[];pendingPermission;groupedPermissions=new Map;commands=[];usage;commandsApplied=!1;optimisticPromptRows=new Map;optimisticPromptTexts=new Map;promptAccepts=new Map;failedPrompts=new Map;firstSeq;lastSeq=0;turnOpen=!1;canFork=!1;handoffSupported=!1;extensions=[];localOrigin=!1;origin="unknown";handoff=new y_((e,n)=>this.request(e,n,15e3),()=>this.emit());permissions=new C_((e,n)=>this.request(e,n,15e3),()=>{for(let e of this.permissions.state.groups)for(let n of e.items)n.state!=="pending"&&this.groupedPermissions.delete(n.permissionId);!this.permissions.state.supported&&!this.pendingPermission&&(this.pendingPermission=[...this.groupedPermissions.values()].at(-1)),this.emit()});forking=!1;streamingAssistant;streamingAssistantMessageId;streamingActivity;supersededMessageIds=new Set;messageRows=new Map;toolRows=new Map;listener;host;peers=[];reconnectTimer;reconnectDelay=250;onLost;opening=!1;hasConnected=!1;closed=!1;selectionGeneration=0;attachedGeneration=-1;historyExhausted=!1;static async connect(e,n,r,i,o,a){let s=new t(e,n,r,i,o,a);return await s.open(),s}async open(){if(this.opening||this.closed)return;this.opening=!0;let e=new URL(this.host.endpoint??Gse);this.host.token&&e.searchParams.set("token",this.host.token),this.wire.lifecycle("connecting",{endpoint:this.host.endpoint?Pse(this.host.endpoint):Gse,sessionId:this.selectedSessionId}),await new Promise((n,r)=>{let i=this.openSocket(e);this.socket=i;let o=!1;i.onopen=()=>{o=!0,this.wire.lifecycle("open"),n()},i.onerror=()=>{this.wire.lifecycle("error",{message:o?"WebSocket error":"Unable to connect"}),this.opening=!1,r(new Error(we("error.connectFailed")))},i.onclose=a=>{if(this.socket===i){if(this.wire.lifecycle("close",{code:a?.code,reason:a?.reason||void 0,wasClean:a?.wasClean,established:o}),!o){this.opening=!1,r(new Error(we("error.closedBeforeConnect")));return}if(this.handoff.disconnect(),this.groupedPermissions.clear(),this.permissions.disconnected(),this.rejectPending(),this.emit("disconnected"),!(!this.hasConnected||this.closed))if(this.onLost){this.wire.lifecycle("lost",{message:"asking for a fresh handshake"});let s=this.onLost;this.close(),s()}else this.scheduleReconnect()}},i.onmessage=a=>this.receive(String(a.data))});try{let n=await this.request("initialize",{protocolVersion:1,clientInfo:{name:"cmux-react-agent-pane",version:"1"},clientCapabilities:{}});this.canFork=M2(n,L2);let r=n?._meta?.acpmux?.extensions;this.extensions=Array.isArray(r)?r.map(String):[],this.localOrigin=n?._meta?.acpmux?.origin==="local";let i=n?._meta?.acpmux?.origin;this.origin=i==="local"||i==="remote"||i==="peer"?i:"unknown",this.handoffSupported=Mse(n);let o=Rse(n);o||this.groupedPermissions.clear(),this.permissions.configure(o);let a=await this.request("_acpmux/status",{}).catch(()=>{});this.peers=Array.isArray(a?.peers)?a.peers.map(d=>typeof d?.name=="string"?d.name:void 0).filter(d=>!!d):[];let s=await this.request("_acpmux/watch",{enabled:!0});this.sessions=this.reread(s?.sessions),this.selectedSessionId&&!this.sessions.some(d=>d.sessionId===this.selectedSessionId)&&(this.host.sessionMustExist&&(this.missingSession=this.selectedSessionId),this.selectedSessionId=this.host.sessionMustExist?void 0:this.sessions[0]?.sessionId,this.selectionGeneration+=1,this.resetSessionState()),this.selectedSessionId=gFe(this.selectedSessionId,this.sessions,this.host.newSession||this.missingSession!==void 0),this.selectedSessionId&&this.markSeen(this.selectedSessionId);let l=this.lastSeq,c=this.selectedSessionId,u=this.selectionGeneration;if(c){let d=await this.attach(c,u),p=d.length>0?Math.min(...d.map(m=>m.seq)):0;l>0&&p>l+1&&await this.fetchMissedEvents(c,u,l,!1)}else this.host.adopt&&await this.adoptChat(this.host.adopt);this.hasConnected=!0,this.reconnectDelay=250,this.wire.lifecycle("connected",{sessionId:this.selectedSessionId,sessions:this.sessions.length}),this.emit("connected")}catch(n){throw this.wire.lifecycle("connect failed",{message:n instanceof Error?n.message:String(n)}),this.socket?.close(),n}finally{this.opening=!1}}resetSessionState(){this.events=[],this.historyExhausted=!1,this.rows.clear(),this.failedPrompts.clear(),this.firstSeq=void 0,this.lastSeq=0,this.summary=void 0,this.usage=void 0,this.queue=[],this.turnOpen=!1,this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0,this.streamingActivity=void 0,this.optimisticPromptRows.clear(),this.optimisticPromptTexts.clear(),this.supersededMessageIds.clear(),this.messageRows.clear(),this.toolRows.clear(),this.pendingPermission=void 0,this.groupedPermissions.clear(),this.commands=[],this.commandsApplied=!1,this.handoff.select(this.selectedSessionId),this.permissions.select(this.selectedSessionId)}scheduleReconnect(){if(this.reconnectTimer!==void 0||this.closed)return;let e=this.reconnectDelay;this.reconnectDelay=Math.min(e*2,3e4),this.wire.lifecycle("reconnect scheduled",{delayMs:e}),this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=void 0,this.open().catch(()=>this.scheduleReconnect())},e)}receive(e){this.wire.received(e);let n;try{n=JSON.parse(e)}catch{return}if("id"in n&&typeof n.id=="number"){let i=this.pending.get(n.id);if(!i)return;if(this.pending.delete(n.id),i.timer&&clearTimeout(i.timer),n.error){let o=n.error.data;i.reject(Object.assign(new im(n.error),{code:o?.code??n.error.code,...o?.details===void 0?{}:{details:o.details},...typeof o?.reason=="string"?{reason:o.reason}:{},...typeof o?.cwd=="string"?{cwd:o.cwd}:{}}))}else i.resolve(n.result);return}let r=n;r.method==="_acpmux/event"?this.apply(r.params):r.method==="session/update"?this.apply({sessionId:r.params?.sessionId,seq:Number(r.params?._meta?.acpmux?.seq??0),at:Number(r.params?._meta?.acpmux?.at??Date.now()),dir:"in",kind:String(r.params?.update?.sessionUpdate??""),msg:{method:"session/update",params:{update:r.params?.update}}}):r.method==="_acpmux/session_changed"?this.sessionChanged(r.params):r.method==="_acpmux/permission_pending"?this.applyPermission(r.params):r.method==="_acpmux/lagged"&&this.resyncAfterLag(r.params)}resyncAfterLag(e){e?.watch===!0&&this.refreshSessions().catch(()=>{});let n=this.selectedSessionId;if(!n||this.attachedGeneration!==this.selectionGeneration||Array.isArray(e?.sessionIds)&&!e.sessionIds.map(String).includes(n))return;this.emit("resyncing"),this.permissions.refresh().catch(()=>{});let r=this.selectionGeneration;this.fetchMissedEvents(n,r,this.lastSeq).catch(()=>{!this.closed&&r===this.selectionGeneration&&this.emit(this.socket?.readyState===WebSocket.OPEN?"failed":"disconnected")})}async fetchMissedEvents(e,n,r,i=!0){for(let o=r;;){let a=await this.request("_acpmux/events",{sessionId:e,afterSeq:o,limit:5e3});if(n!==this.selectionGeneration||this.selectedSessionId!==e)return;let s=a?.events??[];if(this.events=HO(this.events,s),this.rebuildKeepingLiveState(i?o:void 0),a?.more!==!0||s.length===0)break;o=Math.max(o,...s.map(l=>l.seq))}this.emit("resynced")}async refreshSessions(){let e=this.selectionGeneration,n=await this.request("_acpmux/watch",{enabled:!0});this.sessions=this.reread(n?.sessions),this.selectedSessionId!==void 0&&!this.sessions.some(i=>i.sessionId===this.selectedSessionId)&&e===this.selectionGeneration?this.selectFallbackSession("session changed"):this.emit("session changed")}selectFallbackSession(e){this.selectedSessionId=this.sessions[0]?.sessionId,this.selectedSessionId&&this.markSeen(this.selectedSessionId);let n=++this.selectionGeneration;this.resetSessionState(),this.emit(e),this.selectedSessionId&&this.attach(this.selectedSessionId,n).catch(()=>{})}reread(e){let n=(e??[]).filter(o=>o.sessionId),r=new Set(n.map(o=>o.sessionId)),i=new Set(this.sessions.filter(o=>o.status==="running").map(o=>o.sessionId));for(let o of this.unseen)r.has(o)||this.unseen.delete(o);for(let o of n)i.has(o.sessionId)&&o.status!=="running"&&o.sessionId!==this.selectedSessionId&&this.unseen.add(o.sessionId);return n.map(this.withUnseen)}withUnseen=e=>this.unseen.has(e.sessionId)&&e.unread!==!0?{...e,unread:!0}:e;markSeen(e){this.unseen.delete(e),this.sessions=this.sessions.map(n=>n.sessionId===e&&n.unread===!0?{...n,unread:!1}:n)}trustGet(e){return this.request("acp.trust.get",{cwd:e,...this.selectedSessionId?{sessionId:this.selectedSessionId}:{}})}trustSet(e,n){return this.request("acp.trust.set",{cwd:e,level:n,...this.selectedSessionId?{sessionId:this.selectedSessionId}:{}})}fileSearch(e,n,r){if(this.gitRoute==="daemon")return this.request("file.search",{...e?{path:e}:{},query:n,limit:r});let i=this.selectedSessionId,o=this.summary?.sessionId===i?this.summary:void 0,a=this.sessions.find(l=>l.sessionId===i),s=e??ka(o?.cwd)??ka(a?.cwd);return s?_2(o?.hostKind)==="cloud"||a?.hostKind==="cloud"?Promise.reject(new Error(we("error.remoteSearch"))):Nc("file.search",{cwd:s,query:n,limit:r}):Promise.reject(new Error(we("error.noFolderSearch")))}gitDiff(e){return this.git("git.diff",{scope:e,include_patch:!0})}gitStatus(){return this.git("git.status",{})}gitCheckpointDiff(e,n){return this.git("git.checkpoint.diff",{from:e,to:n,include_patch:!0})}git(e,n){let r=this.selectedSessionId,i=this.summary?.sessionId===r?this.summary:void 0,o=this.sessions.find(s=>s.sessionId===r),a=ka(i?.cwd)??ka(o?.cwd);return!r||!a?Promise.reject(new Error(we("error.noFolderChanges"))):_2(i?.hostKind)==="cloud"||o?.hostKind==="cloud"?Promise.reject(new Error(we("error.remoteChanges"))):this.gitRoute==="daemon"?this.request(e,{sessionId:r,cwd:a,...n}):Nc(e,{cwd:a,...n})}request(e,n,r){if(this.socket?.readyState!==WebSocket.OPEN)return Promise.reject(Object.assign(new Error(we("error.notOpen")),{code:"native.not_connected",origin:"native"}));let i=this.nextRequest++;return new Promise((o,a)=>{let s=r?setTimeout(()=>{this.pending.delete(i),a(Object.assign(new Error(we("error.timedOut")),{code:"native.timed_out",origin:"native"}))},r):void 0;this.pending.set(i,{resolve:o,reject:a,timer:s});let l=JSON.stringify({jsonrpc:"2.0",id:i,method:e,params:n});this.wire.sent(l,e,i),this.socket.send(l)})}async attach(e,n=this.selectionGeneration){if(n!==this.selectionGeneration||this.selectedSessionId!==e)return[];let r=await this.request("_acpmux/attach",{sessionId:e,limit:400,kinds:["transcript",qO,zse],eventStream:!0});if(n!==this.selectionGeneration||this.selectedSessionId!==e)return[];let i=r?.events??[];!i.some(a=>a.kind===qO)&&typeof r?.lastSeq=="number"&&r.lastSeq>0&&this.fetchCommands(e,n,r.lastSeq).catch(()=>{});let o=r?.session??{};if(this.summary=o,this.queue=(o.queue??[]).map(a=>({id:String(a.promptId),prompt:String(a.prompt??"")})),this.events=HO(i,this.events),this.rebuild(),this.attachedGeneration=n,this.permissions.select(e),await this.permissions.refresh().catch(()=>{}),n!==this.selectionGeneration||this.selectedSessionId!==e)return[];if(Array.isArray(o.pending)){let a=new Set(this.permissions.state.supported?this.permissions.state.groups.flatMap(s=>s.items.map(l=>l.permissionId)):[]);this.pendingPermission=o.pending.map(s=>qse({...s,sessionId:e},e)).find(s=>s&&(!this.permissions.state.supported||!s.groupId&&!a.has(s.permissionId)))}if(this.handoffSupported){this.handoff.select(e);try{await this.handoff.refresh()}catch{}}return n!==this.selectionGeneration?[]:(this.emit("attached"),i)}async fetchCommands(e,n,r){let i=await this.request("_acpmux/events",{sessionId:e,beforeSeq:r+1,limit:1,kinds:[qO]});if(n!==this.selectionGeneration||this.selectedSessionId!==e||this.commandsApplied)return;let o=i?.events?.at(-1),a=o?RO(Hse(o)):void 0;a&&(this.commands=a,this.emit("commands"))}sessionChanged(e){let n=e?.session;if(e?.kind==="purged"&&n?.sessionId){this.sessions=this.sessions.filter(i=>i.sessionId!==n.sessionId),this.unseen.delete(n.sessionId),n.sessionId===this.selectedSessionId&&this.handoff.state.busy!=="discarding"?this.selectFallbackSession("session purged"):this.emit("session purged");return}if(!n?.sessionId)return;let r=this.sessions.find(i=>i.sessionId===n.sessionId);n.sessionId!==this.selectedSessionId&&r?.status==="running"&&n.status!=="running"&&this.unseen.add(n.sessionId),this.sessions=[...this.sessions.filter(i=>i.sessionId!==n.sessionId),this.withUnseen(n)],n.sessionId===this.selectedSessionId&&(this.summary={...this.summary,...n},n.queue&&(this.queue=n.queue.map(i=>({id:String(i.promptId),prompt:String(i.prompt??i.preview??"")})))),this.emit("session changed")}applyPermission(e){let n=qse(e,this.selectedSessionId??"");if(n){if(n.groupId&&this.permissions.state.supported){this.groupedPermissions.set(n.permissionId,n);return}this.pendingPermission=n,this.emit("permission")}}apply(e){!e?.seq||e.sessionId!==this.selectedSessionId||e.seq<=this.lastSeq||(this.events.push(e),this.lastSeq=e.seq,this.firstSeq=this.firstSeq===void 0?e.seq:Math.min(this.firstSeq,e.seq),this.reduce(e),this.emitInFrame(e.kind))}emitInFrame(e){let n=t.scheduleFrame;if(!n)return this.emit(e);let r=this.frameSnapshot!==void 0;this.frameSnapshot=e,!r&&n(()=>{let i=this.frameSnapshot;i!==void 0&&!this.closed&&this.emit(i)})}rebuild(){let e=new Set(this.optimisticPromptRows.values());this.rows.retain(r=>r.failed===!0||e.has(r.id)),this.firstSeq=void 0,this.lastSeq=0,this.turnOpen=!1,this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0,this.streamingActivity=void 0,this.supersededMessageIds.clear(),this.messageRows.clear(),this.toolRows.clear(),this.pendingPermission=void 0;let n=[...this.events].sort((r,i)=>r.seq-i.seq);for(let r of n)this.lastSeq=Math.max(this.lastSeq,r.seq),this.firstSeq=this.firstSeq===void 0?r.seq:Math.min(this.firstSeq,r.seq),this.reduce(r);this.rows.placeLocalLast()}rebuildKeepingLiveState(e){let n=this.summary,r=this.queue,i=this.pendingPermission;if(this.rebuild(),this.summary=n,this.queue=r,this.pendingPermission=i,e!==void 0)for(let o of this.events)o.seq>e&&o.dir==="mux"&&this.reduceLiveState(o)}reduceLiveState(e){let n=e.msg??{};if(e.kind==="queued"||e.kind==="queue_updated"){let r=String(n.promptId??"");r&&(this.queue=[...this.queue.filter(i=>i.id!==r),{id:r,prompt:String(n.text??"")}])}else e.kind==="queue_removed"||e.kind==="dequeued"?this.queue=this.queue.filter(r=>r.id!==String(n.promptId??"")):e.kind==="permission_request"?this.applyPermission({...n,sessionId:e.sessionId}):e.kind==="permission_decision"?(n.permissionId?this.groupedPermissions.delete(String(n.permissionId)):this.groupedPermissions.clear(),(!n.permissionId||this.pendingPermission?.permissionId===n.permissionId)&&(this.pendingPermission=this.permissions.state.supported?void 0:[...this.groupedPermissions.values()].at(-1))):e.kind==="permission_group"||e.kind==="permission_chat_allowance"?this.permissions.refresh().catch(()=>{}):e.kind==="status"&&(this.summary={...this.summary,status:n.status})}reduce(e){this.rows.current=e.seq;try{this.reduceEvent(e)}finally{this.rows.current=void 0,e.seq&&this.rows.saw(e.seq)}}reduceEvent(e){let n=e.msg??{},r=Hse(e);if(r?.sessionUpdate===zse){let a=Number(r.used),s=Number(r.size);Number.isFinite(a)&&Number.isFinite(s)&&s>0&&(this.usage={used:a,size:s});return}if(e.dir==="mux"){if(e.kind==="user_message"){let a=typeof n.promptId=="string"?n.promptId:void 0,s=typeof n.text=="string"?n.text:void 0,l=a??(s?[...this.optimisticPromptTexts.entries()].find(([,c])=>c===s)?.[0]:void 0);fFe(this.rows,this.optimisticPromptRows,{...n,promptId:l}),l&&(this.optimisticPromptTexts.delete(l),this.promptAccepts.get(l)?.()),this.endAssistantSegment(),this.streamingActivity=void 0,this.rows.set(`user-${e.seq}`,{id:`user-${e.seq}`,version:1,at:e.at,kind:"user",text:String(n.text??"")}),this.turnOpen=!0}else if(e.kind==="turn_started")this.turnOpen=!0,this.rows.set("typing",{id:"typing",version:1,at:e.at,kind:"typing"});else if(e.kind==="message_superseded"){let a=typeof n.oldMessageId=="string"?n.oldMessageId:void 0;a&&(hFe(this.rows,this.messageRows,this.supersededMessageIds,a),this.streamingAssistantMessageId===a&&(this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0))}else if(e.kind==="turn_end"||e.kind==="turn_result"){if(this.turnOpen=!1,this.pendingPermission=void 0,this.groupedPermissions.clear(),this.streamingAssistant){let s=this.rows.get(this.streamingAssistant);s&&(s.streaming=!1,s.version+=1)}this.rows.delete("typing");let a=e.kind==="turn_result"?_se(n):void 0;e.kind==="turn_result"&&this.rows.set(`summary-${e.seq}`,{id:`summary-${e.seq}`,version:1,at:e.at,kind:"turnSummary",seq:e.seq,...this.turnTotals(e.at),status:String(n.status??"completed"),error:n.errorText,...a?{checkpoint:a}:{}}),this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0,this.streamingActivity=void 0}else this.reduceLiveState(e);return}if(!r)return;let i=RO(r);if(i){this.commands=i,this.commandsApplied=!0;return}let o=UO(r.content);if(e.kind==="agent_message_chunk"&&o){Mn.markAgent("firstToken");let a=typeof r.messageId=="string"?r.messageId:void 0;if(a&&this.supersededMessageIds.has(a))return;let l=!!(this.streamingAssistant&&(!a||!this.streamingAssistantMessageId||this.streamingAssistantMessageId===a))?this.streamingAssistant:`assistant-${e.seq}`,c=this.rows.get(l);if(this.streamingActivity=void 0,this.rows.set(l,{id:l,version:(c?.version??0)+1,at:c?.at??e.at,kind:"assistant",text:`${c?.text??""}${o}`,streaming:!0}),this.streamingAssistant=l,this.streamingAssistantMessageId=a,a){let u=this.messageRows.get(a)??[];u.includes(l)||this.messageRows.set(a,[...u,l])}this.rows.delete("typing")}else if(e.kind==="agent_thought_chunk"&&o){this.endAssistantSegment();let a=this.streamingActivity??`activity-${e.seq}`,s=this.rows.get(a);this.rows.set(a,{id:a,version:(s?.version??0)+1,at:s?.at??e.at,kind:"activity",toolCount:s?.toolCount??0,items:kFe(s?.items??[],o)}),this.streamingActivity=a}else if(e.kind==="tool_call"||e.kind==="tool_call_update"){let a=String(r.toolCallId??`tool-${e.seq}`),s=this.toolRows.get(a),l=s&&this.rows.has(s)?s:void 0;l||this.endAssistantSegment();let c=l??this.streamingActivity??`activity-${e.seq}`,u=this.rows.get(c),d=[...u?.items??[]],p=d.findIndex(f=>f.tool?.id===a),m=yFe(p>=0?d[p]:void 0,r,a,o,e.at);p>=0?d[p]=m:d.push(m),this.rows.set(c,{id:c,version:(u?.version??0)+1,at:u?.at??e.at,kind:"activity",toolCount:d.filter(f=>f.kind==="tool").length,items:d}),this.toolRows.set(a,c),l||(this.streamingActivity=c)}else e.kind==="plan"&&this.rows.set(`plan-${e.seq}`,{id:`plan-${e.seq}`,version:1,at:e.at,kind:"plan",text:o||JSON.stringify(r.entries??r.content??"")})}turnTotals(e){let n=this.rows.sorted().filter(a=>!a.pending&&!a.failed),r=n.length;for(;r>0&&n[r-1].kind!=="user";)r-=1;let i=n[r-1],o=n.slice(r).reduce((a,s)=>a+(s.kind==="activity"?s.toolCount??0:0),0);return{durationMs:i?Math.max(0,e-i.at):void 0,toolCount:o}}endAssistantSegment(){if(!this.streamingAssistant)return;let e=this.rows.get(this.streamingAssistant);e&&this.rows.set(e.id,{...e,version:e.version+1,streaming:!1}),this.streamingAssistant=void 0,this.streamingAssistantMessageId=void 0}emit(e="connected"){this.frameSnapshot=void 0;let n=this.summary,r=(n?.configOptions??[]).find(i=>i.category==="thought_level"||i.id==="reasoning_effort");this.listener({type:"snapshot",protocolVersion:1,rows:this.rows.sorted(),sessions:this.sessions.map(i=>{let o=this.sessionEntries.get(i);return o||(o=h_(i),this.sessionEntries.set(i,o)),o}),peers:this.peers,summary:n?{sessionId:n.sessionId,cwd:n.cwd,turnCount:n.turnCount,usage:this.usage,host:ka(n.host),peer:ka(n.peer),hostKind:_2(n.hostKind),branch:ka(n.branch),worktree:ka(n.worktree),title:n.title,name:n.name,harness:n.harness,family:typeof n.family=="string"?n.family:void 0,model:n.model,effort:r?.currentValue,promptCapabilities:n.agentCapabilities?.promptCapabilities,status:n.status,enforcement:Tse(n.enforcement),modes:n.modes,configOptions:n.configOptions}:void 0,connection:e,origin:this.origin,sessionId:this.selectedSessionId,isWorking:this.turnOpen||n?.status==="running",canFork:this.canFork,canHandoff:this.handoffSupported,handoff:this.handoff.state,permissionGroups:this.permissions.state,queue:this.queue,permission:this.pendingPermission,catalog:[],commands:this.commands,canLoadOlder:!this.historyExhausted&&(this.firstSeq??1)>1,missingSession:this.selectedSessionId?void 0:this.missingSession})}snapshot(){this.emit()}get selectedSession(){return this.selectedSessionId}creating;async ensureSession(){return this.creating&&await this.creating.catch(()=>{}),this.selectedSessionId||await this.create(),this.selectedSessionId}async warmRecentProjects(e=3){let n=[],r=new Set;for(let i of[...this.sessions].sort((o,a)=>Number(a.updatedAt??0)-Number(o.updatedAt??0))){let o=typeof i.cwd=="string"?i.cwd:"";if(!(!o||r.has(o)||!Dse(o))&&(r.add(o),n.push(i.sessionId),n.length>=e))break}n.length&&await this.request("_acpmux/warm",{sessionIds:n,limit:e}).catch(()=>{})}async send(e,n=[],r=crypto.randomUUID(),i){let o=this.handoff.state.record;if(this.handoffSupported&&this.selectedSessionId&&(!this.handoff.state.ready||o?.target.sessionId===this.selectedSessionId&&o.state!=="started"&&o.state!=="discarded"&&!this.handoff.state.receipt))throw new Error(we("error.reviewContinuation"));let s=(this.creating?void 0:this.selectedSessionId)??await this.ensureSession();if(!s)return;let l=AO(e,n),c=`local-${r}`,u=Date.now();this.optimisticPromptRows.set(r,c),this.optimisticPromptTexts.set(r,l),this.rows.set(c,{id:c,version:1,at:u,kind:"user",text:l,pending:!0});let d=!1,p=()=>{this.promptAccepts.delete(r),!d&&(d=!0,i?.())};this.promptAccepts.set(r,p),this.emit();try{await this.request("session/prompt",{sessionId:s,prompt:xse(e,n),_meta:{acpmux:{promptId:r}}}),p()}catch(m){this.promptAccepts.delete(r);let f=m?.code,h=typeof f=="string"&&f.startsWith("transport."),x=!d&&i!==void 0;if(I2(m)||x)throw this.rows.delete(c),this.optimisticPromptRows.delete(r),this.optimisticPromptTexts.delete(r),x&&!I2(m)?this.notice(we("prompt.notSent",{reason:Su(m)})):this.emit(),m;let g=this.rows.get(c);throw g&&(this.rows.set(c,{...g,pending:!1,failed:!0,error:f==="transport.gesture_required"?we("prompt.notSentGesture"):we("prompt.notSent",{reason:Su(m)}),version:g.version+1}),this.failedPrompts.set(c,{input:e,attachments:n})),this.optimisticPromptRows.delete(r),this.optimisticPromptTexts.delete(r),this.emit(h?void 0:"failed"),m}return s}async retryPrompt(e){let n=this.failedPrompts.get(e);if(n)return this.failedPrompts.delete(e),this.rows.delete(e),this.emit(),this.send(n.input,n.attachments)}async continueIn(e){if(!this.handoffSupported||this.turnOpen||this.summary?.status==="running"||this.queue.length>0)return;let n=this.selectionGeneration,r=await this.handoff.prepare(e);if(!(!r||n!==this.selectionGeneration))return this.select(r.target.sessionId)}saveHandoff(e){return this.handoff.save(e)}startHandoff(e){return this.handoff.start(e)}async discardHandoff(){let e=this.selectionGeneration,n=await this.handoff.discard();if(!(!n||e!==this.selectionGeneration))return this.select(n.source.sessionId)}refreshHandoff(){return this.handoff.refresh()}async cancel(){if(!this.selectedSessionId||!this.socket)return;let e=JSON.stringify({jsonrpc:"2.0",method:"session/cancel",params:{sessionId:this.selectedSessionId}});this.wire.sent(e,"session/cancel"),this.socket.send(e)}async permission(e,n){this.selectedSessionId&&await this.request("_acpmux/permission_respond",{sessionId:this.selectedSessionId,permissionId:e,optionId:n})}async permissionGroup(e,n,r){await this.permissions.respond(e,n,r)}async select(e){let n=this.selectedSessionId,r=++this.selectionGeneration;return this.selectedSessionId=e,this.missingSession=void 0,this.markSeen(e),this.resetSessionState(),n&&await this.request("_acpmux/detach",{sessionId:n}),await this.attach(e,r),r===this.selectionGeneration&&this.selectedSessionId===e?e:void 0}create(e,n,r){let i=(async()=>{let a=await this.startSession(e,n,r);return a?this.select(a):void 0})(),o=i.finally(()=>{this.creating===o&&(this.creating=void 0)});return o.catch(()=>{}),this.creating=o,i}async startSession(e,n,r){let i=await this.request("session/new",Fse(n?{cwd:n,peer:r}:{...this.host,peer:r},e));return i?.sessionId&&!n&&(this.host={...this.host,cwd:void 0}),i?.sessionId?String(i.sessionId):void 0}shownSession(){let e=this.selectedSessionId;if(!e)return;let n=this.summary?.sessionId===e?this.summary:void 0,r=Number(n?.turnCount??0),i=_2(n?.hostKind)!=="cloud"&&!ka(n?.host);return{sessionId:e,harness:typeof n?.harness=="string"?n.harness:void 0,empty:this.rows.size===0&&this.queue.length===0&&r===0&&!this.turnOpen,...i&&typeof n?.cwd=="string"&&n.cwd?{cwd:n.cwd}:{}}}turnRunning(){return this.turnOpen||this.summary?.status==="running"}leave(){let e=this.selectedSessionId;e&&(this.selectedSessionId=void 0,this.selectionGeneration+=1,this.resetSessionState(),this.emit(),this.request("_acpmux/detach",{sessionId:e}).catch(()=>{}))}discard(e){e!==this.selectedSessionId&&this.request("_acpmux/kill",{sessionId:e,purge:!0}).catch(()=>{})}get prewarmSupported(){return this.localOrigin&&this.extensions.includes(Bse)}prewarm(e,n){this.prewarmSupported&&this.request(Bse,n?{harness:e,cwd:n}:{harness:e}).catch(()=>{})}adopted;async adoptChat(e){this.host={...this.host,adopt:void 0};let n;try{n=await this.request("session/new",Fse({adopt:e}))}catch(i){if(this.socket?.readyState!==WebSocket.OPEN)throw i;this.adoptFailed(i instanceof Error&&i.message?`: ${i.message}`:"");return}let r=n?.sessionId?String(n.sessionId):void 0;if(r&&mFe(n,e)){this.adopted=r,await this.select(r);return}r&&await this.request("_acpmux/kill",{sessionId:r,purge:!0}).catch(()=>{}),this.adoptFailed(": this acpmux can't resume chats")}notice(e){let n=Date.now(),r=GO("notice");this.rows.set(r,{id:r,version:1,at:n,kind:"notice",text:e}),this.emit()}adoptFailed(e){let n=Date.now(),r=GO("notice-adopt");this.rows.set(r,{id:r,version:1,at:n,kind:"notice",text:`Couldn't resume this chat${e}`}),this.emit()}async fork(e){if(!this.canFork||!this.selectedSessionId||this.forking)return;this.forking=!0;let n=this.selectionGeneration;try{let r=await this.request(L2,{sessionId:this.selectedSessionId,throughSeq:e});return!r?.sessionId||n!==this.selectionGeneration?void 0:await this.select(String(r.sessionId))}catch(r){if(n===this.selectionGeneration){let i=Date.now(),o=r instanceof Error&&r.message?`: ${r.message}`:"",a=GO("notice-fork");this.rows.set(a,{id:a,version:1,at:i,kind:"notice",text:`Couldn't fork this chat${o}`}),this.emit("fork failed")}return}finally{this.forking=!1}}async setModel(e){this.selectedSessionId&&await this.request("session/set_model",{sessionId:this.selectedSessionId,modelId:e})}async setMode(e,n){this.selectedSessionId&&await this.request("session/set_mode",{sessionId:this.selectedSessionId,modeId:e,...Use(n)})}async setConfig(e,n,r){this.selectedSessionId&&await this.request("session/set_config_option",{sessionId:this.selectedSessionId,configId:e,value:n,...Use(r)})}async harnesses(){let[e,n]=await Promise.all([this.request("_acpmux/harnesses",{}),this.request("_acpmux/models",{}).catch(()=>{})]);return mse(e,n)}async loadOlder(){if(!this.selectedSessionId||!this.firstSeq||this.firstSeq<=1||this.historyExhausted)return;let e=this.selectedSessionId,n=this.selectionGeneration,r=await this.request("_acpmux/events",{sessionId:e,beforeSeq:this.firstSeq,limit:400,kinds:["transcript"]});if(n!==this.selectionGeneration||this.selectedSessionId!==e)return;let i=r?.events??[];this.events=HO(i,this.events),this.rebuildKeepingLiveState(),this.historyExhausted=r?.more===!1||i.length===0||(this.firstSeq??1)<=1,this.emit("history")}close(){this.closed=!0,this.reconnectTimer!==void 0&&window.clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0,this.permissions.disconnected(),this.socket?.close(),this.socket=void 0,this.rejectPending()}rejectPending(){for(let e of this.pending.values())e.timer&&clearTimeout(e.timer),e.reject(Object.assign(new Error(we("error.interrupted")),{code:"native.timed_out",origin:"native"}));this.pending.clear()}},Use=t=>t?{_meta:{cmuxGesture:t}}:{};function I2(t){let e=t?.reason;return e==="trust.pending"||e==="trust.untrusted"}function f_(t){for(let e of[t?.unavailable,t?.probeError])if(typeof e=="string"&&e)return e}function fse(t){let e=t?.harnesses??t?.items??t??[];return(Array.isArray(e)?e:Object.entries(e).map(([n,r])=>({id:n,...r}))).map(n=>({id:String(n.id??n.name),name:Gf(String(n.id??n.name),n.name==null?void 0:String(n.name)),models:(n.models??[]).map(r=>({id:String(r.id??r.modelId),name:r.name})),...f_(n)?{unavailable:f_(n)}:{}}))}var Nu=R(qe(),1),Xo=R(Q(),1);var Xse=R(qe(),1),N2=R(Q(),1);var ZO={claude:{name:"Claude",viewBox:[0,0,94,94],tone:"#D97757",paths:[{d:"m18.77 62.44 18.41-10.32.3-.9-.3-.51h-.9l-3.1-.19-10.52-.28-9.1-.38-8.86-.47-2.23-.47L.4 46.16l.2-1.37 1.87-1.26 2.69.23 5.92.42 8.9.61 6.43.38 9.56.99h1.52l.2-.61-.5-.38-.41-.38-9.21-6.24-9.97-6.57-5.2-3.8-2.8-1.93-1.4-1.78-.62-3.94 2.53-2.82 3.44.23.86.24 3.5 2.67 7.43 5.78 9.72 7.13 1.41 1.18.57-.39.1-.27-.67-1.08-5.26-9.53-5.61-9.72-2.53-4.03-.66-2.4c-.26-1-.4-1.83-.4-2.86L24.88.72 26.5.2l3.9.52 1.61 1.4 2.43 5.54 3.9 8.69 6.07 11.83 1.77 3.52.96 3.24.35.98h.61v-.56l.5-6.67.92-8.16.9-10.52.31-2.96 1.47-3.56 2.93-1.93 2.28 1.08 1.87 2.68-.25 1.73-1.11 7.23-2.18 11.32-1.42 7.6h.81l.96-.99 3.85-5.07 6.43-8.07 2.83-3.2 3.34-3.51 2.12-1.7h4.05l2.93 4.42-1.31 4.55-4.15 5.26-3.44 4.46-4.93 6.6-3.06 5.32.27.44.74-.06 11.13-2.4 6.02-1.07 7.18-1.23 3.24 1.5.36 1.56-1.27 3.14-7.69 1.88-9 1.83-13.42 3.16-.14.12.17.26 6.05.54 2.58.14h6.32l11.8.9 3.08 2.01L94 56.5l-.3 1.92-4.76 2.4-6.37-1.51-14.93-3.57-5.11-1.27h-.7v.43l4.24 4.17 7.84 7.05 9.77 9.1.5 2.25-1.26 1.79-1.32-.19-8.6-6.48-3.34-2.9-7.48-6.34h-.51V64l1.72 2.54 9.16 13.75.45 4.23-.65 1.36-2.38.84-2.58-.47-5.42-7.55-5.51-8.45-4.45-7.6-.54.33-2.65 28.3-1.22 1.45-2.83 1.08-2.38-1.78-1.26-2.91 1.26-5.78 1.52-7.5 1.22-5.97 1.1-7.42.69-2.47-.06-.17-.54.1-5.6 7.66-8.5 11.5-6.73 7.18-1.61.66-2.79-1.46.26-2.58 1.56-2.3 9.31-11.83 5.62-7.37 3.62-4.23-.04-.6-.2-.03L16.5 72.63l-4.4.56-1.93-1.78.26-2.91.9-.94z"}]},anthropic:{name:"Anthropic",viewBox:[0,0,24,24],tone:["#FFFFFF","#191919"],paths:[{d:"M17.3 3.54h-3.67l6.7 16.92H24Zm-10.6 0L0 20.46h3.74l1.37-3.55h7l1.38 3.55h3.74l-6.7-16.92Zm-.38 10.22 2.3-5.94 2.29 5.94Z"}]},openai:{name:"OpenAI",viewBox:[180.4,180.4,354.9,354.9],tone:["#FFFFFF","#000000"],paths:[{d:"M508.7 317.4a90.2 90.2 0 0 0-110.4-110.5 90.2 90.2 0 0 0-151 40.5A90.2 90.2 0 0 0 207 398.3a90.2 90.2 0 0 0 110.5 110.5 90.2 90.2 0 0 0 151-40.5 90.2 90.2 0 0 0 40.3-150.9M471 244.8c16 16 22.6 37.8 19.8 58.6L415.6 260c-3.2-1.8-7-1.8-10.3 0l-87.9 50.8v-33.3c0-2.3 1.3-4.5 3.3-5.7l67-38.6a70 70 0 0 1 83.2 11.6m-113 66.3 40.4 23.4v46.7l-40.5 23.3-40.4-23.3v-46.7zm-93.1-41.4A69.7 69.7 0 0 1 377 215.6l-75 43.3a10 10 0 0 0-5.2 8.9v101.5L268 352.7a7 7 0 0 1-3.3-5.7zm-61.4 46.8a70 70 0 0 1 40.9-46.5v86.7c0 3.7 2 7 5 8.9l88 50.8-28.8 16.6a7 7 0 0 1-6.6 0l-67-38.6a70 70 0 0 1-31.5-78m41.4 154.4a70 70 0 0 1-19.8-58.6l75.1 43.3c3.2 1.9 7 1.9 10.2 0l88-50.7V438c0 2.4-1.3 4.6-3.3 5.7l-67 38.7a70 70 0 0 1-83.2-11.6m206.1-25A69.7 69.7 0 0 1 338.5 500l75.2-43.4c3.1-1.8 5-5.2 5-8.8V346.3l29 16.7c2 1.1 3.2 3.3 3.2 5.7zm61.4-46.7a70 70 0 0 1-40.9 46.5v-86.8c0-3.6-2-7-5.1-8.8l-88-50.8 28.9-16.6c2-1.2 4.5-1.2 6.5 0l67 38.6a70 70 0 0 1 31.6 78"}]},opencode:{name:"OpenCode",viewBox:[0,0,240,300],tone:["#F1ECEC","#211E1E"],paths:[{d:"M180 60H60v180h120zm60 240H0V0h240z",evenOdd:!0},{d:"M180 240H60V120h120z",tone:["#4B4646","#CFCECD"],monoOpacity:.35}]},pi:{name:"Pi",viewBox:[0,0,560,560],tone:["#FFFFFF","#000000"],paths:[{d:"M420 280H280V140H0V0h420z"},{d:"M560 560H420V280h140z"},{d:"M140 560H0V140h140v140h140v140H140z"}]},omp:{name:"oh-my-pi",viewBox:[0,0,120,90],tone:["#FAFAFA","#0D0D0D"],paths:[{d:"M12 8h96q2 0 2 2v8q0 2-2 2H12q-2 0-2-2v-8q0-2 2-2m15 12h8q2 0 2 2v58q0 2-2 2h-8q-2 0-2-2V22q0-2 2-2m50 0h8q2 0 2 2v41q0 2-2 2h-8q-2 0-2-2V22q0-2 2-2"},{d:"M74 55h14q3 0 3 3v10q0 3-3 3H74q-3 0-3-3V58q0-3 3-3M16 14a2 2 0 1 0 4 0 2 2 0 1 0-4 0m84 0a2 2 0 1 0 4 0 2 2 0 1 0-4 0",tone:"#F97316"},{d:"M77 59h1q1 0 1 1v6q0 1-1 1h-1q-1 0-1-1v-6q0-1 1-1m6 0h1q1 0 1 1v6q0 1-1 1h-1q-1 0-1-1v-6q0-1 1-1",tone:["#0D0D0D","#FAFAFA"],monoOpacity:0}]},hermes:{name:"Hermes Agent",viewBox:[441,2477,4640,4640],tone:["#FFFFFF","#000000"],paths:[{d:"M2780 2572a1368 1368 0 0 0-190 14 2820 2820 0 0 0-182 29l-35 7-32 7a3729 3729 0 0 0-177 41l-26 7-53 14-29 8a1014 1014 0 0 0-103 34l-13 4-26 10-29 11-50 19-58 25c-115 47-325 154-385 196l-37 24a1726 1726 0 0 0-128 86 1754 1754 0 0 0-376 344l-17 22c-20 28-60 88-81 126a2289 2289 0 0 0-136 291 2542 2542 0 0 0-48 154 955 955 0 0 0-24 112l-7 53c-5 32-6 44-6 133s1 108 10 160a629 629 0 0 0 210 369l20 15c44 35 126 80 166 90l25 9c37 12 64 19 69 17q3-2-1-3a268 268 0 0 1-93-85c-15-22-45-76-52-94l-9-21-6-16-20-53q-7-23-1-24a576 576 0 0 0 138 181c33 30 84 71 90 71s4 2 7 5l7 6-2 29c-1 30-5 69-14 154l-7 75-4 52-6 68c-2 24-5 56-8 71l-3 38-29 272-11 99-14 112a3847 3847 0 0 1-59 351c-14 61-48 143-74 177q-46 61-104 74c-24 6-97 5-118-2-39-14-61-28-93-59-41-42-63-90-77-168-5-27-4-121 1-148 10-47 16-67 38-111 10-19 17-35 16-36a603 603 0 0 0-111 141l-6 9a496 496 0 0 0-47 235 433 433 0 0 0 44 218q37 76 95 124c28 23 39 31 71 46a352 352 0 0 0 245 24c23-6 85-33 114-49l34-22a620 620 0 0 0 218-265q5-11 8-11c5 0 5-2 1 23a512 512 0 0 1-38 137c-8 18-38 76-50 94-23 35-35 50-70 85-63 62-114 93-186 110-23 6-100 6-124 0-26-6-82-23-88-26l-9-3c-3 0-55-25-76-38-31-17-48-30-78-60a398 398 0 0 1-111-176 515 515 0 0 1-26-120l-3-18q1-8-2-14-2-5-3 1a1395 1395 0 0 0 4 177c3 28 16 82 29 122 9 28 44 100 57 118 14 20 43 55 59 71a687 687 0 0 0 294 170l8 2 13 2 21 6c20 5 20 6 24 37q3 38 15 73a284 284 0 0 0 171 169l15 6 33 10c22 6 25 6 84 6a287 287 0 0 0 153-30c76-38 147-111 187-188q24-47 18-13l-20 91c-7 30-28 95-39 121-48 120-92 298-160 820-22 23-45 46-53 52l-6 6h594c20-8 96-47 121-84q20-67 31-36 4 7 4 22c0 8-9 43-20 56l-30 35-5 7h23l2-5c7-11 22-33 35-56 7-38 8-38 26-48 9-3 20-10 24-16 7-8 9 12 5 51-5 23-10 35-17 56l-7 18h85l5-10 16-28c4-6 12-17 16-36 35-376 107-683 136-710q47-44 48-25c0 13-6 17-12 30-17 34-60 146-148 739l-37 40h142l10-12c14-17 49-91 89-451 11-109 31-233 43-257 45-52 62-70 88-92 25-21 45-34 52-34s4 3 4 11c0 9-3 15-10 28l-15 22c-6 7-14 23-12 24q1 2 4-1 178-114 363-218l185-105c38-22 117-86 164-73q-10 16-26 27c-35 31-179 174-202 202-22 27-45 56-55 71-41 60-88 115-140 239-48 404-98 585-109 599l-17 20h128l1-3c18-40 37-207 56-555 39-206 83-286 140-354 74-89 171-158 276-208 104-50 217-81 331-102a764 764 0 0 0-313 163l-111 100c-53 61-98 107-137 179-36 67-70 539-88 767q-1 6-6 11l-2 2h120c19-450 94-772 170-852 87-92 192-175 304-234 169-87 363-73 551-20 210 60 395 263 435 1017l13 89h59c-3-16-9-49-11-72-57-840-272-1058-558-1125a1109 1109 0 0 0-153-24c-9-5-2-7 13-6l69 3c51 3 69 4 108 10l32 5c94 11 183 53 257 112a750 750 0 0 1 218 276c35 84 51 560 65 821h48c-5-51-8-381 20-691 35-69 96-100 144-142 52-46 102-98 131-161a1046 1046 0 0 0 111-484c4-79 2-138-8-229q-16-168-52-334c-22-104-43-213-75-315l-3-15-4-14-8-27-7-27-6-21-8-32-11-39-6-20-7-21c-1-10-6-26-9-37l-8-28-4-15-14-47-6-21-5-22-8-26-33-126-20-79-9-45-4-14-7-29-7-26-4-18-6-26-17-76q-3-4-6-21l-14-59-14-63-5-25-8-31-7-32-7-31-6-25-6-27-23-113-13-65-11-62-16-82-4-26c-9-37-10-40-10-46l-4-23-7-35-7-33-7-35-15-69-4-16-7-28-7-23-4-18c-3-15-28-102-35-120l-4-13-14-40-13-37-44-115-13-32a1028 1028 0 0 0-36-89l-4-11-13-32c-12-30-17-41-47-102a1508 1508 0 0 0-102-186l-44-63c-8-14-55-73-76-97l-40-47a1765 1765 0 0 0-268-234c-5-2-18-11-31-20a1437 1437 0 0 0-285-147l-37-15-30-10-27-10-88-28a1508 1508 0 0 0-219-52l-40-7-26-3-28-4c-50-8-104-11-195-10m-427 100c81 0 92 0 161 11a528 528 0 0 1 75 16 490 490 0 0 1 73 23l28 11 29 11a921 921 0 0 1 149 82l33 23c6 3 25 19 45 34a1471 1471 0 0 1 301 341c35 53 66 107 98 172s56 114 56 118l2 8a426 426 0 0 1 26 64l8 20 26 77 7 20 7 21 7 24 7 24 8 24 3 16 2 10c3 6 11 44 21 93l7 35q7 34-1 48c-4 7-17 16-23 16s-7 2-12 5c-12 5-24 18-26 28s4 29 13 37c6 6 40 22 46 22 8 0 86 43 113 63 21 16 48 42 48 48q-1 9-19-4c-6-5-26-16-43-25l-33-18-3-2-22-9-55-26c-43-18-53-26-61-49-16-45-18-64-6-75l21-13c7-4 18-9 22-13l10-6-1-29c-2-24-2-30-7-42-8-16-16-20-33-20s-46 4-78 10l-38 6c-67 9-84 16-96 36-6 10-8 14-8 31s1 22 5 31c8 16 13 19 32 19 35 0 39 3 42 29 2 14-4 65-9 76-5 16-8 20-15 31-10 15-26 33-68 78-45 49-49 50-26 3 15-30 23-41 56-75 29-31 34-38 36-57 1-18-3-28-16-38-8-7-37-19-45-19-9 0-26-34-26-56 0-23-1-10-3-14-1-4-4-18-5-31l-19-85-29-114-10-32-8-27-13-38-16-48a2569 2569 0 0 0-132-275 1317 1317 0 0 0-406-408l-23-14c-23-16-120-66-126-66-7 0-5-1-7-2a811 811 0 0 0-327-63c-53 1-143 9-174 16l-23 4-58 13c-33 10-44 7-21-4l15-6 11-4c24-11 28-13 32-13q7-1 9-3l8-4 22-7a2049 2049 0 0 1 234-70l25-6a618 618 0 0 1 191-18m-567 142q3 0 2 4-5 4-7 0-2-2 2-4zm2234 302h2c2 2 12 11 21 22a1416 1416 0 0 1 244 342c18 35 57 120 57 123l7 17 58 140 36 105 26 83 21 67a2322 2322 0 0 1 47 203q-1 21-6 7a2221 2221 0 0 0-89-319l-5-14-7-20-6-18-3-10-17-47-3-9-6-15-61-155c-18-43-61-131-72-148l-13-23-10-17-3-5-9-15-15-22c-7-12-30-44-44-63l-16-23c-12-17-26-33-27-32q-1 2 5 10l6 9 6 9c17 24 20 45 14 100-6 64-7 85-2 99 2 7 5 15 7 16q4 5 1 6c-4 3-16-11-32-34-15-23-17-25-19-23s5 23 15 41a3391 3391 0 0 1 121 263q4 11 1 14-1 3-14-22a1615 1615 0 0 0-95-179l-16-26q-8-10-8-14l-2-2-12-18q-14-25-16-19c-2 1 5 30 12 50 13 39 14 42 11 44q-3 6-26-33-10-20-16-21c-3-1-3 2-3 22a277 277 0 0 0 25 107l12 25 3 10 11 27 21 52 17 41q40 103 37 108-5 2-12-18l-81-180-18-35a691 691 0 0 0-112-160c-3 0-4 12-1 14q2 1 3 7a424 424 0 0 0 28 65l6 13 6 14 7 16 7 18 7 16 8 17 5 13 30 72 6 15 22 56c19 47 33 86 35 96q2 5-2 5t-4-4l-3-9q-4-4-4-9 0-4-3-10l-9-17c-2-8-10-23-15-36l-34-76-125-253q-9-16-13-10c-1 4-27 34-41 47-15 13-21 15-37 8l-23-10c-8-2-21-8-29-12l-25-11-15-6-17-7-18-7-18-6c-26-8-35-11-42-15q-15-7-3 8l5 7 67 142 19 41 25 56 5 10 35 79 7 17 10 25 11 26 6 15 2 5 3 11 9 21 7 18 12 31 13 35 7 16 4 12 3 11 11 29 9 27 3 9 15 43 16 46 20 63 10 32 26 83 5 15 22 70c0 3 2 14 6 25l10 36 11 38c5 12 8 25 10 31l10 34 11 38 7 23 19 64 13 46 6 20 7 24 7 24 10 34 9 30c2 2 6 16 10 29l18 56a2335 2335 0 0 1 54 183c10 38 14 54 16 69l21 92 6 32 6 33c2 7 3 17 5 20l2 14 3 19a504 504 0 0 1 17 93l6 38 5 35 12 87 6 47 5 40 8 87q-1 20-6 15l-2-18-19-133-5-28-4-27-6-37-6-35-4-26-7-32-7-38-6-29-16-83-3-17c-2-7-6-20-7-31l-14-60-10-41a508 508 0 0 0-16-65l-7-28-7-25a2474 2474 0 0 0-49-156l-15-48-9-30-18-52c-4-18-13-44-17-60l-16-52-13-43-11-40-15-52-12-44-6-22-6-19-35-121-33-110-13-42-10-30-24-75-23-69-43-125-10-25a454 454 0 0 0-24-64c-36-96-93-221-121-265-16-27-23-37-43-62l-6-7v7c0 8 7 35 18 65 4 12 8 23 7 24q-4 3-23-26l-21-28c-11-17-64-67-77-74l-21-11-14-5q-5 0-11-3l-23-6c-16-1-17-1-25 5q-12 10-16 1l-5-8-7-20-8-21c-7-14-7-15 23-15 29 0 70 8 111 18a440 440 0 0 0-6-116l-15-40q-10-25-7-27 1-2 4 1l9 15a2258 2258 0 0 1 75 120q3 6 10 4 6-1 18 1l28 7 38 10 37 11q14 3 20 6l17 3c10 1 12 1 23-9 13-12 46-47 51-55 3-5 3-7-7-24l-37-59-25-38-22-34c0-9 11 2 41 40 37 47 53 66 56 66q5-1 10-26l3-14h12c10 0 24 2 61 8q9 3 10-1c2-5-9-34-15-41l-8-12c-6-10-40-57-57-77-40-52-48-64-43-64 6 0 24 21 50 49 66 69 142 145 145 145q8 1-6-18l-10-14-7-11-7-10-15-22-17-24-13-17-10-14-16-23q-5-9 1-11 5 1 3 4l3 4c6 2 79 95 94 118 21 34 24 38 24 40q0 4 5 5 5 3 6 0l2-64c2-66 0-87-8-107-7-15-44-82-49-88-4-4-3-10 0-10m-1275 87a840 840 0 0 1 133 145q1 4 10 16c15 22 20 31 48 86l26 51 12-8q13-8 30-9c19-3 24 0 33 17 12 24 22 44 22 47q0 5 3 9l8 20 10 26q9 21-7 11c-11-8-47-26-62-32-19-7-22-5-20 12q1 14-1 14c-2 0-29-48-32-58a1075 1075 0 0 0-129-194q-8-14-13 6l-7 25c-12 33-12 37-11 49 1 13 3 20 14 44l7 16 6 15c12 26 13 29 13 34q0 6-4 2l-17-21c-12-15-31-34-35-34s5 41 12 53l3 10 3 11 23 64-1 8-5-8-15-28c-16-33-38-62-47-62s-3 5-3 12q0 32-12 8l-8-14c-4-3-6-3-16 1l-15 7c-4 3-4 36 0 54q7 24 0 24c-4 0-5-5-20-33l-14-22-8-12h-54c-49 0-54 0-58-4l-3-6-9-14-17-28-15-26q-7-10-7-15 1-6 13-19 21-22 48-60l8-10-6-13c-3-8-14-26-22-41-24-40-28-48-26-49 2-3 18 16 33 39 14 22 18 25 26 21q10-5 45-9c19-2 22-5 19-12l-8-24c-11-37-13-46-21-63-5-13-5-15 0-15s27 26 51 58q28 36 34 40c3 1 12-4 62-41l22-15 3-3q3-5-23-36-16-18-9-17m-428 80q4 0 22 19c42 46 104 127 130 173l16 26a1884 1884 0 0 1 84 176l10 26 22 74c-1 1-16-12-36-32l-34-34 1 19c2 11 3 34 4 53a976 976 0 0 0 15 115c0 4-5 2-7-2l-9-27a1494 1494 0 0 0-61-166c-4 0-2 34-2 77l-3 76q-4-3-16-25c-11-22-25-47-60-104q-18-30-15-13l4 22 3 17 6 41 7 51c4 16 3 38 1 38q-3 0-5-7a1229 1229 0 0 0-33-108c0-6-9-18-13-18q-7 0-19 7l-34 15q-4 0-7 4c-4 5-4 6 1 33q8 41 0 35l-7-19-10-25c-10-15-66-43-106-51l-26-6-21-5q-6 0-10-7c-6-7-21-69-22-87 0-8 0-9 17-17l29-13 18-7 29-12c33-12 36-15 31-33-3-16-5-31-3-35 4-4 5-2 14 22l10 29 3 9c0 3 8 19 10 19l33-31 33-30-2-15c-1-16-6-37-20-77q-11-34-5-35c4 0 8 14 15 32 18 46 19 48 25 54l5 5 8-6 9-6q6 0 9 19c2 20 8 45 10 45q7 1 4-60c-1-23-3-50-5-60a667 667 0 0 0-43-139q-9-19-4-19m1456 12q3 0 2 2l-2 3q-3-1-3-3t3-2m-2674 15h2q3 2-3 7-16 10-5-4zm410 13c2 3 3 0-17 38-19 38-68 142-78 168l-10 21-7 18-7 17-10 24-10 25c-4 9-6 18-6 19l-4 9-3 9q0 4-3 7l-7 18-7 20-24 67-7 20-7 21-6 22-9 34c-9 37-11 30-11-37 0-68-1-62-2-63q-3 0-7 9-5 8-8 9c-4 0-3-8 5-44l1-12-14 6-29 13-27 10c-12 5-26 21-26 27 0 7-2 6-4 8l-7 19-4 14h-39q-38 0-38-3 0-4 7-21l13-29 15-30 9-20 13-26 19-37 25-43 12-20 6-9q1-5 10-18l14-23 24-38c39-60 60-78 31-27a2014 2014 0 0 0-110 222c-3 7-4 19-3 19l18-9q14-10 20-12l16-10c18-10 41-29 56-45q20-22 60-87a1640 1640 0 0 1 176-250m-426 1h1l3 4q0 2-3 2-2 0-2-3zm-7 7q4 1-28 34c-45 49-96 115-128 165l-9 14c-2 2-20 28-24 36l-17 27-19 31-53 106-11 24-26 60-5 12-11 24-60 133-2 6q-3 4-20 51-10 27-11 10a560 560 0 0 1 35-125l10-28 39-105q10-19-13 3-19 21-18 13c0-5 4-16 7-23 8-20 11-44 3-31q-9 16-15 16-5 0 4-27l15-35 15-36 15-31 20-35 43-45 110-105a2491 2491 0 0 1 154-139m685 85c3-2 3 27 3 131s2 167 12 233c6 40 4 54-7 30l-7-18q-23-48-23-55 0-6-4-9-6-5-7 0v21q5 57 2 56l-10-17-14-32-7-18q0-3-5-7c-5-2-16 0-54 14l-65 19c-9 4-10 6-16 40-5 28-9 21-9-13 0-35-1-24-7-25-8-3-57 5-98 15-30 7-32 7-43-5-41-46-38-43-37-52l3-15 6-19 12-36 14-38 8-19 4-8q0-3 3-7 7-6 68 29c31 18 75 37 78 33l9-32 18-67c4-18 23-82 28-95q6-16 9-3l-9 39-15 59-9 44-4 20c-6 25-8 47-7 48l14-2 28-8 50-13c18-7 24-12 29-31a2135 2135 0 0 1 44-136l9-33q2-14 6-18m-134 7 4 2c2 3-2 10-5 9-2-3-1-11 1-11m-539 15 1 2c0 9-18 30-29 45l-24 37-25 37c-11 16-21 31-22 35q-2 9 11 9 11 1 18 6c14 6 15 5 28-14l20-29 28-40 59-77c7-8 14-8 9-1a4149 4149 0 0 0-113 187l-9 18q-15 23-7 24 5 0 14-6c11-5 17-6 43-8l31-1 16-25c8-15 16-26 18-25 3 0 1 10-4 20a3134 3134 0 0 0-129 306q-19 51-10-6c6-38 11-71 10-77q-1-5-4-7c-4-1-23 20-35 39-15 24-17 22-19-20q-2-29-5-33c-3-3-3-3-9 4q-5 6-9 7c-3 0-2-16 3-35 8-33 9-55 1-45-10 12-52 102-70 148l-11 27-3 12q0 4-3 8-4 5-4 9l-3 12-7 17c-5 13-30 99-30 103 0 3-5 6-7 2a619 619 0 0 1 30-130l20-65 7-22c11-34 17-50 23-63 8-14 6-20-2-8l-5 8c0 5-10 6-40 3l-44-3c-13 0-14-1-14-5 0-7 9-31 20-55l7-17 2-7 8-15 7-14 46-91q1-5 13-18l11-16h20l36 2 15 2 14-21c20-30 34-49 51-69l11-15c19-26 39-46 45-46m928 54q3 0 4 5l16 56 18 61 7 30 26 112 5 37q1 15-1 17l-15-24c-16-32-25-46-31-51-8-5-83-9-136-8-46 2-44 2-51-13q-4-6-8-8c-4-1-4 2-5 28 0 16-2 28-3 28q-2 0-7-18l-13-39-12-35-8-20c-8-16-16-79-13-102l2-12 27 2a975 975 0 0 1 173 23q29 7 27-20l-3-36q-2-12 1-13m-850 100q3 0 2 2l-4 2-1-2q0-2 3-2m-6 9q2 0 3 4-1 5-6 2-2-4 3-6m1837 12 2 3q-1 6-6 3-1-5 4-6m-169 27q2-1 3 1 2 4 1 6-3 6-8 0-2-6 4-7m1426 144q3 1 3 6 0 9-4 4c-2-3-2-10 1-10m7 17 3 2 2 5c0 3-7 2-9-1q0-3 2-5zm-2445 48 3 1-1 6q-3 2-4-1-2-3 1-5zm4 18q2 0 4 4c2 5 15 47 15 51q0 5 3 9l4 14a922 922 0 0 0 32 97l5 11 3 9 4 13 20 48a884 884 0 0 0 35 81c0 4 36 73 54 106l20 36q0 2 3 5l12 19 29 48c8 9 18 28 17 32q0 5-15 6c-8 0-21 2-29 4-25 3-31 3-35-3-11-17-44-84-60-120l-11-25-11-29-9-26c-6-14-24-72-34-105l-9-34-7-30-3-15c-4-12-17-67-21-88l-7-39-12-73q0-6 3-6m2374 72h1l3 5q-1 3-3 3-3 0-2-4zm-53 44q2 0 2 5l-2 4q-3-1-3-4 0-5 3-5m401 254q2 0 4 11 1 15-6 8l-1-10q0-9 3-9m7 37c2 0 5 9 3 13l-4 2c-3 0-3-14 0-15zm-3216 18 3 3q0 2-3 3-2 1-2-3 0-3 2-3m4 9c2 0 10 8 10 11q0 4 8 15l8 13 41 61c39 54 124 137 166 160 15 9 26 10 41 5a1129 1129 0 0 1 130-34c43-10 47-11 49-8q3 1-8 13c-13 11-40 42-50 57-18 23-33 63-25 63 7 0 9-3 17-7l19-7c5 0 31-15 39-22l15-11 25-17c26-17 29-20 44-28 35-20 84-43 92-43s6-2 9-4l11-3 8-2q2-2 9-3c10-2 39-12 58-21 7-4 20-8 28-10 20-3 16-7 68 64q9 12 16 14c3 1 31 0 60-2l115-4c60-2 188 0 201 3q8 2 13-3c6-4 6-5 6-61l3-60c2-6 7 6 11 21l5 25q15 46 17 64c2 14 9 20 29 21 28 3 86 12 121 19 24 5 49 12 54 16q3 4 6 17c4 21 6 299 2 344l-4 55a1407 1407 0 0 1-14 117q-4 34-14 87l-5 37-5 27-6 35-11 58-2 16-5 23-15 82c-3 9-6 25-7 34-2 10-6 26-7 37l-5 26a503 503 0 0 1-14 78l-14 74-5 26-36 234c-2 4-2 11-8 66l-5 36-6 46-7 63c-3 22-4 55-3 124 0 101 0 107 14 178 3 20 6 38 5 41 0 3-19 21-41 40l-61 56c-12 12-23 21-25 21q-5 0-18-28c-28-54-57-101-96-153-46-61-94-117-122-140-49-40-75-47-132-38l-49 7-50 7-38 6-40 6c-48 7-63 9-91 11l-55 4c-47 4-108 3-153-4a240 240 0 0 1-78-31c-16-8-47-40-61-61-15-22-29-46-29-47l-8-13-21-39-27-48c-87-156-113-207-159-306-16-35-35-83-40-102l-5-15c-4-9-11-35-14-47l-8-31-9-43-7-38a1358 1358 0 0 1 9-263q2-32 7-17c8 42 16 61 36 88 14 19 43 49 68 71q37 31 45 61c8 26 4 55-10 73-30 43-34 51-28 76l6 20 7 18c9 22 17 35 41 66 17 23 21 30 18 32q-6 4-19-6-5-6-8-6c-3 0-1 14 4 23 5 11 14 49 14 60s20 41 52 69a239 239 0 0 0 35 28q13 12 20 4 5-9-15-22l-9-7q0-3 35-10c10-2 14-4 40-16 25-11 31-21 9-14-28 9-48 11-78 10-33-1-39-3-51-15q-15-15-16-37c0-13 0-13 12-26 13-16 21-21 47-24l37-7c16-4 23-4 50-4a466 466 0 0 1 133 24c2 3-2 9-7 9-12 0-52 20-52 26s3 3 21-2a351 351 0 0 0 84-32l18-5 10-2v-12c0-11-1-14-7-21q-10-12-19-1c-4 4-6 4-17 3a223 223 0 0 1-89-37l-34-20c-47-28-65-35-108-48-22-6-56-1-67 10q-10 8-21-10c-4-6-15-21-26-33q-18-21-16-25l3-8q1-6 9-21c14-24 15-30 17-54 0-21 0-23-8-39-10-20-20-33-59-69-34-31-44-43-63-76q-26-44-23-79c1-14 2-19 7-26 6-10 34-34 56-48 16-11 46-38 58-51 8-11 19-26 38-56 13-20 32-61 38-82l6-21c2-4 4-22 4-41 1-30 1-35-4-51q-9-28-28-58c-11-18-48-54-66-66l-26-16c-28-18-67-29-67-19 0 9 0 3 1 3q4 1 19 13l31 19 18 8c1 2 13 9 26 16 17 9 26 17 37 29q14 15 15 19-1 6-16-3c-16-10-65-23-91-26a162 162 0 0 0-69 13c-1 0-7 3-10 6l-7 5 14-5c22-9 61-11 86-5l28 6q24 4 43 13l19 5q5-1 14 10 7 10 7 15l3 5c2 3 9 28 11 40q1 9-2 10-3 0-22-17c-21-21-30-29-57-47q-13-9-47-20c-11-4-55-3-64 1-15 6-41 16-48 17-10 3-20-13-45-67-7-14-14-38-12-42 1-5 35-24 50-29l17-6q6-3 40-6 24-2 63 8 26 6 13-10c-8-9-19-18-43-29-14-7-15-8-13-11l8-5 12-5 43-14 22-7a614 614 0 0 1 122-29q0-3-11-21a1170 1170 0 0 1-115-250zm705 291c-45-1-63 0-101 8-50 10-61 15-84 38-40 42-61 71-58 78q6 8 35-9 15-10 22-9 6 2 7-2c2-7 37-28 41-25l1 3-8 6c-4 2-14 10-21 17-7 6-16 13-18 13q-5 2-5 5 0 4-10 14t-9 12c2 3 9 1 12-2 3-4 12-4 13 0 2 3-5 8-30 24-23 14-13 13 16-1l14-5c2 2 0 5-18 28q-22 26-17 32 3 2 9-3 5-5 8-5l10-7q7-6 10-5 1 2-3 17c-4 14-4 15 0 21q6 13 8 1c5-18 22-47 38-63 18-19 45-40 56-46q9-3 12-8 8-4 5 6-13 27-17 44c-11 51-8 61 17 72l13 7q1 3-8 11l-10 9 3 8c10 24 49 65 72 76 14 6 17 7 42 7s29-1 40-6c16-7 44-30 61-48 11-13 24-36 24-42q-1-4-12-14c-17-14-15-19 8-24 7-2 16-12 16-17q-1-6-6-14-13-26 11-14l31 17 41 24 19 14v11c-1 19-15 46-33 64-34 32-69 50-139 70-22 7-46 9-89 9-65 0-102-6-154-28-28-12-44-13-60-4-10 7-15 16-6 12 9-3 31-6 38-5l24 10c19 9 20 12 12 26q-10 20 10 6 12-7 21-7h9l1 12 1 12 10-8 12-9q6 2 7 12 0 8 2 9 2 5 6-1c12-14 14-15 19-15q6 1 7 9c3 13 6 15 17 3 16-16 23-13 31 10q1 3 6 4c4 0 5-1 8-15q2-6 8-8c7-2 11 0 25 12 9 7 9 7 13 3q5-5 6-9-1-7 15-6c13-1 15-1 28 8q24 17 14-4l-4-9 7-5c7-6 18-6 41 0l19 5q12 3-5-14-8-10-8-13c1-5 51-6 62-1q8 3 10 2c2-2-9-11-20-17q-19-9-9-15 4-4 31-5 41-3 23-8l-13-3-11-3q-5 0-5-4c0-7 8-10 35-10 24 0 33-2 35-6q0-5-26-9-10-1-11-4-1-5 33-3c21 2 24 1 25-2q5-9-21-9c-33 0-36-9-4-11q19-2 19-4 1-6 12-6 11-2 21-9c4-2-9-5-23-5s-17-2-17-3l9-7 17-10c8-5 32-14 58-22q18-6 20-13c0-4-14-1-32-1q-48 0-46-6 1-5 7-5c11-4 29-14 35-19 7-6 7-6-24 5-21 7-47 10-50 5q-1-2-9-4c-12-2-23-8-22-11 1-4 10-5 14-2 3 3 14 4 14 1s-11-12-25-19l-38-19-117-59-20-8q-4-3-8-3c-3 0-15-4-28-10l-13-4-10-2q-5-3-21-5l-80-11q-22-4-12-9l35-4c29-2 38-1 79 8 14 3 51 15 62 20l18 7 37 15 23 10 23 11q2 1 2-1l-10-7q-11-4-20-11t-13-7c-1 0-9-2-16-7l-40-18-13-6-8-2q-4 0-10-3l-18-7-22-7c-16-5-31-7-73-8m-168 44q5 0 4 2c-1 5-8 6-8 1q0-3 4-3m38 5 3 2q3 3 0 4-8 4-11 0c-2-2 4-6 8-6m-47 2q2 0 2 3-1 6-3 4l-4 2q0 2-3 3-8 1 1-8zm33 6q6 0 2 4-5 6-10 2-4-4 3-6zm-17 6 4 3q6 3-4 8l-27 18-25 17c-9 4-9 4-9 1q1-6 15-17l20-13 16-10 6-4zm415 24h-2q-2 2 1 2l4-2zm1229 69c50 3 86 16 126 45 18 13 44 41 43 47q0 3-18 5c-58 5-57 5-76-5-36-19-50-22-101-22a199 199 0 0 0-102 19q-24 13-41 3l-20-8q-26-6-10-19c10-11 35-29 55-39 40-21 80-28 144-26m-1661 126c-4 1-5 17-1 23 3 7 9 6 9-2 0-9-4-21-8-21m-607 10h11v31l1 31 8 7 15 11 6 5-8 6c-8 7-8 11-2 30 9 31 29 63 44 72 9 5 7 8-12 19-11 7-16 8-33 9l-20 1-8-9c-5-4-11-13-12-18l-7-17a375 375 0 0 1-10-159q9-19 27-19m-30 245c4 0 12 7 15 13l4 9 10-6q18-10 20-3c0 6-3 5-6 7-15 9-39 31-44 38q-14 22-11-12c2-19 7-42 10-45zm167 200h-5q-6 1 7 7 42 21 79 65 6 7 8 3c2-4 0-19-4-29-4-9-20-25-35-33-10-5-37-13-50-13m2651 249c7 3 18 140 17 239a1085 1085 0 0 1-24 230c-5 2-4-13 3-70a2232 2232 0 0 0 3-399m-2694 24 5 6q3 16 21 40l12 17c0 13-33-22-39-40q-8-23 0-23m104 42 8 1 20 6 17 6q7 4 10 4c4 0 32 15 32 18q0 4-22 4c-55 4-65 4-76-1-14-5-29-17-26-21 0-2 9-7 19-11q14-7 18-6m-13 50c5 1 13 3 13 6q-1 3-10 3-10 0-10-3t3-5zm37 15q9 3-4 17-9 8-16 8-7 2-7-7 0-8 4-7l12-6zm1711 19q3 0 4 40c3 60 6 128 9 157l6 69c4 49 10 101 13 120 2 12 2 14-3 18l-26 16c-29 15-28 15-55 31-31 18-95 61-114 75l-16 12q-6-1 3-22l7-22 28-83 10-31 7-20 12-37c3-5 19-55 26-77l8-23a408 408 0 0 0 22-60l13-36 15-44 12-36a229 229 0 0 1 19-47m1395 5c13 118 54 281 73 390a1668 1668 0 0 1 14 553c-6 48-12 95-26 154-1 5-10 27-10 22-1-9 13-97 14-110l10-114c35-380-58-610-75-895m-3109 49c-6 0-16 12-20 26-5 11-5 13 0 21l7 12q6 8 12-12c2-7 6-16 9-19 9-11 10-16 2-23q-6-5-10-5m2559 277 3 3q1 2-3 2l-4-2zm-142 23 3 6c1 6-4 12-6 6-2-4-1-11 3-12m-6 25q2 0 2 9a914 914 0 0 1-49 174q-8 4-1-18c7-20 29-98 38-134q8-30 10-31m-646 171q6 0 5 10c0 14 1 14 4 21l3 20 4 23 20 88 7 31c0 12-51 65-85 88-16 10-45 24-60 29-19 6-61 5-83-1-13-4-35-22-45-37-21-33-37-78-32-95 2-9 24-31 47-48q27-19 89-54l16-11 18-10 13-7a640 640 0 0 1 79-47m592 16q4 0 4 7t-4 7-3-7q0-6 3-7m-7 20h1q3 3 3 5-1 7-6 1-2-4 2-6m-2416 351q3 0 0 13a978 978 0 0 1-30 188l-21 70-2 7-3 12-12 31c-19 51-58 119-87 152-26 30-43 45-60 59-29 21-52 32-91 42l-55 2c-48 0-70-4-93-16-15-8-41-29-51-41-10-13-23-37-22-39l64-3c70-1 105-5 147-18 31-9 72-30 94-48a512 512 0 0 0 117-143c11-19 35-67 41-83l7-18 4-11 7-19c9-22 18-50 32-102l8-28q2-5 5-7zm1263 16c9 0 3 2 3 4 0 3 5 15 11 28l4 8 10 26c38 81 85 130 202 213l23 17c29 25 80 55 132 78q20 10 20 13l-26 20c-14 8-26 17-27 18l-7 5-14 10a1890 1890 0 0 1-143 95 1053 1053 0 0 1-142 71l-42 19-10 5-14 6-95 45-28 14-43 19c-25 9-29 9-30 1a560 560 0 0 0-76-167l-47-73-49-76c-37-57-62-99-62-106s13-6 42-6a238 238 0 0 0 85-14l34-14 30-15 89-90c84-84 161-154 170-154m1962 185q3 1 0 12-4 14-8 6l3-11q3-7 5-7m-7 36c3 0 2 12-1 14l-5 1c-2-1 3-14 6-15"}],small:{viewBox:[-19.7,0,78.5,78.5],paths:[{d:"M37.2 0 33 7.8l-4.1 5.6-8.2 9L6.9 35.6l-3.8 5-2.2 4.3-.9 2.9v3.4L3.4 53l1.4 2.5.8 3.9v4l-.9 3.7-3.1 3.4 2.9 3.9 1.1 4.2 1.2-1.9V73l.7-1.7 3.4-4.1.3-1.2 2-1.5.6-1.3-.1-1.7 2-1.5.7-1.3-.2-2.7 1.3-.6 2-2.6.3-2.3-1-1.4 1.9-2.4 5.5-2.6 4.7-3.4 2.6-2.6 2.4-3.8 1-2.7.1-2.6-8 5.1 4.2-4.2 4.1-6.3 1.2-3.6.3-5.1-1 .5-6.4 7.3-3.9 3.3 5.9-7.4 3.5-7.4 1-4.8V1.5L37.4 0Zm-8.1 34.2-.3.1Z",evenOdd:!0}]}},deepseek:{name:"DeepSeek",viewBox:[0,0,24,24],tone:"#5786FE",paths:[{d:"M23.75 4.65c-.26-.12-.37.11-.51.23l-.14.14c-.37.4-.8.66-1.37.63a2.7 2.7 0 0 0-2.17.84 2 2 0 0 0-1.24-1.54c-.36-.16-.71-.31-.96-.65-.17-.24-.22-.51-.3-.78-.06-.16-.11-.32-.3-.35-.2-.03-.27.14-.35.28q-.46.87-.43 1.84a4 4 0 0 0 1.84 3.4q.2.13.13.31l-.26.84c-.06.18-.14.22-.33.14a6 6 0 0 1-1.74-1.18c-.86-.83-1.63-1.74-2.6-2.46l-.68-.47c-.99-.96.13-1.74.38-1.84.27-.1.1-.43-.78-.43-.87 0-1.67.3-2.68.69a3 3 0 0 1-.47.14 10 10 0 0 0-2.88-.1 6.2 6.2 0 0 0-4.5 2.62 7.7 7.7 0 0 0-1.26 6.07 9.3 9.3 0 0 0 3.36 5.65 9 9 0 0 0 6.44 2.14 7.6 7.6 0 0 0 5-1.86c.46.24.96.33 1.77.4.63.06 1.24-.03 1.7-.13.74-.15.7-.83.43-.96-2.16-1-1.68-.6-2.12-.93 1.1-1.29 2.77-3.6 3.29-6.73.05-.34.11-.83.1-1.11 0-.17.04-.24.24-.26a4 4 0 0 0 1.54-.47c1.4-.77 1.96-2.02 2.1-3.52.02-.23 0-.47-.25-.59M11.58 18.17c-2.09-1.64-3.1-2.19-3.52-2.16-.39.02-.32.47-.23.76s.2.49.37.74c.11.17.19.42-.12.6-.67.42-1.84-.14-1.9-.16a8.7 8.7 0 0 1-3.3-3.31 10 10 0 0 1-1.3-4.48c-.01-.39.1-.52.48-.6a5 5 0 0 1 1.53-.03 9.6 9.6 0 0 1 5.47 2.77c.87.86 1.53 1.89 2.2 2.9.72 1.06 1.5 2.07 2.48 2.9q.51.45.9.68c-.8.1-2.15.11-3.06-.61m1-6.44a.3.3 0 0 1 .42-.29l.1.07a.3.3 0 0 1 .1.22.3.3 0 0 1-.31.3.3.3 0 0 1-.3-.3m3.1 1.6q-.3.13-.59.15a1.3 1.3 0 0 1-.8-.25c-.27-.23-.47-.36-.55-.76a2 2 0 0 1 .02-.59c.07-.32-.01-.53-.24-.72-.19-.16-.43-.2-.7-.2l-.24-.08a.25.25 0 0 1-.12-.36 1 1 0 0 1 .2-.2c.35-.2.76-.14 1.14 0 .35.15.62.42 1 .8.4.44.46.57.69.9q.27.4.44.85.1.3-.25.45"}]},gemini:{name:"Gemini",viewBox:[0,0,24,24],tone:"#3186FF",paths:[{d:"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12 12 0 0 1-3.81-2.58 12 12 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12 12 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"}],overlays:[{x1:7,y1:15.5,x2:11,y2:12,stops:[[0,"#08B962",1],[1,"#08B962",0]]},{x1:8,y1:5.5,x2:11.5,y2:11,stops:[[0,"#F94543",1],[1,"#F94543",0]]},{x1:3.5,y1:13.5,x2:17.5,y2:12,stops:[[0,"#FABC12",1],[.46,"#FABC12",0]]}]},cursor:{name:"Cursor",viewBox:[0,0,466.7,532.1],tone:["#EDECEC","#26251E"],paths:[{d:"M457.4 126 244.4 3c-6.8-4-15.3-4-22.1 0L9.3 126A19 19 0 0 0 0 142v248c0 6.7 3.6 12.8 9.3 16.2l213 123a22 22 0 0 0 22.1 0l213-123c5.8-3.4 9.3-9.5 9.3-16.2V142c0-6.6-3.5-12.7-9.3-16m-13.3 26L238.4 508.2c-1.4 2.4-5 1.4-5-1.4V273.6c0-4.7-2.5-9-6.6-11.3l-202-116.6c-2.3-1.4-1.3-5 1.4-5h411.3c5.8 0 9.5 6.2 6.6 11.3"}]},amp:{name:"Amp",wordmark:!0,viewBox:[0,0,281,144],tone:["#FFFFFF","#000000"],paths:[{d:"M236 20a43 43 0 0 1 44.6 44.7c0 28.8-20.5 49.5-47 49.5q-14.3 0-25-5.7A34 34 0 0 1 195 94.3l-6.8 47.5-.2 1.2h-13.7l.2-1.6 17.4-119h13.6l-1.5 9A47 47 0 0 1 236 20m-189 .2c9.4 0 18 1.7 25 5.6a34 34 0 0 1 13.8 14.3l2.3-16.4.2-1.2h13.6l-12.7 88.1-.2 1.2H75.4l1.3-9a46 46 0 0 1-32.1 11.5A43 43 0 0 1 0 69.6c0-28.8 20.5-49.4 47-49.4m69.2 90.4-.1 1.2h-13.6l12.9-88.1.1-1.2h13.6zm24.5 0-.2 1.2h-13.6l12.9-88.1.2-1.2h13.5zM178 22.5l-13 88.1-.2 1.2h-13.5l12.8-88.1.2-1.2zM48.5 32C27.9 32 14 48.4 14 69c0 8.8 2.8 17.2 8.3 23.3a32 32 0 0 0 25 10.2c20.6 0 34.4-16.6 34.4-37.1 0-10-3.5-18.3-9.3-24.2a33 33 0 0 0-24-9.2m184.9-.2c-20.7 0-34.5 16.6-34.5 37.2 0 10 3.5 18.2 9.3 24a33 33 0 0 0 24 9.3c20.5 0 34.4-16.4 34.4-37 0-8.8-2.8-17.2-8.3-23.3a32 32 0 0 0-25-10.2"}]},copilot:{name:"GitHub Copilot",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M23.92 17c-.86 1.5-5.86 5.02-11.92 5.02S.94 18.49.08 17L0 16.74v-2.87l.05-.22c.38-.93 1.35-2.29 2.6-2.65.18-.43.42-1.06.65-1.52a10 10 0 0 1-.05-1.09c0-1.33.28-2.5 1.13-3.37q.6-.6 1.48-.95a9.5 9.5 0 0 1 6.12-2.09c2.73 0 4.76.96 6.16 2.1q.88.34 1.48.95c.85.86 1.13 2.03 1.13 3.36q0 .56-.05 1.09c.23.46.48 1.09.64 1.52 1.26.36 2.23 1.72 2.6 2.65l.06.22v2.87zm-11.75-6h-.34a4 4 0 0 1-.36.51c-.77.95-1.91 1.5-3.5 1.5-1.73 0-3-.36-3.79-1.26l-.08-.1-.1.1v6.58c1.44.78 4.51 2.18 8 2.18s6.57-1.4 8-2.18v-6.58l-.1-.1-.08.1c-.8.9-2.06 1.25-3.78 1.25-1.6 0-2.74-.54-3.51-1.49a4 4 0 0 1-.36-.5m2.33 3.25a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1 1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1m-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1 1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1m3.31-6.18c.14 1.06.4 1.91.88 2.5.44.54 1.14.93 2.35.93 1.57 0 2.29-.33 2.65-.75.39-.43.56-1.15.56-2.36 0-1.14-.24-1.84-.7-2.32-.48-.48-1.32-.86-2.83-1.02-1.49-.16-2.2.14-2.53.53q-.42.43-.44 1.58v.02q0 .4.06.89m-1.62 0q.06-.5.06-.9v-.01c0-.77-.17-1.27-.44-1.58-.34-.4-1.04-.7-2.53-.53-1.5.16-2.35.54-2.82 1.02s-.71 1.18-.71 2.32c0 1.21.18 1.93.56 2.36.36.42 1.08.76 2.66.76 1.2 0 1.9-.4 2.34-.94q.69-.9.88-2.5"}]},grok:{name:"Grok",viewBox:[56,56,400,400],tone:["#FFFFFF","#000000"],paths:[{d:"m210.5 312.8 133-102.4c6.5-5 15.8-3 19 4.7 16.3 41.1 9 90.5-23.6 124.5A105 105 0 0 1 219.8 364l-45.2 21.8c64.8 46.2 143.5 34.8 192.7-16.5 39-40.7 51-96.2 39.8-146.2v.1c-16.3-73.5 4.1-102.8 46-162.9L456 56l-55 57.4v-.2z"},{d:"M183 337.6c-46.5-46.3-38.5-118 1.2-159.4a108 108 0 0 1 119.5-24.7l45-21.7a145 145 0 0 0-193 16.8A162 162 0 0 0 123 318c17 43.2-10.9 73.7-39 104.6-10 10.9-20 21.8-28 33.4z"}]},kiro:{name:"Kiro",viewBox:[202,202,796,796],tone:"#FFFFFF",paths:[{d:"M399 819c-83 182 92 228 222 121 38 120 180 30 231-62a643 643 0 0 0 56-456c-80-293-480-293-549 2-16 52-17 110-26 171a330 330 0 0 1-50 146c-23 43-13 126 105 83zm237-270c-33 0-38-39-38-62q0-32 11-49 10-14 27-14 18 0 28 15 12 16 13 48-2 60-41 62m135 0c-33 0-38-39-38-62q0-32 11-49 11-14 27-14 18 0 29 15 12 16 12 48-1 60-41 62",evenOdd:!0},{d:"M636 549c-33 0-38-39-38-62q0-32 11-49 10-14 27-14 18 0 28 15 12 16 13 48-2 60-41 62m135 0c-33 0-38-39-38-62q0-32 11-49 11-14 27-14 18 0 29 15 12 16 12 48-1 60-41 62",tone:"#000000",monoOpacity:0}],tile:{viewBox:[0,0,1200,1200],radius:260,tone:"#9046FF"}},antigravity:{name:"Antigravity",viewBox:[13.9,15.1,83.6,83.6],tone:["#FFFFFF","#000000"],paths:[{d:"M89.7 93.7c4.67 3.5 11.67 1.16 5.25-5.26-19.25-18.66-15.17-70-39.08-70-23.92 0-19.84 51.34-39.09 70-7 7 .59 8.75 5.25 5.25 18.09-12.25 16.92-33.83 33.84-33.83 16.91 0 15.75 21.58 33.83 33.83"}]},factory:{name:"Factory",viewBox:[93.8,93.3,317.3,317.3],tone:["#FAFAFA","#020202"],paths:[{d:"M322 150.7a4 4 0 0 1-2.8-2.2 4 4 0 0 1-.1-3.4c8.1-19.4 11.7-34.9 6-41.4-15.4-17.2-77 17-96.6 28.6a4.3 4.3 0 0 1-6.2-2c-8.2-19.3-17-32.7-25.7-33.3-23.3-1.5-42.1 65.2-47.6 87a4 4 0 0 1-2.2 2.7 4 4 0 0 1-3.6 0c-19.8-7.9-35.7-11.4-42.3-5.7-17.6 15 17.4 75.1 29.3 94.3a4 4 0 0 1-.6 5q-.6.6-1.4 1c-19.8 8-33.6 16.5-34.2 25.1-1.6 22.8 66.7 41.1 89 46.5a4 4 0 0 1 2.8 2.2 4 4 0 0 1 .1 3.5c-8.1 19.3-11.7 34.8-6 41.3 15.4 17.2 77-17 96.7-28.6a4.3 4.3 0 0 1 6 2c8.3 19.3 17 32.7 25.8 33.3 23.3 1.6 42.1-65.2 47.6-87a4 4 0 0 1 2.2-2.6 4 4 0 0 1 3.6-.1c19.8 7.9 35.7 11.4 42.3 5.7 17.6-15-17.4-75.1-29.3-94.3a4 4 0 0 1 .6-5q.6-.6 1.5-1c19.7-8 33.5-16.5 34-25.1 1.7-22.8-66.6-41.1-88.9-46.5M295.3 129c4.4 7.8-18.7 60.1-35.8 96.7q-.5.8-1.4 1.4a3 3 0 0 1-3.8-.3q-1-.7-1.1-1.6c-7-23.8-14.9-51.7-23.4-75.4a4 4 0 0 1 0-2.9q.6-1.4 2-2.1c21.2-11.3 57.4-26.3 63.5-15.8m-101.6 6.5c8.9 2.4 30.4 55.3 44.7 93a3 3 0 0 1-1 3.7 3 3 0 0 1-3.8.3c-22.1-12-48-26.2-71-37.1q-1.5-.7-2.1-2.1a4 4 0 0 1-.2-2.9c6.8-22.6 21.6-58.2 33.4-55m-67 74.6c8-4.3 61.5 18.2 99 35q.8.4 1.4 1.3a3 3 0 0 1-.3 3.8q-.6.8-1.7 1c-24.3 6.8-52.9 14.6-77.2 22.8q-1.5.6-2.9 0-1.5-.6-2.2-1.9c-11.5-20.7-27-56-16.1-62m6.6 99.2c2.5-8.6 56.7-29.7 95.3-43.7a4 4 0 0 1 3.7 1 3 3 0 0 1 .4 3.7c-12.3 21.6-27 46.9-38.1 69.5q-.7 1.4-2.1 2-1.5.5-3 .2c-23-6.7-59.6-21.1-56.2-32.7m76.4 65.5c-4.4-7.8 18.6-60 35.8-96.6q.5-1 1.4-1.5a3 3 0 0 1 3.8.3q.9.6 1.1 1.6c7 23.8 14.9 51.7 23.4 75.4q.4 1.5 0 2.9-.6 1.5-2 2.1c-21.2 11.3-57.4 26.4-63.4 15.8m101.5-6.4c-8.8-2.5-30.3-55.4-44.6-93.1a3 3 0 0 1 1-3.7 3 3 0 0 1 3.8-.3c22 12 47.9 26.3 71 37.2q1.5.6 2.1 2 .6 1.5.2 2.9c-6.8 22.6-21.6 58.2-33.5 55m67.1-74.7c-8 4.3-61.5-18.2-99-35q-.9-.4-1.4-1.3a3 3 0 0 1 .3-3.8q.6-.8 1.6-1c24.4-6.8 53-14.6 77.2-22.8q1.5-.5 3 0t2.2 1.9c11.5 20.7 27 56 16.1 62m-6.6-99.2c-2.5 8.7-56.7 29.7-95.3 43.7a4 4 0 0 1-3.7-1 3 3 0 0 1-.4-3.7c12.3-21.6 27-46.8 38-69.5q.8-1.4 2.2-2t3-.1c23 6.6 59.6 21 56.2 32.6"}]},qoder:{name:"Qoder",viewBox:[31.5,32.5,143,143],tone:["#FFFFFF","#0F0D0C"],paths:[{d:"m104 35.8 1 .5 49.9 26.3.3.2q8.4 4.6 13 13t4.6 19.3v63.2q0 8-6.8 12.3a14 14 0 0 1-14 1l-8.5-4v.1l-.2.1h-.1l-1.7 1-.3.2-1.2.6-.7.3h-.1l-1.2.6-.7.4-1.2.4h-.1l-.1.1h-.2l-1.8.8h-.2l-.5.2-2 .6-3.6 1-1.8.4-.4.1-.4.1-1.4.3h-.5l-1.4.3h-1l-.5.1h-.1l-1.5.1h-5.2l-1.3-.2h-.3l-1.4-.3h-.5l-.6-.2h-.3l-1.3-.4-.5-.1-2.2-.7h-.1l-1.6-.7-.2-.1-1.1-.5h-.1l-.3-.2h-.2v-.1l-.4-.2-49.4-26-1-.6a32 32 0 0 1-8.6-6.9l-1.4-1.8a38 38 0 0 1-7.3-23.4V90.5a72 72 0 0 1 .6-8.2v-.2l.3-1.1v-.3l1-4.1v-.1l.7-2.4 1.6-4.3.4-1 1.6-3.3.6-1.3 1.7-2.9.5-.9 1.3-2 .3-.4.3-.4v-.1l.7-.9.7-1 .4-.4.3-.4 2.4-2.9.7-.7 1-1.1.6-.7 3.5-3.2.6-.5 5-3.8.5-.4 3.6-2.1.6-.4 3.2-1.5.4-.2.4-.2 1.2-.5h.3l4.6-1.6 3.5-1a37 37 0 0 1 5.4-1.1h.7l1.2-.2h.4l1.8-.1h4.7l1.3.2h.3l1.6.3 1.2.3 1.3.3h.3v.1h.3l3.4 1.3h.2zm.9 126.8.8.4.2.1h.1l.1.1h.2l.8.4.3.2q.4 0 1 .4h.2l1.4.5h.2l1.1.3h.4l.4.2 1 .1h.3l.9.2h5.2l.6-.1h.5l1-.2h.3l.2-.1h.1l.9-.2h.3l.3-.1 1.3-.4 3.5-1q1-.1 1.7-.4l.2-.1h.2l1.2-.5h.2l.1-.1.2-.1h.2l.8-.4.6-.3 1-.5h.1l.5-.2 1-.6h.2l.2-.2h.2l1-.7h.2l.2-.2h.2l1.2-.9.4-.2a5 5 0 0 1 4.8-.4l11 5q2.4 1 4.6-.4t2.1-4v-63q0-17.1-12.5-23.7l-.3-.2h-.2l-.2-.1-2-.9h-.2l-1.3-.5h-.3l-1-.3h-.2l-.7-.2-2.2-.3h-.3l-2-.1h-.4l-2.2.1h-.4l-2.6.4-2.8.6-3.5 1-1.5.5h-.3l-.3.2-2.6 1-.7.3-.4.1v18.3l-.1 2.9v.2l-.2 2.2v.5l-.3 1.8v.4l-.7 3.2v.2l-.5 1.8-.1.5-.6 1.8-.1.5-.9 2.5-.1.3v.2l-1 2v.2l-.9 1.9v.3l-.2.2-1 1.9-.3.6-.2.4-.6 1-1.1 2h-.1l-1 1.5-.2.4-.6.8v.1l-.7.8-1.4 1.9-.2.3-1.1 1.4-3 3.3-.2.2-1.2 1.2-.2.1-.2.2-.3.3-1.6 1.4-.1.1-.1.1-.1.1-.2.2-1.4 1-.3.3-.1.2h-.1l-3 2.2-.3.2H95l-1.8 1.2q.3 15.8 11.7 22.3M85.1 152q-1.9-6-1.9-12.8v-22.5a50 50 0 0 1 .7-8.2v-.1l.7-3.3 1.1-4.2.2-.6a59 59 0 0 1 3-7.4l1-2 .1-.2 1.1-2 .3-.5.3-.5 1-1.7.2-.3 3.4-4.7.4-.4.4-.5.7-.9 3.2-3.5 3.6-3.3.6-.6 3-2.3.5-.4 1.4-1 .4-.2 4-2.4.2-.1 1.4-.7 2-1 .7-.3 3.4-1.3.3-.1.3-.1 2-.6 3.6-1 .7-.2L100.3 45l-.4-.2-.7-.3-.8-.3-1-.4-1.3-.4H96l-1.2-.4h-.5l-.3-.1h-.2l-2-.4h-5.5l-.6.2h-.6l-4 .9-3.6 1-3.6 1.2h-.2l-1 .4-.3.2-.4.1-.9.5-1.6.8-.6.3-3 1.8-1.4 1-1.8 1.3v.1l-5 4.4-.2.3-.8.8-.7.8-1.8 2.2-.4.5-.3.4-1 1.2q0 .3-.2.3l-.2.4-.3.5-1.4 2v.1l-.2.4-1.3 2.3-.2.2-.2.6-.5.9-1.3 2.8v.2l-.5 1v.3l-.1.1-1.4 4.2v.4l-.5 1.6q0 .7-.3 1.4l-.2 1-.4 3-.1 3.9V113a28 28 0 0 0 6.3 18.7l1.6 1.7a21 21 0 0 0 4.6 3.2zm8-23.9.8-.6.2-.1v-.1l.2-.2 1.4-1.2.1-.1.2-.2.2-.2 3.7-4 1-1 .2-.4 1.1-1.5.6-.8.5-.7.2-.3.8-1.2v-.1l1-1.5v-.2l.6-.8.1-.4.3-.5.9-1.7.1-.3.7-1.5.2-.4.6-1.5v-.2l.1-.2.1-.2v-.2q.4-.8.6-1.7l.2-.4.4-1.5.2-.4.3-1.5v-.2l.5-2.5v-.3h.1l.2-1.5v-.4l.2-1.7V79.3l-.2.3h-.1l-.2.2-.2.2a51 51 0 0 0-5.5 5.5l-.2.2-.5.7-.4.4-.3.5-2.8 3.9-.2.2-.9 1.4-.2.5-.3.4-1.9 3.6-1.7 4-.8 2.3v.2l-.1.2-1 3.6-.5 2.5v.2l-.4 3.7v.3l-.1.6v13.3",evenOdd:!0},{d:"M41.8 61.3v.1l-2.1 3.7-.2.3-2 4.4L36 74l-.2.6-.5 1.8-.7 2.6-.3 1.9-.2 1v.3a57 57 0 0 0-.7 8.2V113a38 38 0 0 0 8.7 25.2q1.2 1.5 2.4 2.5a31 31 0 0 0 7.2 5l49.4 26 .4.2.2.1.3.1 1.2.6h.2v.1l1.6.6h.1l.5.2 1.7.6h.4v.1l1.4.3h.2v.1l.7.1.5.1 1.4.2h.3l1.3.2h.7l.2.1h5.9l.5-.1h.6l.4-.1 1.4-.2.5-.1 1.4-.3h.4l.4-.2q.9 0 1.8-.4l3.6-1 2.5-.8h.2l1.8-.7h.2l.1-.1h.1l1.2-.5.7-.4 1.2-.5h.1l.7-.4 1.2-.6.2-.2h.1l1.7-1 .2-.1 8.6 3.9q7.3 3.3 14-1 6.7-4.4 6.7-12.3V95q0-10.8-4.5-19.3A32 32 0 0 0 155 62.5l-50-26.3-.9-.5-1.5-.7h-.2L99 33.9h-.2v-.1h-.4l-1.3-.4-1-.2h-.2l-.2-.1-1.7-.3-1.3-.1h-.3l-1-.1h-5.6l-.3.1-.9.1h-.3l-.4.1a33 33 0 0 0-5.4 1.1L75 35l-4.6 1.5-.3.1-1.2.5-.4.2-.4.2L65 39l-.7.4-4 2.5-5.1 3.8-.6.5-4.1 3.9h-.1l-1 1-.6.8-2.4 2.9-.3.4-.4.4-1.3 1.9-.4.5-.3.5zm62.8 11.2a61 61 0 0 0-6.8 6.8l-.7.9-.4.5-.4.4a54 54 0 0 0-4.6 6.7l-.3.5-.3.5L89 93a55 55 0 0 0-3 7.4l-.2.6-1.1 4.2v.2l-.7 3.1v.1a54 54 0 0 0-.7 8.2v22.5q0 7 2 12.8l-29.4-15.4h-.1v-.1a21 21 0 0 1-4.5-3.1A22 22 0 0 1 48 130q-5-7-5-17V90.5a60 60 0 0 1 .8-8l.3-1.2V81l.5-1.8L46 75l.1-.3.5-1.3.2-.3.6-1.3 1-2 .1-.3.1-.3.2-.2 1.5-2.7.8-1.3.6-.8.3-.5.2-.4.2-.2.4-.5.6-.8.3-.4.4-.5 1.8-2.2.7-.8 1-1 .3-.4 4.6-4.1h.1l3.2-2.4h.1l3.1-2 .6-.3 1.6-.8 1-.5.3-.1.3-.2 4.8-1.7 3.5-1 4.1-.8h.6l.6-.1h.6l4.3-.1h.5l2.3.4h.4l.4.1 1.2.3 1.3.5.8.3h.3l1.5.7.4.2 28.8 15.2-.7.2-3.5 1-2.1.6-.3.1h-.3l-3.4 1.4-.8.3-3.3 1.7h-.2l-.4.3-4 2.4-1.4 1-.5.4zm.3 90 .8.5.2.1h.1l.1.1h.2l.8.4.3.2q.4 0 1 .4h.2l1.4.5h.2l1.1.3h.4l.4.2 1 .1h.3l.9.2h5.2l.6-.1h.5l1-.2h.3l.2-.1h.1l.9-.2h.3l.3-.1 1.3-.4 3.5-1q1-.1 1.7-.4l.2-.1h.2l1.2-.5h.2l.1-.1.2-.1h.2l.8-.4.6-.3 1-.5h.1l.5-.2 1-.6h.2l.2-.2h.2l1-.7h.2l.2-.2h.2l1.2-.9.4-.2a5 5 0 0 1 4.8-.4l11 5q2.4 1 4.6-.4t2.1-4v-63q0-17.1-12.5-23.7l-.3-.2h-.2l-.2-.1-2-.9h-.2l-1.3-.5h-.3l-1-.3h-.2l-.7-.2-2.2-.3h-.3l-2-.1h-.4l-2.2.1h-.4l-2.6.4-2.8.6-3.5 1-1.5.5h-.3l-.3.2-2.6 1-.7.3-.4.1v18.3l-.1 2.9v.2l-.2 2.2v.5l-.3 1.8v.4l-.7 3.2v.2l-.5 1.8-.1.5-.6 1.8-.1.5-.9 2.5-.1.3v.2l-1 2v.2l-.9 1.9v.3l-.2.2-1 1.9-.3.6-.2.4-.6 1-1.1 2h-.1l-1 1.5-.2.4-.6.8v.1l-.7.8-1.4 1.9-.2.3-1.1 1.4-3 3.3-.2.2-1.2 1.2-.2.1-.2.2-.3.3-1.6 1.4-.1.1-.1.1-.1.1-.2.2-1.4 1-.3.3-.1.2h-.1l-3 2.2-.3.2H95l-1.8 1.2q.3 15.8 11.7 22.3Zm-11.8-34.3.8-.6.2-.1v-.1l.2-.2 1.4-1.2.1-.1.2-.2.2-.2 3.7-4 1-1 .2-.4 1.1-1.5.6-.8.5-.7.2-.3.8-1.2v-.1l1-1.5v-.2l.6-.8.1-.4.3-.5.9-1.7.1-.3.7-1.5.2-.4.6-1.5v-.2l.1-.2.1-.2v-.2q.4-.8.6-1.7l.2-.4.4-1.5.2-.4.3-1.5v-.2l.5-2.5v-.3h.1l.2-1.5v-.4l.2-1.7V79.3l-.2.3h-.1l-.2.2-.2.2a51 51 0 0 0-5.5 5.5l-.2.2-.5.7-.4.4-.3.5-2.8 3.9-.2.2-.9 1.4-.2.5-.3.4-1.9 3.6-1.7 4-.8 2.3v.2l-.1.2-1 3.6-.5 2.5v.2l-.4 3.7v.3l-.1.6z",strokeWidth:3.5}]},kimi:{name:"Kimi",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M21.77.35a2.24 2.24 0 0 1 0 4.47h-1.98a.26.26 0 0 1-.26-.26V2.59A2.24 2.24 0 0 1 21.76.35M9.42 13.39 17.86 5c.16-.16.07-.47-.14-.47h-4.55s-.1.02-.14.06l-9.1 9.03c-.14.14-.35.02-.35-.21V4.8c0-.15-.1-.27-.22-.27H.22c-.12 0-.22.12-.22.27v18.57c0 .15.1.27.22.27h3.14c.12 0 .22-.12.22-.27v-3.79a.3.3 0 0 1 .08-.21l2.82-2.8a.2.2 0 0 1 .24-.03l7.55 5.55a9 9 0 0 0 4.02 1.5c.12 0 .23-.11.23-.27v-3.57q-.01-.23-.2-.26a6 6 0 0 1-2.35-.94l-6.53-4.73c-.14-.1-.15-.32-.03-.44"}]},codebuddy:{name:"CodeBuddy",viewBox:[0,0,24,24],tone:"#6C4DFF",paths:[{d:"M18.64.29h-.11c-.18 0-.2.02-.45.24-.71.63-1.72 2.55-2.7 5.14l-.27.72-.5.16q-2.34.74-4.16 1.89a18 18 0 0 0-2.77 2.06l-.58.5-.26-.04c-2.53-.45-4.8-.61-5.84-.43-.41.08-.76.22-.86.35a.7.7 0 0 0-.14.47q0 .28.1.73a18 18 0 0 0 2.03 4.78l.7 1.24-.02.46c-.03.5 0 1.27.06 1.8.04.32.03.32-.14.51-.56.65-.7 1.68-.4 2.84h5.36l-.33-.57c-.64-1.1-.96-1.66-1.13-2.18a5.5 5.5 0 0 1 1.56-5.84c.4-.35.96-.67 2.07-1.31l6.38-3.69c1.11-.64 1.67-.96 2.18-1.13A5.5 5.5 0 0 1 24 10.28V6.46l-.12-.06-.5-.25-.36-.66c-.92-1.7-2.4-3.7-3.48-4.67-.4-.36-.65-.51-.9-.53m-7.07 17.34a1.26 1.26 0 0 1 1.72.47l1.36 2.35c.84 1.45-1.34 2.71-2.18 1.26l-1.36-2.35a1.26 1.26 0 0 1 .46-1.73m6.8-3.92a1.26 1.26 0 0 1 1.72.46l1.36 2.35c.84 1.46-1.34 2.72-2.18 1.26l-1.36-2.35a1.26 1.26 0 0 1 .46-1.72"}]},rovodev:{name:"Rovo Dev",viewBox:[4.5,4.5,15,15],tone:"#101214",paths:[{d:"M11.26 4.71a1.7 1.7 0 0 1 1.67.02l5 2.89c.53.3.85.86.85 1.46v5.78a1.7 1.7 0 0 1-.85 1.47l-3.76 2.17.02-.07q.1-.32.11-.68v-5.78c0-.79-.42-1.52-1.11-1.92l-2.8-1.62V6.2q0-.27.07-.52.2-.61.77-.95z"},{d:"M9.99 5.45 6.22 7.62a1.7 1.7 0 0 0-.84 1.47v5.78c0 .6.32 1.17.84 1.47l5 2.89a1.7 1.7 0 0 0 1.67.01l.03-.02q.56-.33.77-.95.08-.24.08-.51v-2.24l-2.8-1.62a2.2 2.2 0 0 1-1.12-1.92V6.2a2 2 0 0 1 .14-.75"}],tile:{viewBox:[0,0,24,24],radius:6,tone:"#94C748"}},goose:{name:"goose",viewBox:[2.7,1.1,40.6,40.6],tone:["#FFFFFF","#101010"],paths:[{d:"m43.21 39.25-3.4-2.8a21 21 0 0 1-4.65-5.4 21 21 0 0 0-6.84-6.98l-1.37-.8c-.47-.32-.8-.83-.84-1.4q-.05-.55.26-1c.71-1 4.6-5.17 5.27-5.73.87-.72 1.83-1.31 2.73-2l.38-.3h.02q.44-.33.78-.76c1.05-1.22 1.03-2.25 1.03-2.25a3 3 0 0 0-1.34-1.53c.73-.02 1.55.26 1.92.62.44-.7.73-1.15 1.18-1.92.1-.18.16-.51-.04-.7l-.01-.01-.02-.02-.02-.02-.02-.02-.02-.01-.02-.03-.01-.01-.01-.01c-.2-.21-.53-.15-.7-.05-1 .59-1.97 1.21-2.83 1.77 0 0-1.04-.03-2.26 1.03q-.41.33-.75.77l-.01.02-.3.38c-.68.9-1.28 1.87-2 2.74-.55.67-4.73 4.55-5.73 5.26q-.44.3-1 .27a2 2 0 0 1-1.4-.84l-.8-1.37a21 21 0 0 0-6.98-6.85 21 21 0 0 1-5.4-4.65l-2.8-3.4a.3.3 0 0 0-.5.06 20 20 0 0 0-1.39 3.68q0 .07.03.12c.58.7 1.92 2.24 3.51 3.54.11.1.02.27-.12.23A20 20 0 0 1 3.03 7.4a.13.13 0 0 0-.2.1 17 17 0 0 0-.02 4.06q0 .07.07.1a31 31 0 0 0 4.89 1.68c.14.03.13.23 0 .26-1.5.28-3.06.34-4.33.33a.13.13 0 0 0-.13.16q.38 1.35 1.05 2.74.29.63.62 1.22.05.11.18.1c1.05-.04 2.32-.15 3.6-.38.21-.04.33.25.14.37-.86.58-1.78 1.08-2.64 1.49a.2.2 0 0 0-.08.3q.77 1.05 1.68 1.96s3 3.09 3.08 3.33c1.75-1.8 4.63-3.78 7.8-5.52a56 56 0 0 0-7.81 7.48l-.84 1.16q-.64.92-1.12 1.93A141 141 0 0 0 6.2 37.1a.9.9 0 0 0 .2.94l.02.01.02.02c.23.23.58.34.94.2 0 0 4.57-1.73 6.83-2.78q1.01-.45 1.92-1.12l1.29-.91a1.7 1.7 0 0 1 2.2.18l2.97 2.97q.92.9 1.95 1.68c.1.07.25.03.3-.08.42-.86.92-1.78 1.5-2.65.12-.18.4-.06.37.15a29 29 0 0 0-.4 3.6q.01.11.11.18.6.33 1.22.62 1.4.67 2.74 1.05.15.02.17-.13c-.02-1.27.05-2.83.33-4.33.02-.14.22-.14.26 0a31 31 0 0 0 1.67 4.88q.03.08.11.08c1.44.17 2.81.13 4.06-.03.1-.01.14-.11.1-.2-.51-1-1.11-2.33-1.49-3.7-.04-.15.14-.24.23-.13 1.3 1.6 2.85 2.94 3.54 3.52q.06.03.12.02a19 19 0 0 0 3.69-1.39.3.3 0 0 0 .05-.5"}]},aider:{name:"Aider",viewBox:[0,0,436,436],tone:["#FFFFFF","#000000"],paths:[{d:"M0 218v218h436V0H0zM271 36c2 2 2 12 3 40v31h21l23 1 1 10 3 17c1 9 1 8-2 23-2 7-1 37 0 44q3 13 1 25c-3 12-3 36 0 46q3 14 0 33l-2 13v4h20l22 1 3 15 2 17-4 38c-1 2-2 2-21 2q-21 0-22-2c-2-2-3-30-2-50v-19h-43c-1 1 0 15 1 26v14l-1 15c-1 12-2 14-5 15l-67 1h-66l-1-3c-3-10-4-34-3-54l1-12-1-3h-19c-21 0-26 0-26-3-2-3-2-39-1-52 1-19 0-17 26-18l22-1-1-11-2-16q-2-7 1-18l4-24c1-1 13-2 67-2h65l1-3v-13c-1-12-1-35 1-46v-8l-65-1h-64l-2-2-3-6-1-15c-1-13 1-45 2-48l5-1z"},{d:"M136 253v35l-1 35h63l72-1 1-3c-3-14-4-49-1-60q2-4-1-6l-67-1z"}]},qwen:{name:"Qwen",viewBox:[0,0,24,24],tone:"#6950EF",paths:[{d:"m23.92 14.55-3.1-5.38 1.47-2.54a.6.6 0 0 0 0-.57l-1.64-2.83a.6.6 0 0 0-.49-.28h-6.2L12.49.4a.6.6 0 0 0-.5-.28H8.74a.6.6 0 0 0-.49.28l-3.1 5.38H2.2a.6.6 0 0 0-.5.28L.09 8.89a.6.6 0 0 0 0 .56l3.1 5.38-1.47 2.55a.6.6 0 0 0 0 .56l1.63 2.83a.6.6 0 0 0 .5.28h6.2l1.47 2.55a.6.6 0 0 0 .49.28h3.27a.6.6 0 0 0 .49-.28l3.1-5.38h2.94a.6.6 0 0 0 .49-.28l1.63-2.83a.6.6 0 0 0 0-.56M8.73.69l1.64 2.82-1.64 2.83H21.8l-1.64 2.83H7.43l-1.8-3.11Zm1.3 19.8h-6.2l1.64-2.83h3.26L2.2 6.34h3.27l6.37 11.04zm10.13-5.66L18.53 12 12 23.32l-1.64-2.84 6.38-11.02h3.59l3.1 5.37z"}]},mistral:{name:"Mistral AI",viewBox:[0,0,24,24],tone:"#FA520F",paths:[{d:"M17.14 3.43v3.43h-3.43v3.43H10.3V6.86H6.86V3.43H3.43v13.71H0v3.43h10.29v-3.43H6.86v-3.42h3.43v3.42h3.43v-3.42h3.42v3.42h-3.42v3.43H24v-3.43h-3.43V3.43z"}]},ollama:{name:"Ollama",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M16.36 10.26a1 1 0 0 0-.56.47l-.07.15v.2c0 .2 0 .22.06.36.08.2.15.31.3.45q.33.35.86.2a1 1 0 0 0 .52-.43 1 1 0 0 0 .08-.5 1 1 0 0 0-.72-.9 1 1 0 0 0-.47 0m-9.2 0a1 1 0 0 0-.65.64 1 1 0 0 0-.06.52c.06.31.3.6.6.67q.53.15.87-.2c.14-.14.21-.26.29-.45a1 1 0 0 0 .06-.36v-.2l-.07-.15a1 1 0 0 0-.57-.47 1 1 0 0 0-.47 0m4.18 2c-.13.08-.22.26-.2.39q.06.22.36.4c.1.07.11.08.12.14l-.03.24-.04.23c0 .07.07.2.15.25.06.05.07.05.25.06.16 0 .2 0 .26-.03q.26-.1.15-.53c-.05-.24-.04-.28.1-.35a1 1 0 0 0 .32-.32.37.37 0 0 0-.18-.48.4.4 0 0 0-.18-.03c-.13 0-.2.03-.36.12l-.08.06-.05-.03c-.22-.13-.26-.15-.4-.15a.4.4 0 0 0-.19.03m.4-2.19c-.38.04-.48.05-.66.09-.3.06-.68.2-.95.32a3.2 3.2 0 0 0-1.79 2.12c-.04.17-.04.23-.04.53s0 .35.04.52c.26 1.16 1.33 2.02 2.71 2.17.3.04 1.6.04 1.9 0a3.2 3.2 0 0 0 2.5-1.57 2.3 2.3 0 0 0 .26-1.12c0-.3-.01-.36-.05-.53-.29-1.3-1.54-2.3-3.07-2.5a7 7 0 0 0-.86-.03zm.64.94a3 3 0 0 1 1.44.51c.22.15.53.46.67.66q.24.37.3.82c.02.15.01.25-.04.49-.08.34-.33.7-.67.95a3 3 0 0 1-.7.35c-.37.12-.62.14-1.52.14-.58 0-.68-.01-.85-.04a2.4 2.4 0 0 1-1.35-.68 1.6 1.6 0 0 1-.45-.95c-.03-.2.02-.5.14-.78.13-.32.48-.73.83-.96a3.3 3.3 0 0 1 2.2-.51M6.88 0a2 2 0 0 0-.69.3C5.62.73 5.17 1.66 5 2.8a10 10 0 0 0 .06 3.43l-.2.16a5 5 0 0 0-.94 1.02 5.5 5.5 0 0 0-.94 2.34 7 7 0 0 0-.02 1.36q.13 1.15.72 2.04l.13.2-.03.06a6 6 0 0 0-.7 3.03 5.7 5.7 0 0 0 .85 3.2l-.05.14a7 7 0 0 0-.54 1.87 5 5 0 0 0-.07 1c0 .56.03.83.14 1.27l.02.07H4.9l-.05-.1c-.3-.54-.33-1.57-.07-2.59.12-.47.25-.82.5-1.3l.15-.28v-.18c0-.17 0-.19-.06-.3a1 1 0 0 0-.2-.24 2 2 0 0 1-.38-.55 5.6 5.6 0 0 1-.2-3.45c.12-.48.32-.92.54-1.15a.8.8 0 0 0 .22-.53q0-.29-.23-.53a3 3 0 0 1-.81-1.72c-.14-.96.11-2 .69-2.84a3.4 3.4 0 0 1 2.23-1.47c.2-.04.57-.03.78 0 .23.05.37.04.51-.03.18-.09.27-.2.38-.43A3.3 3.3 0 0 1 10.08 5q.63-.43 1.35-.57c.17-.04.25-.04.57-.04s.4 0 .57.04a4 4 0 0 1 1.91 1c.12.1.4.45.5.6l.12.27c.1.24.2.34.38.43a1 1 0 0 0 .5.04c.34-.06.6-.05.94.02a3.6 3.6 0 0 1 2.58 2.43 3.6 3.6 0 0 1-.3 3.16q-.13.21-.33.42c-.3.32-.3.72 0 1.05.5.54.8 1.86.71 3.03a4 4 0 0 1-.53 1.86l-.23.26a1 1 0 0 0-.19.25c-.05.1-.06.12-.06.29v.18l.15.29c.25.47.38.82.5 1.3.25 1 .23 2-.06 2.57l-.04.1.73.01h.73l.02-.07.03-.14.1-.51a7.3 7.3 0 0 0-.64-3.62l.1-.16q.55-.84.72-2.23c.03-.26.03-1.38 0-1.63a7 7 0 0 0-.35-1.52 6 6 0 0 0-.32-.7l-.04-.07.13-.19q.59-.88.73-2.04a7 7 0 0 0-.03-1.36 5.5 5.5 0 0 0-.94-2.34 5 5 0 0 0-.95-1.02l-.18-.15.02-.2c.2-1.1.2-2.45-.02-3.51a4 4 0 0 0-.98-2.08A1.5 1.5 0 0 0 16.83 0c-1 .06-1.8 1.2-2.11 3.01l-.1.73q0 .05-.02.06l-.14-.07a5 5 0 0 0-2.46-.7c-.83 0-1.69.24-2.46.7l-.14.08q-.02 0-.02-.07l-.1-.73C9 1.4 8.34.31 7.46.05A2 2 0 0 0 6.88 0m.29 1.4c.25.2.52.76.68 1.39l.1.52q.1.54.11 1.24v.48l-.12.17-.11.18h-.28q-.5 0-.96.12l-.23.06c-.04.01-.04 0-.06-.14a8 8 0 0 1 .01-2.32c.13-.8.42-1.5.7-1.71.07-.05.08-.05.16 0m9.82-.01c.17.12.36.46.5.88.28.86.36 2.03.21 3.15-.02.14-.02.15-.05.14l-.24-.06a4 4 0 0 0-.96-.12h-.27l-.12-.18-.12-.17v-.48c0-.67.07-1.19.21-1.77.16-.62.44-1.18.68-1.38.08-.06.1-.06.16-.01"}]},openrouter:{name:"OpenRouter",viewBox:[0,0,24,24],tone:"#94A3B8",paths:[{d:"M16.78 1.84v1.92l-1.14-.03q-.7 0-1.42.04C12.3 3.89 10.2 4.5 8.08 6 5.16 8.07 5.34 7.96 3.94 8.75c-.4.22-1.35.57-2.19.8-.84.22-1.75.33-1.75.33v4.22s.77.11 1.61.34c.84.22 1.79.57 2.18.8 1.41.8 1.23.68 4.14 2.75a12 12 0 0 0 6.15 2.23q1.31.07 2.56 0v1.93l7.22-4.17-7.22-4.17v2.17q-1.28.08-2.28.02a7 7 0 0 1-3.98-1.46 53 53 0 0 0-3.68-2.5 51 51 0 0 0 3.82-2.6A7 7 0 0 1 14.5 8q1-.06 2.28.02v2.17L24 6.01Z"}]},lmstudio:{name:"LM Studio",viewBox:[0,0,24,24],tone:["#FFFFFF","#000000"],paths:[{d:"M14.03 0c3.49 0 5.23 0 6.57.68a6.2 6.2 0 0 1 2.72 2.72C24 4.74 24 6.48 24 9.98v4.04c0 3.5 0 5.24-.68 6.58a6.2 6.2 0 0 1-2.72 2.72c-1.34.68-3.08.68-6.58.68H9.99c-3.5 0-5.24 0-6.58-.68A6.2 6.2 0 0 1 .68 20.6C0 19.26 0 17.52 0 14.02V9.99c0-3.5 0-5.24.68-6.58A6.2 6.2 0 0 1 3.4.68C4.74 0 6.48 0 9.97 0zM7.69 16.31a1.31 1.31 0 0 0 0 2.63H19.3a1.31 1.31 0 0 0 0-2.63zm-3-3.75a1.31 1.31 0 0 0 0 2.63H16.3a1.31 1.31 0 0 0 0-2.63zm3-3.75a1.31 1.31 0 0 0 0 2.63H19.3a1.31 1.31 0 0 0 0-2.63zm-3-3.75a1.31 1.31 0 0 0 0 2.63H16.3a1.31 1.31 0 0 0 0-2.63z"}]}},Kse=16,Wse={acli:"rovodev",agy:"antigravity",aider:"aider",amp:"amp",anthropic:"anthropic",antigravity:"antigravity",bedrock:null,campfire:null,chatgpt:"openai",claude:"claude","claude-code":"claude","claude-sr":"claude",claude_code:"claude",claudecode:"claude",codebuddy:"codebuddy",codex:"openai","codex-acp":"openai","codex-cli":"openai",copilot:"copilot","copilot-cli":"copilot",cursor:"cursor","cursor-agent":"cursor","cursor-cli":"cursor",deepseek:"deepseek","deepseek-harness":"deepseek",droid:"factory",dsh:"deepseek",factory:"factory",gemini:"gemini","gemini-cli":"gemini","github-copilot":"copilot",goose:"goose",grok:"grok","grok-cli":"grok",groq:null,hermes:"hermes","hermes-agent":"hermes",kimi:"kimi","kimi-cli":"kimi",kiro:"kiro","kiro-cli":"kiro",lmstudio:"lmstudio",mistral:"mistral",mux:null,"oh-my-pi":"omp",ollama:"ollama",omp:"omp",openai:"openai",opencode:"opencode","opencode-go":"opencode","opencode-v2":"opencode",opencode2:"opencode",openrouter:"openrouter",pi:"pi","pi-acp":"pi","pi-agent":"pi",prime:null,"prime-agent":null,qoder:"qoder",qodercli:"qoder",qwen:"qwen","qwen-code":"qwen","rovo-dev":"rovodev",rovodev:"rovodev",vertex:null,xai:"grok"};function _Fe(t){let e=t.trim().toLowerCase();if(!e)return[];let n=[e],r=o=>{o&&!n.includes(o)&&n.push(o)};r(e.split(":").filter(Boolean).at(-1)),r(e.split("/").filter(Boolean).at(-1));let i=n.at(-1).split(/\s+/).find(Boolean);return r(i),r(i?.split(/[-_.]/).find(Boolean)),n}function L6(t){if(t){for(let e of _Fe(t))if(Object.hasOwn(Wse,e))return Wse[e]??void 0}}var Fl=R(ee(),1);var S_=new Set,M6;function SFe(t){return S_.add(t),!M6&&typeof MutationObserver<"u"&&typeof document<"u"&&(M6=new MutationObserver(()=>S_.forEach(e=>e())),M6.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-agent-marks"]})),()=>{S_.delete(t),S_.size===0&&(M6?.disconnect(),M6=void 0)}}var LFe=()=>{if(typeof document>"u")return"dark brand";let{theme:t,agentMarks:e}=document.documentElement.dataset;return`${t==="light"?"light":"dark"} ${e==="mono"?"mono":"brand"}`},WO=(t,e)=>typeof t=="string"?t:e?t[0]:t[1],MFe=t=>t.join(" ");function E6(t){let e=(0,Xse.c)(25),{agent:n,size:r,label:i,onDark:o}=t,a=r===void 0?16:r,s;e[0]!==n?(s=L6(n),e[0]=n,e[1]=s):s=e[1];let l=s,c=(0,N2.useSyncExternalStore)(SFe,LFe,TFe),u;e[2]!==c?(u=c.split(" "),e[2]=c,e[3]=u):u=e[3];let[d,p]=u,m=o??d==="dark",f=p==="brand",h=(0,N2.useId)(),x;if(e[4]!==h){let v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=/[^\w-]/g,e[6]=v):v=e[6],x=h.replace(v,""),e[4]=h,e[5]=x}else x=e[5];let g=`agent-mark${x}`,y=l?ZO[l]:void 0,b,w;if(e[7]!==f||e[8]!==m||e[9]!==y||e[10]!==g||e[11]!==l||e[12]!==i||e[13]!==a){w=Symbol.for("react.early_return_sentinel");e:{let v=y?.small&&a<=Kse?{...y,viewBox:y.small.viewBox,paths:y.small.paths,overlays:void 0,small:void 0}:y,k;e[16]!==i?(k=i?{role:"img","aria-label":i}:{"aria-hidden":!0},e[16]=i,e[17]=k):k=e[17];let _=k;if(!v){let M,A;e[18]===Symbol.for("react.memo_cache_sentinel")?(M=(0,Fl.jsx)("rect",{x:"2.25",y:"2.75",width:"11.5",height:"10.5",rx:"2.5"}),A=(0,Fl.jsx)("path",{d:"m5.25 6.5 2 1.75-2 1.75M8.75 10h2"}),e[18]=M,e[19]=A):(M=e[18],A=e[19]);let $;e[20]!==_||e[21]!==a?($=(0,Fl.jsxs)("svg",{className:"agent-mark agent-mark-generic",width:a,height:a,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round",focusable:"false",..._,children:[M,A]}),e[20]=_,e[21]=a,e[22]=$):$=e[22],w=$;break e}let L=f?v.tile:void 0,S=f?WO(v.tone,m):m?"#fff":"#000",C=(M,A,$)=>{let N=f&&M.tone?WO(M.tone,m):void 0,F=f?void 0:M.monoOpacity;if(F===0)return null;let D=$??N;return M.strokeWidth?(0,Fl.jsx)("path",{d:M.d,fill:"none",stroke:D??S,strokeWidth:M.strokeWidth,opacity:F},A):(0,Fl.jsx)("path",{d:M.d,fill:D,fillRule:M.evenOdd?"evenodd":void 0,opacity:F},A)},T;e[23]!==C?(T=(M,A)=>C(M,A),e[23]=C,e[24]=T):T=e[24],b=(0,Fl.jsxs)("svg",{className:"agent-mark","data-agent":l,width:a,height:a,viewBox:MFe(L?.viewBox??v.viewBox),fill:S,focusable:"false",..._,children:[L&&(0,Fl.jsx)("rect",{x:L.viewBox[0],y:L.viewBox[1],width:L.viewBox[2],height:L.viewBox[3],rx:L.radius,fill:WO(L.tone,m)}),v.paths.map(T),f&&v.overlays?.map((M,A)=>(0,Fl.jsxs)(N2.default.Fragment,{children:[(0,Fl.jsx)("defs",{children:(0,Fl.jsx)("linearGradient",{id:`${g}-${A}`,gradientUnits:"userSpaceOnUse",x1:M.x1,y1:M.y1,x2:M.x2,y2:M.y2,children:M.stops.map(EFe)})}),v.paths.map(($,N)=>$.strokeWidth?null:C($,N,`url(#${g}-${A})`))]},`overlay${A}`))]})}e[7]=f,e[8]=m,e[9]=y,e[10]=g,e[11]=l,e[12]=i,e[13]=a,e[14]=b,e[15]=w}else b=e[14],w=e[15];return w!==Symbol.for("react.early_return_sentinel")?w:b}function EFe(t,e){let[n,r,i]=t;return(0,Fl.jsx)("stop",{offset:n,stopColor:r,stopOpacity:i},e)}function TFe(){return"dark brand"}var Ra=R(qe(),1),di=R(Q(),1);var L_="default",RFe=/^default\b/i;function Bl(t){return t.id.toLowerCase()===L_||RFe.test(t.name??"")}function Yse(t){let e=/^claude-([a-z]+)-(\d+)(?:-(\d{1,2}))?(?:-\d{8})?(\[1m\])?$/i.exec(t);if(!e)return t;let[,n,r,i,o]=e,a=`${n[0].toUpperCase()}${n.slice(1).toLowerCase()} ${r}${i?`.${i}`:""}`;return o?`${a} \xB7 1M context`:a}function Qse(t){if(!t?.model||t.model.toLowerCase()!==L_||t.confirmedModel&&t.confirmedModel.toLowerCase()!==L_)return;let n=t.configOptions?.find(r=>r.category==="model"||r.id==="model")?.currentValue;return typeof n=="string"&&n&&n.toLowerCase()!==L_?n:void 0}var Jse="cmux.acpmux.resolvedDefaults";function KO(){try{let t=JSON.parse(globalThis.localStorage?.getItem(Jse)??"{}");return t&&typeof t=="object"?t:{}}catch{return{}}}function ele(t,e){try{let n=KO();if(n[t]===e)return;globalThis.localStorage?.setItem(Jse,JSON.stringify({...n,[t]:e}))}catch{}}var ale=R(qe(),1),Eu=R(Q(),1);var tle=R(qe(),1),M_=R(Q(),1);var F0=R(ee(),1);function E_(t){let e=(0,tle.c)(43),{efforts:n,current:r,onPick:i,onEscape:o,autoFocus:a}=t,s=a===void 0?!1:a,l=ve(),c=(0,M_.useRef)(null),u,d;e[0]!==s?(u=()=>{s&&c.current?.focus()},d=[s],e[0]=s,e[1]=u,e[2]=d):(u=e[1],d=e[2]),(0,M_.useEffect)(u,d);let p;if(e[3]!==r||e[4]!==n){let $;e[6]!==r?($=N=>N.id===r,e[6]=r,e[7]=$):$=e[7],p=n.findIndex($),e[3]=r,e[4]=n,e[5]=p}else p=e[5];let m=Math.max(0,p),f;e[8]!==n||e[9]!==m||e[10]!==l?(f=n[m]?.name??l("effort.title"),e[8]=n,e[9]=m,e[10]=l,e[11]=f):f=e[11];let h=f,x;e[12]!==r||e[13]!==n||e[14]!==i?(x=$=>{let N=n[$];N&&N.id!==r&&i(N.id)},e[12]=r,e[13]=n,e[14]=i,e[15]=x):x=e[15];let g=x,y=n.length>1?m/(n.length-1):0,b;e[16]!==y?(b={"--acpmux-effort":y},e[16]=y,e[17]=b):b=e[17];let w=b,v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=(0,F0.jsx)("span",{className:"acpmux-effort-fill"}),e[18]=v):v=e[18];let k;if(e[19]!==n||e[20]!==m){let $;e[22]!==n.length||e[23]!==m?($=(N,F)=>F===m?null:(0,F0.jsx)("span",{className:"acpmux-effort-stop","aria-hidden":"true",style:{"--acpmux-stop":n.length>1?F/(n.length-1):0}},N.id),e[22]=n.length,e[23]=m,e[24]=$):$=e[24],k=n.map($),e[19]=n,e[20]=m,e[21]=k}else k=e[21];let _;e[25]===Symbol.for("react.memo_cache_sentinel")?(_=(0,F0.jsx)("span",{className:"acpmux-effort-thumb"}),e[25]=_):_=e[25];let L=Math.max(n.length-1,0),S;e[26]!==l?(S=l("effort.title"),e[26]=l,e[27]=S):S=e[27];let C;e[28]!==g?(C=$=>g(Number($.target.value)),e[28]=g,e[29]=C):C=e[29];let T;e[30]!==o?(T=$=>{$.key!=="Escape"||!o||($.preventDefault(),$.stopPropagation(),o())},e[30]=o,e[31]=T):T=e[31];let M;e[32]!==m||e[33]!==h||e[34]!==L||e[35]!==S||e[36]!==C||e[37]!==T?(M=(0,F0.jsx)("input",{ref:c,className:"acpmux-effort-range",type:"range",min:0,max:L,step:1,value:m,"aria-label":S,"aria-valuetext":h,onChange:C,onKeyDown:T}),e[32]=m,e[33]=h,e[34]=L,e[35]=S,e[36]=C,e[37]=T,e[38]=M):M=e[38];let A;return e[39]!==k||e[40]!==M||e[41]!==w?(A=(0,F0.jsxs)("div",{className:"acpmux-effort-track",style:w,children:[v,k,_,M]}),e[39]=k,e[40]=M,e[41]=w,e[42]=A):A=e[42],A}var T6=new Map;function Xs(t,e){return T6.set(t,e),()=>{T6.get(t)===e&&T6.delete(t)}}function nle(t){let e=T6.get(t);return e?.(),e!==void 0}function rle(){return[...T6.keys()]}var ile=R(qe(),1),T_=R(Q(),1),R6=6;function AFe(t,e,n,r={}){let i=r.side??"below",o=r.align??"start",a=r.gap??R6,s=r.margin??8,l=r.direction??"ltr",c=Math.max(0,n.height-t.bottom-a-s),u=Math.max(0,t.top-a-s),d=i==="below"?c>=e.height||c>=u?"below":"above":u>=e.height||u>=c?"above":"below",p=d==="below"?c:u,m=o==="start"?l==="rtl"?t.right-e.width:t.left:l==="rtl"?t.left:t.right-e.width,f=Math.max(s,n.width-e.width-s),h=Math.min(Math.max(m,s),f),x=d==="below"?t.bottom+a:t.top-a-e.height;return{left:h,top:x,side:d,maxHeight:Math.max(0,p)}}function $Fe(t){if(!t||t.offsetWidth===0||t.offsetHeight===0)return{x:1,y:1};let e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1}}function Ys(t,e,n,r){let i=(0,ile.c)(13),o;i[0]!==r?(o=r===void 0?{}:r,i[0]=r,i[1]=o):o=i[1];let a=o,{align:s,direction:l,gap:c,margin:u,side:d}=a,p;i[2]===Symbol.for("react.memo_cache_sentinel")?(p={visibility:"hidden"},i[2]=p):p=i[2];let[m,f]=(0,T_.useState)(p),h,x;return i[3]!==s||i[4]!==t||i[5]!==c||i[6]!==u||i[7]!==n||i[8]!==e||i[9]!==l||i[10]!==d?(h=()=>{if(!n){f({visibility:"hidden"});return}let g=()=>{let b=t.current,w=e.current;if(!b||!w)return;let v=b.getBoundingClientRect(),k=w.getBoundingClientRect(),_=l??(b.ownerDocument.defaultView?.getComputedStyle(b).direction==="rtl"?"rtl":"ltr"),L=AFe({left:v.left,top:v.top,right:v.right,bottom:v.bottom},{width:k.width,height:k.height},{width:window.innerWidth,height:window.innerHeight},{align:s,direction:_,gap:c,margin:u,side:d}),S=w.offsetParent instanceof HTMLElement?w.offsetParent:null,C=S?.getBoundingClientRect()??{left:0,top:0},T=$Fe(S),M=(L.left-C.left)/T.x+(S?.scrollLeft??0),A=(L.top-C.top)/T.y+(S?.scrollTop??0);f({position:"absolute",left:M,top:A,right:"auto",bottom:"auto",maxHeight:L.maxHeight/T.y,visibility:"visible"})};g(),window.addEventListener("resize",g),window.addEventListener("scroll",g,!0);let y=typeof ResizeObserver>"u"?void 0:new ResizeObserver(g);return y?.observe(t.current),y?.observe(e.current),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g,!0),y?.disconnect()}},x=[s,t,c,u,n,e,l,d],i[3]=s,i[4]=t,i[5]=c,i[6]=u,i[7]=n,i[8]=e,i[9]=l,i[10]=d,i[11]=h,i[12]=x):(h=i[11],x=i[12]),(0,T_.useLayoutEffect)(h,x),m}var R_=R(Q(),1);function ole(t,e){let n=(0,R_.useRef)(e);n.current=e,(0,R_.useEffect)(()=>{if(!t)return;let r=i=>{i.key!=="Escape"||i.defaultPrevented||i.isComposing||(i.preventDefault(),n.current())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}var am=R(ee(),1);function sle(t){let e=(0,ale.c)(50),{label:n,efforts:r,current:i,model:o,onPick:a,chevron:s}=t,l=ve(),[c,u]=(0,Eu.useState)(!1),d=(0,Eu.useRef)(null),p=(0,Eu.useRef)(null),m=(0,Eu.useRef)(null),f=(0,Eu.useId)(),h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={side:"above",align:"start"},e[0]=h):h=e[0];let x=Ys(p,m,c,h),g;if(e[1]!==i||e[2]!==r){let U;e[4]!==i?(U=G=>G.id===i,e[4]=i,e[5]=U):U=e[5],g=r.findIndex(U),e[1]=i,e[2]=r,e[3]=g}else g=e[3];let y=Math.max(0,g),b;e[6]!==r||e[7]!==y||e[8]!==l?(b=r[y]?.name??l("effort.title"),e[6]=r,e[7]=y,e[8]=l,e[9]=b):b=e[9];let w=b,v;e[10]!==r||e[11]!==y||e[12]!==w||e[13]!==l?(v=r[y]&&Bl(r[y])?l("picker.reasoning"):w,e[10]=r,e[11]=y,e[12]=w,e[13]=l,e[14]=v):v=e[14];let k=v,_,L;e[15]!==n?(_=()=>Xs(n,()=>{let U=d.current?.querySelector(".acpmux-effort-range");if(U){U.focus();return}document.activeElement instanceof HTMLElement&&document.activeElement.blur(),u(!0)}),L=[n],e[15]=n,e[16]=_,e[17]=L):(_=e[16],L=e[17]),(0,Eu.useEffect)(_,L);let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{u(!1),p.current?.focus()},e[18]=S):S=e[18];let C=S;ole(c,C);let T,M;e[19]!==c?(T=()=>{if(!c)return;let U=j=>{d.current?.contains(j.target)||u(!1)},G=()=>u(!1);return document.addEventListener("pointerdown",U),window.addEventListener("blur",G),()=>{document.removeEventListener("pointerdown",U),window.removeEventListener("blur",G)}},M=[c],e[19]=c,e[20]=T,e[21]=M):(T=e[20],M=e[21]),(0,Eu.useEffect)(T,M);let A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A={position:"relative"},e[22]=A):A=e[22];let $;e[23]!==l?($=l("effort.title"),e[23]=l,e[24]=$):$=e[24];let N=c?f:void 0,F;e[25]!==c?(F=()=>u(!c),e[25]=c,e[26]=F):F=e[26];let D;e[27]!==k?(D=(0,am.jsx)("span",{children:k}),e[27]=k,e[28]=D):D=e[28];let O;e[29]!==s||e[30]!==n||e[31]!==c||e[32]!==$||e[33]!==N||e[34]!==F||e[35]!==D?(O=(0,am.jsxs)("button",{ref:p,type:"button",className:"acpmux-picker-button","data-menu":n,"aria-label":$,"aria-haspopup":"dialog","aria-expanded":c,"aria-controls":N,onClick:F,children:[D,s]}),e[29]=s,e[30]=n,e[31]=c,e[32]=$,e[33]=N,e[34]=F,e[35]=D,e[36]=O):O=e[36];let B;e[37]!==i||e[38]!==r||e[39]!==f||e[40]!==x||e[41]!==o||e[42]!==w||e[43]!==a||e[44]!==c||e[45]!==l?(B=c&&(0,am.jsxs)("div",{ref:m,className:"acpmux-menu acpmux-menu-end acpmux-effort-pop",style:x,id:f,role:"dialog","aria-label":l("effort.title"),children:[(0,am.jsx)("div",{className:"acpmux-effort-title",children:w}),o&&(0,am.jsx)("div",{className:"acpmux-effort-model",children:o}),(0,am.jsx)(E_,{efforts:r,current:i,onPick:a,autoFocus:!0,onEscape:C})]}),e[37]=i,e[38]=r,e[39]=f,e[40]=x,e[41]=o,e[42]=w,e[43]=a,e[44]=c,e[45]=l,e[46]=B):B=e[46];let P;return e[47]!==O||e[48]!==B?(P=(0,am.jsxs)("span",{ref:d,className:"acpmux-picker acpmux-effort",style:A,children:[O,B]}),e[47]=O,e[48]=B,e[49]=P):P=e[49],P}var Fc=R(Q(),1);var lle="Anthropic",XO="OpenAI",P2=t=>t&&t[0].toUpperCase()+t.slice(1);function IFe(t,e){let n=t.id.toLowerCase(),r=(t.name||t.id).trim(),i=/^claude-(?:[\d-]+-)?([a-z]+)/.exec(n);if(i)return{provider:lle,family:P2(i[1])};let o=/^(?:claude\s+)?(opus|sonnet|haiku|fable)\b/i.exec(r);if(o)return{provider:lle,family:P2(o[1].toLowerCase())};if(n.startsWith("gpt-oss"))return{provider:XO,family:"gpt-oss"};let a=/^gpt-(\d+)/.exec(n);if(a)return{provider:XO,family:`GPT-${a[1]}`};let s=/^o(\d+)(?:-|$)/.exec(n);if(s)return{provider:XO,family:`o${s[1]}`};let l=/^gemini-(\d+)/.exec(n);if(l)return{provider:"Google",family:`Gemini ${l[1]}`};let c=u=>u.split(/[\s\-_:/]+/)[0]??u;return/^(?:mistral|devstral|codestral|magistral)/.test(n)?{provider:"Mistral",family:P2(c(n))}:n.startsWith("qwen")?{provider:"Qwen",family:P2(c(n))}:n.startsWith("deepseek")?{provider:"DeepSeek",family:P2(c(n).replace(/^deepseek/,"DeepSeek"))}:/^(?:meta-)?llama/.test(n)?{provider:"Meta",family:"Llama"}:{provider:e,family:P2(c(r))}}function NFe(t){let e=/\d+(?:\.\d+)*/.exec(t.name??"");return e?e[0].split(".").map(Number):(t.id.match(/\d+/g)??[]).map(Number)}function A_(t,e){let n=Math.max(t.version.length,e.version.length);for(let r=0;r<n;r+=1){let i=(e.version[r]??-1)-(t.version[r]??-1);if(i!==0)return i}return t.order-e.order}function $_(t,e){let n=[],r=new Map,i=[];t.forEach((o,a)=>{if(r.has(o.id)||Bl(o))return;let{provider:s,family:l}=IFe(o,e),c={id:o.id,name:o.name||o.id,provider:s,family:l,version:NFe(o),order:a};r.set(o.id,c),i.push(c);let u=n.find(p=>p.name===s);u||(u={name:s,families:[],models:[]},n.push(u)),u.models.push(c);let d=u.families.find(p=>p.name===l);d||(d={key:`${s}\0${l}`,name:l,provider:s,models:[]},u.families.push(d)),d.models.push(c)});for(let o of n)for(let a of o.families)a.models.sort(A_);return{providers:n,models:i,byId:r}}function YO(t,e,n={}){let r=i=>t.find(o=>o.id===i);return r(n.model)??e.map(i=>r(i.model)).find(Boolean)??[...t].sort(A_)[0]}function I_(t,e,n={}){return YO(t.models,e,n)}function QO(t,e,n={}){let r=o=>t.models.some(a=>a.id===o);if(r(n.model)||e.some(o=>r(o.model)))return YO(t.models,e,n);let i=t.families[0];return i?I_(i,e,n):void 0}function PFe(t,e,n={}){return t===n.model?n.effort:e.find(r=>r.model===t&&r.effort)?.effort??n.effort}function N_(t,e,n={}){return{model:t.id,effort:PFe(t.id,e,n)}}function cle(t,e,n={}){let r=I_(t,e,n);return r&&N_(r,e,n)}function ule(t,e,n={}){let r=QO(t,e,n);return r&&N_(r,e,n)}function dle(t,e,n={}){let r=YO(t,e,n),i=[];for(let a of e){let s=t.find(l=>l.id===a.model);s&&s!==r&&!i.includes(s)&&i.push(s)}let o=[...t].filter(a=>a!==r&&!i.includes(a)).sort(A_);return[...r?[r]:[],...i,...o]}function ple(t,e,n={}){return fle(t,r=>r.models,e,n)}function mle(t,e,n={}){return fle(t,r=>r.models,e,n)}function fle(t,e,n,r){let i=[r.model,...n.map(a=>a.model)],o=a=>{let s=i.findIndex(l=>l&&e(a).some(c=>c.id===l));return s<0?i.length:s};return t.map((a,s)=>({item:a,index:s,rank:o(a)})).sort((a,s)=>a.rank-s.rank||a.index-s.index).map(a=>a.item)}function hle(t,e,n){return n||t.length<=e+1?{visible:t,hidden:0}:{visible:t.slice(0,e),hidden:t.length-e}}function gle(t,e){let n=e.trim().toLowerCase().split(/\s+/).filter(Boolean);if(n.length===0)return t.models;let r=[];for(let i of t.models){let o=i.name.toLowerCase(),a=`${o} ${i.id.toLowerCase()} ${i.family.toLowerCase()} ${i.provider.toLowerCase()}`;if(!n.every(l=>a.includes(l)))continue;let s=o.startsWith(n[0])?0:o.includes(n[0])?1:2;r.push({model:i,score:s})}return r.sort((i,o)=>i.score-o.score||A_(i.model,o.model)).map(i=>i.model)}function ble(t,e,n,r,i){return t.filter(o=>o.harness===n&&(e.byId.has(o.model)||o.model===i)).slice(0,r)}var JO=R(Q(),1),yle=4,xle=3,wle=120,jFe=250;function vle(t,e){return t>=e*jFe?"cascade":"drill"}var kle=t=>t.getBoundingClientRect().left;function P_({trigger:t,handle:e},n,r){(0,JO.useLayoutEffect)(()=>(e.current=n,()=>{e.current=void 0})),(0,JO.useLayoutEffect)(()=>{let i=t.current;if(i)return r?i.setAttribute("aria-activedescendant",r):i.removeAttribute("aria-activedescendant"),()=>i.removeAttribute("aria-activedescendant")},[t,r])}var Tle=R(qe(),1),N6=R(Q(),1);var Lle=R(Q(),1);var Cle=R(qe(),1);var Tu=R(ee(),1);function _le(t){let e=(0,Cle.c)(30),{node:n,id:r,active:i,open:o,onHover:a,onPick:s}=t,l=!!(n.children?.length||n.panel),c=n.checked===void 0?"menuitem":"menuitemradio",u=n.children?.length?"menu":void 0,d=l?!!o:void 0,p=`acpmux-menu-item acpmux-mp-row${i?" acpmux-menu-active":""}${o?" acpmux-mp-open":""}${n.more?" acpmux-mp-more":""}`,m;e[0]!==s?(m=v=>{v.preventDefault(),s()},e[0]=s,e[1]=m):m=e[1];let f;e[2]!==n.hint?(f=n.hint&&(0,Tu.jsx)("kbd",{className:"acpmux-menu-hint",children:n.hint}),e[2]=n.hint,e[3]=f):f=e[3];let h;e[4]!==n.icon?(h=n.icon&&(0,Tu.jsx)("span",{className:"acpmux-menu-icon","aria-hidden":"true",children:n.icon}),e[4]=n.icon,e[5]=h):h=e[5];let x;e[6]!==n.label?(x=(0,Tu.jsx)("span",{className:"acpmux-menu-text",children:(0,Tu.jsx)("span",{className:"acpmux-menu-label",children:n.label})}),e[6]=n.label,e[7]=x):x=e[7];let g;e[8]!==n.detail?(g=n.detail&&(0,Tu.jsx)("span",{className:"acpmux-mp-detail",children:n.detail}),e[8]=n.detail,e[9]=g):g=e[9];let y;e[10]!==n.checked?(y=n.checked&&(0,Tu.jsx)(eD,{}),e[10]=n.checked,e[11]=y):y=e[11];let b;e[12]!==l?(b=l&&(0,Tu.jsx)("span",{className:"acpmux-mp-chevron",children:(0,Tu.jsx)(Sle,{})}),e[12]=l,e[13]=b):b=e[13];let w;return e[14]!==r||e[15]!==n.checked||e[16]!==n.key||e[17]!==a||e[18]!==c||e[19]!==y||e[20]!==b||e[21]!==u||e[22]!==d||e[23]!==p||e[24]!==m||e[25]!==f||e[26]!==h||e[27]!==x||e[28]!==g?(w=(0,Tu.jsxs)("div",{id:r,"data-key":n.key,role:c,tabIndex:-1,"aria-checked":n.checked,"aria-haspopup":u,"aria-expanded":d,className:p,onPointerEnter:a,onMouseDown:m,children:[f,h,x,g,y,b]}),e[14]=r,e[15]=n.checked,e[16]=n.key,e[17]=a,e[18]=c,e[19]=y,e[20]=b,e[21]=u,e[22]=d,e[23]=p,e[24]=m,e[25]=f,e[26]=h,e[27]=x,e[28]=g,e[29]=w):w=e[29],w}var sm=R(ee(),1),A6=(t,e,n)=>`${t}-${e}-${n.replace(/[^\w-]/g,r=>`_${r.charCodeAt(0).toString(16)}`)}`;function $6({nodes:t,level:e,tree:n,idPrefix:r,subAbove:i=!1}){let o=n.activeKey(e),a=(l,c)=>c&&(0,sm.jsx)("div",{className:`acpmux-mp-sub${l.panel?" acpmux-mp-panel":""}`,"data-mp-sub":e,role:l.panel?void 0:"menu",onPointerEnter:n.cancelHover,children:l.panel??(0,sm.jsx)($6,{nodes:l.children??[],level:e+1,tree:n,idPrefix:r,subAbove:i})}),s;return(0,sm.jsx)("div",{className:"acpmux-mp-level",role:"group","data-level":e,children:t.map(l=>{let c=l.section&&l.section!==s?l.section:void 0;s=l.section;let u=n.path[e]===l.key&&!!(l.children?.length||l.panel);return(0,sm.jsxs)(Lle.default.Fragment,{children:[c&&(0,sm.jsx)("div",{className:"acpmux-menu-header",children:c}),(0,sm.jsxs)("div",{className:"acpmux-mp-entry",children:[i&&a(l,u),(0,sm.jsx)(_le,{node:l,id:A6(r,e,l.key),active:l.key===o,open:u,onHover:()=>n.hover(e,l),onPick:()=>n.click(l)}),!i&&a(l,u)]})]},l.key)})})}var D_=R(ee(),1);function F_(t){let e=t.catalog.find(f=>f.id===t.harness),n=$_(e?.models??[],e?.name??t.harness??""),r={model:t.model,effort:t.effort},i=e?.models.find(f=>Bl(f)),o=ble(t.recents,n,t.harness,Number.MAX_SAFE_INTEGER,i?.id),a=o.slice(0,yle),s=n.byId.get(t.model??""),l=n.providers.find(f=>f.name===s?.provider),c=l?.families.find(f=>f.name===s?.family),u=f=>t.efforts.find(h=>h.id===f)?.name??f,d=f=>f.effort&&!Bl({id:f.effort,name:f.effortName})?f.effortName??u(f.effort):void 0,p=t.catalog.filter(f=>f.id===t.harness||t.onHarness),m=f=>{f&&t.onLand(f.model,f.effort)};return{taxonomy:n,current:r,recents:o,numbered:a,model:s,provider:l,family:c,harnesses:p,harnessName:e?.name??t.harness??"",defaultChoice:i,effortName:u,comboEffort:d,isCurrentCombo:f=>f.model===t.model&&(f.effort??void 0)===(t.effort??void 0),landModel:f=>m(N_(f,o,r)),landFamily:f=>m(cle(f,o,r)),landProvider:f=>m(ule(f,o,r)),landCombo:f=>t.onLand(f.model,f.effort),rankModels:f=>dle(f,o,r),rankFamilies:f=>ple(f,o,r),rankProviders:f=>mle(f,o,r),filter:(f,h)=>{let x=gle(n,f);return h?x.filter(g=>h.includes(g)):x}}}function B_(t,e,n){return t.metaKey||t.ctrlKey||t.altKey?!1:t.key==="Backspace"?e?(t.preventDefault(),n(e.slice(0,-1)),!0):!1:t.key.length!==1||!e&&t.key===" "?!1:(t.preventDefault(),n(e+t.key),!0)}function z_(t,e,n){if(!(e||t.metaKey||t.ctrlKey||t.altKey||!/^[1-9]$/.test(t.key))&&!(Number(t.key)>n))return t.preventDefault(),Number(t.key)-1}var O_=(t,e)=>e==="bestLast"?[...t].reverse():t;function j_(t,e,n,r,i,o,a){let{visible:s,hidden:l}=hle(n,xle,o.has(e)),c=s.map(r);if(l===0)return O_(c,i);let u={key:`${e}:more`,section:c[0]?.section,label:t("picker.more"),detail:String(l),more:!0,run:()=>(a(e),"keep")};return i==="bestLast"?[u,...O_(c,i)]:[...c,u]}function tD(t,e,n,r){let i={key:`harness:${t.id}`,label:t.name,icon:(0,D_.jsx)(E6,{agent:t.id,size:14}),section:r,checked:t.id===e.harness};return t.unavailable&&t.id!==e.harness?{...i,detail:n("picker.unavailable"),children:[{key:`harness:${t.id}:reason`,label:t.unavailable},{key:`harness:${t.id}:retry`,label:n("picker.tryAgain"),run:()=>e.onHarness?.(t.id)}]}:{...i,detail:e.harnessNotes?.[t.id]??(t.id===e.harness?void 0:n("picker.newChat")),rest:()=>e.onHarnessHint?.(t.id),run:()=>{t.id!==e.harness&&e.onHarness?.(t.id)}}}function q_(t,e,{order:n,expanded:r,expand:i,t:o}){let a=(m,f,h)=>({key:`model:${m.id}`,label:m.name,detail:h,section:f,checked:m.id===e.model,run:()=>t.landModel(m)}),s=(m,f)=>j_(o,`family:${m.key}`,t.rankModels(m.models),h=>a(h,f),n,r,i),l=()=>{let m=t.family;if(!m)return[];let f=new Set(t.numbered.map(h=>h.model));return j_(o,`current:${m.key}`,t.rankModels(m.models).filter(h=>!f.has(h.id)),h=>a(h,m.name),n,r,i)},c=(m,f)=>({key:`family:${m.key}`,label:m.name,detail:I_(m,t.recents,t.current)?.name,section:f,run:()=>t.landFamily(m),children:s(m)}),u=(m,f)=>j_(o,`families:${m.name}`,t.rankFamilies(m.families),h=>c(h,f),n,r,i),d=(m,f)=>({key:`provider:${m.name}`,label:m.name,detail:QO(m,t.recents,t.current)?.name,section:f,run:()=>t.landProvider(m),children:u(m)}),p=m=>{let f=t.defaultChoice;if(f)return{key:`model:${f.id}`,label:e.resolvedDefault??o("picker.default"),detail:e.resolvedDefault?o("picker.default"):void 0,section:m,checked:f.id===e.model,run:()=>e.onLand(f.id)}};return{modelRow:a,defaultRow:p,familyModels:s,currentFamily:l,familyRow:c,providerRow:d,upperLayer(m=!0){let f=t.taxonomy.providers,h=m?o(f.length===1?"picker.family":"picker.provider"):void 0,x=f.length===1?u(f[0],h):j_(o,"providers",t.rankProviders(f),y=>d(y,h),n,r,i),g=p(h);return g?n==="bestLast"?[...x,g]:[g,...x]:x},harnessRow(){if(!(t.harnesses.length<2))return{key:"harness",label:t.harnessName,icon:e.harness?(0,D_.jsx)(E6,{agent:e.harness,size:14}):void 0,detail:o("picker.harness"),children:t.harnesses.map(m=>tD(m,e,o))}},effortRow(m){if(e.efforts.length===0)return;let f=Math.max(0,e.efforts.findIndex(h=>h.id===e.effort));return{key:"effort",label:o("picker.reasoning"),detail:t.effortName(e.effort),panel:(0,D_.jsx)(E_,{efforts:e.efforts,current:e.effort,onPick:e.onEffort,onEscape:m}),step:h=>{let x=e.efforts[f+h];x&&e.onEffort(x.id)}}},recentRows(){let m=t.numbered.map((f,h)=>({key:`recent:${h}`,label:t.taxonomy.byId.get(f.model)?.name??(f.model===t.defaultChoice?.id?e.resolvedDefault??o("picker.default"):f.model),detail:t.comboEffort(f),hint:String(h+1),section:o("picker.recent"),checked:t.isCurrentCombo(f),run:()=>t.landCombo(f)}));return O_(m,n)},matches(m,f){let h=t.filter(m,f),x=f?void 0:p(),g=m.trim().toLowerCase().split(/\s+/).filter(Boolean),y=`${o("picker.default")} default ${e.resolvedDefault??""}`.toLowerCase(),b=h.map(w=>a(w,void 0,`${w.provider} \xB7 ${w.family}`));return x&&g.every(w=>y.includes(w))&&b.unshift(x),b.length===0?[{key:"none",label:o("picker.noMatches")}]:O_(b,n)}}}var Ele=R(qe(),1),H_=R(Q(),1);var B0=R(Q(),1);function OFe(t,e,n,r){let i=(l,c)=>(c.x-l.x)*(t.y-l.y)-(c.y-l.y)*(t.x-l.x),o=i(e,n),a=i(n,r),s=i(r,e);return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0}function DFe(t,e,n){if(!t||!e||!n||n.right<=n.left||n.bottom<=n.top||t.x===e.x&&t.y===e.y)return!1;if(e.x>=n.left&&e.x<=n.right&&e.y>=n.top&&e.y<=n.bottom)return!0;let r=t.x<n.left||t.x>n.right,[i,o]=r?[{x:t.x<n.left?n.left:n.right,y:n.top},{x:t.x<n.left?n.left:n.right,y:n.bottom}]:[{x:n.left,y:t.y<n.top?n.top:n.bottom},{x:n.right,y:t.y<n.top?n.top:n.bottom}];return OFe(e,t,i,o)}function Mle(t=wle){let e=(0,B0.useRef)(void 0),n=(0,B0.useRef)([]);return(0,B0.useEffect)(()=>()=>clearTimeout(e.current),[]),(0,B0.useMemo)(()=>({track(r){n.current=[...n.current.slice(-1),{x:r.clientX,y:r.clientY}]},schedule(r,i){clearTimeout(e.current);let o=n.current.at(-1),a=0,s=()=>{e.current=setTimeout(()=>{let[l,c]=n.current,u=c!==o;o=c,u&&a<6&&DFe(l,c,i?.()?.getBoundingClientRect())?(a+=1,s()):r()},t)};s()},cancel(){clearTimeout(e.current)}}),[t])}var nD=t=>!!(t&&(t.children?.length||t.panel));function I6(t,e){let n=(0,Ele.c)(31),{entry:r,rootEntry:i,onDone:o,aim:a}=e,s=i===void 0?r:i,l;n[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],n[0]=l):l=n[0];let[c,u]=(0,H_.useState)(l),[d,p]=(0,H_.useState)(0),m;n[1]===Symbol.for("react.memo_cache_sentinel")?(m=[],n[1]=m):m=n[1];let[f,h]=(0,H_.useState)(m),x=Mle(),g;n[2]!==c||n[3]!==t?(g=N=>{let F=t;for(let D=0;D<N;D=D+1,D)F=F.find(O=>O.key===c[D])?.children??[];return F},n[2]=c,n[3]=t,n[4]=g):g=n[4];let y=g,b;n[5]!==r?(b=N=>(r==="last"?N.at(-1):N[0])?.key,n[5]=r,n[6]=b):b=n[6];let w=b,v;n[7]!==f||n[8]!==y||n[9]!==s?(v=N=>{let F=y(N),D=f[N];if(D&&F.some(O=>O.key===D))return D;if(!(N>0))return([...F].reverse().find(FFe)??(s==="last"?F.at(-1):F[0]))?.key},n[7]=f,n[8]=y,n[9]=s,n[10]=v):v=n[10];let k=v,_;n[11]!==y?(_=(N,F)=>{y(N).find(D=>D.key===F)?.rest?.(),h(D=>{let O=D.slice(0,N+1);return O[N]=F,O})},n[11]=y,n[12]=_):_=n[12];let L=_,S;n[13]!==w?(S=(N,F,D)=>{if(u(B=>[...B.slice(0,N),F.key]),!D)return;p(N+1);let O=w(F.children??[]);F.children?.find(B=>B.key===O)?.rest?.(),h(B=>{let P=B.slice(0,N+2);return P[N]=F.key,P[N+1]=O,P})},n[13]=w,n[14]=S):S=n[14];let C=S,T;n[15]===Symbol.for("react.memo_cache_sentinel")?(T=N=>u(F=>F.slice(0,N)),n[15]=T):T=n[15];let M=T,A;if(n[16]!==y||n[17]!==o||n[18]!==C||n[19]!==c){A=F=>{if(F.run){F.run()!=="keep"&&o();return}let D=N(F);D>=0&&nD(F)&&C(D,F,!0)};let N=F=>{for(let D=0;D<=c.length;D=D+1,D)if(y(D).includes(F))return D;return-1};n[16]=y,n[17]=o,n[18]=C,n[19]=c,n[20]=A}else A=n[20];let $;return n[21]!==k||n[22]!==a||n[23]!==x||n[24]!==d||n[25]!==y||n[26]!==C||n[27]!==c||n[28]!==A||n[29]!==L?($={path:c,level:d,activeKey:k,nodesAt:y,reset(){x.cancel(),u([]),p(0),h([])},collapse(N){x.cancel(),M(N),p(F=>Math.min(F,N))},track:x.track,cancelHover:x.cancel,hover(N,F){L(N,F.key),x.schedule(()=>{p(N),nD(F)?C(N,F,!1):M(N)},()=>a(N))},click(N){x.cancel(),A(N)},keyDown(N){let F=y(d),D=d>0?y(d-1).find(U=>U.key===c[d-1]):void 0;if(D?.panel&&!D.children?.length){if(N.key==="ArrowRight"||N.key==="ArrowUp")D.step?.(1);else if(N.key==="ArrowLeft"||N.key==="ArrowDown")D.step?.(-1);else if(N.key==="Escape"||N.key==="Enter")p(d-1),M(d-1);else return!1;return N.preventDefault(),!0}let O=k(d),B=F.findIndex(U=>U.key===O),P=F[B];if(N.key==="ArrowDown"||N.key==="ArrowUp"){if(F.length===0)return!0;let U=N.key==="ArrowDown"?1:-1,G=B<0?U>0?-1:F.length:B;L(d,F[(G+U+F.length)%F.length].key)}else if(N.key==="ArrowRight"){if(!P||!nD(P))return!0;C(d,P,!0)}else if(N.key==="ArrowLeft"){if(d===0)return c.length>0&&M(0),!0;p(d-1),M(d-1)}else if(N.key==="Enter")P&&A(P);else if(N.key==="Escape")if(d>0)p(d-1),M(d-1);else if(c.length>0)M(0);else return!1;else return!1;return N.preventDefault(),!0}},n[21]=k,n[22]=a,n[23]=x,n[24]=d,n[25]=y,n[26]=C,n[27]=c,n[28]=A,n[29]=L,n[30]=$):$=n[30],$}function FFe(t){return t.checked}var lm=R(ee(),1);function Rle(t){let e=(0,Tle.c)(25),n=ve(),{trigger:r,menu:i,close:o}=t,[a,s]=(0,N6.useState)(""),[l,c]=(0,N6.useState)(zFe),u=(0,N6.useId)(),d;if(e[0]!==u){let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N=/[^\w]/g,e[2]=N):N=e[2],d=u.replace(N,""),e[0]=u,e[1]=d}else d=e[1];let p=`mp${d}`,m=F_(t),f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=N=>c(F=>new Set([...F,N])),e[3]=f):f=e[3];let h=q_(m,t,{order:"bestLast",expanded:l,expand:f,t:n}),x=BFe,g=a?h.matches(a):[...x(h.harnessRow()),...h.upperLayer(),...h.currentFamily(),...x(h.effortRow(()=>{w.reset(),r.current?.focus()})),...h.recentRows()],y;e[4]!==i?(y=N=>i.current?.querySelector(`[data-mp-sub="${N}"]`),e[4]=i,e[5]=y):y=e[5];let b;e[6]!==o||e[7]!==y?(b={entry:"last",onDone:o,aim:y},e[6]=o,e[7]=y,e[8]=b):b=e[8];let w=I6(g,b),v=N=>{s(N),w.reset()},k=N=>{N.key==="Escape"&&N.stopPropagation();let F=z_(N,a,m.numbered.length);if(F!==void 0){let D=m.numbered[F];D&&(m.landCombo(D),o());return}w.keyDown(N)||(N.key==="Escape"?(N.preventDefault(),a?v(""):o()):N.key==="Tab"?o():B_(N,a,v))},_=w.activeKey(w.level);P_(t,{keyDown:k,track:N=>w.track(N)},_&&A6(p,w.level,_));let L=`acpmux-menu-search${a?"":" acpmux-menu-search-empty"}`,S;e[9]===Symbol.for("react.memo_cache_sentinel")?(S=(0,lm.jsx)(j2,{}),e[9]=S):S=e[9];let C;e[10]!==a||e[11]!==n?(C=a||n("picker.search"),e[10]=a,e[11]=n,e[12]=C):C=e[12];let T;e[13]!==C?(T=(0,lm.jsx)("span",{children:C}),e[13]=C,e[14]=T):T=e[14];let M;e[15]!==L||e[16]!==T?(M=(0,lm.jsxs)("div",{className:L,"aria-live":"polite",children:[S,T]}),e[15]=L,e[16]=T,e[17]=M):M=e[17];let A;e[18]!==p||e[19]!==g||e[20]!==w?(A=(0,lm.jsx)($6,{nodes:g,level:0,tree:w,idPrefix:p}),e[18]=p,e[19]=g,e[20]=w,e[21]=A):A=e[21];let $;return e[22]!==A||e[23]!==M?($=(0,lm.jsxs)(lm.Fragment,{children:[M,A]}),e[22]=A,e[23]=M,e[24]=$):$=e[24],$}function BFe(t){return t?[t]:[]}function zFe(){return new Set}var b1=R(Q(),1);var is=R(ee(),1);function Ale(t){let e=ve(),{trigger:n,menu:r,close:i}=t,[o,a]=(0,b1.useState)(!1),[s,l]=(0,b1.useState)(""),[c,u]=(0,b1.useState)(()=>new Set),d=`mp${(0,b1.useId)().replace(/[^\w]/g,"")}`,p=F_(t),m=q_(p,t,{order:"bestLast",expanded:c,expand:A=>u($=>new Set([...$,A])),t:e}),f=A=>A?[A]:[],h=[{key:"browse",label:e("picker.moreModels"),detail:p.harnessName,run:()=>(a(!0),l(""),b.reset(),"keep")},...f(m.effortRow(()=>{b.reset(),n.current?.focus()})),...m.currentFamily(),...m.recentRows()],g=[...p.harnesses.length>1?p.harnesses.map(A=>tD(A,t,e,e("picker.harness"))):[],...m.upperLayer()],y=o?g:h,b=I6(y,{entry:"last",onDone:i,aim:A=>r.current?.querySelector(`[data-mp-sub="${A}"]`)}),w=[];if(o)for(let A=0;A<b.path.length;A+=1){let $=b.path[A],N=b.nodesAt(A).find(B=>B.key===$)?.label,F=p.taxonomy.providers.find(B=>`provider:${B.name}`===$),D=p.taxonomy.providers.flatMap(B=>B.families).find(B=>`family:${B.key}`===$),O=F?.models??D?.models;N&&O&&w.push({label:N,models:O})}let v=w.at(-1)?.models,k=s?m.matches(s,o?v:void 0):y,_=I6(s?k:[],{entry:"last",onDone:i,aim:()=>{}}),L=s?_:b,S=A=>{l(A),_.reset()},C=()=>{a(!1),l(""),b.reset()},T=A=>{A.key==="Escape"&&A.stopPropagation();let $=z_(A,s,p.numbered.length);if($!==void 0){let N=p.numbered[$];N&&(p.landCombo(N),i());return}L.keyDown(A)||(A.key==="Escape"?(A.preventDefault(),s?S(""):o?C():i()):A.key==="Backspace"&&!s&&o?(A.preventDefault(),C()):A.key==="Tab"?i():B_(A,s,S))};(0,b1.useLayoutEffect)(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[r,o,s]);let M=L.activeKey(L.level);return P_(t,{keyDown:T,track:A=>L.track(A)},M&&A6(d,L.level,M)),(0,is.jsxs)(is.Fragment,{children:[o&&(0,is.jsxs)("nav",{className:"acpmux-mp-crumbs","aria-label":e("picker.allModels"),children:[(0,is.jsx)("button",{type:"button",tabIndex:-1,className:"acpmux-mp-crumb acpmux-mp-back","aria-label":e("picker.back"),onMouseDown:A=>{A.preventDefault(),C()},children:"\u2039"}),(0,is.jsx)("button",{type:"button",tabIndex:-1,className:"acpmux-mp-crumb",onMouseDown:A=>{A.preventDefault(),b.collapse(0)},children:p.harnessName}),w.map((A,$)=>(0,is.jsxs)("span",{className:"acpmux-mp-crumb-step",children:[(0,is.jsx)("span",{"aria-hidden":"true",children:"\u203A"}),(0,is.jsx)("button",{type:"button",tabIndex:-1,className:"acpmux-mp-crumb","aria-current":$===w.length-1?"location":void 0,onMouseDown:N=>{N.preventDefault(),b.collapse($+1)},children:A.label})]},A.label))]}),(0,is.jsxs)("div",{className:`acpmux-menu-search${s?"":" acpmux-menu-search-empty"}`,"aria-live":"polite",children:[(0,is.jsx)(j2,{}),(0,is.jsx)("span",{children:s||e("picker.search")})]}),(0,is.jsx)($6,{nodes:k,level:0,tree:L,idPrefix:d,subAbove:!0})]})}var x1=R(Q(),1);var y1=R(ee(),1);function $le({layout:t,chip:e,detail:n,offersEffort:r=!1,open:i,onOpenChange:o,onKeyDown:a,onPointerMove:s,trigger:l,menu:c,children:u}){let d=ve(),p=d(Ru.model),m=d(Ru.effort),f=(0,x1.useRef)(null),h=(0,x1.useId)(),x=Ys(l,c,i,{side:"above",align:"start"});(0,x1.useEffect)(()=>{if(!i)return;let b=v=>{f.current?.contains(v.target)||o(!1)},w=()=>o(!1);return document.addEventListener("pointerdown",b),window.addEventListener("blur",w),()=>{document.removeEventListener("pointerdown",b),window.removeEventListener("blur",w)}},[i,o]);let g=()=>{i||o(!0),l.current?.focus()},y=(0,x1.useRef)(g);return y.current=g,(0,x1.useEffect)(()=>{let b=()=>{let k=document.activeElement;k instanceof HTMLElement&&!f.current?.contains(k)&&k.blur(),y.current()},w=Xs(p,b),v=r?Xs(m,b):void 0;return()=>{w(),v?.()}},[p,m,r]),(0,y1.jsxs)("span",{ref:f,className:"acpmux-picker acpmux-model",style:{position:"relative"},onBlur:b=>{i&&!f.current?.contains(b.relatedTarget)&&o(!1)},children:[(0,y1.jsxs)("button",{ref:l,type:"button",role:"combobox",className:"acpmux-picker-button","data-menu":p,"aria-label":p,"aria-haspopup":"menu","aria-expanded":i,"aria-controls":i?h:void 0,onKeyDown:b=>{i?a(b):(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),o(!0))},onClick:()=>i?o(!1):g(),children:[(0,y1.jsx)("span",{className:"acpmux-model-name",children:e}),n&&(0,y1.jsx)("span",{className:"acpmux-model-effort",children:n}),(0,y1.jsx)(w1,{})]}),i&&(0,y1.jsx)("div",{ref:c,id:h,className:`acpmux-menu acpmux-menu-end acpmux-mp acpmux-mp-${t??"cascade"}`,role:"menu","aria-label":p,style:x,onPointerMove:s,children:u})]})}var rD=R(ee(),1);function Ile(t){let[e,n]=(0,Fc.useState)(!1),[r,i]=(0,Fc.useState)(void 0),o=(0,Fc.useRef)(null),a=(0,Fc.useRef)(null),s=(0,Fc.useRef)(void 0),{onHarnessHint:l}=t,c=(0,Fc.useCallback)(h=>{n(h),i(void 0),h||l?.(void 0)},[l]),u=(0,Fc.useCallback)(()=>c(!1),[c]),{catalog:d,harness:p,measureRoom:m=kle}=t;(0,Fc.useLayoutEffect)(()=>{if(!e||r||!a.current)return;let h=d.find(g=>g.id===p),x=$_(h?.models??[],h?.name??p??"").providers.length>1?2:1;i(vle(m(a.current),x))},[e,r,d,p,m]);let f=r==="drill"?Ale:Rle;return(0,rD.jsx)($le,{layout:r,chip:t.label,detail:t.detail,offersEffort:t.efforts.length>0,open:e,onOpenChange:c,onKeyDown:h=>s.current?.keyDown(h),onPointerMove:h=>s.current?.track(h),trigger:o,menu:a,children:r&&(0,rD.jsx)(f,{...t,trigger:o,menu:a,handle:s,close:u})})}var Ide=R(qe(),1);var og={};fn(og,{Arrow:()=>sde,Backdrop:()=>cde,Close:()=>hde,Description:()=>mde,Handle:()=>dx,Popup:()=>ode,Portal:()=>Iue,Positioner:()=>tde,Root:()=>Mue,Title:()=>dde,Trigger:()=>Rue,Viewport:()=>Ede,createHandle:()=>Tde});var ix=R(Q(),1);var Nle=R(Q(),1);var iD=[],oD;function Ple(){return oD}function jle(t){iD.push(t)}function P6(t){let e=(n,r)=>{let i=Vn(qFe).current,o;try{oD=i;for(let a of iD)a.before(i);o=t(n,r);for(let a of iD)a.after(i);i.didInitialize=!0}finally{oD=void 0}return o};return e.displayName=t.displayName||t.name,e}function G_(t){return Nle.forwardRef(P6(t))}function qFe(){return{didInitialize:!1}}var j6=0,Ca=class t{static create(){return new t}currentId=j6;start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=j6,n()},e)}isStarted(){return this.currentId!==j6}clear=()=>{this.currentId!==j6&&(clearTimeout(this.currentId),this.currentId=j6)};disposeEffect=()=>this.clear};function Br(){let t=Vn(Ca.create).current;return k2(t.disposeEffect),t}var Nn={};fn(Nn,{engine:()=>uD,env:()=>pD,mediaQuery:()=>mD,os:()=>lD,screenReader:()=>dD});var lD={};fn(lD,{android:()=>Fle,apple:()=>sD,ios:()=>aD,linux:()=>ZFe,mac:()=>Ble,windows:()=>VFe});function HFe(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:GFe,platform:UFe,maxTouchPoints:Ole}=HFe(),z0=GFe.toLowerCase(),q0=UFe.toLowerCase();var aD=/^i(os$|p)/.test(q0)||q0==="macintel"&&Ole>1,Dle="android",Fle=q0===Dle||z0.includes(Dle),Ble=!aD&&q0.startsWith("mac"),VFe=q0.startsWith("win"),ZFe=!Fle&&/^(linux|chrome os)/.test(q0),sD=Ble||aD;var uD={};fn(uD,{blink:()=>KFe,gecko:()=>WFe,webkit:()=>cD});var cD=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),WFe=!cD&&z0.includes("firefox"),KFe=!cD&&z0.includes("chrom");var dD={};fn(dD,{voiceOver:()=>XFe});var XFe=sD;var pD={};fn(pD,{jsdom:()=>YFe});var YFe=/jsdom|happydom/.test(z0);var mD={};fn(mD,{iOS:()=>QFe});var QFe="@supports (-webkit-touch-callout: none)";function zr(t){t.preventDefault(),t.stopPropagation()}function zle(t){return"nativeEvent"in t}function O2(t){return t.pointerType===""&&t.isTrusted?!0:Nn.os.android&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function D2(t){return Nn.env.jsdom?!1:!Nn.os.android&&t.width===0&&t.height===0||Nn.os.android&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function cm(t,e){let n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function qle(t){let e=t.type;return e==="click"||e==="mousedown"||e==="keydown"||e==="keyup"}function yo(t){let e=t.activeElement;for(;e?.shadowRoot?.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function ot(t,e){if(!t||!e)return!1;let n=e.getRootNode?.();if(t.contains(e))return!0;if(n&&Cd(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function lr(t){return"composedPath"in t?t.composedPath()[0]??t.target:t.target}var O6="data-base-ui-focusable";var fD="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",um="ArrowLeft",dm="ArrowRight",D6="ArrowUp",F2="ArrowDown";var Hle="data-open",Gle="data-closed";var Ule="data-anchor-hidden";var H0={};fn(H0,{popupOpen:()=>U_,pressed:()=>hD});var U_="data-popup-open",hD="data-pressed";var eBe={[U_]:""},tBe={[U_]:"",[hD]:""},nBe={[Hle]:""},rBe={[Gle]:""},iBe={[Ule]:""},B2={open(t){return t?eBe:null}},G0={open(t){return t?tBe:null}},zl={open(t){return t?nBe:rBe},anchorHidden(t){return t?iBe:null}},v1={...zl,...Dc};var uxt=H0.popupOpen,gD="data-trigger-disabled";function k1(t,e){if(!ln(t))return!1;let n=t;if(e.hasElement(n))return!n.hasAttribute(gD);for(let[,r]of e.entries())if(ot(r,n))return!r.hasAttribute(gD);return!1}function V_(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);let n=t;return n.target!=null&&e.contains(n.target)}function Vle(t){return t.matches("html,body")}function U0(t){return Ln(t)&&t.matches(fD)}function F6(t){return t?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${fD}`)!=null}function B6(t){return t?t.getAttribute("role")==="combobox"&&U0(t):!1}function Zle(t){if(!t||Nn.env.jsdom)return!0;try{return t.matches(":focus-visible")}catch{return!0}}function z6(t){return t?t.hasAttribute(O6)?t:t.querySelector(`[${O6}]`)||t:null}function aBe(t,e){return e!=null&&!cm(e)?0:typeof t=="function"?t():t}function q6(t,e,n){let r=aBe(t,n);return typeof r=="number"?r:r?.[e]}function bD(t){return typeof t=="function"?t():t}function Z_(t,e){return e||t==="click"||t==="mousedown"}function Wle(t){return t?.includes("mouse")&&t!=="mousedown"}var Ea=R(Q(),1);function hn(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function _a(...t){return()=>{for(let e=0;e<t.length;e+=1){let n=t[e];n&&n()}}}function Yr(t){let e=Vn(sBe,t).current;return e.next=t,Ee(e.effect),e}function sBe(t){let e={current:t,next:t,effect:()=>{e.current=e.next}};return e}var W_=R(Q(),1);var Kle=R(ee(),1),Bc=W_.forwardRef(function(e,n){let[r,i]=W_.useState();return Ee(()=>{Nn.screenReader.voiceOver&&Nn.engine.webkit&&i("button")},[]),(0,Kle.jsx)("span",{...e,ref:n,style:g2,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});var C1=Math.min,Au=Math.max,_1=Math.round,pm=Math.floor,Ld=t=>({x:t,y:t}),lBe={left:"right",right:"left",bottom:"top",top:"bottom"};function X_(t,e,n){return Au(t,C1(e,n))}function Md(t,e){return typeof t=="function"?t(e):t}function Sa(t){return t.split("-")[0]}function zc(t){return t.split("-")[1]}function Y_(t){return t==="x"?"y":"x"}function G6(t){return t==="y"?"height":"width"}function Qs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function U6(t){return Y_(Qs(t))}function Qle(t,e,n){n===void 0&&(n=!1);let r=zc(t),i=U6(t),o=G6(i),a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=H6(a)),[a,H6(a)]}function Jle(t){let e=H6(t);return[K_(t),e,K_(e)]}function K_(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}var Xle=["left","right"],Yle=["right","left"],cBe=["top","bottom"],uBe=["bottom","top"];function dBe(t,e,n){switch(t){case"top":case"bottom":return n?e?Yle:Xle:e?Xle:Yle;case"left":case"right":return e?cBe:uBe;default:return[]}}function ece(t,e,n,r){let i=zc(t),o=dBe(Sa(t),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),e&&(o=o.concat(o.map(K_)))),o}function H6(t){let e=Sa(t);return lBe[e]+t.slice(e.length)}function pBe(t){var e,n,r,i;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(r=t.bottom)!=null?r:0,left:(i=t.left)!=null?i:0}}function Q_(t){return typeof t!="number"?pBe(t):{top:t,right:t,bottom:t,left:t}}function V0(t){let{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function J_(t,e,n){return Math.floor(t/e)!==n}function Z0(t,e){return e<0||e>=t.length}function eS(t,e){return La(t.current,{disabledIndices:e})}function yD(t,e){return La(t.current,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function La(t,{startingIndex:e=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let o=e;do o+=n?-i:i;while(o>=0&&o<=t.length-1&&V6(t,o,r));return o}function tce(t,{event:e,orientation:n,loopFocus:r,onLoop:i,rtl:o,cols:a,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}){let p=u,m;if(e.key===D6?m="up":e.key===F2&&(m="down"),m){let f=[],h=[],x=!1,g=0;{let S=null,C=-1;t.forEach((T,M)=>{if(T==null)return;g+=1;let A=T.closest('[role="row"]');A&&(x=!0),(A!==S||C===-1)&&(S=A,C+=1,f[C]=[]),f[C].push(M),h[M]=C})}let y=!1,b=0;if(x)for(let S of f){let C=S.length;C>b&&(b=C),C!==a&&(y=!0)}let w=y&&g<t.length,v=b||a,k=S=>{if(!y||u===-1)return;let C=h[u];if(C==null)return;let T=f[C].indexOf(u),M=S==="up"?-1:1;for(let A=C+M,$=0;$<f.length;$+=1,A+=M){if(A<0||A>=f.length){if(!r||w)return;if(A=A<0?f.length-1:0,i){let F=Math.min(T,f[A].length-1),D=f[A][F]??f[A][0],O=i(e,u,D);A=h[O]??A}}let N=f[A];for(let F=Math.min(T,N.length-1);F>=0;F-=1){let D=N[F];if(!V6(t,D,s))return D}}},_=S=>{if(!w||u===-1)return;let C=u%v,T=S==="up"?-v:v,M=c-c%v,A=pm(c/v)+1;for(let $=u-C+T,N=0;N<A;N+=1,$+=T){if($<0||$>c){if(!r)return;$=$<0?M:0}let F=Math.min($+v-1,c);for(let D=Math.min($+C,F);D>=$;D-=1)if(!V6(t,D,s))return D}};d&&zr(e);let L=k(m)??_(m);if(L!==void 0)p=L;else if(u===-1)p=m==="up"?c:l;else if(p=La(t,{startingIndex:u,amount:v,decrement:m==="up",disabledIndices:s}),r){if(m==="up"&&(u-v<l||p<0)){let S=u%v,C=c%v,T=c-(C-S);C===S?p=c:p=C>S?T:T-v,i&&(p=i(e,u,p))}m==="down"&&u+v>c&&(p=La(t,{startingIndex:u%v-v,amount:v,disabledIndices:s}),i&&(p=i(e,u,p)))}Z0(t,p)&&(p=u)}if(n==="both"){let f=pm(u/a);e.key===(o?um:dm)&&(d&&zr(e),u%a!==a-1?(p=La(t,{startingIndex:u,disabledIndices:s}),r&&J_(p,a,f)&&(p=La(t,{startingIndex:u-u%a-1,disabledIndices:s}),i&&(p=i(e,u,p)))):r&&(p=La(t,{startingIndex:u-u%a-1,disabledIndices:s}),i&&(p=i(e,u,p))),J_(p,a,f)&&(p=u)),e.key===(o?dm:um)&&(d&&zr(e),u%a!==0?(p=La(t,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&J_(p,a,f)&&(p=La(t,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}),i&&(p=i(e,u,p)))):r&&(p=La(t,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}),i&&(p=i(e,u,p))),J_(p,a,f)&&(p=u));let h=pm(c/a)===f;Z0(t,p)&&(r&&h?(p=e.key===(o?dm:um)?c:La(t,{startingIndex:u-u%a-1,disabledIndices:s}),i&&(p=i(e,u,p))):p=u)}return p}function V6(t,e,n){if(typeof n=="function"?n(e):n?.includes(e)??!1)return!0;let i=t[e];return i?!W0(i)||i.matches(":disabled")?!0:!n&&(i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true"):!1}function mBe(t){return t.visibility==="hidden"||t.visibility==="collapse"}function W0(t,e=t?Fi(t):null){return!t||!t.isConnected||!e||mBe(e)?!1:typeof t.checkVisibility=="function"?t.checkVisibility():e.display!=="none"&&e.display!=="contents"}var fBe='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function hBe(t){let e=t.assignedSlot;if(e)return e;if(t.parentElement)return t.parentElement;let n=t.getRootNode();return Cd(n)?n.host:null}function wD(t){for(let e of Array.from(t.children))if(Di(e)==="summary")return e;return null}function gBe(t,e){let n=wD(e);return!!n&&(t===n||ot(n,t))}function nce(t){let e=t?Di(t):"";return t!=null&&t.matches(fBe)&&(e!=="summary"||t.parentElement!=null&&Di(t.parentElement)==="details"&&wD(t.parentElement)===t)&&(e!=="details"||wD(t)==null)&&(e!=="input"||t.type!=="hidden")}function rce(t){if(!nce(t)||!t.isConnected||t.matches(":disabled"))return!1;for(let e=t;e;e=hBe(e)){let n=e!==t,r=Di(e)==="slot";if(e.hasAttribute("inert")||n&&Di(e)==="details"&&!e.open&&!gBe(t,e)||e.hasAttribute("hidden")||!r&&!bBe(e,n))return!1}return!0}function bBe(t,e){let n=Fi(t);return e?n.display!=="none":W0(t,n)}function ice(t){let e=t.tabIndex;if(e<0){let n=Di(t);if(n==="details"||n==="audio"||n==="video"||Ln(t)&&t.isContentEditable)return 0}return e}function xD(t){if(Di(t)!=="input")return null;let e=t;return e.type==="radio"&&e.name!==""?e:null}function yBe(t,e){let n=xD(t);if(!n)return!0;let r=e.find(i=>{let o=xD(i);return o?.name===n.name&&o.form===n.form&&o.checked});return r?r===n:e.find(i=>{let o=xD(i);return o?.name===n.name&&o.form===n.form})===n}function oce(t){if(Ln(t)&&Di(t)==="slot"){let e=t.assignedElements({flatten:!0});if(e.length>0)return e}return Ln(t)&&t.shadowRoot?Array.from(t.shadowRoot.children):Array.from(t.children)}function ace(t,e){oce(t).forEach(n=>{nce(n)&&e.push(n),ace(n,e)})}function sce(t,e,n){oce(t).forEach(r=>{Ln(r)&&r.matches(e)&&n.push(r),sce(r,e,n)})}function tS(t){return rce(t)&&ice(t)>=0}function vD(t){let e=[];return ace(t,e),e.filter(rce)}function z2(t){let e=vD(t);return e.filter(n=>ice(n)>=0&&yBe(n,e))}function lce(t,e){let n=z2(t),r=n.length;if(r===0)return;let i=yo(Wt(t)),o=n.indexOf(i),a=o===-1?e===1?0:r-1:o+e;return n[a]}function q2(t){return lce(Wt(t).body,1)||t}function nS(t){return lce(Wt(t).body,-1)||t}function cce(t,e){if(!t)return null;let n=z2(Wt(t).body),r=n.length;if(r===0)return null;let i=n.indexOf(t);if(i===-1)return null;let o=(i+e+r)%r;return n[o]}function uce(t){return cce(t,1)}function dce(t){return cce(t,-1)}function mm(t,e){let n=e||t.currentTarget,r=t.relatedTarget;return!r||!ot(n,r)}function pce(t){z2(t).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function kD(t){let e=[];sce(t,"[data-tabindex]",e),e.forEach(n=>{let r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function qc(t,e,n=!0){return t.filter(i=>i.parentId===e).flatMap(i=>[...!n||i.context?.open?[i]:[],...qc(t,i.id,n)])}function CD(t,e){let n=[],r=t.find(i=>i.id===e)?.parentId;for(;r;){let i=t.find(o=>o.id===r);r=i?.parentId,i&&(n=n.concat(i))}return n}function fm(t){return`data-base-ui-${t}`}var rS=0;function H2(t,e={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=e;cancelAnimationFrame(rS);function o(){i&&!i()||t?.focus({preventScroll:n})}if(r)return o(),Yt;let a=requestAnimationFrame(o);return rS=a,()=>{rS===a&&(cancelAnimationFrame(a),rS=0)}}var _D={inert:new WeakMap,"aria-hidden":new WeakMap},mce="data-base-ui-inert",LD={inert:new WeakSet,"aria-hidden":new WeakSet},Z6=new WeakMap,SD=0;function xBe(t){return LD[t]}function bce(t){return t?Cd(t)?t.host:bce(t.parentNode):null}var fce=(t,e)=>e.map(n=>{if(t.contains(n))return n;let r=bce(n);return t.contains(r)?r:null}).filter(n=>n!=null),hce=t=>{let e=new Set;return t.forEach(n=>{let r=n;for(;r&&!e.has(r);)e.add(r),r=r.parentNode}),e},gce=(t,e,n)=>{let r=[],i=o=>{!o||n.has(o)||Array.from(o.children).forEach(a=>{Di(a)!=="script"&&(e.has(a)?i(a):r.push(a))})};return i(t),r};function wBe(t,e,n,r,{mark:i=!0}){let o=null;r?o="inert":n&&(o="aria-hidden");let a=null,s=null,l=fce(e,t),c=i?gce(e,hce(l),new Set(l)):[],u=[],d=[];if(o){let p=_D[o],m=xBe(o);s=m,a=p;let f=fce(e,Array.from(e.querySelectorAll("[aria-live]"))),h=l.concat(f);gce(e,hce(h),new Set(h)).forEach(g=>{let y=g.getAttribute(o),b=y!==null&&y!=="false",w=(p.get(g)||0)+1;p.set(g,w),u.push(g),w===1&&b&&m.add(g),b||g.setAttribute(o,o==="inert"?"":"true")})}return i&&c.forEach(p=>{let m=(Z6.get(p)||0)+1;Z6.set(p,m),d.push(p),m===1&&p.setAttribute(mce,"")}),SD+=1,()=>{a&&u.forEach(p=>{let f=(a.get(p)||0)-1;a.set(p,f),f||(!s?.has(p)&&o&&p.removeAttribute(o),s?.delete(p))}),i&&d.forEach(p=>{let m=(Z6.get(p)||0)-1;Z6.set(p,m),m||p.removeAttribute(mce)}),SD-=1,SD||(_D.inert=new WeakMap,_D["aria-hidden"]=new WeakMap,LD.inert=new WeakSet,LD["aria-hidden"]=new WeakSet,Z6=new WeakMap)}}function MD(t,e={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=e,o=Wt(t[0]).body;return wBe(t,o,n,r,{mark:i})}var Qr=R(Q(),1),ED=R(Ms(),1);var yce={style:{transition:"none"}},iS="data-base-ui-click-trigger",vBe="data-base-ui-swipe-ignore",kBe="data-swipe-ignore",Vxt=`[${vBe}]`,Zxt=`[${kBe}]`,oS={fallbackAxisSide:"none"},aS={fallbackAxisSide:"end"},xce={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var K0=R(ee(),1),wce=Qr.createContext(null),TD=()=>Qr.useContext(wce),CBe=fm("portal");function vce(t={}){let{ref:e,container:n,componentProps:r=xn,elementProps:i}=t,o=Ol(),s=TD()?.portalNode,[l,c]=Qr.useState(null),[u,d]=Qr.useState(null),p=Pe(x=>{x!==null&&d(x)}),m=Qr.useRef(null);Ee(()=>{if(n===null){m.current&&(m.current=null,d(null),c(null));return}let x=(n&&(FC(n)?n:n.current))??s??document.body;if(x==null){m.current&&(m.current=null,d(null),c(null));return}m.current!==x&&(m.current=x,d(null),c(x))},[n,s]);let f=We("div",r,{ref:[e,p],props:[{id:o,[CBe]:""},i]}),h=l&&f?ED.createPortal(f,l):null;return{node:u,nodeId:Qr.isValidElement(f)?f.props.id:void 0,subtree:h}}var X0=Qr.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,container:s,portalOwnerRole:l,...c}=e,{node:u,nodeId:d,subtree:p}=vce({container:s,ref:n,componentProps:e,elementProps:c}),m=Qr.useRef(null),f=Qr.useRef(null),h=Qr.useRef(null),x=Qr.useRef(null),[g,y]=Qr.useState(null),b=Qr.useRef(!1),w=g?.modal,v=g?.open,k=!!g&&!g.modal&&g.open&&!!u;Qr.useEffect(()=>{if(!u||w)return;function L(S){u&&S.relatedTarget&&mm(S)&&(S.type==="focusin"?b.current&&(kD(u),b.current=!1):(pce(u),b.current=!0))}return _a(hn(u,"focusin",L,!0),hn(u,"focusout",L,!0))},[u,w]),Ee(()=>{!u||v!==!0||!b.current||(kD(u),b.current=!1)},[v,u]);let _=Qr.useMemo(()=>({beforeOutsideRef:m,afterOutsideRef:f,beforeInsideRef:h,afterInsideRef:x,portalNode:u,setFocusManagerState:y}),[u]);return(0,K0.jsxs)(Qr.Fragment,{children:[p,(0,K0.jsxs)(wce.Provider,{value:_,children:[k&&u&&(0,K0.jsx)(Bc,{"data-type":"outside",ref:m,onFocus:L=>{if(mm(L,u))h.current?.focus();else{let S=g?g.domReference:null;nS(S)?.focus()}}}),k&&u&&(0,K0.jsx)("span",{role:l,"aria-owns":d,style:xce}),u&&ED.createPortal(a,u),k&&u&&(0,K0.jsx)(Bc,{"data-type":"outside",ref:f,onFocus:L=>{if(mm(L,u))x.current?.focus();else{let S=g?g.domReference:null;q2(S)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Xe(he.focusOut,L.nativeEvent))}}})]})]})});var L1=R(Q(),1);function sS(){let t=new Map;return{emit(e,n){t.get(e)?.forEach(r=>r(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){t.get(e)?.delete(n)}}}var S1=class{nodesRef={current:[]};events=sS();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let n=this.nodesRef.current.findIndex(r=>r===e);n!==-1&&this.nodesRef.current.splice(n,1)}};var RD=R(ee(),1),kce=L1.createContext(null),Cce=L1.createContext(null),as=()=>L1.useContext(kce)?.id||null,Ma=t=>{let e=L1.useContext(Cce);return t??e};function Y0(t){let e=Ol(),n=Ma(t),r=as();return Ee(()=>{if(!e)return;let i={id:e,parentId:r};return n?.addNode(i),()=>{n?.removeNode(i)}},[n,e,r]),e}function W6(t){let{children:e,id:n}=t,r=as();return(0,RD.jsx)(kce.Provider,{value:L1.useMemo(()=>({id:n,parentId:r}),[n,r]),children:e})}function K6(t){let{children:e,externalTree:n}=t,r=Vn(()=>n??new S1).current;return(0,RD.jsx)(Cce.Provider,{value:r,children:e})}var X6=R(ee(),1);function _Be(t,e){let n=Qn(lr(t));return t instanceof n.KeyboardEvent?"keyboard":t instanceof n.FocusEvent?e||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof n.MouseEvent?e||(t.detail===0?"keyboard":"mouse"):""}var _ce=20,M1=[];function AD(){M1=M1.filter(t=>t.deref()?.isConnected)}function Sce(t){AD(),t&&Di(t)!=="body"&&(M1.push(new WeakRef(t)),M1.length>_ce&&(M1=M1.slice(-_ce)))}function Lce(){return AD(),M1[M1.length-1]?.deref()}function SBe(t){return t?tS(t)?t:z2(t)[0]||t:null}function Mce(t){if(t.hasAttribute("tabindex")&&!t.hasAttribute("data-tabindex")||!t.getAttribute("role")?.includes("dialog"))return;let n=vD(t).filter(i=>{let o=i.getAttribute("data-tabindex")||"";return tS(i)||i.hasAttribute("data-tabindex")&&!o.startsWith("-")}),r=t.getAttribute("tabindex");n.length===0?r!=="0"&&(t.setAttribute("tabindex","0"),t.setAttribute("data-tabindex","0")):(r!=="-1"||t.hasAttribute("data-tabindex")&&t.getAttribute("data-tabindex")!=="-1")&&(t.setAttribute("tabindex","-1"),t.setAttribute("data-tabindex","-1"))}function Q0(t){let{context:e,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:o=!0,restoreFocus:a=!1,modal:s=!0,closeOnFocusOut:l=!0,openInteractionType:c="",nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:f}=t,h="rootStore"in e?e.rootStore:e,x=h.useState("open"),g=h.useState("domReferenceElement"),y=h.useState("floatingElement"),{events:b,dataRef:w}=h.context,v=Pe(()=>w.current.floatingContext?.nodeId),k=i===!1,_=B6(g)&&k,L=Yr(i),S=Yr(o),C=Yr(c),T=Yr(x),M=Ma(m),A=TD(),$=Ea.useRef(!1),N=Ea.useRef(!1),F=Ea.useRef(!1),D=Ea.useRef(null),O=Ea.useRef(""),B=Ea.useRef(""),P=Ea.useRef(null),U=Ea.useRef(null),G=wa(P,p,A?.beforeInsideRef),j=wa(U,A?.afterInsideRef),V=Br(),H=Br(),ne=Dl(),J=A!=null,W=z6(y),ie=Pe((se=W)=>se?z2(se):[]),Z=Pe(()=>f?.().filter(se=>se!=null)??[]);Ea.useEffect(()=>{if(r||!s)return;function se(ce){ce.key==="Tab"&&ot(W,yo(Wt(W)))&&ie().length===0&&!_&&zr(ce)}let ge=Wt(W);return hn(ge,"keydown",se)},[r,W,s,_,ie]),Ea.useEffect(()=>{if(r||!x)return;let se=Wt(W);function ge(){F.current=!1}function ce(ke){let me=lr(ke),Se=Z(),de=ot(y,me)||ot(g,me)||ot(A?.portalNode,me)||Se.some(Le=>Le===me||ot(Le,me));F.current=!de,B.current=ke.pointerType||"keyboard",me?.closest(`[${iS}]`)&&(N.current=!0,H.start(0,()=>{N.current=!1}))}function be(){B.current="keyboard"}return _a(hn(se,"pointerdown",ce,!0),hn(se,"pointerup",ge,!0),hn(se,"pointercancel",ge,!0),hn(se,"keydown",be,!0),ge)},[r,y,g,W,x,A,H,Z]),Ea.useEffect(()=>{if(r||!l)return;let se=Wt(W);function ge(){N.current=!0,H.start(0,()=>{N.current=!1})}function ce(Se){let de=lr(Se);tS(de)&&(D.current=de)}function be(Se){let de=Se.relatedTarget,Le=Se.currentTarget,Ne=lr(Se);s&&de==null&&Ne!=null&&ot(y,Ne)&&Sce(Ne),queueMicrotask(()=>{let Be=v(),_e=h.context.triggerElements,xe=Z(),Ce=de?.hasAttribute(fm("focus-guard"))&&[P.current,U.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,_u(d),_u(u)].includes(de),K=!(ot(g,de)||ot(y,de)||ot(de,y)||ot(A?.portalNode,de)||xe.some(Y=>Y===de||ot(Y,de))||_e.hasMatchingElement(Y=>ot(Y,de))||Ce||M&&(qc(M.nodesRef.current,Be).find(Y=>ot(Y.context?.elements.floating,de)||ot(Y.context?.elements.domReference,de))||CD(M.nodesRef.current,Be).find(Y=>[Y.context?.elements.floating,z6(Y.context?.elements.floating)].includes(de)||Y.context?.elements.domReference===de)));if(Le===g&&W&&Mce(W),a&&Le!==g&&!W0(Ne)&&yo(se)===se.body){if(Ln(W)&&(W.focus(),a==="popup")){ne.request(()=>{W.focus()});return}let Y=ie(),ye=D.current,Re=(ye&&Y.includes(ye)?ye:null)||Y[Y.length-1]||W;Ln(Re)&&Re.focus()}if(w.current.insideReactTree){w.current.insideReactTree=!1;return}(_||!s)&&de&&K&&!N.current&&(_||de!==Lce())&&($.current=!0,h.setOpen(!1,Xe(he.focusOut,Se)))})}function ke(){F.current||(w.current.insideReactTree=!0,V.start(0,()=>{w.current.insideReactTree=!1}))}let me=Ln(g)?g:null;if(!(!y&&!me))return _a(me&&hn(me,"focusout",be),me&&hn(me,"pointerdown",ge),y&&hn(y,"focusin",ce),y&&hn(y,"focusout",be),y&&A&&hn(y,"focusout",ke,!0))},[r,g,y,W,s,M,A,h,l,a,ie,_,v,w,V,H,ne,u,d,Z]),Ea.useEffect(()=>{if(r||!y||!x)return;let se=Array.from(A?.portalNode?.querySelectorAll(`[${fm("portal")}]`)||[]),ce=(M?CD(M.nodesRef.current,v()):[]).find(Le=>B6(Le.context?.elements.domReference||null))?.context?.elements.domReference,ke=[...[y,...se,P.current,U.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...Z()],ce,_u(d),_u(u),_?g:null].filter(Le=>Le!=null),me=MD(ke,{ariaHidden:s||_,mark:!1}),Se=[y,...se].filter(Le=>Le!=null),de=MD(Se);return()=>{de(),me()}},[x,r,g,y,s,A,_,M,v,u,d,Z]),Ee(()=>{if(!x||r||!Ln(W))return;O.current="",B.current="";let se=Wt(W),ge=yo(se);queueMicrotask(()=>{let ce=L.current,be=typeof ce=="function"?ce(C.current||""):ce;if(be===void 0||be===!1||ot(W,ge))return;let me=null,Se=()=>(me==null&&(me=ie(W)),me[0]||W),de;be===!0||be===null?de=Se():de=_u(be),de=de||Se();let Le=ot(W,yo(se));H2(de,{preventScroll:de===W,shouldFocus(){if(!T.current)return!1;if(Le)return!0;let Ne=yo(se);return!(Ne!==de&&ot(W,Ne))}})})},[r,x,W,ie,L,C,T]),Ee(()=>{if(r||!W)return;let se=Wt(W),ge=yo(se),ce=C.current==null;Sce(ge);function be(me){if(me.open||(O.current=_Be(me.nativeEvent,B.current)),me.reason===he.triggerHover&&me.nativeEvent.type==="mouseleave"&&($.current=!0),me.reason===he.outsidePress)if(me.nested)$.current=!1;else if(O2(me.nativeEvent)||D2(me.nativeEvent))$.current=!1;else{let Se=!1;Wt(W).createElement("div").focus({get preventScroll(){return Se=!0,!1}}),Se?$.current=!1:$.current=!0}}b.on("openchange",be);function ke(me){let Se=S.current,de=typeof Se=="function"?Se(me):Se;if(de===void 0||de===!1)return null;de===null&&(de=!0);let Le=g?.isConnected?g:null,Ne=ge?.isConnected&&Di(ge)!=="body"?ge:null,Be=ce?Ne||Le:Le||Ne;return Be||(Be=Lce()||null),typeof de=="boolean"?Be:_u(de)||Be||null}return()=>{b.off("openchange",be);let me=yo(se),Se=Z(),de=ot(y,me)||Se.some(_e=>_e===me||ot(_e,me))||M&&qc(M.nodesRef.current,v(),!1).some(_e=>ot(_e.context?.elements.floating,me)),Le=S.current,Ne=O.current,Be=ke(Ne);queueMicrotask(()=>{let _e=SBe(Be),xe=typeof Le!="boolean";if(Le&&!$.current&&Ln(_e)&&(!(!xe&&_e!==me&&me!==se.body)||de)){let Ce={preventScroll:!0};Ne==="keyboard"&&(Ce.focusVisible=!0),_e.focus(Ce)}$.current=!1})}},[r,y,W,S,C,b,M,g,v,Z]),Ee(()=>{if(!Nn.engine.webkit||x||!y)return;let se=yo(Wt(y));!Ln(se)||!U0(se)||ot(y,se)&&se.blur()},[x,y]),Ee(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:l,open:x,onOpenChange:h.setOpen,domReference:g}),()=>{A.setFocusManagerState(null)}},[r,A,s,x,h,l,g]),Ee(()=>{if(!(r||!W))return Mce(W),()=>{queueMicrotask(AD)}},[r,W]);let le=!r&&(s?!_:!0)&&(J||s);return(0,X6.jsxs)(Ea.Fragment,{children:[le&&(0,X6.jsx)(Bc,{"data-type":"inside",ref:G,onFocus:se=>{if(s){let ge=ie();H2(ge[ge.length-1])}else A?.portalNode&&($.current=!1,mm(se,A.portalNode)?q2(g)?.focus():_u(d??A.beforeOutsideRef)?.focus())}}),n,le&&(0,X6.jsx)(Bc,{"data-type":"inside",ref:j,onFocus:se=>{s?H2(ie()[0]):A?.portalNode&&(l&&($.current=!0),mm(se,A.portalNode)?nS(g)?.focus():_u(u??A.afterOutsideRef)?.focus())}})]})}var Y6=R(Q(),1);function $u(t,e={}){let{enabled:n=!0,event:r="click",toggle:i=!0,ignoreMouse:o=!1,stickIfOpen:a=!0,touchOpenDelay:s=0,reason:l=he.triggerPress}=e,c="rootStore"in t?t.rootStore:t,u=c.context.dataRef,d=Y6.useRef(void 0),p=Dl(),m=Br(),f=Y6.useMemo(()=>{function h(g,y,b,w){let v=Xe(l,y,b);g&&w==="touch"&&s>0?m.start(s,()=>{c.setOpen(!0,v)}):c.setOpen(g,v)}function x(g,y,b){let w=u.current.openEvent,v=c.select("domReferenceElement")!==y;return g&&v||!g||!i?!0:w&&a?!b(w.type):!1}return{onPointerDown(g){d.current=cm(g.pointerType,!0)&&D2(g.nativeEvent)?"virtual":g.pointerType},onMouseDown(g){let y=d.current,b=g.nativeEvent,w=c.select("open");if(g.button!==0||r==="click"||cm(y,!0)&&o)return;let v=x(w,g.currentTarget,L=>L==="click"||L==="mousedown"),k=lr(b);if(U0(k)){h(v,b,k,y);return}let _=g.currentTarget;p.request(()=>{h(v,b,_,y)})},onClick(g){if(r==="mousedown-only")return;let y=d.current;if(r==="mousedown"&&y){d.current=void 0;return}if(cm(y,!0)&&o)return;let b=c.select("open"),w=x(b,g.currentTarget,v=>v==="click"||v==="mousedown"||v==="keydown"||v==="keyup");h(w,g.nativeEvent,g.currentTarget,y)},onKeyDown(){d.current=void 0}}},[u,r,o,l,c,a,i,p,m,s]);return Y6.useMemo(()=>n?{reference:f}:xn,[n,f])}var ss=R(Q(),1);function LBe(){return!1}function MBe(t){return{escapeKey:typeof t=="boolean"?t:t?.escapeKey??!1,outsidePress:typeof t=="boolean"?t:t?.outsidePress??!0}}function J0(t,e={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:o="sloppy",referencePress:a=LBe,bubbles:s,externalTree:l}=e,c="rootStore"in t?t.rootStore:t,u=c.useState("open"),d=c.useState("floatingElement"),{dataRef:p,events:m}=c.context,f=Ma(l),h=Pe(typeof i=="function"?i:()=>!1),x=typeof i=="function"?h:i,g=x!==!1,y=Pe(()=>o),{escapeKey:b,outsidePress:w}=MBe(s),v=ss.useRef(!1),k=ss.useRef(!1),_=ss.useRef(!1),L=ss.useRef(!1),S=ss.useRef(!1),C=ss.useRef(""),T=ss.useRef(null),M=Br(),A=Br(),$=Pe(()=>{A.clear(),p.current.insideReactTree=!1}),N=Pe(V=>{let H=p.current.floatingContext?.nodeId;return(f?qc(f.nodesRef.current,H):[]).some(J=>J.context?.open&&!J.context.dataRef.current[V])}),F=Pe(V=>V_(V,c.select("floatingElement"))||V_(V,c.select("domReferenceElement"))),D=Pe(V=>{a()&&c.setOpen(!1,Xe(he.triggerPress,V.nativeEvent))}),O=Pe(V=>{if(!u||!n||!r||V.key!=="Escape"||S.current||!b&&N("__escapeKeyBubbles"))return;let H=zle(V)?V.nativeEvent:V,ne=Xe(he.escapeKey,H);c.setOpen(!1,ne),ne.isCanceled||V.preventDefault(),!b&&!ne.isPropagationAllowed&&V.stopPropagation()}),B=Pe(()=>{p.current.insideReactTree=!0,A.start(0,$)}),P=Pe(V=>{if(!u||!n||V.button!==0)return;let H=lr(V.nativeEvent);ot(c.select("floatingElement"),H)&&(v.current||(v.current=!0,k.current=!1))}),U=Pe(V=>{!u||!n||(V.defaultPrevented||V.nativeEvent.defaultPrevented)&&v.current&&(k.current=!0)});ss.useEffect(()=>{function V(H){H.open||(L.current=!1)}return m.on("openchange",V),()=>{m.off("openchange",V)}},[m]),ss.useEffect(()=>{if(!u||!n)return u||(L.current=!1),$;p.current.__escapeKeyBubbles=b,p.current.__outsidePressBubbles=w;let V=new Ca,H=new Ca,ne=Wt(d);function J(){V.clear(),S.current=!0}function W(){V.start(Nn.engine.webkit?5:0,()=>{S.current=!1})}function ie(){_.current=!0,H.start(0,()=>{_.current=!1})}function Z(){v.current=!1,k.current=!1}function le(){let K=C.current,Y=K==="pen"||!K?"mouse":K,ye=y(),Re=typeof ye=="function"?ye():ye;return typeof Re=="string"?Re:Re[Y]}function se(K){let Y=le();return Y==="intentional"&&K.type!=="click"||Y==="sloppy"&&K.type==="click"}function ge(K){let Y=p.current.floatingContext?.nodeId,ye=f&&qc(f.nodesRef.current,Y).some(Re=>V_(K,Re.context?.elements.floating));return F(K)||ye}function ce(K){if(se(K)){K.type!=="click"&&!F(K)&&(H.clear(),_.current=!1),$();return}if(p.current.insideReactTree){$();return}let Y=lr(K),ye=`[${fm("inert")}]`,Re=ln(Y)?Y.getRootNode():null,Ke=Array.from((Cd(Re)?Re:Wt(c.select("floatingElement"))).querySelectorAll(ye)),mt=c.context.triggerElements;if(Y&&(mt.hasElement(Y)||mt.hasMatchingElement(Ae=>ot(Ae,Y))))return;let dt=ln(Y)?Y:null;for(;dt&&!jl(dt);){let Ae=Pl(dt);if(jl(Ae)||!ln(Ae))break;dt=Ae}if(!(Ke.length&&ln(Y)&&!Vle(Y)&&!ot(Y,c.select("floatingElement"))&&Ke.every(Ae=>!ot(dt,Ae)))){if(Ln(Y)&&!("touches"in K)){let Ae=jl(Y),wt=Fi(Y),Tt=/auto|scroll/,Ot=Ae||Tt.test(wt.overflowX),zt=Ae||Tt.test(wt.overflowY),Ve=Ot&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,Jt=zt&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,rn=wt.direction==="rtl",Rn=Jt&&(rn?K.offsetX<=Y.offsetWidth-Y.clientWidth:K.offsetX>Y.clientWidth),St=Ve&&K.offsetY>Y.clientHeight;if(Rn||St)return}if(!ge(K)){if(le()==="intentional"){if(K.detail!==0&&!O2(K)&&!L.current)return;if(_.current){H.clear(),_.current=!1;return}}typeof x=="function"&&!x(K)||N("__outsidePressBubbles")||(c.setOpen(!1,Xe(he.outsidePress,K)),$())}}}function be(K){le()!=="sloppy"||K.pointerType==="touch"||!c.select("open")||!n||F(K)||ce(K)}function ke(K){if(le()!=="sloppy"||!c.select("open")||!n||F(K))return;let Y=K.touches[0];Y&&(T.current={startTime:Date.now(),startX:Y.clientX,startY:Y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function me(K,Y){let ye=lr(K);if(!ye)return;let Re=hn(ye,K.type,()=>{Y(K),Re()})}function Se(K){C.current="touch",me(K,ke)}function de(K){M.clear(),K.type==="pointerdown"&&(K.button===0&&(L.current=!0),C.current=K.pointerType),!(K.type==="mousedown"&&T.current&&!T.current.dismissOnMouseDown)&&me(K,Y=>{Y.type==="pointerdown"?be(Y):ce(Y)})}function Le(K){if(K.type==="pointercancel"&&(L.current=!1),!v.current)return;let Y=k.current;if(Z(),le()==="intentional"){if(K.type==="pointercancel"){Y&&ie();return}if(!ge(K)){if(Y){ie();return}typeof x=="function"&&!x(K)||(H.clear(),_.current=!0,$())}}}function Ne(K){if(le()!=="sloppy"||!T.current||F(K))return;let Y=K.touches[0];if(!Y)return;let ye=Math.abs(Y.clientX-T.current.startX),Re=Math.abs(Y.clientY-T.current.startY),Ke=Math.sqrt(ye*ye+Re*Re);Ke>5&&(T.current.dismissOnTouchEnd=!0),Ke>10&&(ce(K),M.clear(),T.current=null)}function Be(K){me(K,Ne)}function _e(K){le()!=="sloppy"||!T.current||F(K)||(T.current.dismissOnTouchEnd&&ce(K),M.clear(),T.current=null)}function xe(K){me(K,_e)}let Ce=_a(r&&_a(hn(ne,"keydown",O),hn(ne,"compositionstart",J),hn(ne,"compositionend",W)),g&&_a(hn(ne,"click",de,!0),hn(ne,"pointerdown",de,!0),hn(ne,"pointerup",Le,!0),hn(ne,"pointercancel",Le,!0),hn(ne,"mousedown",de,!0),hn(ne,"mouseup",Le,!0),hn(ne,"touchstart",Se,{capture:!0,passive:!0}),hn(ne,"touchmove",Be,{capture:!0,passive:!0}),hn(ne,"touchend",xe,{capture:!0,passive:!0})));return()=>{Ce(),V.clear(),H.clear(),Z(),_.current=!1,$()}},[p,d,r,g,x,u,n,b,w,O,$,y,N,F,f,c,M]);let G=ss.useMemo(()=>({onKeyDown:O,onPointerDown:D,onClick:D}),[O,D]),j=ss.useMemo(()=>({onKeyDown:O,onPointerDown:U,onMouseDown:U,onClickCapture:B,onMouseDownCapture(V){B(),P(V)},onPointerDownCapture(V){B(),P(V)},onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[O,B,P,U]);return ss.useMemo(()=>n?{reference:G,floating:j,trigger:G}:{},[n,G,j])}var Ta=R(Q(),1);function Ece(t,e,n){let{reference:r,floating:i}=t,o=Qs(e),a=U6(e),s=G6(a),l=Sa(e),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2,m;switch(l){case"top":m={x:u,y:r.y-i.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}let f=zc(e);return f&&(m[a]+=p*(f==="end"?1:-1)*(n&&c?-1:1)),m}async function Tce(t,e){var n;e===void 0&&(e={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=Md(e,t),f=Q_(m),x=s[p?d==="floating"?"reference":"floating":d],g=V0(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),w=await(o.isElement==null?void 0:o.isElement(b))&&await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1},v=V0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(g.top-v.top+f.top)/w.y,bottom:(v.bottom-g.bottom+f.bottom)/w.y,left:(g.left-v.left+f.left)/w.x,right:(v.right-g.right+f.right)/w.x}}var EBe=50,Rce=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Tce},l=await(a.isRTL==null?void 0:a.isRTL(e)),c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=Ece(c,r,l),p=r,m=0,f={};for(let h=0;h<o.length;h++){let x=o[h];if(!x)continue;let{name:g,fn:y}=x,{x:b,y:w,data:v,reset:k}=await y({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:c,platform:s,elements:{reference:t,floating:e}});u=b??u,d=w??d,f[g]={...f[g],...v},k&&m<EBe&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:d}=Ece(c,p,l)),h=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:f}};var Ace=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;let{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...x}=Md(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};let g=Sa(i),y=Qs(s),b=Sa(s)===s,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=p||(b||!h?[H6(s)]:Jle(s)),k=f!=="none";!p&&k&&v.push(...ece(s,h,f,w));let _=[s,...v],L=await l.detectOverflow(e,x),S=[],C=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&S.push(L[g]),d){let $=Qle(i,a,w);S.push(L[$[0]],L[$[1]])}if(C=[...C,{placement:i,overflows:S}],!S.every($=>$<=0)){var T,M;let $=(((T=o.flip)==null?void 0:T.index)||0)+1,N=_[$];if(N&&(!(d==="alignment"?y!==Qs(N):!1)||C.every(O=>Qs(O.placement)===y?O.overflows[0]>0:!0)))return{data:{index:$,overflows:C},reset:{placement:N}};let F=(M=C.filter(D=>D.overflows[0]<=0).sort((D,O)=>D.overflows[1]-O.overflows[1])[0])==null?void 0:M.placement;if(!F)switch(m){case"bestFit":{var A;let D=(A=C.filter(O=>{if(k){let B=Qs(O.placement);return B===y||B==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(B=>B>0).reduce((B,P)=>B+P,0)]).sort((O,B)=>O[1]-B[1])[0])==null?void 0:A[0];D&&(F=D);break}case"initialPlacement":F=s;break}if(i!==F)return{reset:{placement:F}}}return{}}}};var $ce=new Set(["left","top"]);async function TBe(t,e){let{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Sa(n),s=zc(n),l=Qs(n)==="y",c=$ce.has(a)?-1:1,u=o&&l?-1:1,d=Md(e,t),{mainAxis:p,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof f=="number"&&(m=s==="end"?f*-1:f),l?{x:m*u,y:p*c}:{x:p*c,y:m*u}}var Ice=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=e,l=await TBe(e,t);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Nce=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:i,platform:o}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=Md(t,e),u={x:n,y:r},d=await o.detectOverflow(e,c),p=Qs(i),m=Y_(p),f=u[m],h=u[p],x=(y,b)=>X_(b+d[y==="y"?"top":"left"],b,b-d[y==="y"?"bottom":"right"]);a&&(f=x(m,f)),s&&(h=x(p,h));let g=l.fn({...e,[m]:f,[p]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:a,[p]:s}}}}}},Pce=function(t){return t===void 0&&(t={}),{options:t,fn(e){var n,r;let{x:i,y:o,placement:a,rects:s,middlewareData:l}=e,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=Md(t,e),p={x:i,y:o},m=Qs(a),f=Y_(m),h=p[f],x=p[m],g=Md(c,e),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(n=g.mainAxis)!=null?n:0,crossAxis:(r=g.crossAxis)!=null?r:0};if(u){let v=f==="y"?"height":"width",k=s.reference[f]-s.floating[v]+y.mainAxis,_=s.reference[f]+s.reference[v]-y.mainAxis;h<k?h=k:h>_&&(h=_)}if(d){var b,w;let v=f==="y"?"width":"height",k=$ce.has(Sa(a)),_=s.reference[m]-s.floating[v]+(k&&((b=l.offset)==null?void 0:b[m])||0)+(k?0:y.crossAxis),L=s.reference[m]+s.reference[v]+(k?0:((w=l.offset)==null?void 0:w[m])||0)-(k?y.crossAxis:0);x<_?x=_:x>L&&(x=L)}return{[f]:h,[m]:x}}}},jce=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:r,platform:i,elements:o}=e,{apply:a=()=>{},...s}=Md(t,e),l=await i.detectOverflow(e,s),c=Sa(n),u=zc(n),d=Qs(n)==="y",{width:p,height:m}=r.floating,f,h;c==="top"||c==="bottom"?(f=c,h=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(h=c,f=u==="end"?"top":"bottom");let x=m-l.top-l.bottom,g=p-l.left-l.right,y=C1(m-l[f],x),b=C1(p-l[h],g),w=e.middlewareData.shift,v=!w,k=y,_=b;w!=null&&w.enabled.x&&(_=g),w!=null&&w.enabled.y&&(k=x),v&&!u&&(d?_=p-2*Au(l.left,l.right):k=m-2*Au(l.top,l.bottom)),await a({...e,availableWidth:_,availableHeight:k});let L=await i.getDimensions(o.floating);return p!==L.width||m!==L.height?{reset:{rects:!0}}:{}}}};function Fce(t){let e=Fi(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=Ln(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r,s=_1(n)!==o||_1(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function ID(t){return ln(t)?t:t.contextElement}function G2(t){let e=ID(t);if(!Ln(e))return Ld(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Fce(e),a=(o?_1(n.width):n.width)/r,s=(o?_1(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}var RBe=Ld(0);function Bce(t){let e=Qn(t);return!zC()||!e.visualViewport?RBe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ABe(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===Qn(t)}function eg(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=ID(t),a=Ld(1);e&&(r?ln(r)&&(a=G2(r)):a=G2(t));let s=ABe(o,n,r)?Bce(o):Ld(0),l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o&&r){let p=Qn(o),m=ln(r)?Qn(r):r,f=p,h=qC(f);for(;h&&m!==f;){let x=G2(h),g=h.getBoundingClientRect(),y=Fi(h),b=g.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,w=g.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=w,f=Qn(h),h=qC(f)}}return V0({width:u,height:d,x:l,y:c})}function lS(t,e){let n=d6(t).scrollLeft;return e?e.left+n:eg(_d(t)).left+n}function zce(t,e){let n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-lS(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function $Be(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t,o=i==="fixed",a=_d(r),s=e?u6(e.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Ld(1),u=Ld(0),d=Ln(r);if((d||!o)&&((Di(r)!=="body"||P0(a))&&(l=d6(r)),d)){let m=eg(r);c=G2(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}let p=a&&!d&&!o?zce(a,l):Ld(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function IBe(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function NBe(t){let e=d6(t),n=t.ownerDocument.body,r=Au(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Au(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-e.scrollLeft+lS(t),a=-e.scrollTop;return Fi(n).direction==="rtl"&&(o+=Au(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:o,y:a}}var PBe=25;function jBe(t,e,n){n===void 0&&(n="viewport");let r=n==="layoutViewport",i=Qn(t),o=_d(t),a=i.visualViewport,s=o.clientWidth,l=o.clientHeight,c=0,u=0;if(a){let p=!zC()||e==="fixed";r?p||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,p&&(c=a.offsetLeft,u=a.offsetTop))}if(lS(o)<=0){let p=o.ownerDocument,m=p.body,f=getComputedStyle(m),h=p.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,x=Math.abs(o.clientWidth-m.clientWidth-h),g=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;g<=PBe&&(s-=g)}return{width:s,height:l,x:c,y:u}}function OBe(t,e){let n=eg(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=G2(t),a=t.clientWidth*o.x,s=t.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:a,height:s,x:l,y:c}}function Oce(t,e,n){let r;if(e==="viewport"||e==="layoutViewport")r=jBe(t,n,e);else if(e==="document")r=NBe(_d(t));else if(ln(e))r=OBe(e,n);else{let i=Bce(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return V0(r)}function DBe(t,e){let n=e.get(t);if(n)return n;let r=vu(t,[],!1).filter(s=>ln(s)&&Di(s)!=="body"),i=null,o=Fi(t).position==="fixed",a=o?Pl(t):t;for(;ln(a)&&!jl(a);){let s=Fi(a),l=BC(a),c=i?i.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&s.position==="static")?r=r.filter(d=>d!==a):i=s,a=Pl(a)}return e.set(t,r),r}function FBe(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,a=[...n==="clippingAncestors"?u6(e)?[]:DBe(e,this._c):[].concat(n),r],s=Oce(e,a[0],i),l=s.top,c=s.right,u=s.bottom,d=s.left;for(let p=1;p<a.length;p++){let m=Oce(e,a[p],i);l=Au(m.top,l),c=C1(m.right,c),u=C1(m.bottom,u),d=Au(m.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function BBe(t){let{width:e,height:n}=Fce(t);return{width:e,height:n}}function zBe(t,e,n){let r=Ln(e),i=_d(e),o=n==="fixed",a=eg(t,!0,o,e),s={scrollLeft:0,scrollTop:0},l=Ld(0);if((r||!o)&&((Di(e)!=="body"||P0(i))&&(s=d6(e)),r)){let p=eg(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&i&&(l.x=lS(i));let c=i&&!r&&!o?zce(i,s):Ld(0),u=a.left+s.scrollLeft-l.x-c.x,d=a.top+s.scrollTop-l.y-c.y;return{x:u,y:d,width:a.width,height:a.height}}function $D(t){return Fi(t).position==="static"}function Dce(t,e){if(!Ln(t)||Fi(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return _d(t)===n&&(n=n.ownerDocument.body),n}function qce(t,e){let n=Qn(t);if(u6(t))return n;if(!Ln(t)){let i=Pl(t);for(;i&&!jl(i);){if(ln(i)&&!$D(i))return i;i=Pl(i)}return n}let r=Dce(t,e);for(;r&&nae(r)&&$D(r);)r=Dce(r,e);return r&&jl(r)&&$D(r)&&!BC(r)?n:r||rae(t)||n}var qBe=async function(t){let e=this.getOffsetParent||qce,n=this.getDimensions,r=await n(t.floating);return{reference:zBe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HBe(t){return Fi(t).direction==="rtl"}var ND={convertOffsetParentRelativeRectToViewportRelativeRect:$Be,getDocumentElement:_d,getClippingRect:FBe,getOffsetParent:qce,getElementRects:qBe,getClientRects:IBe,getDimensions:BBe,getScale:G2,isElement:ln,isRTL:HBe};function Hce(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function GBe(t,e,n){let r=null,i,o=_d(t);function a(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function s(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),a();let p=t.getBoundingClientRect(),{left:m,top:f,width:h,height:x}=p;if(u||e(),!h||!x)return;let g=pm(f),y=pm(o.clientWidth-(m+h)),b=pm(o.clientHeight-(f+x)),w=pm(m),k={rootMargin:-g+"px "+-y+"px "+-b+"px "+-w+"px",threshold:Au(0,C1(1,d))||1},_=!0;function L(S){let C=S[0].intersectionRatio;if(!Hce(p,t.getBoundingClientRect()))return s();if(C!==d){if(!_)return s();C?s(!1,C):i=setTimeout(()=>{s(!1,1e-7)},1e3)}_=!1}try{r=new IntersectionObserver(L,{...k,root:o.ownerDocument})}catch{r=new IntersectionObserver(L,k)}r.observe(t)}let l=Qn(t),c=()=>s(n);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}function Q6(t,e,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ID(t),u=i||o?[...c?vu(c):[],...e?vu(e):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",n),o&&g.addEventListener("resize",n)});let d=c&&s?GBe(c,n,o):null,p=-1,m=null;a&&(m=new ResizeObserver(g=>{let[y]=g;y&&y.target===c&&m&&e&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(e)})),n()}),c&&!l&&m.observe(c),e&&m.observe(e));let f,h=l?eg(t):null;l&&x();function x(){let g=eg(t);h&&!Hce(h,g)&&n(),h=g,f=requestAnimationFrame(x)}return n(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),d?.(),(g=m)==null||g.disconnect(),m=null,l&&cancelAnimationFrame(f)}}var Gce=Ice;var Uce=Nce,Vce=Ace,Zce=jce;var Wce=Pce,cS=(t,e,n)=>{let r=new Map,i=n??{},o={...ND,...i.platform,_c:r};return Rce(t,e,{...i,platform:o})};var oo=R(Q(),1),Xce=R(Q(),1),Yce=R(Ms(),1),VBe=typeof document<"u",ZBe=function(){},uS=VBe?Xce.useLayoutEffect:ZBe;function dS(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!dS(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){let o=i[r];if(!(o==="_owner"&&t.$$typeof)&&!dS(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function Qce(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Kce(t,e){let n=Qce(t);return Math.round(e*n)/n}function PD(t){let e=oo.useRef(t);return uS(()=>{e.current=t}),e}function Jce(t){t===void 0&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=t,[u,d]=oo.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,m]=oo.useState(r);dS(p,r)||m(r);let[f,h]=oo.useState(null),[x,g]=oo.useState(null),y=oo.useCallback(O=>{O!==k.current&&(k.current=O,h(O))},[]),b=oo.useCallback(O=>{O!==_.current&&(_.current=O,g(O))},[]),w=o||f,v=a||x,k=oo.useRef(null),_=oo.useRef(null),L=oo.useRef(u),S=l!=null,C=PD(l),T=PD(i),M=PD(c),A=oo.useCallback(()=>{if(!k.current||!_.current)return;let O={placement:e,strategy:n,middleware:p};T.current&&(O.platform=T.current),cS(k.current,_.current,O).then(B=>{let P={...B,isPositioned:M.current!==!1};$.current&&!dS(L.current,P)&&(L.current=P,Yce.flushSync(()=>{d(P)}))})},[p,e,n,T,M]);uS(()=>{c===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[c]);let $=oo.useRef(!1);uS(()=>($.current=!0,()=>{$.current=!1}),[]),uS(()=>{if(w&&(k.current=w),v&&(_.current=v),w&&v){if(C.current)return C.current(w,v,A);A()}},[w,v,A,C,S]);let N=oo.useMemo(()=>({reference:k,floating:_,setReference:y,setFloating:b}),[y,b]),F=oo.useMemo(()=>({reference:w,floating:v}),[w,v]),D=oo.useMemo(()=>{let O={position:n,left:0,top:0};if(!F.floating)return O;let B=Kce(F.floating,u.x),P=Kce(F.floating,u.y);return s?{...O,transform:"translate("+B+"px, "+P+"px)",...Qce(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:P}},[n,s,F.floating,u.x,u.y]);return oo.useMemo(()=>({...u,update:A,refs:N,elements:F,floatingStyles:D}),[u,A,N,F,D])}var jD=(t,e)=>{let n=Gce(t);return{name:n.name,fn:n.fn,options:[t,e]}},OD=(t,e)=>{let n=Uce(t);return{name:n.name,fn:n.fn,options:[t,e]}},DD=(t,e)=>({fn:Wce(t).fn,options:[t,e]}),FD=(t,e)=>{let n=Vce(t);return{name:n.name,fn:n.fn,options:[t,e]}},BD=(t,e)=>{let n=Zce(t);return{name:n.name,fn:n.fn,options:[t,e]}};var U2=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,n,r=!0){this.fallbackStore=e,this.componentName=n,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){return this.attachedStores.push(e),this.setActiveStore(e),()=>{let n=this.attachedStores.lastIndexOf(e);n!==-1&&this.attachedStores.splice(n,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(n=>{n()}))}openByTrigger(e){let n=this.attachedStore;if(n===null)return;let r;if(e){for(let i=this.attachedStores.length-1;i>=0&&!r;i-=1)r=this.attachedStores[i].context.triggerElements.getById(e);r??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!r&&this.throwOnMissingTrigger)throw new Error(Ft(99,this.componentName,e,this.componentName));n.setOpen(!0,Xe(he.imperativeAction,void 0,r))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,Xe(he.imperativeAction))}};var HD=R(Q(),1),bze=R(Ms(),1);var cue=R(Q(),1);var sue=R(Q(),1),qD=R(pS(),1),lue=R(aue(),1);var dze=y2(19),pze=dze?fze:hze;function fS(t,e,n,r,i){return pze(t,e,n,r,i)}function mze(t,e,n,r,i){let o=sue.useCallback(()=>e(t.getSnapshot(),n,r,i),[t,e,n,r,i]);return(0,qD.useSyncExternalStore)(t.subscribe,o,o)}jle({before(t){t.syncIndex=0,t.didInitialize||(t.syncTick=1,t.syncHooks=[],t.didChangeStore=!0,t.getSnapshot=()=>{let e=!1;for(let n=0;n<t.syncHooks.length;n+=1){let r=t.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(e=!0,r.value=i)}return e&&(t.syncTick+=1),t.syncTick})},after(t){t.syncHooks.length>0&&(t.didChangeStore&&(t.didChangeStore=!1,t.subscribe=e=>{let n=new Set;for(let i of t.syncHooks)n.add(i.store);let r=[];for(let i of n)r.push(i.subscribe(e));return()=>{for(let i of r)i()}}),(0,qD.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getSnapshot))}});function fze(t,e,n,r,i){let o=Ple();if(!o)return mze(t,e,n,r,i);let a=o.syncIndex;o.syncIndex+=1;let s;return o.didInitialize?(s=o.syncHooks[a],(s.store!==t||s.selector!==e||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==t&&(o.didChangeStore=!0),s.store=t,s.selector=e,s.a1=n,s.a2=r,s.a3=i,s.value=e(t.getSnapshot(),n,r,i))):(s={store:t,selector:e,a1:n,a2:r,a3:i,value:e(t.getSnapshot(),n,r,i)},o.syncHooks.push(s)),s.value}function hze(t,e,n,r,i){return(0,lue.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getSnapshot,o=>e(o,n,r,i))}var hS=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let n=this.updateTick;for(let r of this.listeners){if(n!==this.updateTick)return;r(e)}}update(e){for(let n in e)if(!Object.is(this.state[n],e[n])){this.setState({...this.state,...e});return}}set(e,n){Object.is(this.state[e],n)||this.setState({...this.state,[e]:n})}notifyAll(){let e={...this.state};this.setState(e)}use(e,n,r,i){return fS(this,e,n,r,i)}};var tg=R(Q(),1);var Hc=class extends hS{constructor(e,n={},r){super(e),this.context=n,this.selectors=r}useSyncedValue(e,n){tg.useDebugValue(e);let r=this;Ee(()=>{r.state[e]!==n&&r.set(e,n)},[r,e,n])}useSyncedValueWithCleanup(e,n){let r=this;Ee(()=>(r.state[e]!==n&&r.set(e,n),()=>{r.set(e,void 0)}),[r,e,n])}useSyncedValues(e){let n=this,r=Object.values(e);Ee(()=>{n.update(e)},[n,...r])}useControlledProp(e,n){tg.useDebugValue(e);let r=this,i=n!==void 0;Ee(()=>{i&&!Object.is(r.state[e],n)&&r.setState({...r.state,[e]:n})},[r,e,n,i])}select(e,n,r,i){let o=this.selectors[e];return o(this.state,n,r,i)}useState(e,n,r,i){return tg.useDebugValue(e),fS(this,this.selectors[e],n,r,i)}useContextCallback(e,n){tg.useDebugValue(e);let r=Pe(n??Yt);this.context[e]=r}useStateSetter(e){let n=tg.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(e,r)}),n.current}observe(e,n){let r;typeof e=="function"?r=e:r=this.selectors[e];let i=r(this.state);return n(i,i,this),this.subscribe(o=>{let a=r(o);if(!Object.is(i,a)){let s=i;i=a,n(a,s,this)}})}};var gze={open:t=>t.open,transitionStatus:t=>t.transitionStatus,domReferenceElement:t=>t.domReferenceElement,referenceElement:t=>t.positionReference??t.referenceElement,floatingElement:t=>t.floatingElement,floatingId:t=>t.floatingId},E1=class extends Hc{constructor(e){let{syncOnly:n,nested:r,onOpenChange:i,triggerElements:o,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:sS(),nested:r,triggerElements:o},gze),this.syncOnly=n}syncOpenEvent=(e,n)=>{(!e||!this.state.open||n!=null&&qle(n))&&(this.context.dataRef.current.openEvent=e?n:void 0)};dispatchOpenChange=(e,n)=>{this.syncOpenEvent(e,n.event);let r={open:e,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(e,n)=>{if(this.syncOnly){this.context.onOpenChange?.(e,n);return}this.dispatchOpenChange(e,n),this.context.onOpenChange?.(e,n)}};function J6(t){let{popupStore:e,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:o,onOpenChange:a}=t,s=e.useState("open"),l=e.useState("activeTriggerElement"),c=e.useState(n?"popupElement":"positionerElement"),u=e.context.triggerElements,d=a,p=cue.useRef(null);r===void 0&&p.current===null&&(p.current=new E1({open:s,transitionStatus:void 0,referenceElement:l,floatingElement:c,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:o}));let m=r??p.current;return e.useSyncedValue("floatingId",i),Ee(()=>{let f={open:s,floatingId:i,referenceElement:l,floatingElement:c};ln(l)&&(f.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(f.positionReference=l),m.update(f)},[s,i,l,c,m]),m.context.onOpenChange=d,m.context.nested=o,m}var Z2={tabIndex:-1,[O6]:""};function due(t){return e=>e==="touch"?t.current:!0}function pue(t,e=!1){let n=Ol(),r=as()!=null,i=Vn(()=>t(n,r)).current;return J6({popupStore:i,treatPopupAsFloatingElement:e,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function gS({handle:t,store:e}){return Ee(()=>t.attachStore(e),[t,e]),null}function uue(t){let e=t.context.triggerElements.size;t.select("open")&&t.state.triggerCount!==e&&t.set("triggerCount",e)}function GD(t,e){let n=HD.useRef(null);return Pe(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===e&&i.id===t)return;n.current=null;let o=i.store;o.context.triggerElements.getById(i.id)===i.element&&(o.context.triggerElements.delete(i.id),uue(o))}r!==null&&t!==void 0&&(n.current={store:e,id:t,element:r},e.context.triggerElements.add(t,r),uue(e))})}function bS(t,e,n,r=!1){let i=t.preventUnmountingOnClose;e?i=!1:r&&(i=!0);let o=n?.id??null,a=t.activeTriggerId,s=t.activeTriggerElement;return(o||e)&&(a=o,s=n??null),{open:e,preventUnmountingOnClose:i,activeTriggerId:a,activeTriggerElement:s}}function yS(t){let e=!1;return t.preventUnmountOnClose=()=>{e=!0},()=>e}function xS(t,e,n,r){let i=n.useState("isMountedByTrigger",t),o=GD(t,n),a=Pe(l=>{let c=n.select("open"),u=n.select("activeTriggerId");if(u===t){let d={activeTriggerElement:l,...c?r:null};n.update(d);return}if(u==null&&c){let d={activeTriggerId:t??null,activeTriggerElement:l,...r};n.update(d)}}),s=Pe(l=>{o(l),l&&a(l)});return Ee(()=>(s(e.current),()=>s(null)),[s,e,n,t]),Ee(()=>{if(i){let l={activeTriggerElement:e.current,...r};n.update(l)}},[i,n,e,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function wS(t,e={}){let{closeOnActiveTriggerUnmount:n=!1}=e,r=HD.useRef(null),i=t.useState("open"),o=t.useState("triggerCount"),a=t.useState("activeTriggerId"),s=t.useState("activeTriggerElement");Ee(()=>{if(!i){r.current=null,t.state.triggerCount!==0&&t.set("triggerCount",0);return}let l=t.context.triggerElements.size,c={};t.state.triggerCount!==l&&(c.triggerCount=l);let u=t.select("activeTriggerId"),d=null;if(u){let p=t.context.triggerElements.getById(u);if(p)r.current=u,p!==t.state.activeTriggerElement&&(c.activeTriggerElement=p);else{for(let[m,f]of t.context.triggerElements.entries())if(f===t.state.activeTriggerElement){c.activeTriggerId=m,c.activeTriggerElement=f,r.current=m;break}c.activeTriggerId===void 0&&(r.current===u?d=u:r.current=null)}}else r.current=null;if(!d&&!u&&l===1){let p=t.context.triggerElements.entries().next();if(!p.done){let[m,f]=p.value;c.activeTriggerId=m,c.activeTriggerElement=f,r.current=m}}(c.triggerCount!==void 0||c.activeTriggerId!==void 0||c.activeTriggerElement!==void 0)&&t.update(c),d&&n&&queueMicrotask(()=>{if(t.select("open")&&t.select("activeTriggerId")===d&&!t.context.triggerElements.getById(d)){let p=Xe(he.none);t.setOpen(!1,p),p.isCanceled||t.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,t,o,a,s,n])}function vS(t,e,n,r){let{mounted:i,setMounted:o,transitionStatus:a}=Oc(t,!1,!1,r),s=e.useState("preventUnmountingOnClose"),l=t?!1:s;e.useSyncedValues({mounted:i,transitionStatus:a,preventUnmountingOnClose:l});let c=Pe(()=>{o(!1),e.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),e.context.onOpenChangeComplete?.(!1)});return Ro({enabled:i&&!t&&!l,open:t,ref:e.context.popupRef,onComplete(){t||c()}}),{forceUnmount:c,transitionStatus:a}}function kS(t,e){t.useSyncedValues(e),Ee(()=>()=>{t.update({activeTriggerProps:xn,inactiveTriggerProps:xn,popupProps:xn})},[t])}function mue(t,e){Ee(()=>{!e&&t.state.openMethod!==null&&t.set("openMethod",null)},[e,t]),Ee(()=>()=>{t.state.openMethod!==null&&t.set("openMethod",null)},[t])}var Ed=class{constructor(){this.idMap=new Map}add(e,n){this.idMap.set(e,n)}delete(e){this.idMap.delete(e)}hasElement(e){for(let n of this.idMap.values())if(n===e)return!0;return!1}hasMatchingElement(e){for(let n of this.idMap.values())if(e(n))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function CS(t,e,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new E1({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:t,floatingId:e,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:e,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:xn,inactiveTriggerProps:xn,popupProps:xn}}var ex=t=>t.triggerIdProp??t.activeTriggerId,UD=t=>t.openProp??t.open,fue=t=>(t.popupElement?.id??t.floatingId)||void 0;function hue(t,e){return e!==void 0&&UD(t)&&ex(t)===e}function yze(t,e){return hue(t,e)?!0:e!==void 0&&UD(t)&&ex(t)==null&&t.triggerCount===1}var _S={open:UD,mounted:t=>t.mounted,transitionStatus:t=>t.transitionStatus,floatingRootContext:t=>t.floatingRootContext,triggerCount:t=>t.triggerCount,preventUnmountingOnClose:t=>t.preventUnmountingOnClose,payload:t=>t.payload,activeTriggerId:ex,activeTriggerElement:t=>t.mounted?t.activeTriggerElement:null,popupId:fue,isTriggerActive:(t,e)=>e!==void 0&&ex(t)===e,isOpenedByTrigger:(t,e)=>hue(t,e),isMountedByTrigger:(t,e)=>e!==void 0&&ex(t)===e&&t.mounted,triggerProps:(t,e)=>e?t.activeTriggerProps:t.inactiveTriggerProps,triggerPopupId:(t,e)=>yze(t,e)?fue(t):void 0,popupProps:t=>t.popupProps,popupElement:t=>t.popupElement,positionerElement:t=>t.positionerElement};var VD=R(Q(),1),gue=R(pS(),1);function SS(t){let e=VD.useCallback(r=>t===void 0?Yt:t.subscribeStore(r),[t]),n=VD.useCallback(()=>t===void 0?void 0:t.store,[t]);return(0,gue.useSyncExternalStore)(e,n,()=>t?.serverStore)}function ZD(t){let{open:e=!1,onOpenChange:n,elements:r={}}=t,i=Ol(),o=as()!=null,a=Vn(()=>new E1({open:e,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ed,floatingId:i,syncOnly:!1,nested:o})).current;return Ee(()=>{let s={open:e,floatingId:i};r.reference!==void 0&&(s.referenceElement=r.reference,s.domReferenceElement=ln(r.reference)?r.reference:null),r.floating!==void 0&&(s.floatingElement=r.floating),a.update(s)},[e,i,r.reference,r.floating,a]),a.context.onOpenChange=n,a.context.nested=o,a}function bue(t){return xze(t,t.rootContext)}function xze(t,e){let{nodeId:n,externalTree:r}=t,i=e.useState("referenceElement"),o=e.useState("floatingElement"),a=e.useState("domReferenceElement"),s=e.useState("open"),l=e.useState("floatingId"),[c,u]=Ta.useState(null),[d,p]=Ta.useState(void 0),[m,f]=Ta.useState(void 0),h=Ta.useRef(null),x=Ma(r),g=Ta.useMemo(()=>({reference:i,floating:o,domReference:a}),[i,o,a]),y=Jce({...t,elements:{...g,...c&&{reference:c}}}),b=ln(d)?d:null,w=m===void 0?e.state.floatingElement:m;e.useSyncedValue("referenceElement",d??null),e.useSyncedValue("domReferenceElement",d===void 0?a:b),e.useSyncedValue("floatingElement",w);let v=Ta.useCallback(T=>{let M=ln(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;u(M),y.refs.setReference(M)},[y.refs]),k=Ta.useCallback(T=>{(ln(T)||T===null)&&(h.current=T,p(T)),(ln(y.refs.reference.current)||y.refs.reference.current===null||T!==null&&!ln(T))&&y.refs.setReference(T)},[y.refs,p]),_=Ta.useCallback(T=>{f(T),y.refs.setFloating(T)},[y.refs]),L=Ta.useMemo(()=>({...y.refs,setReference:k,setFloating:_,setPositionReference:v,domReference:h}),[y.refs,k,_,v]),S=Ta.useMemo(()=>({...y.elements,domReference:a}),[y.elements,a]),C=Ta.useMemo(()=>({...y,dataRef:e.context.dataRef,open:s,onOpenChange:e.setOpen,events:e.context.events,floatingId:l,refs:L,elements:S,nodeId:n,rootStore:e}),[y,L,S,n,e,s,l]);return Ee(()=>{a&&(h.current=a)},[a]),Ee(()=>{e.context.dataRef.current.floatingContext=C;let T=x?.nodesRef.current.find(M=>M.id===n);T&&(T.context=C)}),Ta.useMemo(()=>({...y,context:C,refs:L,elements:S,rootStore:e}),[y,L,S,C,e])}var Td=R(Q(),1);var WD=Nn.os.mac&&Nn.engine.webkit;function KD(t,e={}){let{enabled:n=!0,delay:r}=e,i="rootStore"in t?t.rootStore:t,{events:o,dataRef:a}=i.context,s=Td.useRef(!1),l=Td.useRef(null),c=Td.useRef(!0),u=Br();Td.useEffect(()=>{let p=i.select("domReferenceElement");if(!n)return;let m=Qn(p);function f(){let g=i.select("domReferenceElement");!i.select("open")&&Ln(g)&&g===yo(Wt(g))&&(s.current=!0,l.current=g)}function h(){c.current=!0}function x(){c.current=!1}return _a(hn(m,"blur",f),WD&&hn(m,"keydown",h,!0),WD&&hn(m,"pointerdown",x,!0))},[i,n]),Td.useEffect(()=>{if(!n)return;function p(m){if(m.reason===he.triggerPress||m.reason===he.escapeKey){let f=i.select("domReferenceElement");ln(f)&&(l.current=f,s.current=!0)}}return o.on("openchange",p),()=>{o.off("openchange",p)}},[o,n,i]);let d=Td.useMemo(()=>{function p(){s.current=!1,l.current=null}return{onMouseLeave(){p()},onFocus(m){let f=m.currentTarget;if(s.current){if(l.current===f)return;p()}let h=lr(m.nativeEvent);if(ln(h)){if(WD&&!m.relatedTarget){if(!c.current&&!U0(h))return}else if(!Zle(h))return}let x=k1(m.relatedTarget,i.context.triggerElements),{nativeEvent:g,currentTarget:y}=m,b=typeof r=="function"?r():r;if(i.select("open")&&x||b===0||b===void 0){i.setOpen(!0,Xe(he.triggerFocus,g,y));return}u.start(b,()=>{s.current||i.setOpen(!0,Xe(he.triggerFocus,g,y))})},onBlur(m){p();let f=m.relatedTarget,h=m.nativeEvent,x=ln(f)&&f.hasAttribute(fm("focus-guard"))&&f.getAttribute("data-type")==="outside";u.start(0,()=>{let g=i.select("domReferenceElement"),y=yo(Wt(g));!f&&y===g||ot(a.current.floatingContext?.refs.floating.current,y)||ot(g,y)||x||k1(f??y,i.context.triggerElements)||i.setOpen(!1,Xe(he.triggerFocus,h))})}}},[a,r,i,u]);return Td.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var YD=R(Q(),1);var XD=class t{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ca,this.restTimeout=new Ca,this.handleCloseOptions=void 0}static create(){return new t}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},LS=new WeakMap;function W2(t){if(!t.performedPointerEventsMutation)return;let e=t.pointerEventsScopeElement;e&&LS.get(e)===t&&(t.pointerEventsScopeElement?.style.removeProperty("pointer-events"),t.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),t.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),LS.delete(e)),t.performedPointerEventsMutation=!1,t.pointerEventsScopeElement=null,t.pointerEventsReferenceElement=null,t.pointerEventsFloatingElement=null}function MS(t,e){let{scopeElement:n,referenceElement:r,floatingElement:i}=e,o=LS.get(n);o&&o!==t&&W2(o),W2(t),t.performedPointerEventsMutation=!0,t.pointerEventsScopeElement=n,t.pointerEventsReferenceElement=r,t.pointerEventsFloatingElement=i,LS.set(n,t),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"}function ES(t){let e=t.context.dataRef.current,n=Vn(()=>e.hoverInteractionState??XD.create()).current;return e.hoverInteractionState||(e.hoverInteractionState=n),k2(e.hoverInteractionState.disposeEffect),e.hoverInteractionState}function tx(t,e={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=e,o="rootStore"in t?t.rootStore:t,a=o.useState("open"),s=o.useState("floatingElement"),l=o.useState("domReferenceElement"),{dataRef:c}=o.context,u=Ma(),d=as(),p=ES(o),m=Br(),f=Pe(()=>Z_(c.current.openEvent?.type,p.interactedInside)),h=Pe(()=>Wle(c.current.openEvent?.type)),x=Pe(()=>{W2(p)});Ee(()=>{a||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,x())},[a,p,x]),YD.useEffect(()=>x,[x]),Ee(()=>{if(n&&a&&p.handleCloseOptions?.blockPointerEvents&&h()&&ln(l)&&s){let g=l,y=s,b=Wt(s),w=u?.nodesRef.current.find(L=>L.id===d)?.context?.elements.floating;w&&(w.style.pointerEvents="");let v=p.pointerEventsScopeElement!==y?p.pointerEventsScopeElement:null,k=w!==y?w:null,_=p.handleCloseOptions?.getScope?.()??v??k??g.closest("[data-rootownerid]")??b.body;return MS(p,{scopeElement:_,referenceElement:g,floatingElement:y}),()=>{x()}}},[n,a,l,s,p,h,u,d,x]),YD.useEffect(()=>{if(!n)return;function g(){return!!(u&&d&&qc(u.nodesRef.current,d).length>0)}function y(L){let S=q6(r,"close",p.pointerType),C=()=>{o.setOpen(!1,Xe(he.triggerHover,L)),u?.events.emit("floating.closed",L)};S?p.openChangeTimeout.start(S,C):(p.openChangeTimeout.clear(),C())}function b(L){let S=lr(L);if(!F6(S)){p.interactedInside=!1;return}p.interactedInside=S?.closest("[aria-haspopup]")!=null}function w(){p.openChangeTimeout.clear(),m.clear(),u?.events.off("floating.closed",k),x()}function v(L){if(g()&&u){u.events.on("floating.closed",k);return}if(k1(L.relatedTarget,o.context.triggerElements))return;let S=c.current.floatingContext?.nodeId??i,C=L.relatedTarget;if(!(u&&S&&ln(C)&&qc(u.nodesRef.current,S,!1).some(M=>ot(M.context?.elements.floating,C)))){if(p.handler){p.handler(L);return}x(),h()&&!f()&&y(L)}}function k(L){!u||!d||g()||m.start(0,()=>{u.events.off("floating.closed",k),o.setOpen(!1,Xe(he.triggerHover,L)),u.events.emit("floating.closed",L)})}let _=s;return _a(_&&hn(_,"mouseenter",w),_&&hn(_,"mouseleave",v),_&&hn(_,"pointerdown",b,!0),()=>{u?.events.off("floating.closed",k)})},[n,s,o,c,r,i,h,f,x,p,u,d,m])}var T1=R(Q(),1),yue=R(Ms(),1);var wze={current:null};function ng(t,e={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:o=!1,restMs:a=0,move:s=!0,triggerElementRef:l=wze,externalTree:c,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:p,shouldOpen:m,guardStaleOpen:f=!1}=e,h="rootStore"in t?t.rootStore:t,{dataRef:x,events:g}=h.context,y=Ma(c),b=ES(h),w=T1.useRef(!1),v=Yr(i),k=Yr(r),_=Yr(a),L=Yr(n),S=Yr(m),C=Yr(p),T=Pe(()=>Z_(x.current.openEvent?.type,b.interactedInside)),M=Pe(()=>S.current?.()!==!1),A=Pe((F,D,O)=>{let B=h.context.triggerElements;if(B.hasElement(D))return!F||!ot(F,D);if(!ln(O))return!1;let P=O;return B.hasMatchingElement(U=>ot(U,P))&&(!F||!ot(F,P))}),$=Pe(()=>{if(!b.handler)return;Wt(h.select("domReferenceElement")).removeEventListener("mousemove",b.handler),b.handler=void 0}),N=Pe(()=>{W2(b)});return u&&(b.handleCloseOptions=i?.__options),T1.useEffect(()=>$,[$]),T1.useEffect(()=>{if(!n)return;function F(D){D.open?w.current=!1:(w.current=D.reason===he.triggerHover,$(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return g.on("openchange",F),()=>{g.off("openchange",F)}},[n,g,b,$]),T1.useEffect(()=>{if(!n)return;function F(G,j=!0){let V=q6(k.current,"close",b.pointerType);V?b.openChangeTimeout.start(V,()=>{h.setOpen(!1,Xe(he.triggerHover,G)),y?.events.emit("floating.closed",G)}):j&&(b.openChangeTimeout.clear(),h.setOpen(!1,Xe(he.triggerHover,G)),y?.events.emit("floating.closed",G))}let D=l.current??(u?h.select("domReferenceElement"):null);if(!ln(D))return;function O(G){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,o&&!cm(b.pointerType))return;let j=bD(_.current),V=q6(k.current,"open",b.pointerType),H=lr(G),ne=G.currentTarget??null,J=h.select("domReferenceElement"),W=ne;if(ln(H)&&!h.context.triggerElements.hasElement(H)){for(let me of h.context.triggerElements.elements())if(ot(me,H)){W=me;break}}ln(ne)&&ln(J)&&!h.context.triggerElements.hasElement(ne)&&ot(ne,J)&&(W=J);let ie=W==null?!1:A(J,W,H),Z=h.select("open"),le=C.current?.()??h.select("transitionStatus")==="ending",se=!Z&&le&&w.current,ge=!ie&&ln(W)&&ln(J)&&ot(J,W)&&se,ce=j>0&&!V,be=ie&&(Z||se)||ge,ke=!Z||ie;if(be){M()&&h.setOpen(!0,Xe(he.triggerHover,G,W));return}ce||(V?b.openChangeTimeout.start(V,()=>{ke&&M()&&h.setOpen(!0,Xe(he.triggerHover,G,W))}):ke&&M()&&h.setOpen(!0,Xe(he.triggerHover,G,W)))}function B(G){if(T()){N();return}$();let j=h.select("domReferenceElement"),V=Wt(j);b.restTimeout.clear(),b.restTimeoutPending=!1;let H=x.current.floatingContext??d?.();if(k1(G.relatedTarget,h.context.triggerElements))return;if(v.current&&H){h.select("open")||b.openChangeTimeout.clear();let J=l.current;b.handler=v.current({...H,tree:y,x:G.clientX,y:G.clientY,onClose(){N(),$(),L.current&&!T()&&J===h.select("domReferenceElement")&&F(G,!0)}}),V.addEventListener("mousemove",b.handler),b.handler(G);return}(b.pointerType!=="touch"||!ot(h.select("floatingElement"),G.relatedTarget))&&F(G)}function P(G){ot(D,G.relatedTarget)||(b.openChangeTimeout.clear(),b.restTimeout.clear(),b.restTimeoutPending=!1)}let U=f?hn(D,"mouseout",P):void 0;return s?_a(hn(D,"mousemove",O,{once:!0}),hn(D,"mouseenter",O),hn(D,"mouseleave",B),U):_a(hn(D,"mouseenter",O),hn(D,"mouseleave",B),U)},[$,N,x,k,h,n,v,b,u,A,T,o,s,_,l,y,L,d,C,M,f]),T1.useMemo(()=>{if(!n)return;function F(D){b.pointerType=D.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(D){let{nativeEvent:O}=D,B=D.currentTarget,P=h.select("domReferenceElement"),U=h.select("open"),G=A(P,B,D.target);if(o&&!cm(b.pointerType))return;if(U&&G&&b.handleCloseOptions?.blockPointerEvents){let H=h.select("floatingElement");if(H){let ne=b.handleCloseOptions?.getScope?.()??B.ownerDocument.body;MS(b,{scopeElement:ne,referenceElement:B,floatingElement:H})}}let j=bD(_.current);if(U&&!G||j===0||!G&&b.restTimeoutPending&&D.movementX**2+D.movementY**2<2)return;b.restTimeout.clear();function V(){if(b.restTimeoutPending=!1,T())return;let H=h.select("open");!b.blockMouseMove&&(!H||G)&&M()&&h.setOpen(!0,Xe(he.triggerHover,O,B))}b.pointerType==="touch"?yue.flushSync(()=>{V()}):G&&U?V():(b.restTimeoutPending=!0,b.restTimeout.start(j,V))}}},[n,b,T,A,o,h,_,M])}var Wo=R(Q(),1);var vze="Escape";function xue(t){return Nn.engine.webkit&&t.movementX===0&&t.movementY===0}function RS(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function TS(t,e){return RS(e,t===D6||t===F2,t===um||t===dm)}function QD(t,e,n){return RS(e,t===F2,n?t===um:t===dm)||t==="Enter"||t===" "||t===""}function kze(t,e,n){return RS(e,n?t===um:t===dm,t===F2)}function Cze(t,e,n,r){let i=n?t===dm:t===um,o=t===D6;return e==="both"||e==="horizontal"&&r?t===vze:RS(e,i,o)}function nx(t,e){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:o=!0,selectedIndex:a=null,allowEscape:s=!1,loopFocus:l=!1,nested:c=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:p="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:f=!0,disabledIndices:h=void 0,orientation:x="vertical",parentOrientation:g,id:y,resetOnPointerLeave:b=!0,externalTree:w,grid:v}=e,k=v!=null,_="rootStore"in t?t.rootStore:t,L=_.useState("open"),S=_.useState("floatingElement"),C=_.useState("domReferenceElement"),T=_.context.dataRef,M=z6(S),A=B6(C),$=Yr(M),N=as(),F=Ma(w),D=Wo.useRef(p),O=Wo.useRef(a??-1),B=Wo.useRef(null),P=Wo.useRef(!0),U=Pe(xe=>{i(O.current===-1?null:O.current,xe)}),G=Wo.useRef(!!S),j=Wo.useRef(L),V=Wo.useRef(!1),H=Wo.useRef(!1),ne=Wo.useRef(null),J=Yr(h),W=Yr(L),ie=Yr(a),Z=Yr(b),le=Dl(),se=Dl(),ge=Pe(()=>{function xe(ye){d?F?.events.emit("virtualfocus",ye):ne.current=H2(ye,{sync:V.current,preventScroll:!0})}let Ce=n.current[O.current],K=H.current;Ce&&xe(Ce),(V.current?ye=>ye():ye=>le.request(ye))(()=>{let ye=n.current[O.current]||Ce;if(!ye)return;Ce||xe(ye),de&&(K||!P.current)&&ye.scrollIntoView?.({block:"nearest",inline:"nearest"})})});Ee(()=>{T.current.orientation=x},[T,x]),Ee(()=>{o&&(L&&S?(O.current=a??-1,D.current&&a!=null&&(H.current=!0,U())):G.current&&(O.current=-1,U()))},[o,L,S,a,U]),Ee(()=>{if(o){if(!L){V.current=!1;return}if(S)if(r==null){if(V.current=!1,ie.current!=null)return;if(G.current&&(O.current=-1,ge()),(!j.current||!G.current)&&D.current&&(B.current!=null||D.current===!0&&B.current==null)){let xe=0,Ce=()=>{n.current[0]==null?(xe<2&&(xe?Y=>se.request(Y):queueMicrotask)(Ce),xe+=1):(O.current=B.current==null||QD(B.current,x,u)||c?eS(n):yD(n),B.current=null,U())};Ce()}}else Z0(n.current,r)||(O.current=r,ge(),H.current=!1)}},[o,L,S,r,ie,c,n,x,u,U,ge,se]),Ee(()=>{if(!o||S||!F||d||!G.current)return;let xe=F.nodesRef.current,Ce=xe.find(ye=>ye.id===N)?.context?.elements.floating,K=yo(Wt(C??Ce??null)),Y=xe.some(ye=>ye.context&&ot(ye.context.elements.floating,K));Ce&&!Y&&P.current&&Ce.focus({preventScroll:!0})},[o,S,C,F,N,d]),Ee(()=>{j.current=L,G.current=!!S}),Ee(()=>{L||(B.current=null,D.current=p)},[L,p]);let ce=r!=null,be=Pe(xe=>{if(!W.current)return;let Ce=n.current.indexOf(xe.currentTarget);Ce!==-1&&(O.current!==Ce||r!==Ce)&&(O.current=Ce,U(xe))}),ke=Pe(()=>g??F?.nodesRef.current.find(xe=>xe.id===N)?.context?.dataRef?.current.orientation),me=Pe(()=>eS(n,J.current)),Se=Pe(xe=>{if(P.current=!1,V.current=!0,xe.which===229||!W.current&&xe.currentTarget===$.current)return;if(c&&Cze(xe.key,x,u,k)){TS(xe.key,ke())||zr(xe),_.setOpen(!1,Xe(he.listNavigation,xe.nativeEvent)),Ln(C)&&(d?F?.events.emit("virtualfocus",C):C.focus());return}let Ce=O.current,K=eS(n,h),Y=yD(n,h);if(A||(xe.key==="Home"&&(zr(xe),O.current=K,U(xe)),xe.key==="End"&&(zr(xe),O.current=Y,U(xe))),v!=null){let ye=v(xe,O.current,n,x,l,u,h,K,Y);if(ye!=null&&(O.current=ye,U(xe)),x==="both")return}if(TS(xe.key,x)){if(zr(xe),L&&!d&&yo(xe.currentTarget.ownerDocument)===xe.currentTarget){O.current=QD(xe.key,x,u)?K:Y,U(xe);return}QD(xe.key,x,u)?l?Ce>=Y?s&&Ce!==n.current.length?O.current=-1:(V.current=!1,O.current=K):O.current=La(n.current,{startingIndex:Ce,disabledIndices:h}):O.current=Math.min(Y,La(n.current,{startingIndex:Ce,disabledIndices:h})):l?Ce<=K?s&&Ce!==-1?O.current=n.current.length:(V.current=!1,O.current=Y):O.current=La(n.current,{startingIndex:Ce,decrement:!0,disabledIndices:h}):O.current=Math.max(K,La(n.current,{startingIndex:Ce,decrement:!0,disabledIndices:h})),Z0(n.current,O.current)&&(O.current=-1),U(xe)}}),de=Wo.useMemo(()=>({onFocus(Ce){V.current=!0,be(Ce)},onClick:({currentTarget:Ce})=>Ce.focus({preventScroll:!0}),onMouseMove(Ce){xue(Ce)||(V.current=!0,H.current=!1,m&&be(Ce))},onPointerLeave(Ce){if(!W.current||!P.current||Ce.pointerType==="touch")return;V.current=!0;let K=Ce.relatedTarget;if(!(!m||n.current.includes(K))&&Z.current&&(ne.current?.(),ne.current=null,O.current=-1,U(Ce),!d)){let Y=$.current,ye=yo(Wt(Y));Y&&ot(Y,ye)&&Y.focus({preventScroll:!0})}}}),[be,W,$,m,n,U,Z,d]),Le=Wo.useMemo(()=>d&&L&&ce&&{"aria-activedescendant":`${y}-${r}`},[d,L,ce,y,r]),Ne=Wo.useMemo(()=>({...A?{}:Le,onKeyDown(xe){if(xe.key==="Tab"&&xe.shiftKey&&L&&!d){let Ce=lr(xe.nativeEvent);if(Ce&&!ot($.current,Ce))return;zr(xe),_.setOpen(!1,Xe(he.focusOut,xe.nativeEvent)),Ln(C)&&C.focus();return}Se(xe)},onPointerMove(xe){xue(xe)||(P.current=!0)}}),[Le,Se,$,A,_,L,d,C]),Be=Wo.useMemo(()=>{function xe(Y){_.setOpen(!0,Xe(he.listNavigation,Y.nativeEvent,Y.currentTarget))}function Ce(Y){p==="auto"&&O2(Y.nativeEvent)&&(D.current=!d)}function K(Y){D.current=p,p==="auto"&&D2(Y.nativeEvent)&&(D.current=!0)}return{onKeyDown(Y){let ye=_.select("open");P.current=!1;let Re=Y.key.startsWith("Arrow"),Ke=kze(Y.key,ke(),u),mt=TS(Y.key,x),dt=(c?Ke:mt)||Y.key==="Enter"||Y.key.trim()==="";if(d&&ye)return Se(Y);if(!(!ye&&!f&&Re)){if(dt){let Ae=TS(Y.key,ke());B.current=c&&Ae?null:Y.key}if(c){Ke&&(zr(Y),ye?(O.current=me(),U(Y)):xe(Y));return}mt&&(ie.current!=null&&(O.current=ie.current),zr(Y),!ye&&f?xe(Y):Se(Y),ye&&U(Y))}},onFocus(Y){_.select("open")&&!d&&(O.current=-1,U(Y))},onPointerDown:K,onPointerEnter:K,onMouseDown:Ce,onClick:Ce}},[Se,p,me,c,U,_,f,x,ke,u,ie,d]),_e=Wo.useMemo(()=>({...Le,...Be}),[Le,Be]);return Wo.useMemo(()=>o?{reference:_e,floating:Ne,item:de,trigger:Be}:{},[o,_e,Ne,Be,de])}var rg=R(Q(),1);function rx(t,e){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:o,disabledIndices:a,onTyping:s,enabled:l=!0,resetMs:c=750,selectedIndex:u=null}=e,d="rootStore"in t?t.rootStore:t,p=d.useState("open"),m=Br(),f=rg.useRef(""),h=rg.useRef(u??i??-1),x=rg.useRef(null),g=Pe(w=>{function v($){return r?.current[$]}function k($){let N=v($);return N&&!W0(N)||N?.matches(":disabled")?!1:a==null||!V6(Us,$,a)}function _($,N,F=0){if($.length===0)return-1;let D=(F%$.length+$.length)%$.length,O=N.toLowerCase();for(let B=0;B<$.length;B+=1){let P=(D+B)%$.length;if(!(!$[P]?.toLowerCase().startsWith(O)||!k(P)))return P}return-1}let L=n.current;if(f.current.length>0&&w.key===" "&&(zr(w),s?.(!0)),f.current.length>0&&f.current[0]!==" "&&_(L,f.current)===-1&&w.key!==" "&&s?.(!1),L==null||w.key.length!==1||w.ctrlKey||w.metaKey||w.altKey)return;p&&w.key!==" "&&(zr(w),s?.(!0));let S=f.current==="";S&&(h.current=u??i??-1),L.every(($,N)=>$&&k(N)?$[0]?.toLowerCase()!==$[1]?.toLowerCase():!0)&&f.current===w.key&&(f.current="",h.current=x.current),f.current+=w.key,m.start(c,()=>{f.current="",h.current=x.current,s?.(!1)});let M=((S?u??i??-1:h.current)??0)+1,A=_(L,f.current,M);A!==-1?(o?.(A),x.current=A):w.key!==" "&&(f.current="",s?.(!1))}),y=Pe(w=>{let v=w.relatedTarget,k=d.select("domReferenceElement"),_=d.select("floatingElement");ot(k,v)||ot(_,v)||(m.clear(),f.current="",h.current=x.current,s?.(!1))});Ee(()=>{!p&&u!==null||(m.clear(),x.current=null,f.current!==""&&(f.current=""))},[p,u,m]);let b=rg.useMemo(()=>({onKeyDown:g,onBlur:y}),[g,y]);return rg.useMemo(()=>l?{reference:b,floating:b}:{},[l,b])}var wue=.1,_ze=wue*wue,Sr=.5;function AS(t,e,n,r,i,o){return r>=e!=o>=e&&t<=(i-n)*(e-r)/(o-r)+n}function $S(t,e,n,r,i,o,a,s,l,c){let u=!1;return AS(t,e,n,r,i,o)&&(u=!u),AS(t,e,i,o,a,s)&&(u=!u),AS(t,e,a,s,l,c)&&(u=!u),AS(t,e,l,c,n,r)&&(u=!u),u}function Sze(t,e,n){return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height}function IS(t,e,n,r,i,o){let a=Math.min(n,i),s=Math.max(n,i),l=Math.min(r,o),c=Math.max(r,o);return t>=a&&t<=s&&e>=l&&e<=c}function ig(t={}){let{blockPointerEvents:e=!1}=t,n=new Ca,r=({x:i,y:o,placement:a,elements:s,onClose:l,nodeId:c,tree:u})=>{let d=a?.split("-")[0],p=!1,m=null,f=null,h=typeof performance<"u"?performance.now():0;function x(y,b){let w=performance.now(),v=w-h;if(m===null||f===null||v===0)return m=y,f=b,h=w,!1;let k=y-m,_=b-f,L=k*k+_*_,S=v*v*_ze;return m=y,f=b,h=w,L<S}function g(){n.clear(),l()}return function(b){n.clear();let w=s.domReference,v=s.floating;if(!w||!v||d==null||i==null||o==null)return;let{clientX:k,clientY:_}=b,L=lr(b),S=b.type==="mouseleave",C=ot(v,L),T=ot(w,L);if(C&&(p=!0,!S))return;if(T&&(p=!1,!S)){p=!0;return}if(S&&ln(b.relatedTarget)&&ot(v,b.relatedTarget))return;function M(){return!!(u&&qc(u.nodesRef.current,c).length>0)}function A(){M()||g()}if(M())return;let $=w.getBoundingClientRect(),N=v.getBoundingClientRect(),F=i>N.right-N.width/2,D=o>N.bottom-N.height/2,O=N.width>$.width,B=N.height>$.height,P=(O?$:N).left,U=(O?$:N).right,G=(B?$:N).top,j=(B?$:N).bottom;if(d==="top"&&o>=$.bottom-1||d==="bottom"&&o<=$.top+1||d==="left"&&i>=$.right-1||d==="right"&&i<=$.left+1){A();return}let V=!1;switch(d){case"top":V=IS(k,_,P,$.top+1,U,N.bottom-1);break;case"bottom":V=IS(k,_,P,N.top+1,U,$.bottom-1);break;case"left":V=IS(k,_,N.right-1,j,$.left+1,G);break;case"right":V=IS(k,_,$.right-1,j,N.left+1,G);break;default:}if(V)return;if(p&&!Sze(k,_,$)){A();return}if(!S&&x(k,_)){A();return}let H=!1;switch(d){case"top":{let ne=O?Sr/2:Sr*4,J=O||F?i+ne:i-ne,W=O?i-ne:F?i+ne:i-ne,ie=o+Sr+1,Z=F||O?N.bottom-Sr:N.top,le=F?O?N.bottom-Sr:N.top:N.bottom-Sr;H=$S(k,_,J,ie,W,ie,N.left,Z,N.right,le);break}case"bottom":{let ne=O?Sr/2:Sr*4,J=O||F?i+ne:i-ne,W=O?i-ne:F?i+ne:i-ne,ie=o-Sr,Z=F||O?N.top+Sr:N.bottom,le=F?O?N.top+Sr:N.bottom:N.top+Sr;H=$S(k,_,J,ie,W,ie,N.left,Z,N.right,le);break}case"left":{let ne=B?Sr/2:Sr*4,J=B||D?o+ne:o-ne,W=B?o-ne:D?o+ne:o-ne,ie=i+Sr+1,Z=D||B?N.right-Sr:N.left,le=D?B?N.right-Sr:N.left:N.right-Sr;H=$S(k,_,Z,N.top,le,N.bottom,ie,J,ie,W);break}case"right":{let ne=B?Sr/2:Sr*4,J=B||D?o+ne:o-ne,W=B?o-ne:D?o+ne:o-ne,ie=i-Sr,Z=D||B?N.left+Sr:N.right,le=D?B?N.left+Sr:N.right:N.left+Sr;H=$S(k,_,ie,J,ie,W,Z,N.top,le,N.bottom);break}default:}H?p||n.start(40,A):A()}};return r.__options={...t,blockPointerEvents:e},r}var NS=R(Q(),1),JD=NS.createContext(void 0);function ki(t){let e=NS.useContext(JD);if(e===void 0&&!t)throw new Error(Ft(47));return e}var PS=R(Q(),1),vue=R(Ms(),1);var K2=class extends Hc{setState(e){}update(e){}set(e,n){}notifyAll(){}};var kue={..._S,disabled:t=>t.disabled,instantType:t=>t.instantType,openMethod:t=>t.openMethod,openChangeReason:t=>t.openChangeReason,modal:t=>t.modal,focusManagerModal:t=>t.focusManagerModal,stickIfOpen:t=>t.stickIfOpen,titleElementId:t=>t.titleElementId,descriptionElementId:t=>t.descriptionElementId,openOnHover:t=>t.openOnHover,closeDelay:t=>t.closeDelay,adaptiveOrigin:t=>t.adaptiveOrigin},jS=class extends Hc{constructor(e,n,r){let i=new Ed;super(_ue(e,i,n,r),Sue(i),kue)}setOpen=(e,n)=>{let r=n.reason===he.triggerHover,i=n.reason===he.triggerPress&&n.event.detail===0,o=!e&&(n.reason===he.escapeKey||n.reason==null),a=yS(n),s=this.select("activeTriggerId");if(!e&&n.reason===he.closePress&&n.trigger==null&&s!=null&&(n.trigger=this.context.triggerElements.getById(s)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,n),n.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,n);let l=()=>{let u=bS(this.state,e,n.trigger,a());u.openChangeReason=n.reason,this.update(u)};r?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set("stickIfOpen",!1)}),vue.flushSync(l)):l();let c;i?c="click":o?c="dismiss":n.reason===he.focusOut&&(c="focus"),this.set("instantType",c)}};function Cue(){let t=new Ed,e=new K2(Object.freeze(_ue(void 0,t)),Object.freeze(Sue(t)),kue);return Object.assign(e,{setOpen:Yt})}function _ue(t,e,n,r=!1){let i={...CS(e,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...t};return i.open&&t?.mounted===void 0&&(i.mounted=!0),i}function Sue(t){return{popupRef:PS.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:PS.createRef(),beforeContentFocusGuardRef:PS.createRef(),stickIfOpenTimeout:new Ca,triggerElements:t}}var R1=R(ee(),1),Lue=P6(function({props:e}){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:o,onOpenChangeComplete:a,modal:s=!1,handle:l,triggerId:c,defaultTriggerId:u=null}=e,d=Mze(l,{modal:s,open:i,openProp:r,activeTriggerId:u,triggerIdProp:c});d.useControlledProp("openProp",r),d.useControlledProp("triggerIdProp",c);let p=d.useState("open"),m=d.useState("mounted"),f=d.useState("payload");d.useContextCallback("onOpenChange",o),d.useContextCallback("onOpenChangeComplete",a),mue(d,p),wS(d);let{forceUnmount:h}=vS(p,d,()=>{d.update({stickIfOpen:!0,openChangeReason:null})});d.useSyncedValues({modal:s}),ix.useEffect(()=>{p||d.context.stickIfOpenTimeout.clear()},[d,p]),ix.useImperativeHandle(e.actionsRef,()=>({unmount:h,close:()=>d.setOpen(!1,Xe(he.imperativeAction))}),[h,d]);let x=p||m;return(0,R1.jsxs)(JD.Provider,{value:d,children:[l&&(0,R1.jsx)(gS,{handle:l,store:d}),x&&(0,R1.jsx)(Eze,{store:d,modal:s}),typeof n=="function"?n({payload:f}):n]})});function Mue(t){return ki(!0)?(0,R1.jsx)(Lue,{props:t}):(0,R1.jsx)(K6,{children:(0,R1.jsx)(Lue,{props:t})})}function Mze(t,e){let n=pue((r,i)=>new jS(e,r,i));return ix.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Eze({store:t,modal:e}){let n=t.useState("floatingRootContext"),r=J0(n,{outsidePressEvent:{mouse:e==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),i=r.reference,o=r.floating;return kS(t,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:o}),null}var sx=R(Q(),1);var Eue=R(Q(),1),eF=R(Ms(),1);function OS(t,e){let n=Eue.useRef(null);function r(o){eF.flushSync(()=>{t.setOpen(!1,Xe(he.focusOut,o.nativeEvent,o.currentTarget))}),dce(n.current)?.focus()}function i(o){let a=t.select("positionerElement");if(a&&mm(o,a))t.context.beforeContentFocusGuardRef.current?.focus();else{eF.flushSync(()=>{t.setOpen(!1,Xe(he.focusOut,o.nativeEvent,o.currentTarget))});let s=uce(t.context.triggerFocusTargetRef.current||e.current);for(;s!==null&&ot(a,s);){let l=s;if(s=q2(s),s===l)break}s?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}var ax=R(Q(),1);var ox=R(Q(),1);function Tue(t){let e=ox.useRef(""),n=ox.useCallback(i=>{i.defaultPrevented||(e.current=i.pointerType,t(i,i.pointerType))},[t]);return{onClick:ox.useCallback(i=>{if(i.detail===0){t(i,"keyboard");return}"pointerType"in i?t(i,i.pointerType):t(i,e.current),e.current=""},[t]),onPointerDown:n}}function tF(t,e){let n=Pe((o,a)=>{(typeof t=="function"?t():t)||e(a||(Nn.os.ios?"touch":""))}),{onClick:r,onPointerDown:i}=Tue(n);return ax.useMemo(()=>({onClick:r,onPointerDown:i}),[r,i])}function DS(t){let[e,n]=ax.useState(null),r=tF(t,n);return ku(t,i=>{i&&!t&&n(null)}),ax.useMemo(()=>({openMethod:e,triggerProps:r}),[e,r])}var X2=R(ee(),1),Rue=G_(function(e,n){let{render:r,className:i,style:o,disabled:a=!1,nativeButton:s=!0,handle:l,payload:c,openOnHover:u=!1,delay:d=300,closeDelay:p=0,id:m,...f}=e,h=ki(!0),g=SS(l)??h;if(!g)throw new Error(Ft(74));let y=dr(m),b=g.useState("isTriggerActive",y),w=g.useState("floatingRootContext"),v=g.useState("isOpenedByTrigger",y),k=g.useState("triggerPopupId",y),_=sx.useRef(null),{registerTrigger:L,isMountedByThisTrigger:S}=xS(y,_,g,{payload:c,disabled:a,openOnHover:u,closeDelay:p}),C=g.useState("openChangeReason"),T=g.useState("stickIfOpen"),M=g.useState("openMethod"),A=g.useState("focusManagerModal"),$=ng(w,{enabled:!a&&u&&(M!=="touch"||C!==he.triggerPress),mouseOnly:!0,move:!1,handleClose:ig(),restMs:d,delay:{close:p},triggerElementRef:_,isActiveTrigger:b,isClosing:()=>g.select("transitionStatus")==="ending"}),N=$u(w,{stickIfOpen:T}),F=tF(()=>g.select("open"),J=>{g.set("openMethod",J)}),D=g.useState("triggerProps",S),{getButtonProps:O,buttonRef:B}=zi({disabled:a,native:s}),P={open(J){return J&&C===he.triggerPress?G0.open(J):B2.open(J)}},{preFocusGuardRef:U,handlePreFocusGuardFocus:G,handleFocusTargetFocus:j}=OS(g,_),H=We("button",e,{state:{disabled:a,open:v},ref:[B,n,L,_],props:[N.reference,$,D,F,{[iS]:"",id:y,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":k},f,O],stateAttributesMapping:P}),ne=(0,X2.jsx)(sx.Fragment,{children:H},y);return S&&!A?(0,X2.jsxs)(sx.Fragment,{children:[(0,X2.jsx)(Bc,{ref:U,onFocus:G}),ne,(0,X2.jsx)(Bc,{ref:g.context.triggerFocusTargetRef,onFocus:j})]}):ne});var $ue=R(Q(),1);var FS=R(Q(),1),nF=FS.createContext(void 0);function Aue(){let t=FS.useContext(nF);if(t===void 0)throw new Error(Ft(45));return t}var rF=R(ee(),1),Iue=$ue.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e;return ki().useState("mounted")||r?(0,rF.jsx)(nF.Provider,{value:r,children:(0,rF.jsx)(X0,{ref:n,...i})}):null});var US=R(Q(),1);function A1(t){return y2(19)?t:t?"true":void 0}var BS=R(Q(),1),iF=BS.createContext(void 0);function Y2(){let t=BS.useContext(iF);if(!t)throw new Error(Ft(46));return t}var ql=R(Q(),1);var zS=R(Q(),1),oF=zS.createContext(void 0);function Gc(){return zS.useContext(oF)?.direction??"ltr"}var Tze=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0,offsetParent:d="real"}=Md(t,e)||{};if(c==null)return{};let p=Q_(u),m={x:n,y:r},f=U6(i),h=G6(f),x=await a.getDimensions(c),g=f==="y",y=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",v=o.reference[h]+o.reference[f]-m[f]-o.floating[h],k=m[f]-o.reference[f],_=d==="real"?await a.getOffsetParent?.(c):s.floating,L=s.floating[w]||o.floating[h];(!L||!await a.isElement?.(_))&&(L=s.floating[w]||o.floating[h]);let S=v/2-k/2,C=L/2-x[h]/2-1,T=Math.min(p[y],C),M=Math.min(p[b],C),A=T,$=L-x[h]-M,N=L/2-x[h]/2+S,F=X_(A,N,$),D=!l.arrow&&zc(i)!=null&&N!==F&&o.reference[h]/2-(N<A?T:M)-x[h]/2<0,O=D?N<A?N-A:N-$:0;return{[f]:m[f]+O,data:{[f]:F,centerOffset:N-F-O,...D&&{alignmentOffset:O}},reset:D}}}),Nue=(t,e)=>{let{name:n,fn:r}=Tze(t);return{name:n,fn:r,options:[t,e]}};var Pue={name:"hide",async fn(t){let{width:e,height:n,x:r,y:i}=t.rects.reference,o=e===0&&n===0&&r===0&&i===0,a=await t.platform.detectOverflow(t,{elementContext:"reference"});return{data:{referenceHidden:a.top-n>=0||a.right-e>=0||a.bottom-n>=0||a.left-e>=0||o}}}};var Q2={sideX:"left",sideY:"top"};var qS="--available-width",HS="--available-height",jue="--anchor-width",Oue="--anchor-height",Due="--transform-origin",Fue="--positioner-width",Bue="--positioner-height";var que=qS,Hue=HS;function Vue(t,e,n){let r=t==="inline-start"||t==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[e]}function Gue(t,e,n){let{rects:r,placement:i}=t;return{side:Vue(e,Sa(i),n),align:zc(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function J2(t){return Rze(t,bue)}function Rze(t,e){let{anchor:n,positionMethod:r="absolute",side:i="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,collisionBoundary:l,collisionPadding:c=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:p=!1,inline:m,keepMounted:f=!1,floatingRootContext:h,mounted:x,collisionAvoidance:g,shift:y,nodeId:b,adaptiveOrigin:w,lazyFlip:v=!1,externalTree:k}=t,[_,L]=ql.useState(null);!x&&_!==null&&L(null);let S=g.side||"flip",C=g.align||"flip",T=g.fallbackAxisSide||"end",M=y?.crossAxis??!1,A=y?.rootBoundary,$=typeof n=="function"?n:void 0,N=Pe($),F=$?N:n,D=Yr(n),O=Yr(x),P=Gc()==="rtl",U=_||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":P?"left":"right","inline-start":P?"right":"left"}[i],G=a==="center"?U:`${U}-${a}`,j=c;typeof j=="number"?j={top:j,right:j,bottom:j,left:j}:j&&(j={top:j.top||0,right:j.right||0,bottom:j.bottom||0,left:j.left||0});let V=1,H=i==="bottom"?V:0,ne=i==="top"?V:0,J=i==="right"?V:0,W=i==="left"?V:0,ie={boundary:l==="clipping-ancestors"?"clippingAncestors":l,padding:j},Z=ql.useRef(null),le=Yr(o),se=Yr(s),ge=typeof o!="function"?o:0,ce=typeof s!="function"?s:0,be=[];m&&be.push(m),be.push(jD(St=>{let An=Gue(St,i,P),Xt=typeof le.current=="function"?le.current(An):le.current,zn=typeof se.current=="function"?se.current(An):se.current;return{mainAxis:Xt,crossAxis:zn,alignmentAxis:zn}},[ge,ce,P,i]));let ke=C==="none"&&S!=="shift",me=!ke&&(u||M||S==="shift"),Se=S==="none"?null:FD({...ie,padding:{top:j.top+V+H,right:j.right+V+W,bottom:j.bottom+V+ne,left:j.left+V+J},mainAxis:!M&&S==="flip",crossAxis:C==="flip"?"alignment":!1,fallbackAxisSideDirection:T}),de=ke?null:OD({...ie,rootBoundary:A,mainAxis:C!=="none",crossAxis:me,limiter:u||M?void 0:DD(St=>{if(!Z.current)return{};let{width:An,height:Xt}=Z.current.getBoundingClientRect(),zn=Qs(Sa(St.placement)),Dt=zn==="y"?An:Xt,mn=zn==="y"?j.left+j.right:j.top+j.bottom;return{offset:Dt/2+mn/2}})},[ie,u,M,A,j,C]);S==="shift"||C==="shift"||a==="center"?be.push(de,Se):be.push(Se,de),be.push(BD({...ie,apply({elements:{floating:St},availableWidth:An,availableHeight:Xt,rects:zn}){if(!O.current)return;let Dt=St.style;Dt.setProperty(que,`${An}px`),Dt.setProperty(Hue,`${Xt}px`);let mn=Qn(St).devicePixelRatio||1,{x:yn,y:In,width:er,height:ae}=zn.reference,st=(Math.round((yn+er)*mn)-Math.round(yn*mn))/mn,Mt=(Math.round((In+ae)*mn)-Math.round(In*mn))/mn;Dt.setProperty(jue,`${st}px`),Dt.setProperty(Oue,`${Mt}px`)}}),Nue(St=>({element:Z.current||Wt(St.elements.floating).createElement("div"),padding:Z.current?d:0,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(St){let{elements:{floating:An},middlewareData:Xt,placement:zn,platform:Dt,rects:mn,y:yn}=St,In=Sa(zn),er=zc(zn),ae=Qs(In)==="y",st=Z.current,Mt=typeof o=="function"?o(Gue(St,i,P)):o,Ye;if(!st&&er&&Math.abs(ae?Xt.shift?.x||0:Xt.shift?.y||0)<=1)Ye=er==="start"===(ae&&Dt.isRTL?.(An)===!0)?"100%":"0%";else{let jn=ae?Xt.arrow?.x||0:Xt.arrow?.y||0,Kn=ae?st?.clientWidth||0:st?.clientHeight||0;Ye=`${jn+Kn/2}px`}let vt=In==="top"||In==="left"?`calc(100% + ${Mt}px)`:`${-Mt}px`;return me&&ae&&Math.abs(Xt.shift?.y||0)>Mt&&(vt=`${mn.reference.y+mn.reference.height/2-yn}px`),An.style.setProperty(Due,ae?`${Ye} ${vt}`:`${vt} ${Ye}`),{}}},Pue,w),Ee(()=>{!x&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[x,h]);let Le=ql.useMemo(()=>({ancestorScroll:!p,elementResize:!p&&typeof ResizeObserver<"u",layoutShift:!p&&typeof IntersectionObserver<"u"}),[p]),{refs:Ne,elements:Be,x:_e,y:xe,middlewareData:Ce,update:K,placement:Y,context:ye,isPositioned:Re,floatingStyles:Ke}=e({rootContext:h,open:f?x:void 0,placement:G,middleware:be,strategy:r,whileElementsMounted:f?void 0:(...St)=>Q6(...St,Le),nodeId:b,externalTree:k}),{sideX:mt,sideY:dt}=Ce.adaptiveOrigin||Q2,Ae=Re?r:"fixed",wt=ql.useMemo(()=>{let St;return Re?w?St={position:Ae,[mt]:_e,[dt]:xe}:St={...Ke,position:Ae}:St={position:Ae,top:0,left:0},St[que]="100vw",St[Hue]="100vh",Re||(St.opacity=0),St},[w,Ae,mt,_e,dt,xe,Ke,Re]),Tt=ql.useRef(null);Ee(()=>{if(!x)return;let St=D.current,An=typeof St=="function"?St():St,zn=(Uue(An)?An.current:An)||null||null;zn!==Tt.current&&(Ne.setPositionReference(zn),Tt.current=zn)},[x,Ne,F,D]),ql.useEffect(()=>{if(!x)return;let St=D.current;typeof St!="function"&&Uue(St)&&St.current!==Tt.current&&(Ne.setPositionReference(St.current),Tt.current=St.current)},[x,Ne,F,D]),ql.useEffect(()=>{if(f&&x&&Be.reference&&Be.floating)return Q6(Be.reference,Be.floating,K,Le)},[f,x,Be,K,Le]);let Ot=Sa(Y),zt=Vue(i,Ot,P),Ve=zc(Y)||"center",Jt=!!Ce.hide?.referenceHidden;Ee(()=>{v&&x&&Re&&Ot!==U&&L(Ot)},[v,x,Re,Ot,U]);let rn=ql.useMemo(()=>({position:"absolute",top:Ce.arrow?.y,left:Ce.arrow?.x}),[Ce.arrow]),Rn=Ce.arrow?.centerOffset!==0;return ql.useMemo(()=>({positionerStyles:wt,arrowStyles:rn,arrowRef:Z,arrowUncentered:Rn,side:zt,align:Ve,physicalSide:Ot,anchorHidden:Jt,refs:Ne,context:ye,isPositioned:Re,update:K}),[wt,rn,Z,Rn,zt,Ve,Ot,Jt,Ne,ye,Re,K])}function Uue(t){return t!=null&&"current"in t}var Zue=R(Q(),1),Wue=R(ee(),1),ey=Zue.forwardRef(function(e,n){let{cutout:r,...i}=e,o;if(r){let a=r.getBoundingClientRect();o=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${a.left}px ${a.top}px,${a.left}px ${a.bottom}px,${a.right}px ${a.bottom}px,${a.right}px ${a.top}px,${a.left}px ${a.top}px)`}return(0,Wue.jsx)("div",{ref:n,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:o}})});function $1(t){return t==="starting"?yce:xn}function ty(t,e,{styles:n,transitionStatus:r,props:i,refs:o,hidden:a,inert:s=!1}){let l={...n};return s&&(l.pointerEvents="none"),We("div",t,{state:e,ref:o,props:[{role:"presentation",hidden:a,style:l},$1(r),i],stateAttributesMapping:zl})}var ede=R(Q(),1);var Kue={},Xue={},Yue="";function GS(t,e){return P0(t)?t:e}function Que(t,e,n){return/hidden|clip/.test(t.getComputedStyle(GS(e,n)).overflowY)}function Aze(t){if(typeof document>"u")return!1;let e=Wt(t);return Qn(e).innerWidth-e.documentElement.clientWidth>0}function $ze(t){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;let n=Wt(t),r=n.documentElement,i=n.body,o=GS(r,i),a=o.style.overflowY,s=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",o.style.overflowY="scroll";let l=o.offsetWidth;o.style.overflowY="hidden";let c=o.offsetWidth;return o.style.overflowY=a,r.style.scrollbarGutter=s,l===c}function Ize(t){let e=Wt(t),n=e.documentElement,r=e.body,i=GS(n,r),o={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,o)}}function Nze(t){let e=Wt(t),n=e.documentElement,r=e.body,i=Qn(n),o=0,a=0,s=!1,l=Pc.create();if(Nn.engine.webkit&&(i.visualViewport?.scale??1)!==1)return()=>{};function c(){let m=i.getComputedStyle(n),f=i.getComputedStyle(r),g=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";o=n.scrollTop,a=n.scrollLeft,Kue={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Yue=n.style.scrollBehavior,Xue={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let y=n.scrollHeight>n.clientHeight,b=n.scrollWidth>n.clientWidth,w=m.overflowY==="scroll"||f.overflowY==="scroll",v=m.overflowX==="scroll"||f.overflowX==="scroll",k=Math.max(0,i.innerWidth-r.clientWidth),_=Math.max(0,i.innerHeight-r.clientHeight),L=parseFloat(f.marginTop)+parseFloat(f.marginBottom),S=parseFloat(f.marginLeft)+parseFloat(f.marginRight),C=GS(n,r);if(s=$ze(t),s){n.style.scrollbarGutter=g,C.style.overflowY="hidden",C.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(y||w)&&(n.style.overflowY="scroll"),(b||v)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:L||_?`calc(100dvh - ${L+_}px)`:"100dvh",width:S||k?`calc(100vw - ${S+k}px)`:"100vw",boxSizing:"border-box",overflowY:"hidden",overflowX:"hidden",scrollBehavior:"unset"}),r.scrollTop=o,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function u(){Object.assign(n.style,Kue),Object.assign(r.style,Xue),s||(n.scrollTop=o,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=Yue)}function d(){u(),l.request(c)}c();let p=hn(i,"resize",d);return()=>{l.cancel(),u(),typeof i.removeEventListener=="function"&&p()}}var aF=class{lockCount=0;restore=null;timeoutLock=Ca.create();timeoutUnlock=Ca.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let n=Wt(e),r=n.documentElement,i=n.body,o=Qn(r);if(Que(o,r,i)){let s=new o.MutationObserver(()=>{Que(o,r,i)||(s.disconnect(),this.restore=null,this.lock(e))}),l={attributes:!0};s.observe(r,l),s.observe(i,l),this.restore=()=>s.disconnect();return}let a=Nn.os.ios||!Aze(e);this.restore=a?Ize(e):Nze(e)}},Pze=new aF;function Jue(t=!0,e=null){Ee(()=>{if(t)return Pze.acquire(e)},[t,e])}var jze=20;function ny(t,e,n,r){let[i,o]=ede.useState(!1);Ee(()=>{if(!t||!e||n==null){o(!1);return}let a=Wt(n).documentElement.clientWidth,s=n.offsetWidth;o(a>0&&s>0&&s>=a-jze)},[t,e,n]),Jue(t&&(!e||i),r)}var lx=R(ee(),1),tde=US.forwardRef(function(e,n){let{render:r,className:i,style:o,anchor:a,positionMethod:s,side:l,align:c,sideOffset:u,alignOffset:d,collisionBoundary:p="clipping-ancestors",collisionPadding:m,arrowPadding:f,sticky:h,disableAnchorTracking:x=!1,collisionAvoidance:g=aS,...y}=e,b=ki(),w=Aue(),v=Y0(),k=b.useState("floatingRootContext"),_=b.useState("mounted"),L=b.useState("open"),S=b.useState("openChangeReason"),C=b.useState("activeTriggerElement"),T=b.useState("modal"),M=b.useState("openMethod"),A=b.useState("positionerElement"),$=b.useState("instantType"),N=b.useState("transitionStatus"),F=b.useState("adaptiveOrigin"),D=US.useRef(null),O=jc(A),B=J2({anchor:a,floatingRootContext:k,positionMethod:s,mounted:_,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:h,disableAnchorTracking:x,keepMounted:w,nodeId:v,collisionAvoidance:g,adaptiveOrigin:F}),P=k.useState("domReferenceElement");Ee(()=>{let H=P,ne=D.current;if(H&&(D.current=H),ne&&H&&H!==ne){b.set("instantType",void 0);let J=new AbortController;return O(()=>{b.set("instantType","trigger-change")},J.signal),()=>{J.abort()}}},[P,O,b]);let U=T===!0&&S!==he.triggerHover;ny(L&&U,M==="touch",A,C);let G=b.useStateSetter("positionerElement"),j={open:L,side:B.side,align:B.align,anchorHidden:B.anchorHidden,instant:$},V=ty(e,j,{styles:B.positionerStyles,transitionStatus:N,props:y,refs:[n,G],hidden:!_,inert:!L});return(0,lx.jsxs)(iF.Provider,{value:B,children:[_&&U&&(0,lx.jsx)(ey,{inert:A1(!L),cutout:C}),(0,lx.jsx)(W6,{id:v,children:V})]})});var ide=R(Q(),1);var Oze="ArrowUp",Dze="ArrowDown",Fze="ArrowLeft",Bze="ArrowRight",zze="Home",qze="End";var VS=new Set([Oze,Dze,Fze,Bze,zze,qze]);var ZS=R(Q(),1),Hze=ZS.createContext(void 0);function WS(t){let e=ZS.useContext(Hze);if(e===void 0&&!t)throw new Error(Ft(69));return e}var I1=R(Q(),1);var sF=I1.createContext(void 0);function nde(){let[t,e]=I1.useState(0),n=Pe(()=>(e(i=>i+1),()=>{e(i=>Math.max(0,i-1))}));return{context:I1.useMemo(()=>({register:n}),[n]),hasClosePart:t>0}}function rde(){let t=I1.useContext(sF);Ee(()=>t?.register(),[t])}var lF=R(ee(),1),ode=ide.forwardRef(function(e,n){let{render:r,className:i,style:o,initialFocus:a,finalFocus:s,...l}=e,c=ki(),u=Y2(),d=WS(!0)!=null,{context:p,hasClosePart:m}=nde(),f=c.useState("open"),h=c.useState("openMethod"),x=c.useState("instantType"),g=c.useState("transitionStatus"),y=c.useState("popupProps"),b=c.useState("titleElementId"),w=c.useState("descriptionElementId"),v=c.useState("modal"),k=c.useState("mounted"),_=c.useState("openChangeReason"),L=c.useState("activeTriggerElement"),S=c.useState("floatingRootContext"),C=S.useState("floatingId"),T=c.useState("disabled"),M=c.useState("openOnHover"),A=c.useState("closeDelay");Ro({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete?.(!0)}}),tx(S,{enabled:M&&!T,closeDelay:A});let $=a===void 0?due(c.context.popupRef):a,N=v!==!1&&m;c.useSyncedValue("focusManagerModal",N);let F=c.useStateSetter("popupElement"),D={open:f,side:u.side,align:u.align,instant:x,transitionStatus:g},O=We("div",e,{state:D,ref:[n,c.context.popupRef,F],props:[y,{id:C,role:"dialog",...Z2,"aria-labelledby":b,"aria-describedby":w,onKeyDown(B){d&&VS.has(B.key)&&B.stopPropagation()}},$1(g),l],stateAttributesMapping:v1});return(0,lF.jsx)(Q0,{context:S,openInteractionType:h,modal:N,disabled:!k||_===he.triggerHover,initialFocus:$,returnFocus:s,restoreFocus:"popup",previousFocusableElement:Ln(L)?L:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,lF.jsx)(sF.Provider,{value:p,children:O})})});var ade=R(Q(),1);var sde=ade.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,l=ki().useState("open"),{arrowRef:c,side:u,align:d,arrowUncentered:p,arrowStyles:m}=Y2();return We("div",e,{state:{open:l,side:u,align:d,uncentered:p},ref:[n,c],props:[{style:m,"aria-hidden":!0},a],stateAttributesMapping:zl})});var lde=R(Q(),1);var cde=lde.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=ki(),l=s.useState("open"),c=s.useState("mounted"),u=s.useState("transitionStatus"),d=s.useState("openChangeReason");return We("div",e,{state:{open:l,transitionStatus:u},ref:n,props:[{role:"presentation",hidden:!c,style:{pointerEvents:d===he.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},a],stateAttributesMapping:v1})});var ude=R(Q(),1);var dde=ude.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=ki(),l=dr(a.id);return s.useSyncedValueWithCleanup("titleElementId",l),We("h2",e,{ref:n,props:[{id:l},a]})});var pde=R(Q(),1);var mde=pde.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=ki(),l=dr(a.id);return s.useSyncedValueWithCleanup("descriptionElementId",l),We("p",e,{ref:n,props:[{id:l},a]})});var fde=R(Q(),1);var hde=fde.forwardRef(function(e,n){let{render:r,className:i,style:o,disabled:a=!1,nativeButton:s=!0,...l}=e,{buttonRef:c,getButtonProps:u}=zi({disabled:a,focusableWhenDisabled:!1,native:s}),d=ki();return rde(),We("button",e,{ref:[n,c],props:[{onClick(m){d.setOpen(!1,Xe(he.closePress,m.nativeEvent))}},l,u]})});var Mde=R(Q(),1);var Ko=R(Q(),1),Lde=R(Ms(),1);var gde=R(Q(),1);function bde(t){let[e,n]=gde.useState({current:t,previous:null});return Object.is(t,e.current)||n({current:t,previous:e.current}),e.previous}var ry=R(Q(),1);function cF(t){let e=Fi(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=Ln(t),o=i?t.offsetWidth:n,a=i?t.offsetHeight:r;return(_1(n)!==o||_1(r)!==a)&&(n=o,r=a),{width:n,height:r}}var cx="--popup-width",ux="--popup-height";function wde(t){let{popupElement:e,positionerElement:n,content:r,mounted:i,onMeasureLayout:o,onMeasureLayoutComplete:a,side:s,direction:l}=t,c=jc(e,!0),u=Dl(),d=ry.useRef(null),p=ry.useRef(!0),m=ry.useRef(Yt),f=Pe(o),h=Pe(a),x=ry.useMemo(()=>Gze(s,l),[s,l]);Ee(()=>{if(!i){m.current=Yt,p.current=!0,d.current=null;return}if(!e||!n)return;m.current=xde(e,x),uF(e,"auto");let g=XS(e,"position","static"),y=XS(e,"transform","none"),b=XS(e,"scale","1"),w=xde(n,{[qS]:"max-content",[HS]:"max-content"});function v(){g(),y(),w()}function k(){v(),b()}if(f?.(),p.current||d.current===null){KS(n,"max-content");let C=cF(e);return d.current=C,KS(n,C),k(),h?.(null,C),p.current=!1,()=>{m.current(),m.current=Yt}}KS(n,"max-content");let _=d.current,L=cF(e);d.current=L,uF(e,_),k(),h?.(_,L),KS(n,L);let S=new AbortController;return u.request(()=>{uF(e,L),c(()=>{e.style.setProperty(cx,"auto"),e.style.setProperty(ux,"auto")},S.signal)}),()=>{S.abort(),u.cancel(),m.current(),m.current=Yt}},[r,e,n,c,u,i,f,h,x])}function Gze(t,e){let n=t==="top",r=t==="left"||t===(e==="rtl"?"inline-end":"inline-start");return!n&&!r?xn:{position:"absolute",[n?"bottom":"top"]:"0",[r?"right":"left"]:"0"}}function XS(t,e,n){let r=t.style.getPropertyValue(e);return t.style.setProperty(e,n),()=>{t.style.setProperty(e,r)}}function xde(t,e){let n=[];for(let[r,i]of Object.entries(e))n.push(XS(t,r,i));return n.length?()=>{n.forEach(r=>r())}:Yt}function uF(t,e){let n=e==="auto"?"auto":`${e.width}px`,r=e==="auto"?"auto":`${e.height}px`;t.style.setProperty(cx,n),t.style.setProperty(ux,r)}function KS(t,e){let n=e==="max-content"?"max-content":`${e.width}px`,r=e==="max-content"?"max-content":`${e.height}px`;t.style.setProperty(Fue,n),t.style.setProperty(Bue,r)}var vde=R(Q(),1);var kde=R(ee(),1),YS=function(e){let{direction:n="ltr"}=e,r=vde.useMemo(()=>({direction:n}),[n]);return(0,kde.jsx)(oF.Provider,{value:r,children:e.children})};var Cde={name:"adaptiveOrigin",async fn(t){let{x:e,y:n,rects:{floating:r},elements:{floating:i},platform:o,strategy:a,placement:s}=t,l=Qn(i),c=l.getComputedStyle(i);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:e,y:n,data:Q2};let d=await o.getOffsetParent?.(i),p={width:0,height:0};if(a==="fixed"&&l?.visualViewport)p={width:l.visualViewport.width,height:l.visualViewport.height};else if(d===l){let y=Wt(i);p={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await o.isElement?.(d)&&(p=await o.getDimensions(d));let m=Sa(s),f=e,h=n;m==="left"&&(f=p.width-(e+r.width)),m==="top"&&(h=p.height-(n+r.height));let x=m==="left"?"right":Q2.sideX,g=m==="top"?"bottom":Q2.sideY;return{x:f,y:h,data:{sideX:x,sideY:g}}}};var _de="data-activation-direction";var iy=R(ee(),1),QS={activationDirection:t=>t?{[_de]:t}:null};function JS(t){let{store:e,side:n,children:r}=t,i=Gc(),o=e.useState("activeTriggerElement"),a=e.useState("activeTriggerId"),s=e.useState("open"),l=e.useState("payload"),c=e.useState("mounted"),u=e.useState("popupElement"),d=e.useState("positionerElement"),p=bde(s?o:null),m=Wze(a,l),f=Ko.useRef(null),[h,x]=Ko.useState(null),[g,y]=Ko.useState(null),b=Ko.useRef(null),w=Ko.useRef(null),v=jc(b,!0),k=Dl(),_=Ko.useRef(null),[L,S]=Ko.useState(null),[C,T]=Ko.useState(!1);Ee(()=>(e.set("adaptiveOrigin",Cde),()=>{e.set("adaptiveOrigin",void 0)}),[e]);let M=Pe(()=>{b.current?.style.setProperty("animation","none"),b.current?.style.setProperty("transition","none"),w.current?.style.setProperty("display","none")}),A=Pe(B=>{b.current?.style.removeProperty("animation"),b.current?.style.removeProperty("transition"),w.current?.style.removeProperty("display"),B&&S(B)}),$=Pe(()=>{_.current?.abort();let B=new AbortController;_.current=B,v(()=>{x(null),S(null),f.current=null},B.signal)}),N=Ko.useRef(null);Ee(()=>{(!s||!c)&&(N.current=null)},[s,c]),Ee(()=>{if(o&&p&&o!==p&&N.current!==o&&f.current){x(f.current),T(!0);let B=Zze(p,o);y(B),N.current=o}},[o,p]),Ee(()=>{h!=null&&(_.current?.abort(),T(!0),k.request(()=>{Lde.flushSync(()=>{T(!1)}),$()}))},[m,h,$,k]),Ee(()=>{let B=b.current;if(!B)return;let P=Wt(B).createElement("div");for(let U of Array.from(B.childNodes))P.appendChild(U.cloneNode(!0));f.current=P});let F=h!=null,D;F?D=(0,iy.jsxs)(Ko.Fragment,{children:[(0,iy.jsx)("div",{"data-previous":!0,inert:A1(!0),ref:w,style:{...L?{[cx]:`${L.width}px`,[ux]:`${L.height}px`}:null,position:"absolute"},"data-ending-style":C?void 0:""},"previous"),(0,iy.jsx)("div",{"data-current":!0,ref:b,"data-starting-style":C?"":void 0,children:r},m)]}):D=(0,iy.jsx)("div",{"data-current":!0,ref:b,children:r},m),Ee(()=>{let B=w.current;!B||!h||B.replaceChildren(...Array.from(h.childNodes))},[h]),wde({popupElement:u,positionerElement:d,mounted:c,content:l,onMeasureLayout:M,onMeasureLayoutComplete:A,side:n,direction:i});let O={activationDirection:Vze(g),transitioning:F};return{children:D,state:O}}function Vze(t){if(t)return`${Sde(t.horizontal,5,"right","left")} ${Sde(t.vertical,5,"down","up")}`}function Sde(t,e,n,r){return t>e?n:t<-e?r:""}function Zze(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i={x:n.left+n.width/2,y:n.top+n.height/2},o={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:o.x-i.x,vertical:o.y-i.y}}function Wze(t,e){let[n,r]=Ko.useState(0),i=Ko.useRef(t),o=Ko.useRef(e),a=Ko.useRef(!1);return Ee(()=>{let s=i.current,l=o.current,c=t!==s,u=e!==l;c?(r(d=>d+1),a.current=!u):a.current&&u&&(r(d=>d+1),a.current=!1),i.current=t,o.current=e},[t,e]),`${t??"current"}-${n}`}var Ede=Mde.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,l=ki(),{side:c}=Y2(),u=l.useState("instantType"),{children:d,state:p}=JS({store:l,side:c,children:a}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return We("div",e,{state:m,ref:n,props:[s,{children:d}],stateAttributesMapping:QS})});var dx=class extends U2{constructor(){super(Cue(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function Tde(){return new dx}var Rde=R(qe(),1),eL=R(Q(),1);var dF=R(ee(),1),Ade=(0,eL.createContext)({container:null,dir:"ltr"});function $de(t){let e=(0,Rde.c)(9),{container:n,dir:r,children:i}=t,o=r===void 0?"ltr":r,a;e[0]!==n||e[1]!==o?(a={container:n,dir:o},e[0]=n,e[1]=o,e[2]=a):a=e[2];let s;e[3]!==i||e[4]!==o?(s=(0,dF.jsx)(YS,{direction:o,children:i}),e[3]=i,e[4]=o,e[5]=s):s=e[5];let l;return e[6]!==a||e[7]!==s?(l=(0,dF.jsx)(Ade,{value:a,children:s}),e[6]=a,e[7]=s,e[8]=l):l=e[8],l}function oy(){return(0,eL.use)(Ade).container??void 0}var px=R(ee(),1);function Kze(t){if(!t||t instanceof Element)return t;let e=t;return{getBoundingClientRect:()=>{let n=e.right-e.left,r=e.bottom-e.top;return{x:e.left,y:e.top,left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:n,height:r,toJSON:()=>e}}}}function ay(t){let e=(0,Ide.c)(23),{open:n,onOpenChange:r,anchor:i,label:o,className:a,side:s,initialFocus:l,finalFocus:c,children:u}=t,d=s===void 0?"bottom":s,p=oy(),m;e[0]!==r?(m=w=>r(w),e[0]=r,e[1]=m):m=e[1];let f;e[2]!==i?(f=Kze(i),e[2]=i,e[3]=f):f=e[3];let h;e[4]!==a?(h=Zs("ui-popup ui-popover",a),e[4]=a,e[5]=h):h=e[5];let x;e[6]!==u||e[7]!==c||e[8]!==l||e[9]!==o||e[10]!==h?(x=(0,px.jsx)(og.Popup,{className:h,"aria-label":o,initialFocus:l,finalFocus:c,children:u}),e[6]=u,e[7]=c,e[8]=l,e[9]=o,e[10]=h,e[11]=x):x=e[11];let g;e[12]!==d||e[13]!==f||e[14]!==x?(g=(0,px.jsx)(og.Positioner,{className:"ui-positioner",anchor:f,side:d,align:"start",sideOffset:R6,children:x}),e[12]=d,e[13]=f,e[14]=x,e[15]=g):g=e[15];let y;e[16]!==p||e[17]!==g?(y=(0,px.jsx)(og.Portal,{container:p,children:g}),e[16]=p,e[17]=g,e[18]=y):y=e[18];let b;return e[19]!==n||e[20]!==m||e[21]!==y?(b=(0,px.jsx)(og.Root,{open:n,onOpenChange:m,modal:!1,children:y}),e[19]=n,e[20]=m,e[21]=y,e[22]=b):b=e[22],b}var et=R(ee(),1),Ru={model:"picker.model",mode:"picker.mode",effort:"picker.effort",plan:"picker.plan",build:"picker.build",planHint:"picker.planHint",context:"picker.context"},Xze=1500,Nde="cmux.acpmux.recentModels";function Pde(){try{let t=JSON.parse(localStorage.getItem(Nde)??"[]");return Array.isArray(t)?t.filter(e=>typeof e?.harness=="string"&&typeof e.model=="string"&&(e.effort===void 0||typeof e.effort=="string")&&(e.effortName===void 0||typeof e.effortName=="string")):[]}catch{return[]}}function Yze(t,e){let n=s=>`${s.harness}\0${s.model}\0${s.effort??""}`,r=s=>n(s)===n(e),i=new Set,o=[...Pde(),...t].filter(s=>!i.has(n(s))&&i.add(n(s)));if(o[0]&&r(o[0]))return o;let a=[e,...o.filter(s=>!r(s))].slice(0,12);try{localStorage.setItem(Nde,JSON.stringify(a))}catch{}return a}var Qze=(t,e)=>{let n=setTimeout(t,e);return()=>clearTimeout(n)};function jde({snapshot:t,onModel:e,onMode:n,onEffort:r,onHarness:i,onHarnessHint:o,settleMs:a=Xze,settleTimer:s=Qze,measurePickerRoom:l,showPlan:c=!0,onCompact:u}){let d=ve(),p=t.summary,m=w6(t.catalog,p).map(Z=>Bl(Z)?{...Z,name:d("picker.default")}:Z),f=(p?.modes?.availableModes??[]).map(Z=>({id:Z.id,name:Z.name||Z.id,description:Z.description})),h=f.find(Z=>Jze(Z.id)),x=f.filter(Z=>Z!==h),g=p?.modes?.currentModeId,y=h!==void 0&&g===h.id,b=(0,di.useRef)({});b.current.sessionId!==p?.sessionId&&(b.current={sessionId:p?.sessionId}),g&&!y&&(b.current.mode=g);let w=x.find(Z=>Z.id===(y?b.current.mode:g)),v=p?.configOptions?.find(Z=>Z.category==="thought_level"||Z.id==="effort"||Z.id==="reasoning_effort"),k=(v?.options??[]).map(Z=>{let le={id:Z.value,name:Z.name||Z.value};return Bl(le)?{...le,name:d("picker.default")}:le}),_=m.find(Z=>Z.id===p?.model),L=k.find(Z=>Z.id===v?.currentValue)?.name,[S,C]=(0,di.useState)(Pde),T=p?.harness,M=p?.model,A=p?.confirmedModel??M,$=v?.currentValue,N=v!==void 0,F=t.switching!==void 0;(0,di.useEffect)(()=>{if(!(F||!T||!A||N&&!$))return s(()=>C(Z=>Yze(Z,{harness:T,model:A,effort:$,effortName:L})),a)},[F,T,A,$,N,L,a,s]);let D=(0,di.useRef)(void 0),O=v?.id,B=(v?.options??[]).map(Z=>Z.value).join("\0");(0,di.useEffect)(()=>{let Z=D.current;if(!Z)return;let le=A!==Z.model&&(A!==Z.from||Z.reached);if(Z.sessionId!==p?.sessionId||le){D.current=void 0;return}A===Z.model&&(Z.reached=!0),!(A!==Z.model||!O||!B.split("\0").includes(Z.effort))&&(D.current=void 0,Z.effort!==$&&r(O,Z.effort))},[p?.sessionId,A,$,O,B,r]);let P=(Z,le)=>{D.current=void 0,Z!==M?(D.current=le?{sessionId:p?.sessionId,from:A,model:Z,effort:le}:void 0,e(Z)):v&&le&&le!==$&&k.some(se=>se.id===le)&&r(v.id,le)},U=M!==void 0&&Bl(_??{id:M}),G=F?void 0:Qse(p);(0,di.useEffect)(()=>{T&&G&&ele(T,G)},[T,G]);let j=U?G??(T?KO()[T]:void 0):void 0,V=j&&(m.find(Z=>Z.id===j&&!Bl(Z))?.name??Yse(j)),H=U?V??d("picker.default"):_?.name??p?.model,ne=p?.usage,J=k.find(Z=>Z.id===$),W=J&&!Bl(J)?J.name:void 0,ie=u&&t.commands?.some(Z=>Z.name==="compact")?u:void 0;return(0,et.jsxs)("div",{className:"acpmux-chips",children:[x.length>0&&(0,et.jsx)(pF,{label:d(Ru.mode),warnUnrestricted:!0,className:`acpmux-mode${w&&Ode(w.id)?" acpmux-unrestricted":""}`,button:(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(mF,{}),(0,et.jsx)("span",{className:"acpmux-mode-text",children:w?.name??d(Ru.mode)}),(0,et.jsx)(w1,{})]}),sections:[{choices:x,current:w?.id,onPick:n}],heading:d("approval.title"),align:"start"}),c&&h&&(0,et.jsxs)("button",{type:"button",className:"acpmux-plan","aria-pressed":y,title:d(Ru.planHint),onClick:()=>n(y?b.current.mode??x[0]?.id??h.id:h.id),children:[y?(0,et.jsx)(fF,{}):(0,et.jsx)(hF,{}),(0,et.jsx)("span",{children:d(y?Ru.plan:Ru.build)})]}),(0,et.jsx)("span",{className:"acpmux-chips-spacer"}),m.length>0&&(0,et.jsx)(Ile,{catalog:t.catalog,harness:T,model:M,label:H??d(Ru.model),detail:W,resolvedDefault:V,efforts:k,effort:$,recents:S,onLand:P,onEffort:Z=>{D.current=void 0,v&&r(v.id,Z)},onHarness:i,onHarnessHint:o,harnessNotes:t.switching?.phase==="failed"?{[t.switching.harness]:d("switch.failedShort")}:void 0,measureRoom:l}),(ne||p?.sessionId)&&(0,et.jsx)(eqe,{used:ne?.used,size:ne?.size,onCompact:ie,working:t.isWorking}),m.length===0&&v&&k.length>0&&(0,et.jsx)(sle,{label:d(Ru.effort),efforts:k,current:v.currentValue,model:H,chevron:(0,et.jsx)(w1,{}),onPick:Z=>{D.current=void 0,r(v.id,Z)}})]})}function Jze(t){return/(^|[-_])plan$/i.test(t)}function eqe({used:t,size:e,onCompact:n,working:r=!1}){let i=ve(),[o,a]=(0,di.useState)(!1),s=(0,di.useRef)(null),l=(0,di.useRef)(null),c=t!==void 0&&e!==void 0&&e>0,u=c?Math.min(1,Math.max(0,t/e)):0,d=Math.round(u*100),p=c?i(Ru.context,{percent:d}):i("context.title"),m=6.5,f=2*Math.PI*m;(0,di.useEffect)(()=>Xs(i("context.title"),()=>a(!0)),[i]);let h=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),x=u>=.8?" acpmux-context-full":"";return(0,et.jsxs)("span",{className:`acpmux-picker acpmux-context${x}`,children:[(0,et.jsx)("button",{ref:s,type:"button",className:"acpmux-context-ring","data-menu":i("context.title"),"aria-label":p,"aria-haspopup":"dialog","aria-expanded":o,onPointerDown:()=>l.current=o,onClick:()=>{a(!(l.current??o)),l.current=null},children:(0,et.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[(0,et.jsx)("circle",{cx:"8",cy:"8",r:m,fill:"none",stroke:"currentColor",strokeOpacity:.28,strokeWidth:2}),u>0&&(0,et.jsx)("circle",{cx:"8",cy:"8",r:m,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeDasharray:`${f*u} ${f}`,transform:"rotate(-90 8 8)"})]})}),(0,et.jsxs)(ay,{open:o,onOpenChange:a,anchor:o?s.current:null,label:i("context.title"),className:`acpmux-context-pop${x}`,finalFocus:s,children:[(0,et.jsx)("div",{className:"acpmux-context-title",children:i("context.title")}),(0,et.jsx)("div",{className:"acpmux-context-percent",children:i("context.percent",{percent:d})}),(0,et.jsx)("div",{className:"acpmux-context-bar","aria-hidden":"true",children:(0,et.jsx)("span",{style:{width:`${d}%`}})}),c&&(0,et.jsx)("div",{className:"acpmux-context-tokens",children:i("context.tokens",{used:h.format(t),size:h.format(e)})}),n&&(0,et.jsx)("button",{type:"button",className:"acpmux-context-compact",disabled:r,onClick:()=>{a(!1),n()},children:i("context.compact")})]})]})}function Ode(t){return/bypass|full|yolo|dangerous|auto[-_ ]?approve/i.test(t)}function pF({label:t,className:e,button:n,sections:r,align:i,warnUnrestricted:o=!1,returnFocus:a=!0,heading:s}){let[l,c]=(0,di.useState)(!1),[u,d]=(0,di.useState)(0),p=(0,di.useRef)(null),m=(0,di.useRef)(null),f=(0,di.useRef)(null),h=(0,di.useId)(),x=Ys(m,f,l,{side:"above",align:"start"}),g=r.flatMap((C,T)=>C.choices.map(M=>({section:T,choice:M}))),y=Math.min(u,Math.max(g.length-1,0));(0,di.useEffect)(()=>{if(!l)return;let C=M=>{p.current?.contains(M.target)||c(!1)},T=()=>c(!1);return document.addEventListener("pointerdown",C),window.addEventListener("blur",T),()=>{document.removeEventListener("pointerdown",C),window.removeEventListener("blur",T)}},[l]);let b=()=>{let C=g.findIndex(T=>T.choice.id===r[T.section].current);d(Math.max(C,0)),c(!0),m.current?.focus()},w=(0,di.useRef)(b);w.current=b,(0,di.useEffect)(()=>Xs(t,()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),w.current()}),[t]);let v=()=>{c(!1),m.current?.focus()},k=C=>{let T=g[C];T&&r[T.section].onPick(T.choice.id)!=="keep"&&(a?v():c(!1))},_=C=>{if(!l){(C.key==="ArrowUp"||C.key==="ArrowDown")&&(C.preventDefault(),b());return}if(C.key==="Escape")C.preventDefault(),C.stopPropagation(),v();else if(C.key==="ArrowDown"||C.key==="ArrowUp"){C.preventDefault();let T=C.key==="ArrowDown"?1:-1;g.length>0&&d((y+T+g.length)%g.length)}else C.key==="Enter"?(C.preventDefault(),k(y)):C.key===" "?C.preventDefault():C.key==="Tab"&&c(!1)},L=C=>{l&&C.key===" "&&(C.preventDefault(),k(y))},S=-1;return(0,et.jsxs)("span",{ref:p,className:`acpmux-picker ${e}`,style:{position:"relative"},onBlur:C=>{l&&!p.current?.contains(C.relatedTarget)&&c(!1)},children:[(0,et.jsx)("button",{ref:m,type:"button",role:"combobox",className:"acpmux-picker-button","data-menu":t,"aria-label":t,"aria-haspopup":"listbox","aria-expanded":l,"aria-controls":l?h:void 0,"aria-activedescendant":l&&g.length>0?`${h}-${y}`:void 0,onKeyDown:_,onKeyUp:L,onClick:()=>l?c(!1):b(),children:n}),l&&(0,et.jsx)("div",{ref:f,style:x,className:`acpmux-menu acpmux-menu-${i}`,children:(0,et.jsxs)("div",{id:h,role:"listbox","aria-label":s??t,children:[s&&(0,et.jsx)("div",{className:"acpmux-menu-heading","aria-hidden":"true",children:s}),r.map((C,T)=>{let M=C.title&&r.length>1;return(0,et.jsxs)("div",{className:"acpmux-menu-section",role:"group","aria-labelledby":M?`${h}-group-${T}`:void 0,"aria-label":M?void 0:t,children:[M&&(0,et.jsx)("div",{className:"acpmux-menu-header",id:`${h}-group-${T}`,children:C.title}),C.choices.map(A=>{S+=1;let $=S,N=A.id===C.current;return(0,et.jsxs)("div",{id:`${h}-${$}`,"data-value":A.id,role:"option",tabIndex:-1,"aria-selected":$===y,"aria-checked":C.current===void 0?void 0:N,className:`acpmux-menu-item${$===y?" acpmux-menu-active":""}${o&&Ode(A.id)?" acpmux-unrestricted":""}`,onMouseMove:()=>{$!==y&&d($)},onMouseDown:F=>{F.preventDefault(),k($)},children:[A.icon,(0,et.jsxs)("span",{className:"acpmux-menu-text",children:[(0,et.jsx)("span",{className:"acpmux-menu-label",children:A.name}),A.description&&(0,et.jsx)("span",{className:"acpmux-menu-description",children:A.description})]}),A.hint&&(0,et.jsx)("kbd",{className:"acpmux-menu-hint",children:A.hint}),N&&(0,et.jsx)(eD,{})]},A.id)})]},T)})]})})]})}function Hl(t){let e=(0,Ra.c)(3),{children:n,size:r}=t,i=r===void 0?18:r,o;return e[0]!==n||e[1]!==i?(o=(0,et.jsx)("svg",{className:"acpmux-icon",width:i,height:i,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:n}),e[0]=n,e[1]=i,e[2]=o):o=e[2],o}var mF=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(Hl,{children:[(0,et.jsx)("path",{d:"M8 1.9 13 3.7v4.1c0 3.1-2.3 5.3-5 6.3-2.7-1-5-3.2-5-6.3V3.7Z"}),(0,et.jsx)("path",{d:"M8 5.2v3.3"}),(0,et.jsx)("circle",{cx:"8",cy:"10.9",r:".35",fill:"currentColor"})]}),t[0]=e):e=t[0],e},w1=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(Hl,{size:14,children:(0,et.jsx)("path",{d:"M4.6 6.3 8 9.6l3.4-3.3"})}),t[0]=e):e=t[0],e},Sle=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(Hl,{children:(0,et.jsx)("path",{d:"m6.25 4.25 3.5 3.75-3.5 3.75"})}),t[0]=e):e=t[0],e},j2=t=>{let e=(0,Ra.c)(4),{size:n}=t,r=n===void 0?16:n,i,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,et.jsx)("circle",{cx:"7",cy:"7",r:"4.25"}),o=(0,et.jsx)("path",{d:"m10.25 10.25 3 3"}),e[0]=i,e[1]=o):(i=e[0],o=e[1]);let a;return e[2]!==r?(a=(0,et.jsxs)(Hl,{size:r,children:[i,o]}),e[2]=r,e[3]=a):a=e[3],a},eD=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(Hl,{children:(0,et.jsx)("path",{d:"M3 8.6 6.3 12 13 4.5"})}),t[0]=e):e=t[0],e},Dde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(Hl,{children:(0,et.jsx)("path",{d:"M8 2.75v10.5M2.75 8h10.5"})}),t[0]=e):e=t[0],e},tL=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(Hl,{children:(0,et.jsx)("path",{d:"M8 13.4V2.8M3.4 7.3 8 2.7l4.6 4.6"})}),t[0]=e):e=t[0],e},Fde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)("svg",{className:"acpmux-icon",width:18,height:18,viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:(0,et.jsx)("rect",{x:"4.5",y:"4.5",width:"7",height:"7",rx:"1.5",fill:"currentColor"})}),t[0]=e):e=t[0],e},fF=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(Hl,{children:[(0,et.jsx)("path",{d:"M5.5 4.25h7.25M5.5 8h7.25M5.5 11.75h7.25"}),(0,et.jsx)("circle",{cx:"3",cy:"4.25",r:".6",fill:"currentColor"}),(0,et.jsx)("circle",{cx:"3",cy:"8",r:".6",fill:"currentColor"}),(0,et.jsx)("circle",{cx:"3",cy:"11.75",r:".6",fill:"currentColor"})]}),t[0]=e):e=t[0],e},hF=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(Hl,{children:[(0,et.jsx)("path",{d:"m9.6 3.2 3.2 3.2-6.9 6.9H2.7V10.1Z"}),(0,et.jsx)("path",{d:"m8.2 4.6 3.2 3.2"})]}),t[0]=e):e=t[0],e},Bde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(Hl,{children:(0,et.jsx)("path",{d:"m13.1 7.6-5 5a3.2 3.2 0 0 1-4.5-4.5l5.3-5.3a2.1 2.1 0 0 1 3 3L6.6 11a1.05 1.05 0 0 1-1.5-1.5L10 4.6"})}),t[0]=e):e=t[0],e},zde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(Hl,{children:[(0,et.jsx)("circle",{cx:"8",cy:"8",r:"2.4"}),(0,et.jsx)("path",{d:"M10.4 8v.9a1.8 1.8 0 0 0 3.6 0V8A6 6 0 1 0 11 13.2"})]}),t[0]=e):e=t[0],e},qde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsxs)(Hl,{children:[(0,et.jsx)("rect",{x:"5.5",y:"1.5",width:"5",height:"8.5",rx:"2.5"}),(0,et.jsx)("path",{d:"M3 7.5a5 5 0 0 0 10 0M8 12.5V15"})]}),t[0]=e):e=t[0],e},Hde=()=>{let t=(0,Ra.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,et.jsx)(Hl,{children:(0,et.jsx)("path",{d:"M10.5 2.5 5.5 13.5"})}),t[0]=e):e=t[0],e};var gF=R(qe(),1),Gl=R(Q(),1);var Ci=R(ee(),1);function Gde(t){let e=(0,gF.c)(70),{projects:n,current:r,currentLabel:i,icon:o,onPick:a,onBrowse:s}=t,l=ve(),[c,u]=(0,Gl.useState)(!1),[d,p]=(0,Gl.useState)(""),[m,f]=(0,Gl.useState)(void 0),h=(0,Gl.useRef)(null),x=(0,Gl.useRef)(null),g=(0,Gl.useRef)(null),y=(0,Gl.useRef)(null),b=(0,Gl.useId)(),w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w={side:"above",align:"start"},e[0]=w):w=e[0];let v=Ys(x,g,c,w),k;if(e[1]!==n||e[2]!==d){let ce=d.trim().toLowerCase().split(/\s+/).filter(Boolean);k=n.filter(be=>{let ke=`${be.label} ${be.cwd}`.toLowerCase();return ce.every(me=>ke.includes(me))}),e[1]=n,e[2]=d,e[3]=k}else k=e[3];let _=k,L;if(e[4]!==d){let ce=d.trim();L=ce.startsWith("/")||ce.startsWith("~/")?ce:void 0,e[4]=d,e[5]=L}else L=e[5];let S=L,C;if(e[6]!==m||e[7]!==_){let ce;e[9]!==m?(ce=be=>be.cwd===m,e[9]=m,e[10]=ce):ce=e[10],C=_.findIndex(ce),e[6]=m,e[7]=_,e[8]=C}else C=e[8];let T=Math.max(0,C),M;e[11]!==r?(M=()=>{p(""),f(r),u(!0)},e[11]=r,e[12]=M):M=e[12];let A=M,$;e[13]===Symbol.for("react.memo_cache_sentinel")?($=ce=>{u(!1),ce&&x.current?.focus()},e[13]=$):$=e[13];let N=$,F;e[14]!==r||e[15]!==a||e[16]!==S?(F=ce=>{let be=ce?.cwd??S;if(!be)return;let ke=be!==r;N(!ke),ke&&a(be)},e[14]=r,e[15]=a,e[16]=S,e[17]=F):F=e[17];let D=F,O,B;e[18]!==c?(O=()=>{if(!c)return;y.current?.focus();let ce=ke=>{h.current?.contains(ke.target)||u(!1)},be=()=>u(!1);return document.addEventListener("pointerdown",ce),window.addEventListener("blur",be),()=>{document.removeEventListener("pointerdown",ce),window.removeEventListener("blur",be)}},B=[c],e[18]=c,e[19]=O,e[20]=B):(O=e[19],B=e[20]),(0,Gl.useEffect)(O,B);let P;e[21]!==D||e[22]!==T||e[23]!==_?(P=ce=>{ce.key==="Escape"?(ce.preventDefault(),ce.stopPropagation(),N(!0)):ce.key==="ArrowDown"||ce.key==="ArrowUp"?(ce.preventDefault(),_.length>0&&f(_[(T+(ce.key==="ArrowDown"?1:-1)+_.length)%_.length].cwd)):ce.key==="Enter"&&(ce.preventDefault(),D(_[T]))},e[21]=D,e[22]=T,e[23]=_,e[24]=P):P=e[24];let U=P,G;e[25]!==c?(G=ce=>{c&&!h.current?.contains(ce.relatedTarget)&&u(!1)},e[25]=c,e[26]=G):G=e[26];let j;e[27]!==l?(j=l("project.label"),e[27]=l,e[28]=j):j=e[28];let V=c?b:void 0,H;e[29]!==r||e[30]!==l?(H=r?`${l("project.label")}: ${r}`:void 0,e[29]=r,e[30]=l,e[31]=H):H=e[31];let ne;e[32]!==c?(ne=ce=>{c&&ce.preventDefault()},e[32]=c,e[33]=ne):ne=e[33];let J;e[34]!==c||e[35]!==A?(J=()=>c?N(!0):A(),e[34]=c,e[35]=A,e[36]=J):J=e[36];let W;e[37]!==i||e[38]!==l?(W=i??l("project.choose"),e[37]=i,e[38]=l,e[39]=W):W=e[39];let ie;e[40]!==W?(ie=(0,Ci.jsx)("span",{children:W}),e[40]=W,e[41]=ie):ie=e[41];let Z;e[42]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,Ci.jsx)(w1,{}),e[42]=Z):Z=e[42];let le;e[43]!==o||e[44]!==c||e[45]!==j||e[46]!==V||e[47]!==H||e[48]!==ne||e[49]!==J||e[50]!==ie?(le=(0,Ci.jsxs)("button",{ref:x,type:"button",className:"acpmux-context-chip acpmux-project-button","aria-label":j,"aria-haspopup":"listbox","aria-expanded":c,"aria-controls":V,title:H,onMouseDown:ne,onClick:J,children:[o,ie,Z]}),e[43]=o,e[44]=c,e[45]=j,e[46]=V,e[47]=H,e[48]=ne,e[49]=J,e[50]=ie,e[51]=le):le=e[51];let se;e[52]!==r||e[53]!==o||e[54]!==U||e[55]!==b||e[56]!==v||e[57]!==s||e[58]!==c||e[59]!==D||e[60]!==d||e[61]!==T||e[62]!==_||e[63]!==l||e[64]!==S?(se=c&&(0,Ci.jsxs)("div",{ref:g,className:"acpmux-menu acpmux-menu-start acpmux-project-menu",style:v,children:[(0,Ci.jsxs)("div",{className:"acpmux-project-search",children:[(0,Ci.jsx)(tqe,{}),(0,Ci.jsx)("input",{ref:y,type:"text",role:"combobox","aria-label":l("project.search"),"aria-expanded":"true","aria-controls":b,"aria-autocomplete":"list","aria-activedescendant":_.length>0?`${b}-${T}`:void 0,placeholder:l("project.search"),value:d,spellCheck:!1,autoComplete:"off",onChange:ce=>{p(ce.target.value),f(void 0)},onKeyDown:U})]}),(0,Ci.jsxs)("div",{id:b,role:"listbox","aria-label":l("project.label"),children:[_.map((ce,be)=>(0,Ci.jsxs)("div",{id:`${b}-${be}`,role:"option",tabIndex:-1,"aria-selected":be===T,"aria-checked":ce.cwd===r,"aria-label":`${ce.label}, ${ce.cwd}`,className:`acpmux-menu-item${be===T?" acpmux-menu-active":""}`,title:ce.cwd,onPointerMove:()=>f(ce.cwd),onMouseDown:ke=>{ke.preventDefault(),D(ce)},children:[o,(0,Ci.jsxs)("span",{className:"acpmux-menu-text",children:[(0,Ci.jsx)("span",{className:"acpmux-menu-label",children:ce.label}),(0,Ci.jsx)("span",{className:"acpmux-menu-description","data-path":ce.cwd})]})]},ce.cwd)),_.length===0&&(S?(0,Ci.jsxs)("button",{type:"button",className:"acpmux-menu-item acpmux-menu-active",onMouseDown:ce=>{ce.preventDefault(),D(void 0)},children:[o,(0,Ci.jsx)("span",{className:"acpmux-menu-label",children:l("project.usePath",{path:S})})]}):(0,Ci.jsx)("div",{className:"acpmux-project-empty",children:l("project.none")}))]}),s&&(0,Ci.jsx)("button",{type:"button",className:"acpmux-project-browse",onMouseDown:ce=>{ce.preventDefault(),N(!1),s()},children:l("project.browse")})]}),e[52]=r,e[53]=o,e[54]=U,e[55]=b,e[56]=v,e[57]=s,e[58]=c,e[59]=D,e[60]=d,e[61]=T,e[62]=_,e[63]=l,e[64]=S,e[65]=se):se=e[65];let ge;return e[66]!==G||e[67]!==le||e[68]!==se?(ge=(0,Ci.jsxs)("span",{ref:h,className:"acpmux-picker acpmux-project",onBlur:G,children:[le,se]}),e[66]=G,e[67]=le,e[68]=se,e[69]=ge):ge=e[69],ge}function tqe(){let t=(0,gF.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Ci.jsxs)("svg",{className:"acpmux-icon",width:14,height:14,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round","aria-hidden":"true",focusable:"false",children:[(0,Ci.jsx)("circle",{cx:"7",cy:"7",r:"4.25"}),(0,Ci.jsx)("path",{d:"m10.25 10.25 3 3"})]}),t[0]=e):e=t[0],e}var nL={tabs:[],workspaces:[],sessions:[],folders:[],commands:[],history:[]},ag=40,Iu=t=>typeof t=="string"&&t?t:void 0,bF=t=>(Array.isArray(t)?t:[]).filter(e=>typeof e=="object"&&e!==null);function Ude(t){if(typeof t!="object"||t===null)return;let e=t,n=new Set(["terminal","browser","agent"]);return{tabs:bF(e.tabs).flatMap(r=>{let i=Iu(r.id),o=Iu(r.title)??"";if(!i||!n.has(r.kind))return[];let a=Iu(r.detail),s=Iu(r.workspace);return[{id:i,kind:r.kind,title:o,...a?{detail:a}:{},...s?{workspace:s}:{}}]}).slice(0,ag),workspaces:bF(e.workspaces).flatMap(r=>{let i=Iu(r.id),o=Iu(r.name),a=Iu(r.detail);return i&&o?[{id:i,name:o,...a?{detail:a}:{}}]:[]}).slice(0,ag),sessions:[],folders:(Array.isArray(e.folders)?e.folders:[]).flatMap(r=>Iu(r)??[]).slice(0,ag),commands:(Array.isArray(e.commands)?e.commands:[]).flatMap(r=>Iu(r)??[]).slice(0,ag),history:bF(e.history).flatMap(r=>{let i=Iu(r.url),o=Iu(r.title);return i?[{url:i,...o?{title:o}:{}}]:[]}).slice(0,ag)}}var sy={tabs:4,workspaces:3,sessions:3,folders:2,commands:2,history:3},nqe=9;function mx(t,...e){let n=t.trim().toLowerCase();if(!n)return 0;let r=0;for(let i of e){let o=i?.toLowerCase();if(!o)continue;let a=o.indexOf(n);if(a===0)return 3;a>0&&(r=Math.max(r,/[\s/._:@#-]/.test(o[a-1])?2:1))}return r}function Vde(t,e,n){let r=t.trim(),i=n.tabs.map(f=>({type:"tab",id:f.id,kind:f.kind,title:f.title,...f.detail||f.workspace?{detail:[f.workspace,f.detail].filter(Boolean).join(" \xB7 ")}:{}})),o=n.workspaces.map(f=>({type:"workspace",id:f.id,title:f.name,...f.detail?{detail:f.detail}:{}})),a=n.sessions.map(f=>({type:"session",id:f.sessionId,title:f.title,...f.harness?{harness:f.harness}:{},...f.detail?{detail:f.detail}:{}})),s=n.folders.map(f=>({type:"folder",path:f})),l=n.commands.map(f=>({type:"command",command:f})),c=n.history.map(f=>({type:"history",url:f.url,...f.title?{title:f.title}:{}}));if(!r)return[...i.slice(0,sy.tabs),...o.slice(0,sy.workspaces),...a.slice(0,sy.sessions),...s.slice(0,sy.folders),...l.slice(0,sy.commands),...c.slice(0,sy.history)];let u={tab:.6,workspace:.5,session:.4,folder:.3,command:e==="terminal"?.35:.2,history:e==="browser"?.35:.1,run:0,open:0,ask:0},d=[...i,...o,...a,...s,...l,...c].map(f=>({row:f,score:mx(r,...rqe(f))})).filter(f=>f.score>0).map(f=>({row:f.row,score:f.score+u[f.row.type]})).sort((f,h)=>h.score-f.score).map(f=>f.row),p=e==="terminal"?[{type:"run",text:r}]:e==="browser"?[{type:"open",text:r}]:[],m={type:"ask",text:r};return[...p,...d.slice(0,nqe-p.length-1),m]}function Zde(t,e,n){return n.trim()?e==="agent"?t.length-1:0:-1}function rqe(t){switch(t.type){case"tab":case"workspace":case"session":return[t.title,t.detail];case"folder":return[t.path,t.path.split("/").pop()];case"command":return[t.command];case"history":return[t.title,t.url.replace(/^https?:\/\/(www\.)?/,"")];default:return[]}}var ht=R(ee(),1),sg=["terminal","browser","agent"],fx="acpmux-focus-location",rL=["same-kind","terminal","browser","agent","page","auto"],Aa={kinds:{terminal:"newTabPage.kind.terminal",browser:"newTabPage.kind.browser",agent:"newTabPage.kind.agent"},placeholder:{terminal:(t,e)=>e?t("newTabPage.placeholder.terminalIn",{folder:e}):t("newTabPage.placeholder.terminal"),browser:t=>t("newTabPage.placeholder.browser"),agent:(t,e)=>t("newTabPage.placeholder.agent",{agent:e})},switchLabel:"newTabPage.switchLabel",editShortcut:"newTabPage.editShortcut",open:"newTabPage.open",suggestions:"newTabPage.suggestions",rows:{tab:"newTabPage.row.tab",workspace:"newTabPage.row.workspace",session:"newTabPage.row.session",folder:"newTabPage.row.folder",command:"newTabPage.row.command",history:"newTabPage.row.history",run:"newTabPage.row.run",open:"newTabPage.row.open"},ask:"newTabPage.ask",defaultKind:"newTabPage.defaultKind",defaultKinds:{"same-kind":"newTabPage.defaultKind.sameKind",terminal:"newTabPage.defaultKind.terminal",browser:"newTabPage.defaultKind.browser",agent:"newTabPage.defaultKind.agent",page:"newTabPage.defaultKind.page",auto:"newTabPage.defaultKind.auto"},defaultKindHint:"newTabPage.defaultKindHint",allSessions:"newTabPage.allSessions",thisMac:"newTabPage.thisMac"};function iL(t){let e=t.newTab;if(e!==!0&&(typeof e!="object"||e===null))return;let n=typeof e=="object"?e:{},r=typeof n.hotkeys=="object"&&n.hotkeys!==null?n.hotkeys:{},i={};for(let l of sg)typeof r[l]=="string"&&r[l]&&(i[l]=r[l]);let o=sg.includes(n.kind)?n.kind:"agent",a=typeof n.cwd=="string"?n.cwd:typeof t.cwd=="string"?t.cwd:void 0,s=Ude(n.omnibar);return{hotkeys:i,initialKind:o,...a?{cwd:a}:{},...typeof n.host=="string"?{host:n.host}:{},...typeof n.location=="string"&&n.location?{location:n.location}:{},...s?{omnibar:s}:{},...Array.isArray(n.projects)?{projects:n.projects.filter(l=>typeof l=="string"&&l.length>0).slice(0,ag)}:{},...rL.includes(n.defaultKind)?{defaultKind:n.defaultKind}:{},layout:n.layout==="a"?"a":"b",...typeof n.lastAgent=="string"&&n.lastAgent?{lastAgent:n.lastAgent}:{},...typeof n.home=="string"&&n.home.startsWith("/")?{home:n.home}:{}}}var iqe=6,oqe={"!":"terminal","?":"agent"};function aqe(t,e){if(t!==""||e.length===0)return;let n=oqe[e[0]];return n?{kind:n,text:e.slice(1)}:void 0}function sqe(t,e=1){let n=sg.indexOf(t);return sg[(n+e+sg.length)%sg.length]}function yF(t,e=iqe){let n=t.map(i=>h_(i)),r=i=>S2(i,!1)==="input"?0:1;return n.sort((i,o)=>r(i)-r(o)||(o.updatedAt??0)-(i.updatedAt??0)).slice(0,e)}function Kde(t,e=Date.now(),n=we){if(!t)return"";let r=Math.max(0,Math.round((e-t)/6e4));if(r<1)return n("age.now");if(r<60)return n("age.minutes",{n:r});let i=Math.round(r/60);return i<24?n("age.hours",{n:i}):n("age.days",{n:Math.round(i/24)})}function Xde(t){let e=(0,Nu.c)(146),{snapshot:n,hotkeys:r,initialKind:i,cwd:o,host:a,chips:s,omnibar:l,location:c,defaultKind:u,onSetDefaultKind:d,projects:p,onSubmit:m,onJump:f,onOpenSession:h,onShowAll:x,onEditShortcut:g,onImport:y,onBrowseProject:b}=t,w=r===void 0?{}:r,v=i===void 0?"agent":i,k=l===void 0?nL:l,_;e[0]!==p?(_=p===void 0?[]:p,e[0]=p,e[1]=_):_=e[1];let L=_,S=ve(),[C,T]=(0,Xo.useState)(v),[M,A]=(0,Xo.useState)(u),[$,N]=(0,Xo.useState)(o),[F,D]=(0,Xo.useState)(c??""),[O,B]=(0,Xo.useState)(!1),P=O?F:"",[U,G]=(0,Xo.useState)(-1),j=(0,Xo.useRef)(!1),V=(0,Xo.useRef)(null),[H,ne]=(0,Xo.useState)(),J=(0,Xo.useRef)(null),W=(0,Xo.useRef)(!1),ie;e[2]!==n.sessions?(ie=yF(n.sessions),e[2]=n.sessions,e[3]=ie):ie=e[3];let Z=ie,le;e[4]!==C||e[5]!==k||e[6]!==P||e[7]!==Z?(le=Vde(P,C,{...k,sessions:Z.map(lqe)}),e[4]=C,e[5]=k,e[6]=P,e[7]=Z,e[8]=le):le=e[8];let se=le,ge;e[9]!==C||e[10]!==P||e[11]!==se||e[12]!==G?(ge=()=>G(Zde(se,C,P)),e[9]=C,e[10]=P,e[11]=se,e[12]=G,e[13]=ge):ge=e[13];let ce;e[14]!==C||e[15]!==P||e[16]!==se?(ce=[se,C,P],e[14]=C,e[15]=P,e[16]=se,e[17]=ce):ce=e[17],(0,Xo.useEffect)(ge,ce);let be,ke;e[18]!==U?(be=()=>{V.current?.querySelector(`#acpmux-omni-${U}`)?.scrollIntoView?.({block:"nearest"})},ke=[U],e[18]=U,e[19]=be,e[20]=ke):(be=e[19],ke=e[20]),(0,Xo.useEffect)(be,ke);let me;e[21]!==$?(me=$?wi($):void 0,e[21]=$,e[22]=me):me=e[22];let Se=me,de,Le;if(e[23]!==C||e[24]!==$||e[25]!==n.catalog||e[26]!==n.summary?.harness||e[27]!==S){let Ge=$?wi($):"";de=Hf(n.summary?.harness??n.catalog[0]?.id??"agent"),Le=Aa.placeholder[C](S,C==="agent"?de:Ge),e[23]=C,e[24]=$,e[25]=n.catalog,e[26]=n.summary?.harness,e[27]=S,e[28]=de,e[29]=Le}else de=e[28],Le=e[29];let Ne=Le,Be,_e;e[30]===Symbol.for("react.memo_cache_sentinel")?(Be=()=>{let Ge=()=>{J.current?.focus(),J.current?.select()};Ge();let dn=J.current?.ownerDocument.defaultView;return dn?.addEventListener(fx,Ge),()=>dn?.removeEventListener(fx,Ge)},_e=[],e[30]=Be,e[31]=_e):(Be=e[30],_e=e[31]),(0,Xo.useEffect)(Be,_e);let xe=Ge=>{T(Ge),ne(void 0),J.current?.focus()},Ce;e[32]!==f||e[33]!==h||e[34]!==m||e[35]!==$?(Ce=Ge=>{switch(Ge.type){case"tab":case"workspace":return f?.(Ge.type,Ge.id);case"session":return h(Ge.id);case"folder":return m("terminal","",Ge.path);case"command":return m("terminal",Ge.command,$);case"history":return m("browser",Ge.url);case"run":return m("terminal",Ge.text,$);case"open":return m("browser",Ge.text);case"ask":return m("agent",Ge.text,$)}},e[32]=f,e[33]=h,e[34]=m,e[35]=$,e[36]=Ce):Ce=e[36];let K=Ce,Y;e[37]!==K||e[38]!==C||e[39]!==m||e[40]!==$||e[41]!==P||e[42]!==se||e[43]!==U?(Y=Ge=>{Ge?.preventDefault();let dn=se[U];if(dn)return K(dn);C==="browser"&&!P.trim()||m(C,P.trim(),C==="browser"?void 0:$)},e[37]=K,e[38]=C,e[39]=m,e[40]=$,e[41]=P,e[42]=se,e[43]=U,e[44]=Y):Y=e[44];let ye=Y,Re;e[45]!==H||e[46]!==se.length||e[47]!==G||e[48]!==F?(Re=Ge=>{if(W.current||Ge.nativeEvent.isComposing)return;let dn=Ge.currentTarget;if(j.current=dn.value!==""&&dn.selectionStart===0&&dn.selectionEnd===dn.value.length,(Ge.key==="ArrowDown"||Ge.key==="ArrowUp")&&se.length){Ge.preventDefault();let pt=Ge.key==="ArrowDown"?1:-1;G(vs=>vs<0&&pt<0?se.length-1:(vs+pt+se.length)%se.length)}else Ge.key==="Escape"&&F?(Ge.preventDefault(),D(""),B(!0)):Ge.key==="Tab"&&!Ge.altKey&&!Ge.metaKey&&!Ge.ctrlKey?(Ge.preventDefault(),ne(void 0),T(pt=>sqe(pt,Ge.shiftKey?-1:1))):Ge.key==="Backspace"&&F===""&&H&&(Ge.preventDefault(),T(H),ne(void 0))},e[45]=H,e[46]=se.length,e[47]=G,e[48]=F,e[49]=Re):Re=e[49];let Ke=Re,mt;e[50]!==C||e[51]!==F?(mt=Ge=>{B(!0);let dn=W.current?void 0:aqe(j.current?"":F,Ge);if(j.current=!1,dn&&dn.kind!==C){ne(C),T(dn.kind),D(dn.text);return}D(Ge)},e[50]=C,e[51]=F,e[52]=mt):mt=e[52];let dt=mt,Ae="acpmux-newtab",wt="acpmux-newtab-box",Tt="acpmux-newtab-row",Ot;e[53]!==C?(Ot=(0,ht.jsx)(lg,{kind:C}),e[53]=C,e[54]=Ot):Ot=e[54];let zt=U>=0?`acpmux-omni-${U}`:void 0,Ve=C==="agent",Jt;e[55]!==dt?(Jt=Ge=>dt(Ge.target.value),e[55]=dt,e[56]=Jt):Jt=e[56];let rn,Rn;e[57]===Symbol.for("react.memo_cache_sentinel")?(rn=()=>{W.current=!0},Rn=()=>{W.current=!1},e[57]=rn,e[58]=Rn):(rn=e[57],Rn=e[58]);let St;e[59]!==Ke||e[60]!==Ne||e[61]!==zt||e[62]!==Ve||e[63]!==Jt||e[64]!==F?(St=(0,ht.jsx)("input",{ref:J,className:"acpmux-newtab-field","aria-label":Ne,placeholder:Ne,value:F,"aria-controls":"acpmux-omni","aria-activedescendant":zt,spellCheck:Ve,autoCapitalize:"off",autoCorrect:"off",onChange:Jt,onKeyDown:Ke,onCompositionStart:rn,onCompositionEnd:Rn}),e[59]=Ke,e[60]=Ne,e[61]=zt,e[62]=Ve,e[63]=Jt,e[64]=F,e[65]=St):St=e[65];let An="acpmux-newtab-switch",Xt;e[66]!==S?(Xt=S(Aa.switchLabel),e[66]=S,e[67]=Xt):Xt=e[67];let zn=sg.map(Ge=>(0,ht.jsxs)("button",{type:"button","aria-pressed":Ge===C,tabIndex:-1,className:Ge===C?"acpmux-newtab-kind is-selected":"acpmux-newtab-kind",title:w[Ge]?S(Aa.editShortcut,{kind:S(Aa.kinds[Ge]),keys:w[Ge]}):void 0,onClick:()=>xe(Ge),onContextMenu:dn=>{g&&(dn.preventDefault(),g(Ge))},children:[(0,ht.jsx)(lg,{kind:Ge}),(0,ht.jsx)("span",{children:S(Aa.kinds[Ge])}),w[Ge]&&(0,ht.jsx)("kbd",{children:w[Ge]})]},Ge)),Dt;e[68]!==Xt||e[69]!==zn?(Dt=(0,ht.jsx)("fieldset",{className:An,"aria-label":Xt,children:zn}),e[68]=Xt,e[69]=zn,e[70]=Dt):Dt=e[70];let mn;e[71]!==Ot||e[72]!==St||e[73]!==Dt?(mn=(0,ht.jsxs)("div",{className:Tt,children:[Ot,St,Dt]}),e[71]=Ot,e[72]=St,e[73]=Dt,e[74]=mn):mn=e[74];let yn;e[75]!==C||e[76]!==b||e[77]!==$||e[78]!==L||e[79]!==Se||e[80]!==N?(yn=C!=="browser"&&(0,ht.jsx)(Gde,{projects:L,current:$,currentLabel:Se,icon:(0,ht.jsx)(Yde,{}),onPick:N,onBrowse:b}),e[75]=C,e[76]=b,e[77]=$,e[78]=L,e[79]=Se,e[80]=N,e[81]=yn):yn=e[81];let In;e[82]!==a||e[83]!==C||e[84]!==S?(In=C==="terminal"&&(0,ht.jsxs)("span",{className:"acpmux-newtab-chip",children:[(0,ht.jsx)(pqe,{}),a??S(Aa.thisMac)]}),e[82]=a,e[83]=C,e[84]=S,e[85]=In):In=e[85];let er;e[86]!==de||e[87]!==C?(er=C==="agent"&&(0,ht.jsxs)("span",{className:"acpmux-newtab-chip",children:[(0,ht.jsx)(lg,{kind:"agent"}),de]}),e[86]=de,e[87]=C,e[88]=er):er=e[88];let ae;e[89]!==s||e[90]!==C||e[91]!==n?(ae=C==="agent"&&s&&(0,ht.jsx)(s,{snapshot:n}),e[89]=s,e[90]=C,e[91]=n,e[92]=ae):ae=e[92];let st;e[93]!==yn||e[94]!==In||e[95]!==er||e[96]!==ae?(st=(0,ht.jsxs)("span",{className:"acpmux-newtab-context",children:[yn,In,er,ae]}),e[93]=yn,e[94]=In,e[95]=er,e[96]=ae,e[97]=st):st=e[97];let Mt;e[98]!==M||e[99]!==d||e[100]!==A||e[101]!==S?(Mt=M&&d&&(0,ht.jsx)("button",{type:"button",className:"acpmux-newtab-default",title:S(Aa.defaultKindHint),onClick:()=>{let Ge=rL[(rL.indexOf(M)+1)%rL.length];A(Ge),d(Ge)},children:S(Aa.defaultKind,{kind:S(Aa.defaultKinds[M])})}),e[98]=M,e[99]=d,e[100]=A,e[101]=S,e[102]=Mt):Mt=e[102];let Ye=`acpmux-send${P.trim()||C!=="browser"?" acpmux-send-ready":""}`,vt;e[103]!==S?(vt=S(Aa.open),e[103]=S,e[104]=vt):vt=e[104];let jn;e[105]!==S?(jn=S(Aa.open),e[105]=S,e[106]=jn):jn=e[106];let Kn=`${jn} \u21B5`,un;e[107]===Symbol.for("react.memo_cache_sentinel")?(un=(0,ht.jsx)(tL,{}),e[107]=un):un=e[107];let it;e[108]!==Ye||e[109]!==vt||e[110]!==Kn?(it=(0,ht.jsx)("button",{type:"submit",className:Ye,"aria-label":vt,title:Kn,children:un}),e[108]=Ye,e[109]=vt,e[110]=Kn,e[111]=it):it=e[111];let ft;e[112]!==st||e[113]!==Mt||e[114]!==it?(ft=(0,ht.jsxs)("div",{className:"acpmux-newtab-under",children:[st,Mt,it]}),e[112]=st,e[113]=Mt,e[114]=it,e[115]=ft):ft=e[115];let En;e[116]!==ye||e[117]!==mn||e[118]!==ft?(En=(0,ht.jsxs)("form",{className:wt,onSubmit:ye,children:[mn,ft]}),e[116]=ye,e[117]=mn,e[118]=ft,e[119]=En):En=e[119];let jt;e[120]!==K||e[121]!==de||e[122]!==se||e[123]!==U||e[124]!==G||e[125]!==n.catalog||e[126]!==n.summary?.harness||e[127]!==S?(jt=se.length>0&&(0,ht.jsx)("div",{ref:V,className:"acpmux-omni",id:"acpmux-omni",role:"listbox","aria-label":S(Aa.suggestions),children:se.map((Ge,dn)=>(0,ht.jsxs)("div",{id:`acpmux-omni-${dn}`,role:"option",tabIndex:-1,"aria-selected":dn===U,className:dn===U?"acpmux-omni-row is-selected":"acpmux-omni-row",onMouseMove:()=>dn!==U&&G(dn),onMouseDown:pt=>{pt.preventDefault(),K(Ge)},children:[(0,ht.jsx)(dqe,{row:Ge,agent:n.summary?.harness??n.catalog[0]?.id}),(0,ht.jsxs)("span",{className:"acpmux-omni-text",children:[(0,ht.jsxs)("span",{className:"acpmux-omni-title",children:[Ge.type==="ask"&&(0,ht.jsxs)("b",{children:[S(Aa.ask,{agent:de}),": "]}),uqe(Ge)]}),Wde(Ge)&&(0,ht.jsx)("span",{className:"acpmux-omni-detail",children:Wde(Ge)})]}),(0,ht.jsxs)("span",{className:"acpmux-omni-action",children:[Ge.type==="ask"?S(Aa.ask,{agent:de}):S(Aa.rows[Ge.type]),dn===U&&(0,ht.jsx)("kbd",{children:"\u21B5"})]})]},cqe(Ge)))}),e[120]=K,e[121]=de,e[122]=se,e[123]=U,e[124]=G,e[125]=n.catalog,e[126]=n.summary?.harness,e[127]=S,e[128]=jt):jt=e[128];let Nt;e[129]!==S?(Nt=S(Aa.allSessions),e[129]=S,e[130]=Nt):Nt=e[130];let mi;e[131]===Symbol.for("react.memo_cache_sentinel")?(mi=(0,ht.jsx)(hqe,{}),e[131]=mi):mi=e[131];let Ei;e[132]!==x||e[133]!==Nt?(Ei=(0,ht.jsxs)("button",{type:"button",className:"acpmux-newtab-all",onClick:x,children:[Nt,mi]}),e[132]=x,e[133]=Nt,e[134]=Ei):Ei=e[134];let Ti;e[135]!==y||e[136]!==S?(Ti=y&&(0,ht.jsx)("button",{type:"button",className:"acpmux-newtab-all",onClick:y,children:S("newtab.importAndSync")}),e[135]=y,e[136]=S,e[137]=Ti):Ti=e[137];let Ua;e[138]!==Ei||e[139]!==Ti?(Ua=(0,ht.jsxs)("div",{className:"acpmux-newtab-actions",children:[Ei,Ti]}),e[138]=Ei,e[139]=Ti,e[140]=Ua):Ua=e[140];let fl;return e[141]!==C||e[142]!==En||e[143]!==jt||e[144]!==Ua?(fl=(0,ht.jsxs)("div",{className:Ae,"data-kind":C,children:[En,jt,Ua]}),e[141]=C,e[142]=En,e[143]=jt,e[144]=Ua,e[145]=fl):fl=e[145],fl}function lqe(t){return{sessionId:t.sessionId,title:t.displayTitle??t.sessionId,...t.harness?{harness:t.harness}:{},detail:wi(t.cwd)}}function cqe(t){switch(t.type){case"tab":case"workspace":case"session":return`${t.type}:${t.id}`;case"folder":return`folder:${t.path}`;case"command":return`command:${t.command}`;case"history":return`history:${t.url}`;default:return t.type}}function uqe(t){switch(t.type){case"tab":case"workspace":case"session":return t.title;case"folder":return wi(t.path);case"command":return t.command;case"history":return t.title||t.url;default:return t.text}}function Wde(t){switch(t.type){case"tab":case"workspace":case"session":return t.detail;case"folder":return wse(t.path);case"history":return t.title?t.url.replace(/^https?:\/\//,""):void 0;default:return}}function dqe(t){let e=(0,Nu.c)(11),{row:n,agent:r}=t;switch(n.type){case"tab":{let i;return e[0]!==n.kind?(i=(0,ht.jsx)(lg,{kind:n.kind}),e[0]=n.kind,e[1]=i):i=e[1],i}case"workspace":{let i;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(mqe,{}),e[2]=i):i=e[2],i}case"session":{let i;return e[3]!==n.harness?(i=(0,ht.jsx)(ly,{harness:n.harness}),e[3]=n.harness,e[4]=i):i=e[4],i}case"folder":{let i;return e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(Yde,{}),e[5]=i):i=e[5],i}case"command":case"run":{let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(lg,{kind:"terminal"}),e[6]=i):i=e[6],i}case"history":{let i;return e[7]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(fqe,{}),e[7]=i):i=e[7],i}case"open":{let i;return e[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,ht.jsx)(lg,{kind:"browser"}),e[8]=i):i=e[8],i}case"ask":{let i;return e[9]!==r?(i=(0,ht.jsx)(ly,{harness:r}),e[9]=r,e[10]=i):i=e[10],i}}}function ly(t){let e=(0,Nu.c)(2),{harness:n}=t,r;return e[0]!==n?(r=L6(n)?(0,ht.jsx)(E6,{agent:n,size:16}):(0,ht.jsx)(lg,{kind:"agent"}),e[0]=n,e[1]=r):r=e[1],r}function N1(t){let e=(0,Nu.c)(2),{children:n}=t,r;return e[0]!==n?(r=(0,ht.jsx)("svg",{className:"acpmux-icon",width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:n}),e[0]=n,e[1]=r):r=e[1],r}function lg(t){let e=(0,Nu.c)(3),{kind:n}=t;switch(n){case"terminal":{let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,ht.jsxs)(N1,{children:[(0,ht.jsx)("rect",{x:"1.75",y:"2.75",width:"12.5",height:"10.5",rx:"2"}),(0,ht.jsx)("path",{d:"m4.6 6.2 2 1.8-2 1.8M8.4 10h3"})]}),e[0]=r):r=e[0],r}case"browser":{let r;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,ht.jsxs)(N1,{children:[(0,ht.jsx)("circle",{cx:"8",cy:"8",r:"6.1"}),(0,ht.jsx)("path",{d:"M1.9 8h12.2M8 1.9c1.7 1.7 2.5 3.7 2.5 6.1S9.7 12.4 8 14.1C6.3 12.4 5.5 10.4 5.5 8S6.3 3.6 8 1.9Z"})]}),e[1]=r):r=e[1],r}case"agent":{let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,ht.jsxs)(N1,{children:[(0,ht.jsx)("path",{d:"M8 1.9c.4 2.9 1.6 4.1 4.6 4.6-3 .5-4.2 1.7-4.6 4.6-.4-2.9-1.6-4.1-4.6-4.6 3-.5 4.2-1.7 4.6-4.6Z"}),(0,ht.jsx)("path",{d:"M12.4 10.4c.15 1.1.6 1.55 1.7 1.7-1.1.15-1.55.6-1.7 1.7-.15-1.1-.6-1.55-1.7-1.7 1.1-.15 1.55-.6 1.7-1.7Z"})]}),e[2]=r):r=e[2],r}}}var Yde=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsx)(N1,{children:(0,ht.jsx)("path",{d:"M1.9 4.6c0-.8.6-1.4 1.4-1.4h2.6l1.5 1.6h5.3c.8 0 1.4.6 1.4 1.4v5.6c0 .8-.6 1.4-1.4 1.4H3.3c-.8 0-1.4-.6-1.4-1.4Z"})}),t[0]=e):e=t[0],e},pqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsxs)(N1,{children:[(0,ht.jsx)("rect",{x:"3",y:"3.4",width:"10",height:"7",rx:"1.2"}),(0,ht.jsx)("path",{d:"M1.6 12.6h12.8"})]}),t[0]=e):e=t[0],e},mqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsxs)(N1,{children:[(0,ht.jsx)("rect",{x:"2",y:"2.6",width:"12",height:"10.8",rx:"2"}),(0,ht.jsx)("path",{d:"M6.2 2.6v10.8"})]}),t[0]=e):e=t[0],e},fqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsxs)(N1,{children:[(0,ht.jsx)("circle",{cx:"8",cy:"8",r:"6.1"}),(0,ht.jsx)("path",{d:"M8 4.6V8l2.3 1.5"})]}),t[0]=e):e=t[0],e},hqe=()=>{let t=(0,Nu.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ht.jsx)(N1,{children:(0,ht.jsx)("path",{d:"m6.3 4.6 3.3 3.4-3.3 3.4"})}),t[0]=e):e=t[0],e};var dpe=R(qe(),1),Js=R(Q(),1);var epe=R(qe(),1);var Jde=R(qe(),1);function gqe(t,e={},n=Ob()){return WI(`newTab.${t}`,e,n)}var Qde=new Map;function oL(){let t=(0,Jde.c)(4),e=XI(),n;t[0]!==e?(n=Qde.get(e),t[0]=e,t[1]=n):n=t[1];let r=n;if(!r){let i;t[2]!==e?(i=(o,a)=>gqe(o,a,e),t[2]=e,t[3]=i):i=t[3],r=i,Qde.set(e,r)}return r}var $a=R(ee(),1);function tpe(t){let e=(0,epe.c)(25),{cards:n,onOpen:r,onShowAll:i}=t,o=oL(),a;e[0]!==o?(a=o("sections"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==o?(s=o("chats"),e[2]=o,e[3]=s):s=e[3];let l;e[4]!==s?(l=(0,$a.jsx)("span",{className:"nt-chats-tab is-selected",children:s}),e[4]=s,e[5]=l):l=e[5];let c;e[6]!==i?(c=()=>i(),e[6]=i,e[7]=c):c=e[7];let u;e[8]!==o?(u=o("allChats"),e[8]=o,e[9]=u):u=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,$a.jsx)("svg",{viewBox:"0 0 16 16",width:"12",height:"12","aria-hidden":"true",children:(0,$a.jsx)("path",{d:"m6 3.5 4.5 4.5L6 12.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),e[10]=d):d=e[10];let p;e[11]!==c||e[12]!==u?(p=(0,$a.jsxs)("button",{type:"button",className:"nt-chats-all",onClick:c,children:[u,d]}),e[11]=c,e[12]=u,e[13]=p):p=e[13];let m;e[14]!==l||e[15]!==p?(m=(0,$a.jsxs)("header",{className:"nt-chats-head",children:[l,p]}),e[14]=l,e[15]=p,e[16]=m):m=e[16];let f;e[17]!==n||e[18]!==o||e[19]!==r?(f=n.length===0?(0,$a.jsx)("p",{className:"nt-chats-empty",children:o("noChats")}):(0,$a.jsx)("div",{className:"nt-cards",children:n.map(x=>(0,$a.jsxs)("button",{type:"button",className:"nt-card","data-state":x.state,"aria-label":o("card.open",{title:x.title}),onClick:()=>r(x.sessionId),children:[(0,$a.jsxs)("span",{className:"nt-card-meta",children:[(0,$a.jsx)(ly,{harness:x.harness}),(0,$a.jsx)("span",{className:"nt-card-age",children:x.age})]}),(0,$a.jsx)("span",{className:"nt-card-title",children:x.title}),(0,$a.jsx)("span",{className:"nt-card-message",children:x.state==="idle"?x.message??"":o(`card.${x.state}`)})]},x.sessionId))}),e[17]=n,e[18]=o,e[19]=r,e[20]=f):f=e[20];let h;return e[21]!==a||e[22]!==m||e[23]!==f?(h=(0,$a.jsxs)("section",{className:"nt-chats","aria-label":a,children:[m,f]}),e[21]=a,e[22]=m,e[23]=f,e[24]=h):h=e[24],h}var bqe=new Set(["c","cc","cfg","cjs","conf","cpp","cs","css","csv","dart","env","ex","exs","gif","go","gradle","gz","h","hpp","html","ini","java","jpeg","jpg","js","json","jsx","kt","lock","log","lua","md","mdx","mjs","mts","nix","pdf","php","pl","plist","png","py","rb","rs","scss","sh","sql","svelte","svg","swift","tar","toml","ts","tsx","txt","vue","xml","yaml","yml","zig","zip","zsh"]);function ipe(t,e={}){let n=t.trim();if(!n)return{kind:"none"};if(n.startsWith("!"))return{kind:"terminal",command:n.slice(1).trim()};let r=yqe(n,e.home);return r?{kind:"url",url:r}:{kind:"prompt",text:n}}function yqe(t,e){let n=t.trim();if(!n)return;let r=xqe(n);if(r===void 0)return;let i=wqe(r,e);if(i!==void 0)return i;if(/\s/u.test(r))return;let o=vqe(r);if(o!==void 0)return kqe(r,o);if(!Eqe(r))return _qe(r)}function xqe(t){let e=t.search(/[\n\r\t]/);if(e<0)return t;let n=t.indexOf("://"),r=n<0?0:n+3;if(r>e)return;let i=t.slice(r).search(/[/?#]/);if(i<0||r+i>=e)return;let o=t.replace(/[\n\r\t]/g,"");return/\s/u.test(o)?void 0:o}function wqe(t,e){if(t.startsWith("/"))return"file://"+npe(t);if(!e||t!=="~"&&!t.startsWith("~/"))return;let n=e.endsWith("/")?e:e+"/";return"file://"+npe(t==="~"?n:n+t.slice(2))}var npe=t=>t.split("/").map(encodeURIComponent).join("/"),rpe=t=>/^[0-9]+$/.test(t)&&Number(t)<=65535;function vqe(t){let e=t.indexOf(":");if(e<0)return;let n=t.slice(0,e);if(!/^\p{L}[\p{L}\p{N}+.-]*$/u.test(n))return;let r=t.slice(e+1),i=/^[0-9]*/.exec(r)[0];if(i&&!r.startsWith("//")){let o=r.slice(i.length);if(!o||"/?#".includes(o[0]))return}return n.toLowerCase()}function kqe(t,e){switch(e){case"http":case"https":return Cqe(t)?t:void 0;case"file":return/^file:\/\/\//i.test(t)?t:void 0;case"about":return t.toLowerCase()==="about:blank"?"about:blank":void 0;default:return}}function Cqe(t){let e=/^[^:]+:\/\/([^/?#]*)/.exec(t);if(!e)return"";let n=e[1].replace(/^[^@]*@/,"");return n.startsWith("[")?n.slice(1,n.indexOf("]")):n.replace(/:[0-9]*$/,"")}function _qe(t){let e=t.search(/[/?#]/),n=e<0?t:t.slice(0,e);if(!n||n.includes("@"))return;let{host:r,hasPort:i}=Sqe(n);if(r){if(Lqe(r))return"http://"+t;if(i||Mqe(r))return"https://"+t}}function Sqe(t){let e=t.toLowerCase();if(e.startsWith("[")){let r=e.indexOf("]");if(r<0)return{host:"",hasPort:!1};let i=e.slice(1,r),o=e.slice(r+1);return o?o.startsWith(":")&&rpe(o.slice(1))?{host:i,hasPort:!0}:{host:"",hasPort:!1}:{host:i,hasPort:!1}}let n=e.indexOf(":");return n<0?{host:e,hasPort:!1}:rpe(e.slice(n+1))?{host:e.slice(0,n),hasPort:!0}:{host:"",hasPort:!1}}function Lqe(t){if(t==="localhost"||t.endsWith(".localhost")||t==="::1"||t==="0.0.0.0")return!0;let e=t.split(".");return e.length===4&&e[0]==="127"&&e.every(ope)}var ope=t=>/^[0-9]+$/.test(t)&&Number(t)<=255;function Mqe(t){let e=t.split(".");if(e.length<2||e.some(r=>!r))return!1;if(e.length===4&&e.every(ope))return!0;let n=e[e.length-1];return/^\p{L}{2,}$/u.test(n)||n.startsWith("xn--")}function Eqe(t){if(/[/?#:]/.test(t))return!1;let e=t.toLowerCase();if(e.startsWith("www."))return!1;let n=e.lastIndexOf(".");return n>0&&bqe.has(e.slice(n+1))}var Tqe=4,Rqe=4,Aqe=3;function $qe(t,e){let n=t.find(i=>i.id===e),r=t.filter(i=>i!==n);return(n?[n,...r]:r).slice(0,Tqe)}function spe(t,e){let n=ipe(t,e.home?{home:e.home}:{});if(n.kind==="none"||n.kind==="terminal")return[];let r=t.trim(),i=new Map;for(let l of e.agents)i.set(l.name,(i.get(l.name)??0)+1);let o=$qe(e.agents,e.lastAgent).map(l=>({type:"agent",harness:l.id,name:(i.get(l.name)??0)>1?`${l.name} (${l.id})`:l.name,text:r})),a={type:"search",text:r};return[...n.kind==="url"?[{type:"open",url:n.url,text:r},a,...o]:[...o,a],...Iqe(r,e.omnibar)]}function Iqe(t,e){return[...e.tabs.map(r=>({row:{type:"tab",id:r.id,title:r.title,...r.detail?{detail:r.detail}:{}},score:mx(t,r.title,r.detail)+.6})),...e.workspaces.map(r=>({row:{type:"workspace",id:r.id,title:r.name,...r.detail?{detail:r.detail}:{}},score:mx(t,r.name,r.detail)+.5})),...e.history.map(r=>({row:{type:"history",url:r.url,...r.title?{title:r.title}:{}},score:mx(t,r.title,r.url.replace(/^https?:\/\/(www\.)?/,""))+.1}))].filter(r=>r.score>=1).sort((r,i)=>i.score-r.score).slice(0,Rqe).map(r=>r.row)}function lpe(t,e,n){if(!(t!==""&&!n)&&e.startsWith("!"))return{command:e.slice("!".length).replace(/^\s+/,"")}}function cpe(t,e=Date.now(),n=we){return yF(t,Aqe).map(r=>({sessionId:r.sessionId,title:r.displayTitle??r.sessionId,...r.harness?{harness:r.harness}:{},age:Kde(r.updatedAt,e,n),...r.preview?{message:r.preview}:{},state:S2(r,!1)??"idle"}))}var ls=R(ee(),1);function ppe(t){let e=(0,dpe.c)(74),n=oL(),{snapshot:r,omnibar:i,location:o,lastAgent:a,home:s,now:l}=t,c=i===void 0?nL:i,[u,d]=(0,Js.useState)(o??""),[p,m]=(0,Js.useState)(!1),[f,h]=(0,Js.useState)(0),[x,g]=(0,Js.useState)(!1),y=(0,Js.useRef)(null),b=(0,Js.useRef)(!1),w=(0,Js.useRef)(!1),v=(0,Js.useRef)(!1),k;e[0]!==t?(k=()=>{v.current||(v.current=!0,t.onTouched?.())},e[0]=t,e[1]=k):k=e[1];let _=k,L;e[2]!==r.catalog?(L=r.catalog.map(Nqe),e[2]=r.catalog,e[3]=L):L=e[3];let S=L,C;e[4]!==S||e[5]!==s||e[6]!==a||e[7]!==c||e[8]!==x||e[9]!==u||e[10]!==p?(C=p&&!x?spe(u,{agents:S,omnibar:c,lastAgent:a,home:s}):[],e[4]=S,e[5]=s,e[6]=a,e[7]=c,e[8]=x,e[9]=u,e[10]=p,e[11]=C):C=e[11];let T=C,M=ve(),A;e[12]!==l||e[13]!==r.sessions||e[14]!==M?(A=cpe(r.sessions,l,M),e[12]=l,e[13]=r.sessions,e[14]=M,e[15]=A):A=e[15];let $=A,N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=()=>h(0),e[16]=N):N=e[16];let F;e[17]!==T?(F=[T],e[17]=T,e[18]=F):F=e[18],(0,Js.useEffect)(N,F);let D,O;e[19]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{let de=()=>{y.current?.focus(),y.current?.select()};de();let Le=y.current?.ownerDocument.defaultView;return Le?.addEventListener(fx,de),()=>Le?.removeEventListener(fx,de)},O=[],e[19]=D,e[20]=O):(D=e[19],O=e[20]),(0,Js.useLayoutEffect)(D,O);let B;e[21]!==t?(B=de=>{switch(de.type){case"agent":return t.onAsk(de.harness,de.text);case"search":return t.onSearch(de.text);case"open":return t.onOpen(de.url);case"history":return t.onOpen(de.url);case"tab":case"workspace":return t.onJump(de.type,de.id)}},e[21]=t,e[22]=B):B=e[22];let P=B,U;e[23]!==x||e[24]!==u||e[25]!==_?(U=de=>{_(),m(!0);let Le=w.current||x?void 0:lpe(u,de,b.current);if(b.current=!1,Le){g(!0),d(Le.command);return}d(de)},e[23]=x,e[24]=u,e[25]=_,e[26]=U):U=e[26];let G=U,j;e[27]!==P||e[28]!==t||e[29]!==T||e[30]!==f||e[31]!==x||e[32]!==u||e[33]!==_?(j=de=>{if(_(),w.current||de.nativeEvent.isComposing)return;let Le=de.currentTarget;if(x){if(de.key==="Enter"){de.preventDefault();let Ne=u.trim();Ne&&t.onShell(Ne)}else(de.key==="Escape"||de.key==="Backspace"&&Le.selectionEnd===0)&&(de.preventDefault(),g(!1));return}if(b.current=Le.value!==""&&Le.selectionStart===0&&Le.selectionEnd===Le.value.length,(de.key==="ArrowDown"||de.key==="ArrowUp")&&T.length){de.preventDefault();let Ne=de.key==="ArrowDown"?1:-1;h(Be=>(Be+Ne+T.length)%T.length)}else if(de.key==="Enter"){de.preventDefault();let Ne=T[f];Ne&&P(Ne)}else de.key==="Escape"&&u&&(de.preventDefault(),d(""),m(!0))},e[27]=P,e[28]=t,e[29]=T,e[30]=f,e[31]=x,e[32]=u,e[33]=_,e[34]=j):j=e[34];let V=j,H=x||void 0,ne;e[35]!==x?(ne=x&&(0,ls.jsx)("span",{className:"nt-shell-glyph","aria-hidden":"true",children:"!"}),e[35]=x,e[36]=ne):ne=e[36];let J;e[37]!==n||e[38]!==x||e[39]!==M?(J=x?M("composer.shell"):n("placeholder"),e[37]=n,e[38]=x,e[39]=M,e[40]=J):J=e[40];let W;e[41]!==n||e[42]!==x||e[43]!==M?(W=x?M("composer.shellPlaceholder"):n("placeholder"),e[41]=n,e[42]=x,e[43]=M,e[44]=W):W=e[44];let ie=T.length?`nt-row-${f}`:void 0,Z=!x,le;e[45]!==G?(le=de=>G(de.target.value),e[45]=G,e[46]=le):le=e[46];let se,ge;e[47]===Symbol.for("react.memo_cache_sentinel")?(se=()=>{w.current=!0},ge=()=>{w.current=!1},e[47]=se,e[48]=ge):(se=e[47],ge=e[48]);let ce;e[49]!==V||e[50]!==J||e[51]!==W||e[52]!==ie||e[53]!==Z||e[54]!==le||e[55]!==u?(ce=(0,ls.jsx)("input",{ref:y,className:"nt-field","aria-label":J,placeholder:W,value:u,"aria-controls":"nt-rows","aria-activedescendant":ie,spellCheck:Z,autoCapitalize:"off",autoCorrect:"off",onChange:le,onKeyDown:V,onCompositionStart:se,onCompositionEnd:ge}),e[49]=V,e[50]=J,e[51]=W,e[52]=ie,e[53]=Z,e[54]=le,e[55]=u,e[56]=ce):ce=e[56];let be;e[57]!==ne||e[58]!==ce?(be=(0,ls.jsxs)("div",{className:"nt-box",children:[ne,ce]}),e[57]=ne,e[58]=ce,e[59]=be):be=e[59];let ke;e[60]!==P||e[61]!==n||e[62]!==T||e[63]!==f?(ke=T.length>0&&(0,ls.jsx)("div",{className:"nt-rows",id:"nt-rows",role:"listbox","aria-label":n("suggestions"),children:T.map((de,Le)=>(0,ls.jsxs)("div",{id:`nt-row-${Le}`,role:"option",tabIndex:-1,"aria-selected":Le===f,"data-type":de.type,className:Le===f?"nt-row is-selected":"nt-row",onMouseMove:()=>Le!==f&&h(Le),onMouseDown:Ne=>{Ne.preventDefault(),P(de)},children:[de.type==="agent"?(0,ls.jsx)(ly,{harness:de.harness}):(0,ls.jsx)("span",{className:"nt-row-glyph"}),(0,ls.jsx)("span",{className:"nt-row-title",children:jqe(n,de)}),upe(de)&&(0,ls.jsx)("span",{className:"nt-row-detail",children:upe(de)}),(0,ls.jsxs)("span",{className:"nt-row-action",children:[Oqe(n,de),Le===f&&(0,ls.jsx)("kbd",{children:"\u21B5"})]})]},Pqe(de)))}),e[60]=P,e[61]=n,e[62]=T,e[63]=f,e[64]=ke):ke=e[64];let me;e[65]!==$||e[66]!==t.onOpenSession||e[67]!==t.onShowAll?(me=(0,ls.jsx)(tpe,{cards:$,onOpen:t.onOpenSession,onShowAll:t.onShowAll}),e[65]=$,e[66]=t.onOpenSession,e[67]=t.onShowAll,e[68]=me):me=e[68];let Se;return e[69]!==H||e[70]!==be||e[71]!==ke||e[72]!==me?(Se=(0,ls.jsxs)("div",{className:"nt-screen","data-shell":H,children:[be,ke,me]}),e[69]=H,e[70]=be,e[71]=ke,e[72]=me,e[73]=Se):Se=e[73],Se}function Nqe(t){return{id:t.id,name:t.name}}function Pqe(t){switch(t.type){case"agent":return`agent:${t.harness}`;case"tab":case"workspace":return`${t.type}:${t.id}`;case"history":return`history:${t.url}`;default:return t.type}}function jqe(t,e){switch(e.type){case"agent":return t("row.ask",{agent:e.name});case"search":case"open":return e.text;case"history":return e.title??e.url;default:return e.title}}function upe(t){switch(t.type){case"agent":return t.text;case"open":return t.url===t.text?void 0:t.url;case"history":return t.title?t.url.replace(/^https?:\/\/(www\.)?/,""):void 0;case"tab":case"workspace":return t.detail;default:return}}function Oqe(t,e){switch(e.type){case"agent":return"";case"search":return t("row.search");case"open":return t("row.open");case"tab":return t("row.tab");case"workspace":return t("row.workspace");case"history":return t("row.history")}}function mpe(t){let{callNative:e,cwd:n}=t,r=o=>{o.catch(()=>{})},i=o=>r(e("newTab.remember",{agent:o}));return{onAsk(o,a){i(o),t.leave();let s={harness:o,...n?{cwd:n}:{}};r(e("chat.new",s).then(()=>a?e("chat.send",{text:a}):void 0))},onOpen:o=>{if(o.startsWith("file://"))return r(e("file.open",{path:decodeURIComponent(new URL(o).pathname),where:"tab"}));r(e("tab.open",{kind:"browser",text:o}))},onSearch:o=>r(e("tab.open",{kind:"browser",text:o,search:!0})),onShell(o){t.leave(),t.runShell(o,n)},onJump:(o,a)=>r(e("tab.jump",{target:o,id:a})),onOpenSession(o){t.leave(),t.selectSession(o)},onShowAll:t.showAllChats,onTouched:()=>r(e("newTab.touched"))}}var hpe=R(qe(),1),aL=R(Q(),1),gpe=R(Ms(),1);var fpe="acpmux-newtab-adopt";function bpe(t){let e=(0,hpe.c)(3),[n,r]=(0,aL.useState)(0),i,o;return e[0]!==t?(i=()=>{let a=s=>{let l=iL({newTab:s.detail});l&&(0,gpe.flushSync)(()=>{t(l),r(Dqe)})};return window.addEventListener(fpe,a),()=>window.removeEventListener(fpe,a)},o=[t],e[0]=t,e[1]=i,e[2]=o):(i=e[1],o=e[2]),(0,aL.useEffect)(i,o),n}function Dqe(t){return t+1}function xF(t){return typeof t=="string"&&t.trim()?t:void 0}function ype(t,e){return e&&!t?e:t}var Fqe=/\bhttps?:\/\/[^\s<>"'`()[\]{}]+/g,Bqe=new Set(["localhost","127.0.0.1","0.0.0.0","[::1]"]);function zqe(t){let e=t.hostname.toLowerCase();if(!(!Bqe.has(e)&&!e.endsWith(".localhost")))return e==="0.0.0.0"&&(t.hostname="localhost"),t}var qqe=t=>/^(www\.)?github\.com$/i.test(t.hostname)&&/^\/[^/]+\/[^/]+\/pull\/\d+/.test(t.pathname);function Hqe(t){let e=t.text?[t.text]:[];for(let n of t.items??[])e.push(n.text,n.tool?.inputSummary??"",n.tool?.output??"");return e}function Gqe(t,e=20){let n=[],r=new Set;for(let i=t.length-1;i>=0;i-=1){let o=Hqe(t[i]);for(let a=o.length-1;a>=0;a-=1){let s=[...o[a].match(Fqe)??[]].reverse();for(let l of s){let c;try{c=new URL(l.replace(/[.,;:!?]+$/,""))}catch{continue}let u=zqe(c)?0:qqe(c)?1:void 0,d=c.toString();u===void 0||r.has(d)||(r.add(d),n.push({url:d,rank:u}))}}}return n.sort((i,o)=>i.rank-o.rank).map(i=>i.url).slice(0,e)}function xpe(t){let e=t.sessions.find(n=>n.sessionId===t.sessionId)?.cwd;return{...e?{cwd:e}:{},urls:Gqe(t.rows)}}var vpe=R(qe(),1);var Uqe=6e4;function kpe(){return new mI({defaultOptions:{queries:{retry:1}}})}var wpe="cmux.acpmux.harnessCatalog.v1",wF=class{constructor(e=Vqe){this.storage=e}storage;memory;loaded=!1;read(){if(this.loaded)return this.memory;this.loaded=!0;try{let e=JSON.parse(this.storage()?.getItem(wpe)??"null");e&&Array.isArray(e.catalog)&&typeof e.at=="number"&&(this.memory={catalog:e.catalog,at:e.at})}catch{}return this.memory}merge(e,n){let r=new Map((this.read()?.catalog??[]).map(o=>[o.id,o])),i=e.map(o=>o.models.length>0||!r.get(o.id)?.models.length?o:{...o,models:r.get(o.id).models});this.memory={catalog:i,at:n};try{this.storage()?.setItem(wpe,JSON.stringify(this.memory))}catch{}return i}};function Vqe(){try{return globalThis.localStorage}catch{return}}var Zqe=new wF;function Wqe(t){return["acpmux","harnesses",t]}function Cpe(t,e,n){let r=(0,vpe.c)(21),i=n===void 0?Zqe:n,o=t?.id??0,a;r[0]!==o?(a=Wqe(o),r[0]=o,r[1]=a):a=r[1];let s;r[2]!==i||r[3]!==t?(s=async()=>i.merge(await t.client.harnesses(),Date.now()),r[2]=i,r[3]=t,r[4]=s):s=r[4];let l=t!==void 0,c;r[5]!==i?(c=()=>i.read()?.catalog,r[5]=i,r[6]=c):c=r[6];let u;r[7]!==a||r[8]!==s||r[9]!==l||r[10]!==c?(u={queryKey:a,queryFn:s,enabled:l,staleTime:Uqe,initialData:c,initialDataUpdatedAt:0,placeholderData:sI},r[7]=a,r[8]=s,r[9]=l,r[10]=c,r[11]=u):u=r[11];let d=fI(u),p;r[12]!==i||r[13]!==e?(p=()=>i.read()?.catalog??e,r[12]=i,r[13]=e,r[14]=p):p=r[14];let m=p;if(!t){let h;return r[15]!==m||r[16]!==e?(h=e.length>0?e:m(),r[15]=m,r[16]=e,r[17]=h):h=r[17],h}if(d.dataUpdatedAt===0&&e.length>0)return e;let f;return r[18]!==m||r[19]!==d.data?(f=d.data??m(),r[18]=m,r[19]=d.data,r[20]=f):f=r[20],f}var _pe="cmux.acpmux.harnessProfiles.v1",vF=class{constructor(e=Kqe){this.storage=e}storage;profiles;saved="";get(e){return e?this.load().get(e):void 0}observe(e,n=!1){if(!e?.harness||!e.sessionId)return;let r=this.load(),i=r.get(e.harness),o={harness:e.harness,startModel:n&&e.model?e.model:i?.startModel,model:e.model??i?.model,modes:e.modes??i?.modes,configOptions:e.configOptions?.length?e.configOptions:i?.configOptions,promptCapabilities:e.promptCapabilities??i?.promptCapabilities};r.set(e.harness,o),this.save()}load(){if(this.profiles)return this.profiles;this.profiles=new Map;try{let e=JSON.parse(this.storage()?.getItem(_pe)??"[]");if(Array.isArray(e))for(let n of e)typeof n?.harness=="string"&&this.profiles.set(n.harness,n)}catch{}return this.profiles}save(){let e=JSON.stringify([...this.load().values()]);if(e!==this.saved){this.saved=e;try{this.storage()?.setItem(_pe,e)}catch{}}}};function Kqe(){try{return globalThis.localStorage}catch{return}}var sL=new vF;var Xqe={now:()=>typeof performance>"u"?Date.now():performance.now(),schedule:(t,e)=>{let n=setTimeout(t,e);return()=>clearTimeout(n)}},Yqe=150,Qqe=3e4;function Jqe(){let t,e=new Promise(n=>t=n);return{resolve:t,promise:e}}var kF=Su,lL=class{constructor(e=Xqe){this.clock=e}clock;intent;modelPick;port;generation=0;current={};listeners=new Set;left;hintTarget;cancelHint;lastHint;handlers={};subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));view=()=>this.current;setHandlers(e){this.handlers=e}connect(e){this.port=e;let n=this.intent;n&&n.phase!=="failed"&&!n.running&&this.run(n)}disconnect(e){e&&this.port!==e||(this.port=void 0,this.intent&&(this.intent.running=void 0))}switchTo(e,n){let r=this.intent,i=this.port,o=i?.shown(),a=n??r?.cwd??o?.cwd;if(r&&r.harness===e&&r.phase!=="failed"&&r.cwd===a)return r.done.promise;let s=r?.shown??!(i?.turnRunning()??!1);if(!s&&r&&o?.harness===e)return this.cancel(),Promise.resolve(o.sessionId);let l=Jqe(),c={id:++this.generation,harness:e,cwd:a,shown:s,phase:"starting",queued:r?.queued??[],config:{options:{}},tickets:new Map,done:l};return r&&this.retire(r,!1),this.modelPick=void 0,this.intent=c,s&&o&&!r&&(this.left=o.empty?{sessionId:o.sessionId,harness:o.harness}:void 0,i?.leave()),s&&this.left&&this.left.harness===e&&(c.sessionId=this.left.sessionId,c.reused=!0),this.cancelHintTimer(),this.changed(),this.run(c),l.promise}send(e,n=[],r){let i=this.intent;if(!i)return;i.phase==="failed"&&(this.switchTo(i.harness,i.cwd),i=this.intent);let{promise:o,resolve:a,reject:s}=(()=>{let l,c;return{promise:new Promise((d,p)=>{l=d,c=p}),resolve:l,reject:c}})();return i.queued=[...i.queued,{id:crypto.randomUUID(),text:e,attachments:n,at:Date.now(),resolve:a,reject:s,written:r}],i.shown||(i.shown=!0,this.port?.leave()),this.changed(),i.sessionId&&!i.running&&this.run(i),o}pickModel(e,n){let r=this.intent;if(r)return r.config={...r.config,model:e},this.changed(),Promise.resolve();let i=this.port;if(!i||!n)return Promise.resolve();let o={sessionId:n.sessionId,from:n.model,model:e};return this.modelPick=o,this.changed(),i.setModel(e).catch(a=>{this.modelPick===o&&(this.modelPick=void 0,this.changed(),this.handlers.notice?.(we("switch.modelFailed",{model:e,reason:kF(a)||"?"})))})}pickMode(e){return this.intent?(this.intent.config={...this.intent.config,mode:e},this.intent.tickets.set("mode",this.takeTicket({method:"session/set_mode",params:{modeId:e}})),this.changed(),!0):!1}pickConfig(e,n){return this.intent?(this.intent.config={...this.intent.config,options:{...this.intent.config.options,[e]:n}},this.intent.tickets.set(`config:${e}`,this.takeTicket({method:"session/set_config_option",params:{configId:e,value:n}})),this.changed(),!0):!1}takeTicket(e){let n=this.handlers.gesture;if(!n)return Promise.resolve(void 0);try{return n(e).catch(()=>{})}catch{return Promise.resolve(void 0)}}cancelQueued(e){let n=this.intent,r=n?.queued.find(i=>i.id===e);!n||!r||(n.queued=n.queued.filter(i=>i!==r),this.handlers.restore?.(r.text,r.attachments),r.reject(new Error(we("switch.cancelled"))),this.changed())}retry(){let e=this.intent;e?.phase==="failed"&&this.switchTo(e.harness,e.cwd)}cancel(){let e=this.intent;e&&(this.intent=void 0,this.retire(e,!0)),this.modelPick=void 0,this.left=void 0,this.changed()}hint(e){e!==this.hintTarget&&(this.cancelHintTimer(),this.hintTarget=e,!(!e||!this.port?.prewarmSupported())&&(this.cancelHint=this.clock.schedule(()=>{this.cancelHint=void 0;let n=this.port;if(!n||this.hintTarget!==e)return;let r=n.shown(),i=this.intent?.harness??r?.harness;if(e===i)return;let o=this.clock.now(),a=this.lastHint;a?.harness===e&&o-a.at<Qqe||(this.lastHint={harness:e,at:o},n.prewarm(e,this.intent?.cwd??r?.cwd))},Yqe)))}cancelHintTimer(){this.cancelHint?.(),this.cancelHint=void 0}retire(e,n){if(e.sessionId&&!e.reused&&e.phase!=="failed"&&this.port?.discard(e.sessionId),e.sessionId=void 0,n&&e.queued.length){this.handBack(e.queued);for(let r of e.queued)r.reject(new Error(we("switch.cancelled")));e.queued=[]}e.done.resolve(void 0)}async run(e){let n=this.port;if(!n||e.running)return;e.running=n;let r=e.sessionId;if(!r){try{r=await n.create(e.harness,e.cwd)}catch(p){if(e.running===n&&(e.running=void 0),this.intent!==e||this.port!==n)return;this.fail(e,p);return}if(this.intent!==e){r&&n.discard(r);return}if(!r){e.running=void 0,this.fail(e,new Error(we("switch.noSession")));return}e.sessionId=r}if(!e.shown){e.running=void 0,e.phase="waiting",this.changed();return}let i;try{i=await n.open(r)}catch(p){if(e.running===n&&(e.running=void 0),this.intent!==e||this.port!==n)return;this.fail(e,p);return}if(this.intent!==e)return;if(!i){e.running=void 0,this.port===n&&this.fail(e,new Error(we("switch.noSession")));return}this.left=void 0,this.handlers.opened?.(i);let{model:o,mode:a,options:s}=e.config,l=[];o&&l.push(n.setModel(o).catch(p=>this.refused(o,p)));let c=p=>{let m=p?.code;typeof m=="string"&&m.startsWith("transport.")&&this.handlers.notice?.(Su(p))},u=p=>e.tickets.get(p)??Promise.resolve(void 0);a&&l.push(u("mode").then(p=>n.setMode(a,p)).catch(c));for(let[p,m]of Object.entries(s))l.push(u(`config:${p}`).then(f=>n.setConfig(p,m,f)).catch(c));if(await Promise.all(l),this.intent!==e)return;let d=e.queued;e.queued=[],this.intent=void 0;for(let p of d)n.send(p.text,p.attachments,p.id).then(p.resolve,p.reject),p.written?.();this.changed(),e.done.resolve(i)}handBack(e){this.handlers.restore?.(e.map(n=>n.text).join(` -`),e.flatMap(n=>n.attachments))}refused(e,n){this.handlers.notice?.(ve("switch.modelFailed",{model:e,reason:xF(n)||"?"}))}fail(e,n){if(e.phase="failed",e.error=xF(n)||ve("switch.unknownError"),e.queued.length){this.handBack(e.queued);let r=n,i=Object.assign(new Error(e.error),{handedBack:!0,...typeof r?.reason=="string"?{reason:r.reason}:{},...typeof r?.cwd=="string"?{cwd:r.cwd}:{}});for(let o of e.queued)o.reject(i);e.queued=[]}this.changed(),e.done.resolve(void 0)}changed(){let e=this.intent;this.current={...e&&{intent:{id:e.id,harness:e.harness,phase:e.phase,shown:e.shown,sessionId:e.sessionId,error:e.error,queued:e.queued.map(({id:n,text:r,at:i})=>({id:n,text:r,at:i})),config:e.config,cwd:e.cwd}},...this.modelPick&&{model:this.modelPick}};for(let n of this.listeners)n()}};function Spe(t,e,n=t.catalog,r=sL){let i=e.intent;if(!i){let x=e.model,g=t.summary;return!x||!g||g.sessionId!==x.sessionId||g.model!==x.from?t:{...t,summary:{...g,model:x.model,confirmedModel:g.model}}}let o=Hf(i.harness,n.find(x=>x.id===i.harness)?.name),a=i.shown&&i.sessionId!==void 0&&t.sessionId===i.sessionId,s=a?t.summary:void 0,l=r.get(i.harness),c=i.config,u=c.model??s?.model??l?.startModel??l?.model??n.find(x=>x.id===i.harness)?.models[0]?.id,d=s?.modes??l?.modes,p={...s??{sessionId:"",turnCount:0,cwd:t.summary?.cwd??i.cwd},harness:i.harness,model:u,confirmedModel:s?s.model:u,modes:d&&c.mode?{...d,currentModeId:c.mode}:d,configOptions:(s?.configOptions??l?.configOptions)?.map(x=>x.id in c.options?{...x,currentValue:c.options[x.id]}:x),promptCapabilities:s?.promptCapabilities??l?.promptCapabilities},m={harness:i.harness,name:o,phase:i.phase==="failed"?"failed":i.shown?"starting":"deferred",...i.error&&{error:i.error}},f=ve("switch.starting",{agent:o}),h=i.queued.map(x=>({id:`local-${x.id}`,version:0,at:x.at,kind:"user",text:x.text,pending:!0,status:f,queued:x.id}));return!i.shown||a?{...t,summary:p,switching:m,rows:h.length?[...t.rows,...h]:t.rows}:{...t,rows:h,sessionId:void 0,summary:p,switching:m,isWorking:!1,queue:[],permission:void 0,permissionGroups:t.permissionGroups&&{...t.permissionGroups,groups:[]},canLoadOlder:!1,canFork:!1,canHandoff:!1,handoff:void 0,commands:[],missingSession:void 0}}var Lpe=["trusted","untrusted","unknown"];function eHe(t){let e=t;if(!e||typeof e.cwd!="string"||!Lpe.includes(e.level))return;let n={};for(let r of["claude","codex"]){let i=e.harnesses?.[r];Lpe.includes(i)&&(n[r]=i)}return{cwd:e.cwd,level:e.level,...Object.keys(n).length>0?{harnesses:n}:{},...typeof e.decided=="boolean"?{decided:e.decided}:{}}}function Mpe(t,e){return t.decided!==!1?t.level:(e==="claude"||e==="codex"?t.harnesses?.[e]:void 0)??t.level}function Epe(t,e){let n={untrusted:0,unknown:1,trusted:2};return n[t]<=n[e]?t:e}var tHe=1500;async function Tpe(t,e,n=tHe){let r,i=new Promise(o=>{r=window.setTimeout(o,n)});try{return eHe(await Promise.race([t.get(e),i]))}catch{return}finally{clearTimeout(r)}}var cL=class{constructor(e,n,r,i,o){this.sessions=e;this.create=n;this.context=r;this.prompt=i;this.remove=o}sessions;create;context;prompt;remove;records=new Map;writes=new Map;fail(e,n){throw Object.assign(new Error(e),{data:{reason:e,handoff:n}})}checkpoint(e){return(!e?.attest||typeof e.ref!="string"||!e.ref.trim())&&this.fail("checkpoint_unattested"),{ref:e.ref,attestedBy:"user",attestedAt:new Date().toISOString()}}async answer(e,n){if(e===vi.get)return n.handoffId?structuredClone(this.records.get(n.handoffId)??this.fail("not_found")):structuredClone([...this.records.values()].reverse().find(u=>u.state!=="discarded"&&[u.source.sessionId,u.target.sessionId].includes(n.sessionId))??null);if(e===vi.prepare){let u=[...this.records.values()].find(v=>v.handoffKey===n.handoffKey);if(u)return structuredClone(u);let d=this.sessions().find(v=>v.sessionId===n.sessionId)??this.fail("not_found");(d.status==="running"||d.queue?.length)&&this.fail("source_busy"),d.harness===n.harness&&this.fail("same_harness");let p=n.checkpoint?this.checkpoint(n.checkpoint):null,m=this.create(d,n.harness),f=this.context(d.sessionId),h=f.text;for(;new TextEncoder().encode(h).length>65536;)h=h.slice(1);let x=new TextEncoder().encode(h).length,g=d.enforcement??{policy:"default",label:"native_policy",isolation:"unverified",detail:null},y=[{item:"transcript",status:"summarized",detail:null}],b=new Date().toISOString(),w={handoffId:crypto.randomUUID(),handoffKey:n.handoffKey,state:"draft",revision:1,source:{sessionId:d.sessionId,cwd:d.cwd,harness:d.harness,seq:f.seq,coverage:y,enforcement:g},target:{sessionId:m,cwd:d.cwd,harness:n.harness,coverage:y,enforcement:g},capsule:{text:h,maxBytes:65536,context:{fromSeq:0,toSeq:f.seq,truncated:h!==f.text,bytes:x,totalBytes:new TextEncoder().encode(f.text).length},checkpoint:p,memoryRefs:n.memoryRefs??[]},promptId:null,turnId:null,createdAt:b,updatedAt:b};return this.records.set(w.handoffId,w),structuredClone(w)}let r=this.records.get(n.handoffId)??this.fail("not_found");if(e===vi.discard)return["starting","started"].includes(r.state)&&this.fail("already_started",r),r.state="discarded",this.remove(r.target.sessionId),{handoffId:r.handoffId,discarded:!0};let i=n.promptId??r.handoffId,o=u=>({handoffId:r.handoffId,targetSessionId:r.target.sessionId,promptId:i,turnId:r.turnId,outcome:u});if(e===vi.start&&r.promptId)return i!==r.promptId&&this.fail("already_started",r),o("already_started");let a=`${r.handoffId}:${n.draftKey}`;if(e===vi.draft&&this.writes.has(a))return structuredClone(this.writes.get(a));r.state!=="draft"&&this.fail("not_draft",r);let s=n.capsule.text;new TextEncoder().encode(s).length>r.capsule.maxBytes&&this.fail("capsule_too_large");let l=n.capsule.memoryRefs??r.capsule.memoryRefs,c=n.checkpoint===null?null:n.checkpoint?this.checkpoint(n.checkpoint):r.capsule.checkpoint;return n.revision!==r.revision&&(s!==r.capsule.text||JSON.stringify(l)!==JSON.stringify(r.capsule.memoryRefs)||c?.ref!==r.capsule.checkpoint?.ref)&&this.fail("stale_revision",r),r.capsule={...r.capsule,text:s,memoryRefs:l,checkpoint:c},e===vi.draft?(r.revision+=1,r.updatedAt=new Date().toISOString(),this.writes.set(a,structuredClone(r)),structuredClone(r)):(c||this.fail("checkpoint_required"),r.promptId=i,r.state="starting",this.prompt(r.target.sessionId,s,i),r.state="started",r.turnId=`mock-turn-${i}`,o("started"))}};var xo="This Mac",CF=[{id:"claude-opus-5-5",name:"Opus 5.5"},{id:"claude-sonnet-5-5",name:"Sonnet 5.5"},{id:"claude-haiku-4-5",name:"Haiku 4.5"},{id:"claude-fable-1-5",name:"Fable 1.5"},{id:"claude-opus-5",name:"Opus 5"},{id:"claude-opus-4-6",name:"Opus 4.6"},{id:"claude-opus-4-1",name:"Opus 4.1"},{id:"claude-sonnet-5",name:"Sonnet 5"},{id:"claude-sonnet-4-6",name:"Sonnet 4.6"},{id:"claude-haiku-4",name:"Haiku 4"},{id:"claude-fable-1",name:"Fable 1"}],_F=[{id:"gpt-6-astra",name:"GPT-6-Astra"},{id:"gpt-6-mini",name:"GPT-6 mini"},{id:"gpt-6-nano",name:"GPT-6 nano"},{id:"gpt-5.5-codex",name:"GPT-5.5-Codex"},{id:"gpt-5.5",name:"GPT-5.5"},{id:"gpt-5-mini",name:"GPT-5 mini"},{id:"o4-mini",name:"o4-mini"},{id:"o3",name:"o3"},{id:"gpt-oss-120b",name:"gpt-oss-120b"},{id:"gpt-oss-20b",name:"gpt-oss-20b"},{id:"qwen3-coder",name:"Qwen3 Coder"},{id:"devstral-2",name:"Devstral 2"}],Ape={availableModes:[{id:"default",name:"Ask before edits"},{id:"acceptEdits",name:"Accept edits"},{id:"plan",name:"Plan"},{id:"bypassPermissions",name:"Full access"}],currentModeId:"bypassPermissions"},$pe={availableModes:[{id:"read-only",name:"Read only"},{id:"auto",name:"Auto"},{id:"full-access",name:"Full access"}],currentModeId:"auto"},Ipe=t=>[{id:"effort",name:"Effort",category:"thought_level",currentValue:t,options:[{value:"low",name:"Low"},{value:"medium",name:"Medium"},{value:"high",name:"High"}]}],ly="mock-session",Ia="~/code/cmux",cy=[{sessionId:ly,title:"Add retry backoff to the fleet uploader",harness:"claude",model:"claude-opus-5-5",status:"idle",cwd:Ia,ago:2,host:xo,hostKind:"local",branch:"feat-upload-retry",worktree:"~/code/cmux-worktrees/upload-retry",pinned:!0,pullRequest:{number:18204,title:"fleet: retry artifact uploads with backoff",state:"open",reviewReady:!0,checks:"passing"}},{sessionId:"mock-sidebar-flicker",title:"Fix sidebar flicker on theme change",harness:"claude",model:"claude-opus-5-5",status:"running",cwd:Ia,ago:4,host:"hearty-beige-elk",hostKind:"cloud",branch:"fix-sidebar-flicker",pullRequest:{number:18231,title:"Read the theme after applyTheme",state:"draft",checks:"pending"},reply:"The sidebar reads the theme before the window applies it, so the first frame uses the old background. I'm moving the read after `applyTheme` and checking every theme.",working:{title:"Run bun test Sources/Sidebar",kind:"execute",command:"bun test Sources/Sidebar"}},{sessionId:"mock-tab-strip",title:"Review the terminal tab strip",harness:"claude",model:"claude-sonnet-5-5",status:"waiting",pendingPermissions:1,cwd:Ia,ago:9,host:xo,hostKind:"local",permission:{title:"Run bun run lint:ci",kind:"execute"},reply:"I'd like to run `bun run lint:ci` across the workspace to check the tab strip changes. Allow it?"},{sessionId:"mock-localize-changes",title:"Localize the changes view",harness:"codex",model:"gpt-6-astra",status:"idle",unread:!0,cwd:Ia,ago:25,host:xo,hostKind:"local",branch:"changes-view-l10n",pullRequest:{number:18166,title:"Localize the changes view",state:"draft"},reply:"Added the 14 new strings to Localizable.xcstrings in all nine app locales. The Arabic layout mirrors the toolbar correctly."},{sessionId:"mock-typing-latency",title:"Measure typing latency in split panes",harness:"claude",model:"claude-opus-5-5",status:"idle",cwd:Ia,ago:70,host:xo,hostKind:"local",reply:"Median keystroke-to-paint is 7.8 ms in a single pane and 8.1 ms with four splits. No regression against main."},{sessionId:"mock-ci-cache",title:"Investigate CI cache misses",harness:"codex",model:"gpt-6-astra",status:"disconnected",cwd:Ia,ago:130,host:"hearty-beige-elk",hostKind:"cloud",branch:"ci-cache-keys",reply:"The cache key includes the runner's temp path, so every job misses. I was about to strip it when the machine went away."},{sessionId:"mock-release-notes",title:"Draft release notes for 0.64",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:Ia,ago:200,host:xo,hostKind:"local",reply:"Drafted CHANGELOG.md for 0.64: the agent pane, cloud machines in the sidebar, and 23 fixes."},{sessionId:"mock-agent-composer",title:"Port the composer",harness:"claude",model:"claude-opus-5-5",status:"idle",cwd:Ia,ago:320,host:xo,hostKind:"local",pullRequest:{number:16601,title:"cmux-next agent pane: composer and picker menus",state:"merged"},reply:"Merged. The composer, model menu and permission menu now follow the pane theme."},{sessionId:"mock-markdown-lists",title:"Tighten markdown list spacing",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:Ia,ago:1440,host:xo,hostKind:"local",reply:"Nested lists now sit 4 px under their item."},{sessionId:"mock-restore-launch",title:"Speed up workspace restore on launch",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:Ia,ago:2e3,host:xo,hostKind:"local",reply:"Restoring 40 workspaces now takes 180 ms; terminals start lazily when first shown."},{sessionId:"mock-ime",title:"Fix IME composition in the terminal",harness:"codex",model:"gpt-6-astra",status:"idle",cwd:Ia,ago:3100,host:xo,hostKind:"local",reply:"Marked text now draws at the cursor, and Enter commits the composition instead of sending it."},{sessionId:"mock-tool-output",title:"Stream tool output in chunks",harness:"codex",model:"gpt-6-astra",status:"running",cwd:"~/code/acpmux",ago:6,host:xo,hostKind:"local",branch:"stream-tool-output",pullRequest:{number:219,title:"Stream tool output in 8 KiB chunks",state:"open",checks:"failing"},reply:"Splitting tool output into 8 KiB chunks so long shell runs stream instead of arriving at the end.",working:{title:"Edit src/tools/stream.rs",kind:"edit"}},{sessionId:"mock-resume",title:"Resume sessions after a daemon restart",harness:"claude",model:"claude-opus-5-5",status:"idle",unread:!0,pinned:!0,cwd:"~/code/acpmux",ago:40,host:xo,hostKind:"local",branch:"resume-after-restart",pullRequest:{number:212,title:"Resume sessions after a daemon restart",state:"open",reviewReady:!0,checks:"passing"},reply:"Sessions now reload from the event log on start. All 48 replay tests pass."},{sessionId:"mock-replay-bench",title:"Benchmark event replay",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:"~/code/acpmux",ago:1500,host:xo,hostKind:"local",reply:"Replaying 100k events takes 310 ms, 92% of it in JSON parsing."},{sessionId:"mock-home-screen",title:"Polish the home screen",harness:"codex",model:"gpt-6-astra",status:"waiting",pendingPermissions:1,cwd:"~/code/atlas-web",ago:15,host:xo,hostKind:"local",branch:"home-screen",worktree:"~/code/atlas-web-worktrees/home-screen",permission:{title:"Install @pierre/trees",kind:"execute"},reply:"I need to install `@pierre/trees`, which also updates package.json. Approve?"},{sessionId:"mock-light-theme",title:"Add light theme screenshots",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:"~/code/atlas-web",ago:2900,host:xo,hostKind:"local",reply:"Captured 12 light-theme screens next to their dark versions."},{sessionId:"mock-prorate",title:"Prorate seat changes mid-cycle",harness:"claude",model:"claude-opus-5-5",status:"idle",unread:!0,cwd:"~/code/billing-service",ago:65,host:xo,hostKind:"local",branch:"prorate-seats",pullRequest:{number:88,title:"Prorate seat changes mid-cycle",state:"open",reviewReady:!0},reply:"Seat changes now prorate to the day. The invoice preview shows the credit as its own line."},{sessionId:"mock-webhooks",title:"Retry failed Stripe webhooks",harness:"codex",model:"gpt-6-astra",status:"idle",cwd:"~/code/billing-service",ago:4300,host:xo,hostKind:"local",reply:"Failed webhooks retry 5 times with jitter, then land in the dead-letter table."},{sessionId:"mock-zsh",title:"Clean up zsh startup time",harness:"claude",model:"claude-haiku-4-5",status:"idle",cwd:"~/code/dotfiles",ago:5800,host:xo,hostKind:"local",reply:"Startup went from 410 ms to 95 ms by lazy-loading nvm and compinit."},{sessionId:"mock-ghostty-config",title:"Sync Ghostty config across machines",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:"~/code/dotfiles",ago:8600,host:xo,hostKind:"local",reply:"The config now lives in dotfiles and links into ~/.config/ghostty on each machine."}];function Npe(t,e,n){let{ago:r,reply:i,permission:o,...a}=t,s=t.sessionId===ly?"Uploads now retry server errors with backoff.":i;return{...a,preview:s,name:t.harness,updatedAt:e-r*6e4,turnCount:n,modes:t.harness==="codex"?$pe:Ape,configOptions:Ipe(t.harness==="codex"?"high":"medium")}}function SF(t,e,n,r="claude"){let i=r==="codex";return{sessionId:t,title:"New chat",name:r,harness:r,model:(i?_F:CF)[0].id,status:"idle",cwd:e,host:xo,hostKind:"local",branch:"main",updatedAt:n,turnCount:0,modes:i?$pe:Ape,configOptions:Ipe(i?"high":"medium")}}var dL=t=>({sessionUpdate:"agent_message_chunk",content:{type:"text",text:t}}),sg=(t,e,n,r={})=>({sessionUpdate:"tool_call",toolCallId:t,kind:e,title:n,status:"completed",...r}),uL=t=>({content:[{type:"content",content:{type:"text",text:t}}]}),wF=`${Ia}/Sources/Fleet/upload.ts`,Rpe=`${Ia}/Sources/Fleet/retry.ts`,vF=`${Ia}/Sources/Fleet/upload.test.ts`,kF=`export async function uploadArtifact(url: string, body: Blob): Promise<void> { +`),e.flatMap(n=>n.attachments))}refused(e,n){this.handlers.notice?.(we("switch.modelFailed",{model:e,reason:kF(n)||"?"}))}fail(e,n){if(e.phase="failed",e.error=kF(n)||we("switch.unknownError"),e.queued.length){this.handBack(e.queued);let r=n,i=Object.assign(new Error(e.error),{handedBack:!0,...typeof r?.reason=="string"?{reason:r.reason}:{},...typeof r?.cwd=="string"?{cwd:r.cwd}:{}});for(let o of e.queued)o.reject(i);e.queued=[]}this.changed(),e.done.resolve(void 0)}changed(){let e=this.intent;this.current={...e&&{intent:{id:e.id,harness:e.harness,phase:e.phase,shown:e.shown,sessionId:e.sessionId,error:e.error,queued:e.queued.map(({id:n,text:r,at:i})=>({id:n,text:r,at:i})),config:e.config,cwd:e.cwd}},...this.modelPick&&{model:this.modelPick}};for(let n of this.listeners)n()}};function Spe(t,e,n=t.catalog,r=sL){let i=e.intent;if(!i){let x=e.model,g=t.summary;return!x||!g||g.sessionId!==x.sessionId||g.model!==x.from?t:{...t,summary:{...g,model:x.model,confirmedModel:g.model}}}let o=Gf(i.harness,n.find(x=>x.id===i.harness)?.name),a=i.shown&&i.sessionId!==void 0&&t.sessionId===i.sessionId,s=a?t.summary:void 0,l=r.get(i.harness),c=i.config,u=c.model??s?.model??l?.startModel??l?.model??n.find(x=>x.id===i.harness)?.models[0]?.id,d=s?.modes??l?.modes,p={...s??{sessionId:"",turnCount:0,cwd:t.summary?.cwd??i.cwd},harness:i.harness,model:u,confirmedModel:s?s.model:u,modes:d&&c.mode?{...d,currentModeId:c.mode}:d,configOptions:(s?.configOptions??l?.configOptions)?.map(x=>x.id in c.options?{...x,currentValue:c.options[x.id]}:x),promptCapabilities:s?.promptCapabilities??l?.promptCapabilities},m={harness:i.harness,name:o,phase:i.phase==="failed"?"failed":i.shown?"starting":"deferred",...i.error&&{error:i.error}},f=we("switch.starting",{agent:o}),h=i.queued.map(x=>({id:`local-${x.id}`,version:0,at:x.at,kind:"user",text:x.text,pending:!0,status:f,queued:x.id}));return!i.shown||a?{...t,summary:p,switching:m,rows:h.length?[...t.rows,...h]:t.rows}:{...t,rows:h,sessionId:void 0,summary:p,switching:m,isWorking:!1,queue:[],permission:void 0,permissionGroups:t.permissionGroups&&{...t.permissionGroups,groups:[]},canLoadOlder:!1,canFork:!1,canHandoff:!1,handoff:void 0,commands:[],missingSession:void 0}}var Lpe=["trusted","untrusted","unknown"];function eHe(t){let e=t;if(!e||typeof e.cwd!="string"||!Lpe.includes(e.level))return;let n={};for(let r of["claude","codex"]){let i=e.harnesses?.[r];Lpe.includes(i)&&(n[r]=i)}return{cwd:e.cwd,level:e.level,...Object.keys(n).length>0?{harnesses:n}:{},...typeof e.decided=="boolean"?{decided:e.decided}:{}}}function Mpe(t,e){return t.decided!==!1?t.level:(e==="claude"||e==="codex"?t.harnesses?.[e]:void 0)??t.level}function Epe(t,e){let n={untrusted:0,unknown:1,trusted:2};return n[t]<=n[e]?t:e}var tHe=1500;async function Tpe(t,e,n=tHe){let r,i=new Promise(o=>{r=window.setTimeout(o,n)});try{return eHe(await Promise.race([t.get(e),i]))}catch{return}finally{clearTimeout(r)}}var cL=class{constructor(e,n,r,i,o){this.sessions=e;this.create=n;this.context=r;this.prompt=i;this.remove=o}sessions;create;context;prompt;remove;records=new Map;writes=new Map;fail(e,n){throw Object.assign(new Error(e),{data:{reason:e,handoff:n}})}checkpoint(e){return(!e?.attest||typeof e.ref!="string"||!e.ref.trim())&&this.fail("checkpoint_unattested"),{ref:e.ref,attestedBy:"user",attestedAt:new Date().toISOString()}}async answer(e,n){if(e===vi.get)return n.handoffId?structuredClone(this.records.get(n.handoffId)??this.fail("not_found")):structuredClone([...this.records.values()].reverse().find(u=>u.state!=="discarded"&&[u.source.sessionId,u.target.sessionId].includes(n.sessionId))??null);if(e===vi.prepare){let u=[...this.records.values()].find(v=>v.handoffKey===n.handoffKey);if(u)return structuredClone(u);let d=this.sessions().find(v=>v.sessionId===n.sessionId)??this.fail("not_found");(d.status==="running"||d.queue?.length)&&this.fail("source_busy"),d.harness===n.harness&&this.fail("same_harness");let p=n.checkpoint?this.checkpoint(n.checkpoint):null,m=this.create(d,n.harness),f=this.context(d.sessionId),h=f.text;for(;new TextEncoder().encode(h).length>65536;)h=h.slice(1);let x=new TextEncoder().encode(h).length,g=d.enforcement??{policy:"default",label:"native_policy",isolation:"unverified",detail:null},y=[{item:"transcript",status:"summarized",detail:null}],b=new Date().toISOString(),w={handoffId:crypto.randomUUID(),handoffKey:n.handoffKey,state:"draft",revision:1,source:{sessionId:d.sessionId,cwd:d.cwd,harness:d.harness,seq:f.seq,coverage:y,enforcement:g},target:{sessionId:m,cwd:d.cwd,harness:n.harness,coverage:y,enforcement:g},capsule:{text:h,maxBytes:65536,context:{fromSeq:0,toSeq:f.seq,truncated:h!==f.text,bytes:x,totalBytes:new TextEncoder().encode(f.text).length},checkpoint:p,memoryRefs:n.memoryRefs??[]},promptId:null,turnId:null,createdAt:b,updatedAt:b};return this.records.set(w.handoffId,w),structuredClone(w)}let r=this.records.get(n.handoffId)??this.fail("not_found");if(e===vi.discard)return["starting","started"].includes(r.state)&&this.fail("already_started",r),r.state="discarded",this.remove(r.target.sessionId),{handoffId:r.handoffId,discarded:!0};let i=n.promptId??r.handoffId,o=u=>({handoffId:r.handoffId,targetSessionId:r.target.sessionId,promptId:i,turnId:r.turnId,outcome:u});if(e===vi.start&&r.promptId)return i!==r.promptId&&this.fail("already_started",r),o("already_started");let a=`${r.handoffId}:${n.draftKey}`;if(e===vi.draft&&this.writes.has(a))return structuredClone(this.writes.get(a));r.state!=="draft"&&this.fail("not_draft",r);let s=n.capsule.text;new TextEncoder().encode(s).length>r.capsule.maxBytes&&this.fail("capsule_too_large");let l=n.capsule.memoryRefs??r.capsule.memoryRefs,c=n.checkpoint===null?null:n.checkpoint?this.checkpoint(n.checkpoint):r.capsule.checkpoint;return n.revision!==r.revision&&(s!==r.capsule.text||JSON.stringify(l)!==JSON.stringify(r.capsule.memoryRefs)||c?.ref!==r.capsule.checkpoint?.ref)&&this.fail("stale_revision",r),r.capsule={...r.capsule,text:s,memoryRefs:l,checkpoint:c},e===vi.draft?(r.revision+=1,r.updatedAt=new Date().toISOString(),this.writes.set(a,structuredClone(r)),structuredClone(r)):(c||this.fail("checkpoint_required"),r.promptId=i,r.state="starting",this.prompt(r.target.sessionId,s,i),r.state="started",r.turnId=`mock-turn-${i}`,o("started"))}};var xo="This Mac",LF=[{id:"claude-opus-5-5",name:"Opus 5.5"},{id:"claude-sonnet-5-5",name:"Sonnet 5.5"},{id:"claude-haiku-4-5",name:"Haiku 4.5"},{id:"claude-fable-1-5",name:"Fable 1.5"},{id:"claude-opus-5",name:"Opus 5"},{id:"claude-opus-4-6",name:"Opus 4.6"},{id:"claude-opus-4-1",name:"Opus 4.1"},{id:"claude-sonnet-5",name:"Sonnet 5"},{id:"claude-sonnet-4-6",name:"Sonnet 4.6"},{id:"claude-haiku-4",name:"Haiku 4"},{id:"claude-fable-1",name:"Fable 1"}],MF=[{id:"gpt-6-astra",name:"GPT-6-Astra"},{id:"gpt-6-mini",name:"GPT-6 mini"},{id:"gpt-6-nano",name:"GPT-6 nano"},{id:"gpt-5.5-codex",name:"GPT-5.5-Codex"},{id:"gpt-5.5",name:"GPT-5.5"},{id:"gpt-5-mini",name:"GPT-5 mini"},{id:"o4-mini",name:"o4-mini"},{id:"o3",name:"o3"},{id:"gpt-oss-120b",name:"gpt-oss-120b"},{id:"gpt-oss-20b",name:"gpt-oss-20b"},{id:"qwen3-coder",name:"Qwen3 Coder"},{id:"devstral-2",name:"Devstral 2"}],Ape={availableModes:[{id:"default",name:"Ask before edits"},{id:"acceptEdits",name:"Accept edits"},{id:"plan",name:"Plan"},{id:"bypassPermissions",name:"Full access"}],currentModeId:"bypassPermissions"},$pe={availableModes:[{id:"read-only",name:"Read only"},{id:"auto",name:"Auto"},{id:"full-access",name:"Full access"}],currentModeId:"auto"},Ipe=t=>[{id:"effort",name:"Effort",category:"thought_level",currentValue:t,options:[{value:"low",name:"Low"},{value:"medium",name:"Medium"},{value:"high",name:"High"}]}],cy="mock-session",Ia="~/code/cmux",uy=[{sessionId:cy,title:"Add retry backoff to the fleet uploader",harness:"claude",model:"claude-opus-5-5",status:"idle",cwd:Ia,ago:2,host:xo,hostKind:"local",branch:"feat-upload-retry",worktree:"~/code/cmux-worktrees/upload-retry",pinned:!0,pullRequest:{number:18204,title:"fleet: retry artifact uploads with backoff",state:"open",reviewReady:!0,checks:"passing"}},{sessionId:"mock-sidebar-flicker",title:"Fix sidebar flicker on theme change",harness:"claude",model:"claude-opus-5-5",status:"running",cwd:Ia,ago:4,host:"hearty-beige-elk",hostKind:"cloud",branch:"fix-sidebar-flicker",pullRequest:{number:18231,title:"Read the theme after applyTheme",state:"draft",checks:"pending"},reply:"The sidebar reads the theme before the window applies it, so the first frame uses the old background. I'm moving the read after `applyTheme` and checking every theme.",working:{title:"Run bun test Sources/Sidebar",kind:"execute",command:"bun test Sources/Sidebar"}},{sessionId:"mock-tab-strip",title:"Review the terminal tab strip",harness:"claude",model:"claude-sonnet-5-5",status:"waiting",pendingPermissions:1,cwd:Ia,ago:9,host:xo,hostKind:"local",permission:{title:"Run bun run lint:ci",kind:"execute"},reply:"I'd like to run `bun run lint:ci` across the workspace to check the tab strip changes. Allow it?"},{sessionId:"mock-localize-changes",title:"Localize the changes view",harness:"codex",model:"gpt-6-astra",status:"idle",unread:!0,cwd:Ia,ago:25,host:xo,hostKind:"local",branch:"changes-view-l10n",pullRequest:{number:18166,title:"Localize the changes view",state:"draft"},reply:"Added the 14 new strings to Localizable.xcstrings in all nine app locales. The Arabic layout mirrors the toolbar correctly."},{sessionId:"mock-typing-latency",title:"Measure typing latency in split panes",harness:"claude",model:"claude-opus-5-5",status:"idle",cwd:Ia,ago:70,host:xo,hostKind:"local",reply:"Median keystroke-to-paint is 7.8 ms in a single pane and 8.1 ms with four splits. No regression against main."},{sessionId:"mock-ci-cache",title:"Investigate CI cache misses",harness:"codex",model:"gpt-6-astra",status:"disconnected",cwd:Ia,ago:130,host:"hearty-beige-elk",hostKind:"cloud",branch:"ci-cache-keys",reply:"The cache key includes the runner's temp path, so every job misses. I was about to strip it when the machine went away."},{sessionId:"mock-release-notes",title:"Draft release notes for 0.64",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:Ia,ago:200,host:xo,hostKind:"local",reply:"Drafted CHANGELOG.md for 0.64: the agent pane, cloud machines in the sidebar, and 23 fixes."},{sessionId:"mock-agent-composer",title:"Port the composer",harness:"claude",model:"claude-opus-5-5",status:"idle",cwd:Ia,ago:320,host:xo,hostKind:"local",pullRequest:{number:16601,title:"cmux-next agent pane: composer and picker menus",state:"merged"},reply:"Merged. The composer, model menu and permission menu now follow the pane theme."},{sessionId:"mock-markdown-lists",title:"Tighten markdown list spacing",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:Ia,ago:1440,host:xo,hostKind:"local",reply:"Nested lists now sit 4 px under their item."},{sessionId:"mock-restore-launch",title:"Speed up workspace restore on launch",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:Ia,ago:2e3,host:xo,hostKind:"local",reply:"Restoring 40 workspaces now takes 180 ms; terminals start lazily when first shown."},{sessionId:"mock-ime",title:"Fix IME composition in the terminal",harness:"codex",model:"gpt-6-astra",status:"idle",cwd:Ia,ago:3100,host:xo,hostKind:"local",reply:"Marked text now draws at the cursor, and Enter commits the composition instead of sending it."},{sessionId:"mock-tool-output",title:"Stream tool output in chunks",harness:"codex",model:"gpt-6-astra",status:"running",cwd:"~/code/acpmux",ago:6,host:xo,hostKind:"local",branch:"stream-tool-output",pullRequest:{number:219,title:"Stream tool output in 8 KiB chunks",state:"open",checks:"failing"},reply:"Splitting tool output into 8 KiB chunks so long shell runs stream instead of arriving at the end.",working:{title:"Edit src/tools/stream.rs",kind:"edit"}},{sessionId:"mock-resume",title:"Resume sessions after a daemon restart",harness:"claude",model:"claude-opus-5-5",status:"idle",unread:!0,pinned:!0,cwd:"~/code/acpmux",ago:40,host:xo,hostKind:"local",branch:"resume-after-restart",pullRequest:{number:212,title:"Resume sessions after a daemon restart",state:"open",reviewReady:!0,checks:"passing"},reply:"Sessions now reload from the event log on start. All 48 replay tests pass."},{sessionId:"mock-replay-bench",title:"Benchmark event replay",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:"~/code/acpmux",ago:1500,host:xo,hostKind:"local",reply:"Replaying 100k events takes 310 ms, 92% of it in JSON parsing."},{sessionId:"mock-home-screen",title:"Polish the home screen",harness:"codex",model:"gpt-6-astra",status:"waiting",pendingPermissions:1,cwd:"~/code/atlas-web",ago:15,host:xo,hostKind:"local",branch:"home-screen",worktree:"~/code/atlas-web-worktrees/home-screen",permission:{title:"Install @pierre/trees",kind:"execute"},reply:"I need to install `@pierre/trees`, which also updates package.json. Approve?"},{sessionId:"mock-light-theme",title:"Add light theme screenshots",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:"~/code/atlas-web",ago:2900,host:xo,hostKind:"local",reply:"Captured 12 light-theme screens next to their dark versions."},{sessionId:"mock-prorate",title:"Prorate seat changes mid-cycle",harness:"claude",model:"claude-opus-5-5",status:"idle",unread:!0,cwd:"~/code/billing-service",ago:65,host:xo,hostKind:"local",branch:"prorate-seats",pullRequest:{number:88,title:"Prorate seat changes mid-cycle",state:"open",reviewReady:!0},reply:"Seat changes now prorate to the day. The invoice preview shows the credit as its own line."},{sessionId:"mock-webhooks",title:"Retry failed Stripe webhooks",harness:"codex",model:"gpt-6-astra",status:"idle",cwd:"~/code/billing-service",ago:4300,host:xo,hostKind:"local",reply:"Failed webhooks retry 5 times with jitter, then land in the dead-letter table."},{sessionId:"mock-zsh",title:"Clean up zsh startup time",harness:"claude",model:"claude-haiku-4-5",status:"idle",cwd:"~/code/dotfiles",ago:5800,host:xo,hostKind:"local",reply:"Startup went from 410 ms to 95 ms by lazy-loading nvm and compinit."},{sessionId:"mock-ghostty-config",title:"Sync Ghostty config across machines",harness:"claude",model:"claude-sonnet-5-5",status:"idle",cwd:"~/code/dotfiles",ago:8600,host:xo,hostKind:"local",reply:"The config now lives in dotfiles and links into ~/.config/ghostty on each machine."}];function Npe(t,e,n){let{ago:r,reply:i,permission:o,...a}=t,s=t.sessionId===cy?"Uploads now retry server errors with backoff.":i;return{...a,preview:s,name:t.harness,updatedAt:e-r*6e4,turnCount:n,modes:t.harness==="codex"?$pe:Ape,configOptions:Ipe(t.harness==="codex"?"high":"medium")}}function EF(t,e,n,r="claude"){let i=r==="codex";return{sessionId:t,title:"New chat",name:r,harness:r,model:(i?MF:LF)[0].id,status:"idle",cwd:e,host:xo,hostKind:"local",branch:"main",updatedAt:n,turnCount:0,modes:i?$pe:Ape,configOptions:Ipe(i?"high":"medium")}}var dL=t=>({sessionUpdate:"agent_message_chunk",content:{type:"text",text:t}}),cg=(t,e,n,r={})=>({sessionUpdate:"tool_call",toolCallId:t,kind:e,title:n,status:"completed",...r}),uL=t=>({content:[{type:"content",content:{type:"text",text:t}}]}),CF=`${Ia}/Sources/Fleet/upload.ts`,Rpe=`${Ia}/Sources/Fleet/retry.ts`,_F=`${Ia}/Sources/Fleet/upload.test.ts`,SF=`export async function uploadArtifact(url: string, body: Blob): Promise<void> { const response = await fetch(url, { method: "PUT", body }); if (!response.ok) throw new Error(\`upload failed: \${response.status}\`); } @@ -754,9 +754,9 @@ test("retries a 503 and then succeeds", async () => { await uploadArtifact(server.url, new Blob(["ok"])); expect(server.requests).toHaveLength(3); }); -`,LF={root:Ia,upload:{path:"Sources/Fleet/upload.ts",before:kF,after:Ppe},retry:{path:"Sources/Fleet/retry.ts",after:jpe},test:{path:"Sources/Fleet/upload.test.ts",before:pL,after:Ope}},Dpe=6e4,el=3*Dpe+3e4,Fpe=[{ago:el,mux:"user_message",msg:{text:"The fleet uploader gives up on the first 503. Add retry with backoff and cover it with a test."}},{ago:el,mux:"turn_started"},{ago:el-2e3,update:dL("I'll find where artifacts are uploaded first.")},{ago:el-4e3,update:sg("w-search","search","Search for uploadArtifact",uL(`Sources/Fleet/upload.ts:1 +`,TF={root:Ia,upload:{path:"Sources/Fleet/upload.ts",before:SF,after:Ppe},retry:{path:"Sources/Fleet/retry.ts",after:jpe},test:{path:"Sources/Fleet/upload.test.ts",before:pL,after:Ope}},Dpe=6e4,el=3*Dpe+3e4,Fpe=[{ago:el,mux:"user_message",msg:{text:"The fleet uploader gives up on the first 503. Add retry with backoff and cover it with a test."}},{ago:el,mux:"turn_started"},{ago:el-2e3,update:dL("I'll find where artifacts are uploaded first.")},{ago:el-4e3,update:cg("w-search","search","Search for uploadArtifact",uL(`Sources/Fleet/upload.ts:1 Sources/Fleet/publish.ts:42 -Sources/Fleet/upload.test.ts:2`))},{ago:el-7e3,update:sg("w-read-upload","read","Read Sources/Fleet/upload.ts",{locations:[{path:wF}],...uL(kF)})},{ago:el-9e3,update:sg("w-read-test","read","Read Sources/Fleet/upload.test.ts",{locations:[{path:vF}],...uL(pL)})},{ago:el-15e3,update:dL(`The upload is a single \`fetch\` with no retry, so any 5xx fails the whole publish. I'll add a small helper that retries only server errors, doubling the wait each time: +Sources/Fleet/upload.test.ts:2`))},{ago:el-7e3,update:cg("w-read-upload","read","Read Sources/Fleet/upload.ts",{locations:[{path:CF}],...uL(SF)})},{ago:el-9e3,update:cg("w-read-test","read","Read Sources/Fleet/upload.test.ts",{locations:[{path:_F}],...uL(pL)})},{ago:el-15e3,update:dL(`The upload is a single \`fetch\` with no retry, so any 5xx fails the whole publish. I'll add a small helper that retries only server errors, doubling the wait each time: \`\`\`ts export async function withRetry<T>(attempt: () => Promise<T>, tries = 5): Promise<T> { @@ -771,7 +771,7 @@ export async function withRetry<T>(attempt: () => Promise<T>, tries = 5): Promis } \`\`\` -Client errors like 403 still fail at once, since retrying them can't help.`)},{ago:el-4e4,update:sg("w-write-retry","edit","Write Sources/Fleet/retry.ts",{locations:[{path:Rpe}],content:[{type:"diff",path:Rpe,newText:jpe}]})},{ago:el-52e3,update:sg("w-edit-upload","edit","Edit Sources/Fleet/upload.ts",{locations:[{path:wF,line:1}],content:[{type:"diff",path:wF,oldText:kF,newText:Ppe}]})},{ago:el-61e3,update:sg("w-edit-test","edit","Edit Sources/Fleet/upload.test.ts",{locations:[{path:vF,line:8}],content:[{type:"diff",path:vF,oldText:pL,newText:Ope}]})},{ago:el-8e4,update:sg("w-test","execute","Run bun test Sources/Fleet",{rawInput:{command:"bun test Sources/Fleet",cwd:Ia},rawOutput:{exit_code:0},...uL(`bun test v1.4.0 +Client errors like 403 still fail at once, since retrying them can't help.`)},{ago:el-4e4,update:cg("w-write-retry","edit","Write Sources/Fleet/retry.ts",{locations:[{path:Rpe}],content:[{type:"diff",path:Rpe,newText:jpe}]})},{ago:el-52e3,update:cg("w-edit-upload","edit","Edit Sources/Fleet/upload.ts",{locations:[{path:CF,line:1}],content:[{type:"diff",path:CF,oldText:SF,newText:Ppe}]})},{ago:el-61e3,update:cg("w-edit-test","edit","Edit Sources/Fleet/upload.test.ts",{locations:[{path:_F,line:8}],content:[{type:"diff",path:_F,oldText:pL,newText:Ope}]})},{ago:el-8e4,update:cg("w-test","execute","Run bun test Sources/Fleet",{rawInput:{command:"bun test Sources/Fleet",cwd:Ia},rawOutput:{exit_code:0},...uL(`bun test v1.4.0 Sources/Fleet/upload.test.ts: \u2713 uploads the artifact [3.12ms] @@ -802,14 +802,14 @@ export function manifestFor(name: string, files: string[]): Manifest { export function manifestFor(name: string, files: string[]): Manifest { return { name, files: [...files].sort(), uploadedAt: new Date().toISOString() }; } -`;function mL(t,e,n,r){let i=IO($O(n,r)),o={path:t,displayPath:t,edits:[],additions:0,deletions:0,created:n==null},a=M2(o,{toolId:"git",hunks:i,numbered:!0}).split(` +`;function mL(t,e,n,r){let i=jO(PO(n,r)),o={path:t,displayPath:t,edits:[],additions:0,deletions:0,created:n==null},a=E2(o,{toolId:"git",hunks:i,numbered:!0}).split(` `).slice(3).join(` -`),s=i.flatMap(l=>l.lines);return{path:t,status:e,additions:s.filter(l=>l.type==="add").length,deletions:s.filter(l=>l.type==="del").length,patch:a}}var{upload:MF,retry:zpe,test:EF}=LF,TF=[mL(zpe.path,"added",void 0,zpe.after)],RF=[mL(MF.path,"modified",MF.before,MF.after),mL(EF.path,"modified",EF.before,EF.after)],qpe=[mL("Sources/Fleet/manifest.ts","modified",rHe,iHe)],Hpe={uncommitted:[...TF,...RF],unstaged:RF,staged:TF,committed:qpe,branch:[...qpe,...TF,...RF]},Gpe=new Set(cy.filter(t=>t.cwd==="~/code/dotfiles").map(t=>t.sessionId)),Upe=t=>cy.find(e=>e.sessionId===t)?.cwd??LF.root;function AF(t,e,n){if(Gpe.has(t))throw new Error("Not a git repository");if(!Object.hasOwn(Hpe,e))throw new Error(`Unknown scope ${e}`);let r=t===ly?Hpe[e]:[],i=e==="branch"?"origin/main":e==="committed"?"4be1c2e~1":void 0;return{scope:e,root:Upe(t),head:"4be1c2e",...i?{base:i}:{},files:r.map(o=>({path:o.path,...o.previousPath?{previous_path:o.previousPath}:{},status:o.status,additions:o.additions,deletions:o.deletions,...o.binary?{binary:!0}:{},...n&&o.patch!==void 0?{patch:o.patch}:{},...n&&o.patchTruncated?{patch_truncated:!0}:{}})),additions:r.reduce((o,a)=>o+a.additions,0),deletions:r.reduce((o,a)=>o+a.deletions,0),total_files:r.length,files_omitted:0}}function Vpe(t){if(Gpe.has(t))throw new Error("Not a git repository");let n=cy.find(r=>r.sessionId===t)?.branch??"main";return{root:Upe(t),detached:!1,branch:n,upstream:"origin/main",base:"origin/main",ahead:1,behind:0}}var fL="not_a_repository";function Zpe(t){let n=t?.details?.extra?.code;return typeof n=="string"?n:void 0}function Wpe(t){let e=t;if(!e||typeof e.root!="string"||!Array.isArray(e.results))return;let n=[];for(let i of e.results){let o=i;if(!o||typeof o.path!="string"||!o.path)continue;let a=Array.isArray(o.matches)?o.matches.filter(s=>Number.isInteger(s)&&s>=0&&s<o.path.length):void 0;n.push(a?.length?{path:o.path,matches:a}:{path:o.path})}let r=typeof e.search_root=="string"?{searchRoot:e.search_root}:{};return{root:e.root,...r,results:n,truncated:e.truncated===!0}}function Kpe(t,e=[]){let n=new Set(e),r=t.lastIndexOf("/"),i=(o,a)=>{let s=[];for(let l=o;l<a;l++){let c=n.has(l),u=s[s.length-1];u&&u.matched===c?u.text+=t[l]:s.push({text:t[l],matched:c})}return s};return{dir:i(0,Math.max(r,0)),name:i(r+1,t.length)}}var Xpe={"~/code/cmux":["README.md","package.json","Package.swift","Sources/Fleet/upload.ts","Sources/Fleet/upload.test.ts","Sources/Fleet/retry.ts","Sources/Fleet/manifest.ts","Sources/Fleet/README.md","Sources/Panels/TerminalPanelView.swift","Sources/Panels/BrowserPanelView.swift","Sources/GhosttyTerminalView.swift","Sources/ContentView.swift","Sources/SessionIndexView.swift","Resources/Localizable.xcstrings","webviews/src/agent-session/acpmux/Composer.tsx","webviews/src/agent-session/acpmux/styles.css","docs/agent-pane.md","scripts/reload.sh"],"~/code/acpmux":["README.md","Cargo.toml","src/main.rs","src/session.rs","src/replay.rs","src/trust.rs"],"~/code/atlas-web":["README.md","package.json","src/app/App.tsx","src/app/home.tsx","src/theme.css"],"~/code/billing-service":["README.md","go.mod","cmd/server/main.go","stripe/webhooks.go","stripe/seats.go"],"~/code/dotfiles":[".zshrc",".gitconfig","nvim/init.lua","README.md"]};function oHe(t,e){let n=t.toLowerCase(),r=e.toLowerCase().replace(/\s+/g,""),i=n.lastIndexOf("/")+1,o=c=>{let u=[],d=c;for(let p of r){let m=n.indexOf(p,d);if(m<0)return;u.push(m),d=m+1}return u},a=o(i),s=a??o(0);if(!s)return;let l=0;for(let c=1;c<s.length;c++)l+=s[c]-s[c-1]-1;return{matches:s,score:(a?0:1e3)+l*10+t.length}}function Ype(t,e,n){let r=t??"~";if(!Xpe[r])throw Object.assign(new Error(`${r} is not in a git repository`),{code:"operation.failed",details:{operation:"git.files.search",reason:`${r} is not in a git repository`,extra:{code:fL}}});let i=typeof e=="string"?e.trim():"";if(!i)return{root:r,search_root:r,results:[]};let o=Math.min(typeof n=="number"&&n>0?n:50,200),a=(Xpe[r]??[]).flatMap(l=>{let c=oHe(l,i);return c?[{path:l,matches:c.matches,score:c.score}]:[]}).sort((l,c)=>l.score-c.score||l.path.localeCompare(c.path)),s=a.slice(0,o).map(({path:l,matches:c})=>({path:l,matches:c}));return{root:r,search_root:r,results:s,truncated:a.length>o}}var N1=ly,aHe=[{id:"claude",name:"Claude Code",models:CF},{id:"codex",name:"Codex",models:_F}],Qpe=[{id:"claude",name:"Claude Code",models:[{id:"claude-sonnet",name:"Claude Sonnet"}]},{id:"codex",name:"Codex",models:[{id:"gpt-6-astra",name:"GPT-6-Astra"}]}],sHe=[{name:"compact",description:"Clear conversation history but keep a summary in context",input:{hint:"optional custom summarization instructions"}},{name:"init",description:"Initialize a new CLAUDE.md file with codebase documentation"},{name:"pr-comments",description:"Get comments from a GitHub pull request"},{name:"review",description:"Review a pull request"}],lHe={sessionId:N1,title:"Mock session",harness:"claude",model:"claude-sonnet",status:"idle",turnCount:0},IF={protocolVersion:1,transport:"acpmux-websocket",endpoint:"ws://mock.invalid/acp",token:"mock",sessionId:N1};function cHe(t){return`Mock reply to **${t.replace(/[*_`]/g,"")}**. No acpmux daemon is attached; this pane is running in mock mode.`}var hL=t=>({sessionUpdate:"agent_message_chunk",content:{type:"text",text:t}}),$F=(t,e,n,r,i={})=>({sessionUpdate:"tool_call",toolCallId:t,kind:e,title:n,status:r,...i}),Jpe=(t,e={})=>({sessionUpdate:"tool_call_update",toolCallId:t,status:"completed",...e});function uHe(t,e){let n="/mock/project/src/greeting.ts",r="/mock/project/NOTES.md";return[{update:hL("I'll look at the greeting helper")},{update:hL(" first.")},{update:$F(`read-${e}`,"read","Read src/greeting.ts","in_progress",{locations:[{path:n}]})},{update:Jpe(`read-${e}`,{content:[{type:"content",content:{type:"text",text:`export function greet(name: string) { +`),s=i.flatMap(l=>l.lines);return{path:t,status:e,additions:s.filter(l=>l.type==="add").length,deletions:s.filter(l=>l.type==="del").length,patch:a}}var{upload:RF,retry:zpe,test:AF}=TF,$F=[mL(zpe.path,"added",void 0,zpe.after)],IF=[mL(RF.path,"modified",RF.before,RF.after),mL(AF.path,"modified",AF.before,AF.after)],qpe=[mL("Sources/Fleet/manifest.ts","modified",rHe,iHe)],Hpe={uncommitted:[...$F,...IF],unstaged:IF,staged:$F,committed:qpe,branch:[...qpe,...$F,...IF]},Gpe=new Set(uy.filter(t=>t.cwd==="~/code/dotfiles").map(t=>t.sessionId)),Upe=t=>uy.find(e=>e.sessionId===t)?.cwd??TF.root;function NF(t,e,n){if(Gpe.has(t))throw new Error("Not a git repository");if(!Object.hasOwn(Hpe,e))throw new Error(`Unknown scope ${e}`);let r=t===cy?Hpe[e]:[],i=e==="branch"?"origin/main":e==="committed"?"4be1c2e~1":void 0;return{scope:e,root:Upe(t),head:"4be1c2e",...i?{base:i}:{},files:r.map(o=>({path:o.path,...o.previousPath?{previous_path:o.previousPath}:{},status:o.status,additions:o.additions,deletions:o.deletions,...o.binary?{binary:!0}:{},...n&&o.patch!==void 0?{patch:o.patch}:{},...n&&o.patchTruncated?{patch_truncated:!0}:{}})),additions:r.reduce((o,a)=>o+a.additions,0),deletions:r.reduce((o,a)=>o+a.deletions,0),total_files:r.length,files_omitted:0}}function Vpe(t){if(Gpe.has(t))throw new Error("Not a git repository");let n=uy.find(r=>r.sessionId===t)?.branch??"main";return{root:Upe(t),detached:!1,branch:n,upstream:"origin/main",base:"origin/main",ahead:1,behind:0}}var fL="not_a_repository";function Zpe(t){let n=t?.details?.extra?.code;return typeof n=="string"?n:void 0}function Wpe(t){let e=t;if(!e||typeof e.root!="string"||!Array.isArray(e.results))return;let n=[];for(let i of e.results){let o=i;if(!o||typeof o.path!="string"||!o.path)continue;let a=Array.isArray(o.matches)?o.matches.filter(s=>Number.isInteger(s)&&s>=0&&s<o.path.length):void 0;n.push(a?.length?{path:o.path,matches:a}:{path:o.path})}let r=typeof e.search_root=="string"?{searchRoot:e.search_root}:{};return{root:e.root,...r,results:n,truncated:e.truncated===!0}}function Kpe(t,e=[]){let n=new Set(e),r=t.lastIndexOf("/"),i=(o,a)=>{let s=[];for(let l=o;l<a;l++){let c=n.has(l),u=s[s.length-1];u&&u.matched===c?u.text+=t[l]:s.push({text:t[l],matched:c})}return s};return{dir:i(0,Math.max(r,0)),name:i(r+1,t.length)}}var Xpe={"~/code/cmux":["README.md","package.json","Package.swift","Sources/Fleet/upload.ts","Sources/Fleet/upload.test.ts","Sources/Fleet/retry.ts","Sources/Fleet/manifest.ts","Sources/Fleet/README.md","Sources/Panels/TerminalPanelView.swift","Sources/Panels/BrowserPanelView.swift","Sources/GhosttyTerminalView.swift","Sources/ContentView.swift","Sources/SessionIndexView.swift","Resources/Localizable.xcstrings","webviews/src/agent-session/acpmux/Composer.tsx","webviews/src/agent-session/acpmux/styles.css","docs/agent-pane.md","scripts/reload.sh"],"~/code/acpmux":["README.md","Cargo.toml","src/main.rs","src/session.rs","src/replay.rs","src/trust.rs"],"~/code/atlas-web":["README.md","package.json","src/app/App.tsx","src/app/home.tsx","src/theme.css"],"~/code/billing-service":["README.md","go.mod","cmd/server/main.go","stripe/webhooks.go","stripe/seats.go"],"~/code/dotfiles":[".zshrc",".gitconfig","nvim/init.lua","README.md"]};function oHe(t,e){let n=t.toLowerCase(),r=e.toLowerCase().replace(/\s+/g,""),i=n.lastIndexOf("/")+1,o=c=>{let u=[],d=c;for(let p of r){let m=n.indexOf(p,d);if(m<0)return;u.push(m),d=m+1}return u},a=o(i),s=a??o(0);if(!s)return;let l=0;for(let c=1;c<s.length;c++)l+=s[c]-s[c-1]-1;return{matches:s,score:(a?0:1e3)+l*10+t.length}}function Ype(t,e,n){let r=t??"~";if(!Xpe[r])throw Object.assign(new Error(`${r} is not in a git repository`),{code:"operation.failed",details:{operation:"git.files.search",reason:`${r} is not in a git repository`,extra:{code:fL}}});let i=typeof e=="string"?e.trim():"";if(!i)return{root:r,search_root:r,results:[]};let o=Math.min(typeof n=="number"&&n>0?n:50,200),a=(Xpe[r]??[]).flatMap(l=>{let c=oHe(l,i);return c?[{path:l,matches:c.matches,score:c.score}]:[]}).sort((l,c)=>l.score-c.score||l.path.localeCompare(c.path)),s=a.slice(0,o).map(({path:l,matches:c})=>({path:l,matches:c}));return{root:r,search_root:r,results:s,truncated:a.length>o}}var P1=cy,aHe=[{id:"claude",name:"Claude Code",models:LF},{id:"codex",name:"Codex",models:MF}],Qpe=[{id:"claude",name:"Claude Code",models:[{id:"claude-sonnet",name:"Claude Sonnet"}]},{id:"codex",name:"Codex",models:[{id:"gpt-6-astra",name:"GPT-6-Astra"}]}],sHe=[{name:"compact",description:"Clear conversation history but keep a summary in context",input:{hint:"optional custom summarization instructions"}},{name:"init",description:"Initialize a new CLAUDE.md file with codebase documentation"},{name:"pr-comments",description:"Get comments from a GitHub pull request"},{name:"review",description:"Review a pull request"}],lHe={sessionId:P1,title:"Mock session",harness:"claude",model:"claude-sonnet",status:"idle",turnCount:0},jF={protocolVersion:1,transport:"acpmux-websocket",endpoint:"ws://mock.invalid/acp",token:"mock",sessionId:P1};function cHe(t){return`Mock reply to **${t.replace(/[*_`]/g,"")}**. No acpmux daemon is attached; this pane is running in mock mode.`}var hL=t=>({sessionUpdate:"agent_message_chunk",content:{type:"text",text:t}}),PF=(t,e,n,r,i={})=>({sessionUpdate:"tool_call",toolCallId:t,kind:e,title:n,status:r,...i}),Jpe=(t,e={})=>({sessionUpdate:"tool_call_update",toolCallId:t,status:"completed",...e});function uHe(t,e){let n="/mock/project/src/greeting.ts",r="/mock/project/NOTES.md";return[{update:hL("I'll look at the greeting helper")},{update:hL(" first.")},{update:PF(`read-${e}`,"read","Read src/greeting.ts","in_progress",{locations:[{path:n}]})},{update:Jpe(`read-${e}`,{content:[{type:"content",content:{type:"text",text:`export function greet(name: string) { return "Hello " + name; -}`}}]})},{update:hL("It concatenates without punctuation, so I'll add an optional argument and a notes file.")},{update:$F(`edit-${e}`,"edit","Edit src/greeting.ts","in_progress",{locations:[{path:n,line:1}],content:[{type:"diff",path:n,oldText:`export function greet(name: string) { +}`}}]})},{update:hL("It concatenates without punctuation, so I'll add an optional argument and a notes file.")},{update:PF(`edit-${e}`,"edit","Edit src/greeting.ts","in_progress",{locations:[{path:n,line:1}],content:[{type:"diff",path:n,oldText:`export function greet(name: string) { return "Hello " + name; } -`,newText:'export function greet(name: string, punctuation = "!") {\n return `Hello, ${name}${punctuation}`;\n}\n'}]})},{update:Jpe(`edit-${e}`)},{update:$F(`write-${e}`,"edit","Write NOTES.md","completed",{locations:[{path:r}],content:[{type:"diff",path:r,newText:`# Notes +`,newText:'export function greet(name: string, punctuation = "!") {\n return `Hello, ${name}${punctuation}`;\n}\n'}]})},{update:Jpe(`edit-${e}`)},{update:PF(`write-${e}`,"edit","Write NOTES.md","completed",{locations:[{path:r}],content:[{type:"diff",path:r,newText:`# Notes Mock turn ${e}. `}]})},{update:hL(`${cHe(t)} @@ -817,8 +817,8 @@ Mock turn ${e}. - \`greet(name)\` now ends with "!" - \`greet(name, "?")\` picks the punctuation: - \`greet("Ada", "?")\` returns \`Hello, Ada?\` - - the default keeps old callers working`)}]}var gL=class{constructor(e=r=>new Promise(i=>window.setTimeout(i,r)),n){this.delay=e;this.script=n;n?this.sessions=[{...lHe}]:this.seed(Date.now()),queueMicrotask(()=>{this.readyState=1,this.onopen?.()})}delay;script;readyState=0;onopen=null;onerror=null;onclose=null;onmessage=null;sessions=[];agentTrust=new Map([["~/code/cmux",{claude:"trusted",codex:"trusted"}],["~/code/acpmux",{claude:"trusted",codex:"trusted"}],["~/code/atlas-web",{claude:"unknown",codex:"trusted"}]]);trust=new Map([["~/code/atlas-web","trusted"]]);handoffs=new cL(()=>this.sessions,(e,n)=>{let r={...SF(`mock-session-${this.sessions.length+1}`,e.cwd,Date.now()),harness:n,enforcement:e.enforcement};return this.sessions.push(r),this.touch(r.sessionId,{},!1),r.sessionId},e=>{let n=this.events.filter(r=>r.sessionId===e);return{seq:n.at(-1)?.seq??0,text:n.map(r=>JSON.stringify(r.msg)).join(` -`)||"Continue this repository task."}},(e,n,r)=>this.prompt(e,n,r),e=>{let n=this.sessions.find(r=>r.sessionId===e);this.sessions=this.sessions.filter(r=>r.sessionId!==e),this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"purged",session:n}})});events=[];seq=0;turns=0;running;openTurns=new Set;attached=N1;closed=!1;queue=Promise.resolve();pending=0;seed(e){for(let n of cy){this.sessions.push(Npe(n,e,1)),n.sessionId===N1&&this.listCommands(N1,e-7*6e4);let r=n.sessionId===N1?Fpe:Bpe(n);for(let{ago:i,...o}of r)this.record(n.sessionId,o,e-i);(n.status==="running"||n.permission)&&this.openTurns.add(n.sessionId)}}listCommands(e,n){this.record(e,{update:{sessionUpdate:"available_commands_update",availableCommands:sHe}},n)}closeSeededTurn(e,n,r=!1){if(!this.openTurns.delete(e))return;let o=this.events.find(s=>s.sessionId===e&&s.kind==="tool_call"&&["pending","in_progress"].includes(s.msg?.params?.update?.status))?.msg?.params?.update?.toolCallId;o&&this.emit(e,{update:{sessionUpdate:"tool_call_update",toolCallId:o,status:r?"completed":"failed"}});let a=this.events.find(s=>s.sessionId===e&&s.kind==="permission_request");a&&this.emit(e,{mux:"permission_decision",msg:{permissionId:a.msg.permissionId}}),this.emit(e,{mux:"turn_result",msg:{status:n}}),this.touch(e,{status:"idle",pendingPermissions:0})}send(e){let n=JSON.parse(e);if(n.method==="session/cancel"){let r=String(n.params?.sessionId??N1);this.running?.target===r?this.running.cancelled=!0:this.closeSeededTurn(r,"cancelled");return}n.id!==void 0&&this.answer(n.method,n.params??{}).then(r=>this.deliver({jsonrpc:"2.0",id:n.id,result:r}),r=>this.deliver({jsonrpc:"2.0",id:n.id,error:{code:-32e3,message:r.message,data:r.data??(r.code?{code:r.code,...r.details?{details:r.details}:{}}:void 0)}}))}close(){this.readyState=3,this.closed=!0,this.running&&(this.running.cancelled=!0)}async answer(e,n){let r=String(n.sessionId??N1);if(Object.values(vi).includes(e))return this.handoffs.answer(e,n);switch(e){case"initialize":return{protocolVersion:1,_meta:{acpmux:{origin:"local",operations:[S2,...Object.values(vi)],handoff:{maxCapsuleBytes:65536}}}};case S2:return this.fork(r,Number(n.throughSeq));case"_acpmux/watch":return{sessions:this.sessions};case"_acpmux/harnesses":return{harnesses:this.script?Qpe:aHe};case"_acpmux/attach":return this.attached=r,this.sessions.find(i=>i.sessionId===r)?.unread&&this.touch(r,{unread:!1},!1),{session:{...this.sessions.find(i=>i.sessionId===r),enforcement:{policy:"default",label:"native_policy",isolation:"unverified",detail:null}},events:this.events.filter(i=>i.sessionId===r)};case"_acpmux/events":return this.page(r,n);case"_acpmux/permission_respond":return this.closeSeededTurn(r,"completed",String(n.optionId??"").startsWith("allow")),{};case"session/new":{let i=this.sessions.find(a=>a.sessionId===this.attached)??this.sessions[0],o=SF(`mock-session-${this.sessions.length+1}`,String(n.cwd??i?.cwd??"~/code/cmux"),Date.now(),n._meta?.acpmux?.harness==="codex"?"codex":"claude");return n._meta?.acpmux?.harness&&(o.harness=n._meta.acpmux.harness),i?.host&&Object.assign(o,{host:i.host,hostKind:i.hostKind}),this.script&&(o.model=Qpe[0].models[0].id),this.script||this.listCommands(String(o.sessionId)),this.sessions.push(o),this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"created",session:o}}),{sessionId:o.sessionId}}case"session/prompt":{let i=String(n.prompt?.[0]?.text??""),o=n._meta?.acpmux?.promptId,a=this.pending>0&&o!==void 0;a&&this.emit(r,{mux:"queued",msg:{promptId:o,text:i}}),this.pending+=1;let s=this.queue.then(()=>(a&&this.emit(r,{mux:"dequeued",msg:{promptId:o}}),this.prompt(r,i,o))).finally(()=>{this.pending-=1});return this.queue=s.catch(()=>{}),s}case"session/set_model":return this.touch(r,{model:String(n.modelId)},!1),{};case"session/set_config_option":{let a=(this.sessions.find(s=>s.sessionId===r)?.configOptions??[]).map(s=>s.id===n.configId?{...s,currentValue:String(n.value)}:s);return this.touch(r,{configOptions:a},!1),{}}case"acp.trust.get":{let i=String(n.cwd??""),o={claude:"unknown",codex:"unknown",...this.agentTrust.get(i)},a=this.trust.get(i)??Epe(o.claude,o.codex);return{cwd:i,level:a,harnesses:o}}case"acp.trust.set":{let i=String(n.cwd??"");if(n.level==="unknown")return this.trust.delete(i),{cwd:i,level:"unknown"};let o=n.level==="untrusted"?"untrusted":"trusted";return this.trust.set(i,o),{cwd:i,level:o}}case"file.search":return Ype(typeof n.path=="string"?n.path:this.sessions.find(i=>i.sessionId===r)?.cwd,n.query,n.limit);case"git.checkpoint.diff":return{...AF(r,"uncommitted",n.include_patch===!0),from:n.from,...typeof n.to=="string"?{to:n.to}:{}};case"git.diff":return AF(r,n.scope,n.include_patch===!0);case"git.status":return Vpe(r);default:return{}}}fork(e,n){let r=this.sessions.find(s=>s.sessionId===e);if(!r||!Number.isFinite(n))throw new Error(`cannot fork ${e}`);let i=`mock-session-${this.sessions.length+1}`;for(let s of this.events.filter(l=>l.sessionId===e&&l.seq<=n)){this.seq+=1;let l=s.dir==="in"?{...s.msg,params:{...s.msg.params,sessionId:i}}:s.msg;this.events.push({...s,sessionId:i,seq:this.seq,msg:l})}let o=this.events.filter(s=>s.sessionId===i&&s.kind==="turn_result").length,a={...r,sessionId:i,status:"idle",unread:!1,pendingPermissions:0,turnCount:o,updatedAt:Date.now()};return this.sessions.push(a),this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"created",session:a}}),{sessionId:i}}async prompt(e,n,r){if(this.closed)return{stopReason:"cancelled"};this.turns+=1,this.closeSeededTurn(e,"cancelled"),this.touch(e,{turnCount:Number(this.sessions.find(l=>l.sessionId===e)?.turnCount??0)+1,unread:!1,status:"running"});let i={cancelled:!1,target:e};this.running=i;let o=Date.now();this.emit(e,{mux:"user_message",msg:{text:n,promptId:r}}),this.emit(e,{mux:"turn_started"});let a=this.script?.steps??uHe(n,this.turns);for(let l of a){if(this.script||await this.delay(350),i.cancelled||this.closed)break;this.emit(e,l,l.atMs===void 0?void 0:o+l.atMs)}let s=this.script?.endAtMs;return this.emit(e,{mux:"turn_result",msg:{status:i.cancelled?"cancelled":"completed"}},s!==void 0?o+s:void 0),this.running=void 0,this.touch(e,{status:"idle"}),{stopReason:i.cancelled?"cancelled":"end_turn"}}touch(e,n,r=!0){let i=this.sessions.findIndex(a=>a.sessionId===e);if(i<0)return;let o={...this.sessions[i],...n,...r?{updatedAt:Date.now()}:{}};this.sessions[i]=o,this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"updated",session:o}})}page(e,n){let r=Array.isArray(n.kinds)?n.kinds:[],i=l=>r.length===0||(l.kind==="available_commands_update"?r.includes(l.kind):r.includes("transcript")),o=this.events.filter(l=>l.sessionId===e&&i(l));if(n.beforeSeq===void 0)return{events:o.filter(l=>l.seq>Number(n.afterSeq??0)),more:!1};let a=o.filter(l=>l.seq<Number(n.beforeSeq)),s=Math.max(1,Number(n.limit??a.length));return{events:a.slice(-s),more:a.length>s}}record(e,n,r=Date.now()){this.seq+=1;let i="update"in n?{sessionId:e,seq:this.seq,at:r,dir:"in",kind:String(n.update.sessionUpdate),msg:{method:"session/update",params:{sessionId:e,update:n.update}}}:{sessionId:e,seq:this.seq,at:r,dir:"mux",kind:n.mux,msg:n.msg??{}};return this.events.push(i),i}emit(e,n,r){this.deliver({jsonrpc:"2.0",method:"_acpmux/event",params:this.record(e,n,r)})}deliver(e){queueMicrotask(()=>{this.readyState===1&&this.onmessage?.({data:JSON.stringify(e)})})}};var yL=R(Q(),1),bL="acpmux-composer-ready",dHe='input, textarea, select, [contenteditable=""], [contenteditable="true"], [role="textbox"], [role="menu"], [role="menubar"], [role="listbox"], [role="dialog"], [role="tree"], [role="grid"], [role="combobox"]',pHe='button, a[href], [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="tab"], summary';function mHe(t,e){return t.defaultPrevented||t.isComposing||t.metaKey||t.ctrlKey||t.altKey||t.key.length>1&&/^[A-Za-z0-9]+$/.test(t.key)?!1:!e||e===e.ownerDocument?.body?!0:!(e.closest(dHe)||t.key===" "&&e.closest(pHe))}function eme(t){if(!t||t===t.ownerDocument?.body)return"none";if(t.closest(".acpmux-composer-box"))return"composer";let e=t.id?`#${t.id}`:"",n=typeof t.className=="string"&&t.className?`.${t.className.split(/\s+/)[0]}`:"";return`${t.tagName.toLowerCase()}${e}${n}`}function tme(t){let e=(0,yL.useRef)(t);e.current=t,(0,yL.useEffect)(()=>{let n=()=>{let o=document.activeElement;(!o||o===document.body)&&e.current()},r=o=>{mHe(o,document.activeElement)&&e.current()&&(o.preventDefault(),document.execCommand("insertText",!1,o.key))},i=requestAnimationFrame(n);return window.addEventListener("focus",n),window.addEventListener(bL,n),document.addEventListener("keydown",r),()=>{cancelAnimationFrame(i),window.removeEventListener("focus",n),window.removeEventListener(bL,n),document.removeEventListener("keydown",r)}},[])}var nme=/always/i,NF=t=>nme.test(t.id)||nme.test(t.name);function xL(t){let e=new Map,n=(r,i)=>{let o=t.find(a=>!e.has(a.id)&&i(a));o&&e.set(o.id,r)};return n("y",r=>r.allow&&!NF(r)),n("a",r=>r.allow&&NF(r)),n("n",r=>!r.allow&&!NF(r)),t.slice(0,9).forEach((r,i)=>{e.has(r.id)||e.set(r.id,String(i+1))}),new Map(t.filter(r=>e.has(r.id)).map(r=>[r.id,e.get(r.id)]))}function wL(t,e,n){let r=/^[1-9]$/.test(n)?Number(n)-1:-1;return r>=0?t[r]:t.find(i=>e.get(i.id)===n)}function rme(t){let e=t.snapshot(),n=[...e.rows].reverse().find(i=>i.kind==="assistant"),r=e.permissionGroups;return{connection:e.connection,sessionId:e.sessionId??null,harness:e.summary?.harness??null,isWorking:e.isWorking,rows:e.rows.length,lastAssistant:n?{text:n.text??"",streaming:n.streaming===!0}:null,sessions:e.sessions.map(i=>({sessionId:i.sessionId,title:i.displayTitle??i.title??i.name??null,harness:i.harness??null,status:i.status??null})),permission:e.permission?.pending?{permissionId:e.permission.permissionId,title:e.permission.title??null,options:e.permission.options}:null,permissionGroups:(r?.groups??[]).filter(i=>i.state==="pending"||i.state==="collecting").map(i=>({groupId:i.groupId,revision:i.revision,state:i.state,decisions:i.decisions,items:i.items.length})),changedFiles:Sd(e.rows).map(i=>i.path),diff:t.diff(),focus:eme(typeof document>"u"?null:document.activeElement)}}var fHe=1500;async function ime(t,e,n=fHe){if(!e.trim())return{error:"empty prompt"};let r=t.call("chat.send",{text:e}).then(()=>({ended:!0}),o=>({error:o instanceof Error?o.message:String(o)})),i=await Promise.race([r,new Promise(o=>setTimeout(()=>o({running:!0}),n))]);return"error"in i?{error:i.error}:{sent:!0,turnEnded:"ended"in i,sessionId:t.snapshot().sessionId??null}}async function ome(t,e,n){return await t.call("chat.new",{...e?{harness:e}:{},...n?{cwd:n}:{}}),{sessionId:t.snapshot().sessionId??null}}function ame(t,e){return t.snapshot().sessions.some(n=>n.sessionId===e)?(t.selectSession(e),{selected:e}):{error:`no session ${JSON.stringify(e)}`}}async function sme(t,e={}){let n=t.snapshot(),r=n.permissionGroups?.supported?n.permissionGroups.groups.find(s=>s.state==="pending"):void 0;if(r){let s=e.decision??(e.allow===!1?"deny":"allow_once");return r.decisions.includes(s)?(await t.call("chat.permission_group.respond",{groupId:r.groupId,revision:r.revision,decision:s}),{answered:r.groupId,decision:s}):{error:`decision ${s} not offered`,offered:r.decisions}}let i=n.permission?.pending?n.permission:void 0;if(!i)return{error:"no pending permission"};let o=e.allow!==!1,a=e.optionId?i.options.find(s=>s.id===e.optionId):wL(i.options,xL(i.options),o?"y":"n");return a?(await t.call("chat.permission",{permissionId:i.permissionId,optionId:a.id}),{answered:i.permissionId,optionId:a.id}):{error:"no matching option",options:i.options}}async function lme(t,e,n){let r=t.snapshot(),i=x6(r.catalog,r.summary);if(!i.some(o=>o.id===e))return{error:`model ${JSON.stringify(e)} is not offered`,models:i.map(o=>o.id)};if(await t.call("chat.model",{modelId:e}),n){let o=r.summary?.configOptions?.find(a=>a.category==="thought_level"||a.id==="effort"||a.id==="reasoning_effort");if(!o)return{model:e,error:"the session offers no effort option"};await t.call("chat.effort",{configId:o.id,value:n})}return{model:e,effort:n??null}}function cme(t){let e=t.snapshot(),n=x6(e.catalog,e.summary);return{harness:e.summary?.harness??null,current:e.summary?.model??null,models:n.map(r=>({id:r.id,name:r.name}))}}function ume(t){let n=[...t.snapshot().rows].reverse().find(r=>r.kind==="activity"&&(r.items??[]).some(i=>i.tool?.diffs?.length));return n?(t.openDiff(n.id),{opened:n.id,files:Sd([n]).map(r=>r.path)}):{error:"no turn with edited files"}}function vL(t){let e=[],n=0,r=o=>{n+=1,e.push({...o,version:1,at:n*1e3})},i=Math.max(1,Math.floor(t/3));for(let o=0;o<i;o+=1){r({id:`synthetic-user-${o}`,kind:"user",text:`Question ${o}: how should the transcript handle item ${o%97}?`});let a=`Answer ${o}. `+"This sentence adds some width to the paragraph. ".repeat(1+o%5);o%3===0&&(a+=` + - the default keeps old callers working`)}]}var gL=class{constructor(e=r=>new Promise(i=>window.setTimeout(i,r)),n){this.delay=e;this.script=n;n?this.sessions=[{...lHe}]:this.seed(Date.now()),queueMicrotask(()=>{this.readyState=1,this.onopen?.()})}delay;script;readyState=0;onopen=null;onerror=null;onclose=null;onmessage=null;sessions=[];agentTrust=new Map([["~/code/cmux",{claude:"trusted",codex:"trusted"}],["~/code/acpmux",{claude:"trusted",codex:"trusted"}],["~/code/atlas-web",{claude:"unknown",codex:"trusted"}]]);trust=new Map([["~/code/atlas-web","trusted"]]);handoffs=new cL(()=>this.sessions,(e,n)=>{let r={...EF(`mock-session-${this.sessions.length+1}`,e.cwd,Date.now()),harness:n,enforcement:e.enforcement};return this.sessions.push(r),this.touch(r.sessionId,{},!1),r.sessionId},e=>{let n=this.events.filter(r=>r.sessionId===e);return{seq:n.at(-1)?.seq??0,text:n.map(r=>JSON.stringify(r.msg)).join(` +`)||"Continue this repository task."}},(e,n,r)=>this.prompt(e,n,r),e=>{let n=this.sessions.find(r=>r.sessionId===e);this.sessions=this.sessions.filter(r=>r.sessionId!==e),this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"purged",session:n}})});events=[];seq=0;turns=0;running;openTurns=new Set;attached=P1;closed=!1;queue=Promise.resolve();pending=0;seed(e){for(let n of uy){this.sessions.push(Npe(n,e,1)),n.sessionId===P1&&this.listCommands(P1,e-7*6e4);let r=n.sessionId===P1?Fpe:Bpe(n);for(let{ago:i,...o}of r)this.record(n.sessionId,o,e-i);(n.status==="running"||n.permission)&&this.openTurns.add(n.sessionId)}}listCommands(e,n){this.record(e,{update:{sessionUpdate:"available_commands_update",availableCommands:sHe}},n)}closeSeededTurn(e,n,r=!1){if(!this.openTurns.delete(e))return;let o=this.events.find(s=>s.sessionId===e&&s.kind==="tool_call"&&["pending","in_progress"].includes(s.msg?.params?.update?.status))?.msg?.params?.update?.toolCallId;o&&this.emit(e,{update:{sessionUpdate:"tool_call_update",toolCallId:o,status:r?"completed":"failed"}});let a=this.events.find(s=>s.sessionId===e&&s.kind==="permission_request");a&&this.emit(e,{mux:"permission_decision",msg:{permissionId:a.msg.permissionId}}),this.emit(e,{mux:"turn_result",msg:{status:n}}),this.touch(e,{status:"idle",pendingPermissions:0})}send(e){let n=JSON.parse(e);if(n.method==="session/cancel"){let r=String(n.params?.sessionId??P1);this.running?.target===r?this.running.cancelled=!0:this.closeSeededTurn(r,"cancelled");return}n.id!==void 0&&this.answer(n.method,n.params??{}).then(r=>this.deliver({jsonrpc:"2.0",id:n.id,result:r}),r=>this.deliver({jsonrpc:"2.0",id:n.id,error:{code:-32e3,message:r.message,data:r.data??(r.code?{code:r.code,...r.details?{details:r.details}:{}}:void 0)}}))}close(){this.readyState=3,this.closed=!0,this.running&&(this.running.cancelled=!0)}async answer(e,n){let r=String(n.sessionId??P1);if(Object.values(vi).includes(e))return this.handoffs.answer(e,n);switch(e){case"initialize":return{protocolVersion:1,_meta:{acpmux:{origin:"local",operations:[L2,...Object.values(vi)],handoff:{maxCapsuleBytes:65536}}}};case L2:return this.fork(r,Number(n.throughSeq));case"_acpmux/watch":return{sessions:this.sessions};case"_acpmux/harnesses":return{harnesses:this.script?Qpe:aHe};case"_acpmux/attach":return this.attached=r,this.sessions.find(i=>i.sessionId===r)?.unread&&this.touch(r,{unread:!1},!1),{session:{...this.sessions.find(i=>i.sessionId===r),enforcement:{policy:"default",label:"native_policy",isolation:"unverified",detail:null}},events:this.events.filter(i=>i.sessionId===r)};case"_acpmux/events":return this.page(r,n);case"_acpmux/permission_respond":return this.closeSeededTurn(r,"completed",String(n.optionId??"").startsWith("allow")),{};case"session/new":{let i=this.sessions.find(a=>a.sessionId===this.attached)??this.sessions[0],o=EF(`mock-session-${this.sessions.length+1}`,String(n.cwd??i?.cwd??"~/code/cmux"),Date.now(),n._meta?.acpmux?.harness==="codex"?"codex":"claude");return n._meta?.acpmux?.harness&&(o.harness=n._meta.acpmux.harness),i?.host&&Object.assign(o,{host:i.host,hostKind:i.hostKind}),this.script&&(o.model=Qpe[0].models[0].id),this.script||this.listCommands(String(o.sessionId)),this.sessions.push(o),this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"created",session:o}}),{sessionId:o.sessionId}}case"session/prompt":{let i=String(n.prompt?.[0]?.text??""),o=n._meta?.acpmux?.promptId,a=this.pending>0&&o!==void 0;a&&this.emit(r,{mux:"queued",msg:{promptId:o,text:i}}),this.pending+=1;let s=this.queue.then(()=>(a&&this.emit(r,{mux:"dequeued",msg:{promptId:o}}),this.prompt(r,i,o))).finally(()=>{this.pending-=1});return this.queue=s.catch(()=>{}),s}case"session/set_model":return this.touch(r,{model:String(n.modelId)},!1),{};case"session/set_config_option":{let a=(this.sessions.find(s=>s.sessionId===r)?.configOptions??[]).map(s=>s.id===n.configId?{...s,currentValue:String(n.value)}:s);return this.touch(r,{configOptions:a},!1),{}}case"acp.trust.get":{let i=String(n.cwd??""),o={claude:"unknown",codex:"unknown",...this.agentTrust.get(i)},a=this.trust.get(i)??Epe(o.claude,o.codex);return{cwd:i,level:a,harnesses:o}}case"acp.trust.set":{let i=String(n.cwd??"");if(n.level==="unknown")return this.trust.delete(i),{cwd:i,level:"unknown"};let o=n.level==="untrusted"?"untrusted":"trusted";return this.trust.set(i,o),{cwd:i,level:o}}case"file.search":return Ype(typeof n.path=="string"?n.path:this.sessions.find(i=>i.sessionId===r)?.cwd,n.query,n.limit);case"git.checkpoint.diff":return{...NF(r,"uncommitted",n.include_patch===!0),from:n.from,...typeof n.to=="string"?{to:n.to}:{}};case"git.diff":return NF(r,n.scope,n.include_patch===!0);case"git.status":return Vpe(r);default:return{}}}fork(e,n){let r=this.sessions.find(s=>s.sessionId===e);if(!r||!Number.isFinite(n))throw new Error(`cannot fork ${e}`);let i=`mock-session-${this.sessions.length+1}`;for(let s of this.events.filter(l=>l.sessionId===e&&l.seq<=n)){this.seq+=1;let l=s.dir==="in"?{...s.msg,params:{...s.msg.params,sessionId:i}}:s.msg;this.events.push({...s,sessionId:i,seq:this.seq,msg:l})}let o=this.events.filter(s=>s.sessionId===i&&s.kind==="turn_result").length,a={...r,sessionId:i,status:"idle",unread:!1,pendingPermissions:0,turnCount:o,updatedAt:Date.now()};return this.sessions.push(a),this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"created",session:a}}),{sessionId:i}}async prompt(e,n,r){if(this.closed)return{stopReason:"cancelled"};this.turns+=1,this.closeSeededTurn(e,"cancelled"),this.touch(e,{turnCount:Number(this.sessions.find(l=>l.sessionId===e)?.turnCount??0)+1,unread:!1,status:"running"});let i={cancelled:!1,target:e};this.running=i;let o=Date.now();this.emit(e,{mux:"user_message",msg:{text:n,promptId:r}}),this.emit(e,{mux:"turn_started"});let a=this.script?.steps??uHe(n,this.turns);for(let l of a){if(this.script||await this.delay(350),i.cancelled||this.closed)break;this.emit(e,l,l.atMs===void 0?void 0:o+l.atMs)}let s=this.script?.endAtMs;return this.emit(e,{mux:"turn_result",msg:{status:i.cancelled?"cancelled":"completed"}},s!==void 0?o+s:void 0),this.running=void 0,this.touch(e,{status:"idle"}),{stopReason:i.cancelled?"cancelled":"end_turn"}}touch(e,n,r=!0){let i=this.sessions.findIndex(a=>a.sessionId===e);if(i<0)return;let o={...this.sessions[i],...n,...r?{updatedAt:Date.now()}:{}};this.sessions[i]=o,this.deliver({jsonrpc:"2.0",method:"_acpmux/session_changed",params:{kind:"updated",session:o}})}page(e,n){let r=Array.isArray(n.kinds)?n.kinds:[],i=l=>r.length===0||(l.kind==="available_commands_update"?r.includes(l.kind):r.includes("transcript")),o=this.events.filter(l=>l.sessionId===e&&i(l));if(n.beforeSeq===void 0)return{events:o.filter(l=>l.seq>Number(n.afterSeq??0)),more:!1};let a=o.filter(l=>l.seq<Number(n.beforeSeq)),s=Math.max(1,Number(n.limit??a.length));return{events:a.slice(-s),more:a.length>s}}record(e,n,r=Date.now()){this.seq+=1;let i="update"in n?{sessionId:e,seq:this.seq,at:r,dir:"in",kind:String(n.update.sessionUpdate),msg:{method:"session/update",params:{sessionId:e,update:n.update}}}:{sessionId:e,seq:this.seq,at:r,dir:"mux",kind:n.mux,msg:n.msg??{}};return this.events.push(i),i}emit(e,n,r){this.deliver({jsonrpc:"2.0",method:"_acpmux/event",params:this.record(e,n,r)})}deliver(e){queueMicrotask(()=>{this.readyState===1&&this.onmessage?.({data:JSON.stringify(e)})})}};var yL=R(Q(),1),bL="acpmux-composer-ready",dHe='input, textarea, select, [contenteditable=""], [contenteditable="true"], [role="textbox"], [role="menu"], [role="menubar"], [role="listbox"], [role="dialog"], [role="tree"], [role="grid"], [role="combobox"]',pHe='button, a[href], [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="tab"], summary';function mHe(t,e){return t.defaultPrevented||t.isComposing||t.metaKey||t.ctrlKey||t.altKey||t.key.length>1&&/^[A-Za-z0-9]+$/.test(t.key)?!1:!e||e===e.ownerDocument?.body?!0:!(e.closest(dHe)||t.key===" "&&e.closest(pHe))}function eme(t){if(!t||t===t.ownerDocument?.body)return"none";if(t.closest(".acpmux-composer-box"))return"composer";let e=t.id?`#${t.id}`:"",n=typeof t.className=="string"&&t.className?`.${t.className.split(/\s+/)[0]}`:"";return`${t.tagName.toLowerCase()}${e}${n}`}function tme(t){let e=(0,yL.useRef)(t);e.current=t,(0,yL.useEffect)(()=>{let n=()=>{let o=document.activeElement;(!o||o===document.body)&&e.current()},r=o=>{mHe(o,document.activeElement)&&e.current()&&(o.preventDefault(),document.execCommand("insertText",!1,o.key))},i=requestAnimationFrame(n);return window.addEventListener("focus",n),window.addEventListener(bL,n),document.addEventListener("keydown",r),()=>{cancelAnimationFrame(i),window.removeEventListener("focus",n),window.removeEventListener(bL,n),document.removeEventListener("keydown",r)}},[])}var nme=/always/i,OF=t=>nme.test(t.id)||nme.test(t.name);function xL(t){let e=new Map,n=(r,i)=>{let o=t.find(a=>!e.has(a.id)&&i(a));o&&e.set(o.id,r)};return n("y",r=>r.allow&&!OF(r)),n("a",r=>r.allow&&OF(r)),n("n",r=>!r.allow&&!OF(r)),t.slice(0,9).forEach((r,i)=>{e.has(r.id)||e.set(r.id,String(i+1))}),new Map(t.filter(r=>e.has(r.id)).map(r=>[r.id,e.get(r.id)]))}function wL(t,e,n){let r=/^[1-9]$/.test(n)?Number(n)-1:-1;return r>=0?t[r]:t.find(i=>e.get(i.id)===n)}function rme(t){let e=t.snapshot(),n=[...e.rows].reverse().find(i=>i.kind==="assistant"),r=e.permissionGroups;return{connection:e.connection,sessionId:e.sessionId??null,harness:e.summary?.harness??null,isWorking:e.isWorking,rows:e.rows.length,lastAssistant:n?{text:n.text??"",streaming:n.streaming===!0}:null,sessions:e.sessions.map(i=>({sessionId:i.sessionId,title:i.displayTitle??i.title??i.name??null,harness:i.harness??null,status:i.status??null})),permission:e.permission?.pending?{permissionId:e.permission.permissionId,title:e.permission.title??null,options:e.permission.options}:null,permissionGroups:(r?.groups??[]).filter(i=>i.state==="pending"||i.state==="collecting").map(i=>({groupId:i.groupId,revision:i.revision,state:i.state,decisions:i.decisions,items:i.items.length})),changedFiles:Sd(e.rows).map(i=>i.path),diff:t.diff(),focus:eme(typeof document>"u"?null:document.activeElement)}}var fHe=1500;async function ime(t,e,n=fHe){if(!e.trim())return{error:"empty prompt"};let r=t.call("chat.send",{text:e}).then(()=>({ended:!0}),o=>({error:o instanceof Error?o.message:String(o)})),i=await Promise.race([r,new Promise(o=>setTimeout(()=>o({running:!0}),n))]);return"error"in i?{error:i.error}:{sent:!0,turnEnded:"ended"in i,sessionId:t.snapshot().sessionId??null}}async function ome(t,e,n){return await t.call("chat.new",{...e?{harness:e}:{},...n?{cwd:n}:{}}),{sessionId:t.snapshot().sessionId??null}}function ame(t,e){return t.snapshot().sessions.some(n=>n.sessionId===e)?(t.selectSession(e),{selected:e}):{error:`no session ${JSON.stringify(e)}`}}async function sme(t,e={}){let n=t.snapshot(),r=n.permissionGroups?.supported?n.permissionGroups.groups.find(s=>s.state==="pending"):void 0;if(r){let s=e.decision??(e.allow===!1?"deny":"allow_once");return r.decisions.includes(s)?(await t.call("chat.permission_group.respond",{groupId:r.groupId,revision:r.revision,decision:s}),{answered:r.groupId,decision:s}):{error:`decision ${s} not offered`,offered:r.decisions}}let i=n.permission?.pending?n.permission:void 0;if(!i)return{error:"no pending permission"};let o=e.allow!==!1,a=e.optionId?i.options.find(s=>s.id===e.optionId):wL(i.options,xL(i.options),o?"y":"n");return a?(await t.call("chat.permission",{permissionId:i.permissionId,optionId:a.id}),{answered:i.permissionId,optionId:a.id}):{error:"no matching option",options:i.options}}async function lme(t,e,n){let r=t.snapshot(),i=w6(r.catalog,r.summary);if(!i.some(o=>o.id===e))return{error:`model ${JSON.stringify(e)} is not offered`,models:i.map(o=>o.id)};if(await t.call("chat.model",{modelId:e}),n){let o=r.summary?.configOptions?.find(a=>a.category==="thought_level"||a.id==="effort"||a.id==="reasoning_effort");if(!o)return{model:e,error:"the session offers no effort option"};await t.call("chat.effort",{configId:o.id,value:n})}return{model:e,effort:n??null}}function cme(t){let e=t.snapshot(),n=w6(e.catalog,e.summary);return{harness:e.summary?.harness??null,current:e.summary?.model??null,models:n.map(r=>({id:r.id,name:r.name}))}}function ume(t){let n=[...t.snapshot().rows].reverse().find(r=>r.kind==="activity"&&(r.items??[]).some(i=>i.tool?.diffs?.length));return n?(t.openDiff(n.id),{opened:n.id,files:Sd([n]).map(r=>r.path)}):{error:"no turn with edited files"}}function vL(t){let e=[],n=0,r=o=>{n+=1,e.push({...o,version:1,at:n*1e3})},i=Math.max(1,Math.floor(t/3));for(let o=0;o<i;o+=1){r({id:`synthetic-user-${o}`,kind:"user",text:`Question ${o}: how should the transcript handle item ${o%97}?`});let a=`Answer ${o}. `+"This sentence adds some width to the paragraph. ".repeat(1+o%5);o%3===0&&(a+=` - first point - second point @@ -827,7 +827,7 @@ Mock turn ${e}. \`\`\`swift let value = ${o} print(value) -\`\`\``),r({id:`synthetic-assistant-${o}`,kind:"assistant",text:a}),r({id:`synthetic-end-${o}`,kind:"turnSummary",durationMs:1e3,toolCount:0,status:"completed"})}return e}var PF=["Here is what I found after reading the transcript code and the pacing module. ",`The reply streams in small deltas, and each one used to re-render the whole message. +\`\`\``),r({id:`synthetic-assistant-${o}`,kind:"assistant",text:a}),r({id:`synthetic-end-${o}`,kind:"turnSummary",durationMs:1e3,toolCount:0,status:"completed"})}return e}var DF=["Here is what I found after reading the transcript code and the pacing module. ",`The reply streams in small deltas, and each one used to re-render the whole message. `,`- The model keeps one row per message segment. - Tool calls split a message into segments. @@ -835,7 +835,7 @@ print(value) `,"```ts\nfunction reveal(text: string, now: number) {\n return text.slice(0, shown(now));\n}\n```\n\n","A longer paragraph follows so the reply wraps over several lines in a normal pane width, ",`which is where a burst of text makes the transcript jump instead of flow. -`].join(""),jF=()=>new Promise(t=>requestAnimationFrame(t));async function dme(t,e={}){Mn.enable();let n=vL(Math.max(3,Math.floor(e.rows??2e3))),r=Math.max(.5,e.seconds??6),i=Math.max(1,Math.floor(e.chunk_chars??24)),o=Math.max(1,e.chunk_ms??12);t(n);let a=[];for(let T=0;T<30;T+=1)a.push(await jF());let s=document.querySelector(".acpmux-scroll");if(!s)return{error:"no transcript"};s.scrollTop=s.scrollHeight,await jF();let l=e.nominal_ms&&e.nominal_ms>0?e.nominal_ms:Math.max(1,_6(a.slice(1).map((T,M)=>T-a[M])));Mn.resetFrames();let c=(n.at(-1)?.at??0)+1e3,u="",d=0,p=0,m=T=>{d+=1,t([...n,{id:"debug-stream",version:d,at:c,kind:"assistant",text:u,streaming:T}])},f=setInterval(()=>{u+=PF.repeat(2).slice(p%PF.length,p%PF.length+i),p+=i,m(!0)},o),h=[],x=[],g=0,y=[],b=[],w=0,v=s.scrollHeight,k=performance.now()+r*1e3,_=!1,L=0;for(;L<30;){let T=await jF();h.push(T),Mn.markFrame(T,!1);let M=s.scrollHeight;x.push(Math.max(0,M-v)),v=M;let A=M-s.clientHeight-s.scrollTop;y.push(A),A>2&&(g+=1);let $=document.querySelector('[data-row-id="debug-stream"]')?.textContent?.length??w;b.push(Math.max(0,$-w)),w=Math.max(w,$),!_&&T>=k&&(_=!0,clearInterval(f),m(!1)),_&&(L+=1)}let S=[...x].sort((T,M)=>T-M),C=Mn.stats(!1);return{rows:n.length+1,chars:u.length,deltas:d-1,...__(h,l),detached_frames:g,growth_px:{p50:ui(Mu(S,.5)),p95:ui(Mu(S,.95)),max:ui(S.at(-1)??0)},growing_frames:x.filter(T=>T>0).length,gap_px:{p50:ui(_6(y)),max:ui(Math.max(0,...y))},text_frames:b.filter(T=>T>0).length,text_step:(()=>{let T=b.filter(M=>M>0).sort((M,A)=>M-A);return{p50:Mu(T,.5),p95:Mu(T,.95),max:T.at(-1)??0}})(),layout_ms:C.layout,react_ms:C.react,other_ms:C.other}}var gHe=`import { parseError } from "./errors"; +`].join(""),FF=()=>new Promise(t=>requestAnimationFrame(t));async function dme(t,e={}){Mn.enable();let n=vL(Math.max(3,Math.floor(e.rows??2e3))),r=Math.max(.5,e.seconds??6),i=Math.max(1,Math.floor(e.chunk_chars??24)),o=Math.max(1,e.chunk_ms??12);t(n);let a=[];for(let T=0;T<30;T+=1)a.push(await FF());let s=document.querySelector(".acpmux-scroll");if(!s)return{error:"no transcript"};s.scrollTop=s.scrollHeight,await FF();let l=e.nominal_ms&&e.nominal_ms>0?e.nominal_ms:Math.max(1,S6(a.slice(1).map((T,M)=>T-a[M])));Mn.resetFrames();let c=(n.at(-1)?.at??0)+1e3,u="",d=0,p=0,m=T=>{d+=1,t([...n,{id:"debug-stream",version:d,at:c,kind:"assistant",text:u,streaming:T}])},f=setInterval(()=>{u+=DF.repeat(2).slice(p%DF.length,p%DF.length+i),p+=i,m(!0)},o),h=[],x=[],g=0,y=[],b=[],w=0,v=s.scrollHeight,k=performance.now()+r*1e3,_=!1,L=0;for(;L<30;){let T=await FF();h.push(T),Mn.markFrame(T,!1);let M=s.scrollHeight;x.push(Math.max(0,M-v)),v=M;let A=M-s.clientHeight-s.scrollTop;y.push(A),A>2&&(g+=1);let $=document.querySelector('[data-row-id="debug-stream"]')?.textContent?.length??w;b.push(Math.max(0,$-w)),w=Math.max(w,$),!_&&T>=k&&(_=!0,clearInterval(f),m(!1)),_&&(L+=1)}let S=[...x].sort((T,M)=>T-M),C=Mn.stats(!1);return{rows:n.length+1,chars:u.length,deltas:d-1,...__(h,l),detached_frames:g,growth_px:{p50:ui(Mu(S,.5)),p95:ui(Mu(S,.95)),max:ui(S.at(-1)??0)},growing_frames:x.filter(T=>T>0).length,gap_px:{p50:ui(S6(y)),max:ui(Math.max(0,...y))},text_frames:b.filter(T=>T>0).length,text_step:(()=>{let T=b.filter(M=>M>0).sort((M,A)=>M-A);return{p50:Mu(T,.5),p95:Mu(T,.95),max:T.at(-1)??0}})(),layout_ms:C.layout,react_ms:C.react,other_ms:C.other}}var gHe=`import { parseError } from "./errors"; export type FetchOptions = { method?: "GET" | "POST"; @@ -970,79 +970,79 @@ describe("postJSON", () => { expect(calls.length).toBe(1); }); }); -`,OF=(t,e,n,r)=>({kind:"tool",text:"Edit",tool:{id:t,title:`Edit ${e.split("/").pop()}`,kind:"edit",status:"completed",diffs:[{path:e,oldText:n,newText:r,line:1}]}});function pme(t){return[{id:"worked-user",version:1,at:t,kind:"user",text:"Add retries with backoff to the fetch helper"},{id:"worked-activity",version:1,at:t+4e3,kind:"activity",toolCount:3,items:[OF("worked-retry","/Users/preview/src/web/src/net/retry.ts",yHe,xHe),OF("worked-client","/Users/preview/src/web/src/net/client.ts",gHe,bHe),OF("worked-test","/Users/preview/src/web/src/net/client.test.ts",wHe,vHe)]},{id:"worked-summary",version:1,at:t+48e3,kind:"assistant",text:"GETs now retry 408, 429 and 5xx gateway errors up to three times with jittered exponential backoff. POSTs only retry when the caller passes a policy. Added three tests for the retry paths."}]}var P1={error:"the page has no automation host"},kHe=30;function DF(){return new Promise(t=>requestAnimationFrame(t))}function mme(t,e=j0){let n=[],r=16.666666666666668,i=!1,o=0,a=()=>n.length<2?{running:i,frames:0}:{running:i,rows:t.rowCount(),...__(n,r)};return{async seedRows(s=5e3,l){Mn.enable();let c=l==="worked-turn"?pme(Date.now()-6e4):vL(Math.max(3,Math.floor(s))),u=performance.now(),d=Mn.nextCommit();t.replaceRows(c);let p=await d;return{rows:c.length,commit_ms:p===void 0?null:ui(p-u)}},async startFling(s=3,l={}){Mn.enable();let c=document.querySelector(".acpmux-scroll");if(!c)return{error:"no transcript"};let u=++o,d=Math.max(.1,s)*1e3;n=[],i=!0,Mn.resetFrames(),c.scrollTop=c.scrollHeight;let p=(async()=>{let m=[];for(let h=0;h<kHe;h+=1)m.push(await DF());if(u!==o)return;r=l.nominal_ms&&l.nominal_ms>0?l.nominal_ms:Math.max(1,_6(m.slice(1).map((h,x)=>h-m[x]))),c.scrollTop=c.scrollHeight;let f=c.scrollTop;Mn.resetFrames(),await new Promise(h=>{let x,g=y=>{if(u!==o)return h();x??=y,n.push(y);let b=Math.min(1,(y-x)/d);c.scrollTop=f*(1-b),Mn.markFrame(y,jse(Mn.mountedTop,Mn.mountedBottom,c.scrollTop,c.clientHeight,c.scrollHeight)),b<1?requestAnimationFrame(g):h()};requestAnimationFrame(g)}),u===o&&(i=!1)})();return l.wait?(await p,a()):{started:!0,rows:t.rowCount(),seconds:d/1e3}},flingStats:a,perfStats(s={}){return Mn.enable(),{running:i,...Mn.stats(s.raw===!0),agent:Mn.agentLatency()}},agentLatency(){return Mn.agentLatency()},typingStats(){return Mn.enable(),Ose(Mn.typing)},resetTyping(){return Mn.enable(),Mn.typing.length=0,{keys:0}},async openMenu(s){if(!nle(s))return{error:`no menu labelled ${JSON.stringify(s)}`,menus:rle()};await DF(),await DF();let l=[...document.querySelectorAll("button[data-menu]")].find(c=>c.dataset.menu===s);return{opened:s,open:l?.getAttribute("aria-expanded")==="true"}},acpLog(s={}){let l=e.entries(),c=s.limit&&s.limit>0?Math.floor(s.limit):l.length;return{stats:e.stats(),entries:l.slice(-c)}},acpLogExport(){return e.exportJsonl({sessionId:t.sessionId?.()})},chatState(){return t.automation?rme(t.automation):P1},async sendPrompt(s){return t.automation?ime(t.automation,String(s??"")):P1},async newChat(s,l){return t.automation?ome(t.automation,s,l):P1},selectSession(s){return t.automation?ame(t.automation,String(s??"")):P1},async answerPermission(s={}){return t.automation?sme(t.automation,s):P1},openChanges(){return t.automation?ume(t.automation):P1},async setModel(s,l){return t.automation?lme(t.automation,String(s??""),l||void 0):P1},models(){return t.automation?cme(t.automation):P1},stream(s={}){return dme(t.replaceRows,s)}}}var CHe=()=>({requestFrame:t=>requestAnimationFrame(t),cancelFrame:t=>cancelAnimationFrame(t),setTimer:(t,e)=>setTimeout(t,e),clearTimer:t=>clearTimeout(t)}),kL=class t{constructor(e,n=CHe()){this.report=e;this.clock=n}report;clock;static settleMs=250;static maximumFrames=640;intervals=[];lastFrame;frame;settle;scrolled(){this.frame===void 0&&(this.frame=this.clock.requestFrame(this.tick)),this.settle!==void 0&&this.clock.clearTimer(this.settle),this.settle=this.clock.setTimer(this.finish,t.settleMs)}stop(){this.frame!==void 0&&this.clock.cancelFrame(this.frame),this.settle!==void 0&&this.clock.clearTimer(this.settle),this.reset()}tick=e=>{this.lastFrame!==void 0&&this.intervals.length<t.maximumFrames&&this.intervals.push(e-this.lastFrame),this.lastFrame=e,this.frame=this.clock.requestFrame(this.tick)};finish=()=>{this.frame!==void 0&&this.clock.cancelFrame(this.frame);let e=this.intervals;this.reset(),e.length&&this.report(e)};reset(){this.intervals=[],this.lastFrame=void 0,this.frame=void 0,this.settle=void 0}};var CL=class t{static minimumFrames=30;static lateFactor=1.5;static overloaded=.2;static recovered=.05;static firstBackoff=1e4;static maximumBackoff=16e4;fullRate=!0;backoff=t.firstBackoff;changedAt;get isFullRate(){return this.fullRate}record(e,n,r){let i=t.cappedInterval(n);if(e.length<t.minimumFrames||i<=n)return;let o=this.changedAt===void 0?Number.POSITIVE_INFINITY:r-this.changedAt;if(this.fullRate){if(t.lateShare(e,n)>t.overloaded)return this.backoff=o<this.backoff?Math.min(this.backoff*2,t.maximumBackoff):t.firstBackoff,this.fullRate=!1,this.changedAt=r,!1}else if(o>=this.backoff&&t.lateShare(e,i)<=t.recovered)return this.fullRate=!0,this.changedAt=r,!0}static cappedInterval(e){return e<=0?0:e*Math.max(1,Math.floor((1e3/60+.01)/e+1e-9))}static lateShare(e,n){return e.filter(r=>r>n*t.lateFactor).length/e.length}};async function fme(t,e,n,r=()=>performance.now()){try{let i=await e("pane.framePacing",{intervals:t});if(!i.adaptive||i.displayInterval<=0)return;let o=n.record(t,i.displayInterval,r());o!==void 0&&await e("pane.renderRate",{full:o})}catch{}}var QE=R(qe(),1),wn=R(Q(),1),qye=R(Ms(),1);var FF="userShell";var _L=class{constructor(e,n=()=>Date.now()){this.callNative=e;this.now=n}callNative;now;runs=[];raw=new Map;hostIds=new Map;stopping=new Set;listeners=new Set;subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));snapshot=()=>this.runs;get(e){return this.runs.find(n=>n.id===e)}forSession(e){return this.runs.filter(n=>n.sessionId===e)}running(e){return this.forSession(e).filter(n=>n.status==="running").at(-1)}claim(e){this.runs.some(n=>n.sessionId===void 0)&&(this.runs=this.runs.map(n=>n.sessionId===void 0?{...n,sessionId:e}:n),this.emit())}start(e,n){let r={id:crypto.randomUUID(),command:e,...n.cwd?{cwd:n.cwd}:{},...n.sessionId?{sessionId:n.sessionId}:{},startedAt:this.now(),status:"running",output:"",truncated:!1,version:1};return this.runs=[...this.runs,r],this.emit(),this.pump(r.id,e,n.cwd),r}stop(e){let n=this.get(e);if(!n||n.status!=="running")return;this.stopping.add(e);let r=this.hostIds.get(e);r&&this.callNative("shell.stop",{id:r}).catch(()=>{})}async pump(e,n,r){try{let i=await this.callNative("shell.run",{command:n,...r?{cwd:r}:{}});this.hostIds.set(e,i.id),this.stopping.has(e)&&this.callNative("shell.stop",{id:i.id}).catch(()=>{});let o=0;for(;;){let a=await this.callNative("shell.read",{id:i.id,after:o});if(o=a.next??o,(a.output||a.truncated)&&this.append(e,a.output??"",a.truncated===!0),a.exit){let s=this.stopping.has(e)&&a.exit.code===void 0,l=a.exit.code;this.update(e,{status:s?"stopped":l===0?"done":"failed",...l!==void 0?{exitCode:l}:{},endedAt:this.now()});return}}}catch(i){this.update(e,{status:"failed",error:i instanceof Error?i.message:String(i),endedAt:this.now()})}finally{this.hostIds.delete(e),this.stopping.delete(e)}}append(e,n,r){let i=(this.raw.get(e)??"")+n,o=r||(this.get(e)?.truncated??!1);if(i.length>262144){let a=i.indexOf(` +`,BF=(t,e,n,r)=>({kind:"tool",text:"Edit",tool:{id:t,title:`Edit ${e.split("/").pop()}`,kind:"edit",status:"completed",diffs:[{path:e,oldText:n,newText:r,line:1}]}});function pme(t){return[{id:"worked-user",version:1,at:t,kind:"user",text:"Add retries with backoff to the fetch helper"},{id:"worked-activity",version:1,at:t+4e3,kind:"activity",toolCount:3,items:[BF("worked-retry","/Users/preview/src/web/src/net/retry.ts",yHe,xHe),BF("worked-client","/Users/preview/src/web/src/net/client.ts",gHe,bHe),BF("worked-test","/Users/preview/src/web/src/net/client.test.ts",wHe,vHe)]},{id:"worked-summary",version:1,at:t+48e3,kind:"assistant",text:"GETs now retry 408, 429 and 5xx gateway errors up to three times with jittered exponential backoff. POSTs only retry when the caller passes a policy. Added three tests for the retry paths."}]}var j1={error:"the page has no automation host"},kHe=30;function zF(){return new Promise(t=>requestAnimationFrame(t))}function mme(t,e=D0){let n=[],r=16.666666666666668,i=!1,o=0,a=()=>n.length<2?{running:i,frames:0}:{running:i,rows:t.rowCount(),...__(n,r)};return{async seedRows(s=5e3,l){Mn.enable();let c=l==="worked-turn"?pme(Date.now()-6e4):vL(Math.max(3,Math.floor(s))),u=performance.now(),d=Mn.nextCommit();t.replaceRows(c);let p=await d;return{rows:c.length,commit_ms:p===void 0?null:ui(p-u)}},async startFling(s=3,l={}){Mn.enable();let c=document.querySelector(".acpmux-scroll");if(!c)return{error:"no transcript"};let u=++o,d=Math.max(.1,s)*1e3;n=[],i=!0,Mn.resetFrames(),c.scrollTop=c.scrollHeight;let p=(async()=>{let m=[];for(let h=0;h<kHe;h+=1)m.push(await zF());if(u!==o)return;r=l.nominal_ms&&l.nominal_ms>0?l.nominal_ms:Math.max(1,S6(m.slice(1).map((h,x)=>h-m[x]))),c.scrollTop=c.scrollHeight;let f=c.scrollTop;Mn.resetFrames(),await new Promise(h=>{let x,g=y=>{if(u!==o)return h();x??=y,n.push(y);let b=Math.min(1,(y-x)/d);c.scrollTop=f*(1-b),Mn.markFrame(y,jse(Mn.mountedTop,Mn.mountedBottom,c.scrollTop,c.clientHeight,c.scrollHeight)),b<1?requestAnimationFrame(g):h()};requestAnimationFrame(g)}),u===o&&(i=!1)})();return l.wait?(await p,a()):{started:!0,rows:t.rowCount(),seconds:d/1e3}},flingStats:a,perfStats(s={}){return Mn.enable(),{running:i,...Mn.stats(s.raw===!0),agent:Mn.agentLatency()}},agentLatency(){return Mn.agentLatency()},typingStats(){return Mn.enable(),Ose(Mn.typing)},resetTyping(){return Mn.enable(),Mn.typing.length=0,{keys:0}},async openMenu(s){if(!nle(s))return{error:`no menu labelled ${JSON.stringify(s)}`,menus:rle()};await zF(),await zF();let l=[...document.querySelectorAll("button[data-menu]")].find(c=>c.dataset.menu===s);return{opened:s,open:l?.getAttribute("aria-expanded")==="true"}},acpLog(s={}){let l=e.entries(),c=s.limit&&s.limit>0?Math.floor(s.limit):l.length;return{stats:e.stats(),entries:l.slice(-c)}},acpLogExport(){return e.exportJsonl({sessionId:t.sessionId?.()})},chatState(){return t.automation?rme(t.automation):j1},async sendPrompt(s){return t.automation?ime(t.automation,String(s??"")):j1},async newChat(s,l){return t.automation?ome(t.automation,s,l):j1},selectSession(s){return t.automation?ame(t.automation,String(s??"")):j1},async answerPermission(s={}){return t.automation?sme(t.automation,s):j1},openChanges(){return t.automation?ume(t.automation):j1},async setModel(s,l){return t.automation?lme(t.automation,String(s??""),l||void 0):j1},models(){return t.automation?cme(t.automation):j1},stream(s={}){return dme(t.replaceRows,s)}}}var CHe=()=>({requestFrame:t=>requestAnimationFrame(t),cancelFrame:t=>cancelAnimationFrame(t),setTimer:(t,e)=>setTimeout(t,e),clearTimer:t=>clearTimeout(t)}),kL=class t{constructor(e,n=CHe()){this.report=e;this.clock=n}report;clock;static settleMs=250;static maximumFrames=640;intervals=[];lastFrame;frame;settle;scrolled(){this.frame===void 0&&(this.frame=this.clock.requestFrame(this.tick)),this.settle!==void 0&&this.clock.clearTimer(this.settle),this.settle=this.clock.setTimer(this.finish,t.settleMs)}stop(){this.frame!==void 0&&this.clock.cancelFrame(this.frame),this.settle!==void 0&&this.clock.clearTimer(this.settle),this.reset()}tick=e=>{this.lastFrame!==void 0&&this.intervals.length<t.maximumFrames&&this.intervals.push(e-this.lastFrame),this.lastFrame=e,this.frame=this.clock.requestFrame(this.tick)};finish=()=>{this.frame!==void 0&&this.clock.cancelFrame(this.frame);let e=this.intervals;this.reset(),e.length&&this.report(e)};reset(){this.intervals=[],this.lastFrame=void 0,this.frame=void 0,this.settle=void 0}};var CL=class t{static minimumFrames=30;static lateFactor=1.5;static overloaded=.2;static recovered=.05;static firstBackoff=1e4;static maximumBackoff=16e4;fullRate=!0;backoff=t.firstBackoff;changedAt;get isFullRate(){return this.fullRate}record(e,n,r){let i=t.cappedInterval(n);if(e.length<t.minimumFrames||i<=n)return;let o=this.changedAt===void 0?Number.POSITIVE_INFINITY:r-this.changedAt;if(this.fullRate){if(t.lateShare(e,n)>t.overloaded)return this.backoff=o<this.backoff?Math.min(this.backoff*2,t.maximumBackoff):t.firstBackoff,this.fullRate=!1,this.changedAt=r,!1}else if(o>=this.backoff&&t.lateShare(e,i)<=t.recovered)return this.fullRate=!0,this.changedAt=r,!0}static cappedInterval(e){return e<=0?0:e*Math.max(1,Math.floor((1e3/60+.01)/e+1e-9))}static lateShare(e,n){return e.filter(r=>r>n*t.lateFactor).length/e.length}};async function fme(t,e,n,r=()=>performance.now()){try{let i=await e("pane.framePacing",{intervals:t});if(!i.adaptive||i.displayInterval<=0)return;let o=n.record(t,i.displayInterval,r());o!==void 0&&await e("pane.renderRate",{full:o})}catch{}}var tT=R(qe(),1),wn=R(Q(),1),qye=R(Ms(),1);var qF="userShell";var _L=class{constructor(e,n=()=>Date.now()){this.callNative=e;this.now=n}callNative;now;runs=[];raw=new Map;hostIds=new Map;stopping=new Set;listeners=new Set;subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));snapshot=()=>this.runs;get(e){return this.runs.find(n=>n.id===e)}forSession(e){return this.runs.filter(n=>n.sessionId===e)}running(e){return this.forSession(e).filter(n=>n.status==="running").at(-1)}claim(e){this.runs.some(n=>n.sessionId===void 0)&&(this.runs=this.runs.map(n=>n.sessionId===void 0?{...n,sessionId:e}:n),this.emit())}start(e,n){let r={id:crypto.randomUUID(),command:e,...n.cwd?{cwd:n.cwd}:{},...n.sessionId?{sessionId:n.sessionId}:{},startedAt:this.now(),status:"running",output:"",truncated:!1,version:1};return this.runs=[...this.runs,r],this.emit(),this.pump(r.id,e,n.cwd),r}stop(e){let n=this.get(e);if(!n||n.status!=="running")return;this.stopping.add(e);let r=this.hostIds.get(e);r&&this.callNative("shell.stop",{id:r}).catch(()=>{})}async pump(e,n,r){try{let i=await this.callNative("shell.run",{command:n,...r?{cwd:r}:{}});this.hostIds.set(e,i.id),this.stopping.has(e)&&this.callNative("shell.stop",{id:i.id}).catch(()=>{});let o=0;for(;;){let a=await this.callNative("shell.read",{id:i.id,after:o});if(o=a.next??o,(a.output||a.truncated)&&this.append(e,a.output??"",a.truncated===!0),a.exit){let s=this.stopping.has(e)&&a.exit.code===void 0,l=a.exit.code;this.update(e,{status:s?"stopped":l===0?"done":"failed",...l!==void 0?{exitCode:l}:{},endedAt:this.now()});return}}}catch(i){this.update(e,{status:"failed",error:i instanceof Error?i.message:String(i),endedAt:this.now()})}finally{this.hostIds.delete(e),this.stopping.delete(e)}}append(e,n,r){let i=(this.raw.get(e)??"")+n,o=r||(this.get(e)?.truncated??!1);if(i.length>262144){let a=i.indexOf(` `,i.length-262144);i=i.slice(a<0?i.length-262144:a+1),o=!0}this.raw.set(e,i),this.update(e,{output:_He(i),truncated:o})}update(e,n){this.runs=this.runs.map(r=>r.id===e?{...r,...n,version:r.version+1}:r),this.emit()}emit(){for(let e of this.listeners)e()}};function _He(t){return t.replace(/\u001b\][^\u0007\u001b]*(?:\u0007|\u001b\\)/g,"").replace(/\u001b\[[0-?]*[ -/]*[@-~]/g,"").replace(/\u001b[@-Z\\-_]/g,"").replace(/\r\n/g,` `).split(` `).map(n=>n.slice(n.lastIndexOf("\r")+1)).join(` -`)}function hme(t,e){return BF(t,e.map(n=>({id:`shell-${n.id}`,kind:FF,at:n.startedAt,version:n.version,shell:n})))}function BF(t,e){if(e.length===0)return t;let n=new Set(e.map(i=>i.id)),r=[...t];for(let i of[...e].sort((o,a)=>o.at-a.at)){let o=r.findIndex(a=>!n.has(a.id)&&a.at>i.at);o<0?r.push(i):r.splice(o,0,i)}return r}function gme(t){return{id:`shell-${t.id}`,kind:"text",name:`$ ${t.command}`,mimeType:"text/plain",size:0,shellRun:t.id}}function bme(t,e){return t.map(n=>{let r=n.shellRun?e(n.shellRun):void 0;if(!n.shellRun||!r)return n;let i=r.status==="running"?"still running":r.status==="stopped"?"stopped":r.exitCode!==void 0?`exit ${r.exitCode}`:"failed",o=r.output.length>16384?r.output.slice(-16384):r.output,a=r.truncated||o.length<r.output.length,s=[`The user ran this command${r.cwd?` in ${r.cwd}`:""}: ${r.command}`,`Result: ${i}${r.error?` (${r.error})`:""}`,a?"Output (its end):":"Output:",o.replace(/\n$/,"")].join(` -`);return{...n,name:`$ ${r.command} (${i})`,text:s,size:s.length}})}function yme(t){let e=t.filter(r=>r.shellRun);if(e.length<=3)return t;let n=new Set(e.slice(0,e.length-3).map(r=>r.id));return t.filter(r=>!n.has(r.id))}var zF="chatMove";function xme(t,e){return BF(t,e.map(n=>({id:`move-${n.id}`,kind:zF,at:n.at,version:1,text:`${n.machine} \xB7 ${wi(n.cwd)}`})))}function wme(t){let e=`The user moved this chat to ${t.cwd} on ${t.machine}. Work in that folder from now on.`;return{id:`move-${t.id}`,kind:"text",name:`cd ${wi(t.cwd)}`,mimeType:"text/plain",size:e.length,text:e,move:!0}}var Lx=R(qe(),1),Ul=R(Q(),1);var Kfe=R(qe(),1),iB=R(Q(),1);var Nd={};fn(Nd,{Arrow:()=>Tfe,Backdrop:()=>_fe,Clear:()=>sfe,Collection:()=>OL,Empty:()=>Gfe,Group:()=>Afe,GroupLabel:()=>Ife,Icon:()=>ofe,Input:()=>Jme,InputGroup:()=>rfe,Item:()=>Ffe,List:()=>bfe,Popup:()=>Mfe,Portal:()=>kfe,Positioner:()=>Lfe,Root:()=>Fme,Row:()=>qfe,Separator:()=>Zfe,Status:()=>xfe,Trigger:()=>Kme,Value:()=>qme,useFilter:()=>dy,useFilteredItems:()=>Wfe});var yx=R(Q(),1);var gn=R(Q(),1);var vme=R(Q(),1);function kme(t){let e=vme.useRef(!0);e.current&&(e.current=!1,t())}function Cme(t,e,n,r,i,o,a,s,l,c=2){let u=tce(n.current,{event:t,orientation:r,loopFocus:i,rtl:o,cols:c,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:e>l?s:e,stopEvent:!0});return U0(n.current,u)?void 0:u}var Uc=R(Q(),1),qF=Uc.createContext(void 0),HF=Uc.createContext(void 0),GF=Uc.createContext(void 0),UF=Uc.createContext(!1),VF=Uc.createContext("");function pr(){let t=Uc.useContext(qF);if(!t)throw new Error(Dt(22));return t}function j1(){let t=Uc.useContext(HF);if(!t)throw new Error(Dt(23));return t}function Vc(){let t=Uc.useContext(GF);if(!t)throw new Error(Dt(24));return t}function O1(){return Uc.useContext(VF)}function _me(){return Uc.useContext(UF)}function Sme(t,e,n=Object.is){let{length:r}=t;if(r!==e.length)return!1;for(let i=0;i<r;i+=1)if(!n(t[i],e[i]))return!1;return!0}var hx=(t,e)=>Object.is(t,e);function Gl(t,e,n){return t==null||e==null?Object.is(t,e):n(t,e)}function Lme(t,e,n){return Array.isArray(t)&&Array.isArray(e)?!Sme(t,e,(r,i)=>Gl(r,i,n)):t!==e}function fx(t,e,n){return t?t.some(r=>r===void 0?!1:Gl(e,r,n)):!1}function gx(t,e,n){return t?t.findIndex(r=>r===void 0?!1:Gl(r,e,n)):-1}function SHe(t,e){if(e!==hx)return r=>fx(t,r,e);let n=new Set(t);return n.delete(void 0),r=>n.has(r)&&(r!==0||t.some(i=>Object.is(r,i)))}function bx(t,e,n,r){let i=r&&Array.isArray(e)?t.findIndex(SHe(e,n)):gx(t,e,n);return i===-1?null:i}function Mme(t,e,n,r,i,o){return fx(r,e,i)?o!=null&&t>o&&fx(r,n[o],i)?o:t:t===o?bx(n,r,i,!0):o}function Eme(t,e,n){return t.filter(r=>!Gl(e,r,n))}var LHe=R(Q(),1);function SL(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}var MHe=R(ee(),1);function EHe(t){return typeof t=="object"&&t!=null&&Array.isArray(t.items)}function LL(t){return EHe(t?.[0])}function ML(t){return LL(t)?t.flatMap(e=>e.items):t}function Tme(t){if(!Array.isArray(t))return t!=null&&"null"in t;let e=t;if(LL(e)){for(let n of e)for(let r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(let n of e)if(n&&n.value==null&&n.label!=null)return!0;return!1}function Rd(t,e){if(e&&t!=null)return e(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return SL(t)}function uy(t,e){return e&&t!=null?e(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?SL(t.value):SL(t)}var Rme={id:t=>t.id,labelId:t=>t.labelId,items:t=>t.items,selectedValue:t=>t.selectedValue,hasSelectionChips:t=>{let e=t.selectedValue;return Array.isArray(e)&&e.length>0},hasSelectedValue:t=>{let{selectedValue:e,selectionMode:n}=t;return e==null?!1:n==="multiple"&&Array.isArray(e)?e.length>0:!0},hasNullItemLabel:(t,e)=>e?Tme(t.items):!1,open:t=>t.open,mounted:t=>t.mounted,forceMounted:t=>t.forceMounted,inline:t=>t.inline,activeIndex:t=>t.activeIndex,selectedIndex:t=>t.selectedIndex,isActive:(t,e)=>t.activeIndex===e,isSelected:(t,e)=>{let n=t.isItemEqualToValue,r=t.selectedValue;return Array.isArray(r)?r.some(i=>Gl(e,i,n)):Gl(e,r,n)},transitionStatus:t=>t.transitionStatus,popupProps:t=>t.popupProps,listProps:t=>t.listProps,inputProps:t=>t.inputProps,triggerProps:t=>t.triggerProps,itemProps:t=>t.itemProps,positionerElement:t=>t.positionerElement,listElement:t=>t.listElement,popupId:t=>t.popupId,triggerElement:t=>t.triggerElement,inputElement:t=>t.inputElement,inputGroupElement:t=>t.inputGroupElement,popupSide:t=>t.popupSide,openMethod:t=>t.openMethod,inputInsidePopup:t=>t.inputInsidePopup,inputOwnsFormValue:t=>t.inputOwnsFormValue,selectionMode:t=>t.selectionMode,name:t=>t.name,form:t=>t.form,disabled:t=>t.disabled,readOnly:t=>t.readOnly,required:t=>t.required,grid:t=>t.grid,virtualized:t=>t.virtualized,itemToStringLabel:t=>t.itemToStringLabel,isItemEqualToValue:t=>t.isItemEqualToValue,modal:t=>t.modal,autoHighlight:t=>t.autoHighlight};function EL(t){return t==null?void 0:`${t}-popup`}function Ame(t,e){return(n,r)=>n==null?!1:t.contains(n,r,e)}var Nme=R(Q(),1);function ZF(t){return Array.isArray(t)?t.map(e=>ZF(e)).join(","):t==null?"":String(t)}var $me=new Map;function Ime(t={}){let e={usage:"search",sensitivity:"base",ignorePunctuation:!0,...t},n=`${ZF(t.locale)}|${JSON.stringify(e)}`,r=$me.get(n);if(r)return r;let i=new Intl.Collator(t.locale,e),o={contains(a,s,l){if(!s)return!0;let c=Rd(a,l);for(let u=0;u<=c.length-s.length;u+=1)if(i.compare(c.slice(u,u+s.length),s)===0)return!0;return!1},startsWith(a,s,l){if(!s)return!0;let c=Rd(a,l);return i.compare(c.slice(0,s.length),s)===0},endsWith(a,s,l){if(!s)return!0;let c=Rd(a,l),u=s.length;return c.length>=u&&i.compare(c.slice(c.length-u),s)===0}};return $me.set(n,o),o}var dy=Ime;function Pme(t,e=!1){let{overflowY:n}=Fi(t);return n!=="auto"&&n!=="scroll"?!1:e?t.clientHeight>0:t.scrollHeight>t.clientHeight}var WF=Symbol("none"),TL={value:WF,index:-1};function jme(t,e,n){let r=t.get(e);if(r!==void 0||n===hx)return r;for(let[i,o]of t)if(Gl(i,e,n))return o}var Ad=R(ee(),1);function Ome(t){let{id:e,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:o,defaultInputValue:a,inputValue:s,open:l,defaultOpen:c=!1,selectionMode:u,onItemHighlighted:d,name:p,form:m,disabled:f=!1,readOnly:h=!1,required:x=!1,inputRef:g,grid:y=!1,items:b,filteredItems:w,filter:v,filterQuery:k,openOnInputClick:_=!0,autoHighlight:L=!1,keepHighlight:S=!1,highlightItemOnHover:C=!0,loopFocus:T=!0,itemToStringLabel:M,itemToStringValue:A,isItemEqualToValue:$=hx,virtualized:N=!1,inline:F=!1,fillInputOnItemPress:D=!0,modal:O=!1,limit:B=-1,autoComplete:P="list",formAutoComplete:U,locale:G,submitOnItemClick:j=!1}=t,{clearErrors:V}=QC(),{setDirty:H,validityData:ne,setFilled:J,name:W,disabled:ie,setTouched:Z,setFocused:ce,validationMode:se,validation:be}=Vs(),le=Gc(),ge=w2({id:e}),ke=dy({locale:G}),me=Array.isArray(b)?null:b;if(me&&typeof me.label!="function")throw new Error(Dt(100));let Se=me?me.data:b,de=me?.value,Le=de?void 0:Se,Ne=gn.useMemo(()=>{if(!w||!de)return;let Fe=ML(w),tt=Fe.map(de),Me;return{values:tt,findItem(Rt,$n){if(!Me){Me=new Map;for(let wr=0;wr<tt.length;wr+=1)Me.has(tt[wr])||Me.set(tt[wr],Fe[wr])}return jme(Me,Rt,$n)}}},[w,de]),Be=gn.useMemo(()=>me?Fe=>me.label(Fe,$,tt=>{let Me=Ne?.findItem(tt,$);return Me!=null?me.itemLabel(Me):Rd(tt,M)}):M,[me,M,Ne,$]),_e=gn.useMemo(()=>me?Object.assign(Fe=>me.itemLabel(Fe),{selected:Fe=>Rd(Fe,Be)}):M,[me,Be,M]);function xe(Fe){return Rd(Fe,Be)}let[Ce,K]=gn.useState(!1),[Y,ye]=gn.useState(null),Re=gn.useRef(Y),Ke=gn.useRef([]),mt=gn.useRef([]),dt=gn.useRef(null),Ae=gn.useRef(null),xt=gn.useRef(null),Et=gn.useRef(null),jt=gn.useRef(null),Bt=gn.useRef(!0),Ve=gn.useRef(!1),Jt=gn.useRef(null),rn=gn.useRef(null),Rn=gn.useRef(null),_t=gn.useRef(TL),An=gn.useRef(null),Xt=gn.useRef([]),zn=gn.useRef(null),Ot=ie||f,mn=W??p,yn=u==="multiple",In=u==="single",er=s!==void 0||a!==void 0,ae=Se!==void 0,st=w!==void 0,Lt;L==="always"?Lt="always":Lt=L?"input-change":!1;let[Ye,wt]=kd({controlled:i,default:yn?r??Us:r,name:"Combobox",state:"selectedValue"}),jn=gn.useMemo(()=>v===null?()=>!0:v!==void 0?v:Ame(ke,_e),[v,ke,_e]),Kn=Vn(()=>er?a??"":In?xe(Ye):"").current,[un,it]=kd({controlled:s,default:Kn,name:"Combobox",state:"inputValue"}),[ft,En]=kd({controlled:l,default:c,name:"Combobox",state:"open"}),Pt=LL(Se),It=!ft&&Y!==null?Y:String(un).trim(),mi=In?xe(Ye):"",Ei=In&&!Ce&&It!==""&&mi.length===It.length&&ke.contains(mi,It),Ti=Ei?"":k??It,Ua=ae&&st&&Ei&&(!me||me.hasValue(Ye,$)),ml=gn.useMemo(()=>Se?ML(Se):Us,[Se]),Ge=gn.useMemo(()=>{if(w&&!Ua)return w;if(!Se)return Us;if(Pt){let tt=Se,Me=[],Rt=0;for(let $n of tt){if(B>-1&&Rt>=B)break;let wr=B>-1?B-Rt:1/0,or=Ti===""?$n.items.slice(0,wr):[];if(Ti!=="")for(let vt of $n.items){if(or.length>=wr)break;jn(vt,Ti,_e)&&or.push(vt)}if(or.length>0){let vt={...$n,items:or};Me.push(vt),Rt+=or.length}}return Me}if(Ti==="")return B>-1?ml.slice(0,B):ml;let Fe=[];for(let tt of ml){if(B>-1&&Fe.length>=B)break;jn(tt,Ti,_e)&&Fe.push(tt)}return Fe},[w,Ua,Se,Pt,Ti,B,jn,_e,ml]),dn=gn.useMemo(()=>{if(Ne&&Ge===w)return Ne.values;let Fe=ML(Ge);return de?Fe.map(tt=>de(tt)):Fe},[Ge,w,Ne,de]),pt=Vn(()=>{let Fe=null;return F&&ft&&ae&&u!=="none"&&(Fe=bx(dn,Ye,$,yn)),new Hc({id:ge,labelId:void 0,selectedValue:Ye,open:ft,items:Le,selectionMode:u,name:mn,form:m,disabled:Ot,readOnly:h,required:x,grid:y,virtualized:N,openOnInputClick:_,itemToStringLabel:Be,isItemEqualToValue:$,modal:O,autoHighlight:Lt,submitOnItemClick:j,hasInputValue:er,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:F,activeIndex:null,selectedIndex:Fe,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:xn,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:u==="none"},{onOpenChangeComplete:Yt,setOpen:Yt,setInputValue:Yt,setSelectedValue:Yt,setIndices:Yt,handleSelection:Yt,forceMount:Yt,requestSubmit:Yt,listRef:Ke,labelsRef:mt,popupRef:dt,emptyRef:jt,inputRef:Ae,startDismissRef:xt,endDismissRef:Et,keyboardActiveRef:Bt,chipsContainerRef:Jt,clearRef:rn,valuesRef:Xt,pointerDownItemRef:zn,selectionEventRef:Rn},Rme)}).current,vs=u==="none"?un:Ye,Gr=gn.useMemo(()=>u==="none"?vs:Array.isArray(Ye)?Ye.map(Fe=>uy(Fe,A)):uy(Ye,A),[vs,A,u,Ye]),np=Pe(d),Ri=Pe(n),Wi=pt.useState("activeIndex"),co=pt.useState("selectedIndex"),ks=pt.useState("positionerElement"),da=pt.useState("listElement"),Oo=pt.useState("triggerElement"),Cs=pt.useState("inputElement"),Mh=pt.useState("inputGroupElement"),uo=pt.useState("inline"),pa=pt.useState("inputInsidePopup"),rp=pt.useState("inputOwnsFormValue"),ef=In&&!pa&&un===mi,ac=Yr(Oo),{mounted:Eh,setMounted:Do,transitionStatus:sc}=Oc(ft),{openMethod:Fo,triggerProps:tf}=DS(ft),nf=Pe(()=>Gr);KC(pa?ac:Ae,ge,vs,nf,!Ot,p);let rf=Pe(()=>{Se?mt.current=dn.map(xe):pt.set("forceMounted",!0)}),lc=Pe((Fe,tt,Me)=>{if(tt===-1){if(_t.current===TL)return;_t.current=TL}else _t.current={value:Fe,index:tt};np(Fe,Aae(Me,void 0,{index:tt}))}),Va=Pe(Fe=>{let tt={};Fe.activeIndex!==void 0&&(tt.activeIndex=Fe.activeIndex),Fe.selectedIndex!==void 0&&(tt.selectedIndex=Fe.selectedIndex),pt.update(tt);let Me=Fe.activeIndex;if(Me===void 0)return;let Rt=Fe.type||he.none;Me===null?lc(void 0,-1,Rt):lc(Xt.current[Me],Me,Rt)}),fi=Pe((Fe,tt)=>{if(t.onInputValueChange?.(Fe,tt),!tt.isCanceled){if(Ve.current=tt.reason===he.inputClear,tt.reason===he.inputChange){ft&&Y!==null&&ye(null);let Me=tt.event,Rt=Me.inputType;if(Me.type==="compositionend"||Rt!=null&&Rt!==""&&Rt!=="insertReplacementText"){let wr=Fe.trim()!=="";wr&&K(!0),An.current={hasQuery:wr};let or=pt.state.listElement;if(!pt.state.virtualized&&or){let vt=dt.current;for(let hi of vu(or.firstElementChild??or)){if(!Ln(hi)||(vt?!ot(vt,hi):hi.getAttribute("role")==="dialog"))break;if(Pme(hi)){hi.scrollTop=0;break}}}wr&&Lt&&pt.state.activeIndex==null&&(ft||uo)&&pt.set("activeIndex",0)}}else tt.reason===he.inputClear&&Fe===""&&pt.state.inputInsidePopup&&(An.current={hasQuery:!1,selection:!0});it(Fe)}}),cu=Pe(Fe=>{let tt=!Fe&&pa&&!uo&&un!==""&&(String(un).trim()===Y||un===mi);!Fe&&(tt||un===""||ef)&&K(!1),ye(null),tt&&fi("",Xe(he.inputClear))}),_s=Pe((Fe,tt)=>{if(ft!==Fe&&(tt.reason===he.escapeKey&&ae&&dn.length===0&&!jt.current&&tt.allowPropagation(),t.onOpenChange?.(Fe,tt),!tt.isCanceled&&(Fe&&Y!==null&&cu(tt.reason===he.inputChange),!Fe&&Ce&&(In?(uo||ye(It),It===""&&K(!1)):yn&&(uo||ye(It),pa&&Va({activeIndex:null}),(!pa||uo)&&fi("",Xe(he.inputClear,tt.event,void 0,{isItemPress:tt.reason===he.itemPress})))),En(Fe),!Fe&&pa&&(tt.reason===he.focusOut||tt.reason===he.outsidePress)&&(Z(!0),ce(!1),se==="onBlur")))){let Me=u==="none"?un:Ye;be.commit(Me)}}),fl=Pe((Fe,tt)=>{if(o?.(Fe,tt),tt.isCanceled)return;wt(Fe),(u==="none"&&dt.current&&D||In&&!pt.state.inputInsidePopup)&&fi(xe(Fe),Xe(tt.reason,tt.event))}),Za=Pe((Fe,tt)=>{let Me=lr(Fe),Rt=Rn.current??Fe;Rn.current=null;let $n=Xe(he.itemPress,Rt),wr=Me?.closest("a")?.getAttribute("href");if(wr){wr.startsWith("#")&&_s(!1,$n);return}if(yn){let or=Array.isArray(Ye)?Ye:[],vt=fx(or,tt,$),hi=vt?Eme(or,tt,$):[...or,tt];if(fl(hi,$n),$n.isCanceled||!(Ae.current?Ae.current.value.trim()!=="":!1))return;if(pt.state.inputInsidePopup){fi("",Xe(he.inputClear,$n.event,void 0,{isItemPress:!0}));let Bo=An.current;Bo&&!vt&&(Bo.toggledValue=tt)}else _s(!1,$n)}else{if(fl(tt,$n),$n.isCanceled)return;_s(!1,$n)}}),cc=Pe(()=>{let Fe=be.inputRef.current?.form??pt.state.inputElement?.form;Fe&&typeof Fe.requestSubmit=="function"&&Fe.requestSubmit()}),ip=Pe(()=>{if(Do(!1),Ri?.(!1),K(!1),ye(null),Va(u==="none"?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),yn&&Ae.current&&Ae.current.value!==""&&!Ve.current&&fi("",Xe(he.inputClear)),In)if(pt.state.inputInsidePopup)Ae.current&&Ae.current.value!==""&&fi("",Xe(he.inputClear));else{let Fe=xe(Ye);if(Ae.current&&Ae.current.value!==Fe){let tt=Fe===""?he.inputClear:he.none;fi(Fe,Xe(tt))}}}),Th=gn.useMemo(()=>uo&&ks?{current:ks.closest('[role="dialog"]')}:dt,[uo,ks]);Ro({enabled:!t.actionsRef,open:ft,ref:Th,onComplete(){ft||ip()}}),gn.useImperativeHandle(t.actionsRef,()=>({unmount:ip}),[ip]),Ee(function(){let tt=Re.current!==null&&Y===null;if(Re.current=Y,ft&&(!tt||!ae)||(ft||(zn.current=null),u==="none"))return;let Me=ae?dn:Xt.current;Va({selectedIndex:bx(Me,Ye,$,yn)})},[ft,Y,Ye,u,yn,ae,dn,$,Va]),Ee(()=>{Se&&(Xt.current=dn,Ke.current.length=dn.length)},[Se,dn]),Ee(()=>{let Fe=An.current;if(Fe){let vt=ft||uo||pt.state.positionerElement?.hidden===!1;if(Fe.hasQuery)Lt&&vt&&pt.set("activeIndex",0),An.current=null;else if(String(un).trim()===""&&(An.current=null,vt)){let hi=Fe.selection;Lt==="always"&&!hi&&pt.state.selectionMode==="none"&&pt.set("activeIndex",0),queueMicrotask(()=>{if(!pt.state.open&&!pt.state.inline||Ae.current&&Ae.current.value.trim()!=="")return;let ma=pt.state.selectedValue,Bo=pt.state.selectionMode==="multiple";if(Bo&&Array.isArray(ma)?ma.length>0:pt.state.selectionMode!=="none"&&ma!=null){let Ze=ae||st?dn:Xt.current,en=gx(Ze,Fe.toggledValue,pt.state.isItemEqualToValue);pt.set("activeIndex",en!==-1?en:bx(Ze,ma,pt.state.isItemEqualToValue,Bo))}else hi?pt.set("activeIndex",null):Lt==="always"&&pt.set("activeIndex",0)})}}if(!ft&&!uo)return;let Me=ae||st?dn:Xt.current,Rt=pt.state.activeIndex;if(Rt==null){if(Lt==="always"&&Me.length>0){pt.set("activeIndex",0);return}lc(void 0,-1,he.none);return}if(Rt>=Me.length){lc(void 0,-1,he.none),pt.set("activeIndex",null);return}let $n=Me[Rt],wr=_t.current.value,or=wr!==WF&&Gl($n,wr,pt.state.isItemEqualToValue);(_t.current.index!==Rt||!or)&&lc($n,Rt,he.none)},[Wi,Lt,lc,st,ae,dn,uo,ft,pt,un]),Ee(()=>{if(u==="none"){J(String(un)!=="");return}J(yn?Array.isArray(Ye)&&Ye.length>0:Ye!=null)},[J,u,un,Ye,yn]),gn.useEffect(()=>{ae&&Lt&&dn.length===0&&Va({activeIndex:null})},[ae,Lt,dn.length,Va]);function k5(){ft&&It!==""&&It!==String(Kn)&&!ef&&K(!0)}function C5(){ft&&Y!==null&&cu(!1)}let Rh=!1;function _5(){!Rh&&un!==mi&&(Rh=!0,fi(mi,Xe(he.none)))}function of(){u!=="none"&&(V(mn),H(Lme(Ye,ne.initialValue,$)),be.change(Ye),In&&!er&&!pa&&_5())}function Ah(){In&&!er&&!pa&&!Ce&&_5()}function S5(){u==="none"&&(V(mn),H(un!==ne.initialValue),be.change(un))}ku(It,k5),ku(ft,C5),ku(Ye,of),ku(mi,Ah),ku(Se,Ah),ku(un,S5);let op=GD({open:uo?!0:ft,onOpenChange:_s,elements:{reference:pa?Oo:Cs,floating:ks}}),L5=y?"grid":"listbox",ap=ft||uo,$h=ap?"true":"false",Wa=gn.useMemo(()=>{let Fe=Cs?.tagName==="INPUT",tt=Cs==null||Fe,Me=tt||ap,Rt=tt?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return Me&&(Rt.role="combobox",Rt["aria-expanded"]=$h,Rt["aria-haspopup"]=L5,Rt["aria-controls"]=ap?da?.id:void 0,Rt["aria-autocomplete"]=h?"none":P),{reference:Rt,floating:{role:"presentation"}}},[Cs,ap,$h,L5,da?.id,P,h]),af=$u(op,{enabled:!Ot&&_,event:"mousedown-only",toggle:!1,touchOpenDelay:pa?0:100,reason:he.inputPress}),sp=Y0(op,{enabled:!Ot&&!uo,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:uo?!0:void 0,outsidePress(Fe){let tt=lr(Fe);return!ot(Oo,tt)&&!ot(rn.current,tt)&&!ot(Jt.current,tt)&&!ot(Mh,tt)}}),ue=tx(op,{enabled:!Ot,id:ge,listRef:Ke,activeIndex:Wi,selectedIndex:co,virtual:!0,loopFocus:T,allowEscape:T&&!Lt,focusItemOnOpen:Ce||u==="none"&&!Lt?!1:"auto",focusItemOnHover:C,resetOnPointerLeave:!S,orientation:y?"horizontal":void 0,rtl:le==="rtl",disabledIndices:Us,grid:y?Cme:void 0,onNavigate(Fe,tt){!tt&&!ft||sc==="ending"||Va(tt?{activeIndex:Fe,type:Bt.current?he.keyboard:he.pointer}:{activeIndex:Fe})}}),je=gn.useMemo(()=>Bi(ue.reference,{onKeyDown(Fe){y&&pt.state.activeIndex==null&&(Fe.key==="ArrowLeft"||Fe.key==="ArrowRight")&&Fe.preventBaseUIHandler()}},sp.reference,af.reference,Wa.reference),[ue.reference,sp.reference,af.reference,Wa.reference,y,pt]),St=gn.useMemo(()=>Bi(V2,sp.floating),[sp.floating]),_n=gn.useMemo(()=>Bi(ue.floating,Wa.floating),[ue.floating,Wa.floating]),xr=gn.useMemo(()=>{let Fe=ue.item;return Fe?{...Fe,onFocus:void 0}:xn},[ue.item]);pt.useContextCallback("setOpen",_s),pt.useContextCallback("setInputValue",fi),pt.useContextCallback("setSelectedValue",fl),pt.useContextCallback("setIndices",Va),pt.useContextCallback("handleSelection",Za),pt.useContextCallback("forceMount",rf),pt.useContextCallback("requestSubmit",cc),pt.useContextCallback("onOpenChangeComplete",n),kme(()=>{pt.update({inline:F,popupProps:St,listProps:_n,inputProps:je,triggerProps:tf,itemProps:xr})});let po={id:ge,selectedValue:Ye,open:ft,mounted:Eh,transitionStatus:sc,items:Le,inline:F,popupProps:St,listProps:_n,inputProps:je,triggerProps:tf,itemProps:xr,openMethod:Fo,selectionMode:u,name:mn,form:m,disabled:Ot,readOnly:h,required:x,grid:y,virtualized:N,openOnInputClick:_,itemToStringLabel:Be,modal:O,autoHighlight:Lt,isItemEqualToValue:$,submitOnItemClick:j,hasInputValue:er};Ee(()=>{pt.update({...po,inputOwnsFormValue:u==="none"&&(F||!pt.state.inputInsidePopup)})},[pt,...Object.values(po)]);let Ss=wa(g,be.inputRef),uu=gn.useMemo(()=>({query:It,hasItems:ae,filteredItems:Ge,flatFilteredValues:dn}),[It,ae,Ge,dn]),sf=gn.useMemo(()=>Array.isArray(vs)?"":uy(vs,A),[vs,A]),uc=yn&&Array.isArray(Ye)&&Ye.length>0,Zu=yn||u==="none"&&rp?void 0:mn,hl=gn.useMemo(()=>!yn||!Array.isArray(Ye)||!mn?null:Ye.map(Fe=>{let tt=uy(Fe,A);return(0,Ad.jsx)("input",{type:"hidden",form:m,name:mn,value:tt,disabled:Ot},tt)}),[yn,Ye,m,mn,A,Ot]),M5=(0,Ad.jsxs)(gn.Fragment,{children:[t.children,(0,Ad.jsx)("input",{...be.getValidationProps(Ot,{onFocus(){if(pa){Oo?.focus();return}(Ae.current||Oo)?.focus()},onChange(Fe){if(Fe.nativeEvent.defaultPrevented||Ot||h)return;let tt=Fe.currentTarget.value,Me=tt.toLowerCase(),Rt=Xe(he.none,Fe.nativeEvent),$n=()=>Xt.current.findIndex(or=>uy(or,A).toLowerCase()===Me||xe(or).toLowerCase()===Me);function wr(){if(yn)return;if(u==="none"){fi(tt,Rt);return}let or=$n();or===-1&&(or=Xt.current.findIndex((hi,ma)=>{let Bo=mt.current[ma];return Bo!=null&&Bo.toLowerCase()===Me}));let vt=or===-1?void 0:Xt.current[or];vt!=null&&fl?.(vt,Rt)}In&&(rf(),Se&&$n()===-1&&pt.set("forceMounted",!0)),queueMicrotask(wr)}}),id:ge&&Zu==null?`${ge}-hidden-input`:void 0,form:m,name:Zu,autoComplete:U,disabled:Ot,required:x&&!uc,readOnly:h,value:sf,ref:Ss,style:Zu?g2:h2,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),hl]});return(0,Ad.jsx)(qF.Provider,{value:pt,children:(0,Ad.jsx)(HF.Provider,{value:op,children:(0,Ad.jsx)(UF.Provider,{value:ae,children:(0,Ad.jsx)(GF.Provider,{value:uu,children:(0,Ad.jsx)(VF.Provider,{value:un,children:M5})})})})})}var Dme=R(ee(),1);function Fme(t){let{openOnInputClick:e=!1,value:n,defaultValue:r,onValueChange:i,mode:o="list",itemToStringValue:a,...s}=t,l=(o==="inline"||o==="both")&&!t.readOnly,c=o==="inline"||o==="none",u=n!==void 0,[d,p]=yx.useState(r??""),[m,f]=yx.useState("");yx.useEffect(()=>{(u||!l)&&f("")},[n,u,l]);let h;l&&m!==""?h=m:u?h=n??"":h=d;let x=dy({locale:s.locale}),g=String((u?n:d)??"").trim(),y=c||s.filter===null?null:s.filter??x.contains;function b(v,k){f(""),u||p(v),i?.(v,k)}function w(v,k){t.onItemHighlighted?.(v,k),k.reason!==he.pointer&&f(l&&v!=null?Rd(v,a):"")}return(0,Dme.jsx)(Ome,{...s,itemToStringLabel:a,openOnInputClick:e,selectionMode:"none",fillInputOnItemPress:!0,filter:y,filterQuery:o==="both"?g:void 0,autoComplete:o,inputValue:h,defaultInputValue:r,onInputValueChange:b,onItemHighlighted:w})}var Bme=R(Q(),1);var zme=R(ee(),1);function qme(t){let{children:e}=t,n=O1(),r=null;return typeof e=="function"?r=e(String(n)):e!=null?r=e:r=n,(0,zme.jsx)(Bme.Fragment,{children:r})}var IL=R(Q(),1);var PTt=z0.popupOpen,jTt=z0.pressed;var Hme="data-popup-side";var Gme="data-list-empty";var py={...q0,...HC,popupSide:t=>t?{[Hme]:t}:null,listEmpty:t=>t?{[Gme]:""}:null};var RL=5;function AL(t,e){let n=RHe(e);return t.clientX>=n.left-RL&&t.clientX<=n.right+RL&&t.clientY>=n.top-RL&&t.clientY<=n.bottom+RL}function RHe(t){let e=t.getBoundingClientRect(),n=Qn(t);if(Nn.env.jsdom)return e;let r=n.getComputedStyle(t,"::before"),i=n.getComputedStyle(t,"::after");if(!(r.content!=="none"||i.content!=="none"))return e;let a=parseFloat(r.width)||0,s=parseFloat(r.height)||0,l=parseFloat(i.width)||0,c=parseFloat(i.height)||0,u=Math.max(e.width,a,l),d=Math.max(e.height,s,c),p=u-e.width,m=d-e.height;return{left:e.left-p/2,right:e.right+p/2,top:e.top-m/2,bottom:e.bottom+m/2}}function Ume(t,e){return t??e}function my(t){let e=t.useState("mounted"),n=t.useState("popupSide"),r=t.useState("positionerElement");return e&&r?n:null}function $d(){return Vc().filteredItems.length===0}function Vme(t){return t==="rtl"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]}function Zme(t,e){let n=t>=e-1?e-2:t;return n>=0?n:void 0}function $L(t,e,n){let r=t.context.listRef.current[e];r&&(t.context.selectionEventRef.current=n,r.click(),t.context.selectionEventRef.current=null)}var Wme=IL.forwardRef(function(e,n){let{render:r,className:i,nativeButton:o=!0,disabled:a=!1,id:s,style:l,...c}=e,{state:u,disabled:d,setTouched:p,setFocused:m,validationMode:f,validation:h}=Vs(),{labelId:x}=h1(),g=pr(),y=g.useState("selectionMode"),b=g.useState("disabled"),w=g.useState("readOnly"),v=g.useState("required"),k=g.useState("positionerElement"),_=g.useState("listElement"),L=g.useState("popupId"),S=g.useState("triggerProps"),C=g.useState("inputInsidePopup"),T=g.useState("id"),M=g.useState("labelId"),A=g.useState("open"),$=g.useState("selectedValue"),N=g.useState("activeIndex"),F=g.useState("selectedIndex"),D=g.useState("hasSelectedValue"),O=j1(),B=O1(),P=Br(),U=d||b||a,G=$d(),j=my(g);w2({id:C?s:void 0});let V=C?s??T:s,H=Ume(x,M),ne;A&&C?ne=L??EL(T):A&&(ne=_?.id);let J=IL.useRef("");function W(ke){J.current=ke.pointerType}let{reference:ie}=nx(O,{enabled:!A&&!w&&!b&&y==="single",listRef:g.context.labelsRef,activeIndex:N,selectedIndex:F,onMatch(ke){let me=g.context.valuesRef.current[ke];me!==void 0&&g.context.setSelectedValue(me,Xe(he.none))}}),{reference:Z}=$u(O,{enabled:!b,event:"mousedown"}),{buttonRef:ce,getButtonProps:se}=zi({native:o,disabled:U}),be={...u,readOnly:w,open:A,disabled:U,popupSide:j,listEmpty:G,placeholder:y==="none"?!1:!D},le=Pe(ke=>{g.set("triggerElement",ke)});return We("button",e,{ref:[n,ce,le],state:be,props:[S,Z,ie,{id:V,tabIndex:C?0:-1,role:C?"combobox":void 0,"aria-expanded":A,"aria-haspopup":C?"dialog":"listbox","aria-controls":ne,"aria-required":C&&v||void 0,"aria-readonly":C&&w||void 0,"aria-labelledby":H,onPointerDown:W,onPointerEnter:W,onFocus(){m(!0),!U&&P.start(0,g.context.forceMount)},onBlur(ke){if(!ot(k,ke.relatedTarget)&&(p(!0),m(!1),f==="onBlur")){let me=y==="none"?B:$;h.commit(me)}},onMouseDown(ke){if(U||(C||O.set("domReferenceElement",ke.currentTarget),g.context.forceMount(),J.current!=="touch"&&(g.context.inputRef.current?.focus(),C||ke.preventDefault()),A))return;let me=Wt(ke.currentTarget);function Se(de){let Le=g.state.triggerElement;if(!Le)return;let Ne=lr(de),Be=g.state.positionerElement,_e=g.state.listElement;ot(Le,Ne)||ot(Be,Ne)||ot(_e,Ne)||AL(de,Le)||g.context.setOpen(!1,Xe(he.cancelOpen,de))}C&&me.addEventListener("mouseup",Se,{once:!0})},onKeyDown(ke){(ke.key==="ArrowDown"||ke.key==="ArrowUp")&&(zr(ke),g.context.setOpen(!0,Xe(he.listNavigation,ke.nativeEvent)),g.context.inputRef.current?.focus())}},h.getValidationProps(U,c),se],stateAttributesMapping:py})});var Kme=Wme;var Id=R(Q(),1);var NL=R(Q(),1),AHe=NL.createContext(void 0);function Xme(){return NL.useContext(AHe)}var PL=R(Q(),1),KF=PL.createContext(void 0);function D1(t){let e=PL.useContext(KF);if(e===void 0&&!t)throw new Error(Dt(21));return e}var Yme=R(Q(),1);var Qme=R(ee(),1),jL=Yme.forwardRef(function(e,n){let r=pr(),{buttonRef:i,getButtonProps:o}=zi({native:!1}),a=wa(n,i);function s(c){r.context.setOpen(!1,Xe(he.closePress,c.nativeEvent,c.currentTarget))}let l=o({onClick:s});return(0,Qme.jsx)("span",{ref:a,...l,"aria-label":"Dismiss",tabIndex:void 0,style:g2})});var xx=R(ee(),1),Jme=Id.forwardRef(function(e,n){let{render:r,className:i,disabled:o=!1,id:a,style:s,...l}=e,{state:c,disabled:u,setTouched:d,setFocused:p,validationMode:m,validation:f}=Vs(),{labelId:h}=h1(),x=Xme(),y=!!D1(!0),b=pr(),w=O1(),v=Gc(),k=b.useState("required"),_=b.useState("disabled"),L=b.useState("readOnly"),S=b.useState("name"),C=b.useState("form"),T=b.useState("selectionMode"),M=b.useState("autoHighlight"),A=b.useState("inputProps"),$=b.useState("triggerProps"),N=b.useState("open"),F=b.useState("mounted"),D=b.useState("selectedValue"),O=b.useState("id"),B=b.useState("inline"),P=b.useState("modal"),U=!!M,G=my(b),j=u||_||o,V=$d(),H=y||B,ne=!H||P,J=dr(a??(H?void 0:O)),W=y?iO:c,[ie,Z]=Id.useState(null),ce=Id.useRef(!1),se=Id.useRef(null),be=Id.useRef(!1),le=T==="none"&&!y,ge=Pe(_e=>{let xe=y||b.state.inline;xe&&!b.state.hasInputValue&&b.context.setInputValue("",Xe(he.none)),b.update({inputElement:_e,inputInsidePopup:xe,inputOwnsFormValue:le})}),ke=y?l:f.getValidationProps(j,l);function me(){b.context.setIndices({activeIndex:null,selectedIndex:null,type:b.context.keyboardActiveRef.current?he.keyboard:he.pointer})}function Se(){b.context.keyboardActiveRef.current=!1}let de={...W,open:N,disabled:j,readOnly:L,popupSide:G,listEmpty:V};function Le(_e){if(!x)return;let xe,{highlightedChipIndex:Ce}=x,K=x.chipsRef.current.length,[Y,ye]=Vme(v);return Ce!==void 0?(_e.key===Y?(_e.preventDefault(),Ce>0?xe=Ce-1:xe=void 0):_e.key===ye?(_e.preventDefault(),Ce<K-1?xe=Ce+1:xe=void 0):(_e.key==="Backspace"||_e.key==="Delete")&&(_e.preventDefault(),xe=Zme(Ce,D.length),me()),xe):(_e.key===Y&&(_e.currentTarget.selectionStart??0)===0&&D.length>0&&(_e.preventDefault(),xe=K>0?K-1:void 0),xe)}let Ne=We("input",e,{state:de,ref:[n,b.context.inputRef,ge],props:[A,$,{value:ie??w,"aria-readonly":L||void 0,"aria-required":k||void 0,"aria-labelledby":h,disabled:j,readOnly:L,required:T==="none"?k:void 0,form:C,...le&&S&&{name:S},id:J,onFocus(){if(p(!0),!B||!be.current)return;be.current=!1;let _e=se.current;_e==null||!Object.hasOwn(b.context.valuesRef.current,_e)||b.context.setIndices({activeIndex:_e})},onBlur(){d(!0),p(!1);let _e=b.state.activeIndex;if(B&&_e!==null&&M!=="always"&&(se.current=_e,be.current=!0,b.context.setIndices({activeIndex:null})),m==="onBlur"){let xe=T==="none"?w:D;f.commit(xe)}},onCompositionStart(_e){Nn.os.android||(ce.current=!0,Z(_e.currentTarget.value))},onCompositionEnd(_e){ce.current=!1;let xe=_e.currentTarget.value;Z(null),b.context.setInputValue(xe,Xe(he.inputChange,_e.nativeEvent))},onChange(_e){let xe=_e.nativeEvent,Ce=xe.inputType,K=!Ce||Ce==="insertReplacementText",Y=ce.current||!K;function ye(dt){L||j||!dt||!Y||(b.context.setOpen(!0,Xe(he.inputChange,xe)),U||me())}if(ce.current){let dt=_e.currentTarget.value;Z(dt),dt===""&&!b.state.openOnInputClick&&!b.state.inputInsidePopup&&b.context.setOpen(!1,Xe(he.inputClear,xe));let Ae=dt.trim(),xt=U&&Ae!=="";ye(Ae),N&&b.state.activeIndex!==null&&!xt&&me();return}let Re=Xe(he.inputChange,xe);if(b.context.setInputValue(_e.currentTarget.value,Re),Re.isCanceled)return;let Ke=_e.currentTarget.value==="",mt=Xe(he.inputClear,xe);Ke&&!b.state.inputInsidePopup&&(T==="single"&&b.context.setSelectedValue(null,mt),b.state.openOnInputClick||b.context.setOpen(!1,mt)),ye(_e.currentTarget.value.trim()),N&&b.state.activeIndex!==null&&!U&&me()},onKeyDown(_e){if(_e.ctrlKey||_e.shiftKey||_e.altKey||_e.metaKey)return;if(b.context.keyboardActiveRef.current=!0,j||L){L&&_e.key==="Enter"&&N&&b.state.activeIndex!==null&&zr(_e);return}let xe=_e.currentTarget,Ce=xe.scrollWidth-xe.clientWidth,K=v==="rtl";if(_e.key==="Home"){zr(_e);let Re=Nn.engine.gecko&&K?xe.value.length:0;xe.setSelectionRange(Re,Re),xe.scrollLeft=0;return}if(_e.key==="End"){zr(_e);let Re=Nn.engine.gecko&&K?0:xe.value.length;xe.setSelectionRange(Re,Re),xe.scrollLeft=K?-Ce:Ce;return}if(!F&&_e.key==="Escape"){let Re=T==="multiple"&&Array.isArray(D)?D.length===0:D===null,Ke=Xe(he.escapeKey,_e.nativeEvent),mt=T==="multiple"?[]:null;b.context.setInputValue("",Ke),b.context.setSelectedValue(mt,Ke),!Re&&!b.state.inline&&!Ke.isPropagationAllowed&&_e.stopPropagation();return}if(x&&_e.key==="Backspace"&&xe.value===""&&x.highlightedChipIndex===void 0&&Array.isArray(D)&&D.length>0){let Re=x.chipsRef.current.length,Ke=Re>0?Re-1:D.length-1,mt=D.filter((dt,Ae)=>Ae!==Ke);me(),b.context.setSelectedValue(mt,Xe(he.none,_e.nativeEvent));return}let Y=x?.highlightedChipIndex!==void 0,ye=Le(_e);if(x?.setHighlightedChipIndex(ye),ye!==void 0?x?.chipsRef.current[ye]?.focus():Y&&b.context.inputRef.current?.focus(),_e.which!==229&&_e.key==="Enter"&&N){let Re=b.state.activeIndex,Ke=_e.nativeEvent;if(Re===null){if(B)return;b.context.setOpen(!1,Xe(he.none,Ke));return}zr(_e),$L(b,Re,Ke)}},onPointerMove:Se,onPointerDown:Se},ke],stateAttributesMapping:py}),Be=y?(0,xx.jsx)(mO.Provider,{value:pO,children:Ne}):Ne;return(0,xx.jsxs)(Id.Fragment,{children:[N&&ne&&(0,xx.jsx)(jL,{ref:b.context.startDismissRef}),Be]})});var tfe=R(Q(),1);function efe(t,e,n,r){if(t.baseUIHandlerPrevented)return;let i=lr(t.nativeEvent),o=ln(i)?i:null;o!==t.currentTarget&&(r?.(o)||D6(o))||(t.preventDefault(),!n&&(e.context.inputRef.current?.focus(),e.state.openOnInputClick&&e.context.setOpen(!0,Xe(he.inputPress,t.nativeEvent))))}var nfe=tfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,{state:s}=Vs(),l=pr(),c=l.useState("open"),u=l.useState("disabled"),d=l.useState("readOnly"),p=l.useState("hasSelectedValue"),m=l.useState("selectionMode"),f=my(l),h=u,x=$d(),y={...s,open:c,disabled:h,readOnly:d,popupSide:f,listEmpty:x,placeholder:m==="none"?!1:!p},b=Pe(w=>{l.set("inputGroupElement",w)});return We("div",e,{ref:[n,b],props:[{role:"group",onMouseDown(w){efe(w,l,h,v=>ot(l.context.chipsContainerRef.current,v))}},a],state:y,stateAttributesMapping:py})});var rfe=nfe;var ife=R(Q(),1);var ofe=ife.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e;return We("span",e,{ref:n,props:[{"aria-hidden":!0,children:"\u25BC"},a]})});var afe=R(Q(),1);var $He={...Dc,...F2},sfe=afe.forwardRef(function(e,n){let{render:r,className:i,disabled:o=!1,nativeButton:a=!0,keepMounted:s=!1,style:l,...c}=e,{disabled:u}=Vs(),d=pr(),p=d.useState("selectionMode"),m=d.useState("disabled"),f=d.useState("readOnly"),h=d.useState("open"),x=d.useState("selectedValue"),g=d.useState("hasSelectionChips"),y=O1(),b=!1;p==="none"?b=y!=="":p==="single"?b=x!=null:b=g;let w=u||m||o,{buttonRef:v,getButtonProps:k}=zi({native:a,disabled:w}),{mounted:_,transitionStatus:L,setMounted:S}=Oc(b),C={disabled:w,visible:b,open:h,transitionStatus:L};Ro({open:b,ref:d.context.clearRef,onComplete(){b||S(!1)}});let T=We("button",e,{state:C,ref:[n,v,d.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(A){A.preventDefault()},onClick(A){if(w||f)return;let $=d.context.keyboardActiveRef.current?he.keyboard:he.pointer;d.context.setInputValue("",Xe(he.clearPress,A.nativeEvent)),p!=="none"?(d.context.setSelectedValue(Array.isArray(x)?[]:null,Xe(he.clearPress,A.nativeEvent)),d.context.setIndices({activeIndex:null,selectedIndex:null,type:$})):d.context.setIndices({activeIndex:null,type:$}),d.context.inputRef.current?.focus()}},c,k],stateAttributesMapping:$He});return s||_?T:null});var BL=R(Q(),1);var pfe=R(Q(),1);var fy=R(Q(),1),lfe=R(ee(),1),cfe=fy.createContext(null);function ufe(){return fy.useContext(cfe)}function dfe(t){let{children:e,items:n}=t,r=fy.useMemo(()=>({items:n}),[n]);return(0,lfe.jsx)(cfe.Provider,{value:r,children:e})}var mfe=R(ee(),1);function OL(t){let{children:e}=t,{filteredItems:n}=Vc(),r=ufe(),i=r?r.items:n;return(0,mfe.jsx)(pfe.Fragment,{children:i.map(e)})}var hm=R(Q(),1);var DL=R(Q(),1),XF=DL.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function ffe(){return DL.useContext(XF)}var hfe=R(ee(),1);function FL(t){let{children:e,elementsRef:n,labelsRef:r,onMapChange:i}=t,o=Pe(i),[,a]=hm.useState(!1),s=Vn(NHe).current,l=Vn(IHe).current,c=hm.useRef(0),u=hm.useRef(!0),d=hm.useRef(null),p=hm.useRef(null),m=Pe(()=>{u.current||(u.current=!0,a(v=>!v))}),f=Pe((v,k)=>{l.set(v,k),m()}),h=Pe(v=>{l.delete(v),m()}),x=Pe(v=>{let k=new Map;return n.current.length=0,r&&(r.current.length=0),v.forEach(_=>{k.set(_.element,{..._.registration.metadata??{},index:_.index}),n.current[_.index]=_.element,r&&(r.current[_.index]=_.registration.label!==void 0?_.registration.label:_.registration.textRef?.current?.textContent??_.element.textContent)}),c.current=n.current.length,k});function g(v){if(p.current?.disconnect(),p.current=null,typeof MutationObserver!="function"||v.length<2)return;let k=new MutationObserver(L=>{if(!OHe(L))return;let S=null;for(let C of v)if(C.isConnected){if(S&&gfe(S,C)>0){k.disconnect(),m();return}S=C}});p.current=k;let _=new Set;for(let L=1;L<v.length;L+=1){let S=jHe(v[L-1],v[L]);S&&_.add(S)}_.forEach(L=>k.observe(L,{childList:!0}))}let y=Pe(()=>{let[v,k]=PHe(l),_=x(v),L=d.current,S=!L||L.length!==v.length||v.some((C,T)=>{let M=L[T];return C.index!==M.index||C.element!==M.element||C.registration.index!==M.registration.index||C.registration.metadata!==M.registration.metadata});g(k),d.current=v,u.current=!1,S&&(s.forEach(C=>C(_)),o(_))});Ee(()=>(!u.current&&d.current&&x(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,x]),Ee(()=>{u.current&&y()}),Ee(()=>()=>{p.current?.disconnect(),u.current=!0},[]);let b=Pe(v=>(s.add(v),()=>{s.delete(v)})),w=hm.useMemo(()=>({register:f,unregister:h,subscribeMapChange:b,nextIndexRef:c}),[f,h,b,c]);return(0,hfe.jsx)(XF.Provider,{value:w,children:e})}function IHe(){return new Map}function NHe(){return new Set}function PHe(t){let e=new Set,n=[],r=[];t.forEach((o,a)=>{if(!a.isConnected)return;let s=o.index,l={index:s??-1,element:a,registration:o};s===null?r.push(l):s>=0&&(e.add(s),n.push(l))});let i=0;return r.sort((o,a)=>gfe(o.element,a.element)),r.forEach(o=>{for(;e.has(i);)i+=1;o.index=i,n.push(o),i+=1}),e.size>0&&n.sort((o,a)=>o.index-a.index),[n,r.map(o=>o.element)]}function jHe(t,e){let n=t.parentElement;for(;n&&!n.contains(e);)n=n.parentElement;return n}function OHe(t){for(let e of t)for(let n=0;n<e.removedNodes.length;n+=1)if(e.removedNodes[n].isConnected)return!0;return!1}function gfe(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var YF=R(ee(),1),bfe=BL.forwardRef(function(e,n){var r;let{render:i,className:o,style:a,children:s,...l}=e,c=pr(),u=j1(),d=!!D1(!0),{filteredItems:p,hasItems:m}=Vc(),f=c.useState("selectionMode"),h=c.useState("grid"),x=c.useState("readOnly"),g=c.useState("listProps"),y=c.useState("virtualized"),b=c.useState("forceMounted"),w=f==="multiple",v=p.length===0,k=Pe(A=>{c.set("positionerElement",A)}),_=Pe(A=>{c.set("listElement",A)}),L=BL.useMemo(()=>typeof s=="function"?r||(r=(0,YF.jsx)(OL,{children:s})):s,[s]),S={empty:v},C=u.useState("floatingId"),T=We("div",e,{state:S,ref:[n,_,d?null:k],props:[g,{children:L,tabIndex:-1,id:C,role:h?"grid":"listbox","aria-multiselectable":w?"true":void 0,"aria-readonly":!h&&x?!0:void 0,onKeyDown(A){if(!(c.state.disabled||c.state.readOnly)&&A.key==="Enter"){let $=c.state.activeIndex;if($==null)return;zr(A),$L(c,$,A.nativeEvent)}},onKeyDownCapture(){c.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.context.keyboardActiveRef.current=!1}},l]});if(y)return T;let M=m&&!b?void 0:c.context.labelsRef;return(0,YF.jsx)(FL,{elementsRef:c.context.listRef,labelsRef:M,children:T})});var yfe=R(Q(),1);var zL=R(Q(),1);var DHe="\u2060",FHe=200;function BHe(t){let e=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=null;for(;e.nextNode();){let r=e.currentNode;r.nodeValue!==""&&(n=r)}return n}function qL(){let t=Br(),e=zL.useRef(null);return zL.useEffect(()=>{if(Nn.os.ios)return;let n=e.current;if(n==null)return;let r=BHe(n);if(r==null)return;let i=r.data,o=`${i}${DHe}`;return r.nodeValue=o,t.start(FHe,()=>{r.nodeValue===o&&(r.nodeValue=i)}),()=>{t.clear(),r.nodeValue===o&&(r.nodeValue=i)}},[e,t]),e}var xfe=yfe.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,l=qL();return We("div",e,{ref:[n,l],props:[{children:a,role:"status","aria-live":"polite","aria-atomic":!0},s]})});var vfe=R(Q(),1);var HL=R(Q(),1),QF=HL.createContext(void 0);function wfe(){let t=HL.useContext(QF);if(t===void 0)throw new Error(Dt(20));return t}var JF=R(ee(),1),kfe=vfe.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e,o=pr(),a=o.useState("mounted"),s=o.useState("forceMounted");return a||r||s?(0,JF.jsx)(QF.Provider,{value:r,children:(0,JF.jsx)(W0,{ref:n,...i})}):null});var Cfe=R(Q(),1);var zHe={...Bl,...Dc},_fe=Cfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=pr(),l=s.useState("open"),c=s.useState("mounted"),u=s.useState("transitionStatus");return We("div",e,{state:{open:l,transitionStatus:u},ref:n,stateAttributesMapping:zHe,props:[{role:"presentation",hidden:!c,style:{userSelect:"none",WebkitUserSelect:"none"}},a]})});var Sfe=R(Q(),1);var GL=R(ee(),1),Lfe=Sfe.forwardRef(function(e,n){let{render:r,className:i,anchor:o,positionMethod:a,side:s,align:l,sideOffset:c,alignOffset:u,collisionBoundary:d="clipping-ancestors",collisionPadding:p,arrowPadding:m,sticky:f,disableAnchorTracking:h=!1,collisionAvoidance:x=oS,style:g,...y}=e,b=pr(),w=j1(),v=wfe(),k=b.useState("modal"),_=b.useState("open"),L=b.useState("mounted"),S=b.useState("openMethod"),C=b.useState("positionerElement"),T=b.useState("triggerElement"),M=b.useState("inputElement"),A=b.useState("inputGroupElement"),$=b.useState("inputInsidePopup"),N=b.useState("transitionStatus"),F=$d(),O=Q2({anchor:o??($?T:A??M),floatingRootContext:w,positionMethod:a,mounted:L,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:m,collisionBoundary:d,collisionPadding:p,sticky:f,disableAnchorTracking:h,keepMounted:v,collisionAvoidance:x,lazyFlip:!0});ty(_&&k,S==="touch",C,T);let B={open:_,side:O.side,align:O.align,anchorHidden:O.anchorHidden,empty:F};Ee(()=>{b.set("popupSide",O.side)},[b,O.side]);let P=Pe(G=>{b.set("positionerElement",G)}),U=ey(e,B,{styles:O.positionerStyles,transitionStatus:N,props:y,refs:[n,P],hidden:!L,inert:!_});return(0,GL.jsxs)(KF.Provider,{value:O,children:[L&&k&&(0,GL.jsx)(J2,{inert:R1(!_),cutout:A??M??T}),U]})});var UL=R(Q(),1);var wx=R(ee(),1),qHe={...Bl,...Dc},Mfe=UL.forwardRef(function(e,n){let{render:r,className:i,style:o,initialFocus:a,finalFocus:s,...l}=e,c=pr(),u=D1(),d=j1(),p=c.useState("mounted"),m=c.useState("open"),f=c.useState("openMethod"),h=c.useState("popupProps"),x=c.useState("transitionStatus"),g=c.useState("inputInsidePopup"),y=c.useState("inputElement"),b=c.useState("modal"),w=c.useState("id"),v=$d(),k=l.id??(g?EL(w):void 0);Ee(()=>(c.set("popupId",c.context.popupRef.current?.id||k),()=>{c.set("popupId",void 0)}),[c,k]),Ro({open:m,ref:c.context.popupRef,onComplete(){m&&c.context.onOpenChangeComplete(!0)}});let _={open:m,side:u.side,align:u.align,anchorHidden:u.anchorHidden,transitionStatus:x,empty:v},L=We("div",e,{state:_,ref:[n,c.context.popupRef],props:[h,{id:k,role:g?"dialog":"presentation",onFocus(A){let $=lr(A.nativeEvent);f!=="touch"&&(ot(c.state.listElement,$)||$===A.currentTarget)&&c.context.inputRef.current?.focus()}},A1(x),l],stateAttributesMapping:qHe}),C=a===void 0?g?A=>A==="touch"?c.context.popupRef.current:y:!1:a,T;s!=null?T=s:T=g?void 0:!1;let M=!g||b;return(0,wx.jsx)(X0,{context:d,disabled:!p,modal:M,openInteractionType:f,initialFocus:C,returnFocus:T,getInsideElements:()=>[c.context.startDismissRef.current,c.context.endDismissRef.current],children:(0,wx.jsxs)(UL.Fragment,{children:[L,M&&(0,wx.jsx)(jL,{ref:c.context.endDismissRef})]})})});var Efe=R(Q(),1);var Tfe=Efe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=pr(),{arrowRef:l,side:c,align:u,arrowUncentered:d,arrowStyles:p}=D1(),f={open:s.useState("open"),side:c,align:u,uncentered:d};return We("div",e,{ref:[l,n],stateAttributesMapping:Bl,state:f,props:{style:p,"aria-hidden":!0,...a}})});var hy=R(Q(),1);var VL=R(Q(),1),eB=VL.createContext(void 0);function Rfe(){let t=VL.useContext(eB);if(t===void 0)throw new Error(Dt(18));return t}var tB=R(ee(),1),Afe=hy.forwardRef(function(e,n){let{render:r,className:i,style:o,items:a,...s}=e,c=pr().useState("grid"),[u,d]=hy.useState(),p=hy.useMemo(()=>({labelId:u,setLabelId:d,items:a}),[u,d,a]),m=We("div",e,{ref:n,props:[{role:c?"rowgroup":"group","aria-labelledby":u},s]}),f=(0,tB.jsx)(eB.Provider,{value:p,children:m});return a?(0,tB.jsx)(dfe,{items:a,children:f}):f});var $fe=R(Q(),1);var Ife=$fe.forwardRef(function(e,n){let{render:r,className:i,style:o,id:a,...s}=e,{setLabelId:l}=Rfe(),c=dr(a);return Ee(()=>(l(c),()=>{l(d=>d===c?void 0:d)}),[c,l]),We("div",e,{ref:n,props:[{id:c,"aria-hidden":!0},s]})});var gm=R(Q(),1),jfe=R(Ms(),1);var lg=R(Q(),1);function tl(t={}){let{guess:e,label:n,metadata:r,textRef:i,index:o}=t,{register:a,unregister:s,subscribeMapChange:l,nextIndexRef:c}=ffe(),u=lg.useRef(-1),[d,p]=lg.useState(o==null&&e?()=>{if(u.current===-1){let x=c.current;c.current+=1,u.current=x}return u.current}:-1),m=o??d,f=lg.useRef(null),h=lg.useCallback(x=>{let g=f.current;g&&s(g),f.current=x,x&&a(x,{metadata:r??null,index:o??null,label:n,textRef:i})},[o,a,s,r,n,i]);return Ee(()=>{if(o==null)return l(x=>{let g=f.current?x.get(f.current)?.index:null;g!=null&&p(g)})},[o,l]),{ref:h,index:m}}var nB=R(Q(),1),Nfe=nB.createContext(void 0);var ZL=R(Q(),1),rB=ZL.createContext(!1);function Pfe(){return ZL.useContext(rB)}var vx=R(ee(),1);function Ofe(t){let{componentProps:e,forwardedRef:n,virtualized:r,indexFromFilter:i}=t,{render:o,className:a,style:s,value:l=null,index:c,disabled:u=!1,nativeButton:d=!1,...p}=e,m=gm.useRef(null),f=tl({guess:!0,index:c,textRef:m}),h=pr(),x=Pfe(),g=_me(),y=h.useState("selectionMode"),b=h.useState("disabled"),w=h.useState("readOnly"),v=h.useState("isItemEqualToValue"),k=b||u,_=y!=="none",L=c??i??f.index,S=L!==-1,C=h.useState("id"),T=h.useState("isActive",L),M=h.useState("isSelected",l),A=h.useState("itemProps"),$=gm.useRef(null),N=C!=null&&S?`${C}-${L}`:void 0,F=M&&_;Ee(()=>{if(!(S&&(r||c!=null)))return;let H=h.context.listRef.current;return H[L]=$.current,()=>{delete H[L]}},[S,r,L,c,h]),Ee(()=>{if(!S||g)return;let V=h.context.valuesRef.current;return V[L]=l,()=>{delete V[L]}},[S,g,L,l,h]),Ee(()=>{if(!S||g)return;let V=h.state.selectedValue,H=h.state.selectedIndex;h.state.selectionMode==="multiple"&&Array.isArray(V)?H=Mme(L,l,h.context.valuesRef.current,V,v,H):Gl(l,V,v)&&(H=L),h.set("selectedIndex",H)},[S,g,h,L,l,v]);let{getButtonProps:D,buttonRef:O}=zi({disabled:k,focusableWhenDisabled:!0,native:d,composite:!0}),B={disabled:k,selected:F,highlighted:T};function P(V){function H(){h.context.handleSelection(V,l)}h.state.submitOnItemClick?(jfe.flushSync(H),h.context.requestSubmit()):H()}let U={id:N,role:x?"gridcell":"option","aria-selected":_?F:void 0,tabIndex:void 0,onPointerDownCapture(V){V.isPrimary&&(h.context.pointerDownItemRef.current=V.currentTarget),V.preventDefault()},onMouseDown(V){V.preventDefault()},onClick(V){k||w||P(V.nativeEvent)},onMouseUp(V){let H=h.context.pointerDownItemRef.current===V.currentTarget;h.context.pointerDownItemRef.current=null,!(k||w||V.button!==0||H||!T)&&P(V.nativeEvent)}},G=We("div",e,{ref:[O,n,f.ref,$],state:B,props:[A,U,p,D]}),j=gm.useMemo(()=>({selected:F,textRef:m}),[F,m]);return(0,vx.jsx)(Nfe.Provider,{value:j,children:G})}function HHe(t){let{componentProps:e,forwardedRef:n}=t,i=pr().useState("isItemEqualToValue"),{flatFilteredValues:o}=Vc(),a=e.value??null,s=gx(o,a,i);return(0,vx.jsx)(Ofe,{componentProps:e,forwardedRef:n,virtualized:!0,indexFromFilter:s})}var Dfe=gm.memo(gm.forwardRef(function(e,n){let i=pr().useState("virtualized");return i&&e.index==null?(0,vx.jsx)(HHe,{componentProps:e,forwardedRef:n}):(0,vx.jsx)(Ofe,{componentProps:e,forwardedRef:n,virtualized:i,indexFromFilter:void 0})}));var Ffe=Dfe;var Bfe=R(Q(),1);var zfe=R(ee(),1),qfe=Bfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=We("div",e,{ref:n,props:[{role:"row"},a]});return(0,zfe.jsx)(rB.Provider,{value:!0,children:s})});var Hfe=R(Q(),1);var Gfe=Hfe.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,{filteredItems:l}=Vc(),c=pr(),u=qL(),d=l.length===0?a:null;return We("div",e,{ref:[n,c.context.emptyRef,u],props:[{children:d,role:"status","aria-live":"polite","aria-atomic":!0},s]})});var Ufe=R(Q(),1);var Vfe=Ufe.forwardRef(function(e,n){let{className:r,render:i,orientation:o="horizontal",style:a,...s}=e;return We("div",e,{state:{orientation:o},ref:n,props:[{role:"presentation"},s]})});var Zfe=Vfe;function Wfe(){return Vc().filteredItems}var Pu=R(ee(),1);function Xfe(t){let e=(0,Kfe.c)(46),{defaultValue:n,suggestions:r,onQuery:i,onSubmit:o,onCancel:a,label:s,placeholder:l,inputClassName:c,listClassName:u,itemClassName:d,inputRef:p,inline:m,renderItem:f}=t,h=n===void 0?"":n,x=m===void 0?!1:m,g=iy(),[y,b]=(0,iB.useState)(h),[w,v]=(0,iB.useState)(void 0),k;e[0]!==i?(k=H=>{b(H),i(H)},e[0]=i,e[1]=k):k=e[1];let _=k,L;e[2]!==w||e[3]!==a||e[4]!==o||e[5]!==r[0]||e[6]!==r.length||e[7]!==_?(L=H=>{if(H.metaKey||H.ctrlKey||H.altKey)return;let ne=H.currentTarget.value;H.key==="Enter"?(H.preventDefault(),H.preventBaseUIHandler?.(),o(w??ne)):H.key==="Escape"?(H.preventDefault(),H.stopPropagation(),H.preventBaseUIHandler?.(),a()):H.key==="Tab"&&!H.shiftKey&&r.length&&(H.preventDefault(),H.preventBaseUIHandler?.(),_(w??r[0]))},e[2]=w,e[3]=a,e[4]=o,e[5]=r[0],e[6]=r.length,e[7]=_,e[8]=L):L=e[8];let S=L,C;e[9]!==u?(C=Zs("ui-combobox-list",u),e[9]=u,e[10]=C):C=e[10];let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=(0,Pu.jsx)("ul",{}),e[11]=T):T=e[11];let M=r.length===0,A;e[12]!==d||e[13]!==o||e[14]!==f?(A=H=>(0,Pu.jsx)(Nd.Item,{value:H,className:Zs("ui-combobox-item",d),render:(0,Pu.jsx)("li",{}),onClick:()=>o(H),children:f?f(H):H},H),e[12]=d,e[13]=o,e[14]=f,e[15]=A):A=e[15];let $;e[16]!==C||e[17]!==M||e[18]!==A?($=(0,Pu.jsx)(Nd.List,{className:C,render:T,hidden:M,children:A}),e[16]=C,e[17]=M,e[18]=A,e[19]=$):$=e[19];let N=$,F=r,D;e[20]!==_?(D=H=>_(H),e[20]=_,e[21]=D):D=e[21];let O=x||r.length>0,B;e[22]===Symbol.for("react.memo_cache_sentinel")?(B=H=>v(H),e[22]=B):B=e[22];let P;e[23]!==c?(P=Zs("ui-field",c),e[23]=c,e[24]=P):P=e[24];let U;e[25]!==a?(U=()=>a(),e[25]=a,e[26]=U):U=e[26];let G;e[27]!==p||e[28]!==s||e[29]!==S||e[30]!==l||e[31]!==P||e[32]!==U?(G=(0,Pu.jsx)(Nd.Input,{ref:p,className:P,"aria-label":s,placeholder:l,spellCheck:!1,onKeyDown:S,onBlur:U}),e[27]=p,e[28]=s,e[29]=S,e[30]=l,e[31]=P,e[32]=U,e[33]=G):G=e[33];let j;e[34]!==g||e[35]!==x||e[36]!==N?(j=x?N:(0,Pu.jsx)(Nd.Portal,{container:g,children:(0,Pu.jsx)(Nd.Positioner,{className:"ui-positioner",sideOffset:2,align:"start",children:(0,Pu.jsx)(Nd.Popup,{className:"ui-popup ui-combobox-popup",children:N})})}),e[34]=g,e[35]=x,e[36]=N,e[37]=j):j=e[37];let V;return e[38]!==x||e[39]!==F||e[40]!==D||e[41]!==O||e[42]!==G||e[43]!==j||e[44]!==y?(V=(0,Pu.jsxs)(Nd.Root,{items:F,filter:null,value:y,onValueChange:D,open:O,inline:x,onItemHighlighted:B,children:[G,j]}),e[38]=x,e[39]=F,e[40]=D,e[41]=O,e[42]=G,e[43]=j,e[44]=y,e[45]=V):V=e[45],V}var ym=R(qe(),1),Zc=R(Q(),1);var cs={};fn(cs,{Arrow:()=>Qfe,Backdrop:()=>e1e,CheckboxItem:()=>a1e,CheckboxItemIndicator:()=>s1e,Group:()=>u1e,GroupLabel:()=>p1e,Handle:()=>Sx,Item:()=>f1e,LinkItem:()=>h1e,Popup:()=>b1e,Portal:()=>w1e,Positioner:()=>v1e,RadioGroup:()=>C1e,RadioItem:()=>L1e,RadioItemIndicator:()=>M1e,Root:()=>hM,Separator:()=>q1e,SubmenuRoot:()=>I1e,SubmenuTrigger:()=>H1e,Trigger:()=>D1e,Viewport:()=>B1e,createHandle:()=>G1e});var Yfe=R(Q(),1);var WL=R(Q(),1),oB=WL.createContext(void 0);function Na(t){let e=WL.useContext(oB);if(e===void 0&&!t)throw new Error(Dt(33));return e}var KL=R(Q(),1),aB=KL.createContext(void 0);function Lr(t){let e=KL.useContext(aB);if(e===void 0&&!t)throw new Error(Dt(36));return e}var Qfe=Yfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,{store:s}=Lr(),{arrowRef:l,side:c,align:u,arrowUncentered:d,arrowStyles:p}=Na(),f={open:s.useState("open"),side:c,align:u,uncentered:d};return We("div",e,{ref:[l,n],stateAttributesMapping:Bl,state:f,props:{style:p,"aria-hidden":!0,...a}})});var Jfe=R(Q(),1);var XL=R(Q(),1),GHe=XL.createContext(void 0);function F1(t=!0){let e=XL.useContext(GHe);if(e===void 0&&!t)throw new Error(Dt(25));return e}var e1e=Jfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,{store:s}=Lr(),l=s.useState("open"),c=s.useState("mounted"),u=s.useState("transitionStatus"),d=s.useState("lastOpenChangeReason"),p=F1(),m={open:l,transitionStatus:u};return We("div",e,{ref:p?.backdropRef?[n,p.backdropRef]:n,state:m,stateAttributesMapping:w1,props:[{role:"presentation",hidden:!c,style:{pointerEvents:d===he.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},a]})});var JL=R(Q(),1);var YL=R(Q(),1),sB=YL.createContext(void 0);function t1e(){let t=YL.useContext(sB);if(t===void 0)throw new Error(Dt(30));return t}var gy=R(Q(),1);var n1e=R(Q(),1);function QL(t){let{closeOnClick:e,highlighted:n,id:r,nodeId:i,store:o,typingRef:a,itemRef:s,itemMetadata:l}=t,{events:c}=o.useState("floatingTreeRoot"),u=o.useState("open"),d=F1(!0),p=d!==void 0;return n1e.useMemo(()=>({id:r,role:"menuitem",tabIndex:u&&n?0:-1,onKeyDown(m){m.key===" "&&a?.current&&m.preventDefault()},onMouseMove(m){i&&c.emit("itemhover",{nodeId:i,target:m.currentTarget})},onClick(m){e&&c.emit("close",{domEvent:m,reason:he.itemPress})},onMouseUp(m){if(d){let f=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,p&&f&&Math.abs(m.clientX-f.x)<=1&&Math.abs(m.clientY-f.y)<=1||p&&!Nn.os.mac&&m.button===2)return}s.current&&o.context.allowMouseUpTriggerRef.current&&(!p||m.button===2)&&l.type==="regular-item"&&m1(s.current,m,{detail:1})}}),[e,n,r,c,i,u,o,a,s,d,p,l])}var B1={type:"regular-item"};function z1(t){let{closeOnClick:e,disabled:n,highlighted:r,id:i,store:o,typingRef:a=o.context.typingRef,nativeButton:s,itemMetadata:l,nodeId:c}=t,u=gy.useRef(null),{getButtonProps:d,buttonRef:p}=zi({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),m=QL({closeOnClick:e,highlighted:r,id:i,nodeId:c,store:o,typingRef:a,itemRef:u,itemMetadata:l}),f=gy.useCallback(x=>Bi(m,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},x,d),[m,d,l]),h=wa(u,p);return gy.useMemo(()=>({getItemProps:f,itemRef:h}),[f,h])}var r1e="data-checked",i1e="data-unchecked";var q1={checked(t){return t?{[r1e]:""}:{[i1e]:""}},...Dc};var o1e=R(ee(),1),a1e=JL.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,nativeButton:s=!1,disabled:l=!1,closeOnClick:c=!1,checked:u,defaultChecked:d,onCheckedChange:p,style:m,...f}=e,h=tl({guess:!0,label:a}),x=Na(!0),g=dr(o),{store:y}=Lr(),b=y.useState("disabled"),w=l||b,v=y.useState("isActive",h.index),k=y.useState("itemProps"),[_,L]=kd({controlled:u,default:d??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:S,itemRef:C}=z1({closeOnClick:c,disabled:w,highlighted:v,id:g,store:y,nativeButton:s,nodeId:x?.context.nodeId,itemMetadata:B1}),T=JL.useMemo(()=>({disabled:w,highlighted:v,checked:_}),[w,v,_]);function M($){let N=Xe(he.itemPress,$.nativeEvent,void 0,{preventUnmountOnClose:Yt});p?.(!_,N),!N.isCanceled&&L(F=>!F)}let A=We("div",e,{state:T,stateAttributesMapping:q1,props:[k,{role:"menuitemcheckbox","aria-checked":_,onClick:M},f,S],ref:[C,n,h.ref]});return(0,o1e.jsx)(sB.Provider,{value:T,children:A})});var eM=R(Q(),1);var s1e=eM.forwardRef(function(e,n){let{render:r,className:i,style:o,keepMounted:a=!1,...s}=e,l=t1e(),c=eM.useRef(null),{transitionStatus:u,mounted:d,setMounted:p}=Oc(l.checked);Ro({batch:!0,enabled:!l.checked,open:l.checked,ref:c,onComplete(){l.checked||p(!1)}});let m={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:u};return We("span",e,{state:m,ref:[n,c],stateAttributesMapping:q1,props:{"aria-hidden":!0,...s},enabled:a||d})});var nM=R(Q(),1);var tM=R(Q(),1),kx=tM.createContext(void 0);function l1e(){let t=tM.useContext(kx);if(t===void 0)throw new Error(Dt(31));return t}var c1e=R(ee(),1),u1e=nM.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,[s,l]=nM.useState(void 0),c=We("div",e,{ref:n,props:{role:"group","aria-labelledby":s,...a}});return(0,c1e.jsx)(kx.Provider,{value:l,children:c})});var d1e=R(Q(),1);var p1e=d1e.forwardRef(function(e,n){let{render:r,className:i,style:o,id:a,...s}=e,l=dr(a),c=l1e();return Ee(()=>(c(l),()=>{c(u=>u===l?void 0:u)}),[c,l]),We("div",e,{ref:n,props:{id:l,"aria-hidden":!0,...s}})});var m1e=R(Q(),1);var f1e=m1e.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,nativeButton:s=!1,disabled:l=!1,closeOnClick:c=!0,style:u,...d}=e,p=tl({guess:!0,label:a}),m=Na(!0),f=dr(o),{store:h}=Lr(),x=h.useState("disabled"),g=l||x,y=h.useState("isActive",p.index),b=h.useState("itemProps"),{getItemProps:w,itemRef:v}=z1({closeOnClick:c,disabled:g,highlighted:y,id:f,store:h,nativeButton:s,nodeId:m?.context.nodeId,itemMetadata:B1});return We("div",e,{state:{disabled:g,highlighted:y},props:[b,d,w],ref:[v,n,p.ref]})});var rM=R(Q(),1);var h1e=rM.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,closeOnClick:s=!1,style:l,...c}=e,u=rM.useRef(null),d=tl({guess:!0,label:a}),m=Na(!0)?.context.nodeId,f=dr(o),{store:h}=Lr(),x=h.useState("isActive",d.index),g=h.useState("itemProps"),y=h.context.typingRef,{getButtonProps:b,buttonRef:w}=zi({native:!1,composite:!0}),v=QL({closeOnClick:s,highlighted:x,id:f,nodeId:m,store:h,typingRef:y,itemRef:u,itemMetadata:B1});function k(L){return Bi(v,L,b)}return We("a",e,{state:{highlighted:x},props:[g,c,k],ref:[u,w,n,d.ref]})});var iM=R(Q(),1);var g1e=R(ee(),1),b1e=iM.forwardRef(function(e,n){let{render:r,className:i,style:o,finalFocus:a,...s}=e,{store:l}=Lr(),{side:c,align:u}=Na(),d=WS(!0)!=null,p=l.useState("open"),m=l.useState("transitionStatus"),f=l.useState("popupProps"),h=l.useState("mounted"),x=l.useState("instantType"),g=l.useState("activeTriggerElement"),y=l.useState("parent"),b=l.useState("lastOpenChangeReason"),w=l.useState("rootId"),v=l.useState("floatingRootContext"),k=l.useState("floatingTreeRoot"),_=l.useState("closeDelay"),L=l.useState("hoverEnabled"),S=l.useState("disabled"),C=l.useState("openMethod"),T=y.type==="context-menu";Ro({open:p,ref:l.context.popupRef,onComplete(){p&&l.context.onOpenChangeComplete?.(!0)}}),iM.useEffect(()=>{function F(D){l.setOpen(!1,Xe(D.reason,D.domEvent))}return k.events.on("close",F),()=>{k.events.off("close",F)}},[k.events,l]),ex(v,{enabled:L&&!S&&!T&&y.type!=="menubar",closeDelay:_});let M=l.useStateSetter("popupElement"),A={transitionStatus:m,side:c,align:u,open:p,nested:y.type==="menu",instant:x},$=We("div",e,{state:A,ref:[n,l.context.popupRef,M],stateAttributesMapping:w1,props:[f,{onKeyDown(F){d&&VS.has(F.key)&&F.stopPropagation()}},A1(m),s,{"data-rootownerid":w}]}),N=y.type===void 0||T;return(g||y.type==="menubar"&&b!==he.outsidePress)&&(N=!0),(0,g1e.jsx)(X0,{context:v,openInteractionType:C,modal:T,disabled:!h,returnFocus:a===void 0?N:a,initialFocus:y.type!=="menu",restoreFocus:!0,externalTree:y.type!=="menubar"?k:void 0,previousFocusableElement:g,nextFocusableElement:y.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:y.type===void 0?l.context.beforeContentFocusGuardRef:void 0,children:$})});var x1e=R(Q(),1);var oM=R(Q(),1),lB=oM.createContext(void 0);function y1e(){let t=oM.useContext(lB);if(t===void 0)throw new Error(Dt(32));return t}var cB=R(ee(),1),w1e=x1e.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e,{store:o,parent:a}=Lr();if(!(o.useState("mounted")||r))return null;let c=a.type==="menu"||a.type==="menubar"?"group":void 0;return(0,cB.jsx)(lB.Provider,{value:r,children:(0,cB.jsx)(W0,{ref:n,...i,portalOwnerRole:c})})});var Pd=R(Q(),1);var by=R(ee(),1),v1e=Pd.forwardRef(function(e,n){let{anchor:r,positionMethod:i="absolute",className:o,render:a,side:s,align:l,sideOffset:c=0,alignOffset:u=0,collisionBoundary:d="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:f=!1,disableAnchorTracking:h=!1,collisionAvoidance:x=oS,style:g,...y}=e,{store:b}=Lr(),w=y1e(),v=F1(!0),k=b.useState("parent"),_=b.useState("floatingRootContext"),L=b.useState("floatingTreeRoot"),S=b.useState("mounted"),C=b.useState("open"),T=b.useState("modal"),M=b.useState("openMethod"),A=b.useState("activeTriggerElement"),$=b.useState("transitionStatus"),N=b.useState("positionerElement"),F=b.useState("instantType"),D=b.useState("adaptiveOrigin"),O=b.useState("lastOpenChangeReason"),B=b.useState("floatingNodeId"),P=b.useState("floatingParentNodeId"),U=_.useState("domReferenceElement"),G=Pd.useRef(null),j=jc(N),V=r,H=c,ne=u,J=l,W=x;k.type==="context-menu"&&(V=r??k.context?.anchor,J=J??"start",!s&&J!=="center"&&(ne=e.alignOffset??2,H=e.sideOffset??-5));let ie=s,Z=J;k.type==="menu"?(ie=ie??"inline-end",Z=Z??"start",W=e.collisionAvoidance??aS):k.type==="menubar"&&(ie=ie??(k.context.orientation==="vertical"?"inline-end":"bottom"),Z=Z??"start");let ce=k.type==="context-menu",se=Q2({anchor:V,floatingRootContext:_,positionMethod:v?"fixed":i,mounted:S,side:ie,sideOffset:H,align:Z,alignOffset:ne,arrowPadding:ce?0:m,collisionBoundary:d,collisionPadding:p,sticky:f,nodeId:B,keepMounted:w,disableAnchorTracking:h,collisionAvoidance:W,shift:ce?{crossAxis:!("side"in W&&W.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:L,adaptiveOrigin:D});Pd.useEffect(()=>{function Le(Ne){Ne.open&&(Ne.parentNodeId===B&&b.set("hoverEnabled",!1),Ne.nodeId!==B&&Ne.parentNodeId===b.select("floatingParentNodeId")&&b.setOpen(!1,Xe(he.siblingOpen)))}return L.events.on("menuopenchange",Le),()=>{L.events.off("menuopenchange",Le)}},[b,L.events,B]),Pd.useEffect(()=>{if(b.select("floatingParentNodeId")==null)return;function Le(Ne){if(Ne.open||Ne.nodeId!==b.select("floatingParentNodeId"))return;let Be=Ne.reason??he.siblingOpen;b.setOpen(!1,Xe(Be))}return L.events.on("menuopenchange",Le),()=>{L.events.off("menuopenchange",Le)}},[L.events,b]);let be=Br();Pd.useEffect(()=>{C||be.clear()},[C,be]),Pd.useEffect(()=>{function Le(Ne){if(!(!C||Ne.nodeId!==b.select("floatingParentNodeId")))if(Ne.target&&A&&A!==Ne.target){let Be=b.select("closeDelay");Be>0?be.isStarted()||be.start(Be,()=>{b.setOpen(!1,Xe(he.siblingOpen))}):b.setOpen(!1,Xe(he.siblingOpen))}else be.clear()}return L.events.on("itemhover",Le),()=>{L.events.off("itemhover",Le)}},[L.events,C,A,b,be]),Pd.useEffect(()=>{let Le={open:C,nodeId:B,parentNodeId:P,reason:b.select("lastOpenChangeReason")};L.events.emit("menuopenchange",Le)},[L.events,C,b,B,P]),Ee(()=>{let Le=U,Ne=G.current;if(Le&&(G.current=Le),Ne&&Le&&Le!==Ne){b.set("instantType",void 0);let Be=new AbortController;return j(()=>{b.set("instantType","trigger-change")},Be.signal),()=>{Be.abort()}}},[U,j,b]);let le={open:C,side:se.side,align:se.align,anchorHidden:se.anchorHidden,nested:k.type==="menu",instant:F},ge=k.type==="menubar"&&k.context.modal,ke=T&&O!==he.triggerHover;ty(C&&(ge||ke),M==="touch",N,A);let me=ey(e,le,{styles:se.positionerStyles,transitionStatus:$,props:y,refs:[n,b.useStateSetter("positionerElement")],hidden:!S,inert:!C}),Se=S&&k.type!=="menu"&&(k.type!=="menubar"&&T&&O!==he.triggerHover||k.type==="menubar"&&k.context.modal),de=null;return k.type==="menubar"?de=k.context.contentElement:k.type===void 0&&(de=A),(0,by.jsxs)(oB.Provider,{value:se,children:[Se&&(0,by.jsx)(J2,{ref:k.type==="context-menu"||k.type==="nested-context-menu"?k.context.internalBackdropRef:null,inert:R1(!C),cutout:de}),(0,by.jsx)(Z6,{id:B,children:(0,by.jsx)(FL,{elementsRef:b.context.itemDomElements,labelsRef:b.context.itemLabels,children:me})})]})});var H1=R(Q(),1);var aM=R(Q(),1),uB=aM.createContext(void 0);function k1e(){let t=aM.useContext(uB);if(t===void 0)throw new Error(Dt(34));return t}var dB=R(ee(),1),C1e=H1.memo(H1.forwardRef(function(e,n){let{render:r,className:i,value:o,defaultValue:a,onValueChange:s,disabled:l=!1,style:c,"aria-labelledby":u,...d}=e,[p,m]=H1.useState(void 0),[f,h]=kd({controlled:o,default:a,name:"MenuRadioGroup"}),x=Pe((w,v)=>{s?.(w,v),!v.isCanceled&&h(w)}),y=We("div",e,{state:{disabled:l},ref:n,props:{role:"group","aria-labelledby":u??p,"aria-disabled":l||void 0,...d}}),b=H1.useMemo(()=>({value:f,setValue:x,disabled:l}),[f,x,l]);return(0,dB.jsx)(kx.Provider,{value:m,children:(0,dB.jsx)(uB.Provider,{value:b,children:y})})}));var lM=R(Q(),1);var sM=R(Q(),1),pB=sM.createContext(void 0);function _1e(){let t=sM.useContext(pB);if(t===void 0)throw new Error(Dt(35));return t}var S1e=R(ee(),1),L1e=lM.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,nativeButton:s=!1,disabled:l=!1,closeOnClick:c=!1,value:u,style:d,...p}=e,m=tl({guess:!0,label:a}),f=Na(!0),h=dr(o),{store:x}=Lr(),g=x.useState("isActive",m.index),y=x.useState("itemProps"),{value:b,setValue:w,disabled:v}=k1e(),k=x.useState("disabled"),_=l||v||k,L=b===u,{getItemProps:S,itemRef:C}=z1({closeOnClick:c,disabled:_,highlighted:g,id:h,store:x,nativeButton:s,nodeId:f?.context.nodeId,itemMetadata:B1}),T=lM.useMemo(()=>({disabled:_,highlighted:g,checked:L}),[_,g,L]);function M($){let N=Xe(he.itemPress,$.nativeEvent,void 0,{preventUnmountOnClose:Yt});w(u,N)}let A=We("div",e,{state:T,stateAttributesMapping:q1,props:[y,{role:"menuitemradio","aria-checked":L,onClick:M},p,S],ref:[C,n,m.ref]});return(0,S1e.jsx)(pB.Provider,{value:T,children:A})});var cM=R(Q(),1);var M1e=cM.forwardRef(function(e,n){let{render:r,className:i,style:o,keepMounted:a=!1,...s}=e,l=_1e(),c=cM.useRef(null),{transitionStatus:u,mounted:d,setMounted:p}=Oc(l.checked);Ro({batch:!0,enabled:!l.checked,open:l.checked,ref:c,onComplete(){l.checked||p(!1)}});let m={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:u};return We("span",e,{state:m,stateAttributesMapping:q1,ref:[n,c],props:{"aria-hidden":!0,...s},enabled:a||d})});var qi=R(Q(),1);var uM=R(Q(),1),VHe=uM.createContext(null);function dM(t){let e=uM.useContext(VHe);if(e===null&&!t)throw new Error(Dt(5));return e}var Cx=R(Q(),1);var E1e={..._S,disabled:t=>t.parent.type==="menubar"&&t.parent.context.disabled||t.disabled,modal:t=>(t.parent.type===void 0||t.parent.type==="context-menu")&&(t.modal??!0),openMethod:t=>t.openMethod,allowMouseEnter:t=>t.allowMouseEnter,highlightItemOnHover:t=>t.highlightItemOnHover,parent:t=>t.parent,rootId:t=>t.parent.type==="menu"?t.parent.store.select("rootId"):t.parent.type!==void 0?t.parent.context.rootId:t.rootId,activeIndex:t=>t.activeIndex,isActive:(t,e)=>t.activeIndex===e,hoverEnabled:t=>t.hoverEnabled,instantType:t=>t.instantType,lastOpenChangeReason:t=>t.openChangeReason,floatingTreeRoot:t=>t.parent.type==="menu"?t.parent.store.select("floatingTreeRoot"):t.floatingTreeRoot,floatingNodeId:t=>t.floatingNodeId,floatingParentNodeId:t=>t.floatingParentNodeId,itemProps:t=>t.itemProps,closeDelay:t=>t.closeDelay,adaptiveOrigin:t=>t.adaptiveOrigin,keyboardEventRelay:t=>{if(t.keyboardEventRelay)return t.keyboardEventRelay;if(t.parent.type==="menu")return t.parent.store.select("keyboardEventRelay")}},pM=class extends Hc{constructor(e,n,r=!1){let i=new Ed,o=A1e(i,n,r,e);super(o,R1e(i),E1e),this.unsubscribeParentListener=this.observe("parent",a=>{if(this.unsubscribeParentListener?.(),a.type==="menu"){let s=a.store.select("rootId"),l=a.store.select("floatingTreeRoot"),c=a.store.select("keyboardEventRelay");this.unsubscribeParentListener=a.store.subscribe(()=>{let u=a.store.select("rootId"),d=a.store.select("floatingTreeRoot"),p=a.store.select("keyboardEventRelay");s===u&&l===d&&c===p||(s=u,l=d,c=p,this.notifyAll())}),this.context.allowMouseUpTriggerRef=a.store.context.allowMouseUpTriggerRef;return}a.type!==void 0&&(this.context.allowMouseUpTriggerRef=a.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,n){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:n})}unsubscribeParentListener=null};function T1e(){let t=new Ed,e=new W2(Object.freeze(A1e(t)),Object.freeze(R1e(t)),E1e);return Object.assign(e,{setOpen:Yt})}function R1e(t){return{positionerRef:Cx.createRef(),popupRef:Cx.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:Cx.createRef(),beforeContentFocusGuardRef:Cx.createRef(),onOpenChangeComplete:void 0,triggerElements:t}}function A1e(t,e,n=!1,r){return{...CS(t,e,n),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new _1,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:xn,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var mM=R(Q(),1),mB=mM.createContext(void 0);function fM(){return mM.useContext(mB)}var _x=R(ee(),1),hM=N6(function(e){let{children:n,open:r,onOpenChange:i,onOpenChangeComplete:o,defaultOpen:a=!1,disabled:s=!1,modal:l,loopFocus:c=!0,orientation:u="vertical",actionsRef:d,closeParentOnEsc:p=!1,handle:m,triggerId:f,defaultTriggerId:h=null,highlightItemOnHover:x=!0}=e,g=F1(!0),y=Lr(!0),b=dM(!0),w=fM(),v=qi.useMemo(()=>w&&y?{type:"menu",store:y.store}:b?{type:"menubar",context:b}:g&&!y?{type:"context-menu",context:g}:{type:void 0},[g,y,b,w]),k=jl(),_=jl(),L=as(),S=v.type==="menu"?v.store:void 0,C=(r??a)&&S?.state.transitionStatus==="starting",T=Vn(()=>C?S?.state.instantType:void 0).current,M=ZHe({open:a,openProp:r,activeTriggerId:h,triggerIdProp:f,parent:v,disabled:s,highlightItemOnHover:x,modal:v.type===void 0?l:void 0,rootId:k,instantType:T},_,L!=null);M.useControlledProp("openProp",r),M.useControlledProp("triggerIdProp",f),M.useContextCallback("onOpenChangeComplete",o);let A=M.useState("floatingTreeRoot"),$=K0(A),N=M.useState("open"),F=M.useState("activeTriggerElement"),D=M.useState("positionerElement"),O=M.useState("hoverEnabled"),B=M.useState("disabled"),P=M.useState("lastOpenChangeReason"),U=M.useState("parent"),G=M.useState("activeIndex"),j=M.useState("payload"),V=M.useState("floatingParentNodeId"),H=qi.useRef(null),ne=qi.useRef(U.type!=="context-menu"),J=Br(),W=qi.useRef(!0),ie=Br(),Z=V!=null,{openMethod:ce,triggerProps:se}=DS(N);M.useSyncedValues({disabled:s,highlightItemOnHover:x,modal:U.type===void 0?l:void 0,openMethod:ce,rootId:k}),wS(M);let{forceUnmount:be,transitionStatus:le}=vS(N,M,()=>{M.set("allowMouseEnter",!1)},C),ge=jc(M.context.popupRef);qi.useEffect(()=>{if(T===void 0)return;let Ae=()=>{M.state.instantType===T&&M.set("instantType",void 0)};if(!N){Ae();return}if(le!==void 0)return;if(M.context.popupRef.current==null){Ae();return}let xt=new AbortController;return ge(Ae,xt.signal),()=>{xt.abort()}},[T,N,le,ge,M]),Ee(()=>{g&&!y?M.update({parent:{type:"context-menu",context:g},floatingNodeId:$,floatingParentNodeId:L}):y&&M.update({floatingNodeId:$,floatingParentNodeId:L})},[g,y,$,L,M]),qi.useEffect(()=>{if(N||(H.current=null),U.type==="context-menu"){if(!N){J.clear(),ne.current=!1;return}J.start(500,()=>{ne.current=!0})}},[J,N,U.type]),Ee(()=>{!N&&!O&&M.set("hoverEnabled",!0)},[N,O,M]);let ke=Pe((Ae,xt)=>{let Et=xt.reason;if(!Ae&&!M.select("open")||N===Ae&&xt.trigger===F&&P===Et)return;let jt=yS(xt);if(!Ae&&xt.trigger==null&&(xt.trigger=F??void 0),i?.(Ae,xt),xt.isCanceled)return;M.state.floatingRootContext.dispatchOpenChange(Ae,xt);let Bt=xt.event;if(Ae===!1&&Bt?.type==="click"&&Bt.pointerType==="touch"&&!W.current)return;Ae&&Et===he.triggerFocus?(W.current=!1,ie.start(300,()=>{W.current=!0})):(W.current=!0,ie.clear());let Ve=(Et===he.triggerPress||Et===he.itemPress)&&Bt.detail===0,Jt=!Ae&&(Et===he.escapeKey||Et==null);H.current=xt.event;let rn=bS(M.state,Ae,xt.trigger,jt());rn.openChangeReason=Et,U.type==="menubar"&&(Et===he.triggerFocus||Et===he.focusOut||Et===he.triggerHover||Et===he.listNavigation||Et===he.siblingOpen)?rn.instantType="group":Ve||Jt?rn.instantType=Ve?"click":"dismiss":rn.instantType=void 0,M.update(rn)}),me=Q6({popupStore:M,floatingRootContext:M.state.floatingRootContext,floatingId:_,nested:L!=null,onOpenChange:ke}),Se=me.context.events;Ee(()=>{let Ae=({open:xt,eventDetails:Et})=>ke(xt,Et);return Se.on("setOpen",Ae),()=>{Se?.off("setOpen",Ae)}},[Se,ke]);let de=qi.useCallback(()=>{M.setOpen(!1,Xe(he.imperativeAction))},[M]);qi.useImperativeHandle(d,()=>({unmount:be,close:de}),[be,de]);let Le;U.type==="context-menu"&&(Le=U.context),qi.useImperativeHandle(Le?.positionerRef,()=>D,[D]),qi.useImperativeHandle(Le?.actionsRef,()=>({setOpen:ke}),[ke]);let Ne=Y0(me,{enabled:!B,bubbles:{escapeKey:p&&U.type==="menu"},outsidePress(){return U.type!=="context-menu"||H.current?.type==="contextmenu"?!0:ne.current},externalTree:Z?A:void 0}),Be=Gc(),_e=qi.useCallback(Ae=>{M.select("activeIndex")!==Ae&&M.set("activeIndex",Ae)},[M]),xe=tx(me,{enabled:!B,listRef:M.context.itemDomElements,activeIndex:G,nested:U.type!==void 0,loopFocus:c,orientation:u,parentOrientation:U.type==="menubar"?U.context.orientation:void 0,rtl:Be==="rtl",disabledIndices:Us,onNavigate:_e,openOnArrowKeyDown:U.type!=="context-menu",externalTree:Z?A:void 0,focusItemOnHover:x}),Ce=qi.useCallback(Ae=>{M.context.typingRef.current=Ae},[M]),K=nx(me,{enabled:!B,listRef:M.context.itemLabels,elementsRef:M.context.itemDomElements,activeIndex:G,resetMs:500,onMatch:Ae=>{N&&Ae!==G&&M.set("activeIndex",Ae)},onTyping:Ce}),Y=qi.useMemo(()=>{let Ae=Bi(K.reference,xe.reference,Ne.reference,{onMouseMove(){M.set("allowMouseEnter",!0)}},se);return Ae["aria-haspopup"]="menu",Ae["aria-expanded"]=N,Ae},[M,K.reference,xe.reference,Ne.reference,se,N]),ye=qi.useMemo(()=>{let Ae=Bi(xe.trigger,Ne.trigger,se);return Ae["aria-haspopup"]="menu",Ae["aria-expanded"]=!1,Ae},[xe.trigger,Ne.trigger,se]);Vn(()=>(M.update({inactiveTriggerProps:ye}),null));let Re=qi.useMemo(()=>Bi(V2,{id:_,role:"menu","aria-orientation":u==="horizontal"?"horizontal":void 0,"aria-labelledby":F?.id,onMouseMove(){M.set("allowMouseEnter",!0),U.type==="menu"&&M.set("hoverEnabled",!1)},onClick(){M.select("hoverEnabled")&&M.set("hoverEnabled",!1)},onKeyDown(Ae){let xt=M.select("keyboardEventRelay");xt&&!Ae.isPropagationStopped()&&xt(Ae)}},K.floating,xe.floating,Ne.floating),[F,_,u,U.type,M,K.floating,xe.floating,Ne.floating]),Ke=xe.item??xn;kS(M,{floatingRootContext:me,activeTriggerProps:Y,inactiveTriggerProps:ye,popupProps:Re,itemProps:Ke});let mt=qi.useMemo(()=>({store:M,parent:v}),[M,v]),dt=(0,_x.jsxs)(aB.Provider,{value:mt,children:[m&&(0,_x.jsx)(gS,{handle:m,store:M}),typeof n=="function"?n({payload:j}):n]});return U.type===void 0||U.type==="context-menu"?(0,_x.jsx)(W6,{externalTree:A,children:dt}):dt});function ZHe(t,e,n){return Vn(()=>new pM(t,e,n)).current}var $1e=R(Q(),1);var fB=R(ee(),1);function I1e(t){let e=Lr().store,n=$1e.useMemo(()=>({parentMenu:e}),[e]);return(0,fB.jsx)(mB.Provider,{value:n,children:(0,fB.jsx)(hM,{...t})})}var Pa=R(Q(),1);var N1e=R(Q(),1);function P1e(t={}){let{highlightItemOnHover:e,highlightedIndex:n,onHighlightedIndexChange:r}=y2(),{ref:i,index:o}=tl(t),a=n===o,s=N1e.useRef(null),l=wa(i,s);return{compositeProps:{tabIndex:a?0:-1,onFocus(){r(o)},onMouseMove(){let u=s.current;if(!e||!u)return;let d=u.hasAttribute("disabled")||u.ariaDisabled==="true";!a&&!d&&u.focus()}},compositeRef:l,index:o}}function j1e(t){let{render:e,className:n,style:r,state:i=xn,props:o=Us,refs:a=Us,metadata:s,stateAttributesMapping:l,tag:c="div",...u}=t,{compositeProps:d,compositeRef:p}=P1e({metadata:s});return We(c,t,{state:i,ref:[p,...a],props:[d,...o,u],stateAttributesMapping:l})}function hB(t){if(Ln(t)&&t.hasAttribute("data-rootownerid"))return t.getAttribute("data-rootownerid");if(!Pl(t))return hB(Nl(t))}var gM=R(Q(),1);function O1e(t){let{enabled:e=!0,mouseDownAction:n,open:r}=t,i=gM.useRef(!1);return gM.useMemo(()=>e?{onMouseDown:o=>{(n==="open"&&!r||n==="close"&&r)&&(i.current=!0,Wt(o.currentTarget).addEventListener("click",()=>{i.current=!1},{once:!0}))},onClick:o=>{i.current&&(i.current=!1,o.preventBaseUIHandler())}}:xn,[e,n,r])}var G1=R(ee(),1),D1e=G_(function(e,n){let{render:r,className:i,style:o,disabled:a=!1,nativeButton:s=!0,id:l,openOnHover:c,delay:u=100,closeDelay:d=0,handle:p,payload:m,...f}=e,h=Lr(!0),g=SS(p)??h?.store;if(!g)throw new Error(Dt(85));let y=dr(l),b=g.useState("isTriggerActive",y),w=g.useState("floatingRootContext"),v=g.useState("isOpenedByTrigger",y),k=g.useState("triggerPopupId",y),_=Pa.useRef(null),L=KHe(),S=y2(!0),C=Ma(),T=Pa.useMemo(()=>C??new _1,[C]),M=K0(T),A=as(),{registerTrigger:$,isMountedByThisTrigger:N}=xS(y,_,g,{payload:m,closeDelay:d,parent:L,floatingTreeRoot:T,floatingNodeId:M,floatingParentNodeId:A,keyboardEventRelay:S?.relayKeyboardEvent}),F=L.type==="menubar",D=g.useState("disabled"),O=a||D||F&&L.context.disabled,{getButtonProps:B,buttonRef:P}=zi({disabled:O,native:s});Pa.useEffect(()=>{!v&&L.type===void 0&&(g.context.allowMouseUpTriggerRef.current=!1)},[g,v,L.type]);let U=Pa.useRef(null),G=Br(),j=Pe(Le=>{if(!U.current)return;G.clear(),g.context.allowMouseUpTriggerRef.current=!1;let Ne=Le.target;ot(U.current,Ne)||ot(g.select("positionerElement"),Ne)||Ne===U.current||Ne!=null&&hB(Ne)===g.select("rootId")||AL(Le,U.current)||T.events.emit("close",{domEvent:Le,reason:he.cancelOpen})});Pa.useEffect(()=>{v&&g.select("lastOpenChangeReason")===he.triggerHover&&Wt(U.current).addEventListener("mouseup",j,{once:!0})},[v,j,g]);let V=F&&L.context.hasSubmenuOpen,ne=eg(w,{enabled:(c??V)&&!O&&(!F||V&&!N),handleClose:ng({blockPointerEvents:!F}),mouseOnly:!0,move:!1,restMs:L.type===void 0?u:void 0,delay:{close:d},triggerElementRef:_,externalTree:T,isActiveTrigger:b,isClosing:()=>g.select("transitionStatus")==="ending"}),J=WHe(v,g.select("lastOpenChangeReason")),W=$u(w,{enabled:!O,event:v&&F?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:L.type===void 0?J:!1}),ie=VD(w,{enabled:!O&&V}),Z=O1e({open:v,enabled:F,mouseDownAction:"open"}),ce=Pa.useMemo(()=>Bi(ie.reference,W.reference),[ie.reference,W.reference]),se=g.useState("triggerProps",N),{preFocusGuardRef:be,handlePreFocusGuardFocus:le,handleFocusTargetFocus:ge}=OS(g,_),ke={disabled:O,open:v},me=[U,n,P,$,_],Se=[ce,ne??xn,se,{"aria-haspopup":"menu","aria-controls":k,id:y,onMouseDown:Le=>{if(g.select("open"))return;G.start(200,()=>{g.context.allowMouseUpTriggerRef.current=!0}),Wt(Le.currentTarget).addEventListener("mouseup",j,{once:!0})}},F?{role:"menuitem"}:{},Z,f,B],de=We("button",e,{enabled:!F,stateAttributesMapping:q0,state:ke,ref:me,props:Se});return F?(0,G1.jsx)(j1e,{tag:"button",render:r,className:i,style:o,state:ke,refs:me,props:Se,stateAttributesMapping:q0}):v?(0,G1.jsxs)(Pa.Fragment,{children:[(0,G1.jsx)(Bc,{ref:be,onFocus:le},`${y}-pre-focus-guard`),(0,G1.jsx)(Pa.Fragment,{children:de},y),(0,G1.jsx)(Bc,{ref:g.context.triggerFocusTargetRef,onFocus:ge},`${y}-post-focus-guard`)]}):(0,G1.jsx)(Pa.Fragment,{children:de},y)});function WHe(t,e){let n=Br(),[r,i]=Pa.useState(!1);return Ee(()=>{t&&e===he.triggerHover?(i(!0),n.start(500,()=>{i(!1)})):t||(n.clear(),i(!1))},[t,e,n]),r}function KHe(){let t=dM(!0);return Pa.useMemo(()=>t?{type:"menubar",context:t}:{type:void 0},[t])}var F1e=R(Q(),1);var B1e=F1e.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,{store:l}=Lr(),{side:c}=Na(),u=l.useState("instantType"),{children:d,state:p}=JS({store:l,side:c,children:a}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return We("div",e,{state:m,ref:n,props:[s,{children:d}],stateAttributesMapping:QS})});var z1e=R(Q(),1);var q1e=z1e.forwardRef(function(e,n){let{className:r,render:i,orientation:o="horizontal",style:a,...s}=e;return We("div",e,{state:{orientation:o},ref:n,props:[{role:"separator","aria-orientation":o},s]})});var bm=R(Q(),1);var XHe={"aria-expanded":void 0},H1e=bm.forwardRef(function(e,n){let{render:r,className:i,style:o,label:a,id:s,nativeButton:l=!1,openOnHover:c=!0,delay:u=100,closeDelay:d=0,disabled:p=!1,...m}=e,f=fM();if(!f?.parentMenu)throw new Error(Dt(37));let h=tl({guess:!0,label:a}),x=Na(),{store:g}=Lr(),y=dr(s),b=g.useState("open"),w=g.useState("floatingRootContext"),v=g.useState("floatingTreeRoot"),k=g.useState("triggerPopupId",y),_=zD(y,g),L=Pe(ce=>{_(ce),ce!==null&&g.select("open")&&g.select("activeTriggerId")==null&&g.update({activeTriggerId:y??null,activeTriggerElement:ce,closeDelay:d})}),S=bm.useRef(null),C=bm.useCallback(ce=>{S.current=ce,g.set("activeTriggerElement",ce)},[g]);Ee(()=>(L(S.current),()=>L(null)),[L,y,g]),g.useSyncedValue("closeDelay",d);let T=f.parentMenu,M=g.useState("disabled"),A=T.useState("disabled"),$=p||M||A,N=T.useState("itemProps"),F=T.useState("isActive",h.index),D=bm.useMemo(()=>({type:"submenu-trigger",setActive(){T.select("highlightItemOnHover")&&T.set("activeIndex",h.index)}}),[T,h.index]),{getItemProps:O,itemRef:B}=z1({closeOnClick:!1,disabled:$,highlighted:F,id:y,store:g,typingRef:T.context.typingRef,nativeButton:l,itemMetadata:D,nodeId:x?.context.nodeId}),P=g.useState("hoverEnabled"),U=eg(w,{enabled:P&&c&&!$,handleClose:ng({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:u,delay:{open:u,close:d},shouldOpen:u>0?()=>T.select("allowMouseEnter"):void 0,triggerElementRef:S,externalTree:v,isClosing:()=>g.select("transitionStatus")==="ending",guardStaleOpen:!0}),j=$u(w,{enabled:!$,event:"mousedown",toggle:!c,ignoreMouse:c,stickIfOpen:!1}).reference??xn,V=g.useState("triggerProps",!0);delete V.id;let H={disabled:$,highlighted:F,open:b},ne=g.useState("openMethod"),W=g.useState("lastOpenChangeReason")===he.listNavigation||ne==="keyboard",ie=b&&W&&Nn.screenReader.voiceOver;return We("div",e,{state:H,stateAttributesMapping:F2,props:[j,U,V,N,ie?XHe:void 0,{"aria-controls":k,tabIndex:b||F?0:-1,onBlur(){F&&T.set("activeIndex",null)}},m,O],ref:[n,h.ref,B,L,C]})});var Sx=class extends G2{constructor(){super(T1e(),"Menu")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function G1e(){return new Sx}var ao=R(ee(),1),U1e=4,bM=(0,Zc.createContext)(null);function cg(t){let e=(0,ym.c)(12),{open:n,onOpenChange:r,children:i}=t,[o,a]=(0,Zc.useState)(n??!1),s=(0,Zc.useRef)(null),l=(0,Zc.useRef)(null),c=n??o,u;e[0]!==r||e[1]!==n?(u=x=>{n===void 0&&a(x),r?.(x)},e[0]=r,e[1]=n,e[2]=u):u=e[2];let d=u,p;e[3]!==d?(p={beginPointer(x){if(x.pointerType!=="mouse"||x.button!==0)return;s.current={pointerId:x.pointerId,x:x.clientX,y:x.clientY,moved:!1,handled:!1},d(!0),l.current?.();let g=x.currentTarget.ownerDocument,y=v=>{if(v.pointerId!==x.pointerId)return;let k=s.current;if(!k||(k.moved||(k.moved=Math.hypot(v.clientX-k.x,v.clientY-k.y)>=U1e),!k.moved))return;g.elementFromPoint?.(v.clientX,v.clientY)?.closest('[role^="menuitem"]')?.focus({preventScroll:!0})},b=v=>{if(v.pointerId!==x.pointerId)return;let k=s.current,_=g.elementFromPoint?.(v.clientX,v.clientY);if(l.current?.(),l.current=null,k?.moved&&_ instanceof HTMLElement&&_.closest('[role^="menuitem"]')){let L=_.closest('[role^="menuitem"]');L&&!L.matches('[aria-disabled="true"]')&&L.click(),d(!1)}s.current=null},w=()=>{l.current?.(),l.current=null,s.current=null};g.addEventListener("pointermove",y,!0),g.addEventListener("pointerup",b,!0),g.addEventListener("pointercancel",w,!0),l.current=()=>{g.removeEventListener("pointermove",y,!0),g.removeEventListener("pointerup",b,!0),g.removeEventListener("pointercancel",w,!0)}},movePointer(x){let g=s.current;!g||g.pointerId!==x.pointerId||g.moved||(g.moved=Math.hypot(x.clientX-g.x,x.clientY-g.y)>=U1e)},activatePointer(x,g){let y=s.current;return!y||y.pointerId!==x.pointerId||!y.moved?!1:(y.handled||(y.handled=!0,g(),d(!1)),!0)},endPointer(){}},e[3]=d,e[4]=p):p=e[4];let m=p,f;e[5]!==i||e[6]!==c||e[7]!==d?(f=(0,ao.jsx)(cs.Root,{modal:!1,open:c,onOpenChange:d,children:i}),e[5]=i,e[6]=c,e[7]=d,e[8]=f):f=e[8];let h;return e[9]!==m||e[10]!==f?(h=(0,ao.jsx)(bM,{value:m,children:f}),e[9]=m,e[10]=f,e[11]=h):h=e[11],h}function ug(t){let e=(0,ym.c)(12),{className:n,label:r,disabled:i,"aria-haspopup":o,"aria-labelledby":a,children:s}=t,l=(0,Zc.use)(bM),c;e[0]!==n?(c=Zs("ui-button",n),e[0]=n,e[1]=c):c=e[1];let u;e[2]!==l?(u=p=>{l?.beginPointer(p),p.pointerType==="mouse"&&p.button===0&&p.preventDefault()},e[2]=l,e[3]=u):u=e[3];let d;return e[4]!==o||e[5]!==a||e[6]!==s||e[7]!==i||e[8]!==r||e[9]!==c||e[10]!==u?(d=(0,ao.jsx)(cs.Trigger,{className:c,"aria-label":r,"aria-labelledby":a,"aria-haspopup":o,disabled:i,onPointerDown:u,onClick:YHe,children:s}),e[4]=o,e[5]=a,e[6]=s,e[7]=i,e[8]=r,e[9]=c,e[10]=u,e[11]=d):d=e[11],d}function YHe(t){t.detail>0&&t.preventDefault()}function U1(t){let e=(0,ym.c)(12),{className:n,side:r,align:i,children:o}=t,a=r===void 0?"bottom":r,s=i===void 0?"start":i,l=iy(),c;e[0]!==n?(c=Zs("ui-popup ui-menu",n),e[0]=n,e[1]=c):c=e[1];let u;e[2]!==o||e[3]!==c?(u=(0,ao.jsx)(cs.Popup,{className:c,children:o}),e[2]=o,e[3]=c,e[4]=u):u=e[4];let d;e[5]!==s||e[6]!==a||e[7]!==u?(d=(0,ao.jsx)(cs.Positioner,{className:"ui-positioner",side:a,align:s,sideOffset:T6,children:u}),e[5]=s,e[6]=a,e[7]=u,e[8]=d):d=e[8];let p;return e[9]!==l||e[10]!==d?(p=(0,ao.jsx)(cs.Portal,{container:l,children:d}),e[9]=l,e[10]=d,e[11]=p):p=e[11],p}function jd(t){let e=(0,ym.c)(20),{className:n,disabled:r,shortcut:i,onSelect:o,children:a}=t,s=(0,Zc.use)(bM),l=(0,Zc.useRef)(!1),c;e[0]!==n?(c=Zs("ui-menu-item",n),e[0]=n,e[1]=c):c=e[1];let u;e[2]!==s?(u=h=>s?.movePointer(h),e[2]=s,e[3]=u):u=e[3];let d;e[4]!==s||e[5]!==r||e[6]!==o?(d=h=>{r||(s?.activatePointer(h,()=>o?.())&&(l.current=!0,h.preventDefault()),s?.endPointer())},e[4]=s,e[5]=r,e[6]=o,e[7]=d):d=e[7];let p;e[8]!==o?(p=()=>{if(l.current){l.current=!1;return}o?.()},e[8]=o,e[9]=p):p=e[9];let m;e[10]!==i?(m=i?(0,ao.jsx)("span",{className:"ui-menu-shortcut",children:i}):null,e[10]=i,e[11]=m):m=e[11];let f;return e[12]!==a||e[13]!==r||e[14]!==c||e[15]!==u||e[16]!==d||e[17]!==p||e[18]!==m?(f=(0,ao.jsxs)(cs.Item,{className:c,disabled:r,onPointerMove:u,onPointerUp:d,onClick:p,children:[a,m]}),e[12]=a,e[13]=r,e[14]=c,e[15]=u,e[16]=d,e[17]=p,e[18]=m,e[19]=f):f=e[19],f}function gB(t){let e=(0,ym.c)(6),{value:n,onValueChange:r,children:i}=t,o;e[0]!==r?(o=s=>r(String(s)),e[0]=r,e[1]=o):o=e[1];let a;return e[2]!==i||e[3]!==o||e[4]!==n?(a=(0,ao.jsx)(cs.RadioGroup,{value:n,onValueChange:o,children:i}),e[2]=i,e[3]=o,e[4]=n,e[5]=a):a=e[5],a}function bB(t){let e=(0,ym.c)(18),{value:n,className:r,disabled:i,shortcut:o,children:a}=t,s=(0,Zc.use)(bM),l;e[0]!==r?(l=Zs("ui-menu-item",r),e[0]=r,e[1]=l):l=e[1];let c;e[2]!==s?(c=f=>s?.movePointer(f),e[2]=s,e[3]=c):c=e[3];let u;e[4]!==s||e[5]!==i?(u=f=>{i||(s?.activatePointer(f,()=>f.currentTarget.click())&&f.preventDefault(),s?.endPointer())},e[4]=s,e[5]=i,e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,ao.jsx)("span",{className:"ui-menu-check","aria-hidden":"true",children:(0,ao.jsx)(cs.RadioItemIndicator,{children:"\u2713"})}),e[7]=d):d=e[7];let p;e[8]!==o?(p=o?(0,ao.jsx)("span",{className:"ui-menu-shortcut",children:o}):null,e[8]=o,e[9]=p):p=e[9];let m;return e[10]!==a||e[11]!==i||e[12]!==l||e[13]!==c||e[14]!==u||e[15]!==p||e[16]!==n?(m=(0,ao.jsxs)(cs.RadioItem,{className:l,value:n,disabled:i,onPointerMove:c,onPointerUp:u,children:[d,a,p]}),e[10]=a,e[11]=i,e[12]=l,e[13]=c,e[14]=u,e[15]=p,e[16]=n,e[17]=m):m=e[17],m}function yy(){let t=(0,ym.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ao.jsx)(cs.Separator,{className:"ui-separator"}),t[0]=e):e=t[0],e}function V1e(t){let e=(0,ym.c)(13),{label:n,className:r,popupClassName:i,disabled:o,children:a}=t,s;e[0]!==r?(s=Zs("ui-menu-item ui-submenu-trigger",r),e[0]=r,e[1]=s):s=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,ao.jsx)("span",{className:"ui-submenu-chevron","aria-hidden":"true"}),e[2]=l):l=e[2];let c;e[3]!==o||e[4]!==n||e[5]!==s?(c=(0,ao.jsxs)(cs.SubmenuTrigger,{className:s,disabled:o,children:[n,l]}),e[3]=o,e[4]=n,e[5]=s,e[6]=c):c=e[6];let u;e[7]!==a||e[8]!==i?(u=(0,ao.jsx)(U1,{side:"inline-end",align:"start",className:i,children:a}),e[7]=a,e[8]=i,e[9]=u):u=e[9];let d;return e[10]!==c||e[11]!==u?(d=(0,ao.jsxs)(cs.SubmenuRoot,{children:[c,u]}),e[10]=c,e[11]=u,e[12]=d):d=e[12],d}var qt=R(ee(),1),ju={computer:"composer.computer",folder:"composer.folder",local:"composer.thisMac",chooseComputer:"composer.chooseComputer",chooseFolder:"composer.chooseFolder",chooseFolderMenu:"composer.chooseFolderMenu",cloud:"composer.cloud"};function K1e(t){let e=(0,Lx.c)(61),{summary:n,sessions:r,peers:i,started:o,onProject:a,projectChoices:s,onBrowseProject:l,localName:c,movedTo:u,onMove:d,busy:p}=t,m;e[0]!==r?(m=r===void 0?[]:r,e[0]=r,e[1]=m):m=e[1];let f=m,h;e[2]!==i?(h=i===void 0?[]:i,e[2]=i,e[3]=h):h=e[3];let x=h,g=o===void 0?!1:o,y=p===void 0?!1:p,b;e[4]!==c||e[5]!==x||e[6]!==f||e[7]!==n?(b=eGe(n,f,x,c),e[4]=c,e[5]=x,e[6]=f,e[7]=n,e[8]=b):b=e[8];let w=b,v;e[9]!==n?(v=yB(n),e[9]=n,e[10]=v):v=e[10];let k=v,[_,L]=(0,Ul.useState)(k),S;e[11]!==k?(S=()=>L(k),e[11]=k,e[12]=S):S=e[12];let C=n?.sessionId,T;e[13]!==k||e[14]!==C?(T=[C,k],e[13]=k,e[14]=C,e[15]=T):T=e[15],(0,Ul.useEffect)(S,T);let M;if(e[16]!==s||e[17]!==_||e[18]!==f||e[19]!==n){e:{let W=Z1e(n,f,_);if(_!=="local"||!s){M=W;break e}let ie=s.map(JHe),Z=new Set(ie.map(QHe));M=[...ie,...W.filter(ce=>!Z.has(ce.id))]}e[16]=s,e[17]=_,e[18]=f,e[19]=n,e[20]=M}else M=e[20];let A=M,$;e[21]!==A||e[22]!==u||e[23]!==s||e[24]!==_||e[25]!==g||e[26]!==n?($=g&&u?u:n?.cwd&&yB(n)===_?wB(n.cwd):s?void 0:A[0]?.id,e[21]=A,e[22]=u,e[23]=s,e[24]=_,e[25]=g,e[26]=n,e[27]=$):$=e[27];let N=$,F;e[28]!==w||e[29]!==_?(F=w.find(W=>W.id===_)??w[0],e[28]=w,e[29]=_,e[30]=F):F=e[30];let D=F;if(!D&&!N&&!s)return null;let O=g||a===void 0,B=g&&d!==void 0&&!y,P=O?"true":void 0,U;e[31]===Symbol.for("react.memo_cache_sentinel")?(U=ve(ju.computer),e[31]=U):U=e[31];let G;e[32]!==D?.label?(G=D?.label??ve(ju.chooseComputer),e[32]=D?.label,e[33]=G):G=e[33];let j;e[34]!==a||e[35]!==O||e[36]!==_||e[37]!==f||e[38]!==n?(j=W=>{if(!O&&W!==_){L(W);let ie=Z1e(n,f,W)[0]?.id;ie&&a?.(ie,W==="local"?void 0:W)}},e[34]=a,e[35]=O,e[36]=_,e[37]=f,e[38]=n,e[39]=j):j=e[39];let V;e[40]!==w||e[41]!==O||e[42]!==_||e[43]!==G||e[44]!==j?(V=(0,qt.jsx)(W1e,{label:U,menu:"Computer",value:G,options:w,selected:_,disabled:O,onPick:j}),e[40]=w,e[41]=O,e[42]=_,e[43]=G,e[44]=j,e[45]=V):V=e[45];let H;e[46]===Symbol.for("react.memo_cache_sentinel")?(H=(0,qt.jsx)("span",{className:"acpmux-context-divider","aria-hidden":"true",children:"\xB7"}),e[46]=H):H=e[46];let ne;e[47]!==N||e[48]!==A||e[49]!==B||e[50]!==l||e[51]!==d||e[52]!==a||e[53]!==s||e[54]!==O||e[55]!==_?(ne=!O&&_==="local"&&s?(0,qt.jsx)(tGe,{label:ve(ju.folder),menu:"Location",folders:A,current:N,onPick:W=>a?.(W),onBrowse:l}):(0,qt.jsx)(W1e,{label:ve(ju.folder),menu:"Location",value:N?wi(N):ve(ju.chooseFolder),options:A,selected:N,disabled:O&&!B,icon:(0,qt.jsx)(X1e,{}),allowPath:!0,onPick:W=>{B?W!==N&&d?.(W):O||a?.(W,_==="local"?void 0:_)}}),e[47]=N,e[48]=A,e[49]=B,e[50]=l,e[51]=d,e[52]=a,e[53]=s,e[54]=O,e[55]=_,e[56]=ne):ne=e[56];let J;return e[57]!==P||e[58]!==V||e[59]!==ne?(J=(0,qt.jsxs)("div",{className:"acpmux-composer-context","data-readonly":P,children:[V,H,ne]}),e[57]=P,e[58]=V,e[59]=ne,e[60]=J):J=e[60],J}function QHe(t){return t.id}function JHe(t){return{id:wB(t.cwd),label:t.label,detail:t.cwd}}function yB(t){return t?.hostKind==="cloud"&&(t.peer||t.host)?t.peer??t.host:"local"}function eGe(t,e,n,r){let o=[{id:"local",label:r||(t?.hostKind==="local"&&t.host?t.host:ve(ju.local))}],a=new Set;for(let l of n)a.has(l)||(a.add(l),o.push({id:l,label:l,detail:ve(ju.cloud)}));for(let l of e){let c=l.peer??(l.hostKind==="cloud"?l.host:void 0);!c||a.has(c)||(a.add(c),o.push({id:c,label:l.host??c,detail:ve(ju.cloud)}))}let s=t?.hostKind==="cloud"?t.peer??t.host:void 0;return s&&!a.has(s)&&o.push({id:s,label:t?.host??s,detail:ve(ju.cloud)}),o}function Z1e(t,e,n){let r=new Set,i=[],o=a=>{let s=wB(a);!s||r.has(s)||(r.add(s),i.push({id:s,label:wi(s),detail:s}))};t&&yB(t)===n&&o(t.cwd);for(let a of e)(a.peer??(a.hostKind==="cloud"?a.host:"local"))===n&&o(a.cwd);return i}function wB(t){return t?t.replace(/\/+$/,"")||(t.startsWith("/")?"/":t):void 0}function xB(t){let e=(0,Lx.c)(8),{icon:n,value:r,chevron:i}=t,o;e[0]!==r?(o=(0,qt.jsx)("span",{className:"acpmux-location-label",children:r}),e[0]=r,e[1]=o):o=e[1];let a;e[2]!==i?(a=i&&(0,qt.jsx)(x1,{}),e[2]=i,e[3]=a):a=e[3];let s;return e[4]!==n||e[5]!==o||e[6]!==a?(s=(0,qt.jsxs)(qt.Fragment,{children:[n,o,a]}),e[4]=n,e[5]=o,e[6]=a,e[7]=s):s=e[7],s}function X1e(){let t=(0,Lx.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,qt.jsx)("svg",{className:"acpmux-icon acpmux-location-icon",width:14,height:14,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:(0,qt.jsx)("path",{d:"M1.9 4.6c0-.8.6-1.4 1.4-1.4h2.6l1.5 1.6h5.3c.8 0 1.4.6 1.4 1.4v5.6c0 .8-.6 1.4-1.4 1.4H3.3c-.8 0-1.4-.6-1.4-1.4Z"})}),t[0]=e):e=t[0],e}function Y1e(t,e){let n=(0,Ul.useRef)(e);n.current=e,(0,Ul.useEffect)(()=>{if(t)return Xs(t,()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n.current()})},[t])}function tGe(t){let e=(0,Lx.c)(26),{label:n,menu:r,folders:i,current:o,onPick:a,onBrowse:s}=t,[l,c]=(0,Ul.useState)(!1),u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(!0),e[0]=u):u=e[0],Y1e(r,u);let d;e[1]!==o?(d=o?wi(o):ve(ju.chooseFolder),e[1]=o,e[2]=d):d=e[2];let p=d,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,qt.jsx)(X1e,{}),e[3]=m):m=e[3];let f;e[4]!==p?(f=(0,qt.jsx)(xB,{icon:m,value:p,chevron:!0}),e[4]=p,e[5]=f):f=e[5];let h;e[6]!==n||e[7]!==f?(h=(0,qt.jsx)(ug,{className:"acpmux-location-button",label:n,children:f}),e[6]=n,e[7]=f,e[8]=h):h=e[8];let x;e[9]!==o||e[10]!==i||e[11]!==s||e[12]!==a?(x=i.length>0&&(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)("div",{className:"acpmux-location-folders",children:(0,qt.jsx)(gB,{value:o??"",onValueChange:v=>{c(!1),v!==o&&a(v)},children:i.map(nGe)})}),s&&(0,qt.jsx)(yy,{})]}),e[9]=o,e[10]=i,e[11]=s,e[12]=a,e[13]=x):x=e[13];let g;e[14]!==s?(g=s&&(0,qt.jsxs)(jd,{className:"acpmux-menu-item acpmux-location-choose",onSelect:()=>{c(!1),s()},children:[(0,qt.jsx)("span",{className:"ui-menu-check","aria-hidden":"true"}),(0,qt.jsx)("span",{className:"acpmux-menu-label",children:ve(ju.chooseFolderMenu)})]}),e[14]=s,e[15]=g):g=e[15];let y;e[16]!==x||e[17]!==g?(y=(0,qt.jsxs)(U1,{className:"acpmux-menu acpmux-location-menu",align:"end",children:[x,g]}),e[16]=x,e[17]=g,e[18]=y):y=e[18];let b;e[19]!==l||e[20]!==h||e[21]!==y?(b=(0,qt.jsxs)(cg,{open:l,onOpenChange:c,children:[h,y]}),e[19]=l,e[20]=h,e[21]=y,e[22]=b):b=e[22];let w;return e[23]!==o||e[24]!==b?(w=(0,qt.jsx)("span",{className:"acpmux-location-picker",title:o,children:b}),e[23]=o,e[24]=b,e[25]=w):w=e[25],w}function nGe(t){return(0,qt.jsx)(bB,{value:t.id,className:"acpmux-menu-item",children:(0,qt.jsxs)("span",{className:"acpmux-menu-text",title:t.id,children:[(0,qt.jsx)("span",{className:"acpmux-menu-label",children:t.label}),(0,qt.jsx)("span",{className:"acpmux-menu-description",children:t.detail??t.id})]})},t.id)}function W1e({label:t,menu:e,value:n,options:r,selected:i,disabled:o,icon:a,allowPath:s=!1,onPick:l}){let[c,u]=(0,Ul.useState)(!1),[d,p]=(0,Ul.useState)(""),m=(0,Ul.useRef)(null);Y1e(o?void 0:e,()=>u(!0));let f=(0,Ul.useMemo)(()=>{let b=d.trim().toLowerCase().split(/\s+/).filter(Boolean);return r.filter(w=>b.every(v=>(w.label+" "+(w.detail??"")).toLowerCase().includes(v)))},[r,d]);if(o)return(0,qt.jsx)("span",{className:"acpmux-location-picker",children:(0,qt.jsx)("span",{className:"acpmux-location-readonly","aria-label":t+": "+n,title:t+": "+(s&&i?i:n),children:(0,qt.jsx)(xB,{icon:a,value:n,chevron:!1})})});let h=b=>{l(b),u(!1),p("")},x=(0,qt.jsx)(xB,{icon:a,value:n,chevron:!0});if(!s)return(0,qt.jsx)("span",{className:"acpmux-location-picker",children:(0,qt.jsxs)(cg,{open:c,onOpenChange:u,children:[(0,qt.jsx)(ug,{className:"acpmux-location-button",label:t,children:x}),(0,qt.jsx)(U1,{className:"acpmux-menu acpmux-location-menu",align:"start",children:(0,qt.jsx)(gB,{value:i??"",onValueChange:h,children:r.map(b=>(0,qt.jsx)(bB,{value:b.id,className:"acpmux-menu-item",children:(0,qt.jsxs)("span",{className:"acpmux-menu-text",children:[(0,qt.jsx)("span",{className:"acpmux-menu-label",children:b.label}),b.detail&&(0,qt.jsx)("span",{className:"acpmux-menu-description",children:b.detail})]})},b.id))})})]})});let g=/^(?:\/|~\/)/.test(d.trim())?d.trim():void 0,y=f.map(b=>b.id);return g&&!y.includes(g)&&y.push(g),(0,qt.jsxs)("span",{className:"acpmux-location-picker",title:i,children:[(0,qt.jsx)("button",{ref:m,type:"button",className:"acpmux-location-button","aria-label":t,"aria-haspopup":"dialog","aria-expanded":c,onClick:()=>u(!c),children:x}),(0,qt.jsx)(oy,{open:c,onOpenChange:b=>{u(b),b||p("")},anchor:c?m.current:null,label:t,className:"acpmux-menu acpmux-location-menu",children:(0,qt.jsx)(Xfe,{suggestions:y,onQuery:p,onSubmit:b=>b?h(b):u(!1),onCancel:()=>u(!1),label:t,placeholder:n,inputClassName:"acpmux-location-search",itemClassName:"acpmux-menu-item",renderItem:b=>{let w=r.find(v=>v.id===b);return(0,qt.jsxs)("span",{className:"acpmux-menu-text",children:[(0,qt.jsx)("span",{className:"acpmux-menu-label",children:w?.label??b}),w?.detail&&(0,qt.jsx)("span",{className:"acpmux-menu-description",children:w.detail})]})},inline:!0})})]})}var nl=R(Q(),1);var Ou=R(ee(),1),rGe=80;function J1e({search:t,onPick:e,onClose:n,debounceMs:r=rGe}){let i=we(),[o,a]=(0,nl.useState)(""),[s,l]=(0,nl.useState)({kind:"idle"}),[c,u]=(0,nl.useState)(0),d=(0,nl.useRef)(null),p=(0,nl.useRef)(null),m=(0,nl.useId)(),f=(0,nl.useRef)(0);(0,nl.useEffect)(()=>{d.current?.focus();let v=_=>{p.current?.contains(_.target)||h.current()};document.addEventListener("pointerdown",v);let k=f;return()=>{document.removeEventListener("pointerdown",v),k.current++}},[]);let h=(0,nl.useRef)(n);h.current=n,(0,nl.useEffect)(()=>{let v=++f.current,k=o.trim();if(!k){l({kind:"idle"});return}l(L=>({kind:"searching",results:L.kind==="done"||L.kind==="searching"?L.results:[]}));let _=setTimeout(()=>{t(k).then(L=>{if(v!==f.current)return;let S=Wpe(L);l(S?{kind:"done",results:S.results,truncated:!!S.truncated}:{kind:"failed"}),u(0)},L=>{v===f.current&&l({kind:"failed",outside:Zpe(L)===fL})})},r);return()=>clearTimeout(_)},[o,t,r]);let x=s.kind==="done"||s.kind==="searching"?s.results:[],g=Math.min(c,Math.max(x.length-1,0)),y=v=>{v&&e(v.path)},b=v=>{v.nativeEvent.isComposing||v.keyCode===229||(v.key==="Escape"?(v.preventDefault(),v.stopPropagation(),n()):v.key==="ArrowDown"||v.key==="ArrowUp"?(v.preventDefault(),x.length>0&&u((g+(v.key==="ArrowDown"?1:-1)+x.length)%x.length)):v.key==="Enter"?(v.preventDefault(),y(x[g])):v.key==="Tab"&&(v.preventDefault(),n()))},w=s.kind==="idle"?i("files.hint"):s.kind==="failed"?s.outside?i("files.outside"):i("files.failed"):s.kind==="searching"&&x.length===0?i("files.searching"):s.kind==="done"&&x.length===0?i("files.none"):void 0;return(0,Ou.jsxs)("dialog",{ref:p,open:!0,className:"acpmux-file-search","aria-label":i("files.search"),children:[(0,Ou.jsx)("input",{ref:d,type:"text",role:"combobox","aria-label":i("files.search"),"aria-expanded":x.length>0,"aria-controls":m,"aria-autocomplete":"list","aria-activedescendant":x.length>0?`${m}-${g}`:void 0,placeholder:i("files.search"),value:o,spellCheck:!1,autoComplete:"off",onChange:v=>{a(v.target.value),u(0)},onKeyDown:b}),(0,Ou.jsx)("div",{id:m,role:"listbox","aria-label":i("files.search"),"aria-busy":s.kind==="searching",children:x.map((v,k)=>{let{dir:_,name:L}=Kpe(v.path,v.matches);return(0,Ou.jsxs)("div",{id:`${m}-${k}`,role:"option",tabIndex:-1,"aria-selected":k===g,className:`acpmux-file-result${k===g?" acpmux-menu-active":""}`,title:v.path,onPointerMove:()=>u(k),onMouseDown:S=>{S.preventDefault(),y(v)},children:[(0,Ou.jsx)("span",{className:"acpmux-file-name",children:Q1e(L)}),_.length>0&&(0,Ou.jsx)("span",{className:"acpmux-file-dir",children:Q1e(_)})]},v.path)})}),w&&(0,Ou.jsx)("output",{className:"acpmux-file-note",children:w}),s.kind==="done"&&s.truncated&&x.length>0&&(0,Ou.jsx)("output",{className:"acpmux-file-note",children:i("files.more",{count:x.length})})]})}function Q1e(t){return t.map((e,n)=>e.matched?(0,Ou.jsx)("b",{children:e.text},n):e.text)}var ii=R(Q(),1);var Vl=(function(t){return t.docTypeError="docTypeError",t.contextNotFound="contextNotFound",t.timerNotFound="timerNotFound",t.ctxCallOutOfScope="ctxCallOutOfScope",t.createNodeInParserFail="createNodeInParserFail",t.stackOverFlow="stackOverFlow",t.parserMatchError="parserMatchError",t.serializerMatchError="serializerMatchError",t.getAtomFromSchemaFail="getAtomFromSchemaFail",t.expectDomTypeError="expectDomTypeError",t.callCommandBeforeEditorView="callCommandBeforeEditorView",t.missingRootElement="missingRootElement",t.missingNodeInSchema="missingNodeInSchema",t.missingMarkInSchema="missingMarkInSchema",t.ctxNotBind="ctxNotBind",t.missingYjsDoc="missingYjsDoc",t.aiProviderError="aiProviderError",t.aiBuildContextError="aiBuildContextError",t})({}),Zl=class extends Error{constructor(t,e,n){super(e,n),this.name="MilkdownError",this.code=t,n?.cause!==void 0&&(this.cause=n.cause)}},iGe=(t,e)=>typeof e=="function"?"[Function]":e,yM=t=>JSON.stringify(t,iGe);function ehe(t){return new Zl(Vl.docTypeError,`Doc type error, unsupported type: ${yM(t)}`)}function the(t){return new Zl(Vl.contextNotFound,`Context "${t}" not found, do you forget to inject it?`)}function nhe(t){return new Zl(Vl.timerNotFound,`Timer "${t}" not found, do you forget to record it?`)}function xy(){return new Zl(Vl.ctxCallOutOfScope,"Should not call a context out of the plugin.")}function rhe(t,e,n){let r=`Cannot create node for ${"name"in t?t.name:t}`,i=a=>{if(a==null)return"null";if(Array.isArray(a))return`[${a.map(i).join(", ")}]`;if(typeof a=="object")return"toJSON"in a&&typeof a.toJSON=="function"?JSON.stringify(a.toJSON()):"spec"in a?JSON.stringify(a.spec):JSON.stringify(a);if(typeof a=="string"||typeof a=="number"||typeof a=="boolean")return JSON.stringify(a);if(typeof a=="function")return`[Function: ${a.name||"anonymous"}]`;try{return String(a)}catch{return"[Unserializable]"}},o=[["[Description]",r],["[Attributes]",e],["[Content]",(n??[]).map(a=>a?typeof a=="object"&&"type"in a?`${a}`:i(a):"null")]].reduce((a,[s,l])=>{let c=`${s}: ${i(l)}.`;return a.concat(c)},[]);return new Zl(Vl.createNodeInParserFail,o.join(` -`))}function vB(){return new Zl(Vl.stackOverFlow,"Stack over flow, cannot pop on an empty stack.")}function ihe(t){return new Zl(Vl.parserMatchError,`Cannot match target parser for node: ${yM(t)}.`)}function ohe(t){return new Zl(Vl.serializerMatchError,`Cannot match target serializer for node: ${yM(t)}.`)}function ahe(t,e){return new Zl(Vl.getAtomFromSchemaFail,`Cannot get ${t}: ${e} from schema.`)}function Wl(t){return new Zl(Vl.expectDomTypeError,`Expect to be a dom, but get: ${yM(t)}.`)}function xM(){return new Zl(Vl.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized")}function she(t){return new Zl(Vl.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${t}" in schema.`)}function lhe(t){return new Zl(Vl.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${t}" in schema.`)}var kB=class{constructor(){this.sliceMap=new Map,this.get=t=>{let e=typeof t=="string"?[...this.sliceMap.values()].find(n=>n.type.name===t):this.sliceMap.get(t.id);if(!e){let n=typeof t=="string"?t:t.name;throw the(n)}return e},this.remove=t=>{let e=typeof t=="string"?[...this.sliceMap.values()].find(n=>n.type.name===t):this.sliceMap.get(t.id);e&&this.sliceMap.delete(e.type.id)},this.has=t=>typeof t=="string"?[...this.sliceMap.values()].some(e=>e.type.name===t):this.sliceMap.has(t.id)}},oGe=class{#e;#t;#n;constructor(t,e,n){this.#e=[],this.#n=()=>{this.#e.forEach(r=>r(this.#t))},this.set=r=>{this.#t=r,this.#n()},this.get=()=>this.#t,this.update=r=>{this.#t=r(this.#t),this.#n()},this.type=n,this.#t=e,t.set(n.id,this)}on(t){return this.#e.push(t),()=>{this.#e=this.#e.filter(e=>e!==t)}}once(t){let e=this.on(n=>{t(n),e()});return e}off(t){this.#e=this.#e.filter(e=>e!==t)}offAll(){this.#e=[]}},aGe=class{constructor(t,e){this.id=Symbol(`Context-${e}`),this.name=e,this._defaultValue=t,this._typeInfo=()=>{throw xy()}}create(t,e=this._defaultValue){return new oGe(t,e,this)}},Fn=(t,e)=>new aGe(t,e),sGe=class{#e;#t;#n;#r;#i;#o;#s;constructor(t,e,n){this.#r=new Set,this.#i=new Set,this.#o=new Map,this.#s=new Map,this.read=()=>({metadata:this.#e,injectedSlices:[...this.#r].map(r=>({name:typeof r=="string"?r:r.name,value:this.#c(r)})),consumedSlices:[...this.#i].map(r=>({name:typeof r=="string"?r:r.name,value:this.#c(r)})),recordedTimers:[...this.#o].map(([r,{duration:i}])=>({name:r.name,duration:i,status:this.#a(r)})),waitTimers:[...this.#s].map(([r,{duration:i}])=>({name:r.name,duration:i,status:this.#a(r)}))}),this.onRecord=r=>{this.#o.set(r,{start:Date.now(),duration:0})},this.onClear=r=>{this.#o.delete(r)},this.onDone=r=>{let i=this.#o.get(r);i&&(i.duration=Date.now()-i.start)},this.onWait=(r,i)=>{let o=Date.now();i.finally(()=>{this.#s.set(r,{duration:Date.now()-o})}).catch(console.error)},this.onInject=r=>{this.#r.add(r)},this.onRemove=r=>{this.#r.delete(r)},this.onUse=r=>{this.#i.add(r)},this.#c=r=>this.#t.get(r).get(),this.#a=r=>this.#n.get(r).status,this.#t=t,this.#n=e,this.#e=n}#c;#a},che=class uhe{#e;#t;#n;#r;constructor(e,n,r){this.produce=i=>i&&Object.keys(i).length?new uhe(this.#e,this.#t,{...i}):this,this.inject=(i,o)=>{let a=i.create(this.#e.sliceMap);return o!=null&&a.set(o),this.#r?.onInject(i),this},this.remove=i=>(this.#e.remove(i),this.#r?.onRemove(i),this),this.record=i=>(i.create(this.#t.store),this.#r?.onRecord(i),this),this.clearTimer=i=>(this.#t.remove(i),this.#r?.onClear(i),this),this.isInjected=i=>this.#e.has(i),this.isRecorded=i=>this.#t.has(i),this.use=i=>(this.#r?.onUse(i),this.#e.get(i)),this.get=i=>this.use(i).get(),this.set=(i,o)=>this.use(i).set(o),this.update=(i,o)=>this.use(i).update(o),this.timer=i=>this.#t.get(i),this.done=i=>{this.timer(i).done(),this.#r?.onDone(i)},this.wait=i=>{let o=this.timer(i).start();return this.#r?.onWait(i,o),o},this.waitTimers=async i=>{await Promise.all(this.get(i).map(o=>this.wait(o)))},this.#e=e,this.#t=n,this.#n=r,r&&(this.#r=new sGe(e,n,r))}get meta(){return this.#n}get inspector(){return this.#r}},dhe=class{constructor(){this.store=new Map,this.get=t=>{let e=this.store.get(t.id);if(!e)throw nhe(t.name);return e},this.remove=t=>{this.store.delete(t.id)},this.has=t=>this.store.has(t.id)}},lGe=class{#e;#t;#n;#r;#i;constructor(t,e){this.#e=null,this.#t=null,this.#r="pending",this.#i=null,this.start=()=>(this.#e??=new Promise((n,r)=>{this.#t=i=>{i instanceof CustomEvent&&i.detail.id===this.#n&&(this.#r="resolved",this.#o(),i.stopImmediatePropagation(),n())},this.#s(()=>{this.#r==="pending"&&(this.#r="rejected"),this.#o(),r(new Error(`Timing ${this.type.name} timeout.`))}),this.#r="pending",addEventListener(this.type.name,this.#t)}),this.#e),this.done=()=>{let n=new CustomEvent(this.type.name,{detail:{id:this.#n}});dispatchEvent(n)},this.#o=()=>{this.#i!==null&&(clearTimeout(this.#i),this.#i=null),this.#t&&removeEventListener(this.type.name,this.#t)},this.#s=n=>{this.#i=setTimeout(()=>{this.#i=null,n()},this.type.timeout)},this.#n=Symbol(e.name),this.type=e,t.set(e.id,this)}get status(){return this.#r}#o;#s},cGe=class{constructor(t,e=3e3){this.create=n=>new lGe(n,this),this.id=Symbol(`Timer-${t}`),this.name=t,this.timeout=e}},Wc=(t,e=3e3)=>new cGe(t,e);var uGe={};function dg(t,e){let n=e||uGe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mhe(t,r,i)}function mhe(t,e,n){if(dGe(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return phe(t.children,e,n)}return Array.isArray(t)?phe(t,e,n):""}function phe(t,e,n){let r=[],i=-1;for(;++i<t.length;)r[i]=mhe(t[i],e,n);return r.join("")}function dGe(t){return!!(t&&typeof t=="object")}var fhe=document.createElement("i");function wy(t){let e="&"+t+";";fhe.innerHTML=e;let n=fhe.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Hi(t,e,n,r){let i=t.length,o=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(e,0),t.splice(...a),o+=1e4,e+=1e4}function us(t,e){return t.length>0?(Hi(t,t.length,0,e),t):e}var hhe={}.hasOwnProperty;function wM(t){let e={},n=-1;for(;++n<t.length;)pGe(e,t[n]);return e}function pGe(t,e){let n;for(n in e){let i=(hhe.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n],a;if(o)for(a in o){hhe.call(i,a)||(i[a]=[]);let s=o[a];mGe(i[a],Array.isArray(s)?s:s?[s]:[])}}}function mGe(t,e){let n=-1,r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Hi(t,0,0,r)}function vM(t,e){let n=Number.parseInt(t,e);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?"\uFFFD":String.fromCodePoint(n)}function ja(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var wo=V1(/[A-Za-z]/),vo=V1(/[\dA-Za-z]/),ghe=V1(/[#-'*+\--9=?A-Z^-~]/);function pg(t){return t!==null&&(t<32||t===127)}var Mx=V1(/\d/),bhe=V1(/[\dA-Fa-f]/),yhe=V1(/[!-/:-@[-`{-~]/);function ct(t){return t!==null&&t<-2}function Pn(t){return t!==null&&(t<0||t===32)}function Zt(t){return t===-2||t===-1||t===32}var mg=V1(/\p{P}|\p{S}/u),Od=V1(/\s/);function V1(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Ft(t,e,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return a;function a(l){return Zt(l)?(t.enter(n),s(l)):e(l)}function s(l){return Zt(l)&&o++<i?(t.consume(l),s):(t.exit(n),e(l))}}var xhe={tokenize:fGe};function fGe(t){let e=t.attempt(this.parser.constructs.contentInitial,r,i),n;return e;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Ft(t,e,"linePrefix")}function i(s){return t.enter("paragraph"),o(s)}function o(s){let l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(s);return}return ct(s)?(t.consume(s),t.exit("chunkText"),o):(t.consume(s),a)}}var vhe={tokenize:hGe},whe={tokenize:gGe};function hGe(t){let e=this,n=[],r=0,i,o,a;return s;function s(b){if(r<n.length){let w=n[r];return e.containerState=w[1],t.attempt(w[0].continuation,l,c)(b)}return c(b)}function l(b){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&y();let w=e.events.length,v=w,k;for(;v--;)if(e.events[v][0]==="exit"&&e.events[v][1].type==="chunkFlow"){k=e.events[v][1].end;break}g(r);let _=w;for(;_<e.events.length;)e.events[_][1].end={...k},_++;return Hi(e.events,v+1,0,e.events.slice(w)),e.events.length=_,c(b)}return s(b)}function c(b){if(r===n.length){if(!i)return p(b);if(i.currentConstruct&&i.currentConstruct.concrete)return f(b);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(whe,u,d)(b)}function u(b){return i&&y(),g(r),p(b)}function d(b){return e.parser.lazy[e.now().line]=r!==n.length,a=e.now().offset,f(b)}function p(b){return e.containerState={},t.attempt(whe,m,f)(b)}function m(b){return r++,n.push([e.currentConstruct,e.containerState]),p(b)}function f(b){if(b===null){i&&y(),g(0),t.consume(b);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),h(b)}function h(b){if(b===null){x(t.exit("chunkFlow"),!0),g(0),t.consume(b);return}return ct(b)?(t.consume(b),x(t.exit("chunkFlow")),r=0,e.interrupt=void 0,s):(t.consume(b),h)}function x(b,w){let v=e.sliceStream(b);if(w&&v.push(null),b.previous=o,o&&(o.next=b),o=b,i.defineSkip(b.start),i.write(v),e.parser.lazy[b.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;let _=e.events.length,L=_,S,C;for(;L--;)if(e.events[L][0]==="exit"&&e.events[L][1].type==="chunkFlow"){if(S){C=e.events[L][1].end;break}S=!0}for(g(r),k=_;k<e.events.length;)e.events[k][1].end={...C},k++;Hi(e.events,L+1,0,e.events.slice(_)),e.events.length=k}}function g(b){let w=n.length;for(;w-- >b;){let v=n[w];e.containerState=v[1],v[0].exit.call(e,t)}n.length=b}function y(){i.write([null]),o=void 0,i=void 0,e.containerState._closeFlow=void 0}}function gGe(t,e,n){return Ft(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xm(t){if(t===null||Pn(t)||Od(t))return 1;if(mg(t))return 2}function Z1(t,e,n){let r=[],i=-1;for(;++i<t.length;){let o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}var Ex={name:"attention",resolveAll:bGe,tokenize:yGe};function bGe(t,e){let n=-1,r,i,o,a,s,l,c,u;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let d={...t[r][1].end},p={...t[n][1].start};khe(d,-l),khe(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...t[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},t[r][1].end={...a.start},t[n][1].start={...s.end},c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=us(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=us(c,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",o,e]]),c=us(c,Z1(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=us(c,[["exit",o,e],["enter",s,e],["exit",s,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(u=2,c=us(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):u=0,Hi(t,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function yGe(t,e){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xm(r),o;return a;function a(l){return o=l,t.enter("attentionSequence"),s(l)}function s(l){if(l===o)return t.consume(l),s;let c=t.exit("attentionSequence"),u=xm(l),d=!u||u===2&&i||n.includes(l),p=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!p)),c._close=!!(o===42?p:p&&(u||!d)),e(l)}}function khe(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var CB={name:"autolink",tokenize:xGe};function xGe(t,e,n){let r=0;return i;function i(m){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(m){return wo(m)?(t.consume(m),a):m===64?n(m):c(m)}function a(m){return m===43||m===45||m===46||vo(m)?(r=1,s(m)):c(m)}function s(m){return m===58?(t.consume(m),r=0,l):(m===43||m===45||m===46||vo(m))&&r++<32?(t.consume(m),s):(r=0,c(m))}function l(m){return m===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):m===null||m===32||m===60||pg(m)?n(m):(t.consume(m),l)}function c(m){return m===64?(t.consume(m),u):ghe(m)?(t.consume(m),c):n(m)}function u(m){return vo(m)?d(m):n(m)}function d(m){return m===46?(t.consume(m),r=0,u):m===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):p(m)}function p(m){if((m===45||vo(m))&&r++<63){let f=m===45?p:d;return t.consume(m),f}return n(m)}}var Dd={partial:!0,tokenize:wGe};function wGe(t,e,n){return r;function r(o){return Zt(o)?Ft(t,i,"linePrefix")(o):i(o)}function i(o){return o===null||ct(o)?e(o):n(o)}}var kM={continuation:{tokenize:kGe},exit:CGe,name:"blockQuote",tokenize:vGe};function vGe(t,e,n){let r=this;return i;function i(a){if(a===62){let s=r.containerState;return s.open||(t.enter("blockQuote",{_container:!0}),s.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Zt(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function kGe(t,e,n){let r=this;return i;function i(a){return Zt(a)?Ft(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return t.attempt(kM,e,n)(a)}}function CGe(t){t.exit("blockQuote")}var CM={name:"characterEscape",tokenize:_Ge};function _Ge(t,e,n){return r;function r(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return yhe(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}var _M={name:"characterReference",tokenize:SGe};function SGe(t,e,n){let r=this,i=0,o,a;return s;function s(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),l}function l(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),o=31,a=vo,u(d))}function c(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=bhe,u):(t.enter("characterReferenceValue"),o=7,a=Mx,u(d))}function u(d){if(d===59&&i){let p=t.exit("characterReferenceValue");return a===vo&&!wy(r.sliceSerialize(p))?n(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(d)&&i++<o?(t.consume(d),u):n(d)}}var Che={partial:!0,tokenize:MGe},SM={concrete:!0,name:"codeFenced",tokenize:LGe};function LGe(t,e,n){let r=this,i={partial:!0,tokenize:v},o=0,a=0,s;return l;function l(k){return c(k)}function c(k){let _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=k,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),u(k)}function u(k){return k===s?(a++,t.consume(k),u):a<3?n(k):(t.exit("codeFencedFenceSequence"),Zt(k)?Ft(t,d,"whitespace")(k):d(k))}function d(k){return k===null||ct(k)?(t.exit("codeFencedFence"),r.interrupt?e(k):t.check(Che,h,w)(k)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||ct(k)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),d(k)):Zt(k)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ft(t,m,"whitespace")(k)):k===96&&k===s?n(k):(t.consume(k),p)}function m(k){return k===null||ct(k)?d(k):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||ct(k)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),d(k)):k===96&&k===s?n(k):(t.consume(k),f)}function h(k){return t.attempt(i,w,x)(k)}function x(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),g}function g(k){return o>0&&Zt(k)?Ft(t,y,"linePrefix",o+1)(k):y(k)}function y(k){return k===null||ct(k)?t.check(Che,h,w)(k):(t.enter("codeFlowValue"),b(k))}function b(k){return k===null||ct(k)?(t.exit("codeFlowValue"),y(k)):(t.consume(k),b)}function w(k){return t.exit("codeFenced"),e(k)}function v(k,_,L){let S=0;return C;function C(N){return k.enter("lineEnding"),k.consume(N),k.exit("lineEnding"),T}function T(N){return k.enter("codeFencedFence"),Zt(N)?Ft(k,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):M(N)}function M(N){return N===s?(k.enter("codeFencedFenceSequence"),A(N)):L(N)}function A(N){return N===s?(S++,k.consume(N),A):S>=a?(k.exit("codeFencedFenceSequence"),Zt(N)?Ft(k,$,"whitespace")(N):$(N)):L(N)}function $(N){return N===null||ct(N)?(k.exit("codeFencedFence"),_(N)):L(N)}}}function MGe(t,e,n){let r=this;return i;function i(a){return a===null?n(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}var Tx={name:"codeIndented",tokenize:TGe},EGe={partial:!0,tokenize:RGe};function TGe(t,e,n){let r=this;return i;function i(c){return t.enter("codeIndented"),Ft(t,o,"linePrefix",5)(c)}function o(c){let u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):ct(c)?t.attempt(EGe,a,l)(c):(t.enter("codeFlowValue"),s(c))}function s(c){return c===null||ct(c)?(t.exit("codeFlowValue"),a(c)):(t.consume(c),s)}function l(c){return t.exit("codeIndented"),e(c)}}function RGe(t,e,n){let r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ct(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):Ft(t,o,"linePrefix",5)(a)}function o(a){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(a):ct(a)?i(a):n(a)}}var _B={name:"codeText",previous:$Ge,resolve:AGe,tokenize:IGe};function AGe(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function $Ge(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function IGe(t,e,n){let r=this,i=0,o,a;return s;function s(p){return t.enter("codeText"),t.enter("codeTextSequence"),l(p)}function l(p){return p===96?(t.consume(p),i++,l):(t.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),c):p===96?(a=t.enter("codeTextSequence"),o=0,d(p)):ct(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||ct(p)?(t.exit("codeTextData"),c(p)):(t.consume(p),u)}function d(p){return p===96?(t.consume(p),o++,d):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(p)):(a.type="codeTextData",u(p))}}var LM=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){let i=n||0;this.setCursor(Math.trunc(e));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Rx(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Rx(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Rx(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let n=this.left.splice(e,Number.POSITIVE_INFINITY);Rx(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Rx(this.left,n.reverse())}}};function Rx(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function MM(t){let e={},n=-1,r,i,o,a,s,l,c,u=new LM(t);for(;++n<u.length;){for(;n in e;)n=e[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,NGe(u,n)),n=e[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=u.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Hi(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function NGe(t,e){let n=t.get(e)[1],r=t.get(e)[2],i=e-1,o=[],a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let s=a.events,l=[],c={},u,d,p=-1,m=n,f=0,h=0,x=[h];for(;m;){for(;t.get(++i)[1]!==m;);o.push(i),m._tokenizer||(u=r.sliceStream(m),m.next||u.push(null),d&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(h=p+1,x.push(h),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):x.pop(),p=x.length;p--;){let g=s.slice(x[p],x[p+1]),y=o.pop();l.push([y,y+g.length-1]),t.splice(y,2,g)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}var SB={resolve:jGe,tokenize:OGe},PGe={partial:!0,tokenize:DGe};function jGe(t){return MM(t),t}function OGe(t,e){let n;return r;function r(s){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):ct(s)?t.check(PGe,a,o)(s):(t.consume(s),i)}function o(s){return t.exit("chunkContent"),t.exit("content"),e(s)}function a(s){return t.consume(s),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function DGe(t,e,n){let r=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ft(t,o,"linePrefix")}function o(a){if(a===null||ct(a))return n(a);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(a):t.interrupt(r.parser.constructs.flow,n,e)(a)}}function EM(t,e,n,r,i,o,a,s,l){let c=l||Number.POSITIVE_INFINITY,u=0;return d;function d(g){return g===60?(t.enter(r),t.enter(i),t.enter(o),t.consume(g),t.exit(o),p):g===null||g===32||g===41||pg(g)?n(g):(t.enter(r),t.enter(a),t.enter(s),t.enter("chunkString",{contentType:"string"}),h(g))}function p(g){return g===62?(t.enter(o),t.consume(g),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(s),t.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===62?(t.exit("chunkString"),t.exit(s),p(g)):g===null||g===60||ct(g)?n(g):(t.consume(g),g===92?f:m)}function f(g){return g===60||g===62||g===92?(t.consume(g),m):m(g)}function h(g){return!u&&(g===null||g===41||Pn(g))?(t.exit("chunkString"),t.exit(s),t.exit(a),t.exit(r),e(g)):u<c&&g===40?(t.consume(g),u++,h):g===41?(t.consume(g),u--,h):g===null||g===32||g===40||pg(g)?n(g):(t.consume(g),g===92?x:h)}function x(g){return g===40||g===41||g===92?(t.consume(g),h):h(g)}}function TM(t,e,n,r,i,o){let a=this,s=0,l;return c;function c(m){return t.enter(r),t.enter(i),t.consume(m),t.exit(i),t.enter(o),u}function u(m){return s>999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(t.exit(o),t.enter(i),t.consume(m),t.exit(i),t.exit(r),e):ct(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),u):(t.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||ct(m)||s++>999?(t.exit("chunkString"),u(m)):(t.consume(m),l||(l=!Zt(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(t.consume(m),s++,d):d(m)}}function RM(t,e,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(t.enter(r),t.enter(i),t.consume(p),t.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):(t.enter(o),c(p))}function c(p){return p===a?(t.exit(o),l(a)):p===null?n(p):ct(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),Ft(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===a||p===null||ct(p)?(t.exit("chunkString"),c(p)):(t.consume(p),p===92?d:u)}function d(p){return p===a||p===92?(t.consume(p),u):u(p)}}function fg(t,e){let n;return r;function r(i){return ct(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):Zt(i)?Ft(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}var LB={name:"definition",tokenize:BGe},FGe={partial:!0,tokenize:zGe};function BGe(t,e,n){let r=this,i;return o;function o(m){return t.enter("definition"),a(m)}function a(m){return TM.call(r,t,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),l):n(m)}function l(m){return Pn(m)?fg(t,c)(m):c(m)}function c(m){return EM(t,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function u(m){return t.attempt(FGe,d,d)(m)}function d(m){return Zt(m)?Ft(t,p,"whitespace")(m):p(m)}function p(m){return m===null||ct(m)?(t.exit("definition"),r.parser.defined.push(i),e(m)):n(m)}}function zGe(t,e,n){return r;function r(s){return Pn(s)?fg(t,i)(s):n(s)}function i(s){return RM(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Zt(s)?Ft(t,a,"whitespace")(s):a(s)}function a(s){return s===null||ct(s)?e(s):n(s)}}var MB={name:"hardBreakEscape",tokenize:qGe};function qGe(t,e,n){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),i}function i(o){return ct(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}var EB={name:"headingAtx",resolve:HGe,tokenize:GGe};function HGe(t,e){let n=t.length-2,r=3,i,o;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},o={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Hi(t,r,n-r+1,[["enter",i,e],["enter",o,e],["exit",o,e],["exit",i,e]])),t}function GGe(t,e,n){let r=0;return i;function i(u){return t.enter("atxHeading"),o(u)}function o(u){return t.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(t.consume(u),a):u===null||Pn(u)?(t.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(t.enter("atxHeadingSequence"),l(u)):u===null||ct(u)?(t.exit("atxHeading"),e(u)):Zt(u)?Ft(t,s,"whitespace")(u):(t.enter("atxHeadingText"),c(u))}function l(u){return u===35?(t.consume(u),l):(t.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Pn(u)?(t.exit("atxHeadingText"),s(u)):(t.consume(u),c)}}var _he=["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"],TB=["pre","script","style","textarea"];var RB={concrete:!0,name:"htmlFlow",resolveTo:ZGe,tokenize:WGe},UGe={partial:!0,tokenize:XGe},VGe={partial:!0,tokenize:KGe};function ZGe(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function WGe(t,e,n){let r=this,i,o,a,s,l;return c;function c(j){return u(j)}function u(j){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(j),d}function d(j){return j===33?(t.consume(j),p):j===47?(t.consume(j),o=!0,h):j===63?(t.consume(j),i=3,r.interrupt?e:P):wo(j)?(t.consume(j),a=String.fromCharCode(j),x):n(j)}function p(j){return j===45?(t.consume(j),i=2,m):j===91?(t.consume(j),i=5,s=0,f):wo(j)?(t.consume(j),i=4,r.interrupt?e:P):n(j)}function m(j){return j===45?(t.consume(j),r.interrupt?e:P):n(j)}function f(j){let V="CDATA[";return j===V.charCodeAt(s++)?(t.consume(j),s===V.length?r.interrupt?e:M:f):n(j)}function h(j){return wo(j)?(t.consume(j),a=String.fromCharCode(j),x):n(j)}function x(j){if(j===null||j===47||j===62||Pn(j)){let V=j===47,H=a.toLowerCase();return!V&&!o&&TB.includes(H)?(i=1,r.interrupt?e(j):M(j)):_he.includes(a.toLowerCase())?(i=6,V?(t.consume(j),g):r.interrupt?e(j):M(j)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):o?y(j):b(j))}return j===45||vo(j)?(t.consume(j),a+=String.fromCharCode(j),x):n(j)}function g(j){return j===62?(t.consume(j),r.interrupt?e:M):n(j)}function y(j){return Zt(j)?(t.consume(j),y):C(j)}function b(j){return j===47?(t.consume(j),C):j===58||j===95||wo(j)?(t.consume(j),w):Zt(j)?(t.consume(j),b):C(j)}function w(j){return j===45||j===46||j===58||j===95||vo(j)?(t.consume(j),w):v(j)}function v(j){return j===61?(t.consume(j),k):Zt(j)?(t.consume(j),v):b(j)}function k(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(t.consume(j),l=j,_):Zt(j)?(t.consume(j),k):L(j)}function _(j){return j===l?(t.consume(j),l=null,S):j===null||ct(j)?n(j):(t.consume(j),_)}function L(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Pn(j)?v(j):(t.consume(j),L)}function S(j){return j===47||j===62||Zt(j)?b(j):n(j)}function C(j){return j===62?(t.consume(j),T):n(j)}function T(j){return j===null||ct(j)?M(j):Zt(j)?(t.consume(j),T):n(j)}function M(j){return j===45&&i===2?(t.consume(j),F):j===60&&i===1?(t.consume(j),D):j===62&&i===4?(t.consume(j),U):j===63&&i===3?(t.consume(j),P):j===93&&i===5?(t.consume(j),B):ct(j)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(UGe,G,A)(j)):j===null||ct(j)?(t.exit("htmlFlowData"),A(j)):(t.consume(j),M)}function A(j){return t.check(VGe,$,G)(j)}function $(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),N}function N(j){return j===null||ct(j)?A(j):(t.enter("htmlFlowData"),M(j))}function F(j){return j===45?(t.consume(j),P):M(j)}function D(j){return j===47?(t.consume(j),a="",O):M(j)}function O(j){if(j===62){let V=a.toLowerCase();return TB.includes(V)?(t.consume(j),U):M(j)}return wo(j)&&a.length<8?(t.consume(j),a+=String.fromCharCode(j),O):M(j)}function B(j){return j===93?(t.consume(j),P):M(j)}function P(j){return j===62?(t.consume(j),U):j===45&&i===2?(t.consume(j),P):M(j)}function U(j){return j===null||ct(j)?(t.exit("htmlFlowData"),G(j)):(t.consume(j),U)}function G(j){return t.exit("htmlFlow"),e(j)}}function KGe(t,e,n){let r=this;return i;function i(a){return ct(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}function XGe(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Dd,e,n)}}var AB={name:"htmlText",tokenize:YGe};function YGe(t,e,n){let r=this,i,o,a;return s;function s(P){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(P),l}function l(P){return P===33?(t.consume(P),c):P===47?(t.consume(P),v):P===63?(t.consume(P),b):wo(P)?(t.consume(P),L):n(P)}function c(P){return P===45?(t.consume(P),u):P===91?(t.consume(P),o=0,f):wo(P)?(t.consume(P),y):n(P)}function u(P){return P===45?(t.consume(P),m):n(P)}function d(P){return P===null?n(P):P===45?(t.consume(P),p):ct(P)?(a=d,D(P)):(t.consume(P),d)}function p(P){return P===45?(t.consume(P),m):d(P)}function m(P){return P===62?F(P):P===45?p(P):d(P)}function f(P){let U="CDATA[";return P===U.charCodeAt(o++)?(t.consume(P),o===U.length?h:f):n(P)}function h(P){return P===null?n(P):P===93?(t.consume(P),x):ct(P)?(a=h,D(P)):(t.consume(P),h)}function x(P){return P===93?(t.consume(P),g):h(P)}function g(P){return P===62?F(P):P===93?(t.consume(P),g):h(P)}function y(P){return P===null||P===62?F(P):ct(P)?(a=y,D(P)):(t.consume(P),y)}function b(P){return P===null?n(P):P===63?(t.consume(P),w):ct(P)?(a=b,D(P)):(t.consume(P),b)}function w(P){return P===62?F(P):b(P)}function v(P){return wo(P)?(t.consume(P),k):n(P)}function k(P){return P===45||vo(P)?(t.consume(P),k):_(P)}function _(P){return ct(P)?(a=_,D(P)):Zt(P)?(t.consume(P),_):F(P)}function L(P){return P===45||vo(P)?(t.consume(P),L):P===47||P===62||Pn(P)?S(P):n(P)}function S(P){return P===47?(t.consume(P),F):P===58||P===95||wo(P)?(t.consume(P),C):ct(P)?(a=S,D(P)):Zt(P)?(t.consume(P),S):F(P)}function C(P){return P===45||P===46||P===58||P===95||vo(P)?(t.consume(P),C):T(P)}function T(P){return P===61?(t.consume(P),M):ct(P)?(a=T,D(P)):Zt(P)?(t.consume(P),T):S(P)}function M(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(t.consume(P),i=P,A):ct(P)?(a=M,D(P)):Zt(P)?(t.consume(P),M):(t.consume(P),$)}function A(P){return P===i?(t.consume(P),i=void 0,N):P===null?n(P):ct(P)?(a=A,D(P)):(t.consume(P),A)}function $(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Pn(P)?S(P):(t.consume(P),$)}function N(P){return P===47||P===62||Pn(P)?S(P):n(P)}function F(P){return P===62?(t.consume(P),t.exit("htmlTextData"),t.exit("htmlText"),e):n(P)}function D(P){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),O}function O(P){return Zt(P)?Ft(t,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):B(P)}function B(P){return t.enter("htmlTextData"),a(P)}}var hg={name:"labelEnd",resolveAll:tUe,resolveTo:nUe,tokenize:rUe},QGe={tokenize:iUe},JGe={tokenize:oUe},eUe={tokenize:aUe};function tUe(t){let e=-1,n=[];for(;++e<t.length;){let r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&Hi(t,0,t.length,n),t}function nUe(t,e){let n=t.length,r=0,i,o,a,s;for(;n--;)if(i=t[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);let l={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[o][1].start},end:{...t[a][1].end}},u={type:"labelText",start:{...t[o+r+2][1].end},end:{...t[a-2][1].start}};return s=[["enter",l,e],["enter",c,e]],s=us(s,t.slice(o+1,o+r+3)),s=us(s,[["enter",u,e]]),s=us(s,Z1(e.parser.constructs.insideSpan.null,t.slice(o+r+4,a-3),e)),s=us(s,[["exit",u,e],t[a-2],t[a-1],["exit",c,e]]),s=us(s,t.slice(a+1)),s=us(s,[["exit",l,e]]),Hi(t,o,t.length,s),t}function rUe(t,e,n){let r=this,i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?d(p):(a=r.parser.defined.includes(ja(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),l):n(p)}function l(p){return p===40?t.attempt(QGe,u,a?u:d)(p):p===91?t.attempt(JGe,u,a?c:d)(p):a?u(p):d(p)}function c(p){return t.attempt(eUe,u,d)(p)}function u(p){return e(p)}function d(p){return o._balanced=!0,n(p)}}function iUe(t,e,n){return r;function r(d){return t.enter("resource"),t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),i}function i(d){return Pn(d)?fg(t,o)(d):o(d)}function o(d){return d===41?u(d):EM(t,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Pn(d)?fg(t,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?RM(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Pn(d)?fg(t,u)(d):u(d)}function u(d){return d===41?(t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),t.exit("resource"),e):n(d)}}function oUe(t,e,n){let r=this;return i;function i(s){return TM.call(r,t,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(s):n(s)}function a(s){return n(s)}}function aUe(t,e,n){return r;function r(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}var $B={name:"labelStartImage",resolveAll:hg.resolveAll,tokenize:sUe};function sUe(t,e,n){let r=this;return i;function i(s){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(s),t.exit("labelImageMarker"),o}function o(s){return s===91?(t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}var IB={name:"labelStartLink",resolveAll:hg.resolveAll,tokenize:lUe};function lUe(t,e,n){let r=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}var Ax={name:"lineEnding",tokenize:cUe};function cUe(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Ft(t,e,"linePrefix")}}var gg={name:"thematicBreak",tokenize:uUe};function uUe(t,e,n){let r=0,i;return o;function o(c){return t.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(t.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ct(c))?(t.exit("thematicBreak"),e(c)):n(c)}function l(c){return c===i?(t.consume(c),r++,l):(t.exit("thematicBreakSequence"),Zt(c)?Ft(t,s,"whitespace")(c):s(c))}}var Oa={continuation:{tokenize:fUe},exit:gUe,name:"list",tokenize:mUe},dUe={partial:!0,tokenize:bUe},pUe={partial:!0,tokenize:hUe};function mUe(t,e,n){let r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(m){let f=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(f==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Mx(m)){if(r.containerState.type||(r.containerState.type=f,t.enter(f,{_container:!0})),f==="listUnordered")return t.enter("listItemPrefix"),m===42||m===45?t.check(gg,n,c)(m):c(m);if(!r.interrupt||m===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(m)}return n(m)}function l(m){return Mx(m)&&++a<10?(t.consume(m),l):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(t.exit("listItemValue"),c(m)):n(m)}function c(m){return t.enter("listItemMarker"),t.consume(m),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,t.check(Dd,r.interrupt?n:u,t.attempt(dUe,p,d))}function u(m){return r.containerState.initialBlankLine=!0,o++,p(m)}function d(m){return Zt(m)?(t.enter("listItemPrefixWhitespace"),t.consume(m),t.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(m)}}function fUe(t,e,n){let r=this;return r.containerState._closeFlow=void 0,t.check(Dd,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ft(t,e,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Zt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(pUe,e,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ft(t,t.attempt(Oa,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function hUe(t,e,n){let r=this;return Ft(t,i,"listItemIndent",r.containerState.size+1);function i(o){let a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?e(o):n(o)}}function gUe(t){t.exit(this.containerState.type)}function bUe(t,e,n){let r=this;return Ft(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let a=r.events[r.events.length-1];return!Zt(o)&&a&&a[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}var AM={name:"setextUnderline",resolveTo:yUe,tokenize:xUe};function yUe(t,e){let n=t.length,r,i,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);let a={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",a,e]),t.splice(o+1,0,["exit",t[r][1],e]),t[r][1].end={...t[o][1].end}):t[r][1]=a,t.push(["exit",a,e]),t}function xUe(t,e,n){let r=this,i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(t.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return t.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(t.consume(c),s):(t.exit("setextHeadingLineSequence"),Zt(c)?Ft(t,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ct(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}var She={tokenize:wUe};function wUe(t){let e=this,n=t.attempt(Dd,r,t.attempt(this.parser.constructs.flowInitial,i,Ft(t,t.attempt(this.parser.constructs.flow,i,t.attempt(SB,i)),"linePrefix")));return n;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var Lhe={resolveAll:Rhe()},Mhe=The("string"),Ehe=The("text");function The(t){return{resolveAll:Rhe(t==="text"?vUe:void 0),tokenize:e};function e(n){let r=this,i=this.parser.constructs[t],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;let d=i[u],p=-1;if(d)for(;++p<d.length;){let m=d[p];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function Rhe(t){return e;function e(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(n,r):n}}function vUe(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){let r=t[n-1][1],i=e.sliceStream(r),o=i.length,a=-1,s=0,l;for(;o--;){let c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(s=0),s){let c={type:n===t.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}var NB={};fn(NB,{attentionMarkers:()=>TUe,contentInitial:()=>CUe,disable:()=>RUe,document:()=>kUe,flow:()=>SUe,flowInitial:()=>_Ue,insideSpan:()=>EUe,string:()=>LUe,text:()=>MUe});var kUe={42:Oa,43:Oa,45:Oa,48:Oa,49:Oa,50:Oa,51:Oa,52:Oa,53:Oa,54:Oa,55:Oa,56:Oa,57:Oa,62:kM},CUe={91:LB},_Ue={[-2]:Tx,[-1]:Tx,32:Tx},SUe={35:EB,42:gg,45:[AM,gg],60:RB,61:AM,95:gg,96:SM,126:SM},LUe={38:_M,92:CM},MUe={[-5]:Ax,[-4]:Ax,[-3]:Ax,33:$B,38:_M,42:Ex,60:[CB,AB],91:IB,92:[MB,CM],93:hg,95:Ex,96:_B},EUe={null:[Ex,Lhe]},TUe={null:[42,95]},RUe={null:[]};function Ahe(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],s=[],l=!0,c={attempt:S(_),check:S(L),consume:w,enter:v,exit:k,interrupt:S(L,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:x,parser:t,previous:null,sliceSerialize:f,sliceStream:h,write:m},d=e.tokenize.call(u,c),p;return e.resolveAll&&o.push(e),u;function m(A){return a=us(a,A),y(),a[a.length-1]!==null?[]:(C(e,0),u.events=Z1(o,u.events,u),u.events)}function f(A,$){return $Ue(h(A),$)}function h(A){return AUe(a,A)}function x(){let{_bufferIndex:A,_index:$,line:N,column:F,offset:D}=r;return{_bufferIndex:A,_index:$,line:N,column:F,offset:D}}function g(A){i[A.line]=A.column,M()}function y(){let A;for(;r._index<a.length;){let $=a[r._index];if(typeof $=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<$.length;)b($.charCodeAt(r._bufferIndex));else b($)}}function b(A){l=void 0,p=A,d=d(A)}function w(A){ct(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,M()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=A,l=!0}function v(A,$){let N=$||{};return N.type=A,N.start=x(),u.events.push(["enter",N,u]),s.push(N),N}function k(A){let $=s.pop();return $.end=x(),u.events.push(["exit",$,u]),$}function _(A,$){C(A,$.from)}function L(A,$){$.restore()}function S(A,$){return N;function N(F,D,O){let B,P,U,G;return Array.isArray(F)?V(F):"tokenize"in F?V([F]):j(F);function j(W){return ie;function ie(Z){let ce=Z!==null&&W[Z],se=Z!==null&&W.null,be=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(se)?se:se?[se]:[]];return V(be)(Z)}}function V(W){return B=W,P=0,W.length===0?O:H(W[P])}function H(W){return ie;function ie(Z){return G=T(),U=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?J(Z):W.tokenize.call($?Object.assign(Object.create(u),$):u,c,ne,J)(Z)}}function ne(W){return l=!0,A(U,G),D}function J(W){return l=!0,G.restore(),++P<B.length?H(B[P]):O}}}function C(A,$){A.resolveAll&&!o.includes(A)&&o.push(A),A.resolve&&Hi(u.events,$,u.events.length-$,A.resolve(u.events.slice($),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function T(){let A=x(),$=u.previous,N=u.currentConstruct,F=u.events.length,D=Array.from(s);return{from:F,restore:O};function O(){r=A,u.previous=$,u.currentConstruct=N,u.events.length=F,s=D,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function AUe(t,e){let n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex,a;if(n===i)a=[t[n].slice(r,o)];else{if(a=t.slice(n,i),r>-1){let s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(t[i].slice(0,o))}return a}function $Ue(t,e){let n=-1,r=[],i;for(;++n<t.length;){let o=t[n],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=` +`)}function hme(t,e){return HF(t,e.map(n=>({id:`shell-${n.id}`,kind:qF,at:n.startedAt,version:n.version,shell:n})))}function HF(t,e){if(e.length===0)return t;let n=new Set(e.map(i=>i.id)),r=[...t];for(let i of[...e].sort((o,a)=>o.at-a.at)){let o=r.findIndex(a=>!n.has(a.id)&&a.at>i.at);o<0?r.push(i):r.splice(o,0,i)}return r}function gme(t){return{id:`shell-${t.id}`,kind:"text",name:`$ ${t.command}`,mimeType:"text/plain",size:0,shellRun:t.id}}function bme(t,e){return t.map(n=>{let r=n.shellRun?e(n.shellRun):void 0;if(!n.shellRun||!r)return n;let i=r.status==="running"?"still running":r.status==="stopped"?"stopped":r.exitCode!==void 0?`exit ${r.exitCode}`:"failed",o=r.output.length>16384?r.output.slice(-16384):r.output,a=r.truncated||o.length<r.output.length,s=[`The user ran this command${r.cwd?` in ${r.cwd}`:""}: ${r.command}`,`Result: ${i}${r.error?` (${r.error})`:""}`,a?"Output (its end):":"Output:",o.replace(/\n$/,"")].join(` +`);return{...n,name:`$ ${r.command} (${i})`,text:s,size:s.length}})}function yme(t){let e=t.filter(r=>r.shellRun);if(e.length<=3)return t;let n=new Set(e.slice(0,e.length-3).map(r=>r.id));return t.filter(r=>!n.has(r.id))}var GF="chatMove";function xme(t,e){return HF(t,e.map(n=>({id:`move-${n.id}`,kind:GF,at:n.at,version:1,text:`${n.machine} \xB7 ${wi(n.cwd)}`})))}function wme(t){let e=`The user moved this chat to ${t.cwd} on ${t.machine}. Work in that folder from now on.`;return{id:`move-${t.id}`,kind:"text",name:`cd ${wi(t.cwd)}`,mimeType:"text/plain",size:e.length,text:e,move:!0}}var dg=R(qe(),1),nl=R(Q(),1);var Kfe=R(qe(),1),sB=R(Q(),1);var Nd={};fn(Nd,{Arrow:()=>Tfe,Backdrop:()=>_fe,Clear:()=>sfe,Collection:()=>OL,Empty:()=>Gfe,Group:()=>Afe,GroupLabel:()=>Ife,Icon:()=>ofe,Input:()=>Jme,InputGroup:()=>rfe,Item:()=>Ffe,List:()=>bfe,Popup:()=>Mfe,Portal:()=>kfe,Positioner:()=>Lfe,Root:()=>Fme,Row:()=>qfe,Separator:()=>Zfe,Status:()=>xfe,Trigger:()=>Kme,Value:()=>qme,useFilter:()=>py,useFilteredItems:()=>Wfe});var xx=R(Q(),1);var gn=R(Q(),1);var vme=R(Q(),1);function kme(t){let e=vme.useRef(!0);e.current&&(e.current=!1,t())}function Cme(t,e,n,r,i,o,a,s,l,c=2){let u=tce(n.current,{event:t,orientation:r,loopFocus:i,rtl:o,cols:c,disabledIndices:a,minIndex:s,maxIndex:l,prevIndex:e>l?s:e,stopEvent:!0});return Z0(n.current,u)?void 0:u}var Uc=R(Q(),1),UF=Uc.createContext(void 0),VF=Uc.createContext(void 0),ZF=Uc.createContext(void 0),WF=Uc.createContext(!1),KF=Uc.createContext("");function pr(){let t=Uc.useContext(UF);if(!t)throw new Error(Ft(22));return t}function O1(){let t=Uc.useContext(VF);if(!t)throw new Error(Ft(23));return t}function Vc(){let t=Uc.useContext(ZF);if(!t)throw new Error(Ft(24));return t}function D1(){return Uc.useContext(KF)}function _me(){return Uc.useContext(WF)}function Sme(t,e,n=Object.is){let{length:r}=t;if(r!==e.length)return!1;for(let i=0;i<r;i+=1)if(!n(t[i],e[i]))return!1;return!0}var gx=(t,e)=>Object.is(t,e);function Ul(t,e,n){return t==null||e==null?Object.is(t,e):n(t,e)}function Lme(t,e,n){return Array.isArray(t)&&Array.isArray(e)?!Sme(t,e,(r,i)=>Ul(r,i,n)):t!==e}function hx(t,e,n){return t?t.some(r=>r===void 0?!1:Ul(e,r,n)):!1}function bx(t,e,n){return t?t.findIndex(r=>r===void 0?!1:Ul(r,e,n)):-1}function SHe(t,e){if(e!==gx)return r=>hx(t,r,e);let n=new Set(t);return n.delete(void 0),r=>n.has(r)&&(r!==0||t.some(i=>Object.is(r,i)))}function yx(t,e,n,r){let i=r&&Array.isArray(e)?t.findIndex(SHe(e,n)):bx(t,e,n);return i===-1?null:i}function Mme(t,e,n,r,i,o){return hx(r,e,i)?o!=null&&t>o&&hx(r,n[o],i)?o:t:t===o?yx(n,r,i,!0):o}function Eme(t,e,n){return t.filter(r=>!Ul(e,r,n))}var LHe=R(Q(),1);function SL(t){if(t==null)return"";if(typeof t=="string")return t;try{return JSON.stringify(t)}catch{return String(t)}}var MHe=R(ee(),1);function EHe(t){return typeof t=="object"&&t!=null&&Array.isArray(t.items)}function LL(t){return EHe(t?.[0])}function ML(t){return LL(t)?t.flatMap(e=>e.items):t}function Tme(t){if(!Array.isArray(t))return t!=null&&"null"in t;let e=t;if(LL(e)){for(let n of e)for(let r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(let n of e)if(n&&n.value==null&&n.label!=null)return!0;return!1}function Rd(t,e){if(e&&t!=null)return e(t)??"";if(t&&typeof t=="object"){if("label"in t&&t.label!=null)return String(t.label);if("value"in t)return String(t.value)}return SL(t)}function dy(t,e){return e&&t!=null?e(t)??"":t&&typeof t=="object"&&"value"in t&&"label"in t?SL(t.value):SL(t)}var Rme={id:t=>t.id,labelId:t=>t.labelId,items:t=>t.items,selectedValue:t=>t.selectedValue,hasSelectionChips:t=>{let e=t.selectedValue;return Array.isArray(e)&&e.length>0},hasSelectedValue:t=>{let{selectedValue:e,selectionMode:n}=t;return e==null?!1:n==="multiple"&&Array.isArray(e)?e.length>0:!0},hasNullItemLabel:(t,e)=>e?Tme(t.items):!1,open:t=>t.open,mounted:t=>t.mounted,forceMounted:t=>t.forceMounted,inline:t=>t.inline,activeIndex:t=>t.activeIndex,selectedIndex:t=>t.selectedIndex,isActive:(t,e)=>t.activeIndex===e,isSelected:(t,e)=>{let n=t.isItemEqualToValue,r=t.selectedValue;return Array.isArray(r)?r.some(i=>Ul(e,i,n)):Ul(e,r,n)},transitionStatus:t=>t.transitionStatus,popupProps:t=>t.popupProps,listProps:t=>t.listProps,inputProps:t=>t.inputProps,triggerProps:t=>t.triggerProps,itemProps:t=>t.itemProps,positionerElement:t=>t.positionerElement,listElement:t=>t.listElement,popupId:t=>t.popupId,triggerElement:t=>t.triggerElement,inputElement:t=>t.inputElement,inputGroupElement:t=>t.inputGroupElement,popupSide:t=>t.popupSide,openMethod:t=>t.openMethod,inputInsidePopup:t=>t.inputInsidePopup,inputOwnsFormValue:t=>t.inputOwnsFormValue,selectionMode:t=>t.selectionMode,name:t=>t.name,form:t=>t.form,disabled:t=>t.disabled,readOnly:t=>t.readOnly,required:t=>t.required,grid:t=>t.grid,virtualized:t=>t.virtualized,itemToStringLabel:t=>t.itemToStringLabel,isItemEqualToValue:t=>t.isItemEqualToValue,modal:t=>t.modal,autoHighlight:t=>t.autoHighlight};function EL(t){return t==null?void 0:`${t}-popup`}function Ame(t,e){return(n,r)=>n==null?!1:t.contains(n,r,e)}var Nme=R(Q(),1);function XF(t){return Array.isArray(t)?t.map(e=>XF(e)).join(","):t==null?"":String(t)}var $me=new Map;function Ime(t={}){let e={usage:"search",sensitivity:"base",ignorePunctuation:!0,...t},n=`${XF(t.locale)}|${JSON.stringify(e)}`,r=$me.get(n);if(r)return r;let i=new Intl.Collator(t.locale,e),o={contains(a,s,l){if(!s)return!0;let c=Rd(a,l);for(let u=0;u<=c.length-s.length;u+=1)if(i.compare(c.slice(u,u+s.length),s)===0)return!0;return!1},startsWith(a,s,l){if(!s)return!0;let c=Rd(a,l);return i.compare(c.slice(0,s.length),s)===0},endsWith(a,s,l){if(!s)return!0;let c=Rd(a,l),u=s.length;return c.length>=u&&i.compare(c.slice(c.length-u),s)===0}};return $me.set(n,o),o}var py=Ime;function Pme(t,e=!1){let{overflowY:n}=Fi(t);return n!=="auto"&&n!=="scroll"?!1:e?t.clientHeight>0:t.scrollHeight>t.clientHeight}var YF=Symbol("none"),TL={value:YF,index:-1};function jme(t,e,n){let r=t.get(e);if(r!==void 0||n===gx)return r;for(let[i,o]of t)if(Ul(i,e,n))return o}var Ad=R(ee(),1);function Ome(t){let{id:e,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:o,defaultInputValue:a,inputValue:s,open:l,defaultOpen:c=!1,selectionMode:u,onItemHighlighted:d,name:p,form:m,disabled:f=!1,readOnly:h=!1,required:x=!1,inputRef:g,grid:y=!1,items:b,filteredItems:w,filter:v,filterQuery:k,openOnInputClick:_=!0,autoHighlight:L=!1,keepHighlight:S=!1,highlightItemOnHover:C=!0,loopFocus:T=!0,itemToStringLabel:M,itemToStringValue:A,isItemEqualToValue:$=gx,virtualized:N=!1,inline:F=!1,fillInputOnItemPress:D=!0,modal:O=!1,limit:B=-1,autoComplete:P="list",formAutoComplete:U,locale:G,submitOnItemClick:j=!1}=t,{clearErrors:V}=QC(),{setDirty:H,validityData:ne,setFilled:J,name:W,disabled:ie,setTouched:Z,setFocused:le,validationMode:se,validation:ge}=Vs(),ce=Gc(),be=v2({id:e}),ke=py({locale:G}),me=Array.isArray(b)?null:b;if(me&&typeof me.label!="function")throw new Error(Ft(100));let Se=me?me.data:b,de=me?.value,Le=de?void 0:Se,Ne=gn.useMemo(()=>{if(!w||!de)return;let Fe=ML(w),tt=Fe.map(de),Me;return{values:tt,findItem(At,$n){if(!Me){Me=new Map;for(let wr=0;wr<tt.length;wr+=1)Me.has(tt[wr])||Me.set(tt[wr],Fe[wr])}return jme(Me,At,$n)}}},[w,de]),Be=gn.useMemo(()=>me?Fe=>me.label(Fe,$,tt=>{let Me=Ne?.findItem(tt,$);return Me!=null?me.itemLabel(Me):Rd(tt,M)}):M,[me,M,Ne,$]),_e=gn.useMemo(()=>me?Object.assign(Fe=>me.itemLabel(Fe),{selected:Fe=>Rd(Fe,Be)}):M,[me,Be,M]);function xe(Fe){return Rd(Fe,Be)}let[Ce,K]=gn.useState(!1),[Y,ye]=gn.useState(null),Re=gn.useRef(Y),Ke=gn.useRef([]),mt=gn.useRef([]),dt=gn.useRef(null),Ae=gn.useRef(null),wt=gn.useRef(null),Tt=gn.useRef(null),Ot=gn.useRef(null),zt=gn.useRef(!0),Ve=gn.useRef(!1),Jt=gn.useRef(null),rn=gn.useRef(null),Rn=gn.useRef(null),St=gn.useRef(TL),An=gn.useRef(null),Xt=gn.useRef([]),zn=gn.useRef(null),Dt=ie||f,mn=W??p,yn=u==="multiple",In=u==="single",er=s!==void 0||a!==void 0,ae=Se!==void 0,st=w!==void 0,Mt;L==="always"?Mt="always":Mt=L?"input-change":!1;let[Ye,vt]=kd({controlled:i,default:yn?r??Us:r,name:"Combobox",state:"selectedValue"}),jn=gn.useMemo(()=>v===null?()=>!0:v!==void 0?v:Ame(ke,_e),[v,ke,_e]),Kn=Vn(()=>er?a??"":In?xe(Ye):"").current,[un,it]=kd({controlled:s,default:Kn,name:"Combobox",state:"inputValue"}),[ft,En]=kd({controlled:l,default:c,name:"Combobox",state:"open"}),jt=LL(Se),Nt=!ft&&Y!==null?Y:String(un).trim(),mi=In?xe(Ye):"",Ei=In&&!Ce&&Nt!==""&&mi.length===Nt.length&&ke.contains(mi,Nt),Ti=Ei?"":k??Nt,Ua=ae&&st&&Ei&&(!me||me.hasValue(Ye,$)),fl=gn.useMemo(()=>Se?ML(Se):Us,[Se]),Ge=gn.useMemo(()=>{if(w&&!Ua)return w;if(!Se)return Us;if(jt){let tt=Se,Me=[],At=0;for(let $n of tt){if(B>-1&&At>=B)break;let wr=B>-1?B-At:1/0,or=Ti===""?$n.items.slice(0,wr):[];if(Ti!=="")for(let kt of $n.items){if(or.length>=wr)break;jn(kt,Ti,_e)&&or.push(kt)}if(or.length>0){let kt={...$n,items:or};Me.push(kt),At+=or.length}}return Me}if(Ti==="")return B>-1?fl.slice(0,B):fl;let Fe=[];for(let tt of fl){if(B>-1&&Fe.length>=B)break;jn(tt,Ti,_e)&&Fe.push(tt)}return Fe},[w,Ua,Se,jt,Ti,B,jn,_e,fl]),dn=gn.useMemo(()=>{if(Ne&&Ge===w)return Ne.values;let Fe=ML(Ge);return de?Fe.map(tt=>de(tt)):Fe},[Ge,w,Ne,de]),pt=Vn(()=>{let Fe=null;return F&&ft&&ae&&u!=="none"&&(Fe=yx(dn,Ye,$,yn)),new Hc({id:be,labelId:void 0,selectedValue:Ye,open:ft,items:Le,selectionMode:u,name:mn,form:m,disabled:Dt,readOnly:h,required:x,grid:y,virtualized:N,openOnInputClick:_,itemToStringLabel:Be,isItemEqualToValue:$,modal:O,autoHighlight:Mt,submitOnItemClick:j,hasInputValue:er,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:F,activeIndex:null,selectedIndex:Fe,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:xn,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:u==="none"},{onOpenChangeComplete:Yt,setOpen:Yt,setInputValue:Yt,setSelectedValue:Yt,setIndices:Yt,handleSelection:Yt,forceMount:Yt,requestSubmit:Yt,listRef:Ke,labelsRef:mt,popupRef:dt,emptyRef:Ot,inputRef:Ae,startDismissRef:wt,endDismissRef:Tt,keyboardActiveRef:zt,chipsContainerRef:Jt,clearRef:rn,valuesRef:Xt,pointerDownItemRef:zn,selectionEventRef:Rn},Rme)}).current,vs=u==="none"?un:Ye,Gr=gn.useMemo(()=>u==="none"?vs:Array.isArray(Ye)?Ye.map(Fe=>dy(Fe,A)):dy(Ye,A),[vs,A,u,Ye]),np=Pe(d),Ri=Pe(n),Wi=pt.useState("activeIndex"),co=pt.useState("selectedIndex"),ks=pt.useState("positionerElement"),da=pt.useState("listElement"),Oo=pt.useState("triggerElement"),Cs=pt.useState("inputElement"),Th=pt.useState("inputGroupElement"),uo=pt.useState("inline"),pa=pt.useState("inputInsidePopup"),rp=pt.useState("inputOwnsFormValue"),tf=In&&!pa&&un===mi,ac=Yr(Oo),{mounted:Rh,setMounted:Do,transitionStatus:sc}=Oc(ft),{openMethod:Fo,triggerProps:nf}=DS(ft),rf=Pe(()=>Gr);KC(pa?ac:Ae,be,vs,rf,!Dt,p);let of=Pe(()=>{Se?mt.current=dn.map(xe):pt.set("forceMounted",!0)}),lc=Pe((Fe,tt,Me)=>{if(tt===-1){if(St.current===TL)return;St.current=TL}else St.current={value:Fe,index:tt};np(Fe,Aae(Me,void 0,{index:tt}))}),Va=Pe(Fe=>{let tt={};Fe.activeIndex!==void 0&&(tt.activeIndex=Fe.activeIndex),Fe.selectedIndex!==void 0&&(tt.selectedIndex=Fe.selectedIndex),pt.update(tt);let Me=Fe.activeIndex;if(Me===void 0)return;let At=Fe.type||he.none;Me===null?lc(void 0,-1,At):lc(Xt.current[Me],Me,At)}),fi=Pe((Fe,tt)=>{if(t.onInputValueChange?.(Fe,tt),!tt.isCanceled){if(Ve.current=tt.reason===he.inputClear,tt.reason===he.inputChange){ft&&Y!==null&&ye(null);let Me=tt.event,At=Me.inputType;if(Me.type==="compositionend"||At!=null&&At!==""&&At!=="insertReplacementText"){let wr=Fe.trim()!=="";wr&&K(!0),An.current={hasQuery:wr};let or=pt.state.listElement;if(!pt.state.virtualized&&or){let kt=dt.current;for(let hi of vu(or.firstElementChild??or)){if(!Ln(hi)||(kt?!ot(kt,hi):hi.getAttribute("role")==="dialog"))break;if(Pme(hi)){hi.scrollTop=0;break}}}wr&&Mt&&pt.state.activeIndex==null&&(ft||uo)&&pt.set("activeIndex",0)}}else tt.reason===he.inputClear&&Fe===""&&pt.state.inputInsidePopup&&(An.current={hasQuery:!1,selection:!0});it(Fe)}}),cu=Pe(Fe=>{let tt=!Fe&&pa&&!uo&&un!==""&&(String(un).trim()===Y||un===mi);!Fe&&(tt||un===""||tf)&&K(!1),ye(null),tt&&fi("",Xe(he.inputClear))}),_s=Pe((Fe,tt)=>{if(ft!==Fe&&(tt.reason===he.escapeKey&&ae&&dn.length===0&&!Ot.current&&tt.allowPropagation(),t.onOpenChange?.(Fe,tt),!tt.isCanceled&&(Fe&&Y!==null&&cu(tt.reason===he.inputChange),!Fe&&Ce&&(In?(uo||ye(Nt),Nt===""&&K(!1)):yn&&(uo||ye(Nt),pa&&Va({activeIndex:null}),(!pa||uo)&&fi("",Xe(he.inputClear,tt.event,void 0,{isItemPress:tt.reason===he.itemPress})))),En(Fe),!Fe&&pa&&(tt.reason===he.focusOut||tt.reason===he.outsidePress)&&(Z(!0),le(!1),se==="onBlur")))){let Me=u==="none"?un:Ye;ge.commit(Me)}}),hl=Pe((Fe,tt)=>{if(o?.(Fe,tt),tt.isCanceled)return;vt(Fe),(u==="none"&&dt.current&&D||In&&!pt.state.inputInsidePopup)&&fi(xe(Fe),Xe(tt.reason,tt.event))}),Za=Pe((Fe,tt)=>{let Me=lr(Fe),At=Rn.current??Fe;Rn.current=null;let $n=Xe(he.itemPress,At),wr=Me?.closest("a")?.getAttribute("href");if(wr){wr.startsWith("#")&&_s(!1,$n);return}if(yn){let or=Array.isArray(Ye)?Ye:[],kt=hx(or,tt,$),hi=kt?Eme(or,tt,$):[...or,tt];if(hl(hi,$n),$n.isCanceled||!(Ae.current?Ae.current.value.trim()!=="":!1))return;if(pt.state.inputInsidePopup){fi("",Xe(he.inputClear,$n.event,void 0,{isItemPress:!0}));let Bo=An.current;Bo&&!kt&&(Bo.toggledValue=tt)}else _s(!1,$n)}else{if(hl(tt,$n),$n.isCanceled)return;_s(!1,$n)}}),cc=Pe(()=>{let Fe=ge.inputRef.current?.form??pt.state.inputElement?.form;Fe&&typeof Fe.requestSubmit=="function"&&Fe.requestSubmit()}),ip=Pe(()=>{if(Do(!1),Ri?.(!1),K(!1),ye(null),Va(u==="none"?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),yn&&Ae.current&&Ae.current.value!==""&&!Ve.current&&fi("",Xe(he.inputClear)),In)if(pt.state.inputInsidePopup)Ae.current&&Ae.current.value!==""&&fi("",Xe(he.inputClear));else{let Fe=xe(Ye);if(Ae.current&&Ae.current.value!==Fe){let tt=Fe===""?he.inputClear:he.none;fi(Fe,Xe(tt))}}}),Ah=gn.useMemo(()=>uo&&ks?{current:ks.closest('[role="dialog"]')}:dt,[uo,ks]);Ro({enabled:!t.actionsRef,open:ft,ref:Ah,onComplete(){ft||ip()}}),gn.useImperativeHandle(t.actionsRef,()=>({unmount:ip}),[ip]),Ee(function(){let tt=Re.current!==null&&Y===null;if(Re.current=Y,ft&&(!tt||!ae)||(ft||(zn.current=null),u==="none"))return;let Me=ae?dn:Xt.current;Va({selectedIndex:yx(Me,Ye,$,yn)})},[ft,Y,Ye,u,yn,ae,dn,$,Va]),Ee(()=>{Se&&(Xt.current=dn,Ke.current.length=dn.length)},[Se,dn]),Ee(()=>{let Fe=An.current;if(Fe){let kt=ft||uo||pt.state.positionerElement?.hidden===!1;if(Fe.hasQuery)Mt&&kt&&pt.set("activeIndex",0),An.current=null;else if(String(un).trim()===""&&(An.current=null,kt)){let hi=Fe.selection;Mt==="always"&&!hi&&pt.state.selectionMode==="none"&&pt.set("activeIndex",0),queueMicrotask(()=>{if(!pt.state.open&&!pt.state.inline||Ae.current&&Ae.current.value.trim()!=="")return;let ma=pt.state.selectedValue,Bo=pt.state.selectionMode==="multiple";if(Bo&&Array.isArray(ma)?ma.length>0:pt.state.selectionMode!=="none"&&ma!=null){let Ze=ae||st?dn:Xt.current,en=bx(Ze,Fe.toggledValue,pt.state.isItemEqualToValue);pt.set("activeIndex",en!==-1?en:yx(Ze,ma,pt.state.isItemEqualToValue,Bo))}else hi?pt.set("activeIndex",null):Mt==="always"&&pt.set("activeIndex",0)})}}if(!ft&&!uo)return;let Me=ae||st?dn:Xt.current,At=pt.state.activeIndex;if(At==null){if(Mt==="always"&&Me.length>0){pt.set("activeIndex",0);return}lc(void 0,-1,he.none);return}if(At>=Me.length){lc(void 0,-1,he.none),pt.set("activeIndex",null);return}let $n=Me[At],wr=St.current.value,or=wr!==YF&&Ul($n,wr,pt.state.isItemEqualToValue);(St.current.index!==At||!or)&&lc($n,At,he.none)},[Wi,Mt,lc,st,ae,dn,uo,ft,pt,un]),Ee(()=>{if(u==="none"){J(String(un)!=="");return}J(yn?Array.isArray(Ye)&&Ye.length>0:Ye!=null)},[J,u,un,Ye,yn]),gn.useEffect(()=>{ae&&Mt&&dn.length===0&&Va({activeIndex:null})},[ae,Mt,dn.length,Va]);function C5(){ft&&Nt!==""&&Nt!==String(Kn)&&!tf&&K(!0)}function _5(){ft&&Y!==null&&cu(!1)}let $h=!1;function S5(){!$h&&un!==mi&&($h=!0,fi(mi,Xe(he.none)))}function af(){u!=="none"&&(V(mn),H(Lme(Ye,ne.initialValue,$)),ge.change(Ye),In&&!er&&!pa&&S5())}function Ih(){In&&!er&&!pa&&!Ce&&S5()}function L5(){u==="none"&&(V(mn),H(un!==ne.initialValue),ge.change(un))}ku(Nt,C5),ku(ft,_5),ku(Ye,af),ku(mi,Ih),ku(Se,Ih),ku(un,L5);let op=ZD({open:uo?!0:ft,onOpenChange:_s,elements:{reference:pa?Oo:Cs,floating:ks}}),M5=y?"grid":"listbox",ap=ft||uo,Nh=ap?"true":"false",Wa=gn.useMemo(()=>{let Fe=Cs?.tagName==="INPUT",tt=Cs==null||Fe,Me=tt||ap,At=tt?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return Me&&(At.role="combobox",At["aria-expanded"]=Nh,At["aria-haspopup"]=M5,At["aria-controls"]=ap?da?.id:void 0,At["aria-autocomplete"]=h?"none":P),{reference:At,floating:{role:"presentation"}}},[Cs,ap,Nh,M5,da?.id,P,h]),sf=$u(op,{enabled:!Dt&&_,event:"mousedown-only",toggle:!1,touchOpenDelay:pa?0:100,reason:he.inputPress}),sp=J0(op,{enabled:!Dt&&!uo,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:uo?!0:void 0,outsidePress(Fe){let tt=lr(Fe);return!ot(Oo,tt)&&!ot(rn.current,tt)&&!ot(Jt.current,tt)&&!ot(Th,tt)}}),ue=nx(op,{enabled:!Dt,id:be,listRef:Ke,activeIndex:Wi,selectedIndex:co,virtual:!0,loopFocus:T,allowEscape:T&&!Mt,focusItemOnOpen:Ce||u==="none"&&!Mt?!1:"auto",focusItemOnHover:C,resetOnPointerLeave:!S,orientation:y?"horizontal":void 0,rtl:ce==="rtl",disabledIndices:Us,grid:y?Cme:void 0,onNavigate(Fe,tt){!tt&&!ft||sc==="ending"||Va(tt?{activeIndex:Fe,type:zt.current?he.keyboard:he.pointer}:{activeIndex:Fe})}}),je=gn.useMemo(()=>Bi(ue.reference,{onKeyDown(Fe){y&&pt.state.activeIndex==null&&(Fe.key==="ArrowLeft"||Fe.key==="ArrowRight")&&Fe.preventBaseUIHandler()}},sp.reference,sf.reference,Wa.reference),[ue.reference,sp.reference,sf.reference,Wa.reference,y,pt]),Lt=gn.useMemo(()=>Bi(Z2,sp.floating),[sp.floating]),_n=gn.useMemo(()=>Bi(ue.floating,Wa.floating),[ue.floating,Wa.floating]),xr=gn.useMemo(()=>{let Fe=ue.item;return Fe?{...Fe,onFocus:void 0}:xn},[ue.item]);pt.useContextCallback("setOpen",_s),pt.useContextCallback("setInputValue",fi),pt.useContextCallback("setSelectedValue",hl),pt.useContextCallback("setIndices",Va),pt.useContextCallback("handleSelection",Za),pt.useContextCallback("forceMount",of),pt.useContextCallback("requestSubmit",cc),pt.useContextCallback("onOpenChangeComplete",n),kme(()=>{pt.update({inline:F,popupProps:Lt,listProps:_n,inputProps:je,triggerProps:nf,itemProps:xr})});let po={id:be,selectedValue:Ye,open:ft,mounted:Rh,transitionStatus:sc,items:Le,inline:F,popupProps:Lt,listProps:_n,inputProps:je,triggerProps:nf,itemProps:xr,openMethod:Fo,selectionMode:u,name:mn,form:m,disabled:Dt,readOnly:h,required:x,grid:y,virtualized:N,openOnInputClick:_,itemToStringLabel:Be,modal:O,autoHighlight:Mt,isItemEqualToValue:$,submitOnItemClick:j,hasInputValue:er};Ee(()=>{pt.update({...po,inputOwnsFormValue:u==="none"&&(F||!pt.state.inputInsidePopup)})},[pt,...Object.values(po)]);let Ss=wa(g,ge.inputRef),uu=gn.useMemo(()=>({query:Nt,hasItems:ae,filteredItems:Ge,flatFilteredValues:dn}),[Nt,ae,Ge,dn]),lf=gn.useMemo(()=>Array.isArray(vs)?"":dy(vs,A),[vs,A]),uc=yn&&Array.isArray(Ye)&&Ye.length>0,Zu=yn||u==="none"&&rp?void 0:mn,gl=gn.useMemo(()=>!yn||!Array.isArray(Ye)||!mn?null:Ye.map(Fe=>{let tt=dy(Fe,A);return(0,Ad.jsx)("input",{type:"hidden",form:m,name:mn,value:tt,disabled:Dt},tt)}),[yn,Ye,m,mn,A,Dt]),E5=(0,Ad.jsxs)(gn.Fragment,{children:[t.children,(0,Ad.jsx)("input",{...ge.getValidationProps(Dt,{onFocus(){if(pa){Oo?.focus();return}(Ae.current||Oo)?.focus()},onChange(Fe){if(Fe.nativeEvent.defaultPrevented||Dt||h)return;let tt=Fe.currentTarget.value,Me=tt.toLowerCase(),At=Xe(he.none,Fe.nativeEvent),$n=()=>Xt.current.findIndex(or=>dy(or,A).toLowerCase()===Me||xe(or).toLowerCase()===Me);function wr(){if(yn)return;if(u==="none"){fi(tt,At);return}let or=$n();or===-1&&(or=Xt.current.findIndex((hi,ma)=>{let Bo=mt.current[ma];return Bo!=null&&Bo.toLowerCase()===Me}));let kt=or===-1?void 0:Xt.current[or];kt!=null&&hl?.(kt,At)}In&&(of(),Se&&$n()===-1&&pt.set("forceMounted",!0)),queueMicrotask(wr)}}),id:be&&Zu==null?`${be}-hidden-input`:void 0,form:m,name:Zu,autoComplete:U,disabled:Dt,required:x&&!uc,readOnly:h,value:lf,ref:Ss,style:Zu?b2:g2,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),gl]});return(0,Ad.jsx)(UF.Provider,{value:pt,children:(0,Ad.jsx)(VF.Provider,{value:op,children:(0,Ad.jsx)(WF.Provider,{value:ae,children:(0,Ad.jsx)(ZF.Provider,{value:uu,children:(0,Ad.jsx)(KF.Provider,{value:un,children:E5})})})})})}var Dme=R(ee(),1);function Fme(t){let{openOnInputClick:e=!1,value:n,defaultValue:r,onValueChange:i,mode:o="list",itemToStringValue:a,...s}=t,l=(o==="inline"||o==="both")&&!t.readOnly,c=o==="inline"||o==="none",u=n!==void 0,[d,p]=xx.useState(r??""),[m,f]=xx.useState("");xx.useEffect(()=>{(u||!l)&&f("")},[n,u,l]);let h;l&&m!==""?h=m:u?h=n??"":h=d;let x=py({locale:s.locale}),g=String((u?n:d)??"").trim(),y=c||s.filter===null?null:s.filter??x.contains;function b(v,k){f(""),u||p(v),i?.(v,k)}function w(v,k){t.onItemHighlighted?.(v,k),k.reason!==he.pointer&&f(l&&v!=null?Rd(v,a):"")}return(0,Dme.jsx)(Ome,{...s,itemToStringLabel:a,openOnInputClick:e,selectionMode:"none",fillInputOnItemPress:!0,filter:y,filterQuery:o==="both"?g:void 0,autoComplete:o,inputValue:h,defaultInputValue:r,onInputValueChange:b,onItemHighlighted:w})}var Bme=R(Q(),1);var zme=R(ee(),1);function qme(t){let{children:e}=t,n=D1(),r=null;return typeof e=="function"?r=e(String(n)):e!=null?r=e:r=n,(0,zme.jsx)(Bme.Fragment,{children:r})}var IL=R(Q(),1);var DTt=H0.popupOpen,FTt=H0.pressed;var Hme="data-popup-side";var Gme="data-list-empty";var my={...G0,...HC,popupSide:t=>t?{[Hme]:t}:null,listEmpty:t=>t?{[Gme]:""}:null};var RL=5;function AL(t,e){let n=RHe(e);return t.clientX>=n.left-RL&&t.clientX<=n.right+RL&&t.clientY>=n.top-RL&&t.clientY<=n.bottom+RL}function RHe(t){let e=t.getBoundingClientRect(),n=Qn(t);if(Nn.env.jsdom)return e;let r=n.getComputedStyle(t,"::before"),i=n.getComputedStyle(t,"::after");if(!(r.content!=="none"||i.content!=="none"))return e;let a=parseFloat(r.width)||0,s=parseFloat(r.height)||0,l=parseFloat(i.width)||0,c=parseFloat(i.height)||0,u=Math.max(e.width,a,l),d=Math.max(e.height,s,c),p=u-e.width,m=d-e.height;return{left:e.left-p/2,right:e.right+p/2,top:e.top-m/2,bottom:e.bottom+m/2}}function Ume(t,e){return t??e}function fy(t){let e=t.useState("mounted"),n=t.useState("popupSide"),r=t.useState("positionerElement");return e&&r?n:null}function $d(){return Vc().filteredItems.length===0}function Vme(t){return t==="rtl"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]}function Zme(t,e){let n=t>=e-1?e-2:t;return n>=0?n:void 0}function $L(t,e,n){let r=t.context.listRef.current[e];r&&(t.context.selectionEventRef.current=n,r.click(),t.context.selectionEventRef.current=null)}var Wme=IL.forwardRef(function(e,n){let{render:r,className:i,nativeButton:o=!0,disabled:a=!1,id:s,style:l,...c}=e,{state:u,disabled:d,setTouched:p,setFocused:m,validationMode:f,validation:h}=Vs(),{labelId:x}=g1(),g=pr(),y=g.useState("selectionMode"),b=g.useState("disabled"),w=g.useState("readOnly"),v=g.useState("required"),k=g.useState("positionerElement"),_=g.useState("listElement"),L=g.useState("popupId"),S=g.useState("triggerProps"),C=g.useState("inputInsidePopup"),T=g.useState("id"),M=g.useState("labelId"),A=g.useState("open"),$=g.useState("selectedValue"),N=g.useState("activeIndex"),F=g.useState("selectedIndex"),D=g.useState("hasSelectedValue"),O=O1(),B=D1(),P=Br(),U=d||b||a,G=$d(),j=fy(g);v2({id:C?s:void 0});let V=C?s??T:s,H=Ume(x,M),ne;A&&C?ne=L??EL(T):A&&(ne=_?.id);let J=IL.useRef("");function W(ke){J.current=ke.pointerType}let{reference:ie}=rx(O,{enabled:!A&&!w&&!b&&y==="single",listRef:g.context.labelsRef,activeIndex:N,selectedIndex:F,onMatch(ke){let me=g.context.valuesRef.current[ke];me!==void 0&&g.context.setSelectedValue(me,Xe(he.none))}}),{reference:Z}=$u(O,{enabled:!b,event:"mousedown"}),{buttonRef:le,getButtonProps:se}=zi({native:o,disabled:U}),ge={...u,readOnly:w,open:A,disabled:U,popupSide:j,listEmpty:G,placeholder:y==="none"?!1:!D},ce=Pe(ke=>{g.set("triggerElement",ke)});return We("button",e,{ref:[n,le,ce],state:ge,props:[S,Z,ie,{id:V,tabIndex:C?0:-1,role:C?"combobox":void 0,"aria-expanded":A,"aria-haspopup":C?"dialog":"listbox","aria-controls":ne,"aria-required":C&&v||void 0,"aria-readonly":C&&w||void 0,"aria-labelledby":H,onPointerDown:W,onPointerEnter:W,onFocus(){m(!0),!U&&P.start(0,g.context.forceMount)},onBlur(ke){if(!ot(k,ke.relatedTarget)&&(p(!0),m(!1),f==="onBlur")){let me=y==="none"?B:$;h.commit(me)}},onMouseDown(ke){if(U||(C||O.set("domReferenceElement",ke.currentTarget),g.context.forceMount(),J.current!=="touch"&&(g.context.inputRef.current?.focus(),C||ke.preventDefault()),A))return;let me=Wt(ke.currentTarget);function Se(de){let Le=g.state.triggerElement;if(!Le)return;let Ne=lr(de),Be=g.state.positionerElement,_e=g.state.listElement;ot(Le,Ne)||ot(Be,Ne)||ot(_e,Ne)||AL(de,Le)||g.context.setOpen(!1,Xe(he.cancelOpen,de))}C&&me.addEventListener("mouseup",Se,{once:!0})},onKeyDown(ke){(ke.key==="ArrowDown"||ke.key==="ArrowUp")&&(zr(ke),g.context.setOpen(!0,Xe(he.listNavigation,ke.nativeEvent)),g.context.inputRef.current?.focus())}},h.getValidationProps(U,c),se],stateAttributesMapping:my})});var Kme=Wme;var Id=R(Q(),1);var NL=R(Q(),1),AHe=NL.createContext(void 0);function Xme(){return NL.useContext(AHe)}var PL=R(Q(),1),QF=PL.createContext(void 0);function F1(t){let e=PL.useContext(QF);if(e===void 0&&!t)throw new Error(Ft(21));return e}var Yme=R(Q(),1);var Qme=R(ee(),1),jL=Yme.forwardRef(function(e,n){let r=pr(),{buttonRef:i,getButtonProps:o}=zi({native:!1}),a=wa(n,i);function s(c){r.context.setOpen(!1,Xe(he.closePress,c.nativeEvent,c.currentTarget))}let l=o({onClick:s});return(0,Qme.jsx)("span",{ref:a,...l,"aria-label":"Dismiss",tabIndex:void 0,style:b2})});var wx=R(ee(),1),Jme=Id.forwardRef(function(e,n){let{render:r,className:i,disabled:o=!1,id:a,style:s,...l}=e,{state:c,disabled:u,setTouched:d,setFocused:p,validationMode:m,validation:f}=Vs(),{labelId:h}=g1(),x=Xme(),y=!!F1(!0),b=pr(),w=D1(),v=Gc(),k=b.useState("required"),_=b.useState("disabled"),L=b.useState("readOnly"),S=b.useState("name"),C=b.useState("form"),T=b.useState("selectionMode"),M=b.useState("autoHighlight"),A=b.useState("inputProps"),$=b.useState("triggerProps"),N=b.useState("open"),F=b.useState("mounted"),D=b.useState("selectedValue"),O=b.useState("id"),B=b.useState("inline"),P=b.useState("modal"),U=!!M,G=fy(b),j=u||_||o,V=$d(),H=y||B,ne=!H||P,J=dr(a??(H?void 0:O)),W=y?sO:c,[ie,Z]=Id.useState(null),le=Id.useRef(!1),se=Id.useRef(null),ge=Id.useRef(!1),ce=T==="none"&&!y,be=Pe(_e=>{let xe=y||b.state.inline;xe&&!b.state.hasInputValue&&b.context.setInputValue("",Xe(he.none)),b.update({inputElement:_e,inputInsidePopup:xe,inputOwnsFormValue:ce})}),ke=y?l:f.getValidationProps(j,l);function me(){b.context.setIndices({activeIndex:null,selectedIndex:null,type:b.context.keyboardActiveRef.current?he.keyboard:he.pointer})}function Se(){b.context.keyboardActiveRef.current=!1}let de={...W,open:N,disabled:j,readOnly:L,popupSide:G,listEmpty:V};function Le(_e){if(!x)return;let xe,{highlightedChipIndex:Ce}=x,K=x.chipsRef.current.length,[Y,ye]=Vme(v);return Ce!==void 0?(_e.key===Y?(_e.preventDefault(),Ce>0?xe=Ce-1:xe=void 0):_e.key===ye?(_e.preventDefault(),Ce<K-1?xe=Ce+1:xe=void 0):(_e.key==="Backspace"||_e.key==="Delete")&&(_e.preventDefault(),xe=Zme(Ce,D.length),me()),xe):(_e.key===Y&&(_e.currentTarget.selectionStart??0)===0&&D.length>0&&(_e.preventDefault(),xe=K>0?K-1:void 0),xe)}let Ne=We("input",e,{state:de,ref:[n,b.context.inputRef,be],props:[A,$,{value:ie??w,"aria-readonly":L||void 0,"aria-required":k||void 0,"aria-labelledby":h,disabled:j,readOnly:L,required:T==="none"?k:void 0,form:C,...ce&&S&&{name:S},id:J,onFocus(){if(p(!0),!B||!ge.current)return;ge.current=!1;let _e=se.current;_e==null||!Object.hasOwn(b.context.valuesRef.current,_e)||b.context.setIndices({activeIndex:_e})},onBlur(){d(!0),p(!1);let _e=b.state.activeIndex;if(B&&_e!==null&&M!=="always"&&(se.current=_e,ge.current=!0,b.context.setIndices({activeIndex:null})),m==="onBlur"){let xe=T==="none"?w:D;f.commit(xe)}},onCompositionStart(_e){Nn.os.android||(le.current=!0,Z(_e.currentTarget.value))},onCompositionEnd(_e){le.current=!1;let xe=_e.currentTarget.value;Z(null),b.context.setInputValue(xe,Xe(he.inputChange,_e.nativeEvent))},onChange(_e){let xe=_e.nativeEvent,Ce=xe.inputType,K=!Ce||Ce==="insertReplacementText",Y=le.current||!K;function ye(dt){L||j||!dt||!Y||(b.context.setOpen(!0,Xe(he.inputChange,xe)),U||me())}if(le.current){let dt=_e.currentTarget.value;Z(dt),dt===""&&!b.state.openOnInputClick&&!b.state.inputInsidePopup&&b.context.setOpen(!1,Xe(he.inputClear,xe));let Ae=dt.trim(),wt=U&&Ae!=="";ye(Ae),N&&b.state.activeIndex!==null&&!wt&&me();return}let Re=Xe(he.inputChange,xe);if(b.context.setInputValue(_e.currentTarget.value,Re),Re.isCanceled)return;let Ke=_e.currentTarget.value==="",mt=Xe(he.inputClear,xe);Ke&&!b.state.inputInsidePopup&&(T==="single"&&b.context.setSelectedValue(null,mt),b.state.openOnInputClick||b.context.setOpen(!1,mt)),ye(_e.currentTarget.value.trim()),N&&b.state.activeIndex!==null&&!U&&me()},onKeyDown(_e){if(_e.ctrlKey||_e.shiftKey||_e.altKey||_e.metaKey)return;if(b.context.keyboardActiveRef.current=!0,j||L){L&&_e.key==="Enter"&&N&&b.state.activeIndex!==null&&zr(_e);return}let xe=_e.currentTarget,Ce=xe.scrollWidth-xe.clientWidth,K=v==="rtl";if(_e.key==="Home"){zr(_e);let Re=Nn.engine.gecko&&K?xe.value.length:0;xe.setSelectionRange(Re,Re),xe.scrollLeft=0;return}if(_e.key==="End"){zr(_e);let Re=Nn.engine.gecko&&K?0:xe.value.length;xe.setSelectionRange(Re,Re),xe.scrollLeft=K?-Ce:Ce;return}if(!F&&_e.key==="Escape"){let Re=T==="multiple"&&Array.isArray(D)?D.length===0:D===null,Ke=Xe(he.escapeKey,_e.nativeEvent),mt=T==="multiple"?[]:null;b.context.setInputValue("",Ke),b.context.setSelectedValue(mt,Ke),!Re&&!b.state.inline&&!Ke.isPropagationAllowed&&_e.stopPropagation();return}if(x&&_e.key==="Backspace"&&xe.value===""&&x.highlightedChipIndex===void 0&&Array.isArray(D)&&D.length>0){let Re=x.chipsRef.current.length,Ke=Re>0?Re-1:D.length-1,mt=D.filter((dt,Ae)=>Ae!==Ke);me(),b.context.setSelectedValue(mt,Xe(he.none,_e.nativeEvent));return}let Y=x?.highlightedChipIndex!==void 0,ye=Le(_e);if(x?.setHighlightedChipIndex(ye),ye!==void 0?x?.chipsRef.current[ye]?.focus():Y&&b.context.inputRef.current?.focus(),_e.which!==229&&_e.key==="Enter"&&N){let Re=b.state.activeIndex,Ke=_e.nativeEvent;if(Re===null){if(B)return;b.context.setOpen(!1,Xe(he.none,Ke));return}zr(_e),$L(b,Re,Ke)}},onPointerMove:Se,onPointerDown:Se},ke],stateAttributesMapping:my}),Be=y?(0,wx.jsx)(gO.Provider,{value:hO,children:Ne}):Ne;return(0,wx.jsxs)(Id.Fragment,{children:[N&&ne&&(0,wx.jsx)(jL,{ref:b.context.startDismissRef}),Be]})});var tfe=R(Q(),1);function efe(t,e,n,r){if(t.baseUIHandlerPrevented)return;let i=lr(t.nativeEvent),o=ln(i)?i:null;o!==t.currentTarget&&(r?.(o)||F6(o))||(t.preventDefault(),!n&&(e.context.inputRef.current?.focus(),e.state.openOnInputClick&&e.context.setOpen(!0,Xe(he.inputPress,t.nativeEvent))))}var nfe=tfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,{state:s}=Vs(),l=pr(),c=l.useState("open"),u=l.useState("disabled"),d=l.useState("readOnly"),p=l.useState("hasSelectedValue"),m=l.useState("selectionMode"),f=fy(l),h=u,x=$d(),y={...s,open:c,disabled:h,readOnly:d,popupSide:f,listEmpty:x,placeholder:m==="none"?!1:!p},b=Pe(w=>{l.set("inputGroupElement",w)});return We("div",e,{ref:[n,b],props:[{role:"group",onMouseDown(w){efe(w,l,h,v=>ot(l.context.chipsContainerRef.current,v))}},a],state:y,stateAttributesMapping:my})});var rfe=nfe;var ife=R(Q(),1);var ofe=ife.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e;return We("span",e,{ref:n,props:[{"aria-hidden":!0,children:"\u25BC"},a]})});var afe=R(Q(),1);var $He={...Dc,...B2},sfe=afe.forwardRef(function(e,n){let{render:r,className:i,disabled:o=!1,nativeButton:a=!0,keepMounted:s=!1,style:l,...c}=e,{disabled:u}=Vs(),d=pr(),p=d.useState("selectionMode"),m=d.useState("disabled"),f=d.useState("readOnly"),h=d.useState("open"),x=d.useState("selectedValue"),g=d.useState("hasSelectionChips"),y=D1(),b=!1;p==="none"?b=y!=="":p==="single"?b=x!=null:b=g;let w=u||m||o,{buttonRef:v,getButtonProps:k}=zi({native:a,disabled:w}),{mounted:_,transitionStatus:L,setMounted:S}=Oc(b),C={disabled:w,visible:b,open:h,transitionStatus:L};Ro({open:b,ref:d.context.clearRef,onComplete(){b||S(!1)}});let T=We("button",e,{state:C,ref:[n,v,d.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(A){A.preventDefault()},onClick(A){if(w||f)return;let $=d.context.keyboardActiveRef.current?he.keyboard:he.pointer;d.context.setInputValue("",Xe(he.clearPress,A.nativeEvent)),p!=="none"?(d.context.setSelectedValue(Array.isArray(x)?[]:null,Xe(he.clearPress,A.nativeEvent)),d.context.setIndices({activeIndex:null,selectedIndex:null,type:$})):d.context.setIndices({activeIndex:null,type:$}),d.context.inputRef.current?.focus()}},c,k],stateAttributesMapping:$He});return s||_?T:null});var BL=R(Q(),1);var pfe=R(Q(),1);var hy=R(Q(),1),lfe=R(ee(),1),cfe=hy.createContext(null);function ufe(){return hy.useContext(cfe)}function dfe(t){let{children:e,items:n}=t,r=hy.useMemo(()=>({items:n}),[n]);return(0,lfe.jsx)(cfe.Provider,{value:r,children:e})}var mfe=R(ee(),1);function OL(t){let{children:e}=t,{filteredItems:n}=Vc(),r=ufe(),i=r?r.items:n;return(0,mfe.jsx)(pfe.Fragment,{children:i.map(e)})}var hm=R(Q(),1);var DL=R(Q(),1),JF=DL.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function ffe(){return DL.useContext(JF)}var hfe=R(ee(),1);function FL(t){let{children:e,elementsRef:n,labelsRef:r,onMapChange:i}=t,o=Pe(i),[,a]=hm.useState(!1),s=Vn(NHe).current,l=Vn(IHe).current,c=hm.useRef(0),u=hm.useRef(!0),d=hm.useRef(null),p=hm.useRef(null),m=Pe(()=>{u.current||(u.current=!0,a(v=>!v))}),f=Pe((v,k)=>{l.set(v,k),m()}),h=Pe(v=>{l.delete(v),m()}),x=Pe(v=>{let k=new Map;return n.current.length=0,r&&(r.current.length=0),v.forEach(_=>{k.set(_.element,{..._.registration.metadata??{},index:_.index}),n.current[_.index]=_.element,r&&(r.current[_.index]=_.registration.label!==void 0?_.registration.label:_.registration.textRef?.current?.textContent??_.element.textContent)}),c.current=n.current.length,k});function g(v){if(p.current?.disconnect(),p.current=null,typeof MutationObserver!="function"||v.length<2)return;let k=new MutationObserver(L=>{if(!OHe(L))return;let S=null;for(let C of v)if(C.isConnected){if(S&&gfe(S,C)>0){k.disconnect(),m();return}S=C}});p.current=k;let _=new Set;for(let L=1;L<v.length;L+=1){let S=jHe(v[L-1],v[L]);S&&_.add(S)}_.forEach(L=>k.observe(L,{childList:!0}))}let y=Pe(()=>{let[v,k]=PHe(l),_=x(v),L=d.current,S=!L||L.length!==v.length||v.some((C,T)=>{let M=L[T];return C.index!==M.index||C.element!==M.element||C.registration.index!==M.registration.index||C.registration.metadata!==M.registration.metadata});g(k),d.current=v,u.current=!1,S&&(s.forEach(C=>C(_)),o(_))});Ee(()=>(!u.current&&d.current&&x(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,x]),Ee(()=>{u.current&&y()}),Ee(()=>()=>{p.current?.disconnect(),u.current=!0},[]);let b=Pe(v=>(s.add(v),()=>{s.delete(v)})),w=hm.useMemo(()=>({register:f,unregister:h,subscribeMapChange:b,nextIndexRef:c}),[f,h,b,c]);return(0,hfe.jsx)(JF.Provider,{value:w,children:e})}function IHe(){return new Map}function NHe(){return new Set}function PHe(t){let e=new Set,n=[],r=[];t.forEach((o,a)=>{if(!a.isConnected)return;let s=o.index,l={index:s??-1,element:a,registration:o};s===null?r.push(l):s>=0&&(e.add(s),n.push(l))});let i=0;return r.sort((o,a)=>gfe(o.element,a.element)),r.forEach(o=>{for(;e.has(i);)i+=1;o.index=i,n.push(o),i+=1}),e.size>0&&n.sort((o,a)=>o.index-a.index),[n,r.map(o=>o.element)]}function jHe(t,e){let n=t.parentElement;for(;n&&!n.contains(e);)n=n.parentElement;return n}function OHe(t){for(let e of t)for(let n=0;n<e.removedNodes.length;n+=1)if(e.removedNodes[n].isConnected)return!0;return!1}function gfe(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var eB=R(ee(),1),bfe=BL.forwardRef(function(e,n){var r;let{render:i,className:o,style:a,children:s,...l}=e,c=pr(),u=O1(),d=!!F1(!0),{filteredItems:p,hasItems:m}=Vc(),f=c.useState("selectionMode"),h=c.useState("grid"),x=c.useState("readOnly"),g=c.useState("listProps"),y=c.useState("virtualized"),b=c.useState("forceMounted"),w=f==="multiple",v=p.length===0,k=Pe(A=>{c.set("positionerElement",A)}),_=Pe(A=>{c.set("listElement",A)}),L=BL.useMemo(()=>typeof s=="function"?r||(r=(0,eB.jsx)(OL,{children:s})):s,[s]),S={empty:v},C=u.useState("floatingId"),T=We("div",e,{state:S,ref:[n,_,d?null:k],props:[g,{children:L,tabIndex:-1,id:C,role:h?"grid":"listbox","aria-multiselectable":w?"true":void 0,"aria-readonly":!h&&x?!0:void 0,onKeyDown(A){if(!(c.state.disabled||c.state.readOnly)&&A.key==="Enter"){let $=c.state.activeIndex;if($==null)return;zr(A),$L(c,$,A.nativeEvent)}},onKeyDownCapture(){c.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.context.keyboardActiveRef.current=!1}},l]});if(y)return T;let M=m&&!b?void 0:c.context.labelsRef;return(0,eB.jsx)(FL,{elementsRef:c.context.listRef,labelsRef:M,children:T})});var yfe=R(Q(),1);var zL=R(Q(),1);var DHe="\u2060",FHe=200;function BHe(t){let e=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_TEXT),n=null;for(;e.nextNode();){let r=e.currentNode;r.nodeValue!==""&&(n=r)}return n}function qL(){let t=Br(),e=zL.useRef(null);return zL.useEffect(()=>{if(Nn.os.ios)return;let n=e.current;if(n==null)return;let r=BHe(n);if(r==null)return;let i=r.data,o=`${i}${DHe}`;return r.nodeValue=o,t.start(FHe,()=>{r.nodeValue===o&&(r.nodeValue=i)}),()=>{t.clear(),r.nodeValue===o&&(r.nodeValue=i)}},[e,t]),e}var xfe=yfe.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,l=qL();return We("div",e,{ref:[n,l],props:[{children:a,role:"status","aria-live":"polite","aria-atomic":!0},s]})});var vfe=R(Q(),1);var HL=R(Q(),1),tB=HL.createContext(void 0);function wfe(){let t=HL.useContext(tB);if(t===void 0)throw new Error(Ft(20));return t}var nB=R(ee(),1),kfe=vfe.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e,o=pr(),a=o.useState("mounted"),s=o.useState("forceMounted");return a||r||s?(0,nB.jsx)(tB.Provider,{value:r,children:(0,nB.jsx)(X0,{ref:n,...i})}):null});var Cfe=R(Q(),1);var zHe={...zl,...Dc},_fe=Cfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=pr(),l=s.useState("open"),c=s.useState("mounted"),u=s.useState("transitionStatus");return We("div",e,{state:{open:l,transitionStatus:u},ref:n,stateAttributesMapping:zHe,props:[{role:"presentation",hidden:!c,style:{userSelect:"none",WebkitUserSelect:"none"}},a]})});var Sfe=R(Q(),1);var GL=R(ee(),1),Lfe=Sfe.forwardRef(function(e,n){let{render:r,className:i,anchor:o,positionMethod:a,side:s,align:l,sideOffset:c,alignOffset:u,collisionBoundary:d="clipping-ancestors",collisionPadding:p,arrowPadding:m,sticky:f,disableAnchorTracking:h=!1,collisionAvoidance:x=oS,style:g,...y}=e,b=pr(),w=O1(),v=wfe(),k=b.useState("modal"),_=b.useState("open"),L=b.useState("mounted"),S=b.useState("openMethod"),C=b.useState("positionerElement"),T=b.useState("triggerElement"),M=b.useState("inputElement"),A=b.useState("inputGroupElement"),$=b.useState("inputInsidePopup"),N=b.useState("transitionStatus"),F=$d(),O=J2({anchor:o??($?T:A??M),floatingRootContext:w,positionMethod:a,mounted:L,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:m,collisionBoundary:d,collisionPadding:p,sticky:f,disableAnchorTracking:h,keepMounted:v,collisionAvoidance:x,lazyFlip:!0});ny(_&&k,S==="touch",C,T);let B={open:_,side:O.side,align:O.align,anchorHidden:O.anchorHidden,empty:F};Ee(()=>{b.set("popupSide",O.side)},[b,O.side]);let P=Pe(G=>{b.set("positionerElement",G)}),U=ty(e,B,{styles:O.positionerStyles,transitionStatus:N,props:y,refs:[n,P],hidden:!L,inert:!_});return(0,GL.jsxs)(QF.Provider,{value:O,children:[L&&k&&(0,GL.jsx)(ey,{inert:A1(!_),cutout:A??M??T}),U]})});var UL=R(Q(),1);var vx=R(ee(),1),qHe={...zl,...Dc},Mfe=UL.forwardRef(function(e,n){let{render:r,className:i,style:o,initialFocus:a,finalFocus:s,...l}=e,c=pr(),u=F1(),d=O1(),p=c.useState("mounted"),m=c.useState("open"),f=c.useState("openMethod"),h=c.useState("popupProps"),x=c.useState("transitionStatus"),g=c.useState("inputInsidePopup"),y=c.useState("inputElement"),b=c.useState("modal"),w=c.useState("id"),v=$d(),k=l.id??(g?EL(w):void 0);Ee(()=>(c.set("popupId",c.context.popupRef.current?.id||k),()=>{c.set("popupId",void 0)}),[c,k]),Ro({open:m,ref:c.context.popupRef,onComplete(){m&&c.context.onOpenChangeComplete(!0)}});let _={open:m,side:u.side,align:u.align,anchorHidden:u.anchorHidden,transitionStatus:x,empty:v},L=We("div",e,{state:_,ref:[n,c.context.popupRef],props:[h,{id:k,role:g?"dialog":"presentation",onFocus(A){let $=lr(A.nativeEvent);f!=="touch"&&(ot(c.state.listElement,$)||$===A.currentTarget)&&c.context.inputRef.current?.focus()}},$1(x),l],stateAttributesMapping:qHe}),C=a===void 0?g?A=>A==="touch"?c.context.popupRef.current:y:!1:a,T;s!=null?T=s:T=g?void 0:!1;let M=!g||b;return(0,vx.jsx)(Q0,{context:d,disabled:!p,modal:M,openInteractionType:f,initialFocus:C,returnFocus:T,getInsideElements:()=>[c.context.startDismissRef.current,c.context.endDismissRef.current],children:(0,vx.jsxs)(UL.Fragment,{children:[L,M&&(0,vx.jsx)(jL,{ref:c.context.endDismissRef})]})})});var Efe=R(Q(),1);var Tfe=Efe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=pr(),{arrowRef:l,side:c,align:u,arrowUncentered:d,arrowStyles:p}=F1(),f={open:s.useState("open"),side:c,align:u,uncentered:d};return We("div",e,{ref:[l,n],stateAttributesMapping:zl,state:f,props:{style:p,"aria-hidden":!0,...a}})});var gy=R(Q(),1);var VL=R(Q(),1),rB=VL.createContext(void 0);function Rfe(){let t=VL.useContext(rB);if(t===void 0)throw new Error(Ft(18));return t}var iB=R(ee(),1),Afe=gy.forwardRef(function(e,n){let{render:r,className:i,style:o,items:a,...s}=e,c=pr().useState("grid"),[u,d]=gy.useState(),p=gy.useMemo(()=>({labelId:u,setLabelId:d,items:a}),[u,d,a]),m=We("div",e,{ref:n,props:[{role:c?"rowgroup":"group","aria-labelledby":u},s]}),f=(0,iB.jsx)(rB.Provider,{value:p,children:m});return a?(0,iB.jsx)(dfe,{items:a,children:f}):f});var $fe=R(Q(),1);var Ife=$fe.forwardRef(function(e,n){let{render:r,className:i,style:o,id:a,...s}=e,{setLabelId:l}=Rfe(),c=dr(a);return Ee(()=>(l(c),()=>{l(d=>d===c?void 0:d)}),[c,l]),We("div",e,{ref:n,props:[{id:c,"aria-hidden":!0},s]})});var gm=R(Q(),1),jfe=R(Ms(),1);var ug=R(Q(),1);function tl(t={}){let{guess:e,label:n,metadata:r,textRef:i,index:o}=t,{register:a,unregister:s,subscribeMapChange:l,nextIndexRef:c}=ffe(),u=ug.useRef(-1),[d,p]=ug.useState(o==null&&e?()=>{if(u.current===-1){let x=c.current;c.current+=1,u.current=x}return u.current}:-1),m=o??d,f=ug.useRef(null),h=ug.useCallback(x=>{let g=f.current;g&&s(g),f.current=x,x&&a(x,{metadata:r??null,index:o??null,label:n,textRef:i})},[o,a,s,r,n,i]);return Ee(()=>{if(o==null)return l(x=>{let g=f.current?x.get(f.current)?.index:null;g!=null&&p(g)})},[o,l]),{ref:h,index:m}}var oB=R(Q(),1),Nfe=oB.createContext(void 0);var ZL=R(Q(),1),aB=ZL.createContext(!1);function Pfe(){return ZL.useContext(aB)}var kx=R(ee(),1);function Ofe(t){let{componentProps:e,forwardedRef:n,virtualized:r,indexFromFilter:i}=t,{render:o,className:a,style:s,value:l=null,index:c,disabled:u=!1,nativeButton:d=!1,...p}=e,m=gm.useRef(null),f=tl({guess:!0,index:c,textRef:m}),h=pr(),x=Pfe(),g=_me(),y=h.useState("selectionMode"),b=h.useState("disabled"),w=h.useState("readOnly"),v=h.useState("isItemEqualToValue"),k=b||u,_=y!=="none",L=c??i??f.index,S=L!==-1,C=h.useState("id"),T=h.useState("isActive",L),M=h.useState("isSelected",l),A=h.useState("itemProps"),$=gm.useRef(null),N=C!=null&&S?`${C}-${L}`:void 0,F=M&&_;Ee(()=>{if(!(S&&(r||c!=null)))return;let H=h.context.listRef.current;return H[L]=$.current,()=>{delete H[L]}},[S,r,L,c,h]),Ee(()=>{if(!S||g)return;let V=h.context.valuesRef.current;return V[L]=l,()=>{delete V[L]}},[S,g,L,l,h]),Ee(()=>{if(!S||g)return;let V=h.state.selectedValue,H=h.state.selectedIndex;h.state.selectionMode==="multiple"&&Array.isArray(V)?H=Mme(L,l,h.context.valuesRef.current,V,v,H):Ul(l,V,v)&&(H=L),h.set("selectedIndex",H)},[S,g,h,L,l,v]);let{getButtonProps:D,buttonRef:O}=zi({disabled:k,focusableWhenDisabled:!0,native:d,composite:!0}),B={disabled:k,selected:F,highlighted:T};function P(V){function H(){h.context.handleSelection(V,l)}h.state.submitOnItemClick?(jfe.flushSync(H),h.context.requestSubmit()):H()}let U={id:N,role:x?"gridcell":"option","aria-selected":_?F:void 0,tabIndex:void 0,onPointerDownCapture(V){V.isPrimary&&(h.context.pointerDownItemRef.current=V.currentTarget),V.preventDefault()},onMouseDown(V){V.preventDefault()},onClick(V){k||w||P(V.nativeEvent)},onMouseUp(V){let H=h.context.pointerDownItemRef.current===V.currentTarget;h.context.pointerDownItemRef.current=null,!(k||w||V.button!==0||H||!T)&&P(V.nativeEvent)}},G=We("div",e,{ref:[O,n,f.ref,$],state:B,props:[A,U,p,D]}),j=gm.useMemo(()=>({selected:F,textRef:m}),[F,m]);return(0,kx.jsx)(Nfe.Provider,{value:j,children:G})}function HHe(t){let{componentProps:e,forwardedRef:n}=t,i=pr().useState("isItemEqualToValue"),{flatFilteredValues:o}=Vc(),a=e.value??null,s=bx(o,a,i);return(0,kx.jsx)(Ofe,{componentProps:e,forwardedRef:n,virtualized:!0,indexFromFilter:s})}var Dfe=gm.memo(gm.forwardRef(function(e,n){let i=pr().useState("virtualized");return i&&e.index==null?(0,kx.jsx)(HHe,{componentProps:e,forwardedRef:n}):(0,kx.jsx)(Ofe,{componentProps:e,forwardedRef:n,virtualized:i,indexFromFilter:void 0})}));var Ffe=Dfe;var Bfe=R(Q(),1);var zfe=R(ee(),1),qfe=Bfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,s=We("div",e,{ref:n,props:[{role:"row"},a]});return(0,zfe.jsx)(aB.Provider,{value:!0,children:s})});var Hfe=R(Q(),1);var Gfe=Hfe.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,{filteredItems:l}=Vc(),c=pr(),u=qL(),d=l.length===0?a:null;return We("div",e,{ref:[n,c.context.emptyRef,u],props:[{children:d,role:"status","aria-live":"polite","aria-atomic":!0},s]})});var Ufe=R(Q(),1);var Vfe=Ufe.forwardRef(function(e,n){let{className:r,render:i,orientation:o="horizontal",style:a,...s}=e;return We("div",e,{state:{orientation:o},ref:n,props:[{role:"presentation"},s]})});var Zfe=Vfe;function Wfe(){return Vc().filteredItems}var Pu=R(ee(),1);function Xfe(t){let e=(0,Kfe.c)(46),{defaultValue:n,suggestions:r,onQuery:i,onSubmit:o,onCancel:a,label:s,placeholder:l,inputClassName:c,listClassName:u,itemClassName:d,inputRef:p,inline:m,renderItem:f}=t,h=n===void 0?"":n,x=m===void 0?!1:m,g=oy(),[y,b]=(0,sB.useState)(h),[w,v]=(0,sB.useState)(void 0),k;e[0]!==i?(k=H=>{b(H),i(H)},e[0]=i,e[1]=k):k=e[1];let _=k,L;e[2]!==w||e[3]!==a||e[4]!==o||e[5]!==r[0]||e[6]!==r.length||e[7]!==_?(L=H=>{if(H.metaKey||H.ctrlKey||H.altKey)return;let ne=H.currentTarget.value;H.key==="Enter"?(H.preventDefault(),H.preventBaseUIHandler?.(),o(w??ne)):H.key==="Escape"?(H.preventDefault(),H.stopPropagation(),H.preventBaseUIHandler?.(),a()):H.key==="Tab"&&!H.shiftKey&&r.length&&(H.preventDefault(),H.preventBaseUIHandler?.(),_(w??r[0]))},e[2]=w,e[3]=a,e[4]=o,e[5]=r[0],e[6]=r.length,e[7]=_,e[8]=L):L=e[8];let S=L,C;e[9]!==u?(C=Zs("ui-combobox-list",u),e[9]=u,e[10]=C):C=e[10];let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=(0,Pu.jsx)("ul",{}),e[11]=T):T=e[11];let M=r.length===0,A;e[12]!==d||e[13]!==o||e[14]!==f?(A=H=>(0,Pu.jsx)(Nd.Item,{value:H,className:Zs("ui-combobox-item",d),render:(0,Pu.jsx)("li",{}),onClick:()=>o(H),children:f?f(H):H},H),e[12]=d,e[13]=o,e[14]=f,e[15]=A):A=e[15];let $;e[16]!==C||e[17]!==M||e[18]!==A?($=(0,Pu.jsx)(Nd.List,{className:C,render:T,hidden:M,children:A}),e[16]=C,e[17]=M,e[18]=A,e[19]=$):$=e[19];let N=$,F=r,D;e[20]!==_?(D=H=>_(H),e[20]=_,e[21]=D):D=e[21];let O=x||r.length>0,B;e[22]===Symbol.for("react.memo_cache_sentinel")?(B=H=>v(H),e[22]=B):B=e[22];let P;e[23]!==c?(P=Zs("ui-field",c),e[23]=c,e[24]=P):P=e[24];let U;e[25]!==a?(U=()=>a(),e[25]=a,e[26]=U):U=e[26];let G;e[27]!==p||e[28]!==s||e[29]!==S||e[30]!==l||e[31]!==P||e[32]!==U?(G=(0,Pu.jsx)(Nd.Input,{ref:p,className:P,"aria-label":s,placeholder:l,spellCheck:!1,onKeyDown:S,onBlur:U}),e[27]=p,e[28]=s,e[29]=S,e[30]=l,e[31]=P,e[32]=U,e[33]=G):G=e[33];let j;e[34]!==g||e[35]!==x||e[36]!==N?(j=x?N:(0,Pu.jsx)(Nd.Portal,{container:g,children:(0,Pu.jsx)(Nd.Positioner,{className:"ui-positioner",sideOffset:2,align:"start",children:(0,Pu.jsx)(Nd.Popup,{className:"ui-popup ui-combobox-popup",children:N})})}),e[34]=g,e[35]=x,e[36]=N,e[37]=j):j=e[37];let V;return e[38]!==x||e[39]!==F||e[40]!==D||e[41]!==O||e[42]!==G||e[43]!==j||e[44]!==y?(V=(0,Pu.jsxs)(Nd.Root,{items:F,filter:null,value:y,onValueChange:D,open:O,inline:x,onItemHighlighted:B,children:[G,j]}),e[38]=x,e[39]=F,e[40]=D,e[41]=O,e[42]=G,e[43]=j,e[44]=y,e[45]=V):V=e[45],V}var ym=R(qe(),1),Zc=R(Q(),1);var cs={};fn(cs,{Arrow:()=>Qfe,Backdrop:()=>e1e,CheckboxItem:()=>a1e,CheckboxItemIndicator:()=>s1e,Group:()=>u1e,GroupLabel:()=>p1e,Handle:()=>Lx,Item:()=>f1e,LinkItem:()=>h1e,Popup:()=>b1e,Portal:()=>w1e,Positioner:()=>v1e,RadioGroup:()=>C1e,RadioItem:()=>L1e,RadioItemIndicator:()=>M1e,Root:()=>hM,Separator:()=>q1e,SubmenuRoot:()=>I1e,SubmenuTrigger:()=>H1e,Trigger:()=>D1e,Viewport:()=>B1e,createHandle:()=>G1e});var Yfe=R(Q(),1);var WL=R(Q(),1),lB=WL.createContext(void 0);function Na(t){let e=WL.useContext(lB);if(e===void 0&&!t)throw new Error(Ft(33));return e}var KL=R(Q(),1),cB=KL.createContext(void 0);function Lr(t){let e=KL.useContext(cB);if(e===void 0&&!t)throw new Error(Ft(36));return e}var Qfe=Yfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,{store:s}=Lr(),{arrowRef:l,side:c,align:u,arrowUncentered:d,arrowStyles:p}=Na(),f={open:s.useState("open"),side:c,align:u,uncentered:d};return We("div",e,{ref:[l,n],stateAttributesMapping:zl,state:f,props:{style:p,"aria-hidden":!0,...a}})});var Jfe=R(Q(),1);var XL=R(Q(),1),GHe=XL.createContext(void 0);function B1(t=!0){let e=XL.useContext(GHe);if(e===void 0&&!t)throw new Error(Ft(25));return e}var e1e=Jfe.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,{store:s}=Lr(),l=s.useState("open"),c=s.useState("mounted"),u=s.useState("transitionStatus"),d=s.useState("lastOpenChangeReason"),p=B1(),m={open:l,transitionStatus:u};return We("div",e,{ref:p?.backdropRef?[n,p.backdropRef]:n,state:m,stateAttributesMapping:v1,props:[{role:"presentation",hidden:!c,style:{pointerEvents:d===he.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},a]})});var JL=R(Q(),1);var YL=R(Q(),1),uB=YL.createContext(void 0);function t1e(){let t=YL.useContext(uB);if(t===void 0)throw new Error(Ft(30));return t}var by=R(Q(),1);var n1e=R(Q(),1);function QL(t){let{closeOnClick:e,highlighted:n,id:r,nodeId:i,store:o,typingRef:a,itemRef:s,itemMetadata:l}=t,{events:c}=o.useState("floatingTreeRoot"),u=o.useState("open"),d=B1(!0),p=d!==void 0;return n1e.useMemo(()=>({id:r,role:"menuitem",tabIndex:u&&n?0:-1,onKeyDown(m){m.key===" "&&a?.current&&m.preventDefault()},onMouseMove(m){i&&c.emit("itemhover",{nodeId:i,target:m.currentTarget})},onClick(m){e&&c.emit("close",{domEvent:m,reason:he.itemPress})},onMouseUp(m){if(d){let f=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,p&&f&&Math.abs(m.clientX-f.x)<=1&&Math.abs(m.clientY-f.y)<=1||p&&!Nn.os.mac&&m.button===2)return}s.current&&o.context.allowMouseUpTriggerRef.current&&(!p||m.button===2)&&l.type==="regular-item"&&f1(s.current,m,{detail:1})}}),[e,n,r,c,i,u,o,a,s,d,p,l])}var z1={type:"regular-item"};function q1(t){let{closeOnClick:e,disabled:n,highlighted:r,id:i,store:o,typingRef:a=o.context.typingRef,nativeButton:s,itemMetadata:l,nodeId:c}=t,u=by.useRef(null),{getButtonProps:d,buttonRef:p}=zi({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),m=QL({closeOnClick:e,highlighted:r,id:i,nodeId:c,store:o,typingRef:a,itemRef:u,itemMetadata:l}),f=by.useCallback(x=>Bi(m,{onMouseEnter(){l.type==="submenu-trigger"&&l.setActive()}},x,d),[m,d,l]),h=wa(u,p);return by.useMemo(()=>({getItemProps:f,itemRef:h}),[f,h])}var r1e="data-checked",i1e="data-unchecked";var H1={checked(t){return t?{[r1e]:""}:{[i1e]:""}},...Dc};var o1e=R(ee(),1),a1e=JL.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,nativeButton:s=!1,disabled:l=!1,closeOnClick:c=!1,checked:u,defaultChecked:d,onCheckedChange:p,style:m,...f}=e,h=tl({guess:!0,label:a}),x=Na(!0),g=dr(o),{store:y}=Lr(),b=y.useState("disabled"),w=l||b,v=y.useState("isActive",h.index),k=y.useState("itemProps"),[_,L]=kd({controlled:u,default:d??!1,name:"MenuCheckboxItem",state:"checked"}),{getItemProps:S,itemRef:C}=q1({closeOnClick:c,disabled:w,highlighted:v,id:g,store:y,nativeButton:s,nodeId:x?.context.nodeId,itemMetadata:z1}),T=JL.useMemo(()=>({disabled:w,highlighted:v,checked:_}),[w,v,_]);function M($){let N=Xe(he.itemPress,$.nativeEvent,void 0,{preventUnmountOnClose:Yt});p?.(!_,N),!N.isCanceled&&L(F=>!F)}let A=We("div",e,{state:T,stateAttributesMapping:H1,props:[k,{role:"menuitemcheckbox","aria-checked":_,onClick:M},f,S],ref:[C,n,h.ref]});return(0,o1e.jsx)(uB.Provider,{value:T,children:A})});var eM=R(Q(),1);var s1e=eM.forwardRef(function(e,n){let{render:r,className:i,style:o,keepMounted:a=!1,...s}=e,l=t1e(),c=eM.useRef(null),{transitionStatus:u,mounted:d,setMounted:p}=Oc(l.checked);Ro({batch:!0,enabled:!l.checked,open:l.checked,ref:c,onComplete(){l.checked||p(!1)}});let m={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:u};return We("span",e,{state:m,ref:[n,c],stateAttributesMapping:H1,props:{"aria-hidden":!0,...s},enabled:a||d})});var nM=R(Q(),1);var tM=R(Q(),1),Cx=tM.createContext(void 0);function l1e(){let t=tM.useContext(Cx);if(t===void 0)throw new Error(Ft(31));return t}var c1e=R(ee(),1),u1e=nM.forwardRef(function(e,n){let{render:r,className:i,style:o,...a}=e,[s,l]=nM.useState(void 0),c=We("div",e,{ref:n,props:{role:"group","aria-labelledby":s,...a}});return(0,c1e.jsx)(Cx.Provider,{value:l,children:c})});var d1e=R(Q(),1);var p1e=d1e.forwardRef(function(e,n){let{render:r,className:i,style:o,id:a,...s}=e,l=dr(a),c=l1e();return Ee(()=>(c(l),()=>{c(u=>u===l?void 0:u)}),[c,l]),We("div",e,{ref:n,props:{id:l,"aria-hidden":!0,...s}})});var m1e=R(Q(),1);var f1e=m1e.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,nativeButton:s=!1,disabled:l=!1,closeOnClick:c=!0,style:u,...d}=e,p=tl({guess:!0,label:a}),m=Na(!0),f=dr(o),{store:h}=Lr(),x=h.useState("disabled"),g=l||x,y=h.useState("isActive",p.index),b=h.useState("itemProps"),{getItemProps:w,itemRef:v}=q1({closeOnClick:c,disabled:g,highlighted:y,id:f,store:h,nativeButton:s,nodeId:m?.context.nodeId,itemMetadata:z1});return We("div",e,{state:{disabled:g,highlighted:y},props:[b,d,w],ref:[v,n,p.ref]})});var rM=R(Q(),1);var h1e=rM.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,closeOnClick:s=!1,style:l,...c}=e,u=rM.useRef(null),d=tl({guess:!0,label:a}),m=Na(!0)?.context.nodeId,f=dr(o),{store:h}=Lr(),x=h.useState("isActive",d.index),g=h.useState("itemProps"),y=h.context.typingRef,{getButtonProps:b,buttonRef:w}=zi({native:!1,composite:!0}),v=QL({closeOnClick:s,highlighted:x,id:f,nodeId:m,store:h,typingRef:y,itemRef:u,itemMetadata:z1});function k(L){return Bi(v,L,b)}return We("a",e,{state:{highlighted:x},props:[g,c,k],ref:[u,w,n,d.ref]})});var iM=R(Q(),1);var g1e=R(ee(),1),b1e=iM.forwardRef(function(e,n){let{render:r,className:i,style:o,finalFocus:a,...s}=e,{store:l}=Lr(),{side:c,align:u}=Na(),d=WS(!0)!=null,p=l.useState("open"),m=l.useState("transitionStatus"),f=l.useState("popupProps"),h=l.useState("mounted"),x=l.useState("instantType"),g=l.useState("activeTriggerElement"),y=l.useState("parent"),b=l.useState("lastOpenChangeReason"),w=l.useState("rootId"),v=l.useState("floatingRootContext"),k=l.useState("floatingTreeRoot"),_=l.useState("closeDelay"),L=l.useState("hoverEnabled"),S=l.useState("disabled"),C=l.useState("openMethod"),T=y.type==="context-menu";Ro({open:p,ref:l.context.popupRef,onComplete(){p&&l.context.onOpenChangeComplete?.(!0)}}),iM.useEffect(()=>{function F(D){l.setOpen(!1,Xe(D.reason,D.domEvent))}return k.events.on("close",F),()=>{k.events.off("close",F)}},[k.events,l]),tx(v,{enabled:L&&!S&&!T&&y.type!=="menubar",closeDelay:_});let M=l.useStateSetter("popupElement"),A={transitionStatus:m,side:c,align:u,open:p,nested:y.type==="menu",instant:x},$=We("div",e,{state:A,ref:[n,l.context.popupRef,M],stateAttributesMapping:v1,props:[f,{onKeyDown(F){d&&VS.has(F.key)&&F.stopPropagation()}},$1(m),s,{"data-rootownerid":w}]}),N=y.type===void 0||T;return(g||y.type==="menubar"&&b!==he.outsidePress)&&(N=!0),(0,g1e.jsx)(Q0,{context:v,openInteractionType:C,modal:T,disabled:!h,returnFocus:a===void 0?N:a,initialFocus:y.type!=="menu",restoreFocus:!0,externalTree:y.type!=="menubar"?k:void 0,previousFocusableElement:g,nextFocusableElement:y.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:y.type===void 0?l.context.beforeContentFocusGuardRef:void 0,children:$})});var x1e=R(Q(),1);var oM=R(Q(),1),dB=oM.createContext(void 0);function y1e(){let t=oM.useContext(dB);if(t===void 0)throw new Error(Ft(32));return t}var pB=R(ee(),1),w1e=x1e.forwardRef(function(e,n){let{keepMounted:r=!1,...i}=e,{store:o,parent:a}=Lr();if(!(o.useState("mounted")||r))return null;let c=a.type==="menu"||a.type==="menubar"?"group":void 0;return(0,pB.jsx)(dB.Provider,{value:r,children:(0,pB.jsx)(X0,{ref:n,...i,portalOwnerRole:c})})});var Pd=R(Q(),1);var yy=R(ee(),1),v1e=Pd.forwardRef(function(e,n){let{anchor:r,positionMethod:i="absolute",className:o,render:a,side:s,align:l,sideOffset:c=0,alignOffset:u=0,collisionBoundary:d="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:f=!1,disableAnchorTracking:h=!1,collisionAvoidance:x=oS,style:g,...y}=e,{store:b}=Lr(),w=y1e(),v=B1(!0),k=b.useState("parent"),_=b.useState("floatingRootContext"),L=b.useState("floatingTreeRoot"),S=b.useState("mounted"),C=b.useState("open"),T=b.useState("modal"),M=b.useState("openMethod"),A=b.useState("activeTriggerElement"),$=b.useState("transitionStatus"),N=b.useState("positionerElement"),F=b.useState("instantType"),D=b.useState("adaptiveOrigin"),O=b.useState("lastOpenChangeReason"),B=b.useState("floatingNodeId"),P=b.useState("floatingParentNodeId"),U=_.useState("domReferenceElement"),G=Pd.useRef(null),j=jc(N),V=r,H=c,ne=u,J=l,W=x;k.type==="context-menu"&&(V=r??k.context?.anchor,J=J??"start",!s&&J!=="center"&&(ne=e.alignOffset??2,H=e.sideOffset??-5));let ie=s,Z=J;k.type==="menu"?(ie=ie??"inline-end",Z=Z??"start",W=e.collisionAvoidance??aS):k.type==="menubar"&&(ie=ie??(k.context.orientation==="vertical"?"inline-end":"bottom"),Z=Z??"start");let le=k.type==="context-menu",se=J2({anchor:V,floatingRootContext:_,positionMethod:v?"fixed":i,mounted:S,side:ie,sideOffset:H,align:Z,alignOffset:ne,arrowPadding:le?0:m,collisionBoundary:d,collisionPadding:p,sticky:f,nodeId:B,keepMounted:w,disableAnchorTracking:h,collisionAvoidance:W,shift:le?{crossAxis:!("side"in W&&W.side==="flip"),rootBoundary:"layoutViewport"}:void 0,externalTree:L,adaptiveOrigin:D});Pd.useEffect(()=>{function Le(Ne){Ne.open&&(Ne.parentNodeId===B&&b.set("hoverEnabled",!1),Ne.nodeId!==B&&Ne.parentNodeId===b.select("floatingParentNodeId")&&b.setOpen(!1,Xe(he.siblingOpen)))}return L.events.on("menuopenchange",Le),()=>{L.events.off("menuopenchange",Le)}},[b,L.events,B]),Pd.useEffect(()=>{if(b.select("floatingParentNodeId")==null)return;function Le(Ne){if(Ne.open||Ne.nodeId!==b.select("floatingParentNodeId"))return;let Be=Ne.reason??he.siblingOpen;b.setOpen(!1,Xe(Be))}return L.events.on("menuopenchange",Le),()=>{L.events.off("menuopenchange",Le)}},[L.events,b]);let ge=Br();Pd.useEffect(()=>{C||ge.clear()},[C,ge]),Pd.useEffect(()=>{function Le(Ne){if(!(!C||Ne.nodeId!==b.select("floatingParentNodeId")))if(Ne.target&&A&&A!==Ne.target){let Be=b.select("closeDelay");Be>0?ge.isStarted()||ge.start(Be,()=>{b.setOpen(!1,Xe(he.siblingOpen))}):b.setOpen(!1,Xe(he.siblingOpen))}else ge.clear()}return L.events.on("itemhover",Le),()=>{L.events.off("itemhover",Le)}},[L.events,C,A,b,ge]),Pd.useEffect(()=>{let Le={open:C,nodeId:B,parentNodeId:P,reason:b.select("lastOpenChangeReason")};L.events.emit("menuopenchange",Le)},[L.events,C,b,B,P]),Ee(()=>{let Le=U,Ne=G.current;if(Le&&(G.current=Le),Ne&&Le&&Le!==Ne){b.set("instantType",void 0);let Be=new AbortController;return j(()=>{b.set("instantType","trigger-change")},Be.signal),()=>{Be.abort()}}},[U,j,b]);let ce={open:C,side:se.side,align:se.align,anchorHidden:se.anchorHidden,nested:k.type==="menu",instant:F},be=k.type==="menubar"&&k.context.modal,ke=T&&O!==he.triggerHover;ny(C&&(be||ke),M==="touch",N,A);let me=ty(e,ce,{styles:se.positionerStyles,transitionStatus:$,props:y,refs:[n,b.useStateSetter("positionerElement")],hidden:!S,inert:!C}),Se=S&&k.type!=="menu"&&(k.type!=="menubar"&&T&&O!==he.triggerHover||k.type==="menubar"&&k.context.modal),de=null;return k.type==="menubar"?de=k.context.contentElement:k.type===void 0&&(de=A),(0,yy.jsxs)(lB.Provider,{value:se,children:[Se&&(0,yy.jsx)(ey,{ref:k.type==="context-menu"||k.type==="nested-context-menu"?k.context.internalBackdropRef:null,inert:A1(!C),cutout:de}),(0,yy.jsx)(W6,{id:B,children:(0,yy.jsx)(FL,{elementsRef:b.context.itemDomElements,labelsRef:b.context.itemLabels,children:me})})]})});var G1=R(Q(),1);var aM=R(Q(),1),mB=aM.createContext(void 0);function k1e(){let t=aM.useContext(mB);if(t===void 0)throw new Error(Ft(34));return t}var fB=R(ee(),1),C1e=G1.memo(G1.forwardRef(function(e,n){let{render:r,className:i,value:o,defaultValue:a,onValueChange:s,disabled:l=!1,style:c,"aria-labelledby":u,...d}=e,[p,m]=G1.useState(void 0),[f,h]=kd({controlled:o,default:a,name:"MenuRadioGroup"}),x=Pe((w,v)=>{s?.(w,v),!v.isCanceled&&h(w)}),y=We("div",e,{state:{disabled:l},ref:n,props:{role:"group","aria-labelledby":u??p,"aria-disabled":l||void 0,...d}}),b=G1.useMemo(()=>({value:f,setValue:x,disabled:l}),[f,x,l]);return(0,fB.jsx)(Cx.Provider,{value:m,children:(0,fB.jsx)(mB.Provider,{value:b,children:y})})}));var lM=R(Q(),1);var sM=R(Q(),1),hB=sM.createContext(void 0);function _1e(){let t=sM.useContext(hB);if(t===void 0)throw new Error(Ft(35));return t}var S1e=R(ee(),1),L1e=lM.forwardRef(function(e,n){let{render:r,className:i,id:o,label:a,nativeButton:s=!1,disabled:l=!1,closeOnClick:c=!1,value:u,style:d,...p}=e,m=tl({guess:!0,label:a}),f=Na(!0),h=dr(o),{store:x}=Lr(),g=x.useState("isActive",m.index),y=x.useState("itemProps"),{value:b,setValue:w,disabled:v}=k1e(),k=x.useState("disabled"),_=l||v||k,L=b===u,{getItemProps:S,itemRef:C}=q1({closeOnClick:c,disabled:_,highlighted:g,id:h,store:x,nativeButton:s,nodeId:f?.context.nodeId,itemMetadata:z1}),T=lM.useMemo(()=>({disabled:_,highlighted:g,checked:L}),[_,g,L]);function M($){let N=Xe(he.itemPress,$.nativeEvent,void 0,{preventUnmountOnClose:Yt});w(u,N)}let A=We("div",e,{state:T,stateAttributesMapping:H1,props:[y,{role:"menuitemradio","aria-checked":L,onClick:M},p,S],ref:[C,n,m.ref]});return(0,S1e.jsx)(hB.Provider,{value:T,children:A})});var cM=R(Q(),1);var M1e=cM.forwardRef(function(e,n){let{render:r,className:i,style:o,keepMounted:a=!1,...s}=e,l=_1e(),c=cM.useRef(null),{transitionStatus:u,mounted:d,setMounted:p}=Oc(l.checked);Ro({batch:!0,enabled:!l.checked,open:l.checked,ref:c,onComplete(){l.checked||p(!1)}});let m={checked:l.checked,disabled:l.disabled,highlighted:l.highlighted,transitionStatus:u};return We("span",e,{state:m,stateAttributesMapping:H1,ref:[n,c],props:{"aria-hidden":!0,...s},enabled:a||d})});var qi=R(Q(),1);var uM=R(Q(),1),VHe=uM.createContext(null);function dM(t){let e=uM.useContext(VHe);if(e===null&&!t)throw new Error(Ft(5));return e}var _x=R(Q(),1);var E1e={..._S,disabled:t=>t.parent.type==="menubar"&&t.parent.context.disabled||t.disabled,modal:t=>(t.parent.type===void 0||t.parent.type==="context-menu")&&(t.modal??!0),openMethod:t=>t.openMethod,allowMouseEnter:t=>t.allowMouseEnter,highlightItemOnHover:t=>t.highlightItemOnHover,parent:t=>t.parent,rootId:t=>t.parent.type==="menu"?t.parent.store.select("rootId"):t.parent.type!==void 0?t.parent.context.rootId:t.rootId,activeIndex:t=>t.activeIndex,isActive:(t,e)=>t.activeIndex===e,hoverEnabled:t=>t.hoverEnabled,instantType:t=>t.instantType,lastOpenChangeReason:t=>t.openChangeReason,floatingTreeRoot:t=>t.parent.type==="menu"?t.parent.store.select("floatingTreeRoot"):t.floatingTreeRoot,floatingNodeId:t=>t.floatingNodeId,floatingParentNodeId:t=>t.floatingParentNodeId,itemProps:t=>t.itemProps,closeDelay:t=>t.closeDelay,adaptiveOrigin:t=>t.adaptiveOrigin,keyboardEventRelay:t=>{if(t.keyboardEventRelay)return t.keyboardEventRelay;if(t.parent.type==="menu")return t.parent.store.select("keyboardEventRelay")}},pM=class extends Hc{constructor(e,n,r=!1){let i=new Ed,o=A1e(i,n,r,e);super(o,R1e(i),E1e),this.unsubscribeParentListener=this.observe("parent",a=>{if(this.unsubscribeParentListener?.(),a.type==="menu"){let s=a.store.select("rootId"),l=a.store.select("floatingTreeRoot"),c=a.store.select("keyboardEventRelay");this.unsubscribeParentListener=a.store.subscribe(()=>{let u=a.store.select("rootId"),d=a.store.select("floatingTreeRoot"),p=a.store.select("keyboardEventRelay");s===u&&l===d&&c===p||(s=u,l=d,c=p,this.notifyAll())}),this.context.allowMouseUpTriggerRef=a.store.context.allowMouseUpTriggerRef;return}a.type!==void 0&&(this.context.allowMouseUpTriggerRef=a.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,n){this.state.floatingRootContext.context.events.emit("setOpen",{open:e,eventDetails:n})}unsubscribeParentListener=null};function T1e(){let t=new Ed,e=new K2(Object.freeze(A1e(t)),Object.freeze(R1e(t)),E1e);return Object.assign(e,{setOpen:Yt})}function R1e(t){return{positionerRef:_x.createRef(),popupRef:_x.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:_x.createRef(),beforeContentFocusGuardRef:_x.createRef(),onOpenChangeComplete:void 0,triggerElements:t}}function A1e(t,e,n=!1,r){return{...CS(t,e,n),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new S1,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:xn,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var mM=R(Q(),1),gB=mM.createContext(void 0);function fM(){return mM.useContext(gB)}var Sx=R(ee(),1),hM=P6(function(e){let{children:n,open:r,onOpenChange:i,onOpenChangeComplete:o,defaultOpen:a=!1,disabled:s=!1,modal:l,loopFocus:c=!0,orientation:u="vertical",actionsRef:d,closeParentOnEsc:p=!1,handle:m,triggerId:f,defaultTriggerId:h=null,highlightItemOnHover:x=!0}=e,g=B1(!0),y=Lr(!0),b=dM(!0),w=fM(),v=qi.useMemo(()=>w&&y?{type:"menu",store:y.store}:b?{type:"menubar",context:b}:g&&!y?{type:"context-menu",context:g}:{type:void 0},[g,y,b,w]),k=Ol(),_=Ol(),L=as(),S=v.type==="menu"?v.store:void 0,C=(r??a)&&S?.state.transitionStatus==="starting",T=Vn(()=>C?S?.state.instantType:void 0).current,M=ZHe({open:a,openProp:r,activeTriggerId:h,triggerIdProp:f,parent:v,disabled:s,highlightItemOnHover:x,modal:v.type===void 0?l:void 0,rootId:k,instantType:T},_,L!=null);M.useControlledProp("openProp",r),M.useControlledProp("triggerIdProp",f),M.useContextCallback("onOpenChangeComplete",o);let A=M.useState("floatingTreeRoot"),$=Y0(A),N=M.useState("open"),F=M.useState("activeTriggerElement"),D=M.useState("positionerElement"),O=M.useState("hoverEnabled"),B=M.useState("disabled"),P=M.useState("lastOpenChangeReason"),U=M.useState("parent"),G=M.useState("activeIndex"),j=M.useState("payload"),V=M.useState("floatingParentNodeId"),H=qi.useRef(null),ne=qi.useRef(U.type!=="context-menu"),J=Br(),W=qi.useRef(!0),ie=Br(),Z=V!=null,{openMethod:le,triggerProps:se}=DS(N);M.useSyncedValues({disabled:s,highlightItemOnHover:x,modal:U.type===void 0?l:void 0,openMethod:le,rootId:k}),wS(M);let{forceUnmount:ge,transitionStatus:ce}=vS(N,M,()=>{M.set("allowMouseEnter",!1)},C),be=jc(M.context.popupRef);qi.useEffect(()=>{if(T===void 0)return;let Ae=()=>{M.state.instantType===T&&M.set("instantType",void 0)};if(!N){Ae();return}if(ce!==void 0)return;if(M.context.popupRef.current==null){Ae();return}let wt=new AbortController;return be(Ae,wt.signal),()=>{wt.abort()}},[T,N,ce,be,M]),Ee(()=>{g&&!y?M.update({parent:{type:"context-menu",context:g},floatingNodeId:$,floatingParentNodeId:L}):y&&M.update({floatingNodeId:$,floatingParentNodeId:L})},[g,y,$,L,M]),qi.useEffect(()=>{if(N||(H.current=null),U.type==="context-menu"){if(!N){J.clear(),ne.current=!1;return}J.start(500,()=>{ne.current=!0})}},[J,N,U.type]),Ee(()=>{!N&&!O&&M.set("hoverEnabled",!0)},[N,O,M]);let ke=Pe((Ae,wt)=>{let Tt=wt.reason;if(!Ae&&!M.select("open")||N===Ae&&wt.trigger===F&&P===Tt)return;let Ot=yS(wt);if(!Ae&&wt.trigger==null&&(wt.trigger=F??void 0),i?.(Ae,wt),wt.isCanceled)return;M.state.floatingRootContext.dispatchOpenChange(Ae,wt);let zt=wt.event;if(Ae===!1&&zt?.type==="click"&&zt.pointerType==="touch"&&!W.current)return;Ae&&Tt===he.triggerFocus?(W.current=!1,ie.start(300,()=>{W.current=!0})):(W.current=!0,ie.clear());let Ve=(Tt===he.triggerPress||Tt===he.itemPress)&&zt.detail===0,Jt=!Ae&&(Tt===he.escapeKey||Tt==null);H.current=wt.event;let rn=bS(M.state,Ae,wt.trigger,Ot());rn.openChangeReason=Tt,U.type==="menubar"&&(Tt===he.triggerFocus||Tt===he.focusOut||Tt===he.triggerHover||Tt===he.listNavigation||Tt===he.siblingOpen)?rn.instantType="group":Ve||Jt?rn.instantType=Ve?"click":"dismiss":rn.instantType=void 0,M.update(rn)}),me=J6({popupStore:M,floatingRootContext:M.state.floatingRootContext,floatingId:_,nested:L!=null,onOpenChange:ke}),Se=me.context.events;Ee(()=>{let Ae=({open:wt,eventDetails:Tt})=>ke(wt,Tt);return Se.on("setOpen",Ae),()=>{Se?.off("setOpen",Ae)}},[Se,ke]);let de=qi.useCallback(()=>{M.setOpen(!1,Xe(he.imperativeAction))},[M]);qi.useImperativeHandle(d,()=>({unmount:ge,close:de}),[ge,de]);let Le;U.type==="context-menu"&&(Le=U.context),qi.useImperativeHandle(Le?.positionerRef,()=>D,[D]),qi.useImperativeHandle(Le?.actionsRef,()=>({setOpen:ke}),[ke]);let Ne=J0(me,{enabled:!B,bubbles:{escapeKey:p&&U.type==="menu"},outsidePress(){return U.type!=="context-menu"||H.current?.type==="contextmenu"?!0:ne.current},externalTree:Z?A:void 0}),Be=Gc(),_e=qi.useCallback(Ae=>{M.select("activeIndex")!==Ae&&M.set("activeIndex",Ae)},[M]),xe=nx(me,{enabled:!B,listRef:M.context.itemDomElements,activeIndex:G,nested:U.type!==void 0,loopFocus:c,orientation:u,parentOrientation:U.type==="menubar"?U.context.orientation:void 0,rtl:Be==="rtl",disabledIndices:Us,onNavigate:_e,openOnArrowKeyDown:U.type!=="context-menu",externalTree:Z?A:void 0,focusItemOnHover:x}),Ce=qi.useCallback(Ae=>{M.context.typingRef.current=Ae},[M]),K=rx(me,{enabled:!B,listRef:M.context.itemLabels,elementsRef:M.context.itemDomElements,activeIndex:G,resetMs:500,onMatch:Ae=>{N&&Ae!==G&&M.set("activeIndex",Ae)},onTyping:Ce}),Y=qi.useMemo(()=>{let Ae=Bi(K.reference,xe.reference,Ne.reference,{onMouseMove(){M.set("allowMouseEnter",!0)}},se);return Ae["aria-haspopup"]="menu",Ae["aria-expanded"]=N,Ae},[M,K.reference,xe.reference,Ne.reference,se,N]),ye=qi.useMemo(()=>{let Ae=Bi(xe.trigger,Ne.trigger,se);return Ae["aria-haspopup"]="menu",Ae["aria-expanded"]=!1,Ae},[xe.trigger,Ne.trigger,se]);Vn(()=>(M.update({inactiveTriggerProps:ye}),null));let Re=qi.useMemo(()=>Bi(Z2,{id:_,role:"menu","aria-orientation":u==="horizontal"?"horizontal":void 0,"aria-labelledby":F?.id,onMouseMove(){M.set("allowMouseEnter",!0),U.type==="menu"&&M.set("hoverEnabled",!1)},onClick(){M.select("hoverEnabled")&&M.set("hoverEnabled",!1)},onKeyDown(Ae){let wt=M.select("keyboardEventRelay");wt&&!Ae.isPropagationStopped()&&wt(Ae)}},K.floating,xe.floating,Ne.floating),[F,_,u,U.type,M,K.floating,xe.floating,Ne.floating]),Ke=xe.item??xn;kS(M,{floatingRootContext:me,activeTriggerProps:Y,inactiveTriggerProps:ye,popupProps:Re,itemProps:Ke});let mt=qi.useMemo(()=>({store:M,parent:v}),[M,v]),dt=(0,Sx.jsxs)(cB.Provider,{value:mt,children:[m&&(0,Sx.jsx)(gS,{handle:m,store:M}),typeof n=="function"?n({payload:j}):n]});return U.type===void 0||U.type==="context-menu"?(0,Sx.jsx)(K6,{externalTree:A,children:dt}):dt});function ZHe(t,e,n){return Vn(()=>new pM(t,e,n)).current}var $1e=R(Q(),1);var bB=R(ee(),1);function I1e(t){let e=Lr().store,n=$1e.useMemo(()=>({parentMenu:e}),[e]);return(0,bB.jsx)(gB.Provider,{value:n,children:(0,bB.jsx)(hM,{...t})})}var Pa=R(Q(),1);var N1e=R(Q(),1);function P1e(t={}){let{highlightItemOnHover:e,highlightedIndex:n,onHighlightedIndexChange:r}=x2(),{ref:i,index:o}=tl(t),a=n===o,s=N1e.useRef(null),l=wa(i,s);return{compositeProps:{tabIndex:a?0:-1,onFocus(){r(o)},onMouseMove(){let u=s.current;if(!e||!u)return;let d=u.hasAttribute("disabled")||u.ariaDisabled==="true";!a&&!d&&u.focus()}},compositeRef:l,index:o}}function j1e(t){let{render:e,className:n,style:r,state:i=xn,props:o=Us,refs:a=Us,metadata:s,stateAttributesMapping:l,tag:c="div",...u}=t,{compositeProps:d,compositeRef:p}=P1e({metadata:s});return We(c,t,{state:i,ref:[p,...a],props:[d,...o,u],stateAttributesMapping:l})}function yB(t){if(Ln(t)&&t.hasAttribute("data-rootownerid"))return t.getAttribute("data-rootownerid");if(!jl(t))return yB(Pl(t))}var gM=R(Q(),1);function O1e(t){let{enabled:e=!0,mouseDownAction:n,open:r}=t,i=gM.useRef(!1);return gM.useMemo(()=>e?{onMouseDown:o=>{(n==="open"&&!r||n==="close"&&r)&&(i.current=!0,Wt(o.currentTarget).addEventListener("click",()=>{i.current=!1},{once:!0}))},onClick:o=>{i.current&&(i.current=!1,o.preventBaseUIHandler())}}:xn,[e,n,r])}var U1=R(ee(),1),D1e=G_(function(e,n){let{render:r,className:i,style:o,disabled:a=!1,nativeButton:s=!0,id:l,openOnHover:c,delay:u=100,closeDelay:d=0,handle:p,payload:m,...f}=e,h=Lr(!0),g=SS(p)??h?.store;if(!g)throw new Error(Ft(85));let y=dr(l),b=g.useState("isTriggerActive",y),w=g.useState("floatingRootContext"),v=g.useState("isOpenedByTrigger",y),k=g.useState("triggerPopupId",y),_=Pa.useRef(null),L=KHe(),S=x2(!0),C=Ma(),T=Pa.useMemo(()=>C??new S1,[C]),M=Y0(T),A=as(),{registerTrigger:$,isMountedByThisTrigger:N}=xS(y,_,g,{payload:m,closeDelay:d,parent:L,floatingTreeRoot:T,floatingNodeId:M,floatingParentNodeId:A,keyboardEventRelay:S?.relayKeyboardEvent}),F=L.type==="menubar",D=g.useState("disabled"),O=a||D||F&&L.context.disabled,{getButtonProps:B,buttonRef:P}=zi({disabled:O,native:s});Pa.useEffect(()=>{!v&&L.type===void 0&&(g.context.allowMouseUpTriggerRef.current=!1)},[g,v,L.type]);let U=Pa.useRef(null),G=Br(),j=Pe(Le=>{if(!U.current)return;G.clear(),g.context.allowMouseUpTriggerRef.current=!1;let Ne=Le.target;ot(U.current,Ne)||ot(g.select("positionerElement"),Ne)||Ne===U.current||Ne!=null&&yB(Ne)===g.select("rootId")||AL(Le,U.current)||T.events.emit("close",{domEvent:Le,reason:he.cancelOpen})});Pa.useEffect(()=>{v&&g.select("lastOpenChangeReason")===he.triggerHover&&Wt(U.current).addEventListener("mouseup",j,{once:!0})},[v,j,g]);let V=F&&L.context.hasSubmenuOpen,ne=ng(w,{enabled:(c??V)&&!O&&(!F||V&&!N),handleClose:ig({blockPointerEvents:!F}),mouseOnly:!0,move:!1,restMs:L.type===void 0?u:void 0,delay:{close:d},triggerElementRef:_,externalTree:T,isActiveTrigger:b,isClosing:()=>g.select("transitionStatus")==="ending"}),J=WHe(v,g.select("lastOpenChangeReason")),W=$u(w,{enabled:!O,event:v&&F?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:L.type===void 0?J:!1}),ie=KD(w,{enabled:!O&&V}),Z=O1e({open:v,enabled:F,mouseDownAction:"open"}),le=Pa.useMemo(()=>Bi(ie.reference,W.reference),[ie.reference,W.reference]),se=g.useState("triggerProps",N),{preFocusGuardRef:ge,handlePreFocusGuardFocus:ce,handleFocusTargetFocus:be}=OS(g,_),ke={disabled:O,open:v},me=[U,n,P,$,_],Se=[le,ne??xn,se,{"aria-haspopup":"menu","aria-controls":k,id:y,onMouseDown:Le=>{if(g.select("open"))return;G.start(200,()=>{g.context.allowMouseUpTriggerRef.current=!0}),Wt(Le.currentTarget).addEventListener("mouseup",j,{once:!0})}},F?{role:"menuitem"}:{},Z,f,B],de=We("button",e,{enabled:!F,stateAttributesMapping:G0,state:ke,ref:me,props:Se});return F?(0,U1.jsx)(j1e,{tag:"button",render:r,className:i,style:o,state:ke,refs:me,props:Se,stateAttributesMapping:G0}):v?(0,U1.jsxs)(Pa.Fragment,{children:[(0,U1.jsx)(Bc,{ref:ge,onFocus:ce},`${y}-pre-focus-guard`),(0,U1.jsx)(Pa.Fragment,{children:de},y),(0,U1.jsx)(Bc,{ref:g.context.triggerFocusTargetRef,onFocus:be},`${y}-post-focus-guard`)]}):(0,U1.jsx)(Pa.Fragment,{children:de},y)});function WHe(t,e){let n=Br(),[r,i]=Pa.useState(!1);return Ee(()=>{t&&e===he.triggerHover?(i(!0),n.start(500,()=>{i(!1)})):t||(n.clear(),i(!1))},[t,e,n]),r}function KHe(){let t=dM(!0);return Pa.useMemo(()=>t?{type:"menubar",context:t}:{type:void 0},[t])}var F1e=R(Q(),1);var B1e=F1e.forwardRef(function(e,n){let{render:r,className:i,style:o,children:a,...s}=e,{store:l}=Lr(),{side:c}=Na(),u=l.useState("instantType"),{children:d,state:p}=JS({store:l,side:c,children:a}),m={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:u};return We("div",e,{state:m,ref:n,props:[s,{children:d}],stateAttributesMapping:QS})});var z1e=R(Q(),1);var q1e=z1e.forwardRef(function(e,n){let{className:r,render:i,orientation:o="horizontal",style:a,...s}=e;return We("div",e,{state:{orientation:o},ref:n,props:[{role:"separator","aria-orientation":o},s]})});var bm=R(Q(),1);var XHe={"aria-expanded":void 0},H1e=bm.forwardRef(function(e,n){let{render:r,className:i,style:o,label:a,id:s,nativeButton:l=!1,openOnHover:c=!0,delay:u=100,closeDelay:d=0,disabled:p=!1,...m}=e,f=fM();if(!f?.parentMenu)throw new Error(Ft(37));let h=tl({guess:!0,label:a}),x=Na(),{store:g}=Lr(),y=dr(s),b=g.useState("open"),w=g.useState("floatingRootContext"),v=g.useState("floatingTreeRoot"),k=g.useState("triggerPopupId",y),_=GD(y,g),L=Pe(le=>{_(le),le!==null&&g.select("open")&&g.select("activeTriggerId")==null&&g.update({activeTriggerId:y??null,activeTriggerElement:le,closeDelay:d})}),S=bm.useRef(null),C=bm.useCallback(le=>{S.current=le,g.set("activeTriggerElement",le)},[g]);Ee(()=>(L(S.current),()=>L(null)),[L,y,g]),g.useSyncedValue("closeDelay",d);let T=f.parentMenu,M=g.useState("disabled"),A=T.useState("disabled"),$=p||M||A,N=T.useState("itemProps"),F=T.useState("isActive",h.index),D=bm.useMemo(()=>({type:"submenu-trigger",setActive(){T.select("highlightItemOnHover")&&T.set("activeIndex",h.index)}}),[T,h.index]),{getItemProps:O,itemRef:B}=q1({closeOnClick:!1,disabled:$,highlighted:F,id:y,store:g,typingRef:T.context.typingRef,nativeButton:l,itemMetadata:D,nodeId:x?.context.nodeId}),P=g.useState("hoverEnabled"),U=ng(w,{enabled:P&&c&&!$,handleClose:ig({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:u,delay:{open:u,close:d},shouldOpen:u>0?()=>T.select("allowMouseEnter"):void 0,triggerElementRef:S,externalTree:v,isClosing:()=>g.select("transitionStatus")==="ending",guardStaleOpen:!0}),j=$u(w,{enabled:!$,event:"mousedown",toggle:!c,ignoreMouse:c,stickIfOpen:!1}).reference??xn,V=g.useState("triggerProps",!0);delete V.id;let H={disabled:$,highlighted:F,open:b},ne=g.useState("openMethod"),W=g.useState("lastOpenChangeReason")===he.listNavigation||ne==="keyboard",ie=b&&W&&Nn.screenReader.voiceOver;return We("div",e,{state:H,stateAttributesMapping:B2,props:[j,U,V,N,ie?XHe:void 0,{"aria-controls":k,tabIndex:b||F?0:-1,onBlur(){F&&T.set("activeIndex",null)}},m,O],ref:[n,h.ref,B,L,C]})});var Lx=class extends U2{constructor(){super(T1e(),"Menu")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function G1e(){return new Lx}var ao=R(ee(),1),U1e=4,bM=(0,Zc.createContext)(null);function V1(t){let e=(0,ym.c)(12),{open:n,onOpenChange:r,children:i}=t,[o,a]=(0,Zc.useState)(n??!1),s=(0,Zc.useRef)(null),l=(0,Zc.useRef)(null),c=n??o,u;e[0]!==r||e[1]!==n?(u=x=>{n===void 0&&a(x),r?.(x)},e[0]=r,e[1]=n,e[2]=u):u=e[2];let d=u,p;e[3]!==d?(p={beginPointer(x){if(x.pointerType!=="mouse"||x.button!==0)return;s.current={pointerId:x.pointerId,x:x.clientX,y:x.clientY,moved:!1,handled:!1},d(!0),l.current?.();let g=x.currentTarget.ownerDocument,y=v=>{if(v.pointerId!==x.pointerId)return;let k=s.current;if(!k||(k.moved||(k.moved=Math.hypot(v.clientX-k.x,v.clientY-k.y)>=U1e),!k.moved))return;g.elementFromPoint?.(v.clientX,v.clientY)?.closest('[role^="menuitem"]')?.focus({preventScroll:!0})},b=v=>{if(v.pointerId!==x.pointerId)return;let k=s.current,_=g.elementFromPoint?.(v.clientX,v.clientY);if(l.current?.(),l.current=null,k?.moved&&_ instanceof HTMLElement&&_.closest('[role^="menuitem"]')){let L=_.closest('[role^="menuitem"]');L&&!L.matches('[aria-disabled="true"]')&&L.click(),d(!1)}s.current=null},w=()=>{l.current?.(),l.current=null,s.current=null};g.addEventListener("pointermove",y,!0),g.addEventListener("pointerup",b,!0),g.addEventListener("pointercancel",w,!0),l.current=()=>{g.removeEventListener("pointermove",y,!0),g.removeEventListener("pointerup",b,!0),g.removeEventListener("pointercancel",w,!0)}},movePointer(x){let g=s.current;!g||g.pointerId!==x.pointerId||g.moved||(g.moved=Math.hypot(x.clientX-g.x,x.clientY-g.y)>=U1e)},activatePointer(x,g){let y=s.current;return!y||y.pointerId!==x.pointerId||!y.moved?!1:(y.handled||(y.handled=!0,g(),d(!1)),!0)},endPointer(){}},e[3]=d,e[4]=p):p=e[4];let m=p,f;e[5]!==i||e[6]!==c||e[7]!==d?(f=(0,ao.jsx)(cs.Root,{modal:!1,open:c,onOpenChange:d,children:i}),e[5]=i,e[6]=c,e[7]=d,e[8]=f):f=e[8];let h;return e[9]!==m||e[10]!==f?(h=(0,ao.jsx)(bM,{value:m,children:f}),e[9]=m,e[10]=f,e[11]=h):h=e[11],h}function Z1(t){let e=(0,ym.c)(12),{className:n,label:r,disabled:i,"aria-haspopup":o,"aria-labelledby":a,children:s}=t,l=(0,Zc.use)(bM),c;e[0]!==n?(c=Zs("ui-button",n),e[0]=n,e[1]=c):c=e[1];let u;e[2]!==l?(u=p=>{l?.beginPointer(p),p.pointerType==="mouse"&&p.button===0&&p.preventDefault()},e[2]=l,e[3]=u):u=e[3];let d;return e[4]!==o||e[5]!==a||e[6]!==s||e[7]!==i||e[8]!==r||e[9]!==c||e[10]!==u?(d=(0,ao.jsx)(cs.Trigger,{className:c,"aria-label":r,"aria-labelledby":a,"aria-haspopup":o,disabled:i,onPointerDown:u,onClick:YHe,children:s}),e[4]=o,e[5]=a,e[6]=s,e[7]=i,e[8]=r,e[9]=c,e[10]=u,e[11]=d):d=e[11],d}function YHe(t){t.detail>0&&t.preventDefault()}function xm(t){let e=(0,ym.c)(12),{className:n,side:r,align:i,children:o}=t,a=r===void 0?"bottom":r,s=i===void 0?"start":i,l=oy(),c;e[0]!==n?(c=Zs("ui-popup ui-menu",n),e[0]=n,e[1]=c):c=e[1];let u;e[2]!==o||e[3]!==c?(u=(0,ao.jsx)(cs.Popup,{className:c,children:o}),e[2]=o,e[3]=c,e[4]=u):u=e[4];let d;e[5]!==s||e[6]!==a||e[7]!==u?(d=(0,ao.jsx)(cs.Positioner,{className:"ui-positioner",side:a,align:s,sideOffset:R6,children:u}),e[5]=s,e[6]=a,e[7]=u,e[8]=d):d=e[8];let p;return e[9]!==l||e[10]!==d?(p=(0,ao.jsx)(cs.Portal,{container:l,children:d}),e[9]=l,e[10]=d,e[11]=p):p=e[11],p}function jd(t){let e=(0,ym.c)(20),{className:n,disabled:r,shortcut:i,onSelect:o,children:a}=t,s=(0,Zc.use)(bM),l=(0,Zc.useRef)(!1),c;e[0]!==n?(c=Zs("ui-menu-item",n),e[0]=n,e[1]=c):c=e[1];let u;e[2]!==s?(u=h=>s?.movePointer(h),e[2]=s,e[3]=u):u=e[3];let d;e[4]!==s||e[5]!==r||e[6]!==o?(d=h=>{r||(s?.activatePointer(h,()=>o?.())&&(l.current=!0,h.preventDefault()),s?.endPointer())},e[4]=s,e[5]=r,e[6]=o,e[7]=d):d=e[7];let p;e[8]!==o?(p=()=>{if(l.current){l.current=!1;return}o?.()},e[8]=o,e[9]=p):p=e[9];let m;e[10]!==i?(m=i?(0,ao.jsx)("span",{className:"ui-menu-shortcut",children:i}):null,e[10]=i,e[11]=m):m=e[11];let f;return e[12]!==a||e[13]!==r||e[14]!==c||e[15]!==u||e[16]!==d||e[17]!==p||e[18]!==m?(f=(0,ao.jsxs)(cs.Item,{className:c,disabled:r,onPointerMove:u,onPointerUp:d,onClick:p,children:[a,m]}),e[12]=a,e[13]=r,e[14]=c,e[15]=u,e[16]=d,e[17]=p,e[18]=m,e[19]=f):f=e[19],f}function yM(t){let e=(0,ym.c)(6),{value:n,onValueChange:r,children:i}=t,o;e[0]!==r?(o=s=>r(String(s)),e[0]=r,e[1]=o):o=e[1];let a;return e[2]!==i||e[3]!==o||e[4]!==n?(a=(0,ao.jsx)(cs.RadioGroup,{value:n,onValueChange:o,children:i}),e[2]=i,e[3]=o,e[4]=n,e[5]=a):a=e[5],a}function xM(t){let e=(0,ym.c)(18),{value:n,className:r,disabled:i,shortcut:o,children:a}=t,s=(0,Zc.use)(bM),l;e[0]!==r?(l=Zs("ui-menu-item",r),e[0]=r,e[1]=l):l=e[1];let c;e[2]!==s?(c=f=>s?.movePointer(f),e[2]=s,e[3]=c):c=e[3];let u;e[4]!==s||e[5]!==i?(u=f=>{i||(s?.activatePointer(f,()=>f.currentTarget.click())&&f.preventDefault(),s?.endPointer())},e[4]=s,e[5]=i,e[6]=u):u=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,ao.jsx)("span",{className:"ui-menu-check","aria-hidden":"true",children:(0,ao.jsx)(cs.RadioItemIndicator,{children:"\u2713"})}),e[7]=d):d=e[7];let p;e[8]!==o?(p=o?(0,ao.jsx)("span",{className:"ui-menu-shortcut",children:o}):null,e[8]=o,e[9]=p):p=e[9];let m;return e[10]!==a||e[11]!==i||e[12]!==l||e[13]!==c||e[14]!==u||e[15]!==p||e[16]!==n?(m=(0,ao.jsxs)(cs.RadioItem,{className:l,value:n,disabled:i,onPointerMove:c,onPointerUp:u,children:[d,a,p]}),e[10]=a,e[11]=i,e[12]=l,e[13]=c,e[14]=u,e[15]=p,e[16]=n,e[17]=m):m=e[17],m}function xy(){let t=(0,ym.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,ao.jsx)(cs.Separator,{className:"ui-separator"}),t[0]=e):e=t[0],e}function V1e(t){let e=(0,ym.c)(13),{label:n,className:r,popupClassName:i,disabled:o,children:a}=t,s;e[0]!==r?(s=Zs("ui-menu-item ui-submenu-trigger",r),e[0]=r,e[1]=s):s=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,ao.jsx)("span",{className:"ui-submenu-chevron","aria-hidden":"true"}),e[2]=l):l=e[2];let c;e[3]!==o||e[4]!==n||e[5]!==s?(c=(0,ao.jsxs)(cs.SubmenuTrigger,{className:s,disabled:o,children:[n,l]}),e[3]=o,e[4]=n,e[5]=s,e[6]=c):c=e[6];let u;e[7]!==a||e[8]!==i?(u=(0,ao.jsx)(xm,{side:"inline-end",align:"start",className:i,children:a}),e[7]=a,e[8]=i,e[9]=u):u=e[9];let d;return e[10]!==c||e[11]!==u?(d=(0,ao.jsxs)(cs.SubmenuRoot,{children:[c,u]}),e[10]=c,e[11]=u,e[12]=d):d=e[12],d}var bt=R(ee(),1),ju={computer:"composer.computer",folder:"composer.folder",local:"composer.thisMac",chooseComputer:"composer.chooseComputer",chooseFolder:"composer.chooseFolder",chooseFolderMenu:"composer.chooseFolderMenu",cloud:"composer.cloud"};function K1e(t){let e=(0,dg.c)(65),{summary:n,sessions:r,peers:i,started:o,onProject:a,projectChoices:s,onBrowseProject:l,localName:c,movedTo:u,onMove:d,busy:p}=t,m;e[0]!==r?(m=r===void 0?[]:r,e[0]=r,e[1]=m):m=e[1];let f=m,h;e[2]!==i?(h=i===void 0?[]:i,e[2]=i,e[3]=h):h=e[3];let x=h,g=o===void 0?!1:o,y=p===void 0?!1:p,b;e[4]!==c||e[5]!==x||e[6]!==f||e[7]!==n?(b=rGe(n,f,x,c),e[4]=c,e[5]=x,e[6]=f,e[7]=n,e[8]=b):b=e[8];let w=b,v;e[9]!==n?(v=xB(n),e[9]=n,e[10]=v):v=e[10];let k=v,[_,L]=(0,nl.useState)(k),S;e[11]!==k?(S=()=>L(k),e[11]=k,e[12]=S):S=e[12];let C=n?.sessionId,T;e[13]!==k||e[14]!==C?(T=[C,k],e[13]=k,e[14]=C,e[15]=T):T=e[15],(0,nl.useEffect)(S,T);let M;if(e[16]!==s||e[17]!==_||e[18]!==f||e[19]!==n){e:{let Z=Z1e(n,f,_);if(_!=="local"||!s){M=Z;break e}let le=s.map(JHe),se=new Set(le.map(QHe));M=[...le,...Z.filter(ge=>!se.has(ge.id))]}e[16]=s,e[17]=_,e[18]=f,e[19]=n,e[20]=M}else M=e[20];let A=M,$;e[21]!==A||e[22]!==u||e[23]!==s||e[24]!==_||e[25]!==g||e[26]!==n?($=g&&u?u:n?.cwd&&xB(n)===_?wB(n.cwd):s?void 0:A[0]?.id,e[21]=A,e[22]=u,e[23]=s,e[24]=_,e[25]=g,e[26]=n,e[27]=$):$=e[27];let N=$,F;e[28]!==w||e[29]!==_?(F=w.find(Z=>Z.id===_)??w[0],e[28]=w,e[29]=_,e[30]=F):F=e[30];let D=F;if(!D&&!N&&!s)return null;let O=g||a===void 0,B=g&&d!==void 0&&!y,P=n?.branch,U=O?"true":void 0,G;e[31]!==N||e[32]!==A||e[33]!==B||e[34]!==l||e[35]!==d||e[36]!==a||e[37]!==s||e[38]!==O||e[39]!==_?(G=!O&&_==="local"&&s?(0,bt.jsx)(iGe,{label:we(ju.folder),menu:"Location",folders:A,current:N,onPick:Z=>a?.(Z),onBrowse:l}):(0,bt.jsx)(W1e,{label:we(ju.folder),menu:"Location",value:N?wi(N):we(ju.chooseFolder),options:A,selected:N,disabled:O&&!B,icon:(0,bt.jsx)(X1e,{}),allowPath:!0,onPick:Z=>{B?Z!==N&&d?.(Z):O||a?.(Z,_==="local"?void 0:_)}}),e[31]=N,e[32]=A,e[33]=B,e[34]=l,e[35]=d,e[36]=a,e[37]=s,e[38]=O,e[39]=_,e[40]=G):G=e[40];let j;e[41]===Symbol.for("react.memo_cache_sentinel")?(j=we(ju.computer),e[41]=j):j=e[41];let V;e[42]!==D?.label?(V=D?.label??we(ju.chooseComputer),e[42]=D?.label,e[43]=V):V=e[43];let H;e[44]!==a||e[45]!==O||e[46]!==_||e[47]!==f||e[48]!==n?(H=Z=>{if(!O&&Z!==_){L(Z);let le=Z1e(n,f,Z)[0]?.id;le&&a?.(le,Z==="local"?void 0:Z)}},e[44]=a,e[45]=O,e[46]=_,e[47]=f,e[48]=n,e[49]=H):H=e[49];let ne;e[50]!==w||e[51]!==O||e[52]!==_||e[53]!==V||e[54]!==H?(ne=(0,bt.jsx)(W1e,{label:j,menu:"Computer",value:V,options:w,selected:_,disabled:O,onPick:H}),e[50]=w,e[51]=O,e[52]=_,e[53]=V,e[54]=H,e[55]=ne):ne=e[55];let J;e[56]!==G||e[57]!==ne?(J=(0,bt.jsxs)("div",{className:"acpmux-location-leading",children:[G,ne]}),e[56]=G,e[57]=ne,e[58]=J):J=e[58];let W;e[59]!==P?(W=P&&(0,bt.jsx)(eGe,{branch:P}),e[59]=P,e[60]=W):W=e[60];let ie;return e[61]!==U||e[62]!==J||e[63]!==W?(ie=(0,bt.jsxs)("div",{className:"acpmux-composer-context","data-readonly":U,children:[J,W]}),e[61]=U,e[62]=J,e[63]=W,e[64]=ie):ie=e[64],ie}function QHe(t){return t.id}function JHe(t){return{id:wB(t.cwd),label:t.label,detail:t.cwd}}function eGe(t){let e=(0,dg.c)(19),{branch:n}=t,[r,i]=(0,nl.useState)(!1),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=we("changes.scope.branch"),e[0]=o):o=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,bt.jsx)(nGe,{}),e[1]=a):a=e[1];let s;e[2]!==n?(s=(0,bt.jsx)(Z1,{className:"acpmux-location-button",label:o,children:(0,bt.jsx)(wM,{icon:a,value:n,chevron:!0})}),e[2]=n,e[3]=s):s=e[3];let l;e[4]!==n?(l=(0,bt.jsx)("span",{className:"acpmux-menu-text",children:(0,bt.jsx)("span",{className:"acpmux-menu-label",children:n})}),e[4]=n,e[5]=l):l=e[5];let c;e[6]!==n||e[7]!==l?(c=(0,bt.jsx)(xM,{value:n,disabled:!0,className:"acpmux-menu-item",children:l}),e[6]=n,e[7]=l,e[8]=c):c=e[8];let u;e[9]!==n||e[10]!==c?(u=(0,bt.jsx)(xm,{side:"top",className:"acpmux-menu acpmux-location-menu",align:"end",children:(0,bt.jsx)(yM,{value:n,onValueChange:tGe,children:c})}),e[9]=n,e[10]=c,e[11]=u):u=e[11];let d;e[12]!==r||e[13]!==s||e[14]!==u?(d=(0,bt.jsxs)(V1,{open:r,onOpenChange:i,children:[s,u]}),e[12]=r,e[13]=s,e[14]=u,e[15]=d):d=e[15];let p;return e[16]!==n||e[17]!==d?(p=(0,bt.jsx)("span",{className:"acpmux-location-picker",title:n,children:d}),e[16]=n,e[17]=d,e[18]=p):p=e[18],p}function tGe(){}function nGe(){let t=(0,dg.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,bt.jsxs)("svg",{className:"acpmux-icon acpmux-location-icon",width:14,height:14,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,"aria-hidden":"true",children:[(0,bt.jsx)("circle",{cx:"4",cy:"3",r:"1.5"}),(0,bt.jsx)("circle",{cx:"4",cy:"13",r:"1.5"}),(0,bt.jsx)("circle",{cx:"12",cy:"13",r:"1.5"}),(0,bt.jsx)("path",{d:"M4 4.5v5A3.5 3.5 0 0 0 7.5 13H10.5M4 6.5A3.5 3.5 0 0 1 7.5 3H10"})]}),t[0]=e):e=t[0],e}function xB(t){return t?.hostKind==="cloud"&&(t.peer||t.host)?t.peer??t.host:"local"}function rGe(t,e,n,r){let o=[{id:"local",label:r||(t?.hostKind==="local"&&t.host?t.host:we(ju.local))}],a=new Set;for(let l of n)a.has(l)||(a.add(l),o.push({id:l,label:l,detail:we(ju.cloud)}));for(let l of e){let c=l.peer??(l.hostKind==="cloud"?l.host:void 0);!c||a.has(c)||(a.add(c),o.push({id:c,label:l.host??c,detail:we(ju.cloud)}))}let s=t?.hostKind==="cloud"?t.peer??t.host:void 0;return s&&!a.has(s)&&o.push({id:s,label:t?.host??s,detail:we(ju.cloud)}),o}function Z1e(t,e,n){let r=new Set,i=[],o=a=>{let s=wB(a);!s||r.has(s)||(r.add(s),i.push({id:s,label:wi(s),detail:s}))};t&&xB(t)===n&&o(t.cwd);for(let a of e)(a.peer??(a.hostKind==="cloud"?a.host:"local"))===n&&o(a.cwd);return i}function wB(t){return t?t.replace(/\/+$/,"")||(t.startsWith("/")?"/":t):void 0}function wM(t){let e=(0,dg.c)(8),{icon:n,value:r,chevron:i}=t,o;e[0]!==r?(o=(0,bt.jsx)("span",{className:"acpmux-location-label",children:r}),e[0]=r,e[1]=o):o=e[1];let a;e[2]!==i?(a=i&&(0,bt.jsx)(w1,{}),e[2]=i,e[3]=a):a=e[3];let s;return e[4]!==n||e[5]!==o||e[6]!==a?(s=(0,bt.jsxs)(bt.Fragment,{children:[n,o,a]}),e[4]=n,e[5]=o,e[6]=a,e[7]=s):s=e[7],s}function X1e(){let t=(0,dg.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,bt.jsx)("svg",{className:"acpmux-icon acpmux-location-icon",width:14,height:14,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:(0,bt.jsx)("path",{d:"M1.9 4.6c0-.8.6-1.4 1.4-1.4h2.6l1.5 1.6h5.3c.8 0 1.4.6 1.4 1.4v5.6c0 .8-.6 1.4-1.4 1.4H3.3c-.8 0-1.4-.6-1.4-1.4Z"})}),t[0]=e):e=t[0],e}function Y1e(t,e){let n=(0,nl.useRef)(e);n.current=e,(0,nl.useEffect)(()=>{if(t)return Xs(t,()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n.current()})},[t])}function iGe(t){let e=(0,dg.c)(26),{label:n,menu:r,folders:i,current:o,onPick:a,onBrowse:s}=t,[l,c]=(0,nl.useState)(!1),u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(!0),e[0]=u):u=e[0],Y1e(r,u);let d;e[1]!==o?(d=o?wi(o):we(ju.chooseFolder),e[1]=o,e[2]=d):d=e[2];let p=d,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=(0,bt.jsx)(X1e,{}),e[3]=m):m=e[3];let f;e[4]!==p?(f=(0,bt.jsx)(wM,{icon:m,value:p,chevron:!0}),e[4]=p,e[5]=f):f=e[5];let h;e[6]!==n||e[7]!==f?(h=(0,bt.jsx)(Z1,{className:"acpmux-location-button",label:n,children:f}),e[6]=n,e[7]=f,e[8]=h):h=e[8];let x;e[9]!==o||e[10]!==i||e[11]!==s||e[12]!==a?(x=i.length>0&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"acpmux-location-folders",children:(0,bt.jsx)(yM,{value:o??"",onValueChange:v=>{c(!1),v!==o&&a(v)},children:i.map(oGe)})}),s&&(0,bt.jsx)(xy,{})]}),e[9]=o,e[10]=i,e[11]=s,e[12]=a,e[13]=x):x=e[13];let g;e[14]!==s?(g=s&&(0,bt.jsxs)(jd,{className:"acpmux-menu-item acpmux-location-choose",onSelect:()=>{c(!1),s()},children:[(0,bt.jsx)("span",{className:"ui-menu-check","aria-hidden":"true"}),(0,bt.jsx)("span",{className:"acpmux-menu-label",children:we(ju.chooseFolderMenu)})]}),e[14]=s,e[15]=g):g=e[15];let y;e[16]!==x||e[17]!==g?(y=(0,bt.jsxs)(xm,{side:"top",className:"acpmux-menu acpmux-location-menu",align:"end",children:[x,g]}),e[16]=x,e[17]=g,e[18]=y):y=e[18];let b;e[19]!==l||e[20]!==h||e[21]!==y?(b=(0,bt.jsxs)(V1,{open:l,onOpenChange:c,children:[h,y]}),e[19]=l,e[20]=h,e[21]=y,e[22]=b):b=e[22];let w;return e[23]!==o||e[24]!==b?(w=(0,bt.jsx)("span",{className:"acpmux-location-picker",title:o,children:b}),e[23]=o,e[24]=b,e[25]=w):w=e[25],w}function oGe(t){return(0,bt.jsx)(xM,{value:t.id,className:"acpmux-menu-item",children:(0,bt.jsxs)("span",{className:"acpmux-menu-text",title:t.id,children:[(0,bt.jsx)("span",{className:"acpmux-menu-label",children:t.label}),(0,bt.jsx)("span",{className:"acpmux-menu-description",children:t.detail??t.id})]})},t.id)}function W1e({label:t,menu:e,value:n,options:r,selected:i,disabled:o,icon:a,allowPath:s=!1,onPick:l}){let[c,u]=(0,nl.useState)(!1),[d,p]=(0,nl.useState)(""),m=(0,nl.useRef)(null);Y1e(o?void 0:e,()=>u(!0));let f=(0,nl.useMemo)(()=>{let b=d.trim().toLowerCase().split(/\s+/).filter(Boolean);return r.filter(w=>b.every(v=>(w.label+" "+(w.detail??"")).toLowerCase().includes(v)))},[r,d]);if(o)return(0,bt.jsx)("span",{className:"acpmux-location-picker",children:(0,bt.jsx)("span",{className:"acpmux-location-readonly","aria-label":t+": "+n,title:t+": "+(s&&i?i:n),children:(0,bt.jsx)(wM,{icon:a,value:n,chevron:!1})})});let h=b=>{l(b),u(!1),p("")},x=(0,bt.jsx)(wM,{icon:a,value:n,chevron:!0});if(!s)return(0,bt.jsx)("span",{className:"acpmux-location-picker",children:(0,bt.jsxs)(V1,{open:c,onOpenChange:u,children:[(0,bt.jsx)(Z1,{className:"acpmux-location-button",label:t,children:x}),(0,bt.jsx)(xm,{className:"acpmux-menu acpmux-location-menu",align:"start",children:(0,bt.jsx)(yM,{value:i??"",onValueChange:h,children:r.map(b=>(0,bt.jsx)(xM,{value:b.id,className:"acpmux-menu-item",children:(0,bt.jsxs)("span",{className:"acpmux-menu-text",children:[(0,bt.jsx)("span",{className:"acpmux-menu-label",children:b.label}),b.detail&&(0,bt.jsx)("span",{className:"acpmux-menu-description",children:b.detail})]})},b.id))})})]})});let g=/^(?:\/|~\/)/.test(d.trim())?d.trim():void 0,y=f.map(b=>b.id);return g&&!y.includes(g)&&y.push(g),(0,bt.jsxs)("span",{className:"acpmux-location-picker",title:i,children:[(0,bt.jsx)("button",{ref:m,type:"button",className:"acpmux-location-button","aria-label":t,"aria-haspopup":"dialog","aria-expanded":c,onClick:()=>u(!c),children:x}),(0,bt.jsx)(ay,{open:c,onOpenChange:b=>{u(b),b||p("")},anchor:c?m.current:null,label:t,className:"acpmux-menu acpmux-location-menu",side:"top",children:(0,bt.jsx)(Xfe,{suggestions:y,onQuery:p,onSubmit:b=>b?h(b):u(!1),onCancel:()=>u(!1),label:t,placeholder:n,inputClassName:"acpmux-location-search",itemClassName:"acpmux-menu-item",renderItem:b=>{let w=r.find(v=>v.id===b);return(0,bt.jsxs)("span",{className:"acpmux-menu-text",children:[(0,bt.jsx)("span",{className:"acpmux-menu-label",children:w?.label??b}),w?.detail&&(0,bt.jsx)("span",{className:"acpmux-menu-description",children:w.detail})]})},inline:!0})})]})}var rl=R(Q(),1);var Ou=R(ee(),1),aGe=80;function J1e({search:t,onPick:e,onClose:n,debounceMs:r=aGe}){let i=ve(),[o,a]=(0,rl.useState)(""),[s,l]=(0,rl.useState)({kind:"idle"}),[c,u]=(0,rl.useState)(0),d=(0,rl.useRef)(null),p=(0,rl.useRef)(null),m=(0,rl.useId)(),f=(0,rl.useRef)(0);(0,rl.useEffect)(()=>{d.current?.focus();let v=_=>{p.current?.contains(_.target)||h.current()};document.addEventListener("pointerdown",v);let k=f;return()=>{document.removeEventListener("pointerdown",v),k.current++}},[]);let h=(0,rl.useRef)(n);h.current=n,(0,rl.useEffect)(()=>{let v=++f.current,k=o.trim();if(!k){l({kind:"idle"});return}l(L=>({kind:"searching",results:L.kind==="done"||L.kind==="searching"?L.results:[]}));let _=setTimeout(()=>{t(k).then(L=>{if(v!==f.current)return;let S=Wpe(L);l(S?{kind:"done",results:S.results,truncated:!!S.truncated}:{kind:"failed"}),u(0)},L=>{v===f.current&&l({kind:"failed",outside:Zpe(L)===fL})})},r);return()=>clearTimeout(_)},[o,t,r]);let x=s.kind==="done"||s.kind==="searching"?s.results:[],g=Math.min(c,Math.max(x.length-1,0)),y=v=>{v&&e(v.path)},b=v=>{v.nativeEvent.isComposing||v.keyCode===229||(v.key==="Escape"?(v.preventDefault(),v.stopPropagation(),n()):v.key==="ArrowDown"||v.key==="ArrowUp"?(v.preventDefault(),x.length>0&&u((g+(v.key==="ArrowDown"?1:-1)+x.length)%x.length)):v.key==="Enter"?(v.preventDefault(),y(x[g])):v.key==="Tab"&&(v.preventDefault(),n()))},w=s.kind==="idle"?i("files.hint"):s.kind==="failed"?s.outside?i("files.outside"):i("files.failed"):s.kind==="searching"&&x.length===0?i("files.searching"):s.kind==="done"&&x.length===0?i("files.none"):void 0;return(0,Ou.jsxs)("dialog",{ref:p,open:!0,className:"acpmux-file-search","aria-label":i("files.search"),children:[(0,Ou.jsx)("input",{ref:d,type:"text",role:"combobox","aria-label":i("files.search"),"aria-expanded":x.length>0,"aria-controls":m,"aria-autocomplete":"list","aria-activedescendant":x.length>0?`${m}-${g}`:void 0,placeholder:i("files.search"),value:o,spellCheck:!1,autoComplete:"off",onChange:v=>{a(v.target.value),u(0)},onKeyDown:b}),(0,Ou.jsx)("div",{id:m,role:"listbox","aria-label":i("files.search"),"aria-busy":s.kind==="searching",children:x.map((v,k)=>{let{dir:_,name:L}=Kpe(v.path,v.matches);return(0,Ou.jsxs)("div",{id:`${m}-${k}`,role:"option",tabIndex:-1,"aria-selected":k===g,className:`acpmux-file-result${k===g?" acpmux-menu-active":""}`,title:v.path,onPointerMove:()=>u(k),onMouseDown:S=>{S.preventDefault(),y(v)},children:[(0,Ou.jsx)("span",{className:"acpmux-file-name",children:Q1e(L)}),_.length>0&&(0,Ou.jsx)("span",{className:"acpmux-file-dir",children:Q1e(_)})]},v.path)})}),w&&(0,Ou.jsx)("output",{className:"acpmux-file-note",children:w}),s.kind==="done"&&s.truncated&&x.length>0&&(0,Ou.jsx)("output",{className:"acpmux-file-note",children:i("files.more",{count:x.length})})]})}function Q1e(t){return t.map((e,n)=>e.matched?(0,Ou.jsx)("b",{children:e.text},n):e.text)}var ii=R(Q(),1);var Vl=(function(t){return t.docTypeError="docTypeError",t.contextNotFound="contextNotFound",t.timerNotFound="timerNotFound",t.ctxCallOutOfScope="ctxCallOutOfScope",t.createNodeInParserFail="createNodeInParserFail",t.stackOverFlow="stackOverFlow",t.parserMatchError="parserMatchError",t.serializerMatchError="serializerMatchError",t.getAtomFromSchemaFail="getAtomFromSchemaFail",t.expectDomTypeError="expectDomTypeError",t.callCommandBeforeEditorView="callCommandBeforeEditorView",t.missingRootElement="missingRootElement",t.missingNodeInSchema="missingNodeInSchema",t.missingMarkInSchema="missingMarkInSchema",t.ctxNotBind="ctxNotBind",t.missingYjsDoc="missingYjsDoc",t.aiProviderError="aiProviderError",t.aiBuildContextError="aiBuildContextError",t})({}),Zl=class extends Error{constructor(t,e,n){super(e,n),this.name="MilkdownError",this.code=t,n?.cause!==void 0&&(this.cause=n.cause)}},sGe=(t,e)=>typeof e=="function"?"[Function]":e,vM=t=>JSON.stringify(t,sGe);function ehe(t){return new Zl(Vl.docTypeError,`Doc type error, unsupported type: ${vM(t)}`)}function the(t){return new Zl(Vl.contextNotFound,`Context "${t}" not found, do you forget to inject it?`)}function nhe(t){return new Zl(Vl.timerNotFound,`Timer "${t}" not found, do you forget to record it?`)}function wy(){return new Zl(Vl.ctxCallOutOfScope,"Should not call a context out of the plugin.")}function rhe(t,e,n){let r=`Cannot create node for ${"name"in t?t.name:t}`,i=a=>{if(a==null)return"null";if(Array.isArray(a))return`[${a.map(i).join(", ")}]`;if(typeof a=="object")return"toJSON"in a&&typeof a.toJSON=="function"?JSON.stringify(a.toJSON()):"spec"in a?JSON.stringify(a.spec):JSON.stringify(a);if(typeof a=="string"||typeof a=="number"||typeof a=="boolean")return JSON.stringify(a);if(typeof a=="function")return`[Function: ${a.name||"anonymous"}]`;try{return String(a)}catch{return"[Unserializable]"}},o=[["[Description]",r],["[Attributes]",e],["[Content]",(n??[]).map(a=>a?typeof a=="object"&&"type"in a?`${a}`:i(a):"null")]].reduce((a,[s,l])=>{let c=`${s}: ${i(l)}.`;return a.concat(c)},[]);return new Zl(Vl.createNodeInParserFail,o.join(` +`))}function vB(){return new Zl(Vl.stackOverFlow,"Stack over flow, cannot pop on an empty stack.")}function ihe(t){return new Zl(Vl.parserMatchError,`Cannot match target parser for node: ${vM(t)}.`)}function ohe(t){return new Zl(Vl.serializerMatchError,`Cannot match target serializer for node: ${vM(t)}.`)}function ahe(t,e){return new Zl(Vl.getAtomFromSchemaFail,`Cannot get ${t}: ${e} from schema.`)}function Wl(t){return new Zl(Vl.expectDomTypeError,`Expect to be a dom, but get: ${vM(t)}.`)}function kM(){return new Zl(Vl.callCommandBeforeEditorView,"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized")}function she(t){return new Zl(Vl.missingNodeInSchema,`Missing node in schema, milkdown cannot find "${t}" in schema.`)}function lhe(t){return new Zl(Vl.missingMarkInSchema,`Missing mark in schema, milkdown cannot find "${t}" in schema.`)}var kB=class{constructor(){this.sliceMap=new Map,this.get=t=>{let e=typeof t=="string"?[...this.sliceMap.values()].find(n=>n.type.name===t):this.sliceMap.get(t.id);if(!e){let n=typeof t=="string"?t:t.name;throw the(n)}return e},this.remove=t=>{let e=typeof t=="string"?[...this.sliceMap.values()].find(n=>n.type.name===t):this.sliceMap.get(t.id);e&&this.sliceMap.delete(e.type.id)},this.has=t=>typeof t=="string"?[...this.sliceMap.values()].some(e=>e.type.name===t):this.sliceMap.has(t.id)}},lGe=class{#e;#t;#n;constructor(t,e,n){this.#e=[],this.#n=()=>{this.#e.forEach(r=>r(this.#t))},this.set=r=>{this.#t=r,this.#n()},this.get=()=>this.#t,this.update=r=>{this.#t=r(this.#t),this.#n()},this.type=n,this.#t=e,t.set(n.id,this)}on(t){return this.#e.push(t),()=>{this.#e=this.#e.filter(e=>e!==t)}}once(t){let e=this.on(n=>{t(n),e()});return e}off(t){this.#e=this.#e.filter(e=>e!==t)}offAll(){this.#e=[]}},cGe=class{constructor(t,e){this.id=Symbol(`Context-${e}`),this.name=e,this._defaultValue=t,this._typeInfo=()=>{throw wy()}}create(t,e=this._defaultValue){return new lGe(t,e,this)}},Fn=(t,e)=>new cGe(t,e),uGe=class{#e;#t;#n;#r;#i;#o;#s;constructor(t,e,n){this.#r=new Set,this.#i=new Set,this.#o=new Map,this.#s=new Map,this.read=()=>({metadata:this.#e,injectedSlices:[...this.#r].map(r=>({name:typeof r=="string"?r:r.name,value:this.#c(r)})),consumedSlices:[...this.#i].map(r=>({name:typeof r=="string"?r:r.name,value:this.#c(r)})),recordedTimers:[...this.#o].map(([r,{duration:i}])=>({name:r.name,duration:i,status:this.#a(r)})),waitTimers:[...this.#s].map(([r,{duration:i}])=>({name:r.name,duration:i,status:this.#a(r)}))}),this.onRecord=r=>{this.#o.set(r,{start:Date.now(),duration:0})},this.onClear=r=>{this.#o.delete(r)},this.onDone=r=>{let i=this.#o.get(r);i&&(i.duration=Date.now()-i.start)},this.onWait=(r,i)=>{let o=Date.now();i.finally(()=>{this.#s.set(r,{duration:Date.now()-o})}).catch(console.error)},this.onInject=r=>{this.#r.add(r)},this.onRemove=r=>{this.#r.delete(r)},this.onUse=r=>{this.#i.add(r)},this.#c=r=>this.#t.get(r).get(),this.#a=r=>this.#n.get(r).status,this.#t=t,this.#n=e,this.#e=n}#c;#a},che=class uhe{#e;#t;#n;#r;constructor(e,n,r){this.produce=i=>i&&Object.keys(i).length?new uhe(this.#e,this.#t,{...i}):this,this.inject=(i,o)=>{let a=i.create(this.#e.sliceMap);return o!=null&&a.set(o),this.#r?.onInject(i),this},this.remove=i=>(this.#e.remove(i),this.#r?.onRemove(i),this),this.record=i=>(i.create(this.#t.store),this.#r?.onRecord(i),this),this.clearTimer=i=>(this.#t.remove(i),this.#r?.onClear(i),this),this.isInjected=i=>this.#e.has(i),this.isRecorded=i=>this.#t.has(i),this.use=i=>(this.#r?.onUse(i),this.#e.get(i)),this.get=i=>this.use(i).get(),this.set=(i,o)=>this.use(i).set(o),this.update=(i,o)=>this.use(i).update(o),this.timer=i=>this.#t.get(i),this.done=i=>{this.timer(i).done(),this.#r?.onDone(i)},this.wait=i=>{let o=this.timer(i).start();return this.#r?.onWait(i,o),o},this.waitTimers=async i=>{await Promise.all(this.get(i).map(o=>this.wait(o)))},this.#e=e,this.#t=n,this.#n=r,r&&(this.#r=new uGe(e,n,r))}get meta(){return this.#n}get inspector(){return this.#r}},dhe=class{constructor(){this.store=new Map,this.get=t=>{let e=this.store.get(t.id);if(!e)throw nhe(t.name);return e},this.remove=t=>{this.store.delete(t.id)},this.has=t=>this.store.has(t.id)}},dGe=class{#e;#t;#n;#r;#i;constructor(t,e){this.#e=null,this.#t=null,this.#r="pending",this.#i=null,this.start=()=>(this.#e??=new Promise((n,r)=>{this.#t=i=>{i instanceof CustomEvent&&i.detail.id===this.#n&&(this.#r="resolved",this.#o(),i.stopImmediatePropagation(),n())},this.#s(()=>{this.#r==="pending"&&(this.#r="rejected"),this.#o(),r(new Error(`Timing ${this.type.name} timeout.`))}),this.#r="pending",addEventListener(this.type.name,this.#t)}),this.#e),this.done=()=>{let n=new CustomEvent(this.type.name,{detail:{id:this.#n}});dispatchEvent(n)},this.#o=()=>{this.#i!==null&&(clearTimeout(this.#i),this.#i=null),this.#t&&removeEventListener(this.type.name,this.#t)},this.#s=n=>{this.#i=setTimeout(()=>{this.#i=null,n()},this.type.timeout)},this.#n=Symbol(e.name),this.type=e,t.set(e.id,this)}get status(){return this.#r}#o;#s},pGe=class{constructor(t,e=3e3){this.create=n=>new dGe(n,this),this.id=Symbol(`Timer-${t}`),this.name=t,this.timeout=e}},Wc=(t,e=3e3)=>new pGe(t,e);var mGe={};function pg(t,e){let n=e||mGe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mhe(t,r,i)}function mhe(t,e,n){if(fGe(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return phe(t.children,e,n)}return Array.isArray(t)?phe(t,e,n):""}function phe(t,e,n){let r=[],i=-1;for(;++i<t.length;)r[i]=mhe(t[i],e,n);return r.join("")}function fGe(t){return!!(t&&typeof t=="object")}var fhe=document.createElement("i");function vy(t){let e="&"+t+";";fhe.innerHTML=e;let n=fhe.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function Hi(t,e,n,r){let i=t.length,o=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(e,0),t.splice(...a),o+=1e4,e+=1e4}function us(t,e){return t.length>0?(Hi(t,t.length,0,e),t):e}var hhe={}.hasOwnProperty;function CM(t){let e={},n=-1;for(;++n<t.length;)hGe(e,t[n]);return e}function hGe(t,e){let n;for(n in e){let i=(hhe.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n],a;if(o)for(a in o){hhe.call(i,a)||(i[a]=[]);let s=o[a];gGe(i[a],Array.isArray(s)?s:s?[s]:[])}}}function gGe(t,e){let n=-1,r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);Hi(t,0,0,r)}function _M(t,e){let n=Number.parseInt(t,e);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?"\uFFFD":String.fromCodePoint(n)}function ja(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var wo=W1(/[A-Za-z]/),vo=W1(/[\dA-Za-z]/),ghe=W1(/[#-'*+\--9=?A-Z^-~]/);function mg(t){return t!==null&&(t<32||t===127)}var Mx=W1(/\d/),bhe=W1(/[\dA-Fa-f]/),yhe=W1(/[!-/:-@[-`{-~]/);function ct(t){return t!==null&&t<-2}function Pn(t){return t!==null&&(t<0||t===32)}function Zt(t){return t===-2||t===-1||t===32}var fg=W1(/\p{P}|\p{S}/u),Od=W1(/\s/);function W1(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Bt(t,e,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return a;function a(l){return Zt(l)?(t.enter(n),s(l)):e(l)}function s(l){return Zt(l)&&o++<i?(t.consume(l),s):(t.exit(n),e(l))}}var xhe={tokenize:bGe};function bGe(t){let e=t.attempt(this.parser.constructs.contentInitial,r,i),n;return e;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Bt(t,e,"linePrefix")}function i(s){return t.enter("paragraph"),o(s)}function o(s){let l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(s);return}return ct(s)?(t.consume(s),t.exit("chunkText"),o):(t.consume(s),a)}}var vhe={tokenize:yGe},whe={tokenize:xGe};function yGe(t){let e=this,n=[],r=0,i,o,a;return s;function s(b){if(r<n.length){let w=n[r];return e.containerState=w[1],t.attempt(w[0].continuation,l,c)(b)}return c(b)}function l(b){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&y();let w=e.events.length,v=w,k;for(;v--;)if(e.events[v][0]==="exit"&&e.events[v][1].type==="chunkFlow"){k=e.events[v][1].end;break}g(r);let _=w;for(;_<e.events.length;)e.events[_][1].end={...k},_++;return Hi(e.events,v+1,0,e.events.slice(w)),e.events.length=_,c(b)}return s(b)}function c(b){if(r===n.length){if(!i)return p(b);if(i.currentConstruct&&i.currentConstruct.concrete)return f(b);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(whe,u,d)(b)}function u(b){return i&&y(),g(r),p(b)}function d(b){return e.parser.lazy[e.now().line]=r!==n.length,a=e.now().offset,f(b)}function p(b){return e.containerState={},t.attempt(whe,m,f)(b)}function m(b){return r++,n.push([e.currentConstruct,e.containerState]),p(b)}function f(b){if(b===null){i&&y(),g(0),t.consume(b);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),h(b)}function h(b){if(b===null){x(t.exit("chunkFlow"),!0),g(0),t.consume(b);return}return ct(b)?(t.consume(b),x(t.exit("chunkFlow")),r=0,e.interrupt=void 0,s):(t.consume(b),h)}function x(b,w){let v=e.sliceStream(b);if(w&&v.push(null),b.previous=o,o&&(o.next=b),o=b,i.defineSkip(b.start),i.write(v),e.parser.lazy[b.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;let _=e.events.length,L=_,S,C;for(;L--;)if(e.events[L][0]==="exit"&&e.events[L][1].type==="chunkFlow"){if(S){C=e.events[L][1].end;break}S=!0}for(g(r),k=_;k<e.events.length;)e.events[k][1].end={...C},k++;Hi(e.events,L+1,0,e.events.slice(_)),e.events.length=k}}function g(b){let w=n.length;for(;w-- >b;){let v=n[w];e.containerState=v[1],v[0].exit.call(e,t)}n.length=b}function y(){i.write([null]),o=void 0,i=void 0,e.containerState._closeFlow=void 0}}function xGe(t,e,n){return Bt(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wm(t){if(t===null||Pn(t)||Od(t))return 1;if(fg(t))return 2}function K1(t,e,n){let r=[],i=-1;for(;++i<t.length;){let o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}var Ex={name:"attention",resolveAll:wGe,tokenize:vGe};function wGe(t,e){let n=-1,r,i,o,a,s,l,c,u;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let d={...t[r][1].end},p={...t[n][1].start};khe(d,-l),khe(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...t[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},t[r][1].end={...a.start},t[n][1].start={...s.end},c=[],t[r][1].end.offset-t[r][1].start.offset&&(c=us(c,[["enter",t[r][1],e],["exit",t[r][1],e]])),c=us(c,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",o,e]]),c=us(c,K1(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),c=us(c,[["exit",o,e],["enter",s,e],["exit",s,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(u=2,c=us(c,[["enter",t[n][1],e],["exit",t[n][1],e]])):u=0,Hi(t,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function vGe(t,e){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=wm(r),o;return a;function a(l){return o=l,t.enter("attentionSequence"),s(l)}function s(l){if(l===o)return t.consume(l),s;let c=t.exit("attentionSequence"),u=wm(l),d=!u||u===2&&i||n.includes(l),p=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!p)),c._close=!!(o===42?p:p&&(u||!d)),e(l)}}function khe(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var CB={name:"autolink",tokenize:kGe};function kGe(t,e,n){let r=0;return i;function i(m){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(m){return wo(m)?(t.consume(m),a):m===64?n(m):c(m)}function a(m){return m===43||m===45||m===46||vo(m)?(r=1,s(m)):c(m)}function s(m){return m===58?(t.consume(m),r=0,l):(m===43||m===45||m===46||vo(m))&&r++<32?(t.consume(m),s):(r=0,c(m))}function l(m){return m===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):m===null||m===32||m===60||mg(m)?n(m):(t.consume(m),l)}function c(m){return m===64?(t.consume(m),u):ghe(m)?(t.consume(m),c):n(m)}function u(m){return vo(m)?d(m):n(m)}function d(m){return m===46?(t.consume(m),r=0,u):m===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):p(m)}function p(m){if((m===45||vo(m))&&r++<63){let f=m===45?p:d;return t.consume(m),f}return n(m)}}var Dd={partial:!0,tokenize:CGe};function CGe(t,e,n){return r;function r(o){return Zt(o)?Bt(t,i,"linePrefix")(o):i(o)}function i(o){return o===null||ct(o)?e(o):n(o)}}var SM={continuation:{tokenize:SGe},exit:LGe,name:"blockQuote",tokenize:_Ge};function _Ge(t,e,n){let r=this;return i;function i(a){if(a===62){let s=r.containerState;return s.open||(t.enter("blockQuote",{_container:!0}),s.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Zt(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function SGe(t,e,n){let r=this;return i;function i(a){return Zt(a)?Bt(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return t.attempt(SM,e,n)(a)}}function LGe(t){t.exit("blockQuote")}var LM={name:"characterEscape",tokenize:MGe};function MGe(t,e,n){return r;function r(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return yhe(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}var MM={name:"characterReference",tokenize:EGe};function EGe(t,e,n){let r=this,i=0,o,a;return s;function s(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),l}function l(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),o=31,a=vo,u(d))}function c(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,a=bhe,u):(t.enter("characterReferenceValue"),o=7,a=Mx,u(d))}function u(d){if(d===59&&i){let p=t.exit("characterReferenceValue");return a===vo&&!vy(r.sliceSerialize(p))?n(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(d)&&i++<o?(t.consume(d),u):n(d)}}var Che={partial:!0,tokenize:RGe},EM={concrete:!0,name:"codeFenced",tokenize:TGe};function TGe(t,e,n){let r=this,i={partial:!0,tokenize:v},o=0,a=0,s;return l;function l(k){return c(k)}function c(k){let _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=k,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),u(k)}function u(k){return k===s?(a++,t.consume(k),u):a<3?n(k):(t.exit("codeFencedFenceSequence"),Zt(k)?Bt(t,d,"whitespace")(k):d(k))}function d(k){return k===null||ct(k)?(t.exit("codeFencedFence"),r.interrupt?e(k):t.check(Che,h,w)(k)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===null||ct(k)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),d(k)):Zt(k)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Bt(t,m,"whitespace")(k)):k===96&&k===s?n(k):(t.consume(k),p)}function m(k){return k===null||ct(k)?d(k):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),f(k))}function f(k){return k===null||ct(k)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),d(k)):k===96&&k===s?n(k):(t.consume(k),f)}function h(k){return t.attempt(i,w,x)(k)}function x(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),g}function g(k){return o>0&&Zt(k)?Bt(t,y,"linePrefix",o+1)(k):y(k)}function y(k){return k===null||ct(k)?t.check(Che,h,w)(k):(t.enter("codeFlowValue"),b(k))}function b(k){return k===null||ct(k)?(t.exit("codeFlowValue"),y(k)):(t.consume(k),b)}function w(k){return t.exit("codeFenced"),e(k)}function v(k,_,L){let S=0;return C;function C(N){return k.enter("lineEnding"),k.consume(N),k.exit("lineEnding"),T}function T(N){return k.enter("codeFencedFence"),Zt(N)?Bt(k,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):M(N)}function M(N){return N===s?(k.enter("codeFencedFenceSequence"),A(N)):L(N)}function A(N){return N===s?(S++,k.consume(N),A):S>=a?(k.exit("codeFencedFenceSequence"),Zt(N)?Bt(k,$,"whitespace")(N):$(N)):L(N)}function $(N){return N===null||ct(N)?(k.exit("codeFencedFence"),_(N)):L(N)}}}function RGe(t,e,n){let r=this;return i;function i(a){return a===null?n(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}var Tx={name:"codeIndented",tokenize:$Ge},AGe={partial:!0,tokenize:IGe};function $Ge(t,e,n){let r=this;return i;function i(c){return t.enter("codeIndented"),Bt(t,o,"linePrefix",5)(c)}function o(c){let u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):ct(c)?t.attempt(AGe,a,l)(c):(t.enter("codeFlowValue"),s(c))}function s(c){return c===null||ct(c)?(t.exit("codeFlowValue"),a(c)):(t.consume(c),s)}function l(c){return t.exit("codeIndented"),e(c)}}function IGe(t,e,n){let r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ct(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):Bt(t,o,"linePrefix",5)(a)}function o(a){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(a):ct(a)?i(a):n(a)}}var _B={name:"codeText",previous:PGe,resolve:NGe,tokenize:jGe};function NGe(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function PGe(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function jGe(t,e,n){let r=this,i=0,o,a;return s;function s(p){return t.enter("codeText"),t.enter("codeTextSequence"),l(p)}function l(p){return p===96?(t.consume(p),i++,l):(t.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),c):p===96?(a=t.enter("codeTextSequence"),o=0,d(p)):ct(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||ct(p)?(t.exit("codeTextData"),c(p)):(t.consume(p),u)}function d(p){return p===96?(t.consume(p),o++,d):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(p)):(a.type="codeTextData",u(p))}}var TM=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){let i=n||0;this.setCursor(Math.trunc(e));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Rx(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Rx(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Rx(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let n=this.left.splice(e,Number.POSITIVE_INFINITY);Rx(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Rx(this.left,n.reverse())}}};function Rx(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function RM(t){let e={},n=-1,r,i,o,a,s,l,c,u=new TM(t);for(;++n<u.length;){for(;n in e;)n=e[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,OGe(u,n)),n=e[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=u.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Hi(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function OGe(t,e){let n=t.get(e)[1],r=t.get(e)[2],i=e-1,o=[],a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let s=a.events,l=[],c={},u,d,p=-1,m=n,f=0,h=0,x=[h];for(;m;){for(;t.get(++i)[1]!==m;);o.push(i),m._tokenizer||(u=r.sliceStream(m),m.next||u.push(null),d&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(h=p+1,x.push(h),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):x.pop(),p=x.length;p--;){let g=s.slice(x[p],x[p+1]),y=o.pop();l.push([y,y+g.length-1]),t.splice(y,2,g)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}var SB={resolve:FGe,tokenize:BGe},DGe={partial:!0,tokenize:zGe};function FGe(t){return RM(t),t}function BGe(t,e){let n;return r;function r(s){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):ct(s)?t.check(DGe,a,o)(s):(t.consume(s),i)}function o(s){return t.exit("chunkContent"),t.exit("content"),e(s)}function a(s){return t.consume(s),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function zGe(t,e,n){let r=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Bt(t,o,"linePrefix")}function o(a){if(a===null||ct(a))return n(a);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(a):t.interrupt(r.parser.constructs.flow,n,e)(a)}}function AM(t,e,n,r,i,o,a,s,l){let c=l||Number.POSITIVE_INFINITY,u=0;return d;function d(g){return g===60?(t.enter(r),t.enter(i),t.enter(o),t.consume(g),t.exit(o),p):g===null||g===32||g===41||mg(g)?n(g):(t.enter(r),t.enter(a),t.enter(s),t.enter("chunkString",{contentType:"string"}),h(g))}function p(g){return g===62?(t.enter(o),t.consume(g),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(s),t.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===62?(t.exit("chunkString"),t.exit(s),p(g)):g===null||g===60||ct(g)?n(g):(t.consume(g),g===92?f:m)}function f(g){return g===60||g===62||g===92?(t.consume(g),m):m(g)}function h(g){return!u&&(g===null||g===41||Pn(g))?(t.exit("chunkString"),t.exit(s),t.exit(a),t.exit(r),e(g)):u<c&&g===40?(t.consume(g),u++,h):g===41?(t.consume(g),u--,h):g===null||g===32||g===40||mg(g)?n(g):(t.consume(g),g===92?x:h)}function x(g){return g===40||g===41||g===92?(t.consume(g),h):h(g)}}function $M(t,e,n,r,i,o){let a=this,s=0,l;return c;function c(m){return t.enter(r),t.enter(i),t.consume(m),t.exit(i),t.enter(o),u}function u(m){return s>999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(t.exit(o),t.enter(i),t.consume(m),t.exit(i),t.exit(r),e):ct(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),u):(t.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||ct(m)||s++>999?(t.exit("chunkString"),u(m)):(t.consume(m),l||(l=!Zt(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(t.consume(m),s++,d):d(m)}}function IM(t,e,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(t.enter(r),t.enter(i),t.consume(p),t.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):(t.enter(o),c(p))}function c(p){return p===a?(t.exit(o),l(a)):p===null?n(p):ct(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),Bt(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===a||p===null||ct(p)?(t.exit("chunkString"),c(p)):(t.consume(p),p===92?d:u)}function d(p){return p===a||p===92?(t.consume(p),u):u(p)}}function hg(t,e){let n;return r;function r(i){return ct(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):Zt(i)?Bt(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}var LB={name:"definition",tokenize:HGe},qGe={partial:!0,tokenize:GGe};function HGe(t,e,n){let r=this,i;return o;function o(m){return t.enter("definition"),a(m)}function a(m){return $M.call(r,t,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),l):n(m)}function l(m){return Pn(m)?hg(t,c)(m):c(m)}function c(m){return AM(t,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function u(m){return t.attempt(qGe,d,d)(m)}function d(m){return Zt(m)?Bt(t,p,"whitespace")(m):p(m)}function p(m){return m===null||ct(m)?(t.exit("definition"),r.parser.defined.push(i),e(m)):n(m)}}function GGe(t,e,n){return r;function r(s){return Pn(s)?hg(t,i)(s):n(s)}function i(s){return IM(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Zt(s)?Bt(t,a,"whitespace")(s):a(s)}function a(s){return s===null||ct(s)?e(s):n(s)}}var MB={name:"hardBreakEscape",tokenize:UGe};function UGe(t,e,n){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),i}function i(o){return ct(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}var EB={name:"headingAtx",resolve:VGe,tokenize:ZGe};function VGe(t,e){let n=t.length-2,r=3,i,o;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},o={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Hi(t,r,n-r+1,[["enter",i,e],["enter",o,e],["exit",o,e],["exit",i,e]])),t}function ZGe(t,e,n){let r=0;return i;function i(u){return t.enter("atxHeading"),o(u)}function o(u){return t.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(t.consume(u),a):u===null||Pn(u)?(t.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(t.enter("atxHeadingSequence"),l(u)):u===null||ct(u)?(t.exit("atxHeading"),e(u)):Zt(u)?Bt(t,s,"whitespace")(u):(t.enter("atxHeadingText"),c(u))}function l(u){return u===35?(t.consume(u),l):(t.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||Pn(u)?(t.exit("atxHeadingText"),s(u)):(t.consume(u),c)}}var _he=["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"],TB=["pre","script","style","textarea"];var RB={concrete:!0,name:"htmlFlow",resolveTo:XGe,tokenize:YGe},WGe={partial:!0,tokenize:JGe},KGe={partial:!0,tokenize:QGe};function XGe(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function YGe(t,e,n){let r=this,i,o,a,s,l;return c;function c(j){return u(j)}function u(j){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(j),d}function d(j){return j===33?(t.consume(j),p):j===47?(t.consume(j),o=!0,h):j===63?(t.consume(j),i=3,r.interrupt?e:P):wo(j)?(t.consume(j),a=String.fromCharCode(j),x):n(j)}function p(j){return j===45?(t.consume(j),i=2,m):j===91?(t.consume(j),i=5,s=0,f):wo(j)?(t.consume(j),i=4,r.interrupt?e:P):n(j)}function m(j){return j===45?(t.consume(j),r.interrupt?e:P):n(j)}function f(j){let V="CDATA[";return j===V.charCodeAt(s++)?(t.consume(j),s===V.length?r.interrupt?e:M:f):n(j)}function h(j){return wo(j)?(t.consume(j),a=String.fromCharCode(j),x):n(j)}function x(j){if(j===null||j===47||j===62||Pn(j)){let V=j===47,H=a.toLowerCase();return!V&&!o&&TB.includes(H)?(i=1,r.interrupt?e(j):M(j)):_he.includes(a.toLowerCase())?(i=6,V?(t.consume(j),g):r.interrupt?e(j):M(j)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):o?y(j):b(j))}return j===45||vo(j)?(t.consume(j),a+=String.fromCharCode(j),x):n(j)}function g(j){return j===62?(t.consume(j),r.interrupt?e:M):n(j)}function y(j){return Zt(j)?(t.consume(j),y):C(j)}function b(j){return j===47?(t.consume(j),C):j===58||j===95||wo(j)?(t.consume(j),w):Zt(j)?(t.consume(j),b):C(j)}function w(j){return j===45||j===46||j===58||j===95||vo(j)?(t.consume(j),w):v(j)}function v(j){return j===61?(t.consume(j),k):Zt(j)?(t.consume(j),v):b(j)}function k(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(t.consume(j),l=j,_):Zt(j)?(t.consume(j),k):L(j)}function _(j){return j===l?(t.consume(j),l=null,S):j===null||ct(j)?n(j):(t.consume(j),_)}function L(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Pn(j)?v(j):(t.consume(j),L)}function S(j){return j===47||j===62||Zt(j)?b(j):n(j)}function C(j){return j===62?(t.consume(j),T):n(j)}function T(j){return j===null||ct(j)?M(j):Zt(j)?(t.consume(j),T):n(j)}function M(j){return j===45&&i===2?(t.consume(j),F):j===60&&i===1?(t.consume(j),D):j===62&&i===4?(t.consume(j),U):j===63&&i===3?(t.consume(j),P):j===93&&i===5?(t.consume(j),B):ct(j)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(WGe,G,A)(j)):j===null||ct(j)?(t.exit("htmlFlowData"),A(j)):(t.consume(j),M)}function A(j){return t.check(KGe,$,G)(j)}function $(j){return t.enter("lineEnding"),t.consume(j),t.exit("lineEnding"),N}function N(j){return j===null||ct(j)?A(j):(t.enter("htmlFlowData"),M(j))}function F(j){return j===45?(t.consume(j),P):M(j)}function D(j){return j===47?(t.consume(j),a="",O):M(j)}function O(j){if(j===62){let V=a.toLowerCase();return TB.includes(V)?(t.consume(j),U):M(j)}return wo(j)&&a.length<8?(t.consume(j),a+=String.fromCharCode(j),O):M(j)}function B(j){return j===93?(t.consume(j),P):M(j)}function P(j){return j===62?(t.consume(j),U):j===45&&i===2?(t.consume(j),P):M(j)}function U(j){return j===null||ct(j)?(t.exit("htmlFlowData"),G(j)):(t.consume(j),U)}function G(j){return t.exit("htmlFlow"),e(j)}}function QGe(t,e,n){let r=this;return i;function i(a){return ct(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}function JGe(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Dd,e,n)}}var AB={name:"htmlText",tokenize:eUe};function eUe(t,e,n){let r=this,i,o,a;return s;function s(P){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(P),l}function l(P){return P===33?(t.consume(P),c):P===47?(t.consume(P),v):P===63?(t.consume(P),b):wo(P)?(t.consume(P),L):n(P)}function c(P){return P===45?(t.consume(P),u):P===91?(t.consume(P),o=0,f):wo(P)?(t.consume(P),y):n(P)}function u(P){return P===45?(t.consume(P),m):n(P)}function d(P){return P===null?n(P):P===45?(t.consume(P),p):ct(P)?(a=d,D(P)):(t.consume(P),d)}function p(P){return P===45?(t.consume(P),m):d(P)}function m(P){return P===62?F(P):P===45?p(P):d(P)}function f(P){let U="CDATA[";return P===U.charCodeAt(o++)?(t.consume(P),o===U.length?h:f):n(P)}function h(P){return P===null?n(P):P===93?(t.consume(P),x):ct(P)?(a=h,D(P)):(t.consume(P),h)}function x(P){return P===93?(t.consume(P),g):h(P)}function g(P){return P===62?F(P):P===93?(t.consume(P),g):h(P)}function y(P){return P===null||P===62?F(P):ct(P)?(a=y,D(P)):(t.consume(P),y)}function b(P){return P===null?n(P):P===63?(t.consume(P),w):ct(P)?(a=b,D(P)):(t.consume(P),b)}function w(P){return P===62?F(P):b(P)}function v(P){return wo(P)?(t.consume(P),k):n(P)}function k(P){return P===45||vo(P)?(t.consume(P),k):_(P)}function _(P){return ct(P)?(a=_,D(P)):Zt(P)?(t.consume(P),_):F(P)}function L(P){return P===45||vo(P)?(t.consume(P),L):P===47||P===62||Pn(P)?S(P):n(P)}function S(P){return P===47?(t.consume(P),F):P===58||P===95||wo(P)?(t.consume(P),C):ct(P)?(a=S,D(P)):Zt(P)?(t.consume(P),S):F(P)}function C(P){return P===45||P===46||P===58||P===95||vo(P)?(t.consume(P),C):T(P)}function T(P){return P===61?(t.consume(P),M):ct(P)?(a=T,D(P)):Zt(P)?(t.consume(P),T):S(P)}function M(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(t.consume(P),i=P,A):ct(P)?(a=M,D(P)):Zt(P)?(t.consume(P),M):(t.consume(P),$)}function A(P){return P===i?(t.consume(P),i=void 0,N):P===null?n(P):ct(P)?(a=A,D(P)):(t.consume(P),A)}function $(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Pn(P)?S(P):(t.consume(P),$)}function N(P){return P===47||P===62||Pn(P)?S(P):n(P)}function F(P){return P===62?(t.consume(P),t.exit("htmlTextData"),t.exit("htmlText"),e):n(P)}function D(P){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),O}function O(P){return Zt(P)?Bt(t,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):B(P)}function B(P){return t.enter("htmlTextData"),a(P)}}var gg={name:"labelEnd",resolveAll:iUe,resolveTo:oUe,tokenize:aUe},tUe={tokenize:sUe},nUe={tokenize:lUe},rUe={tokenize:cUe};function iUe(t){let e=-1,n=[];for(;++e<t.length;){let r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&Hi(t,0,t.length,n),t}function oUe(t,e){let n=t.length,r=0,i,o,a,s;for(;n--;)if(i=t[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);let l={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[o][1].start},end:{...t[a][1].end}},u={type:"labelText",start:{...t[o+r+2][1].end},end:{...t[a-2][1].start}};return s=[["enter",l,e],["enter",c,e]],s=us(s,t.slice(o+1,o+r+3)),s=us(s,[["enter",u,e]]),s=us(s,K1(e.parser.constructs.insideSpan.null,t.slice(o+r+4,a-3),e)),s=us(s,[["exit",u,e],t[a-2],t[a-1],["exit",c,e]]),s=us(s,t.slice(a+1)),s=us(s,[["exit",l,e]]),Hi(t,o,t.length,s),t}function aUe(t,e,n){let r=this,i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?d(p):(a=r.parser.defined.includes(ja(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(p),t.exit("labelMarker"),t.exit("labelEnd"),l):n(p)}function l(p){return p===40?t.attempt(tUe,u,a?u:d)(p):p===91?t.attempt(nUe,u,a?c:d)(p):a?u(p):d(p)}function c(p){return t.attempt(rUe,u,d)(p)}function u(p){return e(p)}function d(p){return o._balanced=!0,n(p)}}function sUe(t,e,n){return r;function r(d){return t.enter("resource"),t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),i}function i(d){return Pn(d)?hg(t,o)(d):o(d)}function o(d){return d===41?u(d):AM(t,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Pn(d)?hg(t,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?IM(t,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return Pn(d)?hg(t,u)(d):u(d)}function u(d){return d===41?(t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),t.exit("resource"),e):n(d)}}function lUe(t,e,n){let r=this;return i;function i(s){return $M.call(r,t,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(s):n(s)}function a(s){return n(s)}}function cUe(t,e,n){return r;function r(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}var $B={name:"labelStartImage",resolveAll:gg.resolveAll,tokenize:uUe};function uUe(t,e,n){let r=this;return i;function i(s){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(s),t.exit("labelImageMarker"),o}function o(s){return s===91?(t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}var IB={name:"labelStartLink",resolveAll:gg.resolveAll,tokenize:dUe};function dUe(t,e,n){let r=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}var Ax={name:"lineEnding",tokenize:pUe};function pUe(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Bt(t,e,"linePrefix")}}var bg={name:"thematicBreak",tokenize:mUe};function mUe(t,e,n){let r=0,i;return o;function o(c){return t.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(t.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ct(c))?(t.exit("thematicBreak"),e(c)):n(c)}function l(c){return c===i?(t.consume(c),r++,l):(t.exit("thematicBreakSequence"),Zt(c)?Bt(t,s,"whitespace")(c):s(c))}}var Oa={continuation:{tokenize:bUe},exit:xUe,name:"list",tokenize:gUe},fUe={partial:!0,tokenize:wUe},hUe={partial:!0,tokenize:yUe};function gUe(t,e,n){let r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(m){let f=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(f==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Mx(m)){if(r.containerState.type||(r.containerState.type=f,t.enter(f,{_container:!0})),f==="listUnordered")return t.enter("listItemPrefix"),m===42||m===45?t.check(bg,n,c)(m):c(m);if(!r.interrupt||m===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(m)}return n(m)}function l(m){return Mx(m)&&++a<10?(t.consume(m),l):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(t.exit("listItemValue"),c(m)):n(m)}function c(m){return t.enter("listItemMarker"),t.consume(m),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,t.check(Dd,r.interrupt?n:u,t.attempt(fUe,p,d))}function u(m){return r.containerState.initialBlankLine=!0,o++,p(m)}function d(m){return Zt(m)?(t.enter("listItemPrefixWhitespace"),t.consume(m),t.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(m)}}function bUe(t,e,n){let r=this;return r.containerState._closeFlow=void 0,t.check(Dd,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Bt(t,e,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Zt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(hUe,e,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Bt(t,t.attempt(Oa,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function yUe(t,e,n){let r=this;return Bt(t,i,"listItemIndent",r.containerState.size+1);function i(o){let a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?e(o):n(o)}}function xUe(t){t.exit(this.containerState.type)}function wUe(t,e,n){let r=this;return Bt(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let a=r.events[r.events.length-1];return!Zt(o)&&a&&a[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}var NM={name:"setextUnderline",resolveTo:vUe,tokenize:kUe};function vUe(t,e){let n=t.length,r,i,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);let a={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",a,e]),t.splice(o+1,0,["exit",t[r][1],e]),t[r][1].end={...t[o][1].end}):t[r][1]=a,t.push(["exit",a,e]),t}function kUe(t,e,n){let r=this,i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(t.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return t.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(t.consume(c),s):(t.exit("setextHeadingLineSequence"),Zt(c)?Bt(t,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ct(c)?(t.exit("setextHeadingLine"),e(c)):n(c)}}var She={tokenize:CUe};function CUe(t){let e=this,n=t.attempt(Dd,r,t.attempt(this.parser.constructs.flowInitial,i,Bt(t,t.attempt(this.parser.constructs.flow,i,t.attempt(SB,i)),"linePrefix")));return n;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var Lhe={resolveAll:Rhe()},Mhe=The("string"),Ehe=The("text");function The(t){return{resolveAll:Rhe(t==="text"?_Ue:void 0),tokenize:e};function e(n){let r=this,i=this.parser.constructs[t],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;let d=i[u],p=-1;if(d)for(;++p<d.length;){let m=d[p];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function Rhe(t){return e;function e(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(n,r):n}}function _Ue(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){let r=t[n-1][1],i=e.sliceStream(r),o=i.length,a=-1,s=0,l;for(;o--;){let c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(s=0),s){let c={type:n===t.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}var NB={};fn(NB,{attentionMarkers:()=>$Ue,contentInitial:()=>LUe,disable:()=>IUe,document:()=>SUe,flow:()=>EUe,flowInitial:()=>MUe,insideSpan:()=>AUe,string:()=>TUe,text:()=>RUe});var SUe={42:Oa,43:Oa,45:Oa,48:Oa,49:Oa,50:Oa,51:Oa,52:Oa,53:Oa,54:Oa,55:Oa,56:Oa,57:Oa,62:SM},LUe={91:LB},MUe={[-2]:Tx,[-1]:Tx,32:Tx},EUe={35:EB,42:bg,45:[NM,bg],60:RB,61:NM,95:bg,96:EM,126:EM},TUe={38:MM,92:LM},RUe={[-5]:Ax,[-4]:Ax,[-3]:Ax,33:$B,38:MM,42:Ex,60:[CB,AB],91:IB,92:[MB,LM],93:gg,95:Ex,96:_B},AUe={null:[Ex,Lhe]},$Ue={null:[42,95]},IUe={null:[]};function Ahe(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],s=[],l=!0,c={attempt:S(_),check:S(L),consume:w,enter:v,exit:k,interrupt:S(L,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:x,parser:t,previous:null,sliceSerialize:f,sliceStream:h,write:m},d=e.tokenize.call(u,c),p;return e.resolveAll&&o.push(e),u;function m(A){return a=us(a,A),y(),a[a.length-1]!==null?[]:(C(e,0),u.events=K1(o,u.events,u),u.events)}function f(A,$){return PUe(h(A),$)}function h(A){return NUe(a,A)}function x(){let{_bufferIndex:A,_index:$,line:N,column:F,offset:D}=r;return{_bufferIndex:A,_index:$,line:N,column:F,offset:D}}function g(A){i[A.line]=A.column,M()}function y(){let A;for(;r._index<a.length;){let $=a[r._index];if(typeof $=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<$.length;)b($.charCodeAt(r._bufferIndex));else b($)}}function b(A){l=void 0,p=A,d=d(A)}function w(A){ct(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,M()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=A,l=!0}function v(A,$){let N=$||{};return N.type=A,N.start=x(),u.events.push(["enter",N,u]),s.push(N),N}function k(A){let $=s.pop();return $.end=x(),u.events.push(["exit",$,u]),$}function _(A,$){C(A,$.from)}function L(A,$){$.restore()}function S(A,$){return N;function N(F,D,O){let B,P,U,G;return Array.isArray(F)?V(F):"tokenize"in F?V([F]):j(F);function j(W){return ie;function ie(Z){let le=Z!==null&&W[Z],se=Z!==null&&W.null,ge=[...Array.isArray(le)?le:le?[le]:[],...Array.isArray(se)?se:se?[se]:[]];return V(ge)(Z)}}function V(W){return B=W,P=0,W.length===0?O:H(W[P])}function H(W){return ie;function ie(Z){return G=T(),U=W,W.partial||(u.currentConstruct=W),W.name&&u.parser.constructs.disable.null.includes(W.name)?J(Z):W.tokenize.call($?Object.assign(Object.create(u),$):u,c,ne,J)(Z)}}function ne(W){return l=!0,A(U,G),D}function J(W){return l=!0,G.restore(),++P<B.length?H(B[P]):O}}}function C(A,$){A.resolveAll&&!o.includes(A)&&o.push(A),A.resolve&&Hi(u.events,$,u.events.length-$,A.resolve(u.events.slice($),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function T(){let A=x(),$=u.previous,N=u.currentConstruct,F=u.events.length,D=Array.from(s);return{from:F,restore:O};function O(){r=A,u.previous=$,u.currentConstruct=N,u.events.length=F,s=D,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function NUe(t,e){let n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex,a;if(n===i)a=[t[n].slice(r,o)];else{if(a=t.slice(n,i),r>-1){let s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(t[i].slice(0,o))}return a}function PUe(t,e){let n=-1,r=[],i;for(;++n<t.length;){let o=t[n],a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=` `;break}case-3:{a=`\r -`;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function PB(t){let r={constructs:wM([NB,...(t||{}).extensions||[]]),content:i(xhe),defined:[],document:i(vhe),flow:i(She),lazy:{},string:i(Mhe),text:i(Ehe)};return r;function i(o){return a;function a(s){return Ahe(r,o,s)}}}function jB(t){for(;!MM(t););return t}var $he=/[\0\t\n\r]/g;function OB(){let t=1,e="",n=!0,r;return i;function i(o,a,s){let l=[],c,u,d,p,m;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),d=0,e="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if($he.lastIndex=d,c=$he.exec(o),p=c&&c.index!==void 0?c.index:o.length,m=o.charCodeAt(p),!c){e=o.slice(d);break}if(m===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(o.slice(d,p)),t+=p-d),m){case 0:{l.push(65533),t++;break}case 9:{for(u=Math.ceil(t/4)*4,l.push(-2);t++<u;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}d=p+1}return s&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}var IUe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $M(t){return t.replace(IUe,NUe)}function NUe(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),o=i===120||i===88;return vM(n.slice(o?2:1),o?16:10)}return wy(n)||t}function W1(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ihe(t.position):"start"in t||"end"in t?Ihe(t):"line"in t||"column"in t?DB(t):""}function DB(t){return Nhe(t&&t.line)+":"+Nhe(t&&t.column)}function Ihe(t){return DB(t&&t.start)+"-"+DB(t&&t.end)}function Nhe(t){return t&&typeof t=="number"?t:1}var jhe={}.hasOwnProperty;function FB(t,e,n){return e&&typeof e=="object"&&(n=e,e=void 0),PUe(n)(jB(PB(n).document().write(OB()(t,e,!0))))}function PUe(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(de),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(ge),blockQuote:o(Z),characterEscape:S,characterReference:S,codeFenced:o(ce),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(ce,a),codeText:o(se,a),codeTextData:S,data:S,codeFlowValue:S,definition:o(be),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(le),hardBreakEscape:o(ke),hardBreakTrailing:o(ke),htmlFlow:o(me,a),htmlFlowData:S,htmlText:o(me,a),htmlTextData:S,image:o(Se),label:a,link:o(de),listItem:o(Ne),listItemValue:p,listOrdered:o(Le,d),listUnordered:o(Le),paragraph:o(Be),reference:j,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(ge),strong:o(_e),thematicBreak:o(Ce)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:ie,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:ne,characterReference:J,codeFenced:l(x),codeFencedFence:h,codeFencedFenceInfo:m,codeFencedFenceMeta:f,codeFlowValue:C,codeIndented:l(g),codeText:l(N),codeTextData:C,data:C,definition:l(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(M),hardBreakTrailing:l(M),htmlFlow:l(A),htmlFlowData:C,htmlText:l($),htmlTextData:C,image:l(D),label:B,labelText:O,lineEnding:T,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:V,resourceDestinationString:P,resourceTitleString:U,resource:G,setextHeading:l(L),setextHeadingLineSequence:_,setextHeadingText:k,strong:l(),thematicBreak:l()}};Ohe(e,(t||{}).mdastExtensions||[]);let n={};return r;function r(K){let Y={type:"root",children:[]},ye={stack:[Y],tokenStack:[],config:e,enter:s,exit:c,buffer:a,resume:u,data:n},Re=[],Ke=-1;for(;++Ke<K.length;)if(K[Ke][1].type==="listOrdered"||K[Ke][1].type==="listUnordered")if(K[Ke][0]==="enter")Re.push(Ke);else{let mt=Re.pop();Ke=i(K,mt,Ke)}for(Ke=-1;++Ke<K.length;){let mt=e[K[Ke][0]];jhe.call(mt,K[Ke][1].type)&&mt[K[Ke][1].type].call(Object.assign({sliceSerialize:K[Ke][2].sliceSerialize},ye),K[Ke][1])}if(ye.tokenStack.length>0){let mt=ye.tokenStack[ye.tokenStack.length-1];(mt[1]||Phe).call(ye,void 0,mt[0])}for(Y.position={start:K1(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:K1(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<e.transforms.length;)Y=e.transforms[Ke](Y)||Y;return Y}function i(K,Y,ye){let Re=Y-1,Ke=-1,mt=!1,dt,Ae,xt,Et;for(;++Re<=ye;){let jt=K[Re];switch(jt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{jt[0]==="enter"?Ke++:Ke--,Et=void 0;break}case"lineEndingBlank":{jt[0]==="enter"&&(dt&&!Et&&!Ke&&!xt&&(xt=Re),Et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Et=void 0}if(!Ke&&jt[0]==="enter"&&jt[1].type==="listItemPrefix"||Ke===-1&&jt[0]==="exit"&&(jt[1].type==="listUnordered"||jt[1].type==="listOrdered")){if(dt){let Bt=Re;for(Ae=void 0;Bt--;){let Ve=K[Bt];if(Ve[1].type==="lineEnding"||Ve[1].type==="lineEndingBlank"){if(Ve[0]==="exit")continue;Ae&&(K[Ae][1].type="lineEndingBlank",mt=!0),Ve[1].type="lineEnding",Ae=Bt}else if(!(Ve[1].type==="linePrefix"||Ve[1].type==="blockQuotePrefix"||Ve[1].type==="blockQuotePrefixWhitespace"||Ve[1].type==="blockQuoteMarker"||Ve[1].type==="listItemIndent"))break}xt&&(!Ae||xt<Ae)&&(dt._spread=!0),dt.end=Object.assign({},Ae?K[Ae][1].start:jt[1].end),K.splice(Ae||Re,0,["exit",dt,jt[2]]),Re++,ye++}if(jt[1].type==="listItemPrefix"){let Bt={type:"listItem",_spread:!1,start:Object.assign({},jt[1].start),end:void 0};dt=Bt,K.splice(Re,0,["enter",Bt,jt[2]]),Re++,ye++,xt=void 0,Et=!0}}}return K[Y][1]._spread=mt,ye}function o(K,Y){return ye;function ye(Re){s.call(this,K(Re),Re),Y&&Y.call(this,Re)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(K,Y,ye){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([Y,ye||void 0]),K.position={start:K1(Y.start),end:void 0}}function l(K){return Y;function Y(ye){K&&K.call(this,ye),c.call(this,ye)}}function c(K,Y){let ye=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==K.type&&(Y?Y.call(this,K,Re[0]):(Re[1]||Phe).call(this,K,Re[0]));else throw new Error("Cannot close `"+K.type+"` ("+W1({start:K.start,end:K.end})+"): it\u2019s not open");ye.position.end=K1(K.end)}function u(){return dg(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(K){if(this.data.expectingFirstListItemValue){let Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function m(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=K}function f(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=K}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K.replace(/(\r?\n|\r)$/g,"")}function y(K){let Y=this.resume(),ye=this.stack[this.stack.length-1];ye.label=Y,ye.identifier=ja(this.sliceSerialize(K)).toLowerCase()}function b(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.title=K}function w(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.url=K}function v(K){let Y=this.stack[this.stack.length-1];if(!Y.depth){let ye=this.sliceSerialize(K).length;Y.depth=ye}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function _(K){let Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function S(K){let ye=this.stack[this.stack.length-1].children,Re=ye[ye.length-1];(!Re||Re.type!=="text")&&(Re=xe(),Re.position={start:K1(K.start),end:void 0},ye.push(Re)),this.stack.push(Re)}function C(K){let Y=this.stack.pop();Y.value+=this.sliceSerialize(K),Y.position.end=K1(K.end)}function T(K){let Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ye=Y.children[Y.children.length-1];ye.position.end=K1(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(Y.type)&&(S.call(this,K),C.call(this,K))}function M(){this.data.atHardBreak=!0}function A(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K}function $(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K}function N(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K}function F(){let K=this.stack[this.stack.length-1];if(this.data.inReference){let Y=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Y,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function D(){let K=this.stack[this.stack.length-1];if(this.data.inReference){let Y=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Y,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function O(K){let Y=this.sliceSerialize(K),ye=this.stack[this.stack.length-2];ye.label=$M(Y),ye.identifier=ja(Y).toLowerCase()}function B(){let K=this.stack[this.stack.length-1],Y=this.resume(),ye=this.stack[this.stack.length-1];if(this.data.inReference=!0,ye.type==="link"){let Re=K.children;ye.children=Re}else ye.alt=Y}function P(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.url=K}function U(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.title=K}function G(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function V(K){let Y=this.resume(),ye=this.stack[this.stack.length-1];ye.label=Y,ye.identifier=ja(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function H(K){this.data.characterReferenceType=K.type}function ne(K){let Y=this.sliceSerialize(K),ye=this.data.characterReferenceType,Re;ye?(Re=vM(Y,ye==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=wy(Y);let Ke=this.stack[this.stack.length-1];Ke.value+=Re}function J(K){let Y=this.stack.pop();Y.position.end=K1(K.end)}function W(K){C.call(this,K);let Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(K)}function ie(K){C.call(this,K);let Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(K)}function Z(){return{type:"blockquote",children:[]}}function ce(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function be(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function ge(){return{type:"heading",depth:0,children:[]}}function ke(){return{type:"break"}}function me(){return{type:"html",value:""}}function Se(){return{type:"image",title:null,url:"",alt:null}}function de(){return{type:"link",title:null,url:"",children:[]}}function Le(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Ne(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function _e(){return{type:"strong",children:[]}}function xe(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function K1(t){return{line:t.line,column:t.column,offset:t.offset}}function Ohe(t,e){let n=-1;for(;++n<e.length;){let r=e[n];Array.isArray(r)?Ohe(t,r):jUe(t,r)}}function jUe(t,e){let n;for(n in e)if(jhe.call(e,n))switch(n){case"canContainEols":{let r=e[n];r&&t[n].push(...r);break}case"transforms":{let r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{let r=e[n];r&&Object.assign(t[n],r);break}}}function Phe(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+W1({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+W1({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+W1({start:e.start,end:e.end})+") is still open")}function vy(t){let e=this;e.parser=n;function n(r){return FB(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}var OUe={}.hasOwnProperty;function BB(t,e){let n=-1,r;if(e.extensions)for(;++n<e.extensions.length;)BB(t,e.extensions[n]);for(r in e)if(OUe.call(e,r))switch(r){case"extensions":break;case"unsafe":{Dhe(t[r],e[r]);break}case"join":{Dhe(t[r],e[r]);break}case"handlers":{DUe(t[r],e[r]);break}default:t.options[r]=e[r]}return t}function Dhe(t,e){e&&t.push(...e)}function DUe(t,e){e&&Object.assign(t,e)}function Fhe(t,e,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let a=n.indentLines(n.containerFlow(t,o.current()),FUe);return i(),a}function FUe(t,e,n){return">"+(n?"":" ")+t}function IM(t,e){return Bhe(t,e.inConstruct,!0)&&!Bhe(t,e.notInConstruct,!1)}function Bhe(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function zB(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` -`&&IM(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\ -`}function zhe(t,e){let n=String(t),r=n.indexOf(e),i=r,o=0,a=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+e.length,r=n.indexOf(e,i);return a}function $x(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function qhe(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function Hhe(t,e,n,r){let i=qhe(n),o=t.value||"",a=i==="`"?"GraveAccent":"Tilde";if($x(t,n)){let d=n.enter("codeIndented"),p=n.indentLines(o,BUe);return d(),p}let s=n.createTracker(r),l=i.repeat(Math.max(zhe(o,i)+1,3)),c=n.enter("codeFenced"),u=s.move(l);if(t.lang){let d=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(t.lang,{before:u,after:" ",encode:["`"],...s.current()})),d()}if(t.lang&&t.meta){let d=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(t.meta,{before:u,after:` +`;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function PB(t){let r={constructs:CM([NB,...(t||{}).extensions||[]]),content:i(xhe),defined:[],document:i(vhe),flow:i(She),lazy:{},string:i(Mhe),text:i(Ehe)};return r;function i(o){return a;function a(s){return Ahe(r,o,s)}}}function jB(t){for(;!RM(t););return t}var $he=/[\0\t\n\r]/g;function OB(){let t=1,e="",n=!0,r;return i;function i(o,a,s){let l=[],c,u,d,p,m;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),d=0,e="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if($he.lastIndex=d,c=$he.exec(o),p=c&&c.index!==void 0?c.index:o.length,m=o.charCodeAt(p),!c){e=o.slice(d);break}if(m===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(o.slice(d,p)),t+=p-d),m){case 0:{l.push(65533),t++;break}case 9:{for(u=Math.ceil(t/4)*4,l.push(-2);t++<u;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}d=p+1}return s&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}var jUe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PM(t){return t.replace(jUe,OUe)}function OUe(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),o=i===120||i===88;return _M(n.slice(o?2:1),o?16:10)}return vy(n)||t}function X1(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ihe(t.position):"start"in t||"end"in t?Ihe(t):"line"in t||"column"in t?DB(t):""}function DB(t){return Nhe(t&&t.line)+":"+Nhe(t&&t.column)}function Ihe(t){return DB(t&&t.start)+"-"+DB(t&&t.end)}function Nhe(t){return t&&typeof t=="number"?t:1}var jhe={}.hasOwnProperty;function FB(t,e,n){return e&&typeof e=="object"&&(n=e,e=void 0),DUe(n)(jB(PB(n).document().write(OB()(t,e,!0))))}function DUe(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(de),autolinkProtocol:S,autolinkEmail:S,atxHeading:o(be),blockQuote:o(Z),characterEscape:S,characterReference:S,codeFenced:o(le),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(le,a),codeText:o(se,a),codeTextData:S,data:S,codeFlowValue:S,definition:o(ge),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(ce),hardBreakEscape:o(ke),hardBreakTrailing:o(ke),htmlFlow:o(me,a),htmlFlowData:S,htmlText:o(me,a),htmlTextData:S,image:o(Se),label:a,link:o(de),listItem:o(Ne),listItemValue:p,listOrdered:o(Le,d),listUnordered:o(Le),paragraph:o(Be),reference:j,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(be),strong:o(_e),thematicBreak:o(Ce)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:ie,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:ne,characterReference:J,codeFenced:l(x),codeFencedFence:h,codeFencedFenceInfo:m,codeFencedFenceMeta:f,codeFlowValue:C,codeIndented:l(g),codeText:l(N),codeTextData:C,data:C,definition:l(),definitionDestinationString:w,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(M),hardBreakTrailing:l(M),htmlFlow:l(A),htmlFlowData:C,htmlText:l($),htmlTextData:C,image:l(D),label:B,labelText:O,lineEnding:T,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:V,resourceDestinationString:P,resourceTitleString:U,resource:G,setextHeading:l(L),setextHeadingLineSequence:_,setextHeadingText:k,strong:l(),thematicBreak:l()}};Ohe(e,(t||{}).mdastExtensions||[]);let n={};return r;function r(K){let Y={type:"root",children:[]},ye={stack:[Y],tokenStack:[],config:e,enter:s,exit:c,buffer:a,resume:u,data:n},Re=[],Ke=-1;for(;++Ke<K.length;)if(K[Ke][1].type==="listOrdered"||K[Ke][1].type==="listUnordered")if(K[Ke][0]==="enter")Re.push(Ke);else{let mt=Re.pop();Ke=i(K,mt,Ke)}for(Ke=-1;++Ke<K.length;){let mt=e[K[Ke][0]];jhe.call(mt,K[Ke][1].type)&&mt[K[Ke][1].type].call(Object.assign({sliceSerialize:K[Ke][2].sliceSerialize},ye),K[Ke][1])}if(ye.tokenStack.length>0){let mt=ye.tokenStack[ye.tokenStack.length-1];(mt[1]||Phe).call(ye,void 0,mt[0])}for(Y.position={start:Y1(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Y1(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<e.transforms.length;)Y=e.transforms[Ke](Y)||Y;return Y}function i(K,Y,ye){let Re=Y-1,Ke=-1,mt=!1,dt,Ae,wt,Tt;for(;++Re<=ye;){let Ot=K[Re];switch(Ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ot[0]==="enter"?Ke++:Ke--,Tt=void 0;break}case"lineEndingBlank":{Ot[0]==="enter"&&(dt&&!Tt&&!Ke&&!wt&&(wt=Re),Tt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tt=void 0}if(!Ke&&Ot[0]==="enter"&&Ot[1].type==="listItemPrefix"||Ke===-1&&Ot[0]==="exit"&&(Ot[1].type==="listUnordered"||Ot[1].type==="listOrdered")){if(dt){let zt=Re;for(Ae=void 0;zt--;){let Ve=K[zt];if(Ve[1].type==="lineEnding"||Ve[1].type==="lineEndingBlank"){if(Ve[0]==="exit")continue;Ae&&(K[Ae][1].type="lineEndingBlank",mt=!0),Ve[1].type="lineEnding",Ae=zt}else if(!(Ve[1].type==="linePrefix"||Ve[1].type==="blockQuotePrefix"||Ve[1].type==="blockQuotePrefixWhitespace"||Ve[1].type==="blockQuoteMarker"||Ve[1].type==="listItemIndent"))break}wt&&(!Ae||wt<Ae)&&(dt._spread=!0),dt.end=Object.assign({},Ae?K[Ae][1].start:Ot[1].end),K.splice(Ae||Re,0,["exit",dt,Ot[2]]),Re++,ye++}if(Ot[1].type==="listItemPrefix"){let zt={type:"listItem",_spread:!1,start:Object.assign({},Ot[1].start),end:void 0};dt=zt,K.splice(Re,0,["enter",zt,Ot[2]]),Re++,ye++,wt=void 0,Tt=!0}}}return K[Y][1]._spread=mt,ye}function o(K,Y){return ye;function ye(Re){s.call(this,K(Re),Re),Y&&Y.call(this,Re)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(K,Y,ye){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([Y,ye||void 0]),K.position={start:Y1(Y.start),end:void 0}}function l(K){return Y;function Y(ye){K&&K.call(this,ye),c.call(this,ye)}}function c(K,Y){let ye=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==K.type&&(Y?Y.call(this,K,Re[0]):(Re[1]||Phe).call(this,K,Re[0]));else throw new Error("Cannot close `"+K.type+"` ("+X1({start:K.start,end:K.end})+"): it\u2019s not open");ye.position.end=Y1(K.end)}function u(){return pg(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(K){if(this.data.expectingFirstListItemValue){let Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function m(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=K}function f(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=K}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K.replace(/(\r?\n|\r)$/g,"")}function y(K){let Y=this.resume(),ye=this.stack[this.stack.length-1];ye.label=Y,ye.identifier=ja(this.sliceSerialize(K)).toLowerCase()}function b(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.title=K}function w(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.url=K}function v(K){let Y=this.stack[this.stack.length-1];if(!Y.depth){let ye=this.sliceSerialize(K).length;Y.depth=ye}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function _(K){let Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function S(K){let ye=this.stack[this.stack.length-1].children,Re=ye[ye.length-1];(!Re||Re.type!=="text")&&(Re=xe(),Re.position={start:Y1(K.start),end:void 0},ye.push(Re)),this.stack.push(Re)}function C(K){let Y=this.stack.pop();Y.value+=this.sliceSerialize(K),Y.position.end=Y1(K.end)}function T(K){let Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ye=Y.children[Y.children.length-1];ye.position.end=Y1(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(Y.type)&&(S.call(this,K),C.call(this,K))}function M(){this.data.atHardBreak=!0}function A(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K}function $(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K}function N(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.value=K}function F(){let K=this.stack[this.stack.length-1];if(this.data.inReference){let Y=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Y,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function D(){let K=this.stack[this.stack.length-1];if(this.data.inReference){let Y=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=Y,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function O(K){let Y=this.sliceSerialize(K),ye=this.stack[this.stack.length-2];ye.label=PM(Y),ye.identifier=ja(Y).toLowerCase()}function B(){let K=this.stack[this.stack.length-1],Y=this.resume(),ye=this.stack[this.stack.length-1];if(this.data.inReference=!0,ye.type==="link"){let Re=K.children;ye.children=Re}else ye.alt=Y}function P(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.url=K}function U(){let K=this.resume(),Y=this.stack[this.stack.length-1];Y.title=K}function G(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function V(K){let Y=this.resume(),ye=this.stack[this.stack.length-1];ye.label=Y,ye.identifier=ja(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function H(K){this.data.characterReferenceType=K.type}function ne(K){let Y=this.sliceSerialize(K),ye=this.data.characterReferenceType,Re;ye?(Re=_M(Y,ye==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=vy(Y);let Ke=this.stack[this.stack.length-1];Ke.value+=Re}function J(K){let Y=this.stack.pop();Y.position.end=Y1(K.end)}function W(K){C.call(this,K);let Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(K)}function ie(K){C.call(this,K);let Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(K)}function Z(){return{type:"blockquote",children:[]}}function le(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ce(){return{type:"emphasis",children:[]}}function be(){return{type:"heading",depth:0,children:[]}}function ke(){return{type:"break"}}function me(){return{type:"html",value:""}}function Se(){return{type:"image",title:null,url:"",alt:null}}function de(){return{type:"link",title:null,url:"",children:[]}}function Le(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Ne(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function _e(){return{type:"strong",children:[]}}function xe(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function Y1(t){return{line:t.line,column:t.column,offset:t.offset}}function Ohe(t,e){let n=-1;for(;++n<e.length;){let r=e[n];Array.isArray(r)?Ohe(t,r):FUe(t,r)}}function FUe(t,e){let n;for(n in e)if(jhe.call(e,n))switch(n){case"canContainEols":{let r=e[n];r&&t[n].push(...r);break}case"transforms":{let r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{let r=e[n];r&&Object.assign(t[n],r);break}}}function Phe(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+X1({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+X1({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+X1({start:e.start,end:e.end})+") is still open")}function ky(t){let e=this;e.parser=n;function n(r){return FB(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}var BUe={}.hasOwnProperty;function BB(t,e){let n=-1,r;if(e.extensions)for(;++n<e.extensions.length;)BB(t,e.extensions[n]);for(r in e)if(BUe.call(e,r))switch(r){case"extensions":break;case"unsafe":{Dhe(t[r],e[r]);break}case"join":{Dhe(t[r],e[r]);break}case"handlers":{zUe(t[r],e[r]);break}default:t.options[r]=e[r]}return t}function Dhe(t,e){e&&t.push(...e)}function zUe(t,e){e&&Object.assign(t,e)}function Fhe(t,e,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let a=n.indentLines(n.containerFlow(t,o.current()),qUe);return i(),a}function qUe(t,e,n){return">"+(n?"":" ")+t}function jM(t,e){return Bhe(t,e.inConstruct,!0)&&!Bhe(t,e.notInConstruct,!1)}function Bhe(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function zB(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` +`&&jM(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\ +`}function zhe(t,e){let n=String(t),r=n.indexOf(e),i=r,o=0,a=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+e.length,r=n.indexOf(e,i);return a}function $x(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function qhe(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function Hhe(t,e,n,r){let i=qhe(n),o=t.value||"",a=i==="`"?"GraveAccent":"Tilde";if($x(t,n)){let d=n.enter("codeIndented"),p=n.indentLines(o,HUe);return d(),p}let s=n.createTracker(r),l=i.repeat(Math.max(zhe(o,i)+1,3)),c=n.enter("codeFenced"),u=s.move(l);if(t.lang){let d=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(t.lang,{before:u,after:" ",encode:["`"],...s.current()})),d()}if(t.lang&&t.meta){let d=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(t.meta,{before:u,after:` `,encode:["`"],...s.current()})),d()}return u+=s.move(` `),o&&(u+=s.move(o+` -`)),u+=s.move(l),c(),u}function BUe(t,e,n){return(n?"":" ")+t}function ky(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Ghe(t,e,n,r){let i=ky(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition"),s=n.enter("label"),l=n.createTracker(r),c=l.move("[");return c+=l.move(n.safe(n.associationId(t),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!t.url||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":` -`,...l.current()}))),s(),t.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c}function Uhe(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function Kl(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Cy(t,e,n){let r=xm(t),i=xm(e);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}qB.peek=zUe;function qB(t,e,n,r){let i=Uhe(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i),l=a.move(n.containerPhrasing(t,{after:i,before:s,...a.current()})),c=l.charCodeAt(0),u=Cy(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Kl(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=Cy(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Kl(d));let m=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+m}function zUe(t,e,n){return n.options.emphasis||"*"}var X1=(function(t){if(t==null)return UUe;if(typeof t=="function")return NM(t);if(typeof t=="object")return Array.isArray(t)?qUe(t):HUe(t);if(typeof t=="string")return GUe(t);throw new Error("Expected function, string, or object as test")});function qUe(t){let e=[],n=-1;for(;++n<t.length;)e[n]=X1(t[n]);return NM(r);function r(...i){let o=-1;for(;++o<e.length;)if(e[o].apply(this,i))return!0;return!1}}function HUe(t){let e=t;return NM(n);function n(r){let i=r,o;for(o in t)if(i[o]!==e[o])return!1;return!0}}function GUe(t){return NM(e);function e(n){return n&&n.type===t}}function NM(t){return e;function e(n,r,i){return!!(VUe(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function UUe(){return!0}function VUe(t){return t!==null&&typeof t=="object"&&"type"in t}var Vhe=[],PM=!0,bg=!1,wm="skip";function yg(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;let o=X1(i),a=r?-1:1;s(t,void 0,[])();function s(l,c,u){let d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){let m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=Vhe,f,h,x;if((!e||o(l,c,u[u.length-1]||void 0))&&(m=ZUe(n(l,u)),m[0]===bg))return m;if("children"in l&&l.children){let g=l;if(g.children&&m[0]!==wm)for(h=(r?g.children.length:-1)+a,x=u.concat(g);h>-1&&h<g.children.length;){let y=g.children[h];if(f=s(y,h,x)(),f[0]===bg)return f;h=typeof f[1]=="number"?f[1]:h+a}}return m}}}function ZUe(t){return Array.isArray(t)?t:typeof t=="number"?[PM,t]:t==null?Vhe:[t]}function Du(t,e,n,r){let i,o,a;typeof e=="function"&&typeof n!="function"?(o=void 0,a=e,i=n):(o=e,a=n,i=r),yg(t,o,s,i);function s(l,c){let u=c[c.length-1],d=u?u.children.indexOf(l):void 0;return a(l,d,u)}}function jM(t,e){let n=!1;return Du(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,bg}),!!((!t.depth||t.depth<3)&&dg(t)&&(e.options.setext||n))}function Zhe(t,e,n,r){let i=Math.max(Math.min(6,t.depth||1),1),o=n.createTracker(r);if(jM(t,n)){let u=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(t,{...o.current(),before:` +`)),u+=s.move(l),c(),u}function HUe(t,e,n){return(n?"":" ")+t}function Cy(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Ghe(t,e,n,r){let i=Cy(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition"),s=n.enter("label"),l=n.createTracker(r),c=l.move("[");return c+=l.move(n.safe(n.associationId(t),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!t.url||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":` +`,...l.current()}))),s(),t.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c}function Uhe(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function Kl(t){return"&#x"+t.toString(16).toUpperCase()+";"}function _y(t,e,n){let r=wm(t),i=wm(e);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}qB.peek=GUe;function qB(t,e,n,r){let i=Uhe(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i),l=a.move(n.containerPhrasing(t,{after:i,before:s,...a.current()})),c=l.charCodeAt(0),u=_y(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Kl(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=_y(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Kl(d));let m=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+m}function GUe(t,e,n){return n.options.emphasis||"*"}var Q1=(function(t){if(t==null)return WUe;if(typeof t=="function")return OM(t);if(typeof t=="object")return Array.isArray(t)?UUe(t):VUe(t);if(typeof t=="string")return ZUe(t);throw new Error("Expected function, string, or object as test")});function UUe(t){let e=[],n=-1;for(;++n<t.length;)e[n]=Q1(t[n]);return OM(r);function r(...i){let o=-1;for(;++o<e.length;)if(e[o].apply(this,i))return!0;return!1}}function VUe(t){let e=t;return OM(n);function n(r){let i=r,o;for(o in t)if(i[o]!==e[o])return!1;return!0}}function ZUe(t){return OM(e);function e(n){return n&&n.type===t}}function OM(t){return e;function e(n,r,i){return!!(KUe(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function WUe(){return!0}function KUe(t){return t!==null&&typeof t=="object"&&"type"in t}var Vhe=[],DM=!0,yg=!1,vm="skip";function xg(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;let o=Q1(i),a=r?-1:1;s(t,void 0,[])();function s(l,c,u){let d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){let m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=Vhe,f,h,x;if((!e||o(l,c,u[u.length-1]||void 0))&&(m=XUe(n(l,u)),m[0]===yg))return m;if("children"in l&&l.children){let g=l;if(g.children&&m[0]!==vm)for(h=(r?g.children.length:-1)+a,x=u.concat(g);h>-1&&h<g.children.length;){let y=g.children[h];if(f=s(y,h,x)(),f[0]===yg)return f;h=typeof f[1]=="number"?f[1]:h+a}}return m}}}function XUe(t){return Array.isArray(t)?t:typeof t=="number"?[DM,t]:t==null?Vhe:[t]}function Du(t,e,n,r){let i,o,a;typeof e=="function"&&typeof n!="function"?(o=void 0,a=e,i=n):(o=e,a=n,i=r),xg(t,o,s,i);function s(l,c){let u=c[c.length-1],d=u?u.children.indexOf(l):void 0;return a(l,d,u)}}function FM(t,e){let n=!1;return Du(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,yg}),!!((!t.depth||t.depth<3)&&pg(t)&&(e.options.setext||n))}function Zhe(t,e,n,r){let i=Math.max(Math.min(6,t.depth||1),1),o=n.createTracker(r);if(FM(t,n)){let u=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(t,{...o.current(),before:` `,after:` `});return d(),u(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}let a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(t,{before:"# ",after:` -`,...o.current()});return/^[\t ]/.test(c)&&(c=Kl(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c}HB.peek=WUe;function HB(t){return t.value||""}function WUe(){return"<"}GB.peek=KUe;function GB(t,e,n,r){let i=ky(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image"),s=n.enter("label"),l=n.createTracker(r),c=l.move("![");return c+=l.move(n.safe(t.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":")",...l.current()}))),s(),t.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function KUe(){return"!"}UB.peek=XUe;function UB(t,e,n,r){let i=t.referenceType,o=n.enter("imageReference"),a=n.enter("label"),s=n.createTracker(r),l=s.move("!["),c=n.safe(t.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();let u=n.stack;n.stack=[],a=n.enter("reference");let d=n.safe(n.associationId(t),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function XUe(){return"!"}VB.peek=YUe;function VB(t,e,n){let r=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let a=n.unsafe[o],s=n.compilePattern(a),l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function YUe(){return"`"}function ZB(t,e){let n=dg(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}WB.peek=QUe;function WB(t,e,n,r){let i=ky(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r),s,l;if(ZB(t,n)){let u=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(t,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=u,d}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(t,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(t.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(t.url,{before:c,after:t.title?" ":")",...a.current()}))),l(),t.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(t.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function QUe(t,e,n){return ZB(t,n)?"<":"["}KB.peek=JUe;function KB(t,e,n,r){let i=t.referenceType,o=n.enter("linkReference"),a=n.enter("label"),s=n.createTracker(r),l=s.move("["),c=n.containerPhrasing(t,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();let u=n.stack;n.stack=[],a=n.enter("reference");let d=n.safe(n.associationId(t),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function JUe(){return"["}function _y(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function Whe(t){let e=_y(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Khe(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function OM(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function Xhe(t,e,n,r){let i=n.enter("list"),o=n.bulletCurrent,a=t.ordered?Khe(n):_y(n),s=t.ordered?a==="."?")":".":Whe(n),l=e&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!t.ordered){let u=t.children?t.children[0]:void 0;if((a==="*"||a==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),OM(n)===a&&u){let d=-1;for(;++d<t.children.length;){let p=t.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;let c=n.containerFlow(t,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c}function Yhe(t){let e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function Qhe(t,e,n,r){let i=Yhe(n),o=n.bulletCurrent||_y(n);e&&e.type==="list"&&e.ordered&&(o=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(a=Math.ceil(a/4)*4);let s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,s.current()),u);return l(),c;function u(d,p,m){return p?(m?"":" ".repeat(a))+d:(m?o:o+" ".repeat(a-o.length))+d}}function Jhe(t,e,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(t,r);return o(),i(),a}var XB=X1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function e0e(t,e,n,r){return(t.children.some(function(a){return XB(a)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function t0e(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}YB.peek=eVe;function YB(t,e,n,r){let i=t0e(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i),l=a.move(n.containerPhrasing(t,{after:i,before:s,...a.current()})),c=l.charCodeAt(0),u=Cy(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Kl(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=Cy(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Kl(d));let m=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+m}function eVe(t,e,n){return n.options.strong||"*"}function n0e(t,e,n,r){return n.safe(t.value,r)}function r0e(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function i0e(t,e,n){let r=(OM(n)+(n.options.ruleSpaces?" ":"")).repeat(r0e(n));return n.options.ruleSpaces?r.slice(0,-1):r}var xg={blockquote:Fhe,break:zB,code:Hhe,definition:Ghe,emphasis:qB,hardBreak:zB,heading:Zhe,html:HB,image:GB,imageReference:UB,inlineCode:VB,link:WB,linkReference:KB,list:Xhe,listItem:Qhe,paragraph:Jhe,root:e0e,strong:YB,text:n0e,thematicBreak:i0e};var o0e=[tVe];function tVe(t,e,n,r){if(e.type==="code"&&$x(e,r)&&(t.type==="list"||t.type===e.type&&$x(t,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&jM(e,r))?void 0:n.spread?1:0}var wg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],a0e=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:` -`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:wg},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r -]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:wg},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r -*])`},{character:"*",inConstruct:"phrasing",notInConstruct:wg},{atBreak:!0,character:"+",after:`(?:[ \r +`,...o.current()});return/^[\t ]/.test(c)&&(c=Kl(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c}HB.peek=YUe;function HB(t){return t.value||""}function YUe(){return"<"}GB.peek=QUe;function GB(t,e,n,r){let i=Cy(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image"),s=n.enter("label"),l=n.createTracker(r),c=l.move("![");return c+=l.move(n.safe(t.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(t.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(t.url,{before:c,after:t.title?" ":")",...l.current()}))),s(),t.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(t.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function QUe(){return"!"}UB.peek=JUe;function UB(t,e,n,r){let i=t.referenceType,o=n.enter("imageReference"),a=n.enter("label"),s=n.createTracker(r),l=s.move("!["),c=n.safe(t.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();let u=n.stack;n.stack=[],a=n.enter("reference");let d=n.safe(n.associationId(t),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function JUe(){return"!"}VB.peek=eVe;function VB(t,e,n){let r=t.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let a=n.unsafe[o],s=n.compilePattern(a),l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function eVe(){return"`"}function ZB(t,e){let n=pg(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}WB.peek=tVe;function WB(t,e,n,r){let i=Cy(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r),s,l;if(ZB(t,n)){let u=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(t,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=u,d}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(t,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(t.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(t.url,{before:c,after:t.title?" ":")",...a.current()}))),l(),t.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(t.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function tVe(t,e,n){return ZB(t,n)?"<":"["}KB.peek=nVe;function KB(t,e,n,r){let i=t.referenceType,o=n.enter("linkReference"),a=n.enter("label"),s=n.createTracker(r),l=s.move("["),c=n.containerPhrasing(t,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();let u=n.stack;n.stack=[],a=n.enter("reference");let d=n.safe(n.associationId(t),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function nVe(){return"["}function Sy(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function Whe(t){let e=Sy(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Khe(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function BM(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function Xhe(t,e,n,r){let i=n.enter("list"),o=n.bulletCurrent,a=t.ordered?Khe(n):Sy(n),s=t.ordered?a==="."?")":".":Whe(n),l=e&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!t.ordered){let u=t.children?t.children[0]:void 0;if((a==="*"||a==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),BM(n)===a&&u){let d=-1;for(;++d<t.children.length;){let p=t.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;let c=n.containerFlow(t,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c}function Yhe(t){let e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function Qhe(t,e,n,r){let i=Yhe(n),o=n.bulletCurrent||Sy(n);e&&e.type==="list"&&e.ordered&&(o=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(a=Math.ceil(a/4)*4);let s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(t,s.current()),u);return l(),c;function u(d,p,m){return p?(m?"":" ".repeat(a))+d:(m?o:o+" ".repeat(a-o.length))+d}}function Jhe(t,e,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(t,r);return o(),i(),a}var XB=Q1(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function e0e(t,e,n,r){return(t.children.some(function(a){return XB(a)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function t0e(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}YB.peek=rVe;function YB(t,e,n,r){let i=t0e(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i),l=a.move(n.containerPhrasing(t,{after:i,before:s,...a.current()})),c=l.charCodeAt(0),u=_y(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Kl(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=_y(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Kl(d));let m=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+m}function rVe(t,e,n){return n.options.strong||"*"}function n0e(t,e,n,r){return n.safe(t.value,r)}function r0e(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function i0e(t,e,n){let r=(BM(n)+(n.options.ruleSpaces?" ":"")).repeat(r0e(n));return n.options.ruleSpaces?r.slice(0,-1):r}var wg={blockquote:Fhe,break:zB,code:Hhe,definition:Ghe,emphasis:qB,hardBreak:zB,heading:Zhe,html:HB,image:GB,imageReference:UB,inlineCode:VB,link:WB,linkReference:KB,list:Xhe,listItem:Qhe,paragraph:Jhe,root:e0e,strong:YB,text:n0e,thematicBreak:i0e};var o0e=[iVe];function iVe(t,e,n,r){if(e.type==="code"&&$x(e,r)&&(t.type==="list"||t.type===e.type&&$x(t,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&FM(e,r))?void 0:n.spread?1:0}var vg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],a0e=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:` +`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:vg},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r +]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:vg},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r +*])`},{character:"*",inConstruct:"phrasing",notInConstruct:vg},{atBreak:!0,character:"+",after:`(?:[ \r ])`},{atBreak:!0,character:"-",after:`(?:[ \r -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r -]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:wg},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:wg},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:wg},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:wg},{atBreak:!0,character:"~"}];function s0e(t){return t.label||!t.identifier?t.label||"":$M(t.identifier)}function l0e(t){if(!t._compiled){let e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function c0e(t,e,n){let r=e.indexStack,i=t.children||[],o=[],a=-1,s=n.before,l;r.push(-1);let c=e.createTracker(n);for(;++a<i.length;){let u=i[a],d;if(r[r.length-1]=a,a+1<i.length){let f=e.handle.handlers[i[a+1].type];f&&f.peek&&(f=f.peek),d=f?f(i[a+1],t,e,{before:"",after:"",...c.current()}).charAt(0):""}else d=n.after;o.length>0&&(s==="\r"||s===` +]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:vg},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:vg},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:vg},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:vg},{atBreak:!0,character:"~"}];function s0e(t){return t.label||!t.identifier?t.label||"":PM(t.identifier)}function l0e(t){if(!t._compiled){let e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function c0e(t,e,n){let r=e.indexStack,i=t.children||[],o=[],a=-1,s=n.before,l;r.push(-1);let c=e.createTracker(n);for(;++a<i.length;){let u=i[a],d;if(r[r.length-1]=a,a+1<i.length){let f=e.handle.handlers[i[a+1].type];f&&f.peek&&(f=f.peek),d=f?f(i[a+1],t,e,{before:"",after:"",...c.current()}).charAt(0):""}else d=n.after;o.length>0&&(s==="\r"||s===` `)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",c=e.createTracker(n),c.move(o.join("")));let p=e.handle(u,t,e,{...c.current(),after:d,before:s});l&&l===p.slice(0,1)&&(p=Kl(l.charCodeAt(0))+p.slice(1));let m=e.attentionEncodeSurroundingInfo;e.attentionEncodeSurroundingInfo=void 0,l=void 0,m&&(o.length>0&&m.before&&s===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+Kl(s.charCodeAt(0))),m.after&&(l=d)),c.move(p),o.push(p),s=p.slice(-1)}return r.pop(),o.join("")}function u0e(t,e,n){let r=e.indexStack,i=t.children||[],o=e.createTracker(n),a=[],s=-1;for(r.push(-1);++s<i.length;){let l=i[s];r[r.length-1]=s,a.push(o.move(e.handle(l,t,e,{before:` `,after:` -`,...o.current()}))),l.type!=="list"&&(e.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(nVe(l,i[s+1],t,e)))}return r.pop(),a.join("")}function nVe(t,e,n,r){let i=r.join.length;for(;i--;){let o=r.join[i](t,e,n,r);if(o===!0||o===1)break;if(typeof o=="number")return` +`,...o.current()}))),l.type!=="list"&&(e.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(oVe(l,i[s+1],t,e)))}return r.pop(),a.join("")}function oVe(t,e,n,r){let i=r.join.length;for(;i--;){let o=r.join[i](t,e,n,r);if(o===!0||o===1)break;if(typeof o=="number")return` `.repeat(1+o);if(o===!1)return` <!----> `}return` -`}var rVe=/\r?\n|\r/g;function d0e(t,e){let n=[],r=0,i=0,o;for(;o=rVe.exec(t);)a(t.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(t.slice(r)),n.join("");function a(s){n.push(e(s,i,!s))}}function m0e(t,e,n){let r=(n.before||"")+(e||"")+(n.after||""),i=[],o=[],a={},s=-1;for(;++s<t.unsafe.length;){let u=t.unsafe[s];if(!IM(t.stack,u))continue;let d=t.compilePattern(u),p;for(;p=d.exec(r);){let m="before"in u||!!u.atBreak,f="after"in u,h=p.index+(m?p[1].length:0);i.includes(h)?(a[h].before&&!m&&(a[h].before=!1),a[h].after&&!f&&(a[h].after=!1)):(i.push(h),a[h]={before:m,after:f})}}i.sort(iVe);let l=n.before?n.before.length:0,c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){let u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&a[u].after&&!a[u+1].before&&!a[u+1].after||i[s-1]===u-1&&a[u].before&&!a[u-1].before&&!a[u-1].after||(l!==u&&o.push(p0e(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?o.push("\\"):(o.push(Kl(r.charCodeAt(u))),l++))}return o.push(p0e(r.slice(l,c),n.after)),o.join("")}function iVe(t,e){return t-e}function p0e(t,e){let n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=t+e,a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(t.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(t.slice(s)),i.join("")}function f0e(t){let e=t||{},n=e.now||{},r=e.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(c){r+=c}function l(c){let u=c||"",d=u.split(/\r?\n|\r/g),p=d[d.length-1];return i+=d.length-1,o=d.length===1?o+p.length:1+p.length+r,u}}function QB(t,e){let n=e||{},r={associationId:s0e,containerPhrasing:lVe,containerFlow:cVe,createTracker:f0e,compilePattern:l0e,enter:o,handlers:{...xg},handle:void 0,indentLines:d0e,indexStack:[],join:[...o0e],options:{},safe:uVe,stack:[],unsafe:[...a0e]};BB(r,n),r.options.tightDefinitions&&r.join.push(sVe),r.handle=lv("type",{invalid:oVe,unknown:aVe,handlers:r.handlers});let i=r.handle(t,void 0,r,{before:` +`}var aVe=/\r?\n|\r/g;function d0e(t,e){let n=[],r=0,i=0,o;for(;o=aVe.exec(t);)a(t.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(t.slice(r)),n.join("");function a(s){n.push(e(s,i,!s))}}function m0e(t,e,n){let r=(n.before||"")+(e||"")+(n.after||""),i=[],o=[],a={},s=-1;for(;++s<t.unsafe.length;){let u=t.unsafe[s];if(!jM(t.stack,u))continue;let d=t.compilePattern(u),p;for(;p=d.exec(r);){let m="before"in u||!!u.atBreak,f="after"in u,h=p.index+(m?p[1].length:0);i.includes(h)?(a[h].before&&!m&&(a[h].before=!1),a[h].after&&!f&&(a[h].after=!1)):(i.push(h),a[h]={before:m,after:f})}}i.sort(sVe);let l=n.before?n.before.length:0,c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){let u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&a[u].after&&!a[u+1].before&&!a[u+1].after||i[s-1]===u-1&&a[u].before&&!a[u-1].before&&!a[u-1].after||(l!==u&&o.push(p0e(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?o.push("\\"):(o.push(Kl(r.charCodeAt(u))),l++))}return o.push(p0e(r.slice(l,c),n.after)),o.join("")}function sVe(t,e){return t-e}function p0e(t,e){let n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=t+e,a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(t.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(t.slice(s)),i.join("")}function f0e(t){let e=t||{},n=e.now||{},r=e.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(c){r+=c}function l(c){let u=c||"",d=u.split(/\r?\n|\r/g),p=d[d.length-1];return i+=d.length-1,o=d.length===1?o+p.length:1+p.length+r,u}}function QB(t,e){let n=e||{},r={associationId:s0e,containerPhrasing:dVe,containerFlow:pVe,createTracker:f0e,compilePattern:l0e,enter:o,handlers:{...wg},handle:void 0,indentLines:d0e,indexStack:[],join:[...o0e],options:{},safe:mVe,stack:[],unsafe:[...a0e]};BB(r,n),r.options.tightDefinitions&&r.join.push(uVe),r.handle=lv("type",{invalid:lVe,unknown:cVe,handlers:r.handlers});let i=r.handle(t,void 0,r,{before:` `,after:` `,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=` -`),i;function o(a){return r.stack.push(a),s;function s(){r.stack.pop()}}}function oVe(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function aVe(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}function sVe(t,e){if(t.type==="definition"&&t.type===e.type)return 0}function lVe(t,e){return c0e(t,this,e)}function cVe(t,e){return u0e(t,this,e)}function uVe(t,e){return m0e(this,t,e)}function Sy(t){let e=this;e.compiler=n;function n(r){return QB(r,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}}function JB(t){if(t)throw t}var BM=R(C0e(),1);function Ix(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ez(){let t=[],e={run:n,use:r};return e;function n(...i){let o=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){let u=t[++o],d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?_0e(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function _0e(t,e){let n;return r;function r(...a){let s=t.length>a.length,l;s&&a.push(i);try{l=t.apply(this,a)}catch(c){let u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,e(a,...s))}function o(a){i(null,a)}}var Ao=class extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof e=="string"?i=e:!o.cause&&e&&(a=!0,i=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=W1(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Ao.prototype.file="";Ao.prototype.name="";Ao.prototype.reason="";Ao.prototype.message="";Ao.prototype.stack="";Ao.prototype.column=void 0;Ao.prototype.line=void 0;Ao.prototype.ancestors=void 0;Ao.prototype.cause=void 0;Ao.prototype.fatal=void 0;Ao.prototype.place=void 0;Ao.prototype.ruleId=void 0;Ao.prototype.source=void 0;var Fu={basename:dVe,dirname:pVe,extname:mVe,join:fVe,sep:"/"};function dVe(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Nx(t);let n=0,r=-1,i=t.length,o;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let a=-1,s=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(t.codePointAt(i)===e.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=t.length),t.slice(n,r)}function pVe(t){if(Nx(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function mVe(t){Nx(t);let e=t.length,n=-1,r=0,i=-1,o=0,a;for(;e--;){let s=t.codePointAt(e);if(s===47){if(a){r=e+1;break}continue}n<0&&(a=!0,n=e+1),s===46?i<0?i=e:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function fVe(...t){let e=-1,n;for(;++e<t.length;)Nx(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":hVe(n)}function hVe(t){Nx(t);let e=t.codePointAt(0)===47,n=gVe(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function gVe(t,e){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=t.length;){if(a<t.length)s=t.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function Nx(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}var S0e={cwd:bVe};function bVe(){return"/"}function Ly(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function L0e(t){if(typeof t=="string")t=new URL(t);else if(!Ly(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return yVe(t)}function yVe(t){if(t.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let e=t.pathname,n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){let r=e.codePointAt(n+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}var tz=["history","path","basename","stem","extname","dirname"],Px=class{constructor(e){let n;e?Ly(e)?n={path:e}:typeof e=="string"||xVe(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":S0e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<tz.length;){let o=tz[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)tz.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Fu.basename(this.path):void 0}set basename(e){rz(e,"basename"),nz(e,"basename"),this.path=Fu.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Fu.dirname(this.path):void 0}set dirname(e){M0e(this.basename,"dirname"),this.path=Fu.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Fu.extname(this.path):void 0}set extname(e){if(nz(e,"extname"),M0e(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fu.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Ly(e)&&(e=L0e(e)),rz(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Fu.basename(this.path,this.extname):void 0}set stem(e){rz(e,"stem"),nz(e,"stem"),this.path=Fu.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){let i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){let i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){let i=new Ao(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function nz(t,e){if(t&&t.includes(Fu.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Fu.sep+"`")}function rz(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function M0e(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function xVe(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var E0e=(function(t){let r=this.constructor.prototype,i=r[t],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o});var wVe={}.hasOwnProperty,sz=class t extends E0e{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ez()}copy(){let e=new t,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];e.use(...r)}return e.data((0,BM.default)(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(az("data",this.frozen),this.namespace[e]=n,this):wVe.call(this.namespace,e)&&this.namespace[e]||void 0:e?(az("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let n=FM(e),r=this.parser||this.Parser;return iz("parse",r),r(String(n),n)}process(e,n){let r=this;return this.freeze(),iz("process",this.parser||this.Parser),oz("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){let s=FM(e),l=r.parse(s);r.run(l,s,function(u,d,p){if(u||!d||!p)return c(u);let m=d,f=r.stringify(m,p);kVe(f)?p.value=f:p.result=f,c(u,p)});function c(u,d){u||!d?a(u):o?o(d):n(void 0,d)}}}processSync(e){let n=!1,r;return this.freeze(),iz("processSync",this.parser||this.Parser),oz("processSync",this.compiler||this.Compiler),this.process(e,i),R0e("processSync","process",n),r;function i(o,a){n=!0,JB(o),r=a}}run(e,n,r){T0e(e),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){let l=FM(n);i.run(e,l,c);function c(u,d,p){let m=d||e;u?s(u):a?a(m):r(void 0,m,p)}}}runSync(e,n){let r=!1,i;return this.run(e,n,o),R0e("runSync","run",r),i;function o(a,s){JB(a),i=s,r=!0}}stringify(e,n){this.freeze();let r=FM(n),i=this.compiler||this.Compiler;return oz("stringify",i),T0e(e),i(e,r)}use(e,...n){let r=this.attachers,i=this.namespace;if(az("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?s(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[u,...d]=c;l(u,d)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=(0,BM.default)(!0,i.settings,c.settings))}function s(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){let d=c[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===c){p=d;break}if(p===-1)r.push([c,...u]);else if(u.length>0){let[m,...f]=u,h=r[p][1];Ix(h)&&Ix(m)&&(m=(0,BM.default)(!0,h,m)),r[p]=[c,m,...f]}}}},jx=new sz().freeze();function iz(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function oz(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function az(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function T0e(t){if(!Ix(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function R0e(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function FM(t){return vVe(t)?t:new Px(t)}function vVe(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function kVe(t){return typeof t=="string"||CVe(t)}function CVe(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}function Da(t){this.content=t}Da.prototype={constructor:Da,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),o=r.content.slice();return i==-1?o.push(n||t,e):(o[i+1]=e,n&&(o[i]=n)),new Da(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Da(n)},addToStart:function(t,e){return new Da([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Da(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),o=r.find(t);return i.splice(o==-1?i.length:o,0,e,n),new Da(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Da.from(t),t.size?new Da(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Da.from(t),t.size?new Da(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Da.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Da.from=function(t){if(t instanceof Da)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Da(e)};var lz=Da;function B0e(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){let a=B0e(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function z0e(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let a=t.child(--i),s=e.child(--o),l=a.nodeSize;if(a==s){n-=l,r-=l;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let c=0,u=Math.min(a.text.length,s.text.length);for(;c<u&&a.text[a.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){let c=z0e(a.content,s.content,n-1,r-1);if(c)return c}n-=l,r-=l}}var De=class t{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,o){for(let a=0,s=0;s<n;a++){let l=this.content[a],c=s+l.nodeSize;if(c>e&&r(l,i+s,o||null,a)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,i+u)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",a=!0;return this.nodesBetween(e,n,(s,l)=>{let c=s.isText?s.text.slice(Math.max(e,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&r&&(a?a=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new t(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let o=0,a=0;a<n;o++){let s=this.content[o],l=a+s.nodeSize;l>e&&((a<e||l>n)&&(s.isText?s=s.cut(Math.max(0,e-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,e-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new t(r,i)}cutByIndex(e,n){return e==n?t.empty:e==0&&n==this.content.length?this:new t(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new t(i,o)}addToStart(e){return new t([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new t(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return B0e(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return z0e(this,e,n,r)}findIndex(e){if(e==0)return zM(0,e);if(e==this.size)return zM(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e?zM(n+1,o):zM(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return t.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return t.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return t.empty;let n,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(n||(n=e.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new t(n||e,r)}static from(e){if(!e)return t.empty;if(e instanceof t)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new t([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};De.empty=new De([],0);var cz={index:0,offset:0};function zM(t,e){return cz.index=t,cz.offset=e,cz}function GM(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!GM(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!GM(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}var Gn=class t{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&GM(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return t.none;if(e instanceof t)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};Gn.none=[];var Cg=class extends Error{},Je=class t{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=H0e(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new t(r,this.openStart,this.openEnd)}removeBetween(e,n){return new t(q0e(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return t.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new t(De.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new t(e,r,i)}};Je.empty=new Je(De.empty,0,0);function q0e(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:a,offset:s}=t.findIndex(n);if(i==e||o.isText){if(s!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(q0e(o.content,e-i-1,n-i-1)))}function H0e(t,e,n,r,i,o){let{index:a,offset:s}=t.findIndex(e),l=t.maybeChild(a);if(s==e||l.isText)return o&&r<=0&&i<=0&&!o.canReplace(a,a,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=H0e(l.content,e-s-1,n,a==0?r-1:0,a==t.childCount-1?i-1:0,l);return c&&t.replaceChild(a,l.copy(c))}function _Ve(t,e,n){if(n.openStart>t.depth)throw new Cg("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Cg("Inconsistent open depths");return G0e(t,e,n,0)}function G0e(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let a=G0e(t,e,n,r+1);return o.copy(o.content.replaceChild(i,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let a=t.parent,s=a.content;return kg(a,s.cut(0,t.parentOffset).append(n.content).append(s.cut(e.parentOffset)))}else{let{start:a,end:s}=SVe(n,t);return kg(o,V0e(t,a,s,e,r))}else return kg(o,UM(t,e,r))}function U0e(t,e){if(!e.type.compatibleContent(t.type))throw new Cg("Cannot join "+e.type.name+" onto "+t.type.name)}function uz(t,e,n){let r=t.node(n);return U0e(r,e.node(n)),r}function vg(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ox(t,e,n,r){let i=(e||t).node(n),o=0,a=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(vg(t.nodeAfter,r),o++));for(let s=o;s<a;s++)vg(i.child(s),r);e&&e.depth==n&&e.textOffset&&vg(e.nodeBefore,r)}function kg(t,e){return t.type.checkContent(e),t.copy(e)}function V0e(t,e,n,r,i){let o=t.depth>i&&uz(t,e,i+1),a=r.depth>i&&uz(n,r,i+1),s=[];return Ox(null,t,i,s),o&&a&&e.index(i)==n.index(i)?(U0e(o,a),vg(kg(o,V0e(t,e,n,r,i+1)),s)):(o&&vg(kg(o,UM(t,e,i+1)),s),Ox(e,n,i,s),a&&vg(kg(a,UM(n,r,i+1)),s)),Ox(r,null,i,s),new De(s)}function UM(t,e,n){let r=[];if(Ox(null,t,n,r),t.depth>n){let i=uz(t,e,n+1);vg(kg(i,UM(t,e,n+1)),r)}return Ox(e,null,n,r),new De(r)}function SVe(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(De.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}var VM=class t{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Gn.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let s=r;r=i,i=s}let o=r.marks;for(var a=0;a<o.length;a++)o[a].type.spec.inclusive===!1&&(!i||!o[a].isInSet(i.marks))&&(o=o[a--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Fx(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let a=e;;){let{index:s,offset:l}=a.content.findIndex(o),c=o-l;if(r.push(a,s,i+l),!c||(a=a.child(s),a.isText))break;o=c-1,i+=l+1}return new t(n,r,o)}static resolveCached(e,n){let r=A0e.get(e);if(r)for(let o=0;o<r.elts.length;o++){let a=r.elts[o];if(a.pos==n)return a}else A0e.set(e,r=new dz);let i=r.elts[r.i]=t.resolve(e,n);return r.i=(r.i+1)%LVe,i}},dz=class{constructor(){this.elts=[],this.i=0}},LVe=12,A0e=new WeakMap,Fx=class{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},MVe=Object.create(null),rl=class t{constructor(e,n,r,i=Gn.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||De.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&GM(this.attrs,n||e.defaultAttrs||MVe)&&Gn.sameSet(this.marks,r||Gn.none)}copy(e=null){return e==this.content?this:new t(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new t(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return Je.empty;let i=this.resolve(e),o=this.resolve(n),a=r?0:i.sharedDepth(n),s=i.start(a),c=i.node(a).content.cut(i.pos-s,o.pos-s);return new Je(c,i.depth-a,o.depth-a)}replace(e,n,r){return _Ve(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return VM.resolveCached(this,e)}resolveNoCache(e){return VM.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Z0e(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=De.empty,i=0,o=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,i,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),a=o&&o.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Gn.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Gn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=De.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};rl.prototype.text=void 0;var pz=class t extends rl{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Z0e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Z0e(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}var _g=class t{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new mz(e,n);if(r.next==null)return t.empty;let i=W0e(r);r.next&&r.err("Unexpected trailing text");let o=NVe(IVe(i));return PVe(o,r),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function o(a,s){let l=a.matchFragment(e,r);if(l&&(!n||l.validEnd))return De.from(s.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:u,next:d}=a.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let p=o(d,s.concat(u));if(p)return p}}return null}return o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let a=[];for(let s=i;s.type;s=s.via)a.push(s.type);return a.reverse()}for(let a=0;a<o.next.length;a++){let{type:s,next:l}=o.next[a];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!i.type||l.validEnd)&&(r.push({match:s.contentMatch,type:s,via:i}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)o+=(a?", ":"")+r.next[a].type.name+"->"+e.indexOf(r.next[a].next);return o}).join(` -`)}};_g.empty=new _g(!0);var mz=class{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function W0e(t){let e=[];do e.push(EVe(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function EVe(t){let e=[];do e.push(TVe(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function TVe(t){let e=$Ve(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=RVe(t,e);else break;return e}function $0e(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function RVe(t,e){let n=$0e(t),r=n;return t.eat(",")&&(t.next!="}"?r=$0e(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function AVe(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.isInGroup(e)&&i.push(a)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function $Ve(t){if(t.eat("(")){let e=W0e(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=AVe(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function IVe(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}function r(a,s,l){let c={term:l,to:s};return e[a].push(c),c}function i(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(o(c,s)),[]);if(a.type=="seq")for(let l=0;;l++){let c=o(a.exprs[l],s);if(l==a.exprs.length-1)return c;i(c,s=n())}else if(a.type=="star"){let l=n();return r(s,l),i(o(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=n();return i(o(a.expr,s),l),i(o(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let c=0;c<a.min;c++){let u=n();i(o(a.expr,l),u),l=u}if(a.max==-1)i(o(a.expr,l),l);else for(let c=a.min;c<a.max;c++){let u=n();r(l,u),i(o(a.expr,l),u),l=u}return[r(l)]}else{if(a.type=="name")return[r(s,void 0,a.value)];throw new Error("Unknown expr type")}}}}function K0e(t,e){return e-t}function I0e(t,e){let n=[];return r(e),n.sort(K0e);function r(i){let o=t[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let a=0;a<o.length;a++){let{term:s,to:l}=o[a];!s&&n.indexOf(l)==-1&&r(l)}}}function NVe(t){let e=Object.create(null);return n(I0e(t,0));function n(r){let i=[];r.forEach(a=>{t[a].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u<i.length;u++)i[u][0]==s&&(c=i[u][1]);I0e(t,l).forEach(u=>{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=e[r.join(",")]=new _g(r.indexOf(t.length-1)>-1);for(let a=0;a<i.length;a++){let s=i[a][1].sort(K0e);o.next.push({type:i[a][0],next:e[s.join(",")]||n(s)})}return o}}function PVe(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],o=!i.validEnd,a=[];for(let s=0;s<i.next.length;s++){let{type:l,next:c}=i.next[s];a.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function X0e(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Y0e(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let o=t[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function Q0e(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let o=t[i];o.validate&&o.validate(e[i])}}function J0e(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new fz(t,r,e[r]);return n}var Bx=class t{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=J0e(e,r.attrs),this.defaultAttrs=X0e(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==_g.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Y0e(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new rl(this,this.computeAttrs(e),De.from(n),Gn.setFrom(r))}createChecked(e=null,n,r){return n=De.from(n),this.checkContent(n),new rl(this,this.computeAttrs(e),n,Gn.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=De.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(De.empty,!0);return o?new rl(this,e,n.append(o),Gn.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Q0e(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:Gn.none:e}static compile(e,n){let r=Object.create(null);e.forEach((o,a)=>r[o]=new t(o,n,a));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function jVe(t,e,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}var fz=class{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?jVe(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}},zx=class t{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=J0e(e,i.attrs),this.excluded=null;let o=X0e(this.attrs);this.instance=o?new Gn(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Gn(this,Y0e(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,a)=>r[o]=new t(o,i++,n,a)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Q0e(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},ZM=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=lz.from(e.nodes),n.marks=lz.from(e.marks||{}),this.nodes=Bx.compile(this.spec.nodes,this),this.marks=zx.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=r[a]||(r[a]=_g.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?N0e(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:N0e(this,a.split(" "))}this.nodeFromJSON=i=>rl.fromJSON(this,i),this.markFromJSON=i=>Gn.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Bx){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new pz(r,r.defaultAttrs,e,Gn.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function N0e(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t.marks[i],a=o;if(o)n.push(o);else for(let s in t.marks){let l=t.marks[s];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function OVe(t){return t.tag!=null}function DVe(t){return t.style!=null}var Fd=class t{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(OVe(i))this.tags.push(i);else if(DVe(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new WM(this,n,!1);return r.addAll(e,Gn.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new WM(this,n,!0);return r.addAll(e,Gn.none,n.from,n.to),Je.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(zVe(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let a=o.getAttrs(e);if(a===!1)continue;o.attrs=a||void 0}return o}}}matchStyle(e,n,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let a=this.styles[o],s=a.style;if(!(s.indexOf(e)!=0||a.context&&!r.matchesContext(a.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,a=0;for(;a<n.length;a++){let s=n[a];if((s.priority==null?50:s.priority)<o)break}n.splice(a,0,i)}for(let i in e.marks){let o=e.marks[i].spec.parseDOM;o&&o.forEach(a=>{r(a=j0e(a)),a.mark||a.ignore||a.clearMark||(a.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(a=>{r(a=j0e(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new t(e,t.schemaRules(e)))}},ege={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},FVe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},tge={ol:!0,ul:!0},qx=1,hz=2,Dx=4;function P0e(t,e,n){return e!=null?(e?qx:0)|(e==="full"?hz:0):t&&t.whitespace=="pre"?qx|hz:n&~Dx}var My=class{constructor(e,n,r,i,o,a){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Gn.none,this.match=o||(a&Dx?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(De.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&qx)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=De.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(De.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ege.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},WM=class{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,o,a=P0e(null,n.preserveWhitespace,0)|(r?Dx:0);i?o=new My(i.type,i.attrs,Gn.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new My(null,null,Gn.none,!0,null,a):o=new My(e.schema.topNodeType,null,Gn.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,o=i.options&hz?"full":this.localPreserveWS||(i.options&qx)>0,{schema:a}=this.parser;if(o==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(o)if(o==="full")r=r.replace(/\r\n?/g,` -`);else if(a.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(a.linebreakReplacement.create())){let s=r.split(/\r?\n|\r/);for(let l=0;l<s.length;l++)l&&this.insertNode(a.linebreakReplacement.create(),n,!0),s[l]&&this.insertNode(a.text(s[l]),n,!/\S/.test(s[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],l=e.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(a.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,o=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),s;tge.hasOwnProperty(a)&&this.parser.normalizeLists&&BVe(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));e:if(l?l.ignore:FVe.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(ege.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(o),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?s:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` -`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],a=r.getPropertyValue(o);if(a)for(let s=void 0;;){let l=this.parser.matchStyle(o,a,this,s);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(e,n,r,i){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(a,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}o&&this.sync(s)&&this.open--}addAll(e,n,r,i){let o=r||0;for(let a=r?e.childNodes[r]:e.firstChild,s=i==null?null:e.childNodes[i];a!=s;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a,n);this.findAtPoint(e,o)}findPlace(e,n,r){let i,o;for(let a=this.open,s=0;a>=0;a--){let l=this.nodes[a],c=l.findWrapping(e);if(c&&(!i||i.length>c.length+s)&&(i=c,o=l,!c.length))break;if(l.solid){if(r)break;s+=2}}if(!i)return null;this.sync(o);for(let a=0;a<i.length;a++)n=this.enterInner(i[a],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let a=Gn.none;for(let s of i.concat(e.marks))(o.type?o.type.allowsMarkType(s.type):O0e(s.type,e.type))&&(a=s.addToSet(a));return o.content.push(e.mark(a)),!0}return!1}enter(e,n,r,i){let o=this.findPlace(e.create(n),r,!1);return o&&(o=this.enterInner(e,n,r,!0,i)),o}enterInner(e,n,r,i=!1,o){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let s=P0e(e,o,a.options);a.options&Dx&&a.content.length==0&&(s|=Dx);let l=Gn.none;return r=r.filter(c=>(a.type?a.type.allowsMarkType(c.type):O0e(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new My(e,n,l,i,null,s)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=qx)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}};function BVe(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&tge.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function zVe(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function j0e(t){let e={};for(let n in t)e[n]=t[n];return e}function O0e(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],a=s=>{o.push(s);for(let l=0;l<s.edgeCount;l++){let{type:c,next:u}=s.edge(l);if(c==e||o.indexOf(u)<0&&a(u))return!0}};if(a(i.contentMatch))return!0}}var Bd=class t{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=qM(n).createDocumentFragment());let i=r,o=[];return e.forEach(a=>{if(o.length||a.marks.length){let s=0,l=0;for(;s<o.length&&l<a.marks.length;){let c=a.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[s][0])||c.type.spec.spanning===!1)break;s++,l++}for(;s<o.length;)i=o.pop()[1];for(;l<a.marks.length;){let c=a.marks[l++],u=this.serializeMark(c,a.isInline,n);u&&(o.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(a,n))}),r}serializeNodeInner(e,n){if(e.isText)return qM(n).createTextNode(e.text);let{dom:r,contentDOM:i}=HM(qM(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&HM(qM(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:HM(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new t(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=D0e(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return D0e(e.marks)}};function D0e(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function qM(t){return t.document||window.document}var F0e=new WeakMap;function qVe(t){let e=F0e.get(t);return e===void 0&&F0e.set(t,e=HVe(t)),e}function HVe(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function HM(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=qVe(r))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let s,l=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else if(typeof p=="string")l.appendChild(t.createTextNode(p));else{let{dom:m,contentDOM:f}=HM(t,p,n,r);if(l.appendChild(m),f){if(s)throw new RangeError("Multiple content holes");s=f}}}return{dom:l,contentDOM:s}}var ige=65535,oge=Math.pow(2,16);function GVe(t,e){return t+e*oge}function nge(t){return t&ige}function UVe(t){return(t-(t&ige))/oge}var age=1,sge=2,KM=4,lge=8,Ux=class{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&lge)>0}get deletedBefore(){return(this.delInfo&(age|KM))>0}get deletedAfter(){return(this.delInfo&(sge|KM))>0}get deletedAcross(){return(this.delInfo&KM)>0}},vm=class t{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&t.empty)return t.empty}recover(e){let n=0,r=nge(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+UVe(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?i:0);if(l>e)break;let c=this.ranges[s+o],u=this.ranges[s+a],d=l+c;if(e<=d){let p=c?e==l?-1:e==d?1:n:n,m=l+i+(p<0?0:u);if(r)return m;let f=e==(n<0?l:d)?null:GVe(s/3,e-l),h=e==l?sge:e==d?age:KM;return(n<0?e!=l:e!=d)&&(h|=lge),new Ux(m,h,f)}i+=u-c}return r?e+i:new Ux(e+i,0,null)}touches(e,n){let r=0,i=nge(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[s+o],u=l+c;if(e<=u&&s==i*3)return!0;r+=this.ranges[s+a]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let a=this.ranges[i],s=a-(this.inverted?o:0),l=a+(this.inverted?0:o),c=this.ranges[i+n],u=this.ranges[i+r];e(s,s+c,l,l+u),o+=u-c}}invert(){return new t(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?t.empty:new t(e<0?[0,-e,0]:[0,0,e])}};vm.empty=new vm([]);var Vx=class t{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new t(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new t;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let o=this.from;o<this.to;o++){let a=this._maps[o],s=a.mapResult(e,n);if(s.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this._maps[l].recover(s.recover);continue}}i|=s.delInfo,e=s.pos}return r?e:new Ux(e,i,null)}},gz=Object.create(null),$o=class{getMap(){return vm.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=gz[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in gz)throw new RangeError("Duplicate use of step JSON ID "+e);return gz[e]=n,n.prototype.jsonID=e,n}},Yo=class t{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new t(e,null)}static fail(e){return new t(null,e)}static fromReplace(e,n,r,i){try{return t.ok(e.replace(n,r,i))}catch(o){if(o instanceof Cg)return t.fail(o.message);throw o}}};function vz(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let o=t.child(i);o.content.size&&(o=o.copy(vz(o.content,e,o))),o.isInline&&(o=e(o,n,i)),r.push(o)}return De.fromArray(r)}var Sg=class t extends $o{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new Je(vz(n.content,(a,s)=>!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),i),n.openStart,n.openEnd);return Yo.fromReplace(e,this.from,this.to,o)}invert(){return new Lg(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)}merge(e){return e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))}};$o.jsonID("addMark",Sg);var Lg=class t extends $o{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new Je(vz(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Yo.fromReplace(e,this.from,this.to,r)}invert(){return new Sg(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)}merge(e){return e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))}};$o.jsonID("removeMark",Lg);var Zx=class t extends $o{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Yo.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Yo.fromReplace(e,this.pos,this.pos+1,new Je(De.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new t(this.pos,n.marks[i]);return new t(this.pos,this.mark)}}return new Ey(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new t(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new t(n.pos,e.markFromJSON(n.mark))}};$o.jsonID("addNodeMark",Zx);var Ey=class t extends $o{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Yo.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Yo.fromReplace(e,this.pos,this.pos+1,new Je(De.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Zx(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new t(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new t(n.pos,e.markFromJSON(n.mark))}};$o.jsonID("removeNodeMark",Ey);var Qo=class t extends $o{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&xz(e,this.from,this.to)?Yo.fail("Structure replace would overwrite content"):Yo.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new vm([this.from,this.to-this.from,this.slice.size])}invert(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&t.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new t(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?Je.empty:new Je(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?Je.empty:new Je(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,Je.fromJSON(e,n.slice),!!n.structure)}};Qo.MAP_BIAS=1;$o.jsonID("replace",Qo);var Jo=class t extends $o{constructor(e,n,r,i,o,a,s=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=a,this.structure=s}apply(e){if(this.structure&&(xz(e,this.from,this.gapFrom)||xz(e,this.gapTo,this.to)))return Yo.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Yo.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Yo.fromReplace(e,this.from,this.to,r):Yo.fail("Content does not fit in gap")}getMap(){return new vm([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new t(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,Je.fromJSON(e,n.slice),n.insert,!!n.structure)}};$o.jsonID("replaceAround",Jo);function xz(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function VVe(t,e,n,r){let i=[],o=[],a,s;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let p=Math.max(c,e),m=Math.min(c+l.nodeSize,n),f=r.addToSet(d);for(let h=0;h<d.length;h++)d[h].isInSet(f)||(a&&a.to==p&&a.mark.eq(d[h])?a.to=m:i.push(a=new Lg(p,m,d[h])));s&&s.to==p?s.to=m:o.push(s=new Sg(p,m,r))}}),i.forEach(l=>t.step(l)),o.forEach(l=>t.step(l))}function ZVe(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(r instanceof zx){let c=a.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let c=Math.min(s+a.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],p;for(let m=0;m<i.length;m++){let f=i[m];f.step==o-1&&d.eq(i[m].style)&&(p=f)}p?(p.to=c,p.step=o):i.push({style:d,from:Math.max(s,e),to:c,step:o})}}}),i.forEach(a=>t.step(new Lg(a.from,a.to,a.style)))}function kz(t,e,n,r=n.contentMatch,i=!0){let o=t.doc.nodeAt(e),a=[],s=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=s+c.nodeSize,d=r.matchType(c.type);if(!d)a.push(new Qo(s,u,Je.empty));else{r=d;for(let p=0;p<c.marks.length;p++)n.allowsMarkType(c.marks[p].type)||t.step(new Lg(s,u,c.marks[p]));if(i&&c.isText&&n.whitespace!="pre"){let p,m=/\r?\n|\r/g,f;for(;p=m.exec(c.text);)f||(f=new Je(De.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new Qo(s+p.index,s+p.index+p[0].length,f))}}s=u}if(!r.validEnd){let l=r.fillBefore(De.empty,!0);t.replace(s,s,new Je(l,0,0))}for(let l=a.length-1;l>=0;l--)t.step(a[l])}function WVe(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Ay(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,o=0;;--r){let a=t.$from.node(r),s=t.$from.index(r)+i,l=t.$to.indexAfter(r)-o;if(r<t.depth&&a.canReplace(s,l,n))return r;if(r==0||a.type.spec.isolating||!WVe(a,s,l))break;s&&(i=1),l<a.childCount&&(o=1)}return null}function KVe(t,e,n){let{$from:r,$to:i,depth:o}=e,a=r.before(o+1),s=i.after(o+1),l=a,c=s,u=De.empty,d=0;for(let f=o,h=!1;f>n;f--)h||r.index(f)>0?(h=!0,u=De.from(r.node(f).copy(u)),d++):l--;let p=De.empty,m=0;for(let f=o,h=!1;f>n;f--)h||i.after(f+1)<i.end(f)?(h=!0,p=De.from(i.node(f).copy(p)),m++):c++;t.step(new Jo(l,c,a,s,new Je(u.append(p),d,m),u.size-d,!0))}function Mg(t,e,n=null,r=t){let i=XVe(t,e),o=i&&YVe(r,e);return o?i.map(rge).concat({type:e,attrs:n}).concat(o.map(rge)):null}function rge(t){return{type:t,attrs:null}}function XVe(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.contentMatchAt(r).findWrapping(e);if(!o)return null;let a=o.length?o[0]:e;return n.canReplaceWith(r,i,a)?o:null}function YVe(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.child(r),a=e.contentMatch.findWrapping(o.type);if(!a)return null;let l=(a.length?a[a.length-1]:e).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:a}function QVe(t,e,n){let r=De.empty;for(let a=n.length-1;a>=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=De.from(n[a].type.create(n[a].attrs,r))}let i=e.start,o=e.end;t.step(new Jo(i,o,i,o,new Je(r,0,0),n.length,!0))}function JVe(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(a,s)=>{let l=typeof i=="function"?i(a):i;if(a.isTextblock&&!a.hasMarkup(r,l)&&eZe(t.doc,t.mapping.slice(o).map(s),r)){let c=null;if(r.schema.linebreakReplacement){let m=r.whitespace=="pre",f=!!r.contentMatch.matchType(r.schema.linebreakReplacement);m&&!f?c=!1:!m&&f&&(c=!0)}c===!1&&uge(t,a,s,o),kz(t,t.mapping.slice(o).map(s,1),r,void 0,c===null);let u=t.mapping.slice(o),d=u.map(s,1),p=u.map(s+a.nodeSize,1);return t.step(new Jo(d,p,d+1,p-1,new Je(De.from(r.create(l,null,a.marks)),0,0),1,!0)),c===!0&&cge(t,a,s,o),!1}})}function cge(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let l=t.mapping.slice(r).map(n+1+o+a.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function uge(t,e,n,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let a=t.mapping.slice(r).map(n+1+o);t.replaceWith(a,a+1,e.type.schema.text(` -`))}})}function eZe(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function tZe(t,e,n,r,i){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Jo(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new Je(De.from(a),0,0),1,!0))}function Eg(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),p=i.index(c);if(d.type.spec.isolating)return!1;let m=d.content.cutByIndex(p,d.childCount),f=r&&r[u+1];f&&(m=m.replaceChild(0,f.type.create(f.attrs)));let h=r&&r[u]||d;if(!d.canReplace(p+1,d.childCount)||!h.type.validContent(m))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function nZe(t,e,n=1,r){let i=t.doc.resolve(e),o=De.empty,a=De.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=De.from(i.node(s).copy(o));let u=r&&r[c];a=De.from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}t.step(new Qo(e,e,new Je(o.append(a),n,n),!0))}function Tg(t,e){let n=t.resolve(e),r=n.index();return iZe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function rZe(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let o=e.child(i),a=o.type==r?t.type.schema.nodes.text:o.type;if(n=n.matchType(a),!n||!t.type.allowsMarks(o.marks))return!1}return n.validEnd}function iZe(t,e){return!!(t&&e&&!t.isLeaf&&rZe(t,e))}function oZe(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,o=t.doc.resolve(e-n),a=o.node().type;if(i&&a.inlineContent){let u=a.whitespace=="pre",d=!!a.contentMatch.matchType(i);u&&!d?r=!1:!u&&d&&(r=!0)}let s=t.steps.length;if(r===!1){let u=t.doc.resolve(e+n);uge(t,u.node(),u.before(),s)}a.inlineContent&&kz(t,e+n-1,a,o.node().contentMatchAt(o.index()),r==null);let l=t.mapping.slice(s),c=l.map(e-n);if(t.step(new Qo(c,l.map(e+n,-1),Je.empty,!0)),r===!0){let u=t.doc.resolve(c);cge(t,u.node(),u.before(),t.steps.length)}return t}function aZe(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function dge(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let a=r.depth;a>=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,l=r.index(a)+(s>0?1:0),c=r.node(a),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function Wx(t,e,n=e,r=Je.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),o=t.resolve(n);return pge(i,o,r)?new Qo(e,n,r):new wz(i,o,r).fit()}function pge(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}var wz=class{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=De.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=De.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new Je(o,a,s);return e>-1?new Jo(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Qo(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let o=n.firstChild;if(n.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=bz(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let a=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,d=null;if(n==1&&(a?c.matchType(a.type)||(d=c.fillBefore(De.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:d};if(n==2&&a&&(u=c.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=bz(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new Je(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=bz(e,n);if(i.childCount<=1&&n>0){let o=e.size-n<=n+i.size;this.unplaced=new Je(Hx(e,n-1,1),n-1,o?n-1:r)}else this.unplaced=new Je(Hx(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let h=0;h<o.length;h++)this.openFrontierNode(o[h]);let a=this.unplaced,s=r?r.content:a.content,l=a.openStart-e,c=0,u=[],{match:d,type:p}=this.frontier[n];if(i){for(let h=0;h<i.childCount;h++)u.push(i.child(h));d=d.matchFragment(i)}let m=s.size+e-(a.content.size-a.openEnd);for(;c<s.childCount;){let h=s.child(c),x=d.matchType(h.type);if(!x)break;c++,(c>1||l==0||h.content.size)&&(d=x,u.push(mge(h.mark(p.allowedMarks(h.marks)),c==1?l:0,c==s.childCount?m:-1)))}let f=c==s.childCount;f||(m=-1),this.placed=Gx(this.placed,n,De.from(u)),this.frontier[n].match=d,f&&m<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let h=0,x=s;h<m;h++){let g=x.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),x=g.content}this.unplaced=f?e==0?Je.empty:new Je(Hx(a.content,e-1,1),e-1,m<0?a.openEnd:e-1):new Je(Hx(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!yz(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),a=yz(e,n,i,r,o);if(a){for(let s=n-1;s>=0;s--){let{match:l,type:c}=this.frontier[s],u=yz(e,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:a,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Gx(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Gx(this.placed,this.depth,De.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(De.empty,!0);n.childCount&&(this.placed=Gx(this.placed,this.frontier.length,n))}};function Hx(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Hx(t.firstChild.content,e-1,n)))}function Gx(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Gx(t.lastChild.content,e-1,n)))}function bz(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function mge(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,mge(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(De.empty,!0)))),t.copy(r)}function yz(t,e,n,r,i){let o=t.node(e),a=i?t.indexAfter(e):t.index(e);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!sZe(n,o.content,a)?s:null}function sZe(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function lZe(t){return t.spec.defining||t.spec.definingForContent}function cZe(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),o=t.doc.resolve(n);if(pge(i,o,r))return t.step(new Qo(e,n,r));let a=hge(i,o);a[a.length-1]==0&&a.pop();let s=-(i.depth+1);a.unshift(s);for(let p=i.depth,m=i.pos-1;p>0;p--,m--){let f=i.node(p).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;a.indexOf(p)>-1?s=p:i.before(p)==m&&a.splice(1,0,-p)}let l=a.indexOf(s),c=[],u=r.openStart;for(let p=r.content,m=0;;m++){let f=p.firstChild;if(c.push(f),m==r.openStart)break;p=f.content}for(let p=u-1;p>=0;p--){let m=c[p],f=lZe(m.type);if(f&&!m.sameMarkup(i.node(Math.abs(s)-1)))u=p;else if(f||!m.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let m=(p+u+1)%(r.openStart+1),f=c[m];if(f)for(let h=0;h<a.length;h++){let x=a[(h+l)%a.length],g=!0;x<0&&(g=!1,x=-x);let y=i.node(x-1),b=i.index(x-1);if(y.canReplaceWith(b,b,f.type,f.marks))return t.replace(i.before(x),g?o.after(x):n,new Je(fge(r.content,0,r.openStart,m),m,r.openEnd))}}let d=t.steps.length;for(let p=a.length-1;p>=0&&(t.replace(e,n,r),!(t.steps.length>d));p--){let m=a[p];m<0||(e=i.before(m),n=o.after(m))}}function fge(t,e,n,r,i){if(e<n){let o=t.firstChild;t=t.replaceChild(0,o.copy(fge(o.content,e+1,n,r,o)))}if(e>r){let o=i.contentMatchAt(0),a=o.fillBefore(t).append(t);t=a.append(o.matchFragment(a).fillBefore(De.empty,!0))}return t}function uZe(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=aZe(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new Je(De.from(r),0,0))}function dZe(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),s=!1;for(let l=r.depth;l>a;l--)r.node(l).type.spec.isolating&&(s=!0);for(let l=i.depth;l>a;l--)i.node(l).type.spec.isolating&&(s=!0);if(!s){for(let l=r.depth;l>0&&e==r.start(l);l--)e=r.before(l);for(let l=i.depth;l>0&&n==i.start(l);l--)n=i.before(l);r=t.doc.resolve(e),i=t.doc.resolve(n)}}let o=hge(r,i);for(let a=0;a<o.length;a++){let s=o[a],l=a==o.length-1;if(l&&s==0||r.node(s).type.contentMatch.validEnd)return t.delete(r.start(s),i.end(s));if(s>0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return t.delete(r.before(s),i.after(s))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(e-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return t.delete(r.before(a),n);t.delete(e,n)}function hge(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let o=t.start(i);if(o<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&n.push(i)}return n}var XM=class t extends $o{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Yo.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Yo.fromReplace(e,this.pos,this.pos+1,new Je(De.from(i),0,n.isLeaf?0:1))}getMap(){return vm.empty}invert(e){return new t(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new t(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new t(n.pos,n.attr,n.value)}};$o.jsonID("attr",XM);var YM=class t extends $o{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Yo.ok(r)}getMap(){return vm.empty}invert(e){return new t(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new t(n.attr,n.value)}};$o.jsonID("docAttr",YM);var Ty=class extends Error{};Ty=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};Ty.prototype=Object.create(Error.prototype);Ty.prototype.constructor=Ty;Ty.prototype.name="TransformError";var Ry=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Vx}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Ty(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(e=i.map(e,1),n=i.map(n,-1)),i.forEach((o,a,s,l)=>{e=Math.min(e,s),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=Je.empty){let i=Wx(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new Je(De.from(r),0,0))}delete(e,n){return this.replace(e,n,Je.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return cZe(this,e,n,r),this}replaceRangeWith(e,n,r){return uZe(this,e,n,r),this}deleteRange(e,n){return dZe(this,e,n),this}lift(e,n){return KVe(this,e,n),this}join(e,n=1){return oZe(this,e,n),this}wrap(e,n){return QVe(this,e,n),this}setBlockType(e,n=e,r,i=null){return JVe(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return tZe(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new XM(e,n,r)),this}setDocAttribute(e,n){return this.step(new YM(e,n)),this}addNodeMark(e,n){return this.step(new Zx(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof Gn)n.isInSet(r.marks)&&this.step(new Ey(e,n));else{let i=r.marks,o,a=[];for(;o=n.isInSet(i);)a.push(new Ey(e,o)),i=o.removeFromSet(i);for(let s=a.length-1;s>=0;s--)this.step(a[s])}return this}split(e,n=1,r){return nZe(this,e,n,r),this}addMark(e,n,r){return VVe(this,e,n,r),this}removeMark(e,n,r){return ZVe(this,e,n,r),this}clearIncompatible(e,n,r){return kz(this,e,n,r),this}};var Cz=Object.create(null),Kt=class{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new Y1(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=Je.empty){let r=n.content.lastChild,i=null;for(let s=0;s<n.openEnd;s++)i=r,r=r.lastChild;let o=e.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:l,$to:c}=a[s],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),s?Je.empty:n),s==0&&yge(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:a,$to:s}=i[o],l=e.mapping.slice(r),c=l.map(a.pos),u=l.map(s.pos);o?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),yge(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new Qt(e):$y(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let o=e.depth-1;o>=0;o--){let a=n<0?$y(e.node(0),e.node(o),e.before(o+1),e.index(o),n,r):$y(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,r);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Xl(e.node(0))}static atStart(e){return $y(e,e,0,0,1)||new Xl(e)}static atEnd(e){return $y(e,e,e.content.size,e.childCount,-1)||new Xl(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Cz[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Cz)throw new RangeError("Duplicate use of selection JSON ID "+e);return Cz[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Qt.between(this.$anchor,this.$head).getBookmark()}};Kt.prototype.visible=!0;var Y1=class{constructor(e,n){this.$from=e,this.$to=n}},gge=!1;function bge(t){!gge&&!t.parent.inlineContent&&(gge=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}var Qt=class t extends Kt{constructor(e,n=e){bge(e),bge(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Kt.near(r);let i=e.resolve(n.map(this.anchor));return new t(i.parent.inlineContent?i:r,r)}replace(e,n=Je.empty){if(super.replace(e,n),n==Je.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new JM(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=Kt.findFrom(n,r,!0)||Kt.findFrom(n,-r,!0);if(o)n=o.$head;else return Kt.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(Kt.findFrom(e,-r,!0)||Kt.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new t(e,n)}};Kt.jsonID("text",Qt);var JM=class t{constructor(e,n){this.anchor=e,this.head=n}map(e){return new t(e.map(this.anchor),e.map(this.head))}resolve(e){return Qt.between(e.resolve(this.anchor),e.resolve(this.head))}},cn=class t extends Kt{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),o=e.resolve(i);return r?Kt.near(o):new t(o)}content(){return new Je(De.from(this.node),0,0)}eq(e){return e instanceof t&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Sz(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))}static create(e,n){return new t(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};cn.prototype.visible=!1;Kt.jsonID("node",cn);var Sz=class t{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new JM(r,r):new t(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&cn.isSelectable(r)?new cn(n):Kt.near(n)}},Xl=class t extends Kt{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=Je.empty){if(n==Je.empty){e.delete(0,e.doc.content.size);let r=Kt.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new t(e)}map(e){return new t(e)}eq(e){return e instanceof t}getBookmark(){return pZe}};Kt.jsonID("all",Xl);var pZe={map(){return this},resolve(t){return new Xl(t)}};function $y(t,e,n,r,i,o=!1){if(e.inlineContent)return Qt.create(t,n);for(let a=r-(i>0?0:1);i>0?a<e.childCount:a>=0;a+=i){let s=e.child(a);if(s.isAtom){if(!o&&cn.isSelectable(s))return cn.create(t,n-(i<0?s.nodeSize:0))}else{let l=$y(t,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function yge(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof Qo||i instanceof Jo))return;let o=t.mapping.maps[r],a;o.forEach((s,l,c,u)=>{a==null&&(a=u)}),t.setSelection(Kt.near(t.doc.resolve(a),n))}var xge=1,QM=2,wge=4,Lz=class extends Ry{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|xge)&~QM,this.storedMarks=null,this}get selectionSet(){return(this.updated&xge)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=QM,this}ensureMarks(e){return Gn.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&QM)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~QM,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Gn.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,o)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(Kt.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=wge,this}get scrolledIntoView(){return(this.updated&wge)>0}};function vge(t,e){return!e||!t?t:t.bind(e)}var Rg=class{constructor(e,n,r){this.name=e,this.init=vge(n.init,r),this.apply=vge(n.apply,r)}},mZe=[new Rg("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Rg("selection",{init(t,e){return t.selection||Kt.atStart(e.doc)},apply(t){return t.selection}}),new Rg("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Rg("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})],Kx=class{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=mZe.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Rg(r.key,r.spec.state,r))})}},Iy=class t{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),i=null;for(;;){let o=!1;for(let a=0;a<this.config.plugins.length;a++){let s=this.config.plugins[a];if(s.spec.appendTransaction){let l=i?i[a].n:0,c=i?i[a].state:this,u=l<n.length&&s.spec.appendTransaction.call(s,l?n.slice(l):n,c,r);if(u&&r.filterTransaction(u,a)){if(u.setMeta("appendedTransaction",e),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<a?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),o=!0}i&&(i[a]={state:r,n:n.length})}}if(!o)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new t(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];n[o.name]=o.apply(e,this[o.name],this,n)}return n}get tr(){return new Lz(this)}static create(e){let n=new Kx(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new t(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new Kx(this.schema,e.plugins),r=n.fields,i=new t(n);for(let o=0;o<r.length;o++){let a=r[o].name;i[a]=this.hasOwnProperty(a)?this[a]:r[o].init(e,i)}return i}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Kx(e.schema,e.plugins),o=new t(i);return i.fields.forEach(a=>{if(a.name=="doc")o.doc=rl.fromJSON(e.schema,n.doc);else if(a.name=="selection")o.selection=Kt.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=c.fromJSON.call(l,e,n[s],o);return}}o[a.name]=a.init(e,o)}}),o}};function kge(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=kge(i,e,{})),n[r]=i}return n}var Mr=class{constructor(e){this.spec=e,this.props={},e.props&&kge(e.props,this,this.props),this.key=e.key?e.key.key:Cge("plugin")}getState(e){return e[this.key]}},_z=Object.create(null);function Cge(t){return t in _z?t+"$"+ ++_z[t]:(_z[t]=0,t+"$")}var qr=class{constructor(e="key"){this.key=Cge(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}};var eE=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Sge(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}var Ez=(t,e,n)=>{let r=Sge(t,n);if(!r)return!1;let i=Rz(r);if(!i){let a=r.blockRange(),s=a&&Ay(a);return s==null?!1:(e&&e(t.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(Ege(t,i,e,-1))return!0;if(r.parent.content.size==0&&(Ny(o,"end")||cn.isSelectable(o)))for(let a=r.depth;;a--){let s=Wx(t.doc,r.before(a),r.after(a),Je.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(Ny(o,"end")?Kt.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):cn.create(l.doc,i.pos-o.nodeSize)),e(l.scrollIntoView())}return!0}if(a==1||r.node(a-1).childCount>1)break}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},Lge=(t,e,n)=>{let r=Sge(t,n);if(!r)return!1;let i=Rz(r);return i?fZe(t,i,e):!1};function fZe(t,e,n){let r=e.nodeBefore,i=r,o=e.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let a=e.nodeAfter,s=a,l=e.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let u=s.firstChild;if(!u)return!1;s=u}let c=Wx(t.doc,o,l,Je.empty);if(!c||c.from!=o||c instanceof Qo&&c.slice.size>=l-o)return!1;if(n){let u=t.tr.step(c);u.setSelection(Qt.create(u.doc,o)),n(u.scrollIntoView())}return!0}function Ny(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var Tz=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;o=Rz(r)}let a=o&&o.nodeBefore;return!a||!cn.isSelectable(a)?!1:(e&&e(t.tr.setSelection(cn.create(t.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function Rz(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function hZe(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}var gZe=(t,e,n)=>{let r=hZe(t,n);if(!r)return!1;let i=Mge(r);if(!i)return!1;let o=i.nodeAfter;if(Ege(t,i,e,1))return!0;if(r.parent.content.size==0&&(Ny(o,"start")||cn.isSelectable(o))){let a=Wx(t.doc,r.before(),r.after(),Je.empty);if(a&&a.slice.size<a.to-a.from){if(e){let s=t.tr.step(a);s.setSelection(Ny(o,"start")?Kt.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):cn.create(s.doc,s.mapping.map(i.pos))),e(s.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},bZe=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;o=Mge(r)}let a=o&&o.nodeAfter;return!a||!cn.isSelectable(a)?!1:(e&&e(t.tr.setSelection(cn.create(t.doc,o.pos)).scrollIntoView()),!0)};function Mge(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}var yZe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` -`).scrollIntoView()),!0)};function Az(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var xZe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=Az(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(e){let s=n.after(),l=t.tr.replaceWith(s,s,a.createAndFill());l.setSelection(Kt.near(l.doc.resolve(s),1)),e(l.scrollIntoView())}return!0},wZe=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof Xl||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=Az(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let a=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=t.tr.insert(a,o.createAndFill());s.setSelection(Qt.create(s.doc,a+1)),e(s.scrollIntoView())}return!0},vZe=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Eg(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Ay(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function kZe(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof cn&&e.selection.node.isBlock)return!r.parentOffset||!Eg(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],a,s,l=!1,c=!1;for(let m=r.depth;;m--)if(r.node(m).isBlock){l=r.end(m)==r.pos+(r.depth-m),c=r.start(m)==r.pos-(r.depth-m),s=Az(r.node(m-1).contentMatchAt(r.indexAfter(m-1)));let h=t&&t(i.parent,l,r);o.unshift(h||(l&&s?{type:s}:null)),a=m;break}else{if(m==1)return!1;o.unshift(null)}let u=e.tr;(e.selection instanceof Qt||e.selection instanceof Xl)&&u.deleteSelection();let d=u.mapping.map(r.pos),p=Eg(u.doc,d,o.length,o);if(p||(o[0]=s?{type:s}:null,p=Eg(u.doc,d,o.length,o)),!p)return!1;if(u.split(d,o.length,o),!l&&c&&r.node(a).type!=s){let m=u.mapping.map(r.before(a)),f=u.doc.resolve(m);s&&r.node(a-1).canReplaceWith(f.index(),f.index()+1,s)&&u.setNodeMarkup(u.mapping.map(r.before(a)),s)}return n&&n(u.scrollIntoView()),!0}}var CZe=kZe();var _Ze=(t,e)=>(e&&e(t.tr.setSelection(new Xl(t.doc))),!0);function SZe(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||Tg(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function Ege(t,e,n,r){let i=e.nodeBefore,o=e.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&SZe(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let m=e.pos+o.nodeSize,f=De.empty;for(let g=a.length-1;g>=0;g--)f=De.from(a[g].create(null,f));f=De.from(i.copy(f));let h=t.tr.step(new Jo(e.pos-1,m,e.pos,m,new Je(f,1,0),a.length,!0)),x=h.doc.resolve(m+2*a.length);x.nodeAfter&&x.nodeAfter.type==i.type&&Tg(h.doc,x.pos)&&h.join(x.pos),n(h.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:Kt.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),p=d&&Ay(d);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(d,p).scrollIntoView()),!0;if(c&&Ny(o,"start",!0)&&Ny(i,"end")){let m=i,f=[];for(;f.push(m),!m.isTextblock;)m=m.lastChild;let h=o,x=1;for(;!h.isTextblock;h=h.firstChild)x++;if(m.canReplace(m.childCount,m.childCount,h.content)){if(n){let g=De.empty;for(let b=f.length-1;b>=0;b--)g=De.from(f[b].copy(g));let y=t.tr.step(new Jo(e.pos-f.length,e.pos+o.nodeSize,e.pos+x,e.pos+o.nodeSize-x,new Je(g,f.length,0),0,!0));n(y.scrollIntoView())}return!0}}return!1}function Tge(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(e.tr.setSelection(Qt.create(e.doc,t<0?i.start(o):i.end(o)))),!0):!1}}var LZe=Tge(-1),MZe=Tge(1);function tE(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&Mg(a,t,e);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function Py(t,e=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:a},$to:{pos:s}}=n.selection.ranges[o];n.doc.nodesBetween(a,s,(l,c)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,t)}})}if(!i)return!1;if(r){let o=n.tr;for(let a=0;a<n.selection.ranges.length;a++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[a];o.setBlockType(s,l,t,e)}r(o.scrollIntoView())}return!0}}function EZe(t,e,n,r){for(let i=0;i<e.length;i++){let{$from:o,$to:a}=e[i],s=o.depth==0?t.inlineContent&&t.type.allowsMarkType(n):!1;if(t.nodesBetween(o.pos,a.pos,(l,c)=>{if(s||!r&&l.isAtom&&l.isInline&&c>=o.pos&&c+l.nodeSize<=a.pos)return!1;s=l.inlineContent&&l.type.allowsMarkType(n)}),s)return!0}return!1}function TZe(t){let e=[];for(let n=0;n<t.length;n++){let{$from:r,$to:i}=t[n];r.doc.nodesBetween(r.pos,i.pos,(o,a)=>{if(o.isAtom&&o.content.size&&o.isInline&&a>=r.pos&&a+o.nodeSize<=i.pos)return a+1>r.pos&&e.push(new Y1(r,r.doc.resolve(a+1))),r=r.doc.resolve(a+1+o.content.size),!1}),r.pos<i.pos&&e.push(new Y1(r,i))}return e}function jy(t,e=null,n){let r=(n&&n.removeWhenPresent)!==!1,i=(n&&n.enterInlineAtoms)!==!1,o=!(n&&n.includeWhitespace);return function(a,s){let{empty:l,$cursor:c,ranges:u}=a.selection;if(l&&!c||!EZe(a.doc,u,t,i))return!1;if(s)if(c)t.isInSet(a.storedMarks||c.marks())?s(a.tr.removeStoredMark(t)):s(a.tr.addStoredMark(t.create(e)));else{let d,p=a.tr;i||(u=TZe(u)),r?d=!u.some(m=>a.doc.rangeHasMark(m.$from.pos,m.$to.pos,t)):d=!u.every(m=>{let f=!1;return p.doc.nodesBetween(m.$from.pos,m.$to.pos,(h,x,g)=>{if(f)return!1;f=!t.isInSet(h.marks)&&!!g&&g.type.allowsMarkType(t)&&!(h.isText&&/^\s*$/.test(h.textBetween(Math.max(0,m.$from.pos-x),Math.min(h.nodeSize,m.$to.pos-x))))}),!f});for(let m=0;m<u.length;m++){let{$from:f,$to:h}=u[m];if(!d)p.removeMark(f.pos,h.pos,t);else{let x=f.pos,g=h.pos,y=f.nodeAfter,b=h.nodeBefore,w=o&&y&&y.isText?/^\s*/.exec(y.text)[0].length:0,v=o&&b&&b.isText?/\s*$/.exec(b.text)[0].length:0;x+w<g&&(x+=w,g-=v),p.addMark(x,g,t.create(e))}}s(p.scrollIntoView())}return!0}}function Cm(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}var Mz=Cm(eE,Ez,Tz),_ge=Cm(eE,gZe,bZe),km={Enter:Cm(yZe,wZe,vZe,CZe),"Mod-Enter":xZe,Backspace:Mz,"Mod-Backspace":Mz,"Shift-Backspace":Mz,Delete:_ge,"Mod-Delete":_ge,"Mod-a":_Ze},Rge={"Ctrl-h":km.Backspace,"Alt-Backspace":km["Mod-Backspace"],"Ctrl-d":km.Delete,"Ctrl-Alt-Backspace":km["Mod-Delete"],"Alt-Delete":km["Mod-Delete"],"Alt-d":km["Mod-Delete"],"Ctrl-a":LZe,"Ctrl-e":MZe};for(let t in km)Rge[t]=km[t];var RZe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":!1,nE=RZe?Rge:km;var Io=class{constructor(e,n,r={}){this.match=e,this.match=e,this.handler=typeof n=="string"?AZe(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1,this.inCodeMark=r.inCodeMark!==!1}};function AZe(t){return function(e,n,r,i){let o=t;if(n[1]){let a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;let s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return e.tr.insertText(o,r,i)}}var Age=(t,e)=>{let n=t.plugins;for(let r=0;r<n.length;r++){let i=n[r],o;if(i.spec.isInputRules&&(o=i.getState(t))){if(e){let a=t.tr,s=o.transform;for(let l=s.steps.length-1;l>=0;l--)a.step(s.steps[l].invert(s.docs[l]));if(o.text){let l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else a.delete(o.from,o.to);e(a)}return!0}}return!1},sVt=new Io(/--$/,"\u2014",{inCodeMark:!1}),lVt=new Io(/\.\.\.$/,"\u2026",{inCodeMark:!1}),cVt=new Io(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"\u201C",{inCodeMark:!1}),uVt=new Io(/"$/,"\u201D",{inCodeMark:!1}),dVt=new Io(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"\u2018",{inCodeMark:!1}),pVt=new Io(/'$/,"\u2019",{inCodeMark:!1});function rE(t,e,n=null,r){return new Io(t,(i,o,a,s)=>{let l=n instanceof Function?n(o):n,c=i.tr.delete(a,s),u=c.doc.resolve(a),d=u.blockRange(),p=d&&Mg(d,e,l);if(!p)return null;c.wrap(d,p);let m=c.doc.resolve(a-1).nodeBefore;return m&&m.type==e&&Tg(c.doc,a-1)&&(!r||r(o,m))&&c.join(a-1),c})}function $z(t,e,n=null){return new Io(t,(r,i,o,a)=>{let s=r.doc.resolve(o),l=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),e)?r.tr.delete(o,a).setBlockType(o,o,e,l):null})}var Q1=typeof navigator<"u"?navigator:null,$ge=typeof document<"u"?document:null,J1=Q1&&Q1.userAgent||"",Nz=/Edge\/(\d+)/.exec(J1),Nge=/MSIE \d/.exec(J1),Pz=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(J1),Oz=!!(Nge||Pz||Nz),yVt=Nge?document.documentMode:Pz?+Pz[1]:Nz?+Nz[1]:0,$Ze=!Oz&&/gecko\/(\d+)/i.test(J1),xVt=$Ze&&+(/Firefox\/(\d+)/.exec(J1)||[0,0])[1],jz=!Oz&&/Chrome\/(\d+)/.exec(J1),IZe=!!jz,wVt=jz?+jz[1]:0,NZe=!Oz&&!!Q1&&/Apple Computer/.test(Q1.vendor),PZe=NZe&&(/Mobile\/\w+/.test(J1)||!!Q1&&Q1.maxTouchPoints>2),vVt=PZe||(Q1?/Mac/.test(Q1.platform):!1),jZe=/Android \d/.test(J1),OZe=!!$ge&&"webkitFontSmoothing"in $ge.documentElement.style,kVt=OZe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Iz(t,e,n,r,i,o){if(t.composing)return!1;let a=t.state,s=a.doc.resolve(e);if(s.parent.type.spec.code)return!1;let l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,void 0,"\uFFFC")+r;for(let c of i){let u=c,d=u.match.exec(l),p=d&&d[0]&&u.handler(a,d,e-(d[0].length-r.length),n);if(p)return u.undoable!==!1&&p.setMeta(o,{transform:p,from:e,to:n,text:r}),t.dispatch(p),!0}return!1}var DZe=new qr("MILKDOWN_CUSTOM_INPUTRULES");function Pge({rules:t}){let e=new Mr({key:DZe,isInputRules:!0,state:{init(){return null},apply(n,r){let i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,o){return Iz(n,r,i,o,t,e)},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&Iz(n,r.pos,r.pos,"",t,e)}),!1),keydown:(n,r)=>!(jZe&&IZe&&r.key==="Enter")||n.composing?!1:n.someProp("handleKeyDown",i=>i(n,r))?(r.preventDefault(),!0):!1},handleKeyDown(n,r){if(r.key!=="Enter")return!1;let{$cursor:i}=n.state.selection;return i?Iz(n,i.pos,i.pos,` -`,t,e):!1}}});return e}function jge(t){return t.some(e=>e.type.spec.code)}function Ige(t,e,n){if(e>=n)return!1;let r=!1;return t.doc.nodesBetween(e,n,i=>(i.isInline&&jge(i.marks)&&(r=!0),!r)),r}function FZe(t,e){var n;return jge((n=t.storedMarks)!=null?n:t.doc.resolve(e).marks())}function Ag(t,e,n={}){return new Io(t,(r,i,o,a)=>{var s,l,c,u;let{tr:d}=r,p=i.length,m=i[p-1],f=i[0],h=[],x,g={group:m,fullMatch:f,start:o,end:a},y=(s=n.updateCaptured)==null?void 0:s.call(n,g);if(Object.assign(g,y),{group:m,fullMatch:f,start:o,end:a}=g,f===null||m?.trim()==="")return null;if(m){let b=f.search(/\S/),w=o+f.indexOf(m),v=w+m.length,k=Ige(r,o+b,w),_=v<a&&Ige(r,v,a);if(k||_||FZe(r,a))return null;h=(l=d.storedMarks)!=null?l:[],v<a&&d.delete(v,a),w>o&&d.delete(o+b,w),x=o+b+m.length;let L=(c=n.getAttr)==null?void 0:c.call(n,i);d.addMark(o,x,e.create(L)),d.setStoredMarks(h),(u=n.beforeDispatch)==null||u.call(n,{match:i,start:o,end:a,tr:d})}return d})}function Dz(t){return Object.assign(Object.create(t),t).setTime(Date.now())}function BZe(t,e){return Array.isArray(t)&&t.includes(e.type)||e.type===t}function Oge(t){if(t.content.childCount===1){let e=t.content.firstChild;if(e?.type.name==="text"&&e.marks.length===0)return e;if(e?.type.name==="paragraph"&&e.childCount===1){let n=e.firstChild;if(n?.type.name==="text"&&n.marks.length===0)return n}}return!1}function zZe(t){return e=>{for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r)){let i=e.before(n),o=e.after(n);return{from:i,to:o,node:r}}}}}function Dge(t,e){return zZe(n=>n.type===e)(t)}function Fge(t,e){let n=e.nodes[t];if(!n)throw ahe("node",t);return n}function Bge(t){return e=>{for(let n=e.depth;n>0;n--){let r=e.node(n);if(t(r))return{pos:e.before(n),start:e.start(n),depth:n,node:r}}}}function zge(t,e){if(!(t instanceof cn))return;let{node:n,$from:r}=t;if(BZe(e,n))return{node:n,pos:r.pos,start:r.start(r.depth),depth:r.depth}}var qge=(t,e)=>{let{selection:n,doc:r}=t;if(n instanceof cn)return{hasNode:n.node.type===e,pos:n.from,target:n.node};let{from:i,to:o}=n,a=!1,s=-1,l=null;return r.nodesBetween(i,o,(c,u)=>l?!1:c.type===e?(a=!0,s=u,l=c,!1):!0),{hasNode:a,pos:s,target:l}};var _m={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},oE={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},qZe=typeof navigator<"u"&&/Mac/.test(navigator.platform),HZe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(so=0;so<10;so++)_m[48+so]=_m[96+so]=String(so);var so;for(so=1;so<=24;so++)_m[so+111]="F"+so;var so;for(so=65;so<=90;so++)_m[so]=String.fromCharCode(so+32),oE[so]=String.fromCharCode(so);var so;for(iE in _m)oE.hasOwnProperty(iE)||(oE[iE]=_m[iE]);var iE;function Hge(t){var e=qZe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||HZe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?oE:_m)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}var GZe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),UZe=typeof navigator<"u"&&/Win/.test(navigator.platform);function VZe(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s<e.length-1;s++){let l=e[s];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))GZe?a=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),a&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function ZZe(t){let e=Object.create(null);for(let n in t)e[VZe(n)]=t[n];return e}function Fz(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function aE(t){return new Mr({props:{handleKeyDown:Bz(t)}})}function Bz(t){let e=ZZe(t);return function(n,r){let i=Hge(r),o,a=e[Fz(i,r)];if(a&&a(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let s=e[Fz(i,r,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(UZe&&r.ctrlKey&&r.altKey)&&(o=_m[r.keyCode])&&o!=i){let s=e[Fz(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var Uge=class{},Vge=class{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=t=>{this.top()?.push(t)},this.open=t=>{this.elements.push(t)},this.close=()=>{let t=this.elements.pop();if(!t)throw vB();return t}}},WZe=class Zge extends Uge{constructor(e,n,r){super(),this.type=e,this.content=n,this.attrs=r}push(e,...n){this.content.push(e,...n)}pop(){return this.content.pop()}static create(e,n,r){return new Zge(e,n,r)}},Wge=class extends Vge{#e;static{this.create=(t,e)=>{let n=new this(t);return r=>(n.run(e,r),n.toDoc())}}constructor(t){super(),this.#e=Gn.none,this.#t=e=>e.isText,this.#n=(e,n)=>{if(this.#t(e)&&this.#t(n)&&Gn.sameSet(e.marks,n.marks))return this.schema.text(e.text+n.text,e.marks)},this.#r=e=>{let n=Object.values({...this.schema.nodes,...this.schema.marks}).find(r=>r.spec.parseMarkdown.match(e));if(!n)throw ihe(e);return n},this.#i=e=>{let n=this.#r(e);n.spec.parseMarkdown.runner(this,e,n)},this.injectRoot=(e,n,r)=>(this.openNode(n,r),this.next(e.children),this),this.openNode=(e,n)=>(this.open(WZe.create(e,[],n)),this),this.#o=()=>{this.#e=Gn.none;let e=this.close();return this.#s(e.type,e.attrs,e.content)},this.closeNode=()=>{try{this.#o()}catch(e){console.error(e)}return this},this.#s=(e,n,r)=>{let i=e.createAndFill(n,r,this.#e);if(!i)throw rhe(e,n,r);return this.push(i),i},this.addNode=(e,n,r)=>{try{this.#s(e,n,r)}catch(i){console.error(i)}return this},this.openMark=(e,n)=>{let r=e.create(n);return this.#e=r.addToSet(this.#e),this},this.closeMark=e=>(this.#e=e.removeFromSet(this.#e),this),this.addText=e=>{try{let n=this.top();if(!n)throw vB();let r=n.pop(),i=this.schema.text(e,this.#e);if(!r)return n.push(i),this;let o=this.#n(r,i);return o?(n.push(o),this):(n.push(r,i),this)}catch(n){return console.error(n),this}},this.build=()=>{let e;do e=this.#o();while(this.size());return e},this.next=(e=[])=>([e].flat().forEach(n=>this.#i(n)),this),this.toDoc=()=>this.build(),this.run=(e,n)=>{let r=e.runSync(e.parse(n),n);return this.next(r),this},this.schema=t}#t;#n;#r;#i;#o;#s},Gge=class Kge extends Uge{constructor(e,n,r,i={}){super(),this.type=e,this.children=n,this.value=r,this.props=i,this.push=(o,...a)=>{this.children||(this.children=[]),this.children.push(o,...a)},this.pop=()=>this.children?.pop()}static{this.create=(e,n,r,i={})=>new Kge(e,n,r,i)}},KZe=t=>Object.prototype.hasOwnProperty.call(t,"size"),Xge=class extends Vge{#e;static{this.create=(t,e)=>{let n=new this(t);return r=>(n.run(r),n.toString(e))}}constructor(t){super(),this.#e=[],this.#t=e=>{let n=Object.values({...this.schema.nodes,...this.schema.marks}).find(r=>r.spec.toMarkdown.match(e));if(!n)throw ohe(e.type);return n},this.#n=e=>this.#t(e).spec.toMarkdown.runner(this,e),this.#r=(e,n)=>this.#t(e).spec.toMarkdown.runner(this,e,n),this.#i=e=>{let n=o=>o.type.spec.priority??50,r=[...e].sort((o,a)=>n(o)-n(a)),i=[];return this.#e.forEach(({mark:o})=>{let a=r.findIndex(s=>s.eq(o));a>=0&&i.push(...r.splice(a,1))}),i.concat(r)},this.#o=e=>{let n=e?.marks,r=0;for(;r<this.#e.length;){let{mark:i,spanning:o}=this.#e[r];if(o&&n?.some(a=>a.eq(i)))r++;else break}for(let i=this.#e.length-1;i>=r;i--)this.#m(this.#e[i].mark)},this.#s=(e,n)=>{this.#i(e.marks).every(r=>!this.#r(r,e))&&this.#n(e),this.#o(n)},this.#c=e=>{let{children:n}=e;return n&&(e.children=n.reduce((r,i,o)=>{if(o===0)return[i];let a=r.at(-1);if(a&&a.isMark&&i.isMark){let{children:s,...l}=i,{children:c,...u}=a;if(i.type===a.type&&s&&c&&JSON.stringify(l)===JSON.stringify(u)){let d={...u,children:[...c,...s]};return r.slice(0,-1).concat(this.#c(d))}}return r.concat(i)},[])),e},this.#a=e=>{let n={...e.props,type:e.type};return e.children&&(n.children=e.children),e.value&&(n.value=e.value),n},this.openNode=(e,n,r)=>(this.open(Gge.create(e,void 0,n,r)),this),this.#g=(e,n)=>{let r="",i="",o=e.children;if(o){let s=o[0],l=o.at(-1);if(l&&l.type==="text"&&l.value.endsWith(" ")){let c=l.value,u=c.trimEnd();i=c.slice(u.length),l.value=u}if(s&&s.type==="text"&&s.value.startsWith(" ")){let c=s.value,u=c.trimStart();r=c.slice(0,c.length-u.length),s.value=u}}r.length&&this.#d("text",void 0,r);let a=n();return i.length&&this.#d("text",void 0,i),a},this.#f=(e=!1)=>{let n=this.close(),r=()=>this.#d(n.type,n.children,n.value,n.props);return e?this.#g(n,r):r()},this.closeNode=()=>(this.#f(),this),this.#d=(e,n,r,i)=>{let o=Gge.create(e,n,r,i),a=this.#c(this.#a(o));return this.push(a),a},this.addNode=(e,n,r,i)=>(this.#d(e,n,r,i),this),this.#p=(e,n,r,i)=>this.#e.some(o=>o.mark.eq(e))?this:(this.#e.push({mark:e,spanning:r==null}),this.openNode(n,r,{...i,isMark:!0})),this.#m=e=>{let n=-1;for(let r=this.#e.length-1;r>=0;r--)if(this.#e[r].mark.eq(e)){n=r;break}n<0||(this.#e.splice(n,1),this.#f(!0))},this.withMark=(e,n,r,i)=>(this.#p(e,n,r,i),this),this.closeMark=e=>(this.#m(e),this),this.build=()=>{let e=null;do e=this.#f();while(this.size());return e.children||(e.children=[]),e},this.next=e=>KZe(e)?(e.forEach((n,r,i)=>{this.#s(n,e.maybeChild(i+1)??void 0)}),this):(this.#s(e),this),this.toString=e=>e.stringify(this.build()),this.run=e=>(this.#e=[],this.next(e),this),this.schema=t}#t;#n;#r;#i;#o;#s;#c;#a;#g;#f;#d;#p;#m};var ea=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},zy=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e},Vz=null,Lm=function(t,e,n){let r=Vz||(Vz=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},XZe=function(){Vz=null},Dg=function(t,e,n,r){return n&&(Yge(t,e,n,r,-1)||Yge(t,e,n,r,1))},YZe=/^(img|br|input|textarea|hr)$/i;function Yge(t,e,n,r,i){for(var o;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Xc(t))){let a=t.parentNode;if(!a||a.nodeType!=1||r8(t)||YZe.test(t.nodeName)||t.contentEditable=="false")return!1;e=ea(t)+(i<0?0:1),t=a}else if(t.nodeType==1){let a=t.childNodes[e+(i<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((o=a.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)e+=i;else return!1;else t=a,e=i<0?Xc(t):0}else return!1}}function Xc(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function QZe(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Xc(t)}else if(t.parentNode&&!r8(t))e=ea(t),t=t.parentNode;else return null}}function JZe(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!r8(t))e=ea(t)+1,t=t.parentNode;else return null}}function eWe(t,e,n){for(let r=e==0,i=e==Xc(t);r||i;){if(t==n)return!0;let o=ea(t);if(t=t.parentNode,!t)return!1;r=r&&o==0,i=i&&o==Xc(t)}}function r8(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}var bE=function(t){return t.focusNode&&Dg(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function $g(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function tWe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function nWe(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(Xc(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(Xc(r.startContainer),r.startOffset)}}}var zd=typeof navigator<"u"?navigator:null,Qge=typeof document<"u"?document:null,oh=zd&&zd.userAgent||"",Zz=/Edge\/(\d+)/.exec(oh),R5e=/MSIE \d/.exec(oh),Wz=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(oh),il=!!(R5e||Wz||Zz),rh=R5e?document.documentMode:Wz?+Wz[1]:Zz?+Zz[1]:0,Yc=!il&&/gecko\/(\d+)/i.test(oh);Yc&&+(/Firefox\/(\d+)/.exec(oh)||[0,0])[1];var Kz=!il&&/Chrome\/(\d+)/.exec(oh),ta=!!Kz,A5e=Kz?+Kz[1]:0,Ba=!il&&!!zd&&/Apple Computer/.test(zd.vendor),qy=Ba&&(/Mobile\/\w+/.test(oh)||!!zd&&zd.maxTouchPoints>2),Kc=qy||(zd?/Mac/.test(zd.platform):!1),$5e=zd?/Win/.test(zd.platform):!1,Mm=/Android \d/.test(oh),i8=!!Qge&&"webkitFontSmoothing"in Qge.documentElement.style,rWe=i8?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function iWe(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Sm(t,e){return typeof t=="number"?t:t[e]}function oWe(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function Jge(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let a=n||t.dom;a;){if(a.nodeType!=1){a=zy(a);continue}let s=a,l=s==o.body,c=l?iWe(o):oWe(s),u=0,d=0;if(e.top<c.top+Sm(r,"top")?d=-(c.top-e.top+Sm(i,"top")):e.bottom>c.bottom-Sm(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Sm(i,"top")-c.top:e.bottom-c.bottom+Sm(i,"bottom")),e.left<c.left+Sm(r,"left")?u=-(c.left-e.left+Sm(i,"left")):e.right>c.right-Sm(r,"right")&&(u=e.right-c.right+Sm(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let m=s.scrollLeft,f=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);let h=s.scrollLeft-m,x=s.scrollTop-f;e={left:e.left-h,top:e.top-x,right:e.right-h,bottom:e.bottom-x}}let p=l?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(p))break;a=p=="absolute"?a.offsetParent:zy(a)}}function aWe(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,a=n+1;a<Math.min(innerHeight,e.bottom);a+=5){let s=t.root.elementFromPoint(o,a);if(!s||s==t.dom||!t.dom.contains(s))continue;let l=s.getBoundingClientRect();if(l.top>=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:I5e(t.dom)}}function I5e(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=zy(r));return e}function sWe({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;N5e(n,r==0?0:r-e)}function N5e(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:o}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=o&&(r.scrollLeft=o)}}var Oy=null;function lWe(t){if(t.setActive)return t.setActive();if(Oy)return t.focus(Oy);let e=I5e(t);t.focus(Oy==null?{get preventScroll(){return Oy={preventScroll:!0},!0}}:void 0),Oy||(Oy=!1,N5e(e,0))}function P5e(t,e){let n,r=2e8,i,o=0,a=e.top,s=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let p;if(u.nodeType==1)p=u.getClientRects();else if(u.nodeType==3)p=Lm(u).getClientRects();else continue;for(let m=0;m<p.length;m++){let f=p[m];if(f.top<=a&&f.bottom>=s){a=Math.max(f.bottom,a),s=Math.min(f.top,s);let h=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(h<r){n=u,r=h,i=h&&n.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,u.nodeType==1&&h&&(o=d+(e.left>=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!l&&f.left<=e.left&&f.right>=e.left&&(l=u,c={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!n&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?cWe(n,i):!n||r&&n.nodeType==1?{node:t,offset:o}:P5e(n,i)}function cWe(t,e){let n=t.nodeValue.length,r=document.createRange(),i;for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let a=eh(r,1);if(a.top!=a.bottom&&uq(e,a)){i={node:t,offset:o+(e.left>=(a.left+a.right)/2?1:0)};break}}return r.detach(),i||{node:t,offset:0}}function uq(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function uWe(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function dWe(t,e,n){let{node:r,offset:i}=P5e(e,n),o=-1;if(r.nodeType==1&&!r.firstChild){let a=r.getBoundingClientRect();o=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(r,i,o)}function pWe(t,e,n,r){let i=-1;for(let o=e,a=!1;o!=t.dom;){let s=t.docView.nearestDesc(o,!0),l;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((l=s.dom.getBoundingClientRect()).width||l.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right<r.left||l.bottom<r.top)&&(i=s.posAfter),a=!0),!s.contentDOM&&i<0&&!s.node.isText))return(s.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?s.posBefore:s.posAfter;o=s.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function j5e(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let a=t.childNodes[o];if(a.nodeType==1){let s=a.getClientRects();for(let l=0;l<s.length;l++){let c=s[l];if(uq(e,c))return j5e(a,e,c)}}if((o=(o+1)%r)==i)break}return t}function mWe(t,e){let n=t.dom.ownerDocument,r,i=0,o=nWe(n,e.left,e.top);o&&({node:r,offset:i}=o);let a=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),s;if(!a||!t.dom.contains(a.nodeType!=1?a.parentNode:a)){let c=t.dom.getBoundingClientRect();if(!uq(e,c)||(a=j5e(t.dom,e,c),!a))return null}if(Ba)for(let c=a;r&&c;c=zy(c))c.draggable&&(r=void 0);if(a=uWe(a,e),r){if(Yc&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let u=r.childNodes[i],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&i++}let c;i8&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=pWe(t,r,i,e))}s==null&&(s=dWe(t,a,e));let l=t.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function e5e(t){return t.top<t.bottom||t.left<t.right}function eh(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(e5e(r))return r}return Array.prototype.find.call(n,e5e)||t.getBoundingClientRect()}var fWe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function O5e(t,e,n){let{node:r,offset:i,atom:o}=t.docView.domFromPos(e,n<0?-1:1),a=i8||Yc;if(r.nodeType==3)if(a&&(fWe.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=eh(Lm(r,i,i),n);if(Yc&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let c=eh(Lm(r,i-1,i-1),-1);if(c.top==l.top){let u=eh(Lm(r,i,i+1),-1);if(u.top!=l.top)return Xx(u,u.left<c.left)}}return l}else{let l=i,c=i,u=n<0?1:-1;return n<0&&!i?(c++,u=-1):n>=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,Xx(eh(Lm(r,l,c),u),u<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==Xc(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return zz(l.getBoundingClientRect(),!1)}if(o==null&&i<Xc(r)){let l=r.childNodes[i];if(l.nodeType==1)return zz(l.getBoundingClientRect(),!0)}return zz(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==Xc(r))){let l=r.childNodes[i-1],c=l.nodeType==3?Lm(l,Xc(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Xx(eh(c,1),!1)}if(o==null&&i<Xc(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Lm(l,0,a?0:1):l.nodeType==1?l:null:null;if(c)return Xx(eh(c,-1),!0)}return Xx(eh(r.nodeType==3?Lm(r):r,-n),n>=0)}function Xx(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function zz(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function D5e(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function hWe(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return D5e(t,e,()=>{let{node:o}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=O5e(t,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Lm(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}var gWe=/[\u0590-\u08ac]/;function bWe(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=t.domSelection();return s?!gWe.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:D5e(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),p=s.caretBidiLevel;s.modify("move",n,"character");let m=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:f,focusOffset:h}=t.domSelectionRange(),x=f&&!m.contains(f.nodeType==1?f:f.parentNode)||l==f&&c==h;try{s.collapse(u,d),l&&(l!=u||c!=d)&&s.extend&&s.extend(l,c)}catch{}return p!=null&&(s.caretBidiLevel=p),x}):r.pos==r.start()||r.pos==r.end()}var t5e=null,n5e=null,r5e=!1;function yWe(t,e,n){return t5e==e&&n5e==n?r5e:(t5e=e,n5e=n,r5e=n=="up"||n=="down"?hWe(t,e,n):bWe(t,e,n))}var Qc=0,i5e=1,Ig=2,qd=3,Fg=class{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Qc,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let o,a;if(e==this.contentDOM)o=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((a=o.pmViewDesc)&&a.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(a)+a.size:this.posAtStart}else{let o,a;if(e==this.contentDOM)o=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((a=o.pmViewDesc)&&a.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(a):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=n>ea(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))r=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],o=r+i.size;if(r==e&&o!=r){for(;!i.border&&i.children.length;)for(let a=0;a<i.children.length;a++){let s=i.children[a];if(s.size){i=s;break}}return i}if(e<o)return i.descAt(e-r-i.border);r=o}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let a=this.children[r],s=o+a.size;if(s>e||a instanceof cE){i=e-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof sE&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?ea(o.dom)+1:0}}else{let o,a=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,a=!1);return o&&a&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?ea(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let a=r,s=0;;s++){let l=this.children[s],c=a+l.size;if(i==-1&&e<=c){let u=a+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=a;for(let d=s;d>0;d--){let p=this.children[d-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){i=ea(p.dom)+1;break}e-=p.size}i==-1&&(i=0)}if(i>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){o=ea(d.dom);break}n+=d.size}o==-1&&(o=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,i=!1){let o=Math.min(e,n),a=Math.max(e,n);for(let m=0,f=0;m<this.children.length;m++){let h=this.children[m],x=f+h.size;if(o>f&&a<x)return h.setSelection(e-f-h.border,n-f-h.border,r,i);f=x}let s=this.domFromPos(e,e?-1:1),l=n==e?s:this.domFromPos(n,n?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),d=!1;if((Yc||Ba)&&e==n){let{node:m,offset:f}=s;if(m.nodeType==3){if(d=!!(f&&m.nodeValue[f-1]==` -`),d&&f==m.nodeValue.length)for(let h=m,x;h;h=h.parentNode){if(x=h.nextSibling){x.nodeName=="BR"&&(s=l={node:x.parentNode,offset:ea(x)+1});break}let g=h.pmViewDesc;if(g&&g.node&&g.node.isBlock)break}}else{let h=m.childNodes[f-1];d=h&&(h.nodeName=="BR"||h.contentEditable=="false")}}if(Yc&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let m=u.focusNode.childNodes[u.focusOffset];m&&m.contentEditable=="false"&&(i=!0)}if(!(i||d&&Ba)&&Dg(s.node,s.offset,u.anchorNode,u.anchorOffset)&&Dg(l.node,l.offset,u.focusNode,u.focusOffset))return;let p=!1;if((c.extend||e==n)&&!(d&&Yc)){c.collapse(s.node,s.offset);try{e!=n&&c.extend(l.node,l.offset),p=!0}catch{}}if(!p){if(e>n){let f=s;s=l,l=f}let m=document.createRange();m.setEnd(l.node,l.offset),m.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(m)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],a=r+o.size;if(r==a?e<=a&&n>=r:e<a&&n>r){let s=r+o.border,l=a-o.border;if(e>=s&&n<=l){this.dirty=e==r||n==a?Ig:i5e,e==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=qd:o.markDirty(e-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?Ig:qd}r=a}this.dirty=Ig}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Ig:i5e;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},sE=class extends Fg{constructor(e,n,r,i){let o,a=n.type.toDOM;if(typeof a=="function"&&(a=a(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==Qc&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},Xz=class extends Fg{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}},Hy=class t extends Fg{constructor(e,n,r,i,o){super(e,[],r,i),this.mark=n,this.spec=o}static create(e,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Bd.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new t(e,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&qd||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=qd&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Qc){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Qc}}slice(e,n,r){let i=t.create(this.parent,this.mark,!0,r),o=this.children,a=this.size;n<a&&(o=eq(o,n,a,r)),e>0&&(o=eq(o,0,e,r));for(let s=0;s<o.length;s++)o[s].parent=i;return i.children=o,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},ih=class t extends Fg{constructor(e,n,r,i,o,a,s,l,c){super(e,[],o,a),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=s}static create(e,n,r,i,o,a){let s=o.nodeViews[n.type.name],l,c=s&&s(n,o,()=>{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Bd.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let p=u;return u=z5e(u,r,n),c?l=new Yz(e,n,r,i,u,d||null,p,c,o,a+1):n.isText?new lE(e,n,r,i,u,p,o):new t(e,n,r,i,u,d||null,p,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>De.empty)}return e}matchesNode(e,n,r){return this.dirty==Qc&&e.eq(this.node)&&uE(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,o=e.composing?this.localCompositionInfo(e,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new Jz(this,a&&a.node,e);kWe(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e,u):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Gn.none:this.node.child(u).marks,r,e,u),l.placeWidget(c,e,i)},(c,u,d,p)=>{l.syncToMarks(c.marks,r,e,p);let m;l.findNodeMatch(c,u,d,p)||s&&e.state.selection.from>i&&e.state.selection.to<i+c.nodeSize&&(m=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,d,m,e)||l.updateNextNode(c,u,d,e,p,i)||l.addNode(c,u,d,e,i),i+=c.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Ig)&&(a&&this.protectLocalComposition(e,a),F5e(this.contentDOM,this.children,e),qy&&CWe(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof Qt)||r<n||i>n+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=_We(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new Xz(this,o,n,i);e.input.compositionNodes.push(a),this.children=eq(this.children,r,r+i.length,e,a)}update(e,n,r,i){return this.dirty==qd||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Qc}updateOuterDeco(e){if(uE(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=B5e(this.dom,this.nodeDOM,Qz(this.outerDeco,this.node,n),Qz(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}};function o5e(t,e,n,r,i){z5e(r,e,t);let o=new ih(void 0,t,e,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}var lE=class t extends ih{constructor(e,n,r,i,o,a,s){super(e,n,r,i,o,null,a,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==qd||this.dirty!=Qc&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Qc||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=Qc,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),o=document.createTextNode(i.text);return new t(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=qd)}get domAtom(){return!1}isText(e){return this.node.text==e}},cE=class extends Fg{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Qc&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}},Yz=class extends ih{constructor(e,n,r,i,o,a,s,l,c,u){super(e,n,r,i,o,a,s,c,u),this.spec=l}update(e,n,r,i){if(this.dirty==qd)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,n,r);return o&&this.updateInner(e,n,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function F5e(t,e,n){let r=t.firstChild,i=!1;for(let o=0;o<e.length;o++){let a=e[o],s=a.dom;if(s.parentNode==t){for(;s!=r;)r=a5e(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(s,r);if(a instanceof Hy){let l=r?r.previousSibling:t.lastChild;F5e(a.contentDOM,a.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=a5e(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}var Yx=function(t){t&&(this.nodeName=t)};Yx.prototype=Object.create(null);var Ng=[new Yx];function Qz(t,e,n){if(t.length==0)return Ng;let r=n?Ng[0]:new Yx,i=[r];for(let o=0;o<t.length;o++){let a=t[o].type.attrs;if(a){a.nodeName&&i.push(r=new Yx(a.nodeName));for(let s in a){let l=a[s];l!=null&&(n&&i.length==1&&i.push(r=new Yx(e.isInline?"span":"div")),s=="class"?r.class=(r.class?r.class+" ":"")+l:s=="style"?r.style=(r.style?r.style+";":"")+l:s!="nodeName"&&(r[s]=l))}}}return i}function B5e(t,e,n,r){if(n==Ng&&r==Ng)return e;let i=e;for(let o=0;o<r.length;o++){let a=r[o],s=n[o];if(o){let l;s&&s.nodeName==a.nodeName&&i!=t&&(l=i.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||(l=document.createElement(a.nodeName),l.pmIsDeco=!0,l.appendChild(i),s=Ng[0]),i=l}xWe(i,s||Ng[0],a)}return i}function xWe(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&t.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&t.classList.add(i[o]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function z5e(t,e,n){return B5e(t,t,Ng,Qz(e,n,t.nodeType!=1))}function uE(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function a5e(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}var Jz=class{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=wWe(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,i){let o=0,a=this.stack.length>>1,s=Math.min(a,e.length);for(;o<s&&(o==a-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<a;)this.destroyRest(),this.top.dirty=Qc,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let l=-1,c=this.top.children.length;i<this.preMatch.index&&(c=Math.min(this.index+3,c));for(let u=this.index;u<c;u++){let d=this.top.children[u];if(d.matchesMark(e[a])&&!this.isLocked(d.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Hy.create(this.top,e[a],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,a++}}findNodeMatch(e,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(e,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s<l;s++){let c=this.top.children[s];if(c.matchesNode(e,n,r)&&!this.preMatch.matched.has(c)){o=s;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,n,r,i,o){let a=this.top.children[i];return a.dirty==qd&&a.dom==a.contentDOM&&(a.dirty=Ig),a.update(e,n,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,o,a){for(let s=this.index;s<this.top.children.length;s++){let l=this.top.children[s];if(l instanceof ih){let c=this.preMatch.matched.get(l);if(c!=null&&c!=o)return!1;let u=l.dom,d,p=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=qd&&uE(n,l.outerDeco));if(!p&&l.update(e,n,r,i))return this.destroyBetween(this.index,s),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!p&&(d=this.recreateWrapper(l,e,n,r,i,a)))return this.destroyBetween(this.index,s),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Ig,d.updateChildren(i,a+1),d.dirty=Qc),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,o,a){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!uE(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let s=ih.create(this.top,n,r,i,o,a);if(s.contentDOM){s.children=e.children,e.children=[];for(let l of s.children)l.parent=s}return e.destroy(),s}addNode(e,n,r,i,o){let a=ih.create(this.top,e,n,r,i,o);a.contentDOM&&a.updateChildren(i,o+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new sE(this.top,e,n,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Hy;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof lE)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Ba||ta)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new cE(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}};function wWe(t,e){let n=e,r=n.children.length,i=t.childCount,o=new Map,a=[];e:for(;i>0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof Hy)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=t.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function vWe(t,e){return t.type.side-e.type.side}function kWe(t,e,n,r){let i=e.locals(t),o=0;if(i.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);r(u,i,e.forChild(o,u),c),o+=u.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let u,d;for(;a<i.length&&i[a].to==o;){let x=i[a++];x.widget&&(u?(d||(d=[u])).push(x):u=x)}if(u)if(d){d.sort(vWe);for(let x=0;x<d.length;x++)n(d[x],c,!!l)}else n(u,c,!!l);let p,m;if(l)m=-1,p=l,l=null;else if(c<t.childCount)m=c,p=t.child(c++);else break;for(let x=0;x<s.length;x++)s[x].to<=o&&s.splice(x--,1);for(;a<i.length&&i[a].from<=o&&i[a].to>o;)s.push(i[a++]);let f=o+p.nodeSize;if(p.isText){let x=f;a<i.length&&i[a].from<x&&(x=i[a].from);for(let g=0;g<s.length;g++)s[g].to<x&&(x=s[g].to);x<f&&(l=p.cut(x-o),p=p.cut(0,x-o),f=x,m=-1)}else for(;a<i.length&&i[a].to<f;)a++;let h=p.isInline&&!p.isLeaf?s.filter(x=>!x.inline):s.slice();r(p,h,e.forChild(o,p),m),o=f}}function CWe(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function _We(t,e,n,r){for(let i=0,o=0;i<t.childCount&&o<=r;){let a=t.child(i++),s=o;if(o+=a.nodeSize,!a.isText)continue;let l=a.text;for(;i<t.childCount;){let c=t.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=n){if(o>=r&&l.slice(r-e.length-s,r-s)==e)return r-e.length;let c=s<r?l.lastIndexOf(e,r-s-1):-1;if(c>=0&&c+e.length+s>=n)return s+c;if(n==r&&l.length>=r+e.length-s&&l.slice(r-s,r-s+e.length)==e)return r}}return-1}function eq(t,e,n,r,i){let o=[];for(let a=0,s=0;a<t.length;a++){let l=t[a],c=s,u=s+=l.size;c>=n||u<=e?o.push(l):(c<e&&o.push(l.slice(0,e-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function dq(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,c;if(bE(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&cn.isSelectable(d)&&i.parent&&!(d.isInline&&eWe(n.focusNode,n.focusOffset,i.dom))){let p=i.posBefore;c=new cn(a==p?s:r.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,p=a;for(let m=0;m<n.rangeCount;m++){let f=n.getRangeAt(m);d=Math.min(d,t.docView.posFromDOM(f.startContainer,f.startOffset,1)),p=Math.max(p,t.docView.posFromDOM(f.endContainer,f.endOffset,-1))}if(d<0)return null;[l,a]=p==t.state.selection.anchor?[p,d]:[d,p],s=r.resolve(a)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<s.pos&&!o?1:-1;c=pq(t,u,s,d)}return c}function q5e(t){return t.editable?t.hasFocus():G5e(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Em(t,e=!1){let n=t.state.selection;if(H5e(t,n),!!q5e(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&ta){let r=t.domSelectionRange(),i=t.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&Dg(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)LWe(t);else{let{anchor:r,head:i}=n,o,a;s5e&&!(n instanceof Qt)&&(n.$from.parent.inlineContent||(o=l5e(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=l5e(t,n.to))),t.docView.setSelection(r,i,t,e),s5e&&(o&&c5e(o),a&&c5e(a)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&SWe(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}var s5e=Ba||ta&&A5e<63;function l5e(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(Ba&&i&&i.contentEditable=="false")return qz(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return qz(i);if(o)return qz(o)}}function qz(t){return t.contentEditable="true",Ba&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function c5e(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function SWe(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!q5e(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function LWe(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,ea(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&il&&rh<=11&&(n.disabled=!0,n.disabled=!1)}function H5e(t,e){if(e instanceof cn){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(u5e(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else u5e(t)}function u5e(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function pq(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||Qt.between(e,n,r)}function d5e(t){return t.editable&&!t.hasFocus()?!1:G5e(t)}function G5e(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function MWe(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Dg(e.node,e.offset,n.anchorNode,n.anchorOffset)}function tq(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return o&&Kt.findFrom(o,e)}function th(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function p5e(t,e,n){let r=t.state.selection;if(r instanceof Qt)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=t.state.doc.resolve(i.pos+o.nodeSize*(e<0?-1:1));return th(t,new Qt(r.$anchor,a))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=tq(t.state,e);return i&&i instanceof cn?th(t,i):!1}else if(!(Kc&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=t.docView.descAt(s))&&!a.contentDOM?cn.isSelectable(o)?th(t,new cn(e<0?t.state.doc.resolve(i.pos-o.nodeSize):i)):i8?th(t,new Qt(t.state.doc.resolve(e<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof cn&&r.node.isInline)return th(t,new Qt(e>0?r.$to:r.$from));{let i=tq(t.state,e);return i?th(t,i):!1}}}function dE(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Qx(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Dy(t,e){return e<0?EWe(t):TWe(t)}function EWe(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,o,a=!1;for(Yc&&n.nodeType==1&&r<dE(n)&&Qx(n.childNodes[r],-1)&&(a=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Qx(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(U5e(n))break;{let s=n.previousSibling;for(;s&&Qx(s,-1);)i=n.parentNode,o=ea(s),s=s.previousSibling;if(s)n=s,r=dE(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}a?nq(t,n,r):i&&nq(t,i,o)}function TWe(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=dE(n),o,a;for(;;)if(r<i){if(n.nodeType!=1)break;let s=n.childNodes[r];if(Qx(s,1))o=n,a=++r;else break}else{if(U5e(n))break;{let s=n.nextSibling;for(;s&&Qx(s,1);)o=s.parentNode,a=ea(s)+1,s=s.nextSibling;if(s)n=s,r=0,i=dE(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}o&&nq(t,o,a)}function U5e(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function RWe(t,e){for(;t&&e==t.childNodes.length&&!r8(t);)e=ea(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function AWe(t,e){for(;t&&!e&&!r8(t);)e=ea(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function nq(t,e,n){if(e.nodeType!=3){let o,a;(a=RWe(e,n))?(e=a,n=0):(o=AWe(e,n))&&(e=o,n=o.nodeValue.length)}let r=t.domSelection();if(!r)return;if(bE(r)){let o=document.createRange();o.setEnd(e,n),o.setStart(e,n),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&Em(t)},50)}function m5e(t,e){let n=t.state.doc.resolve(e);if(!(ta||$5e)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),a=(o.top+o.bottom)/2;if(a>i.top&&a<i.bottom&&Math.abs(o.left-i.left)>1)return o.left<i.left?"ltr":"rtl"}if(e<n.end()){let o=t.coordsAtPos(e+1),a=(o.top+o.bottom)/2;if(a>i.top&&a<i.bottom&&Math.abs(o.left-i.left)>1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function f5e(t,e,n){let r=t.state.selection;if(r instanceof Qt&&!r.empty||n.indexOf("s")>-1||Kc&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let a=tq(t.state,e);if(a&&a instanceof cn)return th(t,a)}if(!i.parent.inlineContent){let a=e<0?i:o,s=r instanceof Xl?Kt.near(a,e):Kt.findFrom(a,e);return s?th(t,s):!1}return!1}function h5e(t,e){if(!(t.state.selection instanceof Qt))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=t.state.tr;return e<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),t.dispatch(a),!0}return!1}function g5e(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function $We(t){if(!Ba||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;g5e(t,r,"true"),setTimeout(()=>g5e(t,r,"false"),20)}return!1}function IWe(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function NWe(t,e){let n=e.keyCode,r=IWe(e);if(n==8||Kc&&n==72&&r=="c")return h5e(t,-1)||Dy(t,-1);if(n==46&&!e.shiftKey||Kc&&n==68&&r=="c")return h5e(t,1)||Dy(t,1);if(n==13||n==27)return!0;if(n==37||Kc&&n==66&&r=="c"){let i=n==37?m5e(t,t.state.selection.from)=="ltr"?-1:1:-1;return p5e(t,i,r)||Dy(t,i)}else if(n==39||Kc&&n==70&&r=="c"){let i=n==39?m5e(t,t.state.selection.from)=="ltr"?1:-1:1;return p5e(t,i,r)||Dy(t,i)}else{if(n==38||Kc&&n==80&&r=="c")return f5e(t,-1,r)||Dy(t,-1);if(n==40||Kc&&n==78&&r=="c")return $We(t)||f5e(t,1,r)||Dy(t,1);if(r==(Kc?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function mq(t,e){t.someProp("transformCopied",m=>{e=m(e,t)});let n=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let m=r.firstChild;n.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),r=m.content}let a=t.someProp("clipboardSerializer")||Bd.fromSchema(t.state.schema),s=Y5e(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=X5e[c.nodeName.toLowerCase()]);){for(let m=u.length-1;m>=0;m--){let f=s.createElement(u[m]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",m=>m(e,t))||e.content.textBetween(0,e.content.size,` +`),i;function o(a){return r.stack.push(a),s;function s(){r.stack.pop()}}}function lVe(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function cVe(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}function uVe(t,e){if(t.type==="definition"&&t.type===e.type)return 0}function dVe(t,e){return c0e(t,this,e)}function pVe(t,e){return u0e(t,this,e)}function mVe(t,e){return m0e(this,t,e)}function Ly(t){let e=this;e.compiler=n;function n(r){return QB(r,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}}function JB(t){if(t)throw t}var HM=R(C0e(),1);function Ix(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ez(){let t=[],e={run:n,use:r};return e;function n(...i){let o=-1,a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){let u=t[++o],d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?_0e(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function _0e(t,e){let n;return r;function r(...a){let s=t.length>a.length,l;s&&a.push(i);try{l=t.apply(this,a)}catch(c){let u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,e(a,...s))}function o(a){i(null,a)}}var Ao=class extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof e=="string"?i=e:!o.cause&&e&&(a=!0,i=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=X1(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Ao.prototype.file="";Ao.prototype.name="";Ao.prototype.reason="";Ao.prototype.message="";Ao.prototype.stack="";Ao.prototype.column=void 0;Ao.prototype.line=void 0;Ao.prototype.ancestors=void 0;Ao.prototype.cause=void 0;Ao.prototype.fatal=void 0;Ao.prototype.place=void 0;Ao.prototype.ruleId=void 0;Ao.prototype.source=void 0;var Fu={basename:fVe,dirname:hVe,extname:gVe,join:bVe,sep:"/"};function fVe(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Nx(t);let n=0,r=-1,i=t.length,o;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let a=-1,s=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(t.codePointAt(i)===e.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=t.length),t.slice(n,r)}function hVe(t){if(Nx(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function gVe(t){Nx(t);let e=t.length,n=-1,r=0,i=-1,o=0,a;for(;e--;){let s=t.codePointAt(e);if(s===47){if(a){r=e+1;break}continue}n<0&&(a=!0,n=e+1),s===46?i<0?i=e:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function bVe(...t){let e=-1,n;for(;++e<t.length;)Nx(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":yVe(n)}function yVe(t){Nx(t);let e=t.codePointAt(0)===47,n=xVe(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function xVe(t,e){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=t.length;){if(a<t.length)s=t.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function Nx(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}var S0e={cwd:wVe};function wVe(){return"/"}function My(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function L0e(t){if(typeof t=="string")t=new URL(t);else if(!My(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return vVe(t)}function vVe(t){if(t.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let e=t.pathname,n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){let r=e.codePointAt(n+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}var tz=["history","path","basename","stem","extname","dirname"],Px=class{constructor(e){let n;e?My(e)?n={path:e}:typeof e=="string"||kVe(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":S0e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<tz.length;){let o=tz[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)tz.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Fu.basename(this.path):void 0}set basename(e){rz(e,"basename"),nz(e,"basename"),this.path=Fu.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Fu.dirname(this.path):void 0}set dirname(e){M0e(this.basename,"dirname"),this.path=Fu.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Fu.extname(this.path):void 0}set extname(e){if(nz(e,"extname"),M0e(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Fu.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){My(e)&&(e=L0e(e)),rz(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Fu.basename(this.path,this.extname):void 0}set stem(e){rz(e,"stem"),nz(e,"stem"),this.path=Fu.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){let i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){let i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){let i=new Ao(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function nz(t,e){if(t&&t.includes(Fu.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Fu.sep+"`")}function rz(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function M0e(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function kVe(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var E0e=(function(t){let r=this.constructor.prototype,i=r[t],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o});var CVe={}.hasOwnProperty,sz=class t extends E0e{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ez()}copy(){let e=new t,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];e.use(...r)}return e.data((0,HM.default)(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(az("data",this.frozen),this.namespace[e]=n,this):CVe.call(this.namespace,e)&&this.namespace[e]||void 0:e?(az("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let n=qM(e),r=this.parser||this.Parser;return iz("parse",r),r(String(n),n)}process(e,n){let r=this;return this.freeze(),iz("process",this.parser||this.Parser),oz("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){let s=qM(e),l=r.parse(s);r.run(l,s,function(u,d,p){if(u||!d||!p)return c(u);let m=d,f=r.stringify(m,p);SVe(f)?p.value=f:p.result=f,c(u,p)});function c(u,d){u||!d?a(u):o?o(d):n(void 0,d)}}}processSync(e){let n=!1,r;return this.freeze(),iz("processSync",this.parser||this.Parser),oz("processSync",this.compiler||this.Compiler),this.process(e,i),R0e("processSync","process",n),r;function i(o,a){n=!0,JB(o),r=a}}run(e,n,r){T0e(e),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){let l=qM(n);i.run(e,l,c);function c(u,d,p){let m=d||e;u?s(u):a?a(m):r(void 0,m,p)}}}runSync(e,n){let r=!1,i;return this.run(e,n,o),R0e("runSync","run",r),i;function o(a,s){JB(a),i=s,r=!0}}stringify(e,n){this.freeze();let r=qM(n),i=this.compiler||this.Compiler;return oz("stringify",i),T0e(e),i(e,r)}use(e,...n){let r=this.attachers,i=this.namespace;if(az("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?s(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[u,...d]=c;l(u,d)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=(0,HM.default)(!0,i.settings,c.settings))}function s(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){let d=c[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===c){p=d;break}if(p===-1)r.push([c,...u]);else if(u.length>0){let[m,...f]=u,h=r[p][1];Ix(h)&&Ix(m)&&(m=(0,HM.default)(!0,h,m)),r[p]=[c,m,...f]}}}},jx=new sz().freeze();function iz(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function oz(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function az(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function T0e(t){if(!Ix(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function R0e(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function qM(t){return _Ve(t)?t:new Px(t)}function _Ve(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function SVe(t){return typeof t=="string"||LVe(t)}function LVe(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}function Da(t){this.content=t}Da.prototype={constructor:Da,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),o=r.content.slice();return i==-1?o.push(n||t,e):(o[i+1]=e,n&&(o[i]=n)),new Da(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Da(n)},addToStart:function(t,e){return new Da([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Da(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),o=r.find(t);return i.splice(o==-1?i.length:o,0,e,n),new Da(i)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Da.from(t),t.size?new Da(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Da.from(t),t.size?new Da(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Da.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Da.from=function(t){if(t instanceof Da)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Da(e)};var lz=Da;function B0e(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let a=0;i.text[a]==o.text[a];a++)n++;return n}if(i.content.size||o.content.size){let a=B0e(i.content,o.content,n+1);if(a!=null)return a}n+=i.nodeSize}}function z0e(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let a=t.child(--i),s=e.child(--o),l=a.nodeSize;if(a==s){n-=l,r-=l;continue}if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let c=0,u=Math.min(a.text.length,s.text.length);for(;c<u&&a.text[a.text.length-c-1]==s.text[s.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){let c=z0e(a.content,s.content,n-1,r-1);if(c)return c}n-=l,r-=l}}var De=class t{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,o){for(let a=0,s=0;s<n;a++){let l=this.content[a],c=s+l.nodeSize;if(c>e&&r(l,i+s,o||null,a)!==!1&&l.content.size){let u=s+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,i+u)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",a=!0;return this.nodesBetween(e,n,(s,l)=>{let c=s.isText?s.text.slice(Math.max(e,l)-l,n-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&r&&(a?a=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new t(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let o=0,a=0;a<n;o++){let s=this.content[o],l=a+s.nodeSize;l>e&&((a<e||l>n)&&(s.isText?s=s.cut(Math.max(0,e-a),Math.min(s.text.length,n-a)):s=s.cut(Math.max(0,e-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=l}return new t(r,i)}cutByIndex(e,n){return e==n?t.empty:e==0&&n==this.content.length?this:new t(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new t(i,o)}addToStart(e){return new t([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new t(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return B0e(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return z0e(this,e,n,r)}findIndex(e){if(e==0)return GM(0,e);if(e==this.size)return GM(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e?GM(n+1,o):GM(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return t.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return t.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return t.empty;let n,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(n||(n=e.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new t(n||e,r)}static from(e){if(!e)return t.empty;if(e instanceof t)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new t([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}};De.empty=new De([],0);var cz={index:0,offset:0};function GM(t,e){return cz.index=t,cz.offset=e,cz}function ZM(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!ZM(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!ZM(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}var Gn=class t{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ZM(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return t.none;if(e instanceof t)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};Gn.none=[];var _g=class extends Error{},Je=class t{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=H0e(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new t(r,this.openStart,this.openEnd)}removeBetween(e,n){return new t(q0e(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return t.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new t(De.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new t(e,r,i)}};Je.empty=new Je(De.empty,0,0);function q0e(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:a,offset:s}=t.findIndex(n);if(i==e||o.isText){if(s!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(q0e(o.content,e-i-1,n-i-1)))}function H0e(t,e,n,r,i,o){let{index:a,offset:s}=t.findIndex(e),l=t.maybeChild(a);if(s==e||l.isText)return o&&r<=0&&i<=0&&!o.canReplace(a,a,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=H0e(l.content,e-s-1,n,a==0?r-1:0,a==t.childCount-1?i-1:0,l);return c&&t.replaceChild(a,l.copy(c))}function MVe(t,e,n){if(n.openStart>t.depth)throw new _g("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new _g("Inconsistent open depths");return G0e(t,e,n,0)}function G0e(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let a=G0e(t,e,n,r+1);return o.copy(o.content.replaceChild(i,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let a=t.parent,s=a.content;return Cg(a,s.cut(0,t.parentOffset).append(n.content).append(s.cut(e.parentOffset)))}else{let{start:a,end:s}=EVe(n,t);return Cg(o,V0e(t,a,s,e,r))}else return Cg(o,WM(t,e,r))}function U0e(t,e){if(!e.type.compatibleContent(t.type))throw new _g("Cannot join "+e.type.name+" onto "+t.type.name)}function uz(t,e,n){let r=t.node(n);return U0e(r,e.node(n)),r}function kg(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ox(t,e,n,r){let i=(e||t).node(n),o=0,a=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(kg(t.nodeAfter,r),o++));for(let s=o;s<a;s++)kg(i.child(s),r);e&&e.depth==n&&e.textOffset&&kg(e.nodeBefore,r)}function Cg(t,e){return t.type.checkContent(e),t.copy(e)}function V0e(t,e,n,r,i){let o=t.depth>i&&uz(t,e,i+1),a=r.depth>i&&uz(n,r,i+1),s=[];return Ox(null,t,i,s),o&&a&&e.index(i)==n.index(i)?(U0e(o,a),kg(Cg(o,V0e(t,e,n,r,i+1)),s)):(o&&kg(Cg(o,WM(t,e,i+1)),s),Ox(e,n,i,s),a&&kg(Cg(a,WM(n,r,i+1)),s)),Ox(r,null,i,s),new De(s)}function WM(t,e,n){let r=[];if(Ox(null,t,n,r),t.depth>n){let i=uz(t,e,n+1);kg(Cg(i,WM(t,e,n+1)),r)}return Ox(e,null,n,r),new De(r)}function EVe(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(De.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}var KM=class t{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return Gn.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let s=r;r=i,i=s}let o=r.marks;for(var a=0;a<o.length;a++)o[a].type.spec.inclusive===!1&&(!i||!o[a].isInSet(i.marks))&&(o=o[a--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Fx(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let a=e;;){let{index:s,offset:l}=a.content.findIndex(o),c=o-l;if(r.push(a,s,i+l),!c||(a=a.child(s),a.isText))break;o=c-1,i+=l+1}return new t(n,r,o)}static resolveCached(e,n){let r=A0e.get(e);if(r)for(let o=0;o<r.elts.length;o++){let a=r.elts[o];if(a.pos==n)return a}else A0e.set(e,r=new dz);let i=r.elts[r.i]=t.resolve(e,n);return r.i=(r.i+1)%TVe,i}},dz=class{constructor(){this.elts=[],this.i=0}},TVe=12,A0e=new WeakMap,Fx=class{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},RVe=Object.create(null),il=class t{constructor(e,n,r,i=Gn.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||De.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&ZM(this.attrs,n||e.defaultAttrs||RVe)&&Gn.sameSet(this.marks,r||Gn.none)}copy(e=null){return e==this.content?this:new t(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new t(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return Je.empty;let i=this.resolve(e),o=this.resolve(n),a=r?0:i.sharedDepth(n),s=i.start(a),c=i.node(a).content.cut(i.pos-s,o.pos-s);return new Je(c,i.depth-a,o.depth-a)}replace(e,n,r){return MVe(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return KM.resolveCached(this,e)}resolveNoCache(e){return KM.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Z0e(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=De.empty,i=0,o=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,i,o),s=a&&a.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),a=o&&o.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Gn.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Gn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=De.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};il.prototype.text=void 0;var pz=class t extends il{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Z0e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Z0e(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}var Sg=class t{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new mz(e,n);if(r.next==null)return t.empty;let i=W0e(r);r.next&&r.err("Unexpected trailing text");let o=OVe(jVe(i));return DVe(o,r),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function o(a,s){let l=a.matchFragment(e,r);if(l&&(!n||l.validEnd))return De.from(s.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:u,next:d}=a.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let p=o(d,s.concat(u));if(p)return p}}return null}return o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let a=[];for(let s=i;s.type;s=s.via)a.push(s.type);return a.reverse()}for(let a=0;a<o.next.length;a++){let{type:s,next:l}=o.next[a];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!i.type||l.validEnd)&&(r.push({match:s.contentMatch,type:s,via:i}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)o+=(a?", ":"")+r.next[a].type.name+"->"+e.indexOf(r.next[a].next);return o}).join(` +`)}};Sg.empty=new Sg(!0);var mz=class{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function W0e(t){let e=[];do e.push(AVe(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function AVe(t){let e=[];do e.push($Ve(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function $Ve(t){let e=PVe(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=IVe(t,e);else break;return e}function $0e(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function IVe(t,e){let n=$0e(t),r=n;return t.eat(",")&&(t.next!="}"?r=$0e(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function NVe(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let a=n[o];a.isInGroup(e)&&i.push(a)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function PVe(t){if(t.eat("(")){let e=W0e(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=NVe(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function jVe(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}function r(a,s,l){let c={term:l,to:s};return e[a].push(c),c}function i(a,s){a.forEach(l=>l.to=s)}function o(a,s){if(a.type=="choice")return a.exprs.reduce((l,c)=>l.concat(o(c,s)),[]);if(a.type=="seq")for(let l=0;;l++){let c=o(a.exprs[l],s);if(l==a.exprs.length-1)return c;i(c,s=n())}else if(a.type=="star"){let l=n();return r(s,l),i(o(a.expr,l),l),[r(l)]}else if(a.type=="plus"){let l=n();return i(o(a.expr,s),l),i(o(a.expr,l),l),[r(l)]}else{if(a.type=="opt")return[r(s)].concat(o(a.expr,s));if(a.type=="range"){let l=s;for(let c=0;c<a.min;c++){let u=n();i(o(a.expr,l),u),l=u}if(a.max==-1)i(o(a.expr,l),l);else for(let c=a.min;c<a.max;c++){let u=n();r(l,u),i(o(a.expr,l),u),l=u}return[r(l)]}else{if(a.type=="name")return[r(s,void 0,a.value)];throw new Error("Unknown expr type")}}}}function K0e(t,e){return e-t}function I0e(t,e){let n=[];return r(e),n.sort(K0e);function r(i){let o=t[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let a=0;a<o.length;a++){let{term:s,to:l}=o[a];!s&&n.indexOf(l)==-1&&r(l)}}}function OVe(t){let e=Object.create(null);return n(I0e(t,0));function n(r){let i=[];r.forEach(a=>{t[a].forEach(({term:s,to:l})=>{if(!s)return;let c;for(let u=0;u<i.length;u++)i[u][0]==s&&(c=i[u][1]);I0e(t,l).forEach(u=>{c||i.push([s,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=e[r.join(",")]=new Sg(r.indexOf(t.length-1)>-1);for(let a=0;a<i.length;a++){let s=i[a][1].sort(K0e);o.next.push({type:i[a][0],next:e[s.join(",")]||n(s)})}return o}}function DVe(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],o=!i.validEnd,a=[];for(let s=0;s<i.next.length;s++){let{type:l,next:c}=i.next[s];a.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function X0e(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Y0e(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let o=t[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function Q0e(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let o=t[i];o.validate&&o.validate(e[i])}}function J0e(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new fz(t,r,e[r]);return n}var Bx=class t{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=J0e(e,r.attrs),this.defaultAttrs=X0e(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Sg.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Y0e(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new il(this,this.computeAttrs(e),De.from(n),Gn.setFrom(r))}createChecked(e=null,n,r){return n=De.from(n),this.checkContent(n),new il(this,this.computeAttrs(e),n,Gn.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=De.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(De.empty,!0);return o?new il(this,e,n.append(o),Gn.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Q0e(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:Gn.none:e}static compile(e,n){let r=Object.create(null);e.forEach((o,a)=>r[o]=new t(o,n,a));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function FVe(t,e,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}var fz=class{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?FVe(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}},zx=class t{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=J0e(e,i.attrs),this.excluded=null;let o=X0e(this.attrs);this.instance=o?new Gn(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Gn(this,Y0e(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,a)=>r[o]=new t(o,i++,n,a)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Q0e(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},XM=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=lz.from(e.nodes),n.marks=lz.from(e.marks||{}),this.nodes=Bx.compile(this.spec.nodes,this),this.marks=zx.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],a=o.spec.content||"",s=o.spec.marks;if(o.contentMatch=r[a]||(r[a]=Sg.parse(a,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=s=="_"?null:s?N0e(this,s.split(" ")):s==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],a=o.spec.excludes;o.excluded=a==null?[o]:a==""?[]:N0e(this,a.split(" "))}this.nodeFromJSON=i=>il.fromJSON(this,i),this.markFromJSON=i=>Gn.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Bx){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new pz(r,r.defaultAttrs,e,Gn.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function N0e(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t.marks[i],a=o;if(o)n.push(o);else for(let s in t.marks){let l=t.marks[s];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=l)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function BVe(t){return t.tag!=null}function zVe(t){return t.style!=null}var Fd=class t{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(BVe(i))this.tags.push(i);else if(zVe(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new YM(this,n,!1);return r.addAll(e,Gn.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new YM(this,n,!0);return r.addAll(e,Gn.none,n.from,n.to),Je.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(GVe(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let a=o.getAttrs(e);if(a===!1)continue;o.attrs=a||void 0}return o}}}matchStyle(e,n,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let a=this.styles[o],s=a.style;if(!(s.indexOf(e)!=0||a.context&&!r.matchesContext(a.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(a.getAttrs){let l=a.getAttrs(n);if(l===!1)continue;a.attrs=l||void 0}return a}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,a=0;for(;a<n.length;a++){let s=n[a];if((s.priority==null?50:s.priority)<o)break}n.splice(a,0,i)}for(let i in e.marks){let o=e.marks[i].spec.parseDOM;o&&o.forEach(a=>{r(a=j0e(a)),a.mark||a.ignore||a.clearMark||(a.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(a=>{r(a=j0e(a)),a.node||a.ignore||a.mark||(a.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new t(e,t.schemaRules(e)))}},ege={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},qVe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},tge={ol:!0,ul:!0},qx=1,hz=2,Dx=4;function P0e(t,e,n){return e!=null?(e?qx:0)|(e==="full"?hz:0):t&&t.whitespace=="pre"?qx|hz:n&~Dx}var Ey=class{constructor(e,n,r,i,o,a){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=Gn.none,this.match=o||(a&Dx?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(De.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&qx)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=De.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(De.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ege.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},YM=class{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,o,a=P0e(null,n.preserveWhitespace,0)|(r?Dx:0);i?o=new Ey(i.type,i.attrs,Gn.none,!0,n.topMatch||i.type.contentMatch,a):r?o=new Ey(null,null,Gn.none,!0,null,a):o=new Ey(e.schema.topNodeType,null,Gn.none,!0,null,a),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,o=i.options&hz?"full":this.localPreserveWS||(i.options&qx)>0,{schema:a}=this.parser;if(o==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(o)if(o==="full")r=r.replace(/\r\n?/g,` +`);else if(a.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(a.linebreakReplacement.create())){let s=r.split(/\r?\n|\r/);for(let l=0;l<s.length;l++)l&&this.insertNode(a.linebreakReplacement.create(),n,!0),s[l]&&this.insertNode(a.text(s[l]),n,!/\S/.test(s[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],l=e.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(a.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,o=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),s;tge.hasOwnProperty(a)&&this.parser.normalizeLists&&HVe(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));e:if(l?l.ignore:qVe.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(ege.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(o),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?s:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],a=r.getPropertyValue(o);if(a)for(let s=void 0;;){let l=this.parser.matchStyle(o,a,this,s);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return n}addElementByRule(e,n,r,i){let o,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(a,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let s=this.top;if(a&&a.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}o&&this.sync(s)&&this.open--}addAll(e,n,r,i){let o=r||0;for(let a=r?e.childNodes[r]:e.firstChild,s=i==null?null:e.childNodes[i];a!=s;a=a.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(a,n);this.findAtPoint(e,o)}findPlace(e,n,r){let i,o;for(let a=this.open,s=0;a>=0;a--){let l=this.nodes[a],c=l.findWrapping(e);if(c&&(!i||i.length>c.length+s)&&(i=c,o=l,!c.length))break;if(l.solid){if(r)break;s+=2}}if(!i)return null;this.sync(o);for(let a=0;a<i.length;a++)n=this.enterInner(i[a],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let a=Gn.none;for(let s of i.concat(e.marks))(o.type?o.type.allowsMarkType(s.type):O0e(s.type,e.type))&&(a=s.addToSet(a));return o.content.push(e.mark(a)),!0}return!1}enter(e,n,r,i){let o=this.findPlace(e.create(n),r,!1);return o&&(o=this.enterInner(e,n,r,!0,i)),o}enterInner(e,n,r,i=!1,o){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let s=P0e(e,o,a.options);a.options&Dx&&a.content.length==0&&(s|=Dx);let l=Gn.none;return r=r.filter(c=>(a.type?a.type.allowsMarkType(c.type):O0e(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Ey(e,n,l,i,null,s)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=qx)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=(s,l)=>{for(;s>=0;s--){let c=n[s];if(c==""){if(s==n.length-1||s==0)continue;for(;l>=o;l--)if(a(s-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}};function HVe(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&tge.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function GVe(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function j0e(t){let e={};for(let n in t)e[n]=t[n];return e}function O0e(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],a=s=>{o.push(s);for(let l=0;l<s.edgeCount;l++){let{type:c,next:u}=s.edge(l);if(c==e||o.indexOf(u)<0&&a(u))return!0}};if(a(i.contentMatch))return!0}}var Bd=class t{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=UM(n).createDocumentFragment());let i=r,o=[];return e.forEach(a=>{if(o.length||a.marks.length){let s=0,l=0;for(;s<o.length&&l<a.marks.length;){let c=a.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[s][0])||c.type.spec.spanning===!1)break;s++,l++}for(;s<o.length;)i=o.pop()[1];for(;l<a.marks.length;){let c=a.marks[l++],u=this.serializeMark(c,a.isInline,n);u&&(o.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(a,n))}),r}serializeNodeInner(e,n){if(e.isText)return UM(n).createTextNode(e.text);let{dom:r,contentDOM:i}=VM(UM(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&VM(UM(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:VM(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new t(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=D0e(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return D0e(e.marks)}};function D0e(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function UM(t){return t.document||window.document}var F0e=new WeakMap;function UVe(t){let e=F0e.get(t);return e===void 0&&F0e.set(t,e=VVe(t)),e}function VVe(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function VM(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=UVe(r))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=i.indexOf(" ");a>0&&(n=i.slice(0,a),i=i.slice(a+1));let s,l=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else if(typeof p=="string")l.appendChild(t.createTextNode(p));else{let{dom:m,contentDOM:f}=VM(t,p,n,r);if(l.appendChild(m),f){if(s)throw new RangeError("Multiple content holes");s=f}}}return{dom:l,contentDOM:s}}var ige=65535,oge=Math.pow(2,16);function ZVe(t,e){return t+e*oge}function nge(t){return t&ige}function WVe(t){return(t-(t&ige))/oge}var age=1,sge=2,QM=4,lge=8,Ux=class{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&lge)>0}get deletedBefore(){return(this.delInfo&(age|QM))>0}get deletedAfter(){return(this.delInfo&(sge|QM))>0}get deletedAcross(){return(this.delInfo&QM)>0}},km=class t{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&t.empty)return t.empty}recover(e){let n=0,r=nge(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+WVe(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?i:0);if(l>e)break;let c=this.ranges[s+o],u=this.ranges[s+a],d=l+c;if(e<=d){let p=c?e==l?-1:e==d?1:n:n,m=l+i+(p<0?0:u);if(r)return m;let f=e==(n<0?l:d)?null:ZVe(s/3,e-l),h=e==l?sge:e==d?age:QM;return(n<0?e!=l:e!=d)&&(h|=lge),new Ux(m,h,f)}i+=u-c}return r?e+i:new Ux(e+i,0,null)}touches(e,n){let r=0,i=nge(n),o=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[s+o],u=l+c;if(e<=u&&s==i*3)return!0;r+=this.ranges[s+a]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let a=this.ranges[i],s=a-(this.inverted?o:0),l=a+(this.inverted?0:o),c=this.ranges[i+n],u=this.ranges[i+r];e(s,s+c,l,l+u),o+=u-c}}invert(){return new t(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?t.empty:new t(e<0?[0,-e,0]:[0,0,e])}};km.empty=new km([]);var Vx=class t{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new t(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new t;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let o=this.from;o<this.to;o++){let a=this._maps[o],s=a.mapResult(e,n);if(s.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this._maps[l].recover(s.recover);continue}}i|=s.delInfo,e=s.pos}return r?e:new Ux(e,i,null)}},gz=Object.create(null),$o=class{getMap(){return km.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=gz[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in gz)throw new RangeError("Duplicate use of step JSON ID "+e);return gz[e]=n,n.prototype.jsonID=e,n}},Yo=class t{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new t(e,null)}static fail(e){return new t(null,e)}static fromReplace(e,n,r,i){try{return t.ok(e.replace(n,r,i))}catch(o){if(o instanceof _g)return t.fail(o.message);throw o}}};function vz(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let o=t.child(i);o.content.size&&(o=o.copy(vz(o.content,e,o))),o.isInline&&(o=e(o,n,i)),r.push(o)}return De.fromArray(r)}var Lg=class t extends $o{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new Je(vz(n.content,(a,s)=>!a.isAtom||!s.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),i),n.openStart,n.openEnd);return Yo.fromReplace(e,this.from,this.to,o)}invert(){return new Mg(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)}merge(e){return e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))}};$o.jsonID("addMark",Lg);var Mg=class t extends $o{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new Je(vz(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Yo.fromReplace(e,this.from,this.to,r)}invert(){return new Lg(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)}merge(e){return e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))}};$o.jsonID("removeMark",Mg);var Zx=class t extends $o{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Yo.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Yo.fromReplace(e,this.pos,this.pos+1,new Je(De.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new t(this.pos,n.marks[i]);return new t(this.pos,this.mark)}}return new Ty(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new t(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new t(n.pos,e.markFromJSON(n.mark))}};$o.jsonID("addNodeMark",Zx);var Ty=class t extends $o{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Yo.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Yo.fromReplace(e,this.pos,this.pos+1,new Je(De.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Zx(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new t(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new t(n.pos,e.markFromJSON(n.mark))}};$o.jsonID("removeNodeMark",Ty);var Qo=class t extends $o{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&xz(e,this.from,this.to)?Yo.fail("Structure replace would overwrite content"):Yo.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new km([this.from,this.to-this.from,this.slice.size])}invert(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&t.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new t(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?Je.empty:new Je(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?Je.empty:new Je(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,Je.fromJSON(e,n.slice),!!n.structure)}};Qo.MAP_BIAS=1;$o.jsonID("replace",Qo);var Jo=class t extends $o{constructor(e,n,r,i,o,a,s=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=a,this.structure=s}apply(e){if(this.structure&&(xz(e,this.from,this.gapFrom)||xz(e,this.gapTo,this.to)))return Yo.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Yo.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Yo.fromReplace(e,this.from,this.to,r):Yo.fail("Content does not fit in gap")}getMap(){return new km([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new t(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,Je.fromJSON(e,n.slice),n.insert,!!n.structure)}};$o.jsonID("replaceAround",Jo);function xz(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let a=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}}return!1}function KVe(t,e,n,r){let i=[],o=[],a,s;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let p=Math.max(c,e),m=Math.min(c+l.nodeSize,n),f=r.addToSet(d);for(let h=0;h<d.length;h++)d[h].isInSet(f)||(a&&a.to==p&&a.mark.eq(d[h])?a.to=m:i.push(a=new Mg(p,m,d[h])));s&&s.to==p?s.to=m:o.push(s=new Lg(p,m,r))}}),i.forEach(l=>t.step(l)),o.forEach(l=>t.step(l))}function XVe(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(a,s)=>{if(!a.isInline)return;o++;let l=null;if(r instanceof zx){let c=a.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(a.marks)&&(l=[r]):l=a.marks;if(l&&l.length){let c=Math.min(s+a.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],p;for(let m=0;m<i.length;m++){let f=i[m];f.step==o-1&&d.eq(i[m].style)&&(p=f)}p?(p.to=c,p.step=o):i.push({style:d,from:Math.max(s,e),to:c,step:o})}}}),i.forEach(a=>t.step(new Mg(a.from,a.to,a.style)))}function kz(t,e,n,r=n.contentMatch,i=!0){let o=t.doc.nodeAt(e),a=[],s=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=s+c.nodeSize,d=r.matchType(c.type);if(!d)a.push(new Qo(s,u,Je.empty));else{r=d;for(let p=0;p<c.marks.length;p++)n.allowsMarkType(c.marks[p].type)||t.step(new Mg(s,u,c.marks[p]));if(i&&c.isText&&n.whitespace!="pre"){let p,m=/\r?\n|\r/g,f;for(;p=m.exec(c.text);)f||(f=new Je(De.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new Qo(s+p.index,s+p.index+p[0].length,f))}}s=u}if(!r.validEnd){let l=r.fillBefore(De.empty,!0);t.replace(s,s,new Je(l,0,0))}for(let l=a.length-1;l>=0;l--)t.step(a[l])}function YVe(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function $y(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,o=0;;--r){let a=t.$from.node(r),s=t.$from.index(r)+i,l=t.$to.indexAfter(r)-o;if(r<t.depth&&a.canReplace(s,l,n))return r;if(r==0||a.type.spec.isolating||!YVe(a,s,l))break;s&&(i=1),l<a.childCount&&(o=1)}return null}function QVe(t,e,n){let{$from:r,$to:i,depth:o}=e,a=r.before(o+1),s=i.after(o+1),l=a,c=s,u=De.empty,d=0;for(let f=o,h=!1;f>n;f--)h||r.index(f)>0?(h=!0,u=De.from(r.node(f).copy(u)),d++):l--;let p=De.empty,m=0;for(let f=o,h=!1;f>n;f--)h||i.after(f+1)<i.end(f)?(h=!0,p=De.from(i.node(f).copy(p)),m++):c++;t.step(new Jo(l,c,a,s,new Je(u.append(p),d,m),u.size-d,!0))}function Eg(t,e,n=null,r=t){let i=JVe(t,e),o=i&&eZe(r,e);return o?i.map(rge).concat({type:e,attrs:n}).concat(o.map(rge)):null}function rge(t){return{type:t,attrs:null}}function JVe(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.contentMatchAt(r).findWrapping(e);if(!o)return null;let a=o.length?o[0]:e;return n.canReplaceWith(r,i,a)?o:null}function eZe(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.child(r),a=e.contentMatch.findWrapping(o.type);if(!a)return null;let l=(a.length?a[a.length-1]:e).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:a}function tZe(t,e,n){let r=De.empty;for(let a=n.length-1;a>=0;a--){if(r.size){let s=n[a].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=De.from(n[a].type.create(n[a].attrs,r))}let i=e.start,o=e.end;t.step(new Jo(i,o,i,o,new Je(r,0,0),n.length,!0))}function nZe(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(a,s)=>{let l=typeof i=="function"?i(a):i;if(a.isTextblock&&!a.hasMarkup(r,l)&&rZe(t.doc,t.mapping.slice(o).map(s),r)){let c=null;if(r.schema.linebreakReplacement){let m=r.whitespace=="pre",f=!!r.contentMatch.matchType(r.schema.linebreakReplacement);m&&!f?c=!1:!m&&f&&(c=!0)}c===!1&&uge(t,a,s,o),kz(t,t.mapping.slice(o).map(s,1),r,void 0,c===null);let u=t.mapping.slice(o),d=u.map(s,1),p=u.map(s+a.nodeSize,1);return t.step(new Jo(d,p,d+1,p-1,new Je(De.from(r.create(l,null,a.marks)),0,0),1,!0)),c===!0&&cge(t,a,s,o),!1}})}function cge(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(i.text);){let l=t.mapping.slice(r).map(n+1+o+a.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function uge(t,e,n,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let a=t.mapping.slice(r).map(n+1+o);t.replaceWith(a,a+1,e.type.schema.text(` +`))}})}function rZe(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function iZe(t,e,n,r,i){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let a=n.create(r,null,i||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,a);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Jo(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new Je(De.from(a),0,0),1,!0))}function Tg(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),p=i.index(c);if(d.type.spec.isolating)return!1;let m=d.content.cutByIndex(p,d.childCount),f=r&&r[u+1];f&&(m=m.replaceChild(0,f.type.create(f.attrs)));let h=r&&r[u]||d;if(!d.canReplace(p+1,d.childCount)||!h.type.validContent(m))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function oZe(t,e,n=1,r){let i=t.doc.resolve(e),o=De.empty,a=De.empty;for(let s=i.depth,l=i.depth-n,c=n-1;s>l;s--,c--){o=De.from(i.node(s).copy(o));let u=r&&r[c];a=De.from(u?u.type.create(u.attrs,a):i.node(s).copy(a))}t.step(new Qo(e,e,new Je(o.append(a),n,n),!0))}function Rg(t,e){let n=t.resolve(e),r=n.index();return sZe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function aZe(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let o=e.child(i),a=o.type==r?t.type.schema.nodes.text:o.type;if(n=n.matchType(a),!n||!t.type.allowsMarks(o.marks))return!1}return n.validEnd}function sZe(t,e){return!!(t&&e&&!t.isLeaf&&aZe(t,e))}function lZe(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,o=t.doc.resolve(e-n),a=o.node().type;if(i&&a.inlineContent){let u=a.whitespace=="pre",d=!!a.contentMatch.matchType(i);u&&!d?r=!1:!u&&d&&(r=!0)}let s=t.steps.length;if(r===!1){let u=t.doc.resolve(e+n);uge(t,u.node(),u.before(),s)}a.inlineContent&&kz(t,e+n-1,a,o.node().contentMatchAt(o.index()),r==null);let l=t.mapping.slice(s),c=l.map(e-n);if(t.step(new Qo(c,l.map(e+n,-1),Je.empty,!0)),r===!0){let u=t.doc.resolve(c);cge(t,u.node(),u.before(),t.steps.length)}return t}function cZe(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function dge(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let a=r.depth;a>=0;a--){let s=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,l=r.index(a)+(s>0?1:0),c=r.node(a),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return s==0?r.pos:s<0?r.before(a+1):r.after(a+1)}return null}function Wx(t,e,n=e,r=Je.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),o=t.resolve(n);return pge(i,o,r)?new Qo(e,n,r):new wz(i,o,r).fit()}function pge(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}var wz=class{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=De.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=De.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,a=r.depth,s=i.depth;for(;a&&s&&o.childCount==1;)o=o.firstChild.content,a--,s--;let l=new Je(o,a,s);return e>-1?new Jo(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Qo(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let o=n.firstChild;if(n.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=bz(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let a=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:l,match:c}=this.frontier[s],u,d=null;if(n==1&&(a?c.matchType(a.type)||(d=c.fillBefore(De.from(a),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:s,parent:o,inject:d};if(n==2&&a&&(u=c.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:s,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=bz(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new Je(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=bz(e,n);if(i.childCount<=1&&n>0){let o=e.size-n<=n+i.size;this.unplaced=new Je(Hx(e,n-1,1),n-1,o?n-1:r)}else this.unplaced=new Je(Hx(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let h=0;h<o.length;h++)this.openFrontierNode(o[h]);let a=this.unplaced,s=r?r.content:a.content,l=a.openStart-e,c=0,u=[],{match:d,type:p}=this.frontier[n];if(i){for(let h=0;h<i.childCount;h++)u.push(i.child(h));d=d.matchFragment(i)}let m=s.size+e-(a.content.size-a.openEnd);for(;c<s.childCount;){let h=s.child(c),x=d.matchType(h.type);if(!x)break;c++,(c>1||l==0||h.content.size)&&(d=x,u.push(mge(h.mark(p.allowedMarks(h.marks)),c==1?l:0,c==s.childCount?m:-1)))}let f=c==s.childCount;f||(m=-1),this.placed=Gx(this.placed,n,De.from(u)),this.frontier[n].match=d,f&&m<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let h=0,x=s;h<m;h++){let g=x.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),x=g.content}this.unplaced=f?e==0?Je.empty:new Je(Hx(a.content,e-1,1),e-1,m<0?a.openEnd:e-1):new Je(Hx(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!yz(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),a=yz(e,n,i,r,o);if(a){for(let s=n-1;s>=0;s--){let{match:l,type:c}=this.frontier[s],u=yz(e,s,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:a,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Gx(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Gx(this.placed,this.depth,De.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(De.empty,!0);n.childCount&&(this.placed=Gx(this.placed,this.frontier.length,n))}};function Hx(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Hx(t.firstChild.content,e-1,n)))}function Gx(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Gx(t.lastChild.content,e-1,n)))}function bz(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function mge(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,mge(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(De.empty,!0)))),t.copy(r)}function yz(t,e,n,r,i){let o=t.node(e),a=i?t.indexAfter(e):t.index(e);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!uZe(n,o.content,a)?s:null}function uZe(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function dZe(t){return t.spec.defining||t.spec.definingForContent}function pZe(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),o=t.doc.resolve(n);if(pge(i,o,r))return t.step(new Qo(e,n,r));let a=hge(i,o);a[a.length-1]==0&&a.pop();let s=-(i.depth+1);a.unshift(s);for(let p=i.depth,m=i.pos-1;p>0;p--,m--){let f=i.node(p).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;a.indexOf(p)>-1?s=p:i.before(p)==m&&a.splice(1,0,-p)}let l=a.indexOf(s),c=[],u=r.openStart;for(let p=r.content,m=0;;m++){let f=p.firstChild;if(c.push(f),m==r.openStart)break;p=f.content}for(let p=u-1;p>=0;p--){let m=c[p],f=dZe(m.type);if(f&&!m.sameMarkup(i.node(Math.abs(s)-1)))u=p;else if(f||!m.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let m=(p+u+1)%(r.openStart+1),f=c[m];if(f)for(let h=0;h<a.length;h++){let x=a[(h+l)%a.length],g=!0;x<0&&(g=!1,x=-x);let y=i.node(x-1),b=i.index(x-1);if(y.canReplaceWith(b,b,f.type,f.marks))return t.replace(i.before(x),g?o.after(x):n,new Je(fge(r.content,0,r.openStart,m),m,r.openEnd))}}let d=t.steps.length;for(let p=a.length-1;p>=0&&(t.replace(e,n,r),!(t.steps.length>d));p--){let m=a[p];m<0||(e=i.before(m),n=o.after(m))}}function fge(t,e,n,r,i){if(e<n){let o=t.firstChild;t=t.replaceChild(0,o.copy(fge(o.content,e+1,n,r,o)))}if(e>r){let o=i.contentMatchAt(0),a=o.fillBefore(t).append(t);t=a.append(o.matchFragment(a).fillBefore(De.empty,!0))}return t}function mZe(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=cZe(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new Je(De.from(r),0,0))}function fZe(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),s=!1;for(let l=r.depth;l>a;l--)r.node(l).type.spec.isolating&&(s=!0);for(let l=i.depth;l>a;l--)i.node(l).type.spec.isolating&&(s=!0);if(!s){for(let l=r.depth;l>0&&e==r.start(l);l--)e=r.before(l);for(let l=i.depth;l>0&&n==i.start(l);l--)n=i.before(l);r=t.doc.resolve(e),i=t.doc.resolve(n)}}let o=hge(r,i);for(let a=0;a<o.length;a++){let s=o[a],l=a==o.length-1;if(l&&s==0||r.node(s).type.contentMatch.validEnd)return t.delete(r.start(s),i.end(s));if(s>0&&(l||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return t.delete(r.before(s),i.after(s))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(e-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return t.delete(r.before(a),n);t.delete(e,n)}function hge(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let o=t.start(i);if(o<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&n.push(i)}return n}var JM=class t extends $o{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Yo.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Yo.fromReplace(e,this.pos,this.pos+1,new Je(De.from(i),0,n.isLeaf?0:1))}getMap(){return km.empty}invert(e){return new t(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new t(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new t(n.pos,n.attr,n.value)}};$o.jsonID("attr",JM);var eE=class t extends $o{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Yo.ok(r)}getMap(){return km.empty}invert(e){return new t(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new t(n.attr,n.value)}};$o.jsonID("docAttr",eE);var Ry=class extends Error{};Ry=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};Ry.prototype=Object.create(Error.prototype);Ry.prototype.constructor=Ry;Ry.prototype.name="TransformError";var Ay=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Vx}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Ry(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(e=i.map(e,1),n=i.map(n,-1)),i.forEach((o,a,s,l)=>{e=Math.min(e,s),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=Je.empty){let i=Wx(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new Je(De.from(r),0,0))}delete(e,n){return this.replace(e,n,Je.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return pZe(this,e,n,r),this}replaceRangeWith(e,n,r){return mZe(this,e,n,r),this}deleteRange(e,n){return fZe(this,e,n),this}lift(e,n){return QVe(this,e,n),this}join(e,n=1){return lZe(this,e,n),this}wrap(e,n){return tZe(this,e,n),this}setBlockType(e,n=e,r,i=null){return nZe(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return iZe(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new JM(e,n,r)),this}setDocAttribute(e,n){return this.step(new eE(e,n)),this}addNodeMark(e,n){return this.step(new Zx(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof Gn)n.isInSet(r.marks)&&this.step(new Ty(e,n));else{let i=r.marks,o,a=[];for(;o=n.isInSet(i);)a.push(new Ty(e,o)),i=o.removeFromSet(i);for(let s=a.length-1;s>=0;s--)this.step(a[s])}return this}split(e,n=1,r){return oZe(this,e,n,r),this}addMark(e,n,r){return KVe(this,e,n,r),this}removeMark(e,n,r){return XVe(this,e,n,r),this}clearIncompatible(e,n,r){return kz(this,e,n,r),this}};var Cz=Object.create(null),Kt=class{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new J1(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=Je.empty){let r=n.content.lastChild,i=null;for(let s=0;s<n.openEnd;s++)i=r,r=r.lastChild;let o=e.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:l,$to:c}=a[s],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),s?Je.empty:n),s==0&&yge(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:a,$to:s}=i[o],l=e.mapping.slice(r),c=l.map(a.pos),u=l.map(s.pos);o?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),yge(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new Qt(e):Iy(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let o=e.depth-1;o>=0;o--){let a=n<0?Iy(e.node(0),e.node(o),e.before(o+1),e.index(o),n,r):Iy(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,r);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Xl(e.node(0))}static atStart(e){return Iy(e,e,0,0,1)||new Xl(e)}static atEnd(e){return Iy(e,e,e.content.size,e.childCount,-1)||new Xl(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Cz[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Cz)throw new RangeError("Duplicate use of selection JSON ID "+e);return Cz[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Qt.between(this.$anchor,this.$head).getBookmark()}};Kt.prototype.visible=!0;var J1=class{constructor(e,n){this.$from=e,this.$to=n}},gge=!1;function bge(t){!gge&&!t.parent.inlineContent&&(gge=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}var Qt=class t extends Kt{constructor(e,n=e){bge(e),bge(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Kt.near(r);let i=e.resolve(n.map(this.anchor));return new t(i.parent.inlineContent?i:r,r)}replace(e,n=Je.empty){if(super.replace(e,n),n==Je.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new nE(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=Kt.findFrom(n,r,!0)||Kt.findFrom(n,-r,!0);if(o)n=o.$head;else return Kt.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(Kt.findFrom(e,-r,!0)||Kt.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new t(e,n)}};Kt.jsonID("text",Qt);var nE=class t{constructor(e,n){this.anchor=e,this.head=n}map(e){return new t(e.map(this.anchor),e.map(this.head))}resolve(e){return Qt.between(e.resolve(this.anchor),e.resolve(this.head))}},cn=class t extends Kt{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),o=e.resolve(i);return r?Kt.near(o):new t(o)}content(){return new Je(De.from(this.node),0,0)}eq(e){return e instanceof t&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Sz(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))}static create(e,n){return new t(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};cn.prototype.visible=!1;Kt.jsonID("node",cn);var Sz=class t{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new nE(r,r):new t(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&cn.isSelectable(r)?new cn(n):Kt.near(n)}},Xl=class t extends Kt{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=Je.empty){if(n==Je.empty){e.delete(0,e.doc.content.size);let r=Kt.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new t(e)}map(e){return new t(e)}eq(e){return e instanceof t}getBookmark(){return hZe}};Kt.jsonID("all",Xl);var hZe={map(){return this},resolve(t){return new Xl(t)}};function Iy(t,e,n,r,i,o=!1){if(e.inlineContent)return Qt.create(t,n);for(let a=r-(i>0?0:1);i>0?a<e.childCount:a>=0;a+=i){let s=e.child(a);if(s.isAtom){if(!o&&cn.isSelectable(s))return cn.create(t,n-(i<0?s.nodeSize:0))}else{let l=Iy(t,s,n+i,i<0?s.childCount:0,i,o);if(l)return l}n+=s.nodeSize*i}return null}function yge(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof Qo||i instanceof Jo))return;let o=t.mapping.maps[r],a;o.forEach((s,l,c,u)=>{a==null&&(a=u)}),t.setSelection(Kt.near(t.doc.resolve(a),n))}var xge=1,tE=2,wge=4,Lz=class extends Ay{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|xge)&~tE,this.storedMarks=null,this}get selectionSet(){return(this.updated&xge)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=tE,this}ensureMarks(e){return Gn.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&tE)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~tE,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Gn.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let a=this.doc.resolve(n);o=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,o)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(Kt.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=wge,this}get scrolledIntoView(){return(this.updated&wge)>0}};function vge(t,e){return!e||!t?t:t.bind(e)}var Ag=class{constructor(e,n,r){this.name=e,this.init=vge(n.init,r),this.apply=vge(n.apply,r)}},gZe=[new Ag("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ag("selection",{init(t,e){return t.selection||Kt.atStart(e.doc)},apply(t){return t.selection}}),new Ag("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Ag("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})],Kx=class{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=gZe.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ag(r.key,r.spec.state,r))})}},Ny=class t{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),i=null;for(;;){let o=!1;for(let a=0;a<this.config.plugins.length;a++){let s=this.config.plugins[a];if(s.spec.appendTransaction){let l=i?i[a].n:0,c=i?i[a].state:this,u=l<n.length&&s.spec.appendTransaction.call(s,l?n.slice(l):n,c,r);if(u&&r.filterTransaction(u,a)){if(u.setMeta("appendedTransaction",e),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<a?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),o=!0}i&&(i[a]={state:r,n:n.length})}}if(!o)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new t(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];n[o.name]=o.apply(e,this[o.name],this,n)}return n}get tr(){return new Lz(this)}static create(e){let n=new Kx(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new t(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new Kx(this.schema,e.plugins),r=n.fields,i=new t(n);for(let o=0;o<r.length;o++){let a=r[o].name;i[a]=this.hasOwnProperty(a)?this[a]:r[o].init(e,i)}return i}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Kx(e.schema,e.plugins),o=new t(i);return i.fields.forEach(a=>{if(a.name=="doc")o.doc=il.fromJSON(e.schema,n.doc);else if(a.name=="selection")o.selection=Kt.fromJSON(o.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let s in r){let l=r[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){o[a.name]=c.fromJSON.call(l,e,n[s],o);return}}o[a.name]=a.init(e,o)}}),o}};function kge(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=kge(i,e,{})),n[r]=i}return n}var Mr=class{constructor(e){this.spec=e,this.props={},e.props&&kge(e.props,this,this.props),this.key=e.key?e.key.key:Cge("plugin")}getState(e){return e[this.key]}},_z=Object.create(null);function Cge(t){return t in _z?t+"$"+ ++_z[t]:(_z[t]=0,t+"$")}var qr=class{constructor(e="key"){this.key=Cge(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}};var rE=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Sge(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}var Ez=(t,e,n)=>{let r=Sge(t,n);if(!r)return!1;let i=Rz(r);if(!i){let a=r.blockRange(),s=a&&$y(a);return s==null?!1:(e&&e(t.tr.lift(a,s).scrollIntoView()),!0)}let o=i.nodeBefore;if(Ege(t,i,e,-1))return!0;if(r.parent.content.size==0&&(Py(o,"end")||cn.isSelectable(o)))for(let a=r.depth;;a--){let s=Wx(t.doc,r.before(a),r.after(a),Je.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=t.tr.step(s);l.setSelection(Py(o,"end")?Kt.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):cn.create(l.doc,i.pos-o.nodeSize)),e(l.scrollIntoView())}return!0}if(a==1||r.node(a-1).childCount>1)break}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},Lge=(t,e,n)=>{let r=Sge(t,n);if(!r)return!1;let i=Rz(r);return i?bZe(t,i,e):!1};function bZe(t,e,n){let r=e.nodeBefore,i=r,o=e.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let a=e.nodeAfter,s=a,l=e.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let u=s.firstChild;if(!u)return!1;s=u}let c=Wx(t.doc,o,l,Je.empty);if(!c||c.from!=o||c instanceof Qo&&c.slice.size>=l-o)return!1;if(n){let u=t.tr.step(c);u.setSelection(Qt.create(u.doc,o)),n(u.scrollIntoView())}return!0}function Py(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var Tz=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;o=Rz(r)}let a=o&&o.nodeBefore;return!a||!cn.isSelectable(a)?!1:(e&&e(t.tr.setSelection(cn.create(t.doc,o.pos-a.nodeSize)).scrollIntoView()),!0)};function Rz(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function yZe(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}var xZe=(t,e,n)=>{let r=yZe(t,n);if(!r)return!1;let i=Mge(r);if(!i)return!1;let o=i.nodeAfter;if(Ege(t,i,e,1))return!0;if(r.parent.content.size==0&&(Py(o,"start")||cn.isSelectable(o))){let a=Wx(t.doc,r.before(),r.after(),Je.empty);if(a&&a.slice.size<a.to-a.from){if(e){let s=t.tr.step(a);s.setSelection(Py(o,"start")?Kt.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):cn.create(s.doc,s.mapping.map(i.pos))),e(s.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},wZe=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;o=Mge(r)}let a=o&&o.nodeAfter;return!a||!cn.isSelectable(a)?!1:(e&&e(t.tr.setSelection(cn.create(t.doc,o.pos)).scrollIntoView()),!0)};function Mge(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}var vZe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` +`).scrollIntoView()),!0)};function Az(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var kZe=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),a=Az(i.contentMatchAt(o));if(!a||!i.canReplaceWith(o,o,a))return!1;if(e){let s=n.after(),l=t.tr.replaceWith(s,s,a.createAndFill());l.setSelection(Kt.near(l.doc.resolve(s),1)),e(l.scrollIntoView())}return!0},CZe=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof Xl||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=Az(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let a=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=t.tr.insert(a,o.createAndFill());s.setSelection(Qt.create(s.doc,a+1)),e(s.scrollIntoView())}return!0},_Ze=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Tg(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&$y(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function SZe(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof cn&&e.selection.node.isBlock)return!r.parentOffset||!Tg(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],a,s,l=!1,c=!1;for(let m=r.depth;;m--)if(r.node(m).isBlock){l=r.end(m)==r.pos+(r.depth-m),c=r.start(m)==r.pos-(r.depth-m),s=Az(r.node(m-1).contentMatchAt(r.indexAfter(m-1)));let h=t&&t(i.parent,l,r);o.unshift(h||(l&&s?{type:s}:null)),a=m;break}else{if(m==1)return!1;o.unshift(null)}let u=e.tr;(e.selection instanceof Qt||e.selection instanceof Xl)&&u.deleteSelection();let d=u.mapping.map(r.pos),p=Tg(u.doc,d,o.length,o);if(p||(o[0]=s?{type:s}:null,p=Tg(u.doc,d,o.length,o)),!p)return!1;if(u.split(d,o.length,o),!l&&c&&r.node(a).type!=s){let m=u.mapping.map(r.before(a)),f=u.doc.resolve(m);s&&r.node(a-1).canReplaceWith(f.index(),f.index()+1,s)&&u.setNodeMarkup(u.mapping.map(r.before(a)),s)}return n&&n(u.scrollIntoView()),!0}}var LZe=SZe();var MZe=(t,e)=>(e&&e(t.tr.setSelection(new Xl(t.doc))),!0);function EZe(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||Rg(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function Ege(t,e,n,r){let i=e.nodeBefore,o=e.nodeAfter,a,s,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&EZe(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(a=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(a[0]||o.type).validEnd){if(n){let m=e.pos+o.nodeSize,f=De.empty;for(let g=a.length-1;g>=0;g--)f=De.from(a[g].create(null,f));f=De.from(i.copy(f));let h=t.tr.step(new Jo(e.pos-1,m,e.pos,m,new Je(f,1,0),a.length,!0)),x=h.doc.resolve(m+2*a.length);x.nodeAfter&&x.nodeAfter.type==i.type&&Rg(h.doc,x.pos)&&h.join(x.pos),n(h.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:Kt.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),p=d&&$y(d);if(p!=null&&p>=e.depth)return n&&n(t.tr.lift(d,p).scrollIntoView()),!0;if(c&&Py(o,"start",!0)&&Py(i,"end")){let m=i,f=[];for(;f.push(m),!m.isTextblock;)m=m.lastChild;let h=o,x=1;for(;!h.isTextblock;h=h.firstChild)x++;if(m.canReplace(m.childCount,m.childCount,h.content)){if(n){let g=De.empty;for(let b=f.length-1;b>=0;b--)g=De.from(f[b].copy(g));let y=t.tr.step(new Jo(e.pos-f.length,e.pos+o.nodeSize,e.pos+x,e.pos+o.nodeSize-x,new Je(g,f.length,0),0,!0));n(y.scrollIntoView())}return!0}}return!1}function Tge(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(e.tr.setSelection(Qt.create(e.doc,t<0?i.start(o):i.end(o)))),!0):!1}}var TZe=Tge(-1),RZe=Tge(1);function iE(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,a=i.blockRange(o),s=a&&Eg(a,t,e);return s?(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0):!1}}function jy(t,e=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:a},$to:{pos:s}}=n.selection.ranges[o];n.doc.nodesBetween(a,s,(l,c)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,t)}})}if(!i)return!1;if(r){let o=n.tr;for(let a=0;a<n.selection.ranges.length;a++){let{$from:{pos:s},$to:{pos:l}}=n.selection.ranges[a];o.setBlockType(s,l,t,e)}r(o.scrollIntoView())}return!0}}function AZe(t,e,n,r){for(let i=0;i<e.length;i++){let{$from:o,$to:a}=e[i],s=o.depth==0?t.inlineContent&&t.type.allowsMarkType(n):!1;if(t.nodesBetween(o.pos,a.pos,(l,c)=>{if(s||!r&&l.isAtom&&l.isInline&&c>=o.pos&&c+l.nodeSize<=a.pos)return!1;s=l.inlineContent&&l.type.allowsMarkType(n)}),s)return!0}return!1}function $Ze(t){let e=[];for(let n=0;n<t.length;n++){let{$from:r,$to:i}=t[n];r.doc.nodesBetween(r.pos,i.pos,(o,a)=>{if(o.isAtom&&o.content.size&&o.isInline&&a>=r.pos&&a+o.nodeSize<=i.pos)return a+1>r.pos&&e.push(new J1(r,r.doc.resolve(a+1))),r=r.doc.resolve(a+1+o.content.size),!1}),r.pos<i.pos&&e.push(new J1(r,i))}return e}function Oy(t,e=null,n){let r=(n&&n.removeWhenPresent)!==!1,i=(n&&n.enterInlineAtoms)!==!1,o=!(n&&n.includeWhitespace);return function(a,s){let{empty:l,$cursor:c,ranges:u}=a.selection;if(l&&!c||!AZe(a.doc,u,t,i))return!1;if(s)if(c)t.isInSet(a.storedMarks||c.marks())?s(a.tr.removeStoredMark(t)):s(a.tr.addStoredMark(t.create(e)));else{let d,p=a.tr;i||(u=$Ze(u)),r?d=!u.some(m=>a.doc.rangeHasMark(m.$from.pos,m.$to.pos,t)):d=!u.every(m=>{let f=!1;return p.doc.nodesBetween(m.$from.pos,m.$to.pos,(h,x,g)=>{if(f)return!1;f=!t.isInSet(h.marks)&&!!g&&g.type.allowsMarkType(t)&&!(h.isText&&/^\s*$/.test(h.textBetween(Math.max(0,m.$from.pos-x),Math.min(h.nodeSize,m.$to.pos-x))))}),!f});for(let m=0;m<u.length;m++){let{$from:f,$to:h}=u[m];if(!d)p.removeMark(f.pos,h.pos,t);else{let x=f.pos,g=h.pos,y=f.nodeAfter,b=h.nodeBefore,w=o&&y&&y.isText?/^\s*/.exec(y.text)[0].length:0,v=o&&b&&b.isText?/\s*$/.exec(b.text)[0].length:0;x+w<g&&(x+=w,g-=v),p.addMark(x,g,t.create(e))}}s(p.scrollIntoView())}return!0}}function _m(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}var Mz=_m(rE,Ez,Tz),_ge=_m(rE,xZe,wZe),Cm={Enter:_m(vZe,CZe,_Ze,LZe),"Mod-Enter":kZe,Backspace:Mz,"Mod-Backspace":Mz,"Shift-Backspace":Mz,Delete:_ge,"Mod-Delete":_ge,"Mod-a":MZe},Rge={"Ctrl-h":Cm.Backspace,"Alt-Backspace":Cm["Mod-Backspace"],"Ctrl-d":Cm.Delete,"Ctrl-Alt-Backspace":Cm["Mod-Delete"],"Alt-Delete":Cm["Mod-Delete"],"Alt-d":Cm["Mod-Delete"],"Ctrl-a":TZe,"Ctrl-e":RZe};for(let t in Cm)Rge[t]=Cm[t];var IZe=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform?os.platform()=="darwin":!1,oE=IZe?Rge:Cm;var Io=class{constructor(e,n,r={}){this.match=e,this.match=e,this.handler=typeof n=="string"?NZe(n):n,this.undoable=r.undoable!==!1,this.inCode=r.inCode||!1,this.inCodeMark=r.inCodeMark!==!1}};function NZe(t){return function(e,n,r,i){let o=t;if(n[1]){let a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;let s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return e.tr.insertText(o,r,i)}}var Age=(t,e)=>{let n=t.plugins;for(let r=0;r<n.length;r++){let i=n[r],o;if(i.spec.isInputRules&&(o=i.getState(t))){if(e){let a=t.tr,s=o.transform;for(let l=s.steps.length-1;l>=0;l--)a.step(s.steps[l].invert(s.docs[l]));if(o.text){let l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else a.delete(o.from,o.to);e(a)}return!0}}return!1},uVt=new Io(/--$/,"\u2014",{inCodeMark:!1}),dVt=new Io(/\.\.\.$/,"\u2026",{inCodeMark:!1}),pVt=new Io(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"\u201C",{inCodeMark:!1}),mVt=new Io(/"$/,"\u201D",{inCodeMark:!1}),fVt=new Io(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"\u2018",{inCodeMark:!1}),hVt=new Io(/'$/,"\u2019",{inCodeMark:!1});function aE(t,e,n=null,r){return new Io(t,(i,o,a,s)=>{let l=n instanceof Function?n(o):n,c=i.tr.delete(a,s),u=c.doc.resolve(a),d=u.blockRange(),p=d&&Eg(d,e,l);if(!p)return null;c.wrap(d,p);let m=c.doc.resolve(a-1).nodeBefore;return m&&m.type==e&&Rg(c.doc,a-1)&&(!r||r(o,m))&&c.join(a-1),c})}function $z(t,e,n=null){return new Io(t,(r,i,o,a)=>{let s=r.doc.resolve(o),l=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),e)?r.tr.delete(o,a).setBlockType(o,o,e,l):null})}var eh=typeof navigator<"u"?navigator:null,$ge=typeof document<"u"?document:null,th=eh&&eh.userAgent||"",Nz=/Edge\/(\d+)/.exec(th),Nge=/MSIE \d/.exec(th),Pz=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(th),Oz=!!(Nge||Pz||Nz),vVt=Nge?document.documentMode:Pz?+Pz[1]:Nz?+Nz[1]:0,PZe=!Oz&&/gecko\/(\d+)/i.test(th),kVt=PZe&&+(/Firefox\/(\d+)/.exec(th)||[0,0])[1],jz=!Oz&&/Chrome\/(\d+)/.exec(th),jZe=!!jz,CVt=jz?+jz[1]:0,OZe=!Oz&&!!eh&&/Apple Computer/.test(eh.vendor),DZe=OZe&&(/Mobile\/\w+/.test(th)||!!eh&&eh.maxTouchPoints>2),_Vt=DZe||(eh?/Mac/.test(eh.platform):!1),FZe=/Android \d/.test(th),BZe=!!$ge&&"webkitFontSmoothing"in $ge.documentElement.style,SVt=BZe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Iz(t,e,n,r,i,o){if(t.composing)return!1;let a=t.state,s=a.doc.resolve(e);if(s.parent.type.spec.code)return!1;let l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,void 0,"\uFFFC")+r;for(let c of i){let u=c,d=u.match.exec(l),p=d&&d[0]&&u.handler(a,d,e-(d[0].length-r.length),n);if(p)return u.undoable!==!1&&p.setMeta(o,{transform:p,from:e,to:n,text:r}),t.dispatch(p),!0}return!1}var zZe=new qr("MILKDOWN_CUSTOM_INPUTRULES");function Pge({rules:t}){let e=new Mr({key:zZe,isInputRules:!0,state:{init(){return null},apply(n,r){let i=n.getMeta(this);return i||(n.selectionSet||n.docChanged?null:r)}},props:{handleTextInput(n,r,i,o){return Iz(n,r,i,o,t,e)},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&Iz(n,r.pos,r.pos,"",t,e)}),!1),keydown:(n,r)=>!(FZe&&jZe&&r.key==="Enter")||n.composing?!1:n.someProp("handleKeyDown",i=>i(n,r))?(r.preventDefault(),!0):!1},handleKeyDown(n,r){if(r.key!=="Enter")return!1;let{$cursor:i}=n.state.selection;return i?Iz(n,i.pos,i.pos,` +`,t,e):!1}}});return e}function jge(t){return t.some(e=>e.type.spec.code)}function Ige(t,e,n){if(e>=n)return!1;let r=!1;return t.doc.nodesBetween(e,n,i=>(i.isInline&&jge(i.marks)&&(r=!0),!r)),r}function qZe(t,e){var n;return jge((n=t.storedMarks)!=null?n:t.doc.resolve(e).marks())}function $g(t,e,n={}){return new Io(t,(r,i,o,a)=>{var s,l,c,u;let{tr:d}=r,p=i.length,m=i[p-1],f=i[0],h=[],x,g={group:m,fullMatch:f,start:o,end:a},y=(s=n.updateCaptured)==null?void 0:s.call(n,g);if(Object.assign(g,y),{group:m,fullMatch:f,start:o,end:a}=g,f===null||m?.trim()==="")return null;if(m){let b=f.search(/\S/),w=o+f.indexOf(m),v=w+m.length,k=Ige(r,o+b,w),_=v<a&&Ige(r,v,a);if(k||_||qZe(r,a))return null;h=(l=d.storedMarks)!=null?l:[],v<a&&d.delete(v,a),w>o&&d.delete(o+b,w),x=o+b+m.length;let L=(c=n.getAttr)==null?void 0:c.call(n,i);d.addMark(o,x,e.create(L)),d.setStoredMarks(h),(u=n.beforeDispatch)==null||u.call(n,{match:i,start:o,end:a,tr:d})}return d})}function Dz(t){return Object.assign(Object.create(t),t).setTime(Date.now())}function HZe(t,e){return Array.isArray(t)&&t.includes(e.type)||e.type===t}function Oge(t){if(t.content.childCount===1){let e=t.content.firstChild;if(e?.type.name==="text"&&e.marks.length===0)return e;if(e?.type.name==="paragraph"&&e.childCount===1){let n=e.firstChild;if(n?.type.name==="text"&&n.marks.length===0)return n}}return!1}function GZe(t){return e=>{for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r)){let i=e.before(n),o=e.after(n);return{from:i,to:o,node:r}}}}}function Dge(t,e){return GZe(n=>n.type===e)(t)}function Fge(t,e){let n=e.nodes[t];if(!n)throw ahe("node",t);return n}function Bge(t){return e=>{for(let n=e.depth;n>0;n--){let r=e.node(n);if(t(r))return{pos:e.before(n),start:e.start(n),depth:n,node:r}}}}function zge(t,e){if(!(t instanceof cn))return;let{node:n,$from:r}=t;if(HZe(e,n))return{node:n,pos:r.pos,start:r.start(r.depth),depth:r.depth}}var qge=(t,e)=>{let{selection:n,doc:r}=t;if(n instanceof cn)return{hasNode:n.node.type===e,pos:n.from,target:n.node};let{from:i,to:o}=n,a=!1,s=-1,l=null;return r.nodesBetween(i,o,(c,u)=>l?!1:c.type===e?(a=!0,s=u,l=c,!1):!0),{hasNode:a,pos:s,target:l}};var Sm={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},lE={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},UZe=typeof navigator<"u"&&/Mac/.test(navigator.platform),VZe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(so=0;so<10;so++)Sm[48+so]=Sm[96+so]=String(so);var so;for(so=1;so<=24;so++)Sm[so+111]="F"+so;var so;for(so=65;so<=90;so++)Sm[so]=String.fromCharCode(so+32),lE[so]=String.fromCharCode(so);var so;for(sE in Sm)lE.hasOwnProperty(sE)||(lE[sE]=Sm[sE]);var sE;function Hge(t){var e=UZe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||VZe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?lE:Sm)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}var ZZe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),WZe=typeof navigator<"u"&&/Win/.test(navigator.platform);function KZe(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,o,a;for(let s=0;s<e.length-1;s++){let l=e[s];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))ZZe?a=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),a&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function XZe(t){let e=Object.create(null);for(let n in t)e[KZe(n)]=t[n];return e}function Fz(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function cE(t){return new Mr({props:{handleKeyDown:Bz(t)}})}function Bz(t){let e=XZe(t);return function(n,r){let i=Hge(r),o,a=e[Fz(i,r)];if(a&&a(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let s=e[Fz(i,r,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(WZe&&r.ctrlKey&&r.altKey)&&(o=Sm[r.keyCode])&&o!=i){let s=e[Fz(o,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}var Uge=class{},Vge=class{constructor(){this.elements=[],this.size=()=>this.elements.length,this.top=()=>this.elements.at(-1),this.push=t=>{this.top()?.push(t)},this.open=t=>{this.elements.push(t)},this.close=()=>{let t=this.elements.pop();if(!t)throw vB();return t}}},YZe=class Zge extends Uge{constructor(e,n,r){super(),this.type=e,this.content=n,this.attrs=r}push(e,...n){this.content.push(e,...n)}pop(){return this.content.pop()}static create(e,n,r){return new Zge(e,n,r)}},Wge=class extends Vge{#e;static{this.create=(t,e)=>{let n=new this(t);return r=>(n.run(e,r),n.toDoc())}}constructor(t){super(),this.#e=Gn.none,this.#t=e=>e.isText,this.#n=(e,n)=>{if(this.#t(e)&&this.#t(n)&&Gn.sameSet(e.marks,n.marks))return this.schema.text(e.text+n.text,e.marks)},this.#r=e=>{let n=Object.values({...this.schema.nodes,...this.schema.marks}).find(r=>r.spec.parseMarkdown.match(e));if(!n)throw ihe(e);return n},this.#i=e=>{let n=this.#r(e);n.spec.parseMarkdown.runner(this,e,n)},this.injectRoot=(e,n,r)=>(this.openNode(n,r),this.next(e.children),this),this.openNode=(e,n)=>(this.open(YZe.create(e,[],n)),this),this.#o=()=>{this.#e=Gn.none;let e=this.close();return this.#s(e.type,e.attrs,e.content)},this.closeNode=()=>{try{this.#o()}catch(e){console.error(e)}return this},this.#s=(e,n,r)=>{let i=e.createAndFill(n,r,this.#e);if(!i)throw rhe(e,n,r);return this.push(i),i},this.addNode=(e,n,r)=>{try{this.#s(e,n,r)}catch(i){console.error(i)}return this},this.openMark=(e,n)=>{let r=e.create(n);return this.#e=r.addToSet(this.#e),this},this.closeMark=e=>(this.#e=e.removeFromSet(this.#e),this),this.addText=e=>{try{let n=this.top();if(!n)throw vB();let r=n.pop(),i=this.schema.text(e,this.#e);if(!r)return n.push(i),this;let o=this.#n(r,i);return o?(n.push(o),this):(n.push(r,i),this)}catch(n){return console.error(n),this}},this.build=()=>{let e;do e=this.#o();while(this.size());return e},this.next=(e=[])=>([e].flat().forEach(n=>this.#i(n)),this),this.toDoc=()=>this.build(),this.run=(e,n)=>{let r=e.runSync(e.parse(n),n);return this.next(r),this},this.schema=t}#t;#n;#r;#i;#o;#s},Gge=class Kge extends Uge{constructor(e,n,r,i={}){super(),this.type=e,this.children=n,this.value=r,this.props=i,this.push=(o,...a)=>{this.children||(this.children=[]),this.children.push(o,...a)},this.pop=()=>this.children?.pop()}static{this.create=(e,n,r,i={})=>new Kge(e,n,r,i)}},QZe=t=>Object.prototype.hasOwnProperty.call(t,"size"),Xge=class extends Vge{#e;static{this.create=(t,e)=>{let n=new this(t);return r=>(n.run(r),n.toString(e))}}constructor(t){super(),this.#e=[],this.#t=e=>{let n=Object.values({...this.schema.nodes,...this.schema.marks}).find(r=>r.spec.toMarkdown.match(e));if(!n)throw ohe(e.type);return n},this.#n=e=>this.#t(e).spec.toMarkdown.runner(this,e),this.#r=(e,n)=>this.#t(e).spec.toMarkdown.runner(this,e,n),this.#i=e=>{let n=o=>o.type.spec.priority??50,r=[...e].sort((o,a)=>n(o)-n(a)),i=[];return this.#e.forEach(({mark:o})=>{let a=r.findIndex(s=>s.eq(o));a>=0&&i.push(...r.splice(a,1))}),i.concat(r)},this.#o=e=>{let n=e?.marks,r=0;for(;r<this.#e.length;){let{mark:i,spanning:o}=this.#e[r];if(o&&n?.some(a=>a.eq(i)))r++;else break}for(let i=this.#e.length-1;i>=r;i--)this.#m(this.#e[i].mark)},this.#s=(e,n)=>{this.#i(e.marks).every(r=>!this.#r(r,e))&&this.#n(e),this.#o(n)},this.#c=e=>{let{children:n}=e;return n&&(e.children=n.reduce((r,i,o)=>{if(o===0)return[i];let a=r.at(-1);if(a&&a.isMark&&i.isMark){let{children:s,...l}=i,{children:c,...u}=a;if(i.type===a.type&&s&&c&&JSON.stringify(l)===JSON.stringify(u)){let d={...u,children:[...c,...s]};return r.slice(0,-1).concat(this.#c(d))}}return r.concat(i)},[])),e},this.#a=e=>{let n={...e.props,type:e.type};return e.children&&(n.children=e.children),e.value&&(n.value=e.value),n},this.openNode=(e,n,r)=>(this.open(Gge.create(e,void 0,n,r)),this),this.#g=(e,n)=>{let r="",i="",o=e.children;if(o){let s=o[0],l=o.at(-1);if(l&&l.type==="text"&&l.value.endsWith(" ")){let c=l.value,u=c.trimEnd();i=c.slice(u.length),l.value=u}if(s&&s.type==="text"&&s.value.startsWith(" ")){let c=s.value,u=c.trimStart();r=c.slice(0,c.length-u.length),s.value=u}}r.length&&this.#d("text",void 0,r);let a=n();return i.length&&this.#d("text",void 0,i),a},this.#f=(e=!1)=>{let n=this.close(),r=()=>this.#d(n.type,n.children,n.value,n.props);return e?this.#g(n,r):r()},this.closeNode=()=>(this.#f(),this),this.#d=(e,n,r,i)=>{let o=Gge.create(e,n,r,i),a=this.#c(this.#a(o));return this.push(a),a},this.addNode=(e,n,r,i)=>(this.#d(e,n,r,i),this),this.#p=(e,n,r,i)=>this.#e.some(o=>o.mark.eq(e))?this:(this.#e.push({mark:e,spanning:r==null}),this.openNode(n,r,{...i,isMark:!0})),this.#m=e=>{let n=-1;for(let r=this.#e.length-1;r>=0;r--)if(this.#e[r].mark.eq(e)){n=r;break}n<0||(this.#e.splice(n,1),this.#f(!0))},this.withMark=(e,n,r,i)=>(this.#p(e,n,r,i),this),this.closeMark=e=>(this.#m(e),this),this.build=()=>{let e=null;do e=this.#f();while(this.size());return e.children||(e.children=[]),e},this.next=e=>QZe(e)?(e.forEach((n,r,i)=>{this.#s(n,e.maybeChild(i+1)??void 0)}),this):(this.#s(e),this),this.toString=e=>e.stringify(this.build()),this.run=e=>(this.#e=[],this.next(e),this),this.schema=t}#t;#n;#r;#i;#o;#s;#c;#a;#g;#f;#d;#p;#m};var ea=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},qy=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e},Vz=null,Mm=function(t,e,n){let r=Vz||(Vz=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},JZe=function(){Vz=null},Fg=function(t,e,n,r){return n&&(Yge(t,e,n,r,-1)||Yge(t,e,n,r,1))},eWe=/^(img|br|input|textarea|hr)$/i;function Yge(t,e,n,r,i){for(var o;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Xc(t))){let a=t.parentNode;if(!a||a.nodeType!=1||r8(t)||eWe.test(t.nodeName)||t.contentEditable=="false")return!1;e=ea(t)+(i<0?0:1),t=a}else if(t.nodeType==1){let a=t.childNodes[e+(i<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((o=a.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)e+=i;else return!1;else t=a,e=i<0?Xc(t):0}else return!1}}function Xc(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function tWe(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Xc(t)}else if(t.parentNode&&!r8(t))e=ea(t),t=t.parentNode;else return null}}function nWe(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!r8(t))e=ea(t)+1,t=t.parentNode;else return null}}function rWe(t,e,n){for(let r=e==0,i=e==Xc(t);r||i;){if(t==n)return!0;let o=ea(t);if(t=t.parentNode,!t)return!1;r=r&&o==0,i=i&&o==Xc(t)}}function r8(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}var wE=function(t){return t.focusNode&&Fg(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Ig(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function iWe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function oWe(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(Xc(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(Xc(r.startContainer),r.startOffset)}}}var zd=typeof navigator<"u"?navigator:null,Qge=typeof document<"u"?document:null,sh=zd&&zd.userAgent||"",Zz=/Edge\/(\d+)/.exec(sh),R5e=/MSIE \d/.exec(sh),Wz=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(sh),ol=!!(R5e||Wz||Zz),oh=R5e?document.documentMode:Wz?+Wz[1]:Zz?+Zz[1]:0,Yc=!ol&&/gecko\/(\d+)/i.test(sh);Yc&&+(/Firefox\/(\d+)/.exec(sh)||[0,0])[1];var Kz=!ol&&/Chrome\/(\d+)/.exec(sh),ta=!!Kz,A5e=Kz?+Kz[1]:0,Ba=!ol&&!!zd&&/Apple Computer/.test(zd.vendor),Hy=Ba&&(/Mobile\/\w+/.test(sh)||!!zd&&zd.maxTouchPoints>2),Kc=Hy||(zd?/Mac/.test(zd.platform):!1),$5e=zd?/Win/.test(zd.platform):!1,Em=/Android \d/.test(sh),i8=!!Qge&&"webkitFontSmoothing"in Qge.documentElement.style,aWe=i8?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function sWe(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Lm(t,e){return typeof t=="number"?t:t[e]}function lWe(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function Jge(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let a=n||t.dom;a;){if(a.nodeType!=1){a=qy(a);continue}let s=a,l=s==o.body,c=l?sWe(o):lWe(s),u=0,d=0;if(e.top<c.top+Lm(r,"top")?d=-(c.top-e.top+Lm(i,"top")):e.bottom>c.bottom-Lm(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Lm(i,"top")-c.top:e.bottom-c.bottom+Lm(i,"bottom")),e.left<c.left+Lm(r,"left")?u=-(c.left-e.left+Lm(i,"left")):e.right>c.right-Lm(r,"right")&&(u=e.right-c.right+Lm(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let m=s.scrollLeft,f=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);let h=s.scrollLeft-m,x=s.scrollTop-f;e={left:e.left-h,top:e.top-x,right:e.right-h,bottom:e.bottom-x}}let p=l?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(p))break;a=p=="absolute"?a.offsetParent:qy(a)}}function cWe(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,a=n+1;a<Math.min(innerHeight,e.bottom);a+=5){let s=t.root.elementFromPoint(o,a);if(!s||s==t.dom||!t.dom.contains(s))continue;let l=s.getBoundingClientRect();if(l.top>=n-20){r=s,i=l.top;break}}return{refDOM:r,refTop:i,stack:I5e(t.dom)}}function I5e(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=qy(r));return e}function uWe({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;N5e(n,r==0?0:r-e)}function N5e(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:o}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=o&&(r.scrollLeft=o)}}var Dy=null;function dWe(t){if(t.setActive)return t.setActive();if(Dy)return t.focus(Dy);let e=I5e(t);t.focus(Dy==null?{get preventScroll(){return Dy={preventScroll:!0},!0}}:void 0),Dy||(Dy=!1,N5e(e,0))}function P5e(t,e){let n,r=2e8,i,o=0,a=e.top,s=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let p;if(u.nodeType==1)p=u.getClientRects();else if(u.nodeType==3)p=Mm(u).getClientRects();else continue;for(let m=0;m<p.length;m++){let f=p[m];if(f.top<=a&&f.bottom>=s){a=Math.max(f.bottom,a),s=Math.min(f.top,s);let h=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(h<r){n=u,r=h,i=h&&n.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,u.nodeType==1&&h&&(o=d+(e.left>=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!l&&f.left<=e.left&&f.right>=e.left&&(l=u,c={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!n&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?pWe(n,i):!n||r&&n.nodeType==1?{node:t,offset:o}:P5e(n,i)}function pWe(t,e){let n=t.nodeValue.length,r=document.createRange(),i;for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let a=nh(r,1);if(a.top!=a.bottom&&uq(e,a)){i={node:t,offset:o+(e.left>=(a.left+a.right)/2?1:0)};break}}return r.detach(),i||{node:t,offset:0}}function uq(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function mWe(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function fWe(t,e,n){let{node:r,offset:i}=P5e(e,n),o=-1;if(r.nodeType==1&&!r.firstChild){let a=r.getBoundingClientRect();o=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(r,i,o)}function hWe(t,e,n,r){let i=-1;for(let o=e,a=!1;o!=t.dom;){let s=t.docView.nearestDesc(o,!0),l;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((l=s.dom.getBoundingClientRect()).width||l.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!a&&l.left>r.left||l.top>r.top?i=s.posBefore:(!a&&l.right<r.left||l.bottom<r.top)&&(i=s.posAfter),a=!0),!s.contentDOM&&i<0&&!s.node.isText))return(s.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?s.posBefore:s.posAfter;o=s.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function j5e(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let a=t.childNodes[o];if(a.nodeType==1){let s=a.getClientRects();for(let l=0;l<s.length;l++){let c=s[l];if(uq(e,c))return j5e(a,e,c)}}if((o=(o+1)%r)==i)break}return t}function gWe(t,e){let n=t.dom.ownerDocument,r,i=0,o=oWe(n,e.left,e.top);o&&({node:r,offset:i}=o);let a=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),s;if(!a||!t.dom.contains(a.nodeType!=1?a.parentNode:a)){let c=t.dom.getBoundingClientRect();if(!uq(e,c)||(a=j5e(t.dom,e,c),!a))return null}if(Ba)for(let c=a;r&&c;c=qy(c))c.draggable&&(r=void 0);if(a=mWe(a,e),r){if(Yc&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let u=r.childNodes[i],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&i++}let c;i8&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=hWe(t,r,i,e))}s==null&&(s=fWe(t,a,e));let l=t.docView.nearestDesc(a,!0);return{pos:s,inside:l?l.posAtStart-l.border:-1}}function e5e(t){return t.top<t.bottom||t.left<t.right}function nh(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(e5e(r))return r}return Array.prototype.find.call(n,e5e)||t.getBoundingClientRect()}var bWe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function O5e(t,e,n){let{node:r,offset:i,atom:o}=t.docView.domFromPos(e,n<0?-1:1),a=i8||Yc;if(r.nodeType==3)if(a&&(bWe.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=nh(Mm(r,i,i),n);if(Yc&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let c=nh(Mm(r,i-1,i-1),-1);if(c.top==l.top){let u=nh(Mm(r,i,i+1),-1);if(u.top!=l.top)return Xx(u,u.left<c.left)}}return l}else{let l=i,c=i,u=n<0?1:-1;return n<0&&!i?(c++,u=-1):n>=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,Xx(nh(Mm(r,l,c),u),u<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==Xc(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return zz(l.getBoundingClientRect(),!1)}if(o==null&&i<Xc(r)){let l=r.childNodes[i];if(l.nodeType==1)return zz(l.getBoundingClientRect(),!0)}return zz(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==Xc(r))){let l=r.childNodes[i-1],c=l.nodeType==3?Mm(l,Xc(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Xx(nh(c,1),!1)}if(o==null&&i<Xc(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Mm(l,0,a?0:1):l.nodeType==1?l:null:null;if(c)return Xx(nh(c,-1),!0)}return Xx(nh(r.nodeType==3?Mm(r):r,-n),n>=0)}function Xx(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function zz(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function D5e(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function yWe(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return D5e(t,e,()=>{let{node:o}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(o,!0);if(!s)break;if(s.node.isBlock){o=s.contentDOM||s.dom;break}o=s.dom.parentNode}let a=O5e(t,i.pos,1);for(let s=o.firstChild;s;s=s.nextSibling){let l;if(s.nodeType==1)l=s.getClientRects();else if(s.nodeType==3)l=Mm(s,0,s.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}var xWe=/[\u0590-\u08ac]/;function wWe(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=t.domSelection();return s?!xWe.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?o:a:D5e(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),p=s.caretBidiLevel;s.modify("move",n,"character");let m=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:f,focusOffset:h}=t.domSelectionRange(),x=f&&!m.contains(f.nodeType==1?f:f.parentNode)||l==f&&c==h;try{s.collapse(u,d),l&&(l!=u||c!=d)&&s.extend&&s.extend(l,c)}catch{}return p!=null&&(s.caretBidiLevel=p),x}):r.pos==r.start()||r.pos==r.end()}var t5e=null,n5e=null,r5e=!1;function vWe(t,e,n){return t5e==e&&n5e==n?r5e:(t5e=e,n5e=n,r5e=n=="up"||n=="down"?yWe(t,e,n):wWe(t,e,n))}var Qc=0,i5e=1,Ng=2,qd=3,Bg=class{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Qc,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let o,a;if(e==this.contentDOM)o=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((a=o.pmViewDesc)&&a.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(a)+a.size:this.posAtStart}else{let o,a;if(e==this.contentDOM)o=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((a=o.pmViewDesc)&&a.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(a):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=n>ea(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),a;if(o&&(!n||o.node))if(r&&(a=o.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))r=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],o=r+i.size;if(r==e&&o!=r){for(;!i.border&&i.children.length;)for(let a=0;a<i.children.length;a++){let s=i.children[a];if(s.size){i=s;break}}return i}if(e<o)return i.descAt(e-r-i.border);r=o}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let a=this.children[r],s=o+a.size;if(s>e||a instanceof pE){i=e-o;break}o=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof uE&&o.side>=0;r--);if(n<=0){let o,a=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,a=!1);return o&&n&&a&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?ea(o.dom)+1:0}}else{let o,a=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,a=!1);return o&&a&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?ea(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let a=r,s=0;;s++){let l=this.children[s],c=a+l.size;if(i==-1&&e<=c){let u=a+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=a;for(let d=s;d>0;d--){let p=this.children[d-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){i=ea(p.dom)+1;break}e-=p.size}i==-1&&(i=0)}if(i>-1&&(c>n||s==this.children.length-1)){n=c;for(let u=s+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){o=ea(d.dom);break}n+=d.size}o==-1&&(o=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,i=!1){let o=Math.min(e,n),a=Math.max(e,n);for(let m=0,f=0;m<this.children.length;m++){let h=this.children[m],x=f+h.size;if(o>f&&a<x)return h.setSelection(e-f-h.border,n-f-h.border,r,i);f=x}let s=this.domFromPos(e,e?-1:1),l=n==e?s:this.domFromPos(n,n?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),d=!1;if((Yc||Ba)&&e==n){let{node:m,offset:f}=s;if(m.nodeType==3){if(d=!!(f&&m.nodeValue[f-1]==` +`),d&&f==m.nodeValue.length)for(let h=m,x;h;h=h.parentNode){if(x=h.nextSibling){x.nodeName=="BR"&&(s=l={node:x.parentNode,offset:ea(x)+1});break}let g=h.pmViewDesc;if(g&&g.node&&g.node.isBlock)break}}else{let h=m.childNodes[f-1];d=h&&(h.nodeName=="BR"||h.contentEditable=="false")}}if(Yc&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let m=u.focusNode.childNodes[u.focusOffset];m&&m.contentEditable=="false"&&(i=!0)}if(!(i||d&&Ba)&&Fg(s.node,s.offset,u.anchorNode,u.anchorOffset)&&Fg(l.node,l.offset,u.focusNode,u.focusOffset))return;let p=!1;if((c.extend||e==n)&&!(d&&Yc)){c.collapse(s.node,s.offset);try{e!=n&&c.extend(l.node,l.offset),p=!0}catch{}}if(!p){if(e>n){let f=s;s=l,l=f}let m=document.createRange();m.setEnd(l.node,l.offset),m.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(m)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],a=r+o.size;if(r==a?e<=a&&n>=r:e<a&&n>r){let s=r+o.border,l=a-o.border;if(e>=s&&n<=l){this.dirty=e==r||n==a?Ng:i5e,e==s&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=qd:o.markDirty(e-s,n-s);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?Ng:qd}r=a}this.dirty=Ng}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Ng:i5e;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},uE=class extends Bg{constructor(e,n,r,i){let o,a=n.type.toDOM;if(typeof a=="function"&&(a=a(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(a.nodeType!=1){let s=document.createElement("span");s.appendChild(a),a=s}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==Qc&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},Xz=class extends Bg{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}},Gy=class t extends Bg{constructor(e,n,r,i,o){super(e,[],r,i),this.mark=n,this.spec=o}static create(e,n,r,i){let o=i.nodeViews[n.type.name],a=o&&o(n,i,r);return(!a||!a.dom)&&(a=Bd.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new t(e,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&qd||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=qd&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Qc){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Qc}}slice(e,n,r){let i=t.create(this.parent,this.mark,!0,r),o=this.children,a=this.size;n<a&&(o=eq(o,n,a,r)),e>0&&(o=eq(o,0,e,r));for(let s=0;s<o.length;s++)o[s].parent=i;return i.children=o,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},ah=class t extends Bg{constructor(e,n,r,i,o,a,s,l,c){super(e,[],o,a),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=s}static create(e,n,r,i,o,a){let s=o.nodeViews[n.type.name],l,c=s&&s(n,o,()=>{if(!l)return a;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Bd.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let p=u;return u=z5e(u,r,n),c?l=new Yz(e,n,r,i,u,d||null,p,c,o,a+1):n.isText?new dE(e,n,r,i,u,p,o):new t(e,n,r,i,u,d||null,p,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>De.empty)}return e}matchesNode(e,n,r){return this.dirty==Qc&&e.eq(this.node)&&mE(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,o=e.composing?this.localCompositionInfo(e,n):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new Jz(this,a&&a.node,e);SWe(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e,u):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Gn.none:this.node.child(u).marks,r,e,u),l.placeWidget(c,e,i)},(c,u,d,p)=>{l.syncToMarks(c.marks,r,e,p);let m;l.findNodeMatch(c,u,d,p)||s&&e.state.selection.from>i&&e.state.selection.to<i+c.nodeSize&&(m=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,d,m,e)||l.updateNextNode(c,u,d,e,p,i)||l.addNode(c,u,d,e,i),i+=c.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Ng)&&(a&&this.protectLocalComposition(e,a),F5e(this.contentDOM,this.children,e),Hy&&LWe(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof Qt)||r<n||i>n+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,s=MWe(this.node.content,a,r-n,i-n);return s<0?null:{node:o,pos:s,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let a=new Xz(this,o,n,i);e.input.compositionNodes.push(a),this.children=eq(this.children,r,r+i.length,e,a)}update(e,n,r,i){return this.dirty==qd||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Qc}updateOuterDeco(e){if(mE(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=B5e(this.dom,this.nodeDOM,Qz(this.outerDeco,this.node,n),Qz(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}};function o5e(t,e,n,r,i){z5e(r,e,t);let o=new ah(void 0,t,e,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}var dE=class t extends ah{constructor(e,n,r,i,o,a,s){super(e,n,r,i,o,null,a,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==qd||this.dirty!=Qc&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Qc||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=Qc,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),o=document.createTextNode(i.text);return new t(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=qd)}get domAtom(){return!1}isText(e){return this.node.text==e}},pE=class extends Bg{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Qc&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}},Yz=class extends ah{constructor(e,n,r,i,o,a,s,l,c,u){super(e,n,r,i,o,a,s,c,u),this.spec=l}update(e,n,r,i){if(this.dirty==qd)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,n,r);return o&&this.updateInner(e,n,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function F5e(t,e,n){let r=t.firstChild,i=!1;for(let o=0;o<e.length;o++){let a=e[o],s=a.dom;if(s.parentNode==t){for(;s!=r;)r=a5e(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(s,r);if(a instanceof Gy){let l=r?r.previousSibling:t.lastChild;F5e(a.contentDOM,a.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=a5e(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}var Yx=function(t){t&&(this.nodeName=t)};Yx.prototype=Object.create(null);var Pg=[new Yx];function Qz(t,e,n){if(t.length==0)return Pg;let r=n?Pg[0]:new Yx,i=[r];for(let o=0;o<t.length;o++){let a=t[o].type.attrs;if(a){a.nodeName&&i.push(r=new Yx(a.nodeName));for(let s in a){let l=a[s];l!=null&&(n&&i.length==1&&i.push(r=new Yx(e.isInline?"span":"div")),s=="class"?r.class=(r.class?r.class+" ":"")+l:s=="style"?r.style=(r.style?r.style+";":"")+l:s!="nodeName"&&(r[s]=l))}}}return i}function B5e(t,e,n,r){if(n==Pg&&r==Pg)return e;let i=e;for(let o=0;o<r.length;o++){let a=r[o],s=n[o];if(o){let l;s&&s.nodeName==a.nodeName&&i!=t&&(l=i.parentNode)&&l.nodeName.toLowerCase()==a.nodeName||(l=document.createElement(a.nodeName),l.pmIsDeco=!0,l.appendChild(i),s=Pg[0]),i=l}kWe(i,s||Pg[0],a)}return i}function kWe(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&t.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&t.classList.add(i[o]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function z5e(t,e,n){return B5e(t,t,Pg,Qz(e,n,t.nodeType!=1))}function mE(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function a5e(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}var Jz=class{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=CWe(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,i){let o=0,a=this.stack.length>>1,s=Math.min(a,e.length);for(;o<s&&(o==a-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<a;)this.destroyRest(),this.top.dirty=Qc,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let l=-1,c=this.top.children.length;i<this.preMatch.index&&(c=Math.min(this.index+3,c));for(let u=this.index;u<c;u++){let d=this.top.children[u];if(d.matchesMark(e[a])&&!this.isLocked(d.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Gy.create(this.top,e[a],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,a++}}findNodeMatch(e,n,r,i){let o=-1,a;if(i>=this.preMatch.index&&(a=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&a.matchesNode(e,n,r))o=this.top.children.indexOf(a,this.index);else for(let s=this.index,l=Math.min(this.top.children.length,s+5);s<l;s++){let c=this.top.children[s];if(c.matchesNode(e,n,r)&&!this.preMatch.matched.has(c)){o=s;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,n,r,i,o){let a=this.top.children[i];return a.dirty==qd&&a.dom==a.contentDOM&&(a.dirty=Ng),a.update(e,n,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,o,a){for(let s=this.index;s<this.top.children.length;s++){let l=this.top.children[s];if(l instanceof ah){let c=this.preMatch.matched.get(l);if(c!=null&&c!=o)return!1;let u=l.dom,d,p=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=qd&&mE(n,l.outerDeco));if(!p&&l.update(e,n,r,i))return this.destroyBetween(this.index,s),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!p&&(d=this.recreateWrapper(l,e,n,r,i,a)))return this.destroyBetween(this.index,s),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Ng,d.updateChildren(i,a+1),d.dirty=Qc),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,o,a){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!mE(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let s=ah.create(this.top,n,r,i,o,a);if(s.contentDOM){s.children=e.children,e.children=[];for(let l of s.children)l.parent=s}return e.destroy(),s}addNode(e,n,r,i,o){let a=ah.create(this.top,e,n,r,i,o);a.contentDOM&&a.updateChildren(i,o+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new uE(this.top,e,n,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Gy;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof dE)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Ba||ta)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new pE(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}};function CWe(t,e){let n=e,r=n.children.length,i=t.childCount,o=new Map,a=[];e:for(;i>0;){let s;for(;;)if(r){let c=n.children[r-1];if(c instanceof Gy)n=c,r=c.children.length;else{s=c,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=t.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function _We(t,e){return t.type.side-e.type.side}function SWe(t,e,n,r){let i=e.locals(t),o=0;if(i.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);r(u,i,e.forChild(o,u),c),o+=u.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let u,d;for(;a<i.length&&i[a].to==o;){let x=i[a++];x.widget&&(u?(d||(d=[u])).push(x):u=x)}if(u)if(d){d.sort(_We);for(let x=0;x<d.length;x++)n(d[x],c,!!l)}else n(u,c,!!l);let p,m;if(l)m=-1,p=l,l=null;else if(c<t.childCount)m=c,p=t.child(c++);else break;for(let x=0;x<s.length;x++)s[x].to<=o&&s.splice(x--,1);for(;a<i.length&&i[a].from<=o&&i[a].to>o;)s.push(i[a++]);let f=o+p.nodeSize;if(p.isText){let x=f;a<i.length&&i[a].from<x&&(x=i[a].from);for(let g=0;g<s.length;g++)s[g].to<x&&(x=s[g].to);x<f&&(l=p.cut(x-o),p=p.cut(0,x-o),f=x,m=-1)}else for(;a<i.length&&i[a].to<f;)a++;let h=p.isInline&&!p.isLeaf?s.filter(x=>!x.inline):s.slice();r(p,h,e.forChild(o,p),m),o=f}}function LWe(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function MWe(t,e,n,r){for(let i=0,o=0;i<t.childCount&&o<=r;){let a=t.child(i++),s=o;if(o+=a.nodeSize,!a.isText)continue;let l=a.text;for(;i<t.childCount;){let c=t.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=n){if(o>=r&&l.slice(r-e.length-s,r-s)==e)return r-e.length;let c=s<r?l.lastIndexOf(e,r-s-1):-1;if(c>=0&&c+e.length+s>=n)return s+c;if(n==r&&l.length>=r+e.length-s&&l.slice(r-s,r-s+e.length)==e)return r}}return-1}function eq(t,e,n,r,i){let o=[];for(let a=0,s=0;a<t.length;a++){let l=t[a],c=s,u=s+=l.size;c>=n||u<=e?o.push(l):(c<e&&o.push(l.slice(0,e-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function dq(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),o=i&&i.size==0,a=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s=r.resolve(a),l,c;if(wE(n)){for(l=a;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&cn.isSelectable(d)&&i.parent&&!(d.isInline&&rWe(n.focusNode,n.focusOffset,i.dom))){let p=i.posBefore;c=new cn(a==p?s:r.resolve(p))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=a,p=a;for(let m=0;m<n.rangeCount;m++){let f=n.getRangeAt(m);d=Math.min(d,t.docView.posFromDOM(f.startContainer,f.startOffset,1)),p=Math.max(p,t.docView.posFromDOM(f.endContainer,f.endOffset,-1))}if(d<0)return null;[l,a]=p==t.state.selection.anchor?[p,d]:[d,p],s=r.resolve(a)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<s.pos&&!o?1:-1;c=pq(t,u,s,d)}return c}function q5e(t){return t.editable?t.hasFocus():G5e(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Tm(t,e=!1){let n=t.state.selection;if(H5e(t,n),!!q5e(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&ta){let r=t.domSelectionRange(),i=t.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&Fg(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)TWe(t);else{let{anchor:r,head:i}=n,o,a;s5e&&!(n instanceof Qt)&&(n.$from.parent.inlineContent||(o=l5e(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=l5e(t,n.to))),t.docView.setSelection(r,i,t,e),s5e&&(o&&c5e(o),a&&c5e(a)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&EWe(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}var s5e=Ba||ta&&A5e<63;function l5e(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(Ba&&i&&i.contentEditable=="false")return qz(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return qz(i);if(o)return qz(o)}}function qz(t){return t.contentEditable="true",Ba&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function c5e(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function EWe(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!q5e(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function TWe(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,ea(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&ol&&oh<=11&&(n.disabled=!0,n.disabled=!1)}function H5e(t,e){if(e instanceof cn){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(u5e(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else u5e(t)}function u5e(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function pq(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||Qt.between(e,n,r)}function d5e(t){return t.editable&&!t.hasFocus()?!1:G5e(t)}function G5e(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function RWe(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Fg(e.node,e.offset,n.anchorNode,n.anchorOffset)}function tq(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return o&&Kt.findFrom(o,e)}function rh(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function p5e(t,e,n){let r=t.state.selection;if(r instanceof Qt)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let a=t.state.doc.resolve(i.pos+o.nodeSize*(e<0?-1:1));return rh(t,new Qt(r.$anchor,a))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=tq(t.state,e);return i&&i instanceof cn?rh(t,i):!1}else if(!(Kc&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,a;if(!o||o.isText)return!1;let s=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(a=t.docView.descAt(s))&&!a.contentDOM?cn.isSelectable(o)?rh(t,new cn(e<0?t.state.doc.resolve(i.pos-o.nodeSize):i)):i8?rh(t,new Qt(t.state.doc.resolve(e<0?s:s+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof cn&&r.node.isInline)return rh(t,new Qt(e>0?r.$to:r.$from));{let i=tq(t.state,e);return i?rh(t,i):!1}}}function fE(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Qx(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Fy(t,e){return e<0?AWe(t):$We(t)}function AWe(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,o,a=!1;for(Yc&&n.nodeType==1&&r<fE(n)&&Qx(n.childNodes[r],-1)&&(a=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(Qx(s,-1))i=n,o=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(U5e(n))break;{let s=n.previousSibling;for(;s&&Qx(s,-1);)i=n.parentNode,o=ea(s),s=s.previousSibling;if(s)n=s,r=fE(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}a?nq(t,n,r):i&&nq(t,i,o)}function $We(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=fE(n),o,a;for(;;)if(r<i){if(n.nodeType!=1)break;let s=n.childNodes[r];if(Qx(s,1))o=n,a=++r;else break}else{if(U5e(n))break;{let s=n.nextSibling;for(;s&&Qx(s,1);)o=s.parentNode,a=ea(s)+1,s=s.nextSibling;if(s)n=s,r=0,i=fE(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}o&&nq(t,o,a)}function U5e(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function IWe(t,e){for(;t&&e==t.childNodes.length&&!r8(t);)e=ea(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function NWe(t,e){for(;t&&!e&&!r8(t);)e=ea(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function nq(t,e,n){if(e.nodeType!=3){let o,a;(a=IWe(e,n))?(e=a,n=0):(o=NWe(e,n))&&(e=o,n=o.nodeValue.length)}let r=t.domSelection();if(!r)return;if(wE(r)){let o=document.createRange();o.setEnd(e,n),o.setStart(e,n),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&Tm(t)},50)}function m5e(t,e){let n=t.state.doc.resolve(e);if(!(ta||$5e)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),a=(o.top+o.bottom)/2;if(a>i.top&&a<i.bottom&&Math.abs(o.left-i.left)>1)return o.left<i.left?"ltr":"rtl"}if(e<n.end()){let o=t.coordsAtPos(e+1),a=(o.top+o.bottom)/2;if(a>i.top&&a<i.bottom&&Math.abs(o.left-i.left)>1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function f5e(t,e,n){let r=t.state.selection;if(r instanceof Qt&&!r.empty||n.indexOf("s")>-1||Kc&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let a=tq(t.state,e);if(a&&a instanceof cn)return rh(t,a)}if(!i.parent.inlineContent){let a=e<0?i:o,s=r instanceof Xl?Kt.near(a,e):Kt.findFrom(a,e);return s?rh(t,s):!1}return!1}function h5e(t,e){if(!(t.state.selection instanceof Qt))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let a=t.state.tr;return e<0?a.delete(n.pos-o.nodeSize,n.pos):a.delete(n.pos,n.pos+o.nodeSize),t.dispatch(a),!0}return!1}function g5e(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function PWe(t){if(!Ba||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;g5e(t,r,"true"),setTimeout(()=>g5e(t,r,"false"),20)}return!1}function jWe(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function OWe(t,e){let n=e.keyCode,r=jWe(e);if(n==8||Kc&&n==72&&r=="c")return h5e(t,-1)||Fy(t,-1);if(n==46&&!e.shiftKey||Kc&&n==68&&r=="c")return h5e(t,1)||Fy(t,1);if(n==13||n==27)return!0;if(n==37||Kc&&n==66&&r=="c"){let i=n==37?m5e(t,t.state.selection.from)=="ltr"?-1:1:-1;return p5e(t,i,r)||Fy(t,i)}else if(n==39||Kc&&n==70&&r=="c"){let i=n==39?m5e(t,t.state.selection.from)=="ltr"?1:-1:1;return p5e(t,i,r)||Fy(t,i)}else{if(n==38||Kc&&n==80&&r=="c")return f5e(t,-1,r)||Fy(t,-1);if(n==40||Kc&&n==78&&r=="c")return PWe(t)||f5e(t,1,r)||Fy(t,1);if(r==(Kc?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function mq(t,e){t.someProp("transformCopied",m=>{e=m(e,t)});let n=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let m=r.firstChild;n.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),r=m.content}let a=t.someProp("clipboardSerializer")||Bd.fromSchema(t.state.schema),s=Y5e(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=X5e[c.nodeName.toLowerCase()]);){for(let m=u.length-1;m>=0;m--){let f=s.createElement(u[m]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let p=t.someProp("clipboardTextSerializer",m=>m(e,t))||e.content.textBetween(0,e.content.size,` `);return{dom:l,text:p,slice:e}}function V5e(t,e,n,r,i){let o=i.parent.type.spec.code,a,s;if(!n&&!e)return null;let l=!!e&&(r||o||!n);if(l){if(t.someProp("transformPastedText",p=>{e=p(e,o||r,t)}),o)return s=new Je(De.from(t.state.schema.text(e.replace(/\r\n?/g,` -`))),0,0),t.someProp("transformPasted",p=>{s=p(s,t,!0)}),s;let d=t.someProp("clipboardTextParser",p=>p(e,i,r,t));if(d)s=d;else{let p=i.marks(),{schema:m}=t.state,f=Bd.fromSchema(m);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(h=>{let x=a.appendChild(document.createElement("p"));h&&x.appendChild(f.serializeNode(m.text(h,p)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),a=DWe(n),i8&&FWe(a);let c=a&&a.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||Fd.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!PWe.test(p.parentNode.nodeName)?{ignore:!0}:null}})),u)s=BWe(b5e(s,+u[1],+u[2]),u[4]);else if(s=Je.maxOpen(jWe(s.content,i),!0),s.openStart||s.openEnd){let d=0,p=0;for(let m=s.content.firstChild;d<s.openStart&&!m.type.spec.isolating;d++,m=m.firstChild);for(let m=s.content.lastChild;p<s.openEnd&&!m.type.spec.isolating;p++,m=m.lastChild);s=b5e(s,d,p)}return t.someProp("transformPasted",d=>{s=d(s,t,l)}),s}var PWe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function jWe(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),o,a=[];if(t.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),c;if(!l)return a=null;if(c=a.length&&o.length&&W5e(l,o,s,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=K5e(a[a.length-1],o.length));let u=Z5e(s,l);a.push(u),i=i.matchType(u.type),o=l}}),a)return De.from(a)}return t}function Z5e(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,De.from(t));return t}function W5e(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let o=W5e(t,e,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(De.from(Z5e(n,t,i+1))))}}function K5e(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,K5e(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(De.empty,!0);return t.copy(n.append(r))}function rq(t,e,n,r,i,o){let a=e<0?t.firstChild:t.lastChild,s=a.content;return t.childCount>1&&(o=0),i<r-1&&(s=rq(s,e,n,r,i+1,o)),i>=n&&(s=e<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(De.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(s))}function b5e(t,e,n){return e<t.openStart&&(t=new Je(rq(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new Je(rq(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}var X5e={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},y5e=null;function Y5e(){return y5e||(y5e=document.implementation.createHTMLDocument("title"))}var Hz=null;function OWe(t){let e=window.trustedTypes;return e?(Hz||(Hz=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Hz.createHTML(t)):t}function DWe(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Y5e().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&X5e[r[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=OWe(t),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function FWe(t){let e=t.querySelectorAll(ta?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent=="\xA0"&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function BWe(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:i,openStart:o,openEnd:a}=t;for(let s=r.length-2;s>=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=De.from(l.create(r[s+1],i)),o++,a++}return new Je(i,o,a)}var ds={},ps={},zWe={touchstart:!0,touchmove:!0},iq=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function qWe(t){for(let e in ds){let n=ds[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{GWe(t,r)&&!fq(t,r)&&(t.editable||!(r.type in ps))&&n(t,r)},zWe[e]?{passive:!0}:void 0)}Ba&&t.dom.addEventListener("input",()=>null),oq(t)}function nh(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function HWe(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function oq(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>fq(t,r))})}function fq(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function GWe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function UWe(t,e){!fq(t,e)&&ds[e.type]&&(t.editable||!(e.type in ps))&&ds[e.type](t,e)}ps.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!J5e(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Mm&&ta&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),qy&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,$g(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||NWe(t,n)?n.preventDefault():nh(t,"key")};ps.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};ps.keypress=(t,e)=>{let n=e;if(J5e(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Kc&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Qt)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),o=()=>t.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",a=>a(t,r.$from.pos,r.$to.pos,i,o))&&t.dispatch(o()),n.preventDefault()}};function yE(t){return{left:t.clientX,top:t.clientY}}function VWe(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function hq(t,e,n,r,i){if(r==-1)return!1;let o=t.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(t.someProp(e,s=>a>o.depth?s(t,n,o.nodeAfter,o.before(a),i,!0):s(t,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function By(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function ZWe(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&cn.isSelectable(r)?(By(t,new cn(n),"pointer"),!0):!1}function WWe(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof cn&&(r=n.node);let o=t.state.doc.resolve(e);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(cn.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(By(t,cn.create(t.state.doc,i),"pointer"),!0):!1}function KWe(t,e,n,r,i){return hq(t,"handleClickOn",e,n,r)||t.someProp("handleClick",o=>o(t,e,r))||(i?WWe(t,n):ZWe(t,n))}function XWe(t,e,n,r){return hq(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function YWe(t,e,n,r){return hq(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||QWe(t,n,r)}function QWe(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(By(t,Qt.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)By(t,Qt.create(r,s+1,s+1+a.content.size),"pointer");else if(cn.isSelectable(a))By(t,cn.create(r,s),"pointer");else continue;return!0}}function gq(t){return pE(t)}var Q5e=Kc?"metaKey":"ctrlKey";ds.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=gq(t),i=Date.now(),o="singleClick";i-t.input.lastClick.time<500&&VWe(n,t.input.lastClick)&&!n[Q5e]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o,button:n.button};let a=t.posAtCoords(yE(n));a&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new aq(t,a,n,!!r)):(o=="doubleClick"?XWe:YWe)(t,a.pos,a.inside,n)?n.preventDefault():nh(t,"pointer"))};var aq=class{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Q5e],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),a=n.inside;else{let u=e.state.doc.resolve(n.pos);o=u.parent,a=u.depth?u.before():0}let s=i?null:r.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=e.state;r.button==0&&(o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof cn&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Yc&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),nh(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Em(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(yE(e))),this.updateAllowDefault(e),this.allowDefault||!n?nh(this.view,"pointer"):KWe(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ba&&this.mightDrag&&!this.mightDrag.node.isAtom||ta&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(By(this.view,Kt.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):nh(this.view,"pointer")}move(e){this.updateAllowDefault(e),nh(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}};ds.touchstart=t=>{t.input.lastTouch=Date.now(),gq(t),nh(t,"pointer")};ds.touchmove=t=>{t.input.lastTouch=Date.now(),nh(t,"pointer")};ds.contextmenu=t=>gq(t);function J5e(t,e){return t.composing?!0:Ba&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}var JWe=Mm?5e3:-1;ps.compositionstart=ps.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Qt&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||ta&&$5e&&eKe(t)))t.markCursor=t.state.storedMarks||n.marks(),pE(t,!0),t.markCursor=null;else if(pE(t,!e.selection.empty),Yc&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=t.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else i=a,o=-1}}t.input.composing=!0}ebe(t,JWe)};function eKe(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}ps.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,ebe(t,20))};function ebe(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>pE(t),e))}function tbe(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=nKe());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function tKe(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=QZe(e.focusNode,e.focusOffset),r=JZe(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function nKe(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function pE(t,e=!1){if(!(Mm&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),tbe(t),e||t.docView&&t.docView.dirty){let n=dq(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function rKe(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}var Jx=il&&rh<15||qy&&rWe<604;ds.copy=ps.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let o=Jx?null:n.clipboardData,a=r.content(),{dom:s,text:l}=mq(t,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):rKe(t,s),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function iKe(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function oKe(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?e8(t,r.value,null,i,e):e8(t,r.textContent,r.innerHTML,i,e)},50)}function e8(t,e,n,r,i){let o=V5e(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,o||Je.empty)))return!0;if(!o)return!1;let a=iKe(o),s=a?t.state.tr.replaceSelectionWith(a,r):t.state.tr.replaceSelection(o);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function nbe(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ps.paste=(t,e)=>{let n=e;if(t.composing&&!Mm)return;let r=Jx?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&e8(t,nbe(r),r.getData("text/html"),i,n)?n.preventDefault():oKe(t,n)};var mE=class{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}},aKe=Kc?"altKey":"ctrlKey";function rbe(t,e){let n;return t.someProp("dragCopies",r=>{n=n||r(e)}),n!=null?!n:!e[aKe]}ds.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,o=i.empty?null:t.posAtCoords(yE(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof cn?i.to-1:i.to))){if(r&&r.mightDrag)a=cn.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(a=cn.create(t.state.doc,d.posBefore))}}let s=(a||t.state.selection).content(),{dom:l,text:c,slice:u}=mq(t,s);(!n.dataTransfer.files.length||!ta||A5e>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Jx?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Jx||n.dataTransfer.setData("text/plain",c),t.dragging=new mE(u,rbe(t,n),a)};ds.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};ps.dragover=ps.dragenter=(t,e)=>e.preventDefault();ps.drop=(t,e)=>{try{sKe(t,e,t.dragging)}finally{t.dragging=null}};function sKe(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(yE(e));if(!r)return;let i=t.state.doc.resolve(r.pos),o=n&&n.slice;o?t.someProp("transformPasted",m=>{o=m(o,t,!1)}):o=V5e(t,nbe(e.dataTransfer),Jx?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&rbe(t,e));if(t.someProp("handleDrop",m=>m(t,e,o||Je.empty,a))){e.preventDefault();return}if(!o)return;e.preventDefault();let s=o?dge(t.state.doc,i.pos,o):i.pos;s==null&&(s=i.pos);let l=t.state.tr;if(a){let{node:m}=n;m?m.replace(l):l.deleteSelection()}let c=l.mapping.map(s),u=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,d=l.doc;if(u?l.replaceRangeWith(c,c,o.content.firstChild):l.replaceRange(c,c,o),l.doc.eq(d))return;let p=l.doc.resolve(c);if(u&&cn.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new cn(p));else{let m=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((f,h,x,g)=>m=g),l.setSelection(pq(t,p,l.doc.resolve(m)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}ds.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Em(t)},20))};ds.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};ds.beforeinput=(t,e)=>{if(ta&&Mm&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,$g(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in ps)ds[t]=ps[t];function t8(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}var fE=class t{constructor(e,n){this.toDOM=e,this.spec=n||jg,this.side=this.spec.side||0}map(e,n,r,i){let{pos:o,deleted:a}=e.mapResult(n.from+i,this.side<0?-1:1);return a?null:new na(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof t&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&t8(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},Pg=class t{constructor(e,n){this.attrs=e,this.spec=n||jg}map(e,n,r,i){let o=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new na(o,a,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof t&&t8(this.attrs,e.attrs)&&t8(this.spec,e.spec)}static is(e){return e.type instanceof t}destroy(){}},sq=class t{constructor(e,n){this.attrs=e,this.spec=n||jg}map(e,n,r,i){let o=e.mapResult(n.from+i,1);if(o.deleted)return null;let a=e.mapResult(n.to+i,-1);return a.deleted||a.pos<=o.pos?null:new na(o.pos-r,a.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),o;return i==n.from&&!(o=e.child(r)).isText&&i+o.nodeSize==n.to}eq(e){return this==e||e instanceof t&&t8(this.attrs,e.attrs)&&t8(this.spec,e.spec)}destroy(){}},na=class t{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new t(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new t(e,e,new fE(n,r))}static inline(e,n,r,i){return new t(e,n,new Pg(r,i))}static node(e,n,r,i){return new t(e,n,new sq(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Pg}get widget(){return this.type instanceof fE}},Fy=[],jg={},Gi=class t{constructor(e,n){this.local=e.length?e:Fy,this.children=n.length?n:Fy}static create(e,n){return n.length?gE(n,e,0,jg):Fa}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,o){for(let a=0;a<this.local.length;a++){let s=this.local[a];s.from<=n&&s.to>=e&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>e){let s=this.children[a]+1;this.children[a+2].findInner(e-s,n-s,r,i+s,o)}}map(e,n,r){return this==Fa||e.maps.length==0?this:this.mapInner(e,n,0,0,r||jg)}mapInner(e,n,r,i,o){let a;for(let s=0;s<this.local.length;s++){let l=this.local[s].map(e,r,i);l&&l.type.valid(n,l)?(a||(a=[])).push(l):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?lKe(this.children,a||[],e,n,r,i,o):a?new t(a.sort(Og),Fy):Fa}add(e,n){return n.length?this==Fa?t.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,o=0;e.forEach((s,l)=>{let c=l+r,u;if(u=obe(n,s,c)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(s,u,c+1):i.splice(o,0,l,l+s.nodeSize,gE(u,s,c+1,jg)),o+=3}});let a=ibe(o?abe(n):n,-r);for(let s=0;s<a.length;s++)a[s].type.valid(e,a[s])||a.splice(s--,1);return new t(a.length?this.local.concat(a).sort(Og):this.local,i||this.children)}remove(e){return e.length==0||this==Fa?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let a,s=r[o]+n,l=r[o+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>s&&d.to<l&&(e[u]=null,(a||(a=[])).push(d));if(!a)continue;r==this.children&&(r=this.children.slice());let c=r[o+2].removeInner(a,s+1);c!=Fa?r[o+2]=c:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,a;o<e.length;o++)if(a=e[o])for(let s=0;s<i.length;s++)i[s].eq(a,n)&&(i==this.local&&(i=this.local.slice()),i.splice(s--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new t(i,r):Fa}forChild(e,n){if(this==Fa)return this;if(n.isLeaf)return t.empty;let r,i;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(r=this.children[s+2]);break}let o=e+1,a=o+n.content.size;for(let s=0;s<this.local.length;s++){let l=this.local[s];if(l.from<a&&l.to>o&&l.type instanceof Pg){let c=Math.max(o,l.from)-o,u=Math.min(a,l.to)-o;c<u&&(i||(i=[])).push(l.copy(c,u))}}if(i){let s=new t(i.sort(Og),Fy);return r?new hE([s,r]):s}return r||Fa}eq(e){if(this==e)return!0;if(!(e instanceof t)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return bq(this.localsInner(e))}localsInner(e){if(this==Fa)return Fy;if(e.inlineContent||!this.local.some(Pg.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Pg||n.push(this.local[r]);return n}forEachSet(e){e(this)}};Gi.empty=new Gi([],[]);Gi.removeOverlap=bq;var Fa=Gi.empty,hE=class t{constructor(e){this.members=e}map(e,n){let r=this.members.map(i=>i.map(e,n,jg));return t.from(r)}forChild(e,n){if(n.isLeaf)return Gi.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(e,n);o!=Fa&&(o instanceof t?r=r.concat(o.members):r.push(o))}return t.from(r)}eq(e){if(!(e instanceof t)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(e);if(o.length)if(!n)n=o;else{r&&(n=n.slice(),r=!1);for(let a=0;a<o.length;a++)n.push(o[a])}}return n?bq(r?n:n.sort(Og)):Fy}static from(e){switch(e.length){case 0:return Fa;case 1:return e[0];default:return new t(e.every(n=>n instanceof Gi)?e:e.reduce((n,r)=>n.concat(r instanceof Gi?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}};function lKe(t,e,n,r,i,o,a){let s=t.slice();for(let c=0,u=o;c<n.maps.length;c++){let d=0;n.maps[c].forEach((p,m,f,h)=>{let x=h-f-(m-p);for(let g=0;g<s.length;g+=3){let y=s[g+1];if(y<0||p>y+u-d)continue;let b=s[g]+u-d;m>=b?s[g+1]=p<=b?-2:-1:p>=u&&x&&(s[g]+=x,s[g+1]+=x)}d+=x}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(s[c+1]==-2){l=!0,s[c+1]=-1;continue}let u=n.map(t[c]+o),d=u-i;if(d<0||d>=r.content.size){l=!0;continue}let p=n.map(t[c+1]+o,-1),m=p-i,{index:f,offset:h}=r.content.findIndex(d),x=r.maybeChild(f);if(x&&h==d&&h+x.nodeSize==m){let g=s[c+2].mapInner(n,x,u+1,t[c]+o+1,a);g!=Fa?(s[c]=d,s[c+1]=m,s[c+2]=g):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=cKe(s,t,e,n,i,o,a),u=gE(c,r,0,a);e=u.local;for(let d=0;d<s.length;d+=3)s[d+1]<0&&(s.splice(d,3),d-=3);for(let d=0,p=0;d<u.children.length;d+=3){let m=u.children[d];for(;p<s.length&&s[p]<m;)p+=3;s.splice(p,0,u.children[d],u.children[d+1],u.children[d+2])}}return new Gi(e.sort(Og),s)}function ibe(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new na(i.from+e,i.to+e,i.type))}return n}function cKe(t,e,n,r,i,o,a){function s(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(r,i,c);d?n.push(d):a.onRemove&&a.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)s(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&s(t[l+2],e[l]+o+1);return n}function obe(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let o=0,a;o<t.length;o++)(a=t[o])&&a.from>n&&a.to<r&&((i||(i=[])).push(a),t[o]=null);return i}function abe(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function gE(t,e,n,r){let i=[],o=!1;e.forEach((s,l)=>{let c=obe(t,s,l+n);if(c){o=!0;let u=gE(c,s,n+l+1,r);u!=Fa&&i.push(l,l+s.nodeSize,u)}});let a=ibe(o?abe(t):t,-n).sort(Og);for(let s=0;s<a.length;s++)a[s].type.valid(e,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||i.length?new Gi(a,i):Fa}function Og(t,e){return t.from-e.from||t.to-e.to}function bq(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let o=e[i];if(o.from==r.from){o.to!=r.to&&(e==t&&(e=t.slice()),e[i]=o.copy(o.from,r.to),x5e(e,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,o.from),x5e(e,i,r.copy(o.from,r.to)));break}}}return e}function x5e(t,e,n){for(;e<t.length&&Og(n,t[e])>0;)e++;t.splice(e,0,n)}function Gz(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Fa&&e.push(r)}),t.cursorWrapper&&e.push(Gi.create(t.state.doc,[t.cursorWrapper.deco])),hE.from(e)}var uKe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},dKe=il&&rh<=11,lq=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},cq=class{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lq,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);il&&rh<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():Ba&&e.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),dKe&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,uKe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(d5e(this.view)){if(this.suppressingSelectionUpdates)return Em(this.view);if(il&&rh<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Dg(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let o=e.focusNode;o;o=zy(o))n.add(o);for(let o=e.anchorNode;o;o=zy(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&d5e(e)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(o=o<0?d.from:Math.min(d.from,o),a=a<0?d.to:Math.max(d.to,a),d.typeOver&&(s=!0))}if(l.some(u=>u.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let u of l)if(u.nodeName=="BR"&&u.parentNode){let d=u.nextSibling;for(;d&&d.nodeType==1;){if(d.contentEditable=="false"){u.parentNode.removeChild(u);break}d=d.firstChild}}}else if(Yc&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,p]=u;d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let p of u){let m=p.parentNode;m&&m.nodeName=="LI"&&(!d||fKe(e,d)!=m)&&p.remove()}}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&bE(r)&&(c=dq(e))&&c.eq(Kt.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Em(e),this.currentSelection.set(r),e.scrollToSelection()):(o>-1||i)&&(o>-1&&(e.docView.markDirty(o,a),pKe(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,hKe(e,l)),this.handleDOMChange(o,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Em(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,o=e.nextSibling;if(il&&rh<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:p}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(o=p)}let a=i&&i.parentNode==e.target?ea(i)+1:0,s=r.localPosFromDOM(e.target,a,-1),l=o&&o.parentNode==e.target?ea(o):e.target.childNodes.length,c=r.localPosFromDOM(e.target,l,1);return{from:s,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},w5e=new WeakMap,v5e=!1;function pKe(t){if(!w5e.has(t)&&(w5e.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Yc,v5e)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),v5e=!0}}function k5e(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return Dg(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function mKe(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return k5e(t,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?k5e(t,n):null}function fKe(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function hKe(t,e){var n;let{focusNode:r,focusOffset:i}=t.domSelectionRange();for(let o of e)if(((n=o.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let a=o.nextSibling;for(;a&&a.nodeName!="TD"&&a.nodeName!="TH";)a=a.nextSibling;if(a){let s=a;for(;;){let l=s.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;s=l}s.insertBefore(o,s.firstChild),r==o&&t.domSelection().collapse(o,i)}else o.parentNode.removeChild(o)}}function gKe(t,e,n){let{node:r,fromOffset:i,toOffset:o,from:a,to:s}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],bE(l)||c.push({node:l.focusNode,offset:l.focusOffset})),ta&&t.input.lastKeyCode===8)for(let x=o;x>i;x--){let g=r.childNodes[x-1],y=g.pmViewDesc;if(g.nodeName=="BR"&&!y){o=x;break}if(!y||y.size)break}let d=t.state.doc,p=t.someProp("domParser")||Fd.fromSchema(t.state.schema),m=d.resolve(a),f=null,h=p.parse(r,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:i,to:o,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:bKe,context:m});if(c&&c[0].pos!=null){let x=c[0].pos,g=c[1]&&c[1].pos;g==null&&(g=x),f={anchor:x+a,head:g+a}}return{doc:h,sel:f,from:a,to:s}}function bKe(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Ba&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Ba&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}var yKe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function xKe(t,e,n,r,i){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let _=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,L=dq(t,_);if(L&&!t.state.selection.eq(L)){if(ta&&Mm&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",C=>C(t,$g(13,"Enter"))))return;let S=t.state.tr.setSelection(L);_=="pointer"?S.setMeta("pointer",!0):_=="key"&&S.scrollIntoView(),o&&S.setMeta("composition",o),t.dispatch(S)}return}let a=t.state.doc.resolve(e),s=a.sharedDepth(n);e=a.before(s+1),n=t.state.doc.resolve(n).after(s+1);let l=t.state.selection,c=gKe(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),p,m;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,m="end"):(p=t.state.selection.from,m="start"),t.input.lastKeyCode=null;let f=kKe(d.content,c.doc.content,c.from,p,m);if(f&&t.input.domChangeCount++,(qy&&t.input.lastIOSEnter>Date.now()-225||Mm)&&i.some(_=>_.nodeType==1&&!yKe.test(_.nodeName))&&(!f||f.endA>=f.endB)&&t.someProp("handleKeyDown",_=>_(t,$g(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!f)if(r&&l instanceof Qt&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))f={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let _=C5e(t,t.state.doc,c.sel);if(_&&!_.eq(t.state.selection)){let L=t.state.tr.setSelection(_);o&&L.setMeta("composition",o),t.dispatch(L)}}return}t.state.selection.from<t.state.selection.to&&f.start==f.endB&&t.state.selection instanceof Qt&&(f.start>t.state.selection.from&&f.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?f.start=t.state.selection.from:f.endA<t.state.selection.to&&f.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(f.endB+=t.state.selection.to-f.endA,f.endA=t.state.selection.to)),il&&rh<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>c.from&&c.doc.textBetween(f.start-c.from-1,f.start-c.from+1)==" \xA0"&&(f.start--,f.endA--,f.endB--);let h=c.doc.resolveNoCache(f.start-c.from),x=c.doc.resolveNoCache(f.endB-c.from),g=u.resolve(f.start),y=h.sameParent(x)&&h.parent.inlineContent&&g.end()>=f.endA;if((qy&&t.input.lastIOSEnter>Date.now()-225&&(!y||i.some(_=>_.nodeName=="DIV"||_.nodeName=="P"))||!y&&h.pos<c.doc.content.size&&(!h.sameParent(x)||!h.parent.inlineContent)&&h.pos<x.pos&&!/\S/.test(c.doc.textBetween(h.pos,x.pos,"","")))&&t.someProp("handleKeyDown",_=>_(t,$g(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>f.start&&vKe(u,f.start,f.endA,h,x)&&t.someProp("handleKeyDown",_=>_(t,$g(8,"Backspace")))){Mm&&ta&&t.domObserver.suppressSelectionUpdates();return}ta&&f.endB==f.start&&(t.input.lastChromeDelete=Date.now()),Mm&&!y&&h.start()!=x.start()&&x.parentOffset==0&&h.depth==x.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==f.endA&&(f.endB-=2,x=c.doc.resolveNoCache(f.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(_){return _(t,$g(13,"Enter"))})},20));let b=f.start,w=f.endA,v=_=>{let L=_||t.state.tr.replace(b,w,c.doc.slice(f.start-c.from,f.endB-c.from));if(c.sel){let S=C5e(t,L.doc,c.sel);S&&!(ta&&t.composing&&S.empty&&(f.start!=f.endB||t.input.lastChromeDelete<Date.now()-100)&&(S.head==b||S.head==L.mapping.map(w)-1)||il&&S.empty&&S.head==b)&&L.setSelection(S)}return o&&L.setMeta("composition",o),L.scrollIntoView()},k;if(y)if(h.pos==x.pos){il&&rh<=11&&h.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Em(t),20));let _=v(t.state.tr.delete(b,w)),L=u.resolve(f.start).marksAcross(u.resolve(f.endA));L&&_.ensureMarks(L),t.dispatch(_)}else if(f.endA==f.endB&&(k=wKe(h.parent.content.cut(h.parentOffset,x.parentOffset),g.parent.content.cut(g.parentOffset,f.endA-g.start())))){let _=v(t.state.tr);k.type=="add"?_.addMark(b,w,k.mark):_.removeMark(b,w,k.mark),t.dispatch(_)}else if(h.parent.child(h.index()).isText&&h.index()==x.index()-(x.textOffset?0:1)){let _=h.parent.textBetween(h.parentOffset,x.parentOffset),L=()=>v(t.state.tr.insertText(_,b,w));t.someProp("handleTextInput",S=>S(t,b,w,_,L))||t.dispatch(L())}else t.dispatch(v());else t.dispatch(v())}function C5e(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:pq(t,e.resolve(n.anchor),e.resolve(n.head))}function wKe(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,o=r,a,s,l;for(let u=0;u<r.length;u++)i=r[u].removeFromSet(i);for(let u=0;u<n.length;u++)o=n[u].removeFromSet(o);if(i.length==1&&o.length==0)s=i[0],a="add",l=u=>u.mark(s.addToSet(u.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(De.from(c).eq(t))return{mark:s,type:a}}function vKe(t,e,n,r,i){if(n-e<=i.pos-r.pos||Uz(r,!0,!1)<i.pos)return!1;let o=t.resolve(e);if(!r.parent.isTextblock){let s=o.nodeAfter;return s!=null&&n==e+s.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let a=t.resolve(Uz(o,!0,!0));return!a.parent.isTextblock||a.pos>n||Uz(a,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(a.parent.content)}function Uz(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let o=t.node(r).maybeChild(t.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function kKe(t,e,n,r,i){let o=t.findDiffStart(e,n);if(o==null)return null;let{a,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a<o&&t.size<e.size){let l=r<=o&&r>=a?o-r:0;o-=l,o&&o<e.size&&_5e(e.textBetween(o-1,o+1))&&(o+=l?1:-1),s=o+(s-a),a=o}else if(s<o){let l=r<=o&&r>=s?o-r:0;o-=l,o&&o<t.size&&_5e(t.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}function _5e(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}var n8=class{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new iq,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(T5e),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=M5e(this),L5e(this),this.nodeViews=E5e(this),this.docView=o5e(this.state.doc,S5e(this),Gz(this),this.dom,this),this.domObserver=new cq(this,(r,i,o,a)=>xKe(this,r,i,o,a)),this.domObserver.start(),qWe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&oq(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(T5e),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,o=!1,a=!1;e.storedMarks&&this.composing&&(tbe(this),a=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let m=E5e(this);_Ke(m,this.nodeViews)&&(this.nodeViews=m,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&oq(this),this.editable=M5e(this),L5e(this);let l=Gz(this),c=S5e(this),u=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(i.selection))&&(a=!0);let p=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&aWe(this);if(a){this.domObserver.stop();let m=d&&(il||ta)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&CKe(i.selection,e.selection);if(d){let f=ta?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=tKe(this)),(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=o5e(e.doc,c,l,this.dom,this)),f&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&MWe(this))?Em(this,m):(H5e(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():p&&sWe(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof cn){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Jge(this,n.getBoundingClientRect(),e)}else Jge(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let o=r.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&o<this.state.doc.content.size&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new mE(e.slice,e.move,i<0?void 0:cn.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;a<this.directPlugins.length;a++){let s=this.directPlugins[a].props[e];if(s!=null&&(i=n?n(s):s))return i}let o=this.state.plugins;if(o)for(let a=0;a<o.length;a++){let s=o[a].props[e];if(s!=null&&(i=n?n(s):s))return i}}hasFocus(){if(il){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&lWe(this.dom),Em(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return mWe(this,e)}coordsAtPos(e,n=1){return O5e(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return yWe(this,n||this.state,e)}pasteHTML(e,n){return e8(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return e8(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return mq(this,e)}destroy(){this.docView&&(HWe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Gz(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,XZe())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return UWe(this,e)}domSelectionRange(){let e=this.domSelection();return e?Ba&&this.root.nodeType===11&&tWe(this.dom.ownerDocument)==this.dom&&mKe(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};n8.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function S5e(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[na.node(0,t.state.doc.content.size,e)]}function L5e(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:na.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function M5e(t){return!t.someProp("editable",e=>e(t.state)===!1)}function CKe(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function E5e(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function _Ke(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function T5e(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}function Am(t,e){return t.meta={package:"@milkdown/core",group:"System",...e},t}var cbe={text:(t,e,n,r)=>{let i=t.value;return/^[^*_\\]*\s+$/.test(i)?i:n.safe(i,{...r,encode:[]})},strong:(t,e,n,r)=>{let i=t.marker||n.options.strong||"*",o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);return s+=a.move(n.containerPhrasing(t,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s},emphasis:(t,e,n,r)=>{let i=t.marker||n.options.emphasis||"*",o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);return s+=a.move(n.containerPhrasing(t,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}},Yl=Fn({},"editorView"),o8=Fn({},"editorState"),yq=Fn([],"initTimer"),sbe=Fn({},"editor"),Wy=Fn([],"inputRules"),Rm=Fn([],"prosePlugins"),Ky=Fn([],"remarkPlugins"),TE=Fn([],"nodeView"),RE=Fn([],"markView"),Tm=Fn(jx().use(vy).use(Sy),"remark"),ah=Fn({handlers:cbe,encode:[]},"remarkStringifyOptions"),xE=Wc("ConfigReady");function SKe(t){let e=n=>(n.record(xE),async()=>(await t(n),n.done(xE),()=>{n.clearTimer(xE)}));return Am(e,{displayName:"Config"}),e}var Bg=Wc("InitReady");function LKe(t){let e=n=>(n.inject(sbe,t).inject(Rm,[]).inject(Ky,[]).inject(Wy,[]).inject(TE,[]).inject(RE,[]).inject(ah,{handlers:cbe,encode:[]}).inject(Tm,jx().use(vy).use(Sy)).inject(yq,[xE]).record(Bg),async()=>{await n.waitTimers(yq);let r=n.get(ah);return n.set(Tm,jx().use(vy).use(Sy,r)),n.done(Bg),()=>{n.remove(sbe).remove(Rm).remove(Ky).remove(Wy).remove(TE).remove(RE).remove(ah).remove(Tm).remove(yq).clearTimer(Bg)}});return Am(e,{displayName:"Init"}),e}var ms=Wc("SchemaReady"),wE=Fn([],"schemaTimer"),Ql=Fn({},"schema"),Gy=Fn([],"nodes"),Uy=Fn([],"marks");function lbe(t){return{...t,parseDOM:t.parseDOM?.map(e=>({priority:t.priority,...e}))}}var ube=t=>(t.inject(Ql,{}).inject(Gy,[]).inject(Uy,[]).inject(wE,[Bg]).record(ms),async()=>{await t.waitTimers(wE);let e=t.get(Tm),n=t.get(Ky).reduce((a,s)=>a.use(s.plugin,s.options),e);t.set(Tm,n);let r=Object.fromEntries(t.get(Gy).map(([a,s])=>[a,lbe(s)])),i=Object.fromEntries(t.get(Uy).map(([a,s])=>[a,lbe(s)])),o=new ZM({nodes:r,marks:i});return t.set(Ql,o),t.done(ms),()=>{t.remove(Ql).remove(Gy).remove(Uy).remove(wE).clearTimer(ms)}});Am(ube,{displayName:"Schema"});var dbe=class{constructor(){this.#e=new kB,this.#t=null,this.setCtx=t=>{this.#t=t},this.chain=()=>{if(this.#t==null)throw xM();let t=this.#t,e=[],n=this.get.bind(this),r={run:()=>{let o=Cm(...e),a=t.get(Yl);return o(a.state,a.dispatch,a)},inline:o=>(e.push(o),r),pipe:i.bind(this)};function i(o,a){let s=n(o);return e.push(s(a)),r}return r}}#e;#t;get ctx(){return this.#t}create(t,e){let n=t.create(this.#e.sliceMap);return n.set(e),n}get(t){return this.#e.get(t).get()}remove(t){return this.#e.remove(t)}call(t,e){if(this.#t==null)throw xM();let n=this.get(t)(e),r=this.#t.get(Yl);return n(r.state,r.dispatch,r)}inline(t){if(this.#t==null)throw xM();let e=this.#t.get(Yl);return t(e.state,e.dispatch,e)}};function pbe(t="cmdKey"){return Fn((()=>()=>!1),t)}var Zn=Fn(new dbe,"commands"),vE=Fn([ms],"commandsTimer"),Vy=Wc("CommandsReady"),mbe=t=>{let e=new dbe;return e.setCtx(t),t.inject(Zn,e).inject(vE,[ms]).record(Vy),async()=>(await t.waitTimers(vE),t.done(Vy),()=>{t.remove(Zn).remove(vE).clearTimer(Vy)})};Am(mbe,{displayName:"Commands"});function MKe(t){return t.Backspace=Cm(Age,eE,Lge,Tz),t}var fbe=class{constructor(){this.#e=null,this.#t=[],this.setCtx=t=>{this.#e=t},this.add=t=>(this.#t.push(t),()=>{this.#t=this.#t.filter(e=>e!==t)}),this.addObjectKeymap=t=>{let e=[];return Object.entries(t).forEach(([n,r])=>{if(typeof r=="function"){let i={key:n,onRun:()=>r};this.#t.push(i),e.push(()=>{this.#t=this.#t.filter(o=>o!==i)})}else this.#t.push(r),e.push(()=>{this.#t=this.#t.filter(i=>i!==r)})}),()=>{e.forEach(n=>n())}},this.addBaseKeymap=()=>{let t=MKe(nE);return this.addObjectKeymap(t)},this.build=()=>{let t={};return this.#t.forEach(e=>{t[e.key]=[...t[e.key]||[],e]}),Object.fromEntries(Object.entries(t).map(([e,n])=>{let r=n.sort((o,a)=>(a.priority??50)-(o.priority??50));return[e,(o,a,s)=>{let l=this.#e;if(l==null)throw xy();let c=r.map(u=>u.onRun(l));return Cm(...c)(o,a,s)}]}))}}#e;#t;get ctx(){return this.#e}},c8=Fn(new fbe,"keymap"),xq=Fn([ms],"keymapTimer"),Zy=Wc("KeymapReady"),EKe=t=>{let e=new fbe;return e.setCtx(t),t.inject(c8,e).inject(xq,[ms]).record(Zy),async()=>(await t.waitTimers(xq),t.done(Zy),()=>{t.remove(c8).remove(xq).clearTimer(Zy)})},kE=Wc("ParserReady"),hbe=(()=>{throw xy()}),sh=Fn(hbe,"parser"),wq=Fn([],"parserTimer"),gbe=t=>(t.inject(sh,hbe).inject(wq,[ms]).record(kE),async()=>{await t.waitTimers(wq);let e=t.get(Tm),n=t.get(Ql);return t.set(sh,Wge.create(n,e)),t.done(kE),()=>{t.remove(sh).remove(wq).clearTimer(kE)}});Am(gbe,{displayName:"Parser"});var CE=Wc("SerializerReady"),vq=Fn([],"serializerTimer"),bbe=(()=>{throw xy()}),zg=Fn(bbe,"serializer"),ybe=t=>(t.inject(zg,bbe).inject(vq,[ms]).record(CE),async()=>{await t.waitTimers(vq);let e=t.get(Tm),n=t.get(Ql);return t.set(zg,Xge.create(n,e)),t.done(CE),()=>{t.remove(zg).remove(vq).clearTimer(CE)}});Am(ybe,{displayName:"Serializer"});var a8=Fn("","defaultValue"),s8=Fn(t=>t,"stateOptions"),_E=Fn([],"editorStateTimer"),SE=Wc("EditorStateReady");function TKe(t,e,n){if(typeof t=="string")return e(t);if(t.type==="html")return Fd.fromSchema(n).parse(t.dom);if(t.type==="json")return rl.fromJSON(n,t.value);throw ehe(t)}var RKe=new qr("MILKDOWN_STATE_TRACKER"),xbe=t=>(t.inject(a8,"").inject(o8,{}).inject(s8,e=>e).inject(_E,[kE,CE,Vy,Zy]).record(SE),async()=>{await t.waitTimers(_E);let e=t.get(Ql),n=t.get(sh),r=t.get(Wy),i=t.get(s8),o=t.get(Rm),a=TKe(t.get(a8),n,e),s=t.get(c8),l=s.addBaseKeymap(),c=[...o,new Mr({key:RKe,state:{init:()=>{},apply:(p,m,f,h)=>{t.set(o8,h)}}}),Pge({rules:r}),aE(s.build())];t.set(Rm,c);let u=i({schema:e,doc:a,plugins:c}),d=Iy.create(u);return t.set(o8,d),t.done(SE),()=>{l(),t.remove(a8).remove(o8).remove(s8).remove(_E).clearTimer(SE)}});Am(xbe,{displayName:"EditorState"});var Xy=Fn([],"pasteRule"),LE=Fn([ms],"pasteRuleTimer"),ME=Wc("PasteRuleReady"),wbe=t=>(t.inject(Xy,[]).inject(LE,[ms]).record(ME),async()=>(await t.waitTimers(LE),t.done(ME),()=>{t.remove(Xy).remove(LE).clearTimer(ME)}));Am(wbe,{displayName:"PasteRule"});var kq=Wc("EditorViewReady"),EE=Fn([],"editorViewTimer"),qg=Fn({},"editorViewOptions"),l8=Fn(null,"root"),Cq=Fn(null,"rootDOM"),_q=Fn({},"rootAttrs");function AKe(t,e){let n=document.createElement("div");n.className="milkdown",t.appendChild(n),e.set(Cq,n);let r=e.get(_q);return Object.entries(r).forEach(([i,o])=>n.setAttribute(i,o)),n}function $Ke(t){t.classList.add("editor"),t.setAttribute("role","textbox")}var IKe=new qr("MILKDOWN_VIEW_CLEAR"),vbe=t=>(t.inject(l8,document.body).inject(Yl,{}).inject(qg,{}).inject(Cq,null).inject(_q,{}).inject(EE,[SE,ME]).record(kq),async()=>{await t.wait(Bg);let e=t.get(l8)||document.body,n=typeof e=="string"?document.querySelector(e):e;t.update(Rm,l=>[new Mr({key:IKe,view:c=>{let u=n?AKe(n,t):void 0;return(()=>{if(u&&n){let p=c.dom;n.replaceChild(u,p),u.appendChild(p)}})(),{destroy:()=>{u?.parentNode&&u?.parentNode.replaceChild(c.dom,u),u?.remove()}}}}),...l]),await t.waitTimers(EE);let r=t.get(o8),i=t.get(qg),o=Object.fromEntries(t.get(TE)),a=Object.fromEntries(t.get(RE)),s=new n8(n,{state:r,nodeViews:o,markViews:a,transformPasted:(l,c,u)=>(t.get(Xy).sort((d,p)=>(p.priority??50)-(d.priority??50)).map(d=>d.run).forEach(d=>{l=d(l,c,u)}),l),...i});return $Ke(s.dom),t.set(Yl,s),t.done(kq),()=>{s?.destroy(),t.remove(l8).remove(Yl).remove(qg).remove(Cq).remove(_q).remove(EE).clearTimer(kq)}});Am(vbe,{displayName:"EditorView"});var kbe=class Cbe{constructor(){this.#e=!1,this.#t="Idle",this.#n=[],this.#r=()=>{},this.#i=new kB,this.#o=new dhe,this.#s=new Map,this.#c=new Map,this.#a=new che(this.#i,this.#o),this.#g=()=>{let e=SKe(async r=>{await Promise.all(this.#n.map(i=>Promise.resolve(i(r))))}),n=[ube,gbe,ybe,mbe,EKe,wbe,xbe,vbe,LKe(this),e];this.#f(n,this.#c)},this.#f=(e,n)=>{e.forEach(r=>{let i=this.#a.produce(this.#e?r.meta:void 0),o=r(i);n.set(r,{ctx:i,handler:o,cleanup:void 0})})},this.#d=(e,n=!1)=>Promise.all([e].flat().map(async r=>{let i=this.#s.get(r)?.cleanup;return n?this.#s.delete(r):this.#s.set(r,{ctx:void 0,handler:void 0,cleanup:void 0}),typeof i=="function"?i():i})),this.#p=async()=>{await Promise.all([...this.#c.entries()].map(async([e,{cleanup:n}])=>typeof n=="function"?n():n)),this.#c.clear()},this.#m=e=>{this.#t=e,this.#r(e)},this.#b=e=>[...e.entries()].map(async([n,r])=>{let{ctx:i,handler:o}=r;if(!o)return;let a=await o();e.set(n,{ctx:i,handler:o,cleanup:a})}),this.enableInspector=(e=!0)=>(this.#e=e,this),this.onStatusChange=e=>(this.#r=e,this),this.config=e=>(this.#n.push(e),this),this.removeConfig=e=>(this.#n=this.#n.filter(n=>n!==e),this),this.use=e=>{let n=[e].flat();return n.flat().forEach(r=>{this.#s.set(r,{ctx:void 0,handler:void 0,cleanup:void 0})}),this.#t==="Created"&&this.#f(n,this.#s),this},this.remove=async e=>this.#t==="OnCreate"?(console.warn("[Milkdown]: You are trying to remove plugins when the editor is creating, this is not recommended, please check your code."),new Promise(n=>{setTimeout(()=>{n(this.remove(e))},50)})):(await this.#d([e].flat(),!0),this),this.create=async()=>this.#t==="OnCreate"?this:(this.#t==="Created"&&await this.destroy(),this.#m("OnCreate"),this.#g(),this.#f([...this.#s.keys()],this.#s),await Promise.all([this.#b(this.#c),this.#b(this.#s)].flat()),this.#m("Created"),this),this.destroy=async(e=!1)=>this.#t==="Destroyed"||this.#t==="OnDestroy"?this:this.#t==="OnCreate"?new Promise(n=>{setTimeout(()=>{n(this.destroy(e))},50)}):(e&&(this.#n=[]),this.#m("OnDestroy"),await this.#d([...this.#s.keys()],e),await this.#p(),this.#m("Destroyed"),this),this.action=e=>e(this.#a),this.inspect=()=>this.#e?[...this.#c.values(),...this.#s.values()].map(({ctx:e})=>e?.inspector?.read()).filter(e=>!!e):(console.warn("[Milkdown]: You are trying to collect inspection when inspector is disabled, please enable inspector by `editor.enableInspector()` first."),[])}static make(){return new Cbe}#e;#t;#n;#r;#i;#o;#s;#c;#a;#g;#f;#d;#p;#m;#b;get ctx(){return this.#a}get status(){return this.#t}};var NKe=t=>crypto.getRandomValues(new Uint8Array(t)),PKe=(t,e,n)=>{let r=256-256%t.length;if(r===256){let o=t.length-1;return(a=e)=>{if(!a)return"";let s="";for(;;){let l=n(a),c=a;for(;c--;)if(s+=t[l[c]&o],s.length>=a)return s}}}let i=Math.ceil(1.6*256*e/r);return(o=e)=>{if(!o)return"";let a="";for(;;){let s=n(i),l=i;for(;l--;)if(s[l]<r&&(a+=t[s[l]%t.length],a.length>=o))return a}}},_be=(t,e=21)=>PKe(t,e|0,NKe);var lZt=_be("abcedfghicklmn",10);function Sbe(t,e,n){let r=t.findIndex(([o])=>o===e);if(r===-1)return[...t,n];let i=t.slice();return i[r]=n,i}function tn(t,e){let n=pbe(t),r=i=>async()=>{r.key=n,await i.wait(Vy);let o=e(i);return i.get(Zn).create(n,o),r.run=a=>i.get(Zn).call(t,a),()=>{i.get(Zn).remove(n)}};return r}function za(t){let e=n=>async()=>{await n.wait(ms);let r=t(n);return n.update(Wy,i=>[...i,r]),e.inputRule=r,()=>{n.update(Wy,i=>i.filter(o=>o!==r))}};return e}function Lbe(t){let e=n=>async()=>{await n.wait(ms);let r=t(n);return n.update(Xy,i=>[...i,r]),e.pasteRule=r,()=>{n.update(Xy,i=>i.filter(o=>o!==r))}};return e}function jKe(t,e){let n=r=>async()=>{let i=e(r);return r.update(Uy,o=>Sbe(o,t,[t,i])),n.id=t,n.schema=i,()=>{r.update(Uy,o=>o.filter(([a])=>a!==t))}};return n.type=r=>{let i=r.get(Ql).marks[t];if(!i)throw lhe(t);return i},n}function AE(t,e){let n=r=>async()=>{let i=e(r);return r.update(Gy,o=>Sbe(o,t,[t,i])),n.id=t,n.schema=i,()=>{r.update(Gy,o=>o.filter(([a])=>a!==t))}};return n.type=r=>{let i=r.get(Ql).nodes[t];if(!i)throw she(t);return i},n}function ko(t){let e,n=r=>async()=>(await r.wait(ms),e=t(r),r.update(Rm,i=>[...i,e]),()=>{r.update(Rm,i=>i.filter(o=>o!==e))});return n.plugin=()=>e,n.key=()=>e.spec.key,n}function OKe(t){let e=n=>async()=>{await n.wait(Zy);let r=n.get(c8),i=t(n),o=r.addObjectKeymap(i);return e.keymap=i,()=>{o()}};return e}function Jc(t,e){let n=Fn(t,e),r=i=>(i.inject(n),()=>()=>{i.remove(n)});return r.key=n,r}function Ui(t,e){let n=Jc(e,t),r=AE(t,o=>o.get(n.key)(o)),i=[n,r];return i.id=r.id,i.node=r,i.type=o=>r.type(o),i.ctx=n,i.key=n.key,i.extendSchema=o=>Ui(t,o(e)),i}function lh(t,e){let n=Jc(e,t),r=jKe(t,o=>o.get(n.key)(o)),i=[n,r];return i.id=r.id,i.mark=r,i.type=o=>r.type(o),i.ctx=n,i.key=n.key,i.extendSchema=o=>lh(t,o(e)),i}function ra(t,e){let n=Jc(Object.fromEntries(Object.entries(e).map(([o,{shortcuts:a,priority:s}])=>[o,{shortcuts:a,priority:s}])),`${t}Keymap`),r=OKe(o=>{let a=o.get(n.key),s=Object.entries(e).flatMap(([l,{command:c}])=>{let u=a[l],d=[u.shortcuts].flat(),p=u.priority;return d.map(m=>[m,{key:m,onRun:c,priority:p}])});return Object.fromEntries(s)}),i=[n,r];return i.ctx=n,i.shortcuts=r,i.key=n.key,i.keymap=r.keymap,i}var eu=(t,e=()=>({}))=>Jc(e,`${t}Attr`),Hg=(t,e=()=>({}))=>Jc(e,`${t}Attr`);function $m(t,e,n){let r=Jc(n??{},t),i=a=>async()=>{await a.wait(Bg);let s={plugin:e(a),options:a.get(r.key)};return a.update(Ky,l=>[...l,s]),()=>{a.update(Ky,l=>l.filter(c=>c!==s))}},o=[r,i];return o.id=t,o.plugin=i,o.options=r,o}function Mbe(t){return e=>{let n=e.get(Yl),r=e.get(Ql),i=e.get(zg);if(!t)return i(n.state.doc);let o=n.state.doc.slice(t.from,t.to,!0),a=r.topNodeType.createAndFill(null,o.content);return a?i(a):(console.error("No document found"),"")}}function Ebe(t,e=!1){return n=>{let r=n.get(Yl),i=n.get(sh)(t);if(!i)return;if(!e){let{state:l}=r;return r.dispatch(l.tr.replace(0,l.doc.content.size,new Je(i.content,0,0)))}let o=n.get(Ql),a=n.get(s8)({schema:o,doc:i,plugins:n.get(Rm)}),s=Iy.create(a);r.updateState(s)}}function $E(t,e){return function(n,r){let{$from:i,$to:o,node:a}=n.selection;if(a&&a.isBlock||i.depth<2||!i.sameParent(o))return!1;let s=i.node(-1);if(s.type!=t)return!1;if(i.parent.content.size==0&&i.node(-1).childCount==i.indexAfter(-1)){if(i.depth==3||i.node(-3).type!=t||i.index(-2)!=i.node(-2).childCount-1)return!1;if(r){let d=De.empty,p=i.index(-1)?1:i.index(-2)?2:3;for(let g=i.depth-p;g>=i.depth-3;g--)d=De.from(i.node(g).copy(d));let m=i.indexAfter(-1)<i.node(-2).childCount?1:i.indexAfter(-2)<i.node(-3).childCount?2:3;d=d.append(De.from(t.createAndFill()));let f=i.before(i.depth-(p-1)),h=n.tr.replace(f,i.after(-m),new Je(d,4-p,0)),x=-1;h.doc.nodesBetween(f,h.doc.content.size,(g,y)=>{if(x>-1)return!1;g.isTextblock&&g.content.size==0&&(x=y+1)}),x>-1&&h.setSelection(Kt.near(h.doc.resolve(x))),r(h.scrollIntoView())}return!0}let l=o.pos==i.end()?s.contentMatchAt(0).defaultType:null,c=n.tr.delete(i.pos,o.pos),u=l?[e?{type:t,attrs:e}:null,{type:l}]:void 0;return Eg(c.doc,i.pos,2,u)?(r&&r(c.split(i.pos,2,u).scrollIntoView()),!0):!1}}function Tbe(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==t);return o?n?r.node(o.depth-1).type==t?DKe(e,n,t,o):FKe(e,n,o):!0:!1}}function DKe(t,e,n,r){let i=t.tr,o=r.end,a=r.$to.end(r.depth);o<a&&(i.step(new Jo(o-1,a,o,a,new Je(De.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Fx(i.doc.resolve(r.$from.pos),i.doc.resolve(a),r.depth));let s=Ay(r);if(s==null)return!1;i.lift(r,s);let l=i.doc.resolve(i.mapping.map(o,-1)-1);return Tg(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),e(i.scrollIntoView()),!0}function FKe(t,e,n){let r=t.tr,i=n.parent;for(let m=n.end,f=n.endIndex-1,h=n.startIndex;f>h;f--)m-=i.child(f).nodeSize,r.delete(m-1,m+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?De.empty:De.from(i))))return!1;let d=o.pos,p=d+a.nodeSize;return r.step(new Jo(d-(s?1:0),p+(l?1:0),d+1,p-1,new Je((s?De.empty:De.from(i.copy(De.empty))).append(l?De.empty:De.from(i.copy(De.empty))),s?0:1,l?0:1),s?0:1)),e(r.scrollIntoView()),!0}function Rbe(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==t);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=De.from(c?t.create():null),d=new Je(De.from(t.create(null,De.from(s.type.create(null,u)))),c?3:1,0),p=o.start,m=o.end;n(e.tr.step(new Jo(p-(c?3:1),m,p,m,d,1,!0)).scrollIntoView())}return!0}}function Sq(t){let e=new Map;if(!t||!t.type)throw new Error("mdast-util-definitions expected node");return Du(t,"definition",function(r){let i=Abe(r.identifier);i&&!e.get(i)&&e.set(i,r)}),n;function n(r){let i=Abe(r);return e.get(i)}}function Abe(t){return String(t||"").toUpperCase()}function IE(){return function(t){let e=Sq(t);Du(t,function(n,r,i){if(n.type==="definition"&&i!==void 0&&typeof r=="number")return i.children.splice(r,1),[wm,r];if(n.type==="imageReference"||n.type==="linkReference"){let o=e(n.identifier);if(o&&i&&typeof r=="number")return i.children[r]=n.type==="imageReference"?{type:"image",url:o.url,title:o.title,alt:n.alt}:{type:"link",url:o.url,title:o.title,children:n.children},[wm,r]}})}}function BKe(t){let e={...t};return e.position&&(e.position={start:{...e.position.start},end:{...e.position.end}}),delete e.children,e}var zKe="<br />",qKe=/^<br\s*\/?\s*>$/i,HKe=t=>typeof t=="string"&&qKe.test(t.trim());function Ibe(t,e){if(!(e.childCount>=1&&e.lastChild?.type.name==="hardbreak")){t.next(e.content);return}let n=[];e.content.forEach((r,i,o)=>{o!==e.childCount-1&&n.push(r)}),t.next(De.fromArray(n))}function Te(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-commonmark",...e}}),t}var Lq=Hg("emphasis");Te(Lq,{displayName:"Attr<emphasis>",group:"Emphasis"});var Qy=lh("emphasis",t=>({attrs:{marker:{default:t.get(ah).emphasis||"*",validate:"string"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:e=>e==="italic"}],toDOM:e=>["em",t.get(Lq.key)(e)],parseMarkdown:{match:e=>e.type==="emphasis",runner:(e,n,r)=>{e.openMark(r,{marker:n.marker}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="emphasis",runner:(e,n)=>{e.withMark(n,"emphasis",void 0,{marker:n.attrs.marker})}}}));Te(Qy.mark,{displayName:"MarkSchema<emphasis>",group:"Emphasis"});Te(Qy.ctx,{displayName:"MarkSchemaCtx<emphasis>",group:"Emphasis"});var Mq=tn("ToggleEmphasis",t=>()=>jy(Qy.type(t)));Te(Mq,{displayName:"Command<toggleEmphasisCommand>",group:"Emphasis"});var Nbe=za(t=>Ag(/(?:^|[^*])\*([^*]+)\*$/,Qy.type(t),{getAttr:()=>({marker:"*"}),updateCaptured:({fullMatch:e,start:n})=>e.startsWith("*")?{}:{fullMatch:e.slice(1),start:n+1}}));Te(Nbe,{displayName:"InputRule<emphasis>|Star",group:"Emphasis"});var Pbe=za(t=>Ag(/\b_(?![_\s])(.*?[^_\s])_$/,Qy.type(t),{getAttr:()=>({marker:"_"}),updateCaptured:({fullMatch:e,start:n})=>e.startsWith("_")?{}:{fullMatch:e.slice(1),start:n+1}}));Te(Pbe,{displayName:"InputRule<emphasis>|Underscore",group:"Emphasis"});var Eq=ra("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:t=>{let e=t.get(Zn);return()=>e.call(Mq.key)}}});Te(Eq.ctx,{displayName:"KeymapCtx<emphasis>",group:"Emphasis"});Te(Eq.shortcuts,{displayName:"Keymap<emphasis>",group:"Emphasis"});var Tq=Hg("strong");Te(Tq,{displayName:"Attr<strong>",group:"Strong"});var u8=lh("strong",t=>({attrs:{marker:{default:t.get(ah).strong||"*",validate:"string"}},parseDOM:[{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{tag:"strong"},{style:"font-style",getAttrs:e=>e==="bold"},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:e=>["strong",t.get(Tq.key)(e)],parseMarkdown:{match:e=>e.type==="strong",runner:(e,n,r)=>{e.openMark(r,{marker:n.marker}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strong",runner:(e,n)=>{e.withMark(n,"strong",void 0,{marker:n.attrs.marker})}}}));Te(u8.mark,{displayName:"MarkSchema<strong>",group:"Strong"});Te(u8.ctx,{displayName:"MarkSchemaCtx<strong>",group:"Strong"});var Rq=tn("ToggleStrong",t=>()=>jy(u8.type(t)));Te(Rq,{displayName:"Command<toggleStrongCommand>",group:"Strong"});var jbe=za(t=>Ag(/(?<![\w:/])(?:\*\*|__)([^*_]+?)(?:\*\*|__)(?![\w/])$/,u8.type(t),{getAttr:e=>({marker:e[0].startsWith("*")?"*":"_"})}));Te(jbe,{displayName:"InputRule<strong>",group:"Strong"});var Aq=ra("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:t=>{let e=t.get(Zn);return()=>e.call(Rq.key)}}});Te(Aq.ctx,{displayName:"KeymapCtx<strong>",group:"Strong"});Te(Aq.shortcuts,{displayName:"Keymap<strong>",group:"Strong"});var $q=Hg("inlineCode");Te($q,{displayName:"Attr<inlineCode>",group:"InlineCode"});var uh=lh("inlineCode",t=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:e=>["code",t.get($q.key)(e)],parseMarkdown:{match:e=>e.type==="inlineCode",runner:(e,n,r)=>{e.openMark(r),e.addText(n.value),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="inlineCode",runner:(e,n,r)=>(e.withMark(n,"inlineCode",r.text||""),!0)}}));Te(uh.mark,{displayName:"MarkSchema<inlineCode>",group:"InlineCode"});Te(uh.ctx,{displayName:"MarkSchemaCtx<inlineCode>",group:"InlineCode"});var Iq=tn("ToggleInlineCode",t=>()=>(e,n)=>{let{selection:r,tr:i}=e;if(r.empty)return!1;let{from:o,to:a}=r;return e.doc.rangeHasMark(o,a,uh.type(t))?(n?.(i.removeMark(o,a,uh.type(t))),!0):(Object.keys(e.schema.marks).filter(s=>s!==uh.type.name).map(s=>e.schema.marks[s]).forEach(s=>{i.removeMark(o,a,s)}),n?.(i.addMark(o,a,uh.type(t).create())),!0)});Te(Iq,{displayName:"Command<toggleInlineCodeCommand>",group:"InlineCode"});var Obe=za(t=>Ag(/(?:`)([^`]+)(?:`)$/,uh.type(t)));Te(Obe,{displayName:"InputRule<inlineCodeInputRule>",group:"InlineCode"});var Nq=ra("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:t=>{let e=t.get(Zn);return()=>e.call(Iq.key)}}});Te(Nq.ctx,{displayName:"KeymapCtx<inlineCode>",group:"InlineCode"});Te(Nq.shortcuts,{displayName:"Keymap<inlineCode>",group:"InlineCode"});var GKe=new Set(["http:","https:","mailto:","tel:","ftp:"]);function UKe(t){return t<=32||t>=127&&t<=160||t>=8203&&t<=8205||t===8232||t===8233||t===65279}function VKe(t){let e="";for(let n of t)UKe(n.codePointAt(0)??0)||(e+=n);return e}function ZKe(t){if(typeof t!="string")return"";let e=t.trim();if(!e)return"";let n=VKe(e),r=/^([a-z][a-z0-9+.-]*):/i.exec(n)?.[1];return!r||GKe.has(`${r.toLowerCase()}:`)?e:""}var Pq=Hg("link");Te(Pq,{displayName:"Attr<link>",group:"Link"});var Yy=lh("link",t=>({attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},parseDOM:[{tag:"a[href]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM:e=>["a",{...t.get(Pq.key)(e),...e.attrs,href:ZKe(e.attrs.href)}],parseMarkdown:{match:e=>e.type==="link",runner:(e,n,r)=>{let i=n.url,o=n.title;e.openMark(r,{href:i,title:o}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="link",runner:(e,n)=>{e.withMark(n,"link",void 0,{title:n.attrs.title,url:n.attrs.href})}}}));Te(Yy.mark,{displayName:"MarkSchema<link>",group:"Link"});var Dbe=tn("ToggleLink",t=>(e={})=>jy(Yy.type(t),e));Te(Dbe,{displayName:"Command<toggleLinkCommand>",group:"Link"});var Fbe=tn("UpdateLink",t=>(e={})=>(n,r)=>{if(!r)return!1;let i,o=-1,{selection:a}=n,{from:s,to:l}=a;if(n.doc.nodesBetween(s,s===l?l+1:l,(f,h)=>{if(Yy.type(t).isInSet(f.marks))return i=f,o=h,!1}),!i)return!1;let c=i.marks.find(({type:f})=>f===Yy.type(t));if(!c)return!1;let u=o,d=o+i.nodeSize,{tr:p}=n,m=Yy.type(t).create({...c.attrs,...e});return m?(r(p.removeMark(u,d,c).addMark(u,d,m).setSelection(new Qt(p.selection.$anchor)).scrollIntoView()),!0):!1});Te(Fbe,{displayName:"Command<updateLinkCommand>",group:"Link"});var Bbe=AE("doc",()=>({content:"block+",parseMarkdown:{match:({type:t})=>t==="root",runner:(t,e,n)=>{t.injectRoot(e,n)}},toMarkdown:{match:t=>t.type.name==="doc",runner:(t,e)=>{t.openNode("root");let n=e.childCount>0?e.child(e.childCount-1):null,r=n?.type.name==="paragraph"&&n.content.size===0?e.content.cut(0,e.content.size-n.nodeSize):e.content;t.next(r)}}}));Te(Bbe,{displayName:"NodeSchema<doc>",group:"Doc"});var zbe=Object.freeze(["root","blockquote","listItem","footnoteDefinition"]),WKe=new Set(["paragraph","heading","tableCell","link","linkReference","emphasis","strong","delete","footnote"]),NE=Jc(zbe,"blockContainerTypes");Te(NE,{displayName:"Ctx<blockContainerTypes>",group:"Remark"});var $be=new Set;function qbe(t){let e=t.isInjected(NE.key)?t.get(NE.key):zbe,n=new Set;for(let r of e){if(WKe.has(r)){$be.has(r)||($be.add(r),console.warn(`[milkdown/preset-commonmark] "${r}" holds phrasing content and cannot be a block container; it is ignored in blockContainerTypes.`));continue}n.add(r)}return n}var KKe=new Set(["paragraph","tableCell"]);function XKe(t,e){return yg(t,n=>n.type==="html"&&HKe(n.value),(n,r)=>{let i=r[r.length-1];if(i){if(KKe.has(i.type)){i.children.length===1&&(i.children=[]);return}if(e.has(i.type)){let o=n;return o.children=[],delete o.value,o.type="paragraph",wm}}})}var jE=$m("remark-preserve-empty-line",t=>()=>e=>XKe(e,qbe(t)));Te(jE.plugin,{displayName:"Remark<remarkPreserveEmptyLine>",group:"Remark"});Te(jE.options,{displayName:"RemarkConfig<remarkPreserveEmptyLine>",group:"Remark"});var jq=eu("paragraph");Te(jq,{displayName:"Attr<paragraph>",group:"Paragraph"});var Bu=Ui("paragraph",t=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:e=>["p",t.get(jq.key)(e),0],parseMarkdown:{match:e=>e.type==="paragraph",runner:(e,n,r)=>{e.openNode(r),n.children?e.next(n.children):e.addText(n.value||""),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="paragraph",runner:(e,n)=>{e.openNode("paragraph"),(!n.content||n.content.size===0)&&YKe(t)?e.addNode("html",void 0,zKe):Ibe(e,n),e.closeNode()}}}));function YKe(t){return t.isInjected(jE.options.key)}Te(Bu.node,{displayName:"NodeSchema<paragraph>",group:"Paragraph"});Te(Bu.ctx,{displayName:"NodeSchemaCtx<paragraph>",group:"Paragraph"});var Oq=tn("TurnIntoText",t=>()=>Py(Bu.type(t)));Te(Oq,{displayName:"Command<turnIntoTextCommand>",group:"Paragraph"});var Dq=ra("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:t=>{let e=t.get(Zn);return()=>e.call(Oq.key)}}});Te(Dq.ctx,{displayName:"KeymapCtx<paragraph>",group:"Paragraph"});Te(Dq.shortcuts,{displayName:"Keymap<paragraph>",group:"Paragraph"});var QKe=Array(6).fill(0).map((t,e)=>e+1);function JKe(t){return t.textContent.toLowerCase().trim().replace(/\s+/g,"-")}var OE=Jc(JKe,"headingIdGenerator");Te(OE,{displayName:"Ctx<HeadingIdGenerator>",group:"Heading"});var Fq=eu("heading");Te(Fq,{displayName:"Attr<heading>",group:"Heading"});var Ug=Ui("heading",t=>{let e=t.get(OE.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:"",validate:"string"},level:{default:1,validate:"number"}},parseDOM:QKe.map(n=>({tag:`h${n}`,getAttrs:r=>{if(!(r instanceof HTMLElement))throw Wl(r);return{level:n,id:r.id}}})),toDOM:n=>[`h${n.attrs.level}`,{...t.get(Fq.key)(n),id:n.attrs.id||e(n)},0],parseMarkdown:{match:({type:n})=>n==="heading",runner:(n,r,i)=>{let o=r.depth;n.openNode(i,{level:o}),n.next(r.children),n.closeNode()}},toMarkdown:{match:n=>n.type.name==="heading",runner:(n,r)=>{n.openNode("heading",void 0,{depth:r.attrs.level}),Ibe(n,r),n.closeNode()}}}});Te(Ug.node,{displayName:"NodeSchema<heading>",group:"Heading"});Te(Ug.ctx,{displayName:"NodeSchemaCtx<heading>",group:"Heading"});var Hbe=za(t=>$z(/^(?<hashes>#+)\s$/,Ug.type(t),e=>{let n=e.groups?.hashes?.length||0,{$from:r}=t.get(Yl).state.selection,i=r.node();if(i.type.name==="heading"){let o=Number(i.attrs.level)+Number(n);return o>6&&(o=6),{level:o}}return{level:n}}));Te(Hbe,{displayName:"InputRule<wrapInHeadingInputRule>",group:"Heading"});var ch=tn("WrapInHeading",t=>e=>(e??=1,e<1?Py(Bu.type(t)):Py(Ug.type(t),{level:e})));Te(ch,{displayName:"Command<wrapInHeadingCommand>",group:"Heading"});var Bq=tn("DowngradeHeading",t=>()=>(e,n,r)=>{let{$from:i}=e.selection,o=i.node();if(o.type!==Ug.type(t)||!e.selection.empty||i.parentOffset!==0)return!1;let a=o.attrs.level-1;return a?(n?.(e.tr.setNodeMarkup(e.selection.$from.before(),void 0,{...o.attrs,level:a})),!0):Py(Bu.type(t))(e,n,r)});Te(Bq,{displayName:"Command<downgradeHeadingCommand>",group:"Heading"});var zq=ra("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:t=>{let e=t.get(Zn);return()=>e.call(ch.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:t=>{let e=t.get(Zn);return()=>e.call(ch.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:t=>{let e=t.get(Zn);return()=>e.call(ch.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:t=>{let e=t.get(Zn);return()=>e.call(ch.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:t=>{let e=t.get(Zn);return()=>e.call(ch.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:t=>{let e=t.get(Zn);return()=>e.call(ch.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:t=>{let e=t.get(Zn);return()=>e.call(Bq.key)}}});Te(zq.ctx,{displayName:"KeymapCtx<heading>",group:"Heading"});Te(zq.shortcuts,{displayName:"Keymap<heading>",group:"Heading"});var qq=eu("blockquote");Te(qq,{displayName:"Attr<blockquote>",group:"Blockquote"});var d8=Ui("blockquote",t=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:e=>["blockquote",t.get(qq.key)(e),0],parseMarkdown:{match:({type:e})=>e==="blockquote",runner:(e,n,r)=>{e.openNode(r).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="blockquote",runner:(e,n)=>{e.openNode("blockquote").next(n.content).closeNode()}}}));Te(d8.node,{displayName:"NodeSchema<blockquote>",group:"Blockquote"});Te(d8.ctx,{displayName:"NodeSchemaCtx<blockquote>",group:"Blockquote"});var Gbe=za(t=>rE(/^\s*>\s$/,d8.type(t)));Te(Gbe,{displayName:"InputRule<wrapInBlockquoteInputRule>",group:"Blockquote"});var Hq=tn("WrapInBlockquote",t=>()=>tE(d8.type(t)));Te(Hq,{displayName:"Command<wrapInBlockquoteCommand>",group:"Blockquote"});var Gq=ra("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:t=>{let e=t.get(Zn);return()=>e.call(Hq.key)}}});Te(Gq.ctx,{displayName:"KeymapCtx<blockquote>",group:"Blockquote"});Te(Gq.shortcuts,{displayName:"Keymap<blockquote>",group:"Blockquote"});var Uq=eu("codeBlock",()=>({pre:{},code:{}}));Te(Uq,{displayName:"Attr<codeBlock>",group:"CodeBlock"});var p8=Ui("code_block",t=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:"",validate:"string"}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{language:e.dataset.language}}}],toDOM:e=>{let n=t.get(Uq.key)(e),r=e.attrs.language,i=r&&r.length>0?{"data-language":r}:void 0;return["pre",{...n.pre,...i},["code",n.code,0]]},parseMarkdown:{match:({type:e})=>e==="code",runner:(e,n,r)=>{let i=n.lang??"",o=n.value;e.openNode(r,{language:i}),o&&e.addText(o),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="code_block",runner:(e,n)=>{e.addNode("code",void 0,n.content.firstChild?.text||"",{lang:n.attrs.language})}}}));Te(p8.node,{displayName:"NodeSchema<codeBlock>",group:"CodeBlock"});Te(p8.ctx,{displayName:"NodeSchemaCtx<codeBlock>",group:"CodeBlock"});var Ube=za(t=>$z(/^```(?<language>[a-z]*)?[\s\n]$/,p8.type(t),e=>({language:e.groups?.language??""})));Te(Ube,{displayName:"InputRule<createCodeBlockInputRule>",group:"CodeBlock"});var Vq=tn("CreateCodeBlock",t=>(e="")=>Py(p8.type(t),{language:e}));Te(Vq,{displayName:"Command<createCodeBlockCommand>",group:"CodeBlock"});var eXe=tn("UpdateCodeBlockLanguage",()=>({pos:t,language:e}={pos:-1,language:""})=>(n,r)=>t>=0?(r?.(n.tr.setNodeAttribute(t,"language",e)),!0):!1);Te(eXe,{displayName:"Command<updateCodeBlockLanguageCommand>",group:"CodeBlock"});var Zq=ra("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:t=>{let e=t.get(Zn);return()=>e.call(Vq.key)}}});Te(Zq.ctx,{displayName:"KeymapCtx<codeBlock>",group:"CodeBlock"});Te(Zq.shortcuts,{displayName:"Keymap<codeBlock>",group:"CodeBlock"});var Wq=eu("image");Te(Wq,{displayName:"Attr<image>",group:"Image"});var Jy=Ui("image",t=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:"",validate:"string"},alt:{default:"",validate:"string"},title:{default:"",validate:"string"}},parseDOM:[{tag:"img[src]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{src:e.getAttribute("src")||"",alt:e.getAttribute("alt")||"",title:e.getAttribute("title")||e.getAttribute("alt")||""}}}],toDOM:e=>["img",{...t.get(Wq.key)(e),...e.attrs}],parseMarkdown:{match:({type:e})=>e==="image",runner:(e,n,r)=>{let i=n.url,o=n.alt,a=n.title;e.addNode(r,{src:i,alt:o,title:a})}},toMarkdown:{match:e=>e.type.name==="image",runner:(e,n)=>{e.addNode("image",void 0,void 0,{title:n.attrs.title,url:n.attrs.src,alt:n.attrs.alt})}}}));Te(Jy.node,{displayName:"NodeSchema<image>",group:"Image"});Te(Jy.ctx,{displayName:"NodeSchemaCtx<image>",group:"Image"});var Vbe=tn("InsertImage",t=>(e={})=>(n,r)=>{if(!r)return!0;let{src:i="",alt:o="",title:a=""}=e,s=Jy.type(t).create({src:i,alt:o,title:a});return s&&r(n.tr.replaceSelectionWith(s).scrollIntoView()),!0});Te(Vbe,{displayName:"Command<insertImageCommand>",group:"Image"});var Zbe=tn("UpdateImage",t=>(e={})=>(n,r)=>{let i=zge(n.selection,Jy.type(t));if(!i)return!1;let{node:o,pos:a}=i,s={...o.attrs},{src:l,alt:c,title:u}=e;return l!==void 0&&(s.src=l),c!==void 0&&(s.alt=c),u!==void 0&&(s.title=u),r?.(n.tr.setNodeMarkup(a,void 0,s).scrollIntoView()),!0});Te(Zbe,{displayName:"Command<updateImageCommand>",group:"Image"});var tXe=za(t=>new Io(/!\[(?<alt>.*?)]\((?<filename>.*?)\s*(?="|\))"?(?<title>[^"]+)?"?\)/,(e,n,r,i)=>{let[o,a,s="",l]=n;return o?e.tr.replaceWith(r,i,Jy.type(t).create({src:s,alt:a,title:l})):null}));Te(tXe,{displayName:"InputRule<insertImageInputRule>",group:"Image"});var PE=eu("hardbreak",t=>({"data-type":"hardbreak","data-is-inline":t.attrs.isInline}));Te(PE,{displayName:"Attr<hardbreak>",group:"Hardbreak"});var Gg=Ui("hardbreak",t=>({inline:!0,group:"inline",attrs:{isInline:{default:!1,validate:"boolean"}},selectable:!1,parseDOM:[{tag:"br"},{tag:'span[data-type="hardbreak"]',getAttrs:()=>({isInline:!0})}],toDOM:e=>e.attrs.isInline?["span",t.get(PE.key)(e)," "]:["br",t.get(PE.key)(e)],parseMarkdown:{match:({type:e})=>e==="break",runner:(e,n,r)=>{e.addNode(r,{isInline:!!n.data?.isInline})}},leafText:()=>` +`))),0,0),t.someProp("transformPasted",p=>{s=p(s,t,!0)}),s;let d=t.someProp("clipboardTextParser",p=>p(e,i,r,t));if(d)s=d;else{let p=i.marks(),{schema:m}=t.state,f=Bd.fromSchema(m);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(h=>{let x=a.appendChild(document.createElement("p"));h&&x.appendChild(f.serializeNode(m.text(h,p)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),a=zWe(n),i8&&qWe(a);let c=a&&a.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||Fd.fromSchema(t.state.schema)).parseSlice(a,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(p){return p.nodeName=="BR"&&!p.nextSibling&&p.parentNode&&!DWe.test(p.parentNode.nodeName)?{ignore:!0}:null}})),u)s=HWe(b5e(s,+u[1],+u[2]),u[4]);else if(s=Je.maxOpen(FWe(s.content,i),!0),s.openStart||s.openEnd){let d=0,p=0;for(let m=s.content.firstChild;d<s.openStart&&!m.type.spec.isolating;d++,m=m.firstChild);for(let m=s.content.lastChild;p<s.openEnd&&!m.type.spec.isolating;p++,m=m.lastChild);s=b5e(s,d,p)}return t.someProp("transformPasted",d=>{s=d(s,t,l)}),s}var DWe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function FWe(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),o,a=[];if(t.forEach(s=>{if(!a)return;let l=i.findWrapping(s.type),c;if(!l)return a=null;if(c=a.length&&o.length&&W5e(l,o,s,a[a.length-1],0))a[a.length-1]=c;else{a.length&&(a[a.length-1]=K5e(a[a.length-1],o.length));let u=Z5e(s,l);a.push(u),i=i.matchType(u.type),o=l}}),a)return De.from(a)}return t}function Z5e(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,De.from(t));return t}function W5e(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let o=W5e(t,e,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(De.from(Z5e(n,t,i+1))))}}function K5e(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,K5e(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(De.empty,!0);return t.copy(n.append(r))}function rq(t,e,n,r,i,o){let a=e<0?t.firstChild:t.lastChild,s=a.content;return t.childCount>1&&(o=0),i<r-1&&(s=rq(s,e,n,r,i+1,o)),i>=n&&(s=e<0?a.contentMatchAt(0).fillBefore(s,o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(De.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(s))}function b5e(t,e,n){return e<t.openStart&&(t=new Je(rq(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new Je(rq(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}var X5e={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},y5e=null;function Y5e(){return y5e||(y5e=document.implementation.createHTMLDocument("title"))}var Hz=null;function BWe(t){let e=window.trustedTypes;return e?(Hz||(Hz=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Hz.createHTML(t)):t}function zWe(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Y5e().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&X5e[r[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=BWe(t),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function qWe(t){let e=t.querySelectorAll(ta?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent=="\xA0"&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function HWe(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:i,openStart:o,openEnd:a}=t;for(let s=r.length-2;s>=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;i=De.from(l.create(r[s+1],i)),o++,a++}return new Je(i,o,a)}var ds={},ps={},GWe={touchstart:!0,touchmove:!0},iq=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function UWe(t){for(let e in ds){let n=ds[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{ZWe(t,r)&&!fq(t,r)&&(t.editable||!(r.type in ps))&&n(t,r)},GWe[e]?{passive:!0}:void 0)}Ba&&t.dom.addEventListener("input",()=>null),oq(t)}function ih(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function VWe(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function oq(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>fq(t,r))})}function fq(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function ZWe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function WWe(t,e){!fq(t,e)&&ds[e.type]&&(t.editable||!(e.type in ps))&&ds[e.type](t,e)}ps.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!J5e(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Em&&ta&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Hy&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,Ig(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||OWe(t,n)?n.preventDefault():ih(t,"key")};ps.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};ps.keypress=(t,e)=>{let n=e;if(J5e(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Kc&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Qt)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),o=()=>t.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",a=>a(t,r.$from.pos,r.$to.pos,i,o))&&t.dispatch(o()),n.preventDefault()}};function vE(t){return{left:t.clientX,top:t.clientY}}function KWe(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function hq(t,e,n,r,i){if(r==-1)return!1;let o=t.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(t.someProp(e,s=>a>o.depth?s(t,n,o.nodeAfter,o.before(a),i,!0):s(t,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function zy(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function XWe(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&cn.isSelectable(r)?(zy(t,new cn(n),"pointer"),!0):!1}function YWe(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof cn&&(r=n.node);let o=t.state.doc.resolve(e);for(let a=o.depth+1;a>0;a--){let s=a>o.depth?o.nodeAfter:o.node(a);if(cn.isSelectable(s)){r&&n.$from.depth>0&&a>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(a);break}}return i!=null?(zy(t,cn.create(t.state.doc,i),"pointer"),!0):!1}function QWe(t,e,n,r,i){return hq(t,"handleClickOn",e,n,r)||t.someProp("handleClick",o=>o(t,e,r))||(i?YWe(t,n):XWe(t,n))}function JWe(t,e,n,r){return hq(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function eKe(t,e,n,r){return hq(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||tKe(t,n,r)}function tKe(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(zy(t,Qt.create(r,0,r.content.size),"pointer"),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let a=o>i.depth?i.nodeAfter:i.node(o),s=i.before(o);if(a.inlineContent)zy(t,Qt.create(r,s+1,s+1+a.content.size),"pointer");else if(cn.isSelectable(a))zy(t,cn.create(r,s),"pointer");else continue;return!0}}function gq(t){return hE(t)}var Q5e=Kc?"metaKey":"ctrlKey";ds.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=gq(t),i=Date.now(),o="singleClick";i-t.input.lastClick.time<500&&KWe(n,t.input.lastClick)&&!n[Q5e]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o,button:n.button};let a=t.posAtCoords(vE(n));a&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new aq(t,a,n,!!r)):(o=="doubleClick"?JWe:eKe)(t,a.pos,a.inside,n)?n.preventDefault():ih(t,"pointer"))};var aq=class{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Q5e],this.allowDefault=r.shiftKey;let o,a;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),a=n.inside;else{let u=e.state.doc.resolve(n.pos);o=u.parent,a=u.depth?u.before():0}let s=i?null:r.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=e.state;r.button==0&&(o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof cn&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Yc&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ih(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Tm(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(vE(e))),this.updateAllowDefault(e),this.allowDefault||!n?ih(this.view,"pointer"):QWe(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ba&&this.mightDrag&&!this.mightDrag.node.isAtom||ta&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(zy(this.view,Kt.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):ih(this.view,"pointer")}move(e){this.updateAllowDefault(e),ih(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}};ds.touchstart=t=>{t.input.lastTouch=Date.now(),gq(t),ih(t,"pointer")};ds.touchmove=t=>{t.input.lastTouch=Date.now(),ih(t,"pointer")};ds.contextmenu=t=>gq(t);function J5e(t,e){return t.composing?!0:Ba&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}var nKe=Em?5e3:-1;ps.compositionstart=ps.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Qt&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||ta&&$5e&&rKe(t)))t.markCursor=t.state.storedMarks||n.marks(),hE(t,!0),t.markCursor=null;else if(hE(t,!e.selection.empty),Yc&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let a=o<0?i.lastChild:i.childNodes[o-1];if(!a)break;if(a.nodeType==3){let s=t.domSelection();s&&s.collapse(a,a.nodeValue.length);break}else i=a,o=-1}}t.input.composing=!0}ebe(t,nKe)};function rKe(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}ps.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,ebe(t,20))};function ebe(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>hE(t),e))}function tbe(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=oKe());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function iKe(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=tWe(e.focusNode,e.focusOffset),r=nWe(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return r}}return n||r}function oKe(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function hE(t,e=!1){if(!(Em&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),tbe(t),e||t.docView&&t.docView.dirty){let n=dq(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function aKe(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}var Jx=ol&&oh<15||Hy&&aWe<604;ds.copy=ps.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let o=Jx?null:n.clipboardData,a=r.content(),{dom:s,text:l}=mq(t,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):aKe(t,s),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function sKe(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function lKe(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?e8(t,r.value,null,i,e):e8(t,r.textContent,r.innerHTML,i,e)},50)}function e8(t,e,n,r,i){let o=V5e(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,o||Je.empty)))return!0;if(!o)return!1;let a=sKe(o),s=a?t.state.tr.replaceSelectionWith(a,r):t.state.tr.replaceSelection(o);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function nbe(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}ps.paste=(t,e)=>{let n=e;if(t.composing&&!Em)return;let r=Jx?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&e8(t,nbe(r),r.getData("text/html"),i,n)?n.preventDefault():lKe(t,n)};var gE=class{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}},cKe=Kc?"altKey":"ctrlKey";function rbe(t,e){let n;return t.someProp("dragCopies",r=>{n=n||r(e)}),n!=null?!n:!e[cKe]}ds.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,o=i.empty?null:t.posAtCoords(vE(n)),a;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof cn?i.to-1:i.to))){if(r&&r.mightDrag)a=cn.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(a=cn.create(t.state.doc,d.posBefore))}}let s=(a||t.state.selection).content(),{dom:l,text:c,slice:u}=mq(t,s);(!n.dataTransfer.files.length||!ta||A5e>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Jx?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Jx||n.dataTransfer.setData("text/plain",c),t.dragging=new gE(u,rbe(t,n),a)};ds.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};ps.dragover=ps.dragenter=(t,e)=>e.preventDefault();ps.drop=(t,e)=>{try{uKe(t,e,t.dragging)}finally{t.dragging=null}};function uKe(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(vE(e));if(!r)return;let i=t.state.doc.resolve(r.pos),o=n&&n.slice;o?t.someProp("transformPasted",m=>{o=m(o,t,!1)}):o=V5e(t,nbe(e.dataTransfer),Jx?null:e.dataTransfer.getData("text/html"),!1,i);let a=!!(n&&rbe(t,e));if(t.someProp("handleDrop",m=>m(t,e,o||Je.empty,a))){e.preventDefault();return}if(!o)return;e.preventDefault();let s=o?dge(t.state.doc,i.pos,o):i.pos;s==null&&(s=i.pos);let l=t.state.tr;if(a){let{node:m}=n;m?m.replace(l):l.deleteSelection()}let c=l.mapping.map(s),u=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,d=l.doc;if(u?l.replaceRangeWith(c,c,o.content.firstChild):l.replaceRange(c,c,o),l.doc.eq(d))return;let p=l.doc.resolve(c);if(u&&cn.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new cn(p));else{let m=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((f,h,x,g)=>m=g),l.setSelection(pq(t,p,l.doc.resolve(m)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}ds.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Tm(t)},20))};ds.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};ds.beforeinput=(t,e)=>{if(ta&&Em&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,Ig(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in ps)ds[t]=ps[t];function t8(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}var bE=class t{constructor(e,n){this.toDOM=e,this.spec=n||Og,this.side=this.spec.side||0}map(e,n,r,i){let{pos:o,deleted:a}=e.mapResult(n.from+i,this.side<0?-1:1);return a?null:new na(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof t&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&t8(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},jg=class t{constructor(e,n){this.attrs=e,this.spec=n||Og}map(e,n,r,i){let o=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,a=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=a?null:new na(o,a,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof t&&t8(this.attrs,e.attrs)&&t8(this.spec,e.spec)}static is(e){return e.type instanceof t}destroy(){}},sq=class t{constructor(e,n){this.attrs=e,this.spec=n||Og}map(e,n,r,i){let o=e.mapResult(n.from+i,1);if(o.deleted)return null;let a=e.mapResult(n.to+i,-1);return a.deleted||a.pos<=o.pos?null:new na(o.pos-r,a.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),o;return i==n.from&&!(o=e.child(r)).isText&&i+o.nodeSize==n.to}eq(e){return this==e||e instanceof t&&t8(this.attrs,e.attrs)&&t8(this.spec,e.spec)}destroy(){}},na=class t{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new t(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new t(e,e,new bE(n,r))}static inline(e,n,r,i){return new t(e,n,new jg(r,i))}static node(e,n,r,i){return new t(e,n,new sq(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof jg}get widget(){return this.type instanceof bE}},By=[],Og={},Gi=class t{constructor(e,n){this.local=e.length?e:By,this.children=n.length?n:By}static create(e,n){return n.length?xE(n,e,0,Og):Fa}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,o){for(let a=0;a<this.local.length;a++){let s=this.local[a];s.from<=n&&s.to>=e&&(!o||o(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>e){let s=this.children[a]+1;this.children[a+2].findInner(e-s,n-s,r,i+s,o)}}map(e,n,r){return this==Fa||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Og)}mapInner(e,n,r,i,o){let a;for(let s=0;s<this.local.length;s++){let l=this.local[s].map(e,r,i);l&&l.type.valid(n,l)?(a||(a=[])).push(l):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?dKe(this.children,a||[],e,n,r,i,o):a?new t(a.sort(Dg),By):Fa}add(e,n){return n.length?this==Fa?t.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,o=0;e.forEach((s,l)=>{let c=l+r,u;if(u=obe(n,s,c)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(s,u,c+1):i.splice(o,0,l,l+s.nodeSize,xE(u,s,c+1,Og)),o+=3}});let a=ibe(o?abe(n):n,-r);for(let s=0;s<a.length;s++)a[s].type.valid(e,a[s])||a.splice(s--,1);return new t(a.length?this.local.concat(a).sort(Dg):this.local,i||this.children)}remove(e){return e.length==0||this==Fa?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let a,s=r[o]+n,l=r[o+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>s&&d.to<l&&(e[u]=null,(a||(a=[])).push(d));if(!a)continue;r==this.children&&(r=this.children.slice());let c=r[o+2].removeInner(a,s+1);c!=Fa?r[o+2]=c:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,a;o<e.length;o++)if(a=e[o])for(let s=0;s<i.length;s++)i[s].eq(a,n)&&(i==this.local&&(i=this.local.slice()),i.splice(s--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new t(i,r):Fa}forChild(e,n){if(this==Fa)return this;if(n.isLeaf)return t.empty;let r,i;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(r=this.children[s+2]);break}let o=e+1,a=o+n.content.size;for(let s=0;s<this.local.length;s++){let l=this.local[s];if(l.from<a&&l.to>o&&l.type instanceof jg){let c=Math.max(o,l.from)-o,u=Math.min(a,l.to)-o;c<u&&(i||(i=[])).push(l.copy(c,u))}}if(i){let s=new t(i.sort(Dg),By);return r?new yE([s,r]):s}return r||Fa}eq(e){if(this==e)return!0;if(!(e instanceof t)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return bq(this.localsInner(e))}localsInner(e){if(this==Fa)return By;if(e.inlineContent||!this.local.some(jg.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof jg||n.push(this.local[r]);return n}forEachSet(e){e(this)}};Gi.empty=new Gi([],[]);Gi.removeOverlap=bq;var Fa=Gi.empty,yE=class t{constructor(e){this.members=e}map(e,n){let r=this.members.map(i=>i.map(e,n,Og));return t.from(r)}forChild(e,n){if(n.isLeaf)return Gi.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(e,n);o!=Fa&&(o instanceof t?r=r.concat(o.members):r.push(o))}return t.from(r)}eq(e){if(!(e instanceof t)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(e);if(o.length)if(!n)n=o;else{r&&(n=n.slice(),r=!1);for(let a=0;a<o.length;a++)n.push(o[a])}}return n?bq(r?n:n.sort(Dg)):By}static from(e){switch(e.length){case 0:return Fa;case 1:return e[0];default:return new t(e.every(n=>n instanceof Gi)?e:e.reduce((n,r)=>n.concat(r instanceof Gi?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}};function dKe(t,e,n,r,i,o,a){let s=t.slice();for(let c=0,u=o;c<n.maps.length;c++){let d=0;n.maps[c].forEach((p,m,f,h)=>{let x=h-f-(m-p);for(let g=0;g<s.length;g+=3){let y=s[g+1];if(y<0||p>y+u-d)continue;let b=s[g]+u-d;m>=b?s[g+1]=p<=b?-2:-1:p>=u&&x&&(s[g]+=x,s[g+1]+=x)}d+=x}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(s[c+1]==-2){l=!0,s[c+1]=-1;continue}let u=n.map(t[c]+o),d=u-i;if(d<0||d>=r.content.size){l=!0;continue}let p=n.map(t[c+1]+o,-1),m=p-i,{index:f,offset:h}=r.content.findIndex(d),x=r.maybeChild(f);if(x&&h==d&&h+x.nodeSize==m){let g=s[c+2].mapInner(n,x,u+1,t[c]+o+1,a);g!=Fa?(s[c]=d,s[c+1]=m,s[c+2]=g):(s[c+1]=-2,l=!0)}else l=!0}if(l){let c=pKe(s,t,e,n,i,o,a),u=xE(c,r,0,a);e=u.local;for(let d=0;d<s.length;d+=3)s[d+1]<0&&(s.splice(d,3),d-=3);for(let d=0,p=0;d<u.children.length;d+=3){let m=u.children[d];for(;p<s.length&&s[p]<m;)p+=3;s.splice(p,0,u.children[d],u.children[d+1],u.children[d+2])}}return new Gi(e.sort(Dg),s)}function ibe(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new na(i.from+e,i.to+e,i.type))}return n}function pKe(t,e,n,r,i,o,a){function s(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(r,i,c);d?n.push(d):a.onRemove&&a.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)s(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&s(t[l+2],e[l]+o+1);return n}function obe(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let o=0,a;o<t.length;o++)(a=t[o])&&a.from>n&&a.to<r&&((i||(i=[])).push(a),t[o]=null);return i}function abe(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function xE(t,e,n,r){let i=[],o=!1;e.forEach((s,l)=>{let c=obe(t,s,l+n);if(c){o=!0;let u=xE(c,s,n+l+1,r);u!=Fa&&i.push(l,l+s.nodeSize,u)}});let a=ibe(o?abe(t):t,-n).sort(Dg);for(let s=0;s<a.length;s++)a[s].type.valid(e,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||i.length?new Gi(a,i):Fa}function Dg(t,e){return t.from-e.from||t.to-e.to}function bq(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let o=e[i];if(o.from==r.from){o.to!=r.to&&(e==t&&(e=t.slice()),e[i]=o.copy(o.from,r.to),x5e(e,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,o.from),x5e(e,i,r.copy(o.from,r.to)));break}}}return e}function x5e(t,e,n){for(;e<t.length&&Dg(n,t[e])>0;)e++;t.splice(e,0,n)}function Gz(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Fa&&e.push(r)}),t.cursorWrapper&&e.push(Gi.create(t.state.doc,[t.cursorWrapper.deco])),yE.from(e)}var mKe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},fKe=ol&&oh<=11,lq=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},cq=class{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lq,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);ol&&oh<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():Ba&&e.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),fKe&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,mKe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(d5e(this.view)){if(this.suppressingSelectionUpdates)return Tm(this.view);if(ol&&oh<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Fg(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let o=e.focusNode;o;o=qy(o))n.add(o);for(let o=e.anchorNode;o;o=qy(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&d5e(e)&&!this.ignoreSelectionChange(r),o=-1,a=-1,s=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(o=o<0?d.from:Math.min(d.from,o),a=a<0?d.to:Math.max(d.to,a),d.typeOver&&(s=!0))}if(l.some(u=>u.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let u of l)if(u.nodeName=="BR"&&u.parentNode){let d=u.nextSibling;for(;d&&d.nodeType==1;){if(d.contentEditable=="false"){u.parentNode.removeChild(u);break}d=d.firstChild}}}else if(Yc&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,p]=u;d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let p of u){let m=p.parentNode;m&&m.nodeName=="LI"&&(!d||bKe(e,d)!=m)&&p.remove()}}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&wE(r)&&(c=dq(e))&&c.eq(Kt.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Tm(e),this.currentSelection.set(r),e.scrollToSelection()):(o>-1||i)&&(o>-1&&(e.docView.markDirty(o,a),hKe(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,yKe(e,l)),this.handleDOMChange(o,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Tm(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,o=e.nextSibling;if(ol&&oh<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:p}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d),(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(o=p)}let a=i&&i.parentNode==e.target?ea(i)+1:0,s=r.localPosFromDOM(e.target,a,-1),l=o&&o.parentNode==e.target?ea(o):e.target.childNodes.length,c=r.localPosFromDOM(e.target,l,1);return{from:s,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},w5e=new WeakMap,v5e=!1;function hKe(t){if(!w5e.has(t)&&(w5e.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Yc,v5e)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),v5e=!0}}function k5e(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return Fg(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function gKe(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return k5e(t,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?k5e(t,n):null}function bKe(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function yKe(t,e){var n;let{focusNode:r,focusOffset:i}=t.domSelectionRange();for(let o of e)if(((n=o.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let a=o.nextSibling;for(;a&&a.nodeName!="TD"&&a.nodeName!="TH";)a=a.nextSibling;if(a){let s=a;for(;;){let l=s.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;s=l}s.insertBefore(o,s.firstChild),r==o&&t.domSelection().collapse(o,i)}else o.parentNode.removeChild(o)}}function xKe(t,e,n){let{node:r,fromOffset:i,toOffset:o,from:a,to:s}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],wE(l)||c.push({node:l.focusNode,offset:l.focusOffset})),ta&&t.input.lastKeyCode===8)for(let x=o;x>i;x--){let g=r.childNodes[x-1],y=g.pmViewDesc;if(g.nodeName=="BR"&&!y){o=x;break}if(!y||y.size)break}let d=t.state.doc,p=t.someProp("domParser")||Fd.fromSchema(t.state.schema),m=d.resolve(a),f=null,h=p.parse(r,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:i,to:o,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:wKe,context:m});if(c&&c[0].pos!=null){let x=c[0].pos,g=c[1]&&c[1].pos;g==null&&(g=x),f={anchor:x+a,head:g+a}}return{doc:h,sel:f,from:a,to:s}}function wKe(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Ba&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Ba&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}var vKe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function kKe(t,e,n,r,i){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let _=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,L=dq(t,_);if(L&&!t.state.selection.eq(L)){if(ta&&Em&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",C=>C(t,Ig(13,"Enter"))))return;let S=t.state.tr.setSelection(L);_=="pointer"?S.setMeta("pointer",!0):_=="key"&&S.scrollIntoView(),o&&S.setMeta("composition",o),t.dispatch(S)}return}let a=t.state.doc.resolve(e),s=a.sharedDepth(n);e=a.before(s+1),n=t.state.doc.resolve(n).after(s+1);let l=t.state.selection,c=xKe(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),p,m;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(p=t.state.selection.to,m="end"):(p=t.state.selection.from,m="start"),t.input.lastKeyCode=null;let f=SKe(d.content,c.doc.content,c.from,p,m);if(f&&t.input.domChangeCount++,(Hy&&t.input.lastIOSEnter>Date.now()-225||Em)&&i.some(_=>_.nodeType==1&&!vKe.test(_.nodeName))&&(!f||f.endA>=f.endB)&&t.someProp("handleKeyDown",_=>_(t,Ig(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!f)if(r&&l instanceof Qt&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))f={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let _=C5e(t,t.state.doc,c.sel);if(_&&!_.eq(t.state.selection)){let L=t.state.tr.setSelection(_);o&&L.setMeta("composition",o),t.dispatch(L)}}return}t.state.selection.from<t.state.selection.to&&f.start==f.endB&&t.state.selection instanceof Qt&&(f.start>t.state.selection.from&&f.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?f.start=t.state.selection.from:f.endA<t.state.selection.to&&f.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(f.endB+=t.state.selection.to-f.endA,f.endA=t.state.selection.to)),ol&&oh<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>c.from&&c.doc.textBetween(f.start-c.from-1,f.start-c.from+1)==" \xA0"&&(f.start--,f.endA--,f.endB--);let h=c.doc.resolveNoCache(f.start-c.from),x=c.doc.resolveNoCache(f.endB-c.from),g=u.resolve(f.start),y=h.sameParent(x)&&h.parent.inlineContent&&g.end()>=f.endA;if((Hy&&t.input.lastIOSEnter>Date.now()-225&&(!y||i.some(_=>_.nodeName=="DIV"||_.nodeName=="P"))||!y&&h.pos<c.doc.content.size&&(!h.sameParent(x)||!h.parent.inlineContent)&&h.pos<x.pos&&!/\S/.test(c.doc.textBetween(h.pos,x.pos,"","")))&&t.someProp("handleKeyDown",_=>_(t,Ig(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>f.start&&_Ke(u,f.start,f.endA,h,x)&&t.someProp("handleKeyDown",_=>_(t,Ig(8,"Backspace")))){Em&&ta&&t.domObserver.suppressSelectionUpdates();return}ta&&f.endB==f.start&&(t.input.lastChromeDelete=Date.now()),Em&&!y&&h.start()!=x.start()&&x.parentOffset==0&&h.depth==x.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==f.endA&&(f.endB-=2,x=c.doc.resolveNoCache(f.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(_){return _(t,Ig(13,"Enter"))})},20));let b=f.start,w=f.endA,v=_=>{let L=_||t.state.tr.replace(b,w,c.doc.slice(f.start-c.from,f.endB-c.from));if(c.sel){let S=C5e(t,L.doc,c.sel);S&&!(ta&&t.composing&&S.empty&&(f.start!=f.endB||t.input.lastChromeDelete<Date.now()-100)&&(S.head==b||S.head==L.mapping.map(w)-1)||ol&&S.empty&&S.head==b)&&L.setSelection(S)}return o&&L.setMeta("composition",o),L.scrollIntoView()},k;if(y)if(h.pos==x.pos){ol&&oh<=11&&h.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Tm(t),20));let _=v(t.state.tr.delete(b,w)),L=u.resolve(f.start).marksAcross(u.resolve(f.endA));L&&_.ensureMarks(L),t.dispatch(_)}else if(f.endA==f.endB&&(k=CKe(h.parent.content.cut(h.parentOffset,x.parentOffset),g.parent.content.cut(g.parentOffset,f.endA-g.start())))){let _=v(t.state.tr);k.type=="add"?_.addMark(b,w,k.mark):_.removeMark(b,w,k.mark),t.dispatch(_)}else if(h.parent.child(h.index()).isText&&h.index()==x.index()-(x.textOffset?0:1)){let _=h.parent.textBetween(h.parentOffset,x.parentOffset),L=()=>v(t.state.tr.insertText(_,b,w));t.someProp("handleTextInput",S=>S(t,b,w,_,L))||t.dispatch(L())}else t.dispatch(v());else t.dispatch(v())}function C5e(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:pq(t,e.resolve(n.anchor),e.resolve(n.head))}function CKe(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,o=r,a,s,l;for(let u=0;u<r.length;u++)i=r[u].removeFromSet(i);for(let u=0;u<n.length;u++)o=n[u].removeFromSet(o);if(i.length==1&&o.length==0)s=i[0],a="add",l=u=>u.mark(s.addToSet(u.marks));else if(i.length==0&&o.length==1)s=o[0],a="remove",l=u=>u.mark(s.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(De.from(c).eq(t))return{mark:s,type:a}}function _Ke(t,e,n,r,i){if(n-e<=i.pos-r.pos||Uz(r,!0,!1)<i.pos)return!1;let o=t.resolve(e);if(!r.parent.isTextblock){let s=o.nodeAfter;return s!=null&&n==e+s.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let a=t.resolve(Uz(o,!0,!0));return!a.parent.isTextblock||a.pos>n||Uz(a,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(a.parent.content)}function Uz(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let o=t.node(r).maybeChild(t.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function SKe(t,e,n,r,i){let o=t.findDiffStart(e,n);if(o==null)return null;let{a,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let l=Math.max(0,o-Math.min(a,s));r-=a+l-o}if(a<o&&t.size<e.size){let l=r<=o&&r>=a?o-r:0;o-=l,o&&o<e.size&&_5e(e.textBetween(o-1,o+1))&&(o+=l?1:-1),s=o+(s-a),a=o}else if(s<o){let l=r<=o&&r>=s?o-r:0;o-=l,o&&o<t.size&&_5e(t.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}function _5e(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}var n8=class{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new iq,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(T5e),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=M5e(this),L5e(this),this.nodeViews=E5e(this),this.docView=o5e(this.state.doc,S5e(this),Gz(this),this.dom,this),this.domObserver=new cq(this,(r,i,o,a)=>kKe(this,r,i,o,a)),this.domObserver.start(),UWe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&oq(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(T5e),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,o=!1,a=!1;e.storedMarks&&this.composing&&(tbe(this),a=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let m=E5e(this);MKe(m,this.nodeViews)&&(this.nodeViews=m,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&oq(this),this.editable=M5e(this),L5e(this);let l=Gz(this),c=S5e(this),u=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(i.selection))&&(a=!0);let p=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&cWe(this);if(a){this.domObserver.stop();let m=d&&(ol||ta)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&LKe(i.selection,e.selection);if(d){let f=ta?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=iKe(this)),(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=o5e(e.doc,c,l,this.dom,this)),f&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&RWe(this))?Tm(this,m):(H5e(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():p&&uWe(p)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof cn){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Jge(this,n.getBoundingClientRect(),e)}else Jge(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,i=-1;if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let o=r.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&o<this.state.doc.content.size&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new gE(e.slice,e.move,i<0?void 0:cn.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let a=0;a<this.directPlugins.length;a++){let s=this.directPlugins[a].props[e];if(s!=null&&(i=n?n(s):s))return i}let o=this.state.plugins;if(o)for(let a=0;a<o.length;a++){let s=o[a].props[e];if(s!=null&&(i=n?n(s):s))return i}}hasFocus(){if(ol){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&dWe(this.dom),Tm(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return gWe(this,e)}coordsAtPos(e,n=1){return O5e(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return vWe(this,n||this.state,e)}pasteHTML(e,n){return e8(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return e8(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return mq(this,e)}destroy(){this.docView&&(VWe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Gz(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,JZe())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return WWe(this,e)}domSelectionRange(){let e=this.domSelection();return e?Ba&&this.root.nodeType===11&&iWe(this.dom.ownerDocument)==this.dom&&gKe(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};n8.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function S5e(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[na.node(0,t.state.doc.content.size,e)]}function L5e(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:na.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function M5e(t){return!t.someProp("editable",e=>e(t.state)===!1)}function LKe(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function E5e(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function MKe(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function T5e(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}function $m(t,e){return t.meta={package:"@milkdown/core",group:"System",...e},t}var cbe={text:(t,e,n,r)=>{let i=t.value;return/^[^*_\\]*\s+$/.test(i)?i:n.safe(i,{...r,encode:[]})},strong:(t,e,n,r)=>{let i=t.marker||n.options.strong||"*",o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);return s+=a.move(n.containerPhrasing(t,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s},emphasis:(t,e,n,r)=>{let i=t.marker||n.options.emphasis||"*",o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);return s+=a.move(n.containerPhrasing(t,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}},Yl=Fn({},"editorView"),o8=Fn({},"editorState"),yq=Fn([],"initTimer"),sbe=Fn({},"editor"),Ky=Fn([],"inputRules"),Am=Fn([],"prosePlugins"),Xy=Fn([],"remarkPlugins"),$E=Fn([],"nodeView"),IE=Fn([],"markView"),Rm=Fn(jx().use(ky).use(Ly),"remark"),lh=Fn({handlers:cbe,encode:[]},"remarkStringifyOptions"),kE=Wc("ConfigReady");function EKe(t){let e=n=>(n.record(kE),async()=>(await t(n),n.done(kE),()=>{n.clearTimer(kE)}));return $m(e,{displayName:"Config"}),e}var zg=Wc("InitReady");function TKe(t){let e=n=>(n.inject(sbe,t).inject(Am,[]).inject(Xy,[]).inject(Ky,[]).inject($E,[]).inject(IE,[]).inject(lh,{handlers:cbe,encode:[]}).inject(Rm,jx().use(ky).use(Ly)).inject(yq,[kE]).record(zg),async()=>{await n.waitTimers(yq);let r=n.get(lh);return n.set(Rm,jx().use(ky).use(Ly,r)),n.done(zg),()=>{n.remove(sbe).remove(Am).remove(Xy).remove(Ky).remove($E).remove(IE).remove(lh).remove(Rm).remove(yq).clearTimer(zg)}});return $m(e,{displayName:"Init"}),e}var ms=Wc("SchemaReady"),CE=Fn([],"schemaTimer"),Ql=Fn({},"schema"),Uy=Fn([],"nodes"),Vy=Fn([],"marks");function lbe(t){return{...t,parseDOM:t.parseDOM?.map(e=>({priority:t.priority,...e}))}}var ube=t=>(t.inject(Ql,{}).inject(Uy,[]).inject(Vy,[]).inject(CE,[zg]).record(ms),async()=>{await t.waitTimers(CE);let e=t.get(Rm),n=t.get(Xy).reduce((a,s)=>a.use(s.plugin,s.options),e);t.set(Rm,n);let r=Object.fromEntries(t.get(Uy).map(([a,s])=>[a,lbe(s)])),i=Object.fromEntries(t.get(Vy).map(([a,s])=>[a,lbe(s)])),o=new XM({nodes:r,marks:i});return t.set(Ql,o),t.done(ms),()=>{t.remove(Ql).remove(Uy).remove(Vy).remove(CE).clearTimer(ms)}});$m(ube,{displayName:"Schema"});var dbe=class{constructor(){this.#e=new kB,this.#t=null,this.setCtx=t=>{this.#t=t},this.chain=()=>{if(this.#t==null)throw kM();let t=this.#t,e=[],n=this.get.bind(this),r={run:()=>{let o=_m(...e),a=t.get(Yl);return o(a.state,a.dispatch,a)},inline:o=>(e.push(o),r),pipe:i.bind(this)};function i(o,a){let s=n(o);return e.push(s(a)),r}return r}}#e;#t;get ctx(){return this.#t}create(t,e){let n=t.create(this.#e.sliceMap);return n.set(e),n}get(t){return this.#e.get(t).get()}remove(t){return this.#e.remove(t)}call(t,e){if(this.#t==null)throw kM();let n=this.get(t)(e),r=this.#t.get(Yl);return n(r.state,r.dispatch,r)}inline(t){if(this.#t==null)throw kM();let e=this.#t.get(Yl);return t(e.state,e.dispatch,e)}};function pbe(t="cmdKey"){return Fn((()=>()=>!1),t)}var Zn=Fn(new dbe,"commands"),_E=Fn([ms],"commandsTimer"),Zy=Wc("CommandsReady"),mbe=t=>{let e=new dbe;return e.setCtx(t),t.inject(Zn,e).inject(_E,[ms]).record(Zy),async()=>(await t.waitTimers(_E),t.done(Zy),()=>{t.remove(Zn).remove(_E).clearTimer(Zy)})};$m(mbe,{displayName:"Commands"});function RKe(t){return t.Backspace=_m(Age,rE,Lge,Tz),t}var fbe=class{constructor(){this.#e=null,this.#t=[],this.setCtx=t=>{this.#e=t},this.add=t=>(this.#t.push(t),()=>{this.#t=this.#t.filter(e=>e!==t)}),this.addObjectKeymap=t=>{let e=[];return Object.entries(t).forEach(([n,r])=>{if(typeof r=="function"){let i={key:n,onRun:()=>r};this.#t.push(i),e.push(()=>{this.#t=this.#t.filter(o=>o!==i)})}else this.#t.push(r),e.push(()=>{this.#t=this.#t.filter(i=>i!==r)})}),()=>{e.forEach(n=>n())}},this.addBaseKeymap=()=>{let t=RKe(oE);return this.addObjectKeymap(t)},this.build=()=>{let t={};return this.#t.forEach(e=>{t[e.key]=[...t[e.key]||[],e]}),Object.fromEntries(Object.entries(t).map(([e,n])=>{let r=n.sort((o,a)=>(a.priority??50)-(o.priority??50));return[e,(o,a,s)=>{let l=this.#e;if(l==null)throw wy();let c=r.map(u=>u.onRun(l));return _m(...c)(o,a,s)}]}))}}#e;#t;get ctx(){return this.#e}},c8=Fn(new fbe,"keymap"),xq=Fn([ms],"keymapTimer"),Wy=Wc("KeymapReady"),AKe=t=>{let e=new fbe;return e.setCtx(t),t.inject(c8,e).inject(xq,[ms]).record(Wy),async()=>(await t.waitTimers(xq),t.done(Wy),()=>{t.remove(c8).remove(xq).clearTimer(Wy)})},SE=Wc("ParserReady"),hbe=(()=>{throw wy()}),ch=Fn(hbe,"parser"),wq=Fn([],"parserTimer"),gbe=t=>(t.inject(ch,hbe).inject(wq,[ms]).record(SE),async()=>{await t.waitTimers(wq);let e=t.get(Rm),n=t.get(Ql);return t.set(ch,Wge.create(n,e)),t.done(SE),()=>{t.remove(ch).remove(wq).clearTimer(SE)}});$m(gbe,{displayName:"Parser"});var LE=Wc("SerializerReady"),vq=Fn([],"serializerTimer"),bbe=(()=>{throw wy()}),qg=Fn(bbe,"serializer"),ybe=t=>(t.inject(qg,bbe).inject(vq,[ms]).record(LE),async()=>{await t.waitTimers(vq);let e=t.get(Rm),n=t.get(Ql);return t.set(qg,Xge.create(n,e)),t.done(LE),()=>{t.remove(qg).remove(vq).clearTimer(LE)}});$m(ybe,{displayName:"Serializer"});var a8=Fn("","defaultValue"),s8=Fn(t=>t,"stateOptions"),ME=Fn([],"editorStateTimer"),EE=Wc("EditorStateReady");function $Ke(t,e,n){if(typeof t=="string")return e(t);if(t.type==="html")return Fd.fromSchema(n).parse(t.dom);if(t.type==="json")return il.fromJSON(n,t.value);throw ehe(t)}var IKe=new qr("MILKDOWN_STATE_TRACKER"),xbe=t=>(t.inject(a8,"").inject(o8,{}).inject(s8,e=>e).inject(ME,[SE,LE,Zy,Wy]).record(EE),async()=>{await t.waitTimers(ME);let e=t.get(Ql),n=t.get(ch),r=t.get(Ky),i=t.get(s8),o=t.get(Am),a=$Ke(t.get(a8),n,e),s=t.get(c8),l=s.addBaseKeymap(),c=[...o,new Mr({key:IKe,state:{init:()=>{},apply:(p,m,f,h)=>{t.set(o8,h)}}}),Pge({rules:r}),cE(s.build())];t.set(Am,c);let u=i({schema:e,doc:a,plugins:c}),d=Ny.create(u);return t.set(o8,d),t.done(EE),()=>{l(),t.remove(a8).remove(o8).remove(s8).remove(ME).clearTimer(EE)}});$m(xbe,{displayName:"EditorState"});var Yy=Fn([],"pasteRule"),TE=Fn([ms],"pasteRuleTimer"),RE=Wc("PasteRuleReady"),wbe=t=>(t.inject(Yy,[]).inject(TE,[ms]).record(RE),async()=>(await t.waitTimers(TE),t.done(RE),()=>{t.remove(Yy).remove(TE).clearTimer(RE)}));$m(wbe,{displayName:"PasteRule"});var kq=Wc("EditorViewReady"),AE=Fn([],"editorViewTimer"),Hg=Fn({},"editorViewOptions"),l8=Fn(null,"root"),Cq=Fn(null,"rootDOM"),_q=Fn({},"rootAttrs");function NKe(t,e){let n=document.createElement("div");n.className="milkdown",t.appendChild(n),e.set(Cq,n);let r=e.get(_q);return Object.entries(r).forEach(([i,o])=>n.setAttribute(i,o)),n}function PKe(t){t.classList.add("editor"),t.setAttribute("role","textbox")}var jKe=new qr("MILKDOWN_VIEW_CLEAR"),vbe=t=>(t.inject(l8,document.body).inject(Yl,{}).inject(Hg,{}).inject(Cq,null).inject(_q,{}).inject(AE,[EE,RE]).record(kq),async()=>{await t.wait(zg);let e=t.get(l8)||document.body,n=typeof e=="string"?document.querySelector(e):e;t.update(Am,l=>[new Mr({key:jKe,view:c=>{let u=n?NKe(n,t):void 0;return(()=>{if(u&&n){let p=c.dom;n.replaceChild(u,p),u.appendChild(p)}})(),{destroy:()=>{u?.parentNode&&u?.parentNode.replaceChild(c.dom,u),u?.remove()}}}}),...l]),await t.waitTimers(AE);let r=t.get(o8),i=t.get(Hg),o=Object.fromEntries(t.get($E)),a=Object.fromEntries(t.get(IE)),s=new n8(n,{state:r,nodeViews:o,markViews:a,transformPasted:(l,c,u)=>(t.get(Yy).sort((d,p)=>(p.priority??50)-(d.priority??50)).map(d=>d.run).forEach(d=>{l=d(l,c,u)}),l),...i});return PKe(s.dom),t.set(Yl,s),t.done(kq),()=>{s?.destroy(),t.remove(l8).remove(Yl).remove(Hg).remove(Cq).remove(_q).remove(AE).clearTimer(kq)}});$m(vbe,{displayName:"EditorView"});var kbe=class Cbe{constructor(){this.#e=!1,this.#t="Idle",this.#n=[],this.#r=()=>{},this.#i=new kB,this.#o=new dhe,this.#s=new Map,this.#c=new Map,this.#a=new che(this.#i,this.#o),this.#g=()=>{let e=EKe(async r=>{await Promise.all(this.#n.map(i=>Promise.resolve(i(r))))}),n=[ube,gbe,ybe,mbe,AKe,wbe,xbe,vbe,TKe(this),e];this.#f(n,this.#c)},this.#f=(e,n)=>{e.forEach(r=>{let i=this.#a.produce(this.#e?r.meta:void 0),o=r(i);n.set(r,{ctx:i,handler:o,cleanup:void 0})})},this.#d=(e,n=!1)=>Promise.all([e].flat().map(async r=>{let i=this.#s.get(r)?.cleanup;return n?this.#s.delete(r):this.#s.set(r,{ctx:void 0,handler:void 0,cleanup:void 0}),typeof i=="function"?i():i})),this.#p=async()=>{await Promise.all([...this.#c.entries()].map(async([e,{cleanup:n}])=>typeof n=="function"?n():n)),this.#c.clear()},this.#m=e=>{this.#t=e,this.#r(e)},this.#b=e=>[...e.entries()].map(async([n,r])=>{let{ctx:i,handler:o}=r;if(!o)return;let a=await o();e.set(n,{ctx:i,handler:o,cleanup:a})}),this.enableInspector=(e=!0)=>(this.#e=e,this),this.onStatusChange=e=>(this.#r=e,this),this.config=e=>(this.#n.push(e),this),this.removeConfig=e=>(this.#n=this.#n.filter(n=>n!==e),this),this.use=e=>{let n=[e].flat();return n.flat().forEach(r=>{this.#s.set(r,{ctx:void 0,handler:void 0,cleanup:void 0})}),this.#t==="Created"&&this.#f(n,this.#s),this},this.remove=async e=>this.#t==="OnCreate"?(console.warn("[Milkdown]: You are trying to remove plugins when the editor is creating, this is not recommended, please check your code."),new Promise(n=>{setTimeout(()=>{n(this.remove(e))},50)})):(await this.#d([e].flat(),!0),this),this.create=async()=>this.#t==="OnCreate"?this:(this.#t==="Created"&&await this.destroy(),this.#m("OnCreate"),this.#g(),this.#f([...this.#s.keys()],this.#s),await Promise.all([this.#b(this.#c),this.#b(this.#s)].flat()),this.#m("Created"),this),this.destroy=async(e=!1)=>this.#t==="Destroyed"||this.#t==="OnDestroy"?this:this.#t==="OnCreate"?new Promise(n=>{setTimeout(()=>{n(this.destroy(e))},50)}):(e&&(this.#n=[]),this.#m("OnDestroy"),await this.#d([...this.#s.keys()],e),await this.#p(),this.#m("Destroyed"),this),this.action=e=>e(this.#a),this.inspect=()=>this.#e?[...this.#c.values(),...this.#s.values()].map(({ctx:e})=>e?.inspector?.read()).filter(e=>!!e):(console.warn("[Milkdown]: You are trying to collect inspection when inspector is disabled, please enable inspector by `editor.enableInspector()` first."),[])}static make(){return new Cbe}#e;#t;#n;#r;#i;#o;#s;#c;#a;#g;#f;#d;#p;#m;#b;get ctx(){return this.#a}get status(){return this.#t}};var OKe=t=>crypto.getRandomValues(new Uint8Array(t)),DKe=(t,e,n)=>{let r=256-256%t.length;if(r===256){let o=t.length-1;return(a=e)=>{if(!a)return"";let s="";for(;;){let l=n(a),c=a;for(;c--;)if(s+=t[l[c]&o],s.length>=a)return s}}}let i=Math.ceil(1.6*256*e/r);return(o=e)=>{if(!o)return"";let a="";for(;;){let s=n(i),l=i;for(;l--;)if(s[l]<r&&(a+=t[s[l]%t.length],a.length>=o))return a}}},_be=(t,e=21)=>DKe(t,e|0,OKe);var dZt=_be("abcedfghicklmn",10);function Sbe(t,e,n){let r=t.findIndex(([o])=>o===e);if(r===-1)return[...t,n];let i=t.slice();return i[r]=n,i}function tn(t,e){let n=pbe(t),r=i=>async()=>{r.key=n,await i.wait(Zy);let o=e(i);return i.get(Zn).create(n,o),r.run=a=>i.get(Zn).call(t,a),()=>{i.get(Zn).remove(n)}};return r}function za(t){let e=n=>async()=>{await n.wait(ms);let r=t(n);return n.update(Ky,i=>[...i,r]),e.inputRule=r,()=>{n.update(Ky,i=>i.filter(o=>o!==r))}};return e}function Lbe(t){let e=n=>async()=>{await n.wait(ms);let r=t(n);return n.update(Yy,i=>[...i,r]),e.pasteRule=r,()=>{n.update(Yy,i=>i.filter(o=>o!==r))}};return e}function FKe(t,e){let n=r=>async()=>{let i=e(r);return r.update(Vy,o=>Sbe(o,t,[t,i])),n.id=t,n.schema=i,()=>{r.update(Vy,o=>o.filter(([a])=>a!==t))}};return n.type=r=>{let i=r.get(Ql).marks[t];if(!i)throw lhe(t);return i},n}function NE(t,e){let n=r=>async()=>{let i=e(r);return r.update(Uy,o=>Sbe(o,t,[t,i])),n.id=t,n.schema=i,()=>{r.update(Uy,o=>o.filter(([a])=>a!==t))}};return n.type=r=>{let i=r.get(Ql).nodes[t];if(!i)throw she(t);return i},n}function ko(t){let e,n=r=>async()=>(await r.wait(ms),e=t(r),r.update(Am,i=>[...i,e]),()=>{r.update(Am,i=>i.filter(o=>o!==e))});return n.plugin=()=>e,n.key=()=>e.spec.key,n}function BKe(t){let e=n=>async()=>{await n.wait(Wy);let r=n.get(c8),i=t(n),o=r.addObjectKeymap(i);return e.keymap=i,()=>{o()}};return e}function Jc(t,e){let n=Fn(t,e),r=i=>(i.inject(n),()=>()=>{i.remove(n)});return r.key=n,r}function Ui(t,e){let n=Jc(e,t),r=NE(t,o=>o.get(n.key)(o)),i=[n,r];return i.id=r.id,i.node=r,i.type=o=>r.type(o),i.ctx=n,i.key=n.key,i.extendSchema=o=>Ui(t,o(e)),i}function uh(t,e){let n=Jc(e,t),r=FKe(t,o=>o.get(n.key)(o)),i=[n,r];return i.id=r.id,i.mark=r,i.type=o=>r.type(o),i.ctx=n,i.key=n.key,i.extendSchema=o=>uh(t,o(e)),i}function ra(t,e){let n=Jc(Object.fromEntries(Object.entries(e).map(([o,{shortcuts:a,priority:s}])=>[o,{shortcuts:a,priority:s}])),`${t}Keymap`),r=BKe(o=>{let a=o.get(n.key),s=Object.entries(e).flatMap(([l,{command:c}])=>{let u=a[l],d=[u.shortcuts].flat(),p=u.priority;return d.map(m=>[m,{key:m,onRun:c,priority:p}])});return Object.fromEntries(s)}),i=[n,r];return i.ctx=n,i.shortcuts=r,i.key=n.key,i.keymap=r.keymap,i}var eu=(t,e=()=>({}))=>Jc(e,`${t}Attr`),Gg=(t,e=()=>({}))=>Jc(e,`${t}Attr`);function Im(t,e,n){let r=Jc(n??{},t),i=a=>async()=>{await a.wait(zg);let s={plugin:e(a),options:a.get(r.key)};return a.update(Xy,l=>[...l,s]),()=>{a.update(Xy,l=>l.filter(c=>c!==s))}},o=[r,i];return o.id=t,o.plugin=i,o.options=r,o}function Mbe(t){return e=>{let n=e.get(Yl),r=e.get(Ql),i=e.get(qg);if(!t)return i(n.state.doc);let o=n.state.doc.slice(t.from,t.to,!0),a=r.topNodeType.createAndFill(null,o.content);return a?i(a):(console.error("No document found"),"")}}function Ebe(t,e=!1){return n=>{let r=n.get(Yl),i=n.get(ch)(t);if(!i)return;if(!e){let{state:l}=r;return r.dispatch(l.tr.replace(0,l.doc.content.size,new Je(i.content,0,0)))}let o=n.get(Ql),a=n.get(s8)({schema:o,doc:i,plugins:n.get(Am)}),s=Ny.create(a);r.updateState(s)}}function PE(t,e){return function(n,r){let{$from:i,$to:o,node:a}=n.selection;if(a&&a.isBlock||i.depth<2||!i.sameParent(o))return!1;let s=i.node(-1);if(s.type!=t)return!1;if(i.parent.content.size==0&&i.node(-1).childCount==i.indexAfter(-1)){if(i.depth==3||i.node(-3).type!=t||i.index(-2)!=i.node(-2).childCount-1)return!1;if(r){let d=De.empty,p=i.index(-1)?1:i.index(-2)?2:3;for(let g=i.depth-p;g>=i.depth-3;g--)d=De.from(i.node(g).copy(d));let m=i.indexAfter(-1)<i.node(-2).childCount?1:i.indexAfter(-2)<i.node(-3).childCount?2:3;d=d.append(De.from(t.createAndFill()));let f=i.before(i.depth-(p-1)),h=n.tr.replace(f,i.after(-m),new Je(d,4-p,0)),x=-1;h.doc.nodesBetween(f,h.doc.content.size,(g,y)=>{if(x>-1)return!1;g.isTextblock&&g.content.size==0&&(x=y+1)}),x>-1&&h.setSelection(Kt.near(h.doc.resolve(x))),r(h.scrollIntoView())}return!0}let l=o.pos==i.end()?s.contentMatchAt(0).defaultType:null,c=n.tr.delete(i.pos,o.pos),u=l?[e?{type:t,attrs:e}:null,{type:l}]:void 0;return Tg(c.doc,i.pos,2,u)?(r&&r(c.split(i.pos,2,u).scrollIntoView()),!0):!1}}function Tbe(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==t);return o?n?r.node(o.depth-1).type==t?zKe(e,n,t,o):qKe(e,n,o):!0:!1}}function zKe(t,e,n,r){let i=t.tr,o=r.end,a=r.$to.end(r.depth);o<a&&(i.step(new Jo(o-1,a,o,a,new Je(De.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Fx(i.doc.resolve(r.$from.pos),i.doc.resolve(a),r.depth));let s=$y(r);if(s==null)return!1;i.lift(r,s);let l=i.doc.resolve(i.mapping.map(o,-1)-1);return Rg(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),e(i.scrollIntoView()),!0}function qKe(t,e,n){let r=t.tr,i=n.parent;for(let m=n.end,f=n.endIndex-1,h=n.startIndex;f>h;f--)m-=i.child(f).nodeSize,r.delete(m-1,m+1);let o=r.doc.resolve(n.start),a=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(s?0:1),u+1,a.content.append(l?De.empty:De.from(i))))return!1;let d=o.pos,p=d+a.nodeSize;return r.step(new Jo(d-(s?1:0),p+(l?1:0),d+1,p-1,new Je((s?De.empty:De.from(i.copy(De.empty))).append(l?De.empty:De.from(i.copy(De.empty))),s?0:1,l?0:1),s?0:1)),e(r.scrollIntoView()),!0}function Rbe(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==t);if(!o)return!1;let a=o.startIndex;if(a==0)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==s.type,u=De.from(c?t.create():null),d=new Je(De.from(t.create(null,De.from(s.type.create(null,u)))),c?3:1,0),p=o.start,m=o.end;n(e.tr.step(new Jo(p-(c?3:1),m,p,m,d,1,!0)).scrollIntoView())}return!0}}function Sq(t){let e=new Map;if(!t||!t.type)throw new Error("mdast-util-definitions expected node");return Du(t,"definition",function(r){let i=Abe(r.identifier);i&&!e.get(i)&&e.set(i,r)}),n;function n(r){let i=Abe(r);return e.get(i)}}function Abe(t){return String(t||"").toUpperCase()}function jE(){return function(t){let e=Sq(t);Du(t,function(n,r,i){if(n.type==="definition"&&i!==void 0&&typeof r=="number")return i.children.splice(r,1),[vm,r];if(n.type==="imageReference"||n.type==="linkReference"){let o=e(n.identifier);if(o&&i&&typeof r=="number")return i.children[r]=n.type==="imageReference"?{type:"image",url:o.url,title:o.title,alt:n.alt}:{type:"link",url:o.url,title:o.title,children:n.children},[vm,r]}})}}function HKe(t){let e={...t};return e.position&&(e.position={start:{...e.position.start},end:{...e.position.end}}),delete e.children,e}var GKe="<br />",UKe=/^<br\s*\/?\s*>$/i,VKe=t=>typeof t=="string"&&UKe.test(t.trim());function Ibe(t,e){if(!(e.childCount>=1&&e.lastChild?.type.name==="hardbreak")){t.next(e.content);return}let n=[];e.content.forEach((r,i,o)=>{o!==e.childCount-1&&n.push(r)}),t.next(De.fromArray(n))}function Te(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-commonmark",...e}}),t}var Lq=Gg("emphasis");Te(Lq,{displayName:"Attr<emphasis>",group:"Emphasis"});var Jy=uh("emphasis",t=>({attrs:{marker:{default:t.get(lh).emphasis||"*",validate:"string"}},parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style",getAttrs:e=>e==="italic"}],toDOM:e=>["em",t.get(Lq.key)(e)],parseMarkdown:{match:e=>e.type==="emphasis",runner:(e,n,r)=>{e.openMark(r,{marker:n.marker}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="emphasis",runner:(e,n)=>{e.withMark(n,"emphasis",void 0,{marker:n.attrs.marker})}}}));Te(Jy.mark,{displayName:"MarkSchema<emphasis>",group:"Emphasis"});Te(Jy.ctx,{displayName:"MarkSchemaCtx<emphasis>",group:"Emphasis"});var Mq=tn("ToggleEmphasis",t=>()=>Oy(Jy.type(t)));Te(Mq,{displayName:"Command<toggleEmphasisCommand>",group:"Emphasis"});var Nbe=za(t=>$g(/(?:^|[^*])\*([^*]+)\*$/,Jy.type(t),{getAttr:()=>({marker:"*"}),updateCaptured:({fullMatch:e,start:n})=>e.startsWith("*")?{}:{fullMatch:e.slice(1),start:n+1}}));Te(Nbe,{displayName:"InputRule<emphasis>|Star",group:"Emphasis"});var Pbe=za(t=>$g(/\b_(?![_\s])(.*?[^_\s])_$/,Jy.type(t),{getAttr:()=>({marker:"_"}),updateCaptured:({fullMatch:e,start:n})=>e.startsWith("_")?{}:{fullMatch:e.slice(1),start:n+1}}));Te(Pbe,{displayName:"InputRule<emphasis>|Underscore",group:"Emphasis"});var Eq=ra("emphasisKeymap",{ToggleEmphasis:{shortcuts:"Mod-i",command:t=>{let e=t.get(Zn);return()=>e.call(Mq.key)}}});Te(Eq.ctx,{displayName:"KeymapCtx<emphasis>",group:"Emphasis"});Te(Eq.shortcuts,{displayName:"Keymap<emphasis>",group:"Emphasis"});var Tq=Gg("strong");Te(Tq,{displayName:"Attr<strong>",group:"Strong"});var u8=uh("strong",t=>({attrs:{marker:{default:t.get(lh).strong||"*",validate:"string"}},parseDOM:[{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{tag:"strong"},{style:"font-style",getAttrs:e=>e==="bold"},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:e=>["strong",t.get(Tq.key)(e)],parseMarkdown:{match:e=>e.type==="strong",runner:(e,n,r)=>{e.openMark(r,{marker:n.marker}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strong",runner:(e,n)=>{e.withMark(n,"strong",void 0,{marker:n.attrs.marker})}}}));Te(u8.mark,{displayName:"MarkSchema<strong>",group:"Strong"});Te(u8.ctx,{displayName:"MarkSchemaCtx<strong>",group:"Strong"});var Rq=tn("ToggleStrong",t=>()=>Oy(u8.type(t)));Te(Rq,{displayName:"Command<toggleStrongCommand>",group:"Strong"});var jbe=za(t=>$g(/(?<![\w:/])(?:\*\*|__)([^*_]+?)(?:\*\*|__)(?![\w/])$/,u8.type(t),{getAttr:e=>({marker:e[0].startsWith("*")?"*":"_"})}));Te(jbe,{displayName:"InputRule<strong>",group:"Strong"});var Aq=ra("strongKeymap",{ToggleBold:{shortcuts:["Mod-b"],command:t=>{let e=t.get(Zn);return()=>e.call(Rq.key)}}});Te(Aq.ctx,{displayName:"KeymapCtx<strong>",group:"Strong"});Te(Aq.shortcuts,{displayName:"Keymap<strong>",group:"Strong"});var $q=Gg("inlineCode");Te($q,{displayName:"Attr<inlineCode>",group:"InlineCode"});var ph=uh("inlineCode",t=>({priority:100,code:!0,inclusive:!1,parseDOM:[{tag:"code"}],toDOM:e=>["code",t.get($q.key)(e)],parseMarkdown:{match:e=>e.type==="inlineCode",runner:(e,n,r)=>{e.openMark(r),e.addText(n.value),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="inlineCode",runner:(e,n,r)=>(e.withMark(n,"inlineCode",r.text||""),!0)}}));Te(ph.mark,{displayName:"MarkSchema<inlineCode>",group:"InlineCode"});Te(ph.ctx,{displayName:"MarkSchemaCtx<inlineCode>",group:"InlineCode"});var Iq=tn("ToggleInlineCode",t=>()=>(e,n)=>{let{selection:r,tr:i}=e;if(r.empty)return!1;let{from:o,to:a}=r;return e.doc.rangeHasMark(o,a,ph.type(t))?(n?.(i.removeMark(o,a,ph.type(t))),!0):(Object.keys(e.schema.marks).filter(s=>s!==ph.type.name).map(s=>e.schema.marks[s]).forEach(s=>{i.removeMark(o,a,s)}),n?.(i.addMark(o,a,ph.type(t).create())),!0)});Te(Iq,{displayName:"Command<toggleInlineCodeCommand>",group:"InlineCode"});var Obe=za(t=>$g(/(?:`)([^`]+)(?:`)$/,ph.type(t)));Te(Obe,{displayName:"InputRule<inlineCodeInputRule>",group:"InlineCode"});var Nq=ra("inlineCodeKeymap",{ToggleInlineCode:{shortcuts:"Mod-e",command:t=>{let e=t.get(Zn);return()=>e.call(Iq.key)}}});Te(Nq.ctx,{displayName:"KeymapCtx<inlineCode>",group:"InlineCode"});Te(Nq.shortcuts,{displayName:"Keymap<inlineCode>",group:"InlineCode"});var ZKe=new Set(["http:","https:","mailto:","tel:","ftp:"]);function WKe(t){return t<=32||t>=127&&t<=160||t>=8203&&t<=8205||t===8232||t===8233||t===65279}function KKe(t){let e="";for(let n of t)WKe(n.codePointAt(0)??0)||(e+=n);return e}function XKe(t){if(typeof t!="string")return"";let e=t.trim();if(!e)return"";let n=KKe(e),r=/^([a-z][a-z0-9+.-]*):/i.exec(n)?.[1];return!r||ZKe.has(`${r.toLowerCase()}:`)?e:""}var Pq=Gg("link");Te(Pq,{displayName:"Attr<link>",group:"Link"});var Qy=uh("link",t=>({attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},parseDOM:[{tag:"a[href]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM:e=>["a",{...t.get(Pq.key)(e),...e.attrs,href:XKe(e.attrs.href)}],parseMarkdown:{match:e=>e.type==="link",runner:(e,n,r)=>{let i=n.url,o=n.title;e.openMark(r,{href:i,title:o}),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="link",runner:(e,n)=>{e.withMark(n,"link",void 0,{title:n.attrs.title,url:n.attrs.href})}}}));Te(Qy.mark,{displayName:"MarkSchema<link>",group:"Link"});var Dbe=tn("ToggleLink",t=>(e={})=>Oy(Qy.type(t),e));Te(Dbe,{displayName:"Command<toggleLinkCommand>",group:"Link"});var Fbe=tn("UpdateLink",t=>(e={})=>(n,r)=>{if(!r)return!1;let i,o=-1,{selection:a}=n,{from:s,to:l}=a;if(n.doc.nodesBetween(s,s===l?l+1:l,(f,h)=>{if(Qy.type(t).isInSet(f.marks))return i=f,o=h,!1}),!i)return!1;let c=i.marks.find(({type:f})=>f===Qy.type(t));if(!c)return!1;let u=o,d=o+i.nodeSize,{tr:p}=n,m=Qy.type(t).create({...c.attrs,...e});return m?(r(p.removeMark(u,d,c).addMark(u,d,m).setSelection(new Qt(p.selection.$anchor)).scrollIntoView()),!0):!1});Te(Fbe,{displayName:"Command<updateLinkCommand>",group:"Link"});var Bbe=NE("doc",()=>({content:"block+",parseMarkdown:{match:({type:t})=>t==="root",runner:(t,e,n)=>{t.injectRoot(e,n)}},toMarkdown:{match:t=>t.type.name==="doc",runner:(t,e)=>{t.openNode("root");let n=e.childCount>0?e.child(e.childCount-1):null,r=n?.type.name==="paragraph"&&n.content.size===0?e.content.cut(0,e.content.size-n.nodeSize):e.content;t.next(r)}}}));Te(Bbe,{displayName:"NodeSchema<doc>",group:"Doc"});var zbe=Object.freeze(["root","blockquote","listItem","footnoteDefinition"]),YKe=new Set(["paragraph","heading","tableCell","link","linkReference","emphasis","strong","delete","footnote"]),OE=Jc(zbe,"blockContainerTypes");Te(OE,{displayName:"Ctx<blockContainerTypes>",group:"Remark"});var $be=new Set;function qbe(t){let e=t.isInjected(OE.key)?t.get(OE.key):zbe,n=new Set;for(let r of e){if(YKe.has(r)){$be.has(r)||($be.add(r),console.warn(`[milkdown/preset-commonmark] "${r}" holds phrasing content and cannot be a block container; it is ignored in blockContainerTypes.`));continue}n.add(r)}return n}var QKe=new Set(["paragraph","tableCell"]);function JKe(t,e){return xg(t,n=>n.type==="html"&&VKe(n.value),(n,r)=>{let i=r[r.length-1];if(i){if(QKe.has(i.type)){i.children.length===1&&(i.children=[]);return}if(e.has(i.type)){let o=n;return o.children=[],delete o.value,o.type="paragraph",vm}}})}var FE=Im("remark-preserve-empty-line",t=>()=>e=>JKe(e,qbe(t)));Te(FE.plugin,{displayName:"Remark<remarkPreserveEmptyLine>",group:"Remark"});Te(FE.options,{displayName:"RemarkConfig<remarkPreserveEmptyLine>",group:"Remark"});var jq=eu("paragraph");Te(jq,{displayName:"Attr<paragraph>",group:"Paragraph"});var Bu=Ui("paragraph",t=>({content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:e=>["p",t.get(jq.key)(e),0],parseMarkdown:{match:e=>e.type==="paragraph",runner:(e,n,r)=>{e.openNode(r),n.children?e.next(n.children):e.addText(n.value||""),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="paragraph",runner:(e,n)=>{e.openNode("paragraph"),(!n.content||n.content.size===0)&&eXe(t)?e.addNode("html",void 0,GKe):Ibe(e,n),e.closeNode()}}}));function eXe(t){return t.isInjected(FE.options.key)}Te(Bu.node,{displayName:"NodeSchema<paragraph>",group:"Paragraph"});Te(Bu.ctx,{displayName:"NodeSchemaCtx<paragraph>",group:"Paragraph"});var Oq=tn("TurnIntoText",t=>()=>jy(Bu.type(t)));Te(Oq,{displayName:"Command<turnIntoTextCommand>",group:"Paragraph"});var Dq=ra("paragraphKeymap",{TurnIntoText:{shortcuts:"Mod-Alt-0",command:t=>{let e=t.get(Zn);return()=>e.call(Oq.key)}}});Te(Dq.ctx,{displayName:"KeymapCtx<paragraph>",group:"Paragraph"});Te(Dq.shortcuts,{displayName:"Keymap<paragraph>",group:"Paragraph"});var tXe=Array(6).fill(0).map((t,e)=>e+1);function nXe(t){return t.textContent.toLowerCase().trim().replace(/\s+/g,"-")}var BE=Jc(nXe,"headingIdGenerator");Te(BE,{displayName:"Ctx<HeadingIdGenerator>",group:"Heading"});var Fq=eu("heading");Te(Fq,{displayName:"Attr<heading>",group:"Heading"});var Vg=Ui("heading",t=>{let e=t.get(BE.key);return{content:"inline*",group:"block",defining:!0,attrs:{id:{default:"",validate:"string"},level:{default:1,validate:"number"}},parseDOM:tXe.map(n=>({tag:`h${n}`,getAttrs:r=>{if(!(r instanceof HTMLElement))throw Wl(r);return{level:n,id:r.id}}})),toDOM:n=>[`h${n.attrs.level}`,{...t.get(Fq.key)(n),id:n.attrs.id||e(n)},0],parseMarkdown:{match:({type:n})=>n==="heading",runner:(n,r,i)=>{let o=r.depth;n.openNode(i,{level:o}),n.next(r.children),n.closeNode()}},toMarkdown:{match:n=>n.type.name==="heading",runner:(n,r)=>{n.openNode("heading",void 0,{depth:r.attrs.level}),Ibe(n,r),n.closeNode()}}}});Te(Vg.node,{displayName:"NodeSchema<heading>",group:"Heading"});Te(Vg.ctx,{displayName:"NodeSchemaCtx<heading>",group:"Heading"});var Hbe=za(t=>$z(/^(?<hashes>#+)\s$/,Vg.type(t),e=>{let n=e.groups?.hashes?.length||0,{$from:r}=t.get(Yl).state.selection,i=r.node();if(i.type.name==="heading"){let o=Number(i.attrs.level)+Number(n);return o>6&&(o=6),{level:o}}return{level:n}}));Te(Hbe,{displayName:"InputRule<wrapInHeadingInputRule>",group:"Heading"});var dh=tn("WrapInHeading",t=>e=>(e??=1,e<1?jy(Bu.type(t)):jy(Vg.type(t),{level:e})));Te(dh,{displayName:"Command<wrapInHeadingCommand>",group:"Heading"});var Bq=tn("DowngradeHeading",t=>()=>(e,n,r)=>{let{$from:i}=e.selection,o=i.node();if(o.type!==Vg.type(t)||!e.selection.empty||i.parentOffset!==0)return!1;let a=o.attrs.level-1;return a?(n?.(e.tr.setNodeMarkup(e.selection.$from.before(),void 0,{...o.attrs,level:a})),!0):jy(Bu.type(t))(e,n,r)});Te(Bq,{displayName:"Command<downgradeHeadingCommand>",group:"Heading"});var zq=ra("headingKeymap",{TurnIntoH1:{shortcuts:"Mod-Alt-1",command:t=>{let e=t.get(Zn);return()=>e.call(dh.key,1)}},TurnIntoH2:{shortcuts:"Mod-Alt-2",command:t=>{let e=t.get(Zn);return()=>e.call(dh.key,2)}},TurnIntoH3:{shortcuts:"Mod-Alt-3",command:t=>{let e=t.get(Zn);return()=>e.call(dh.key,3)}},TurnIntoH4:{shortcuts:"Mod-Alt-4",command:t=>{let e=t.get(Zn);return()=>e.call(dh.key,4)}},TurnIntoH5:{shortcuts:"Mod-Alt-5",command:t=>{let e=t.get(Zn);return()=>e.call(dh.key,5)}},TurnIntoH6:{shortcuts:"Mod-Alt-6",command:t=>{let e=t.get(Zn);return()=>e.call(dh.key,6)}},DowngradeHeading:{shortcuts:["Delete","Backspace"],command:t=>{let e=t.get(Zn);return()=>e.call(Bq.key)}}});Te(zq.ctx,{displayName:"KeymapCtx<heading>",group:"Heading"});Te(zq.shortcuts,{displayName:"Keymap<heading>",group:"Heading"});var qq=eu("blockquote");Te(qq,{displayName:"Attr<blockquote>",group:"Blockquote"});var d8=Ui("blockquote",t=>({content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:e=>["blockquote",t.get(qq.key)(e),0],parseMarkdown:{match:({type:e})=>e==="blockquote",runner:(e,n,r)=>{e.openNode(r).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="blockquote",runner:(e,n)=>{e.openNode("blockquote").next(n.content).closeNode()}}}));Te(d8.node,{displayName:"NodeSchema<blockquote>",group:"Blockquote"});Te(d8.ctx,{displayName:"NodeSchemaCtx<blockquote>",group:"Blockquote"});var Gbe=za(t=>aE(/^\s*>\s$/,d8.type(t)));Te(Gbe,{displayName:"InputRule<wrapInBlockquoteInputRule>",group:"Blockquote"});var Hq=tn("WrapInBlockquote",t=>()=>iE(d8.type(t)));Te(Hq,{displayName:"Command<wrapInBlockquoteCommand>",group:"Blockquote"});var Gq=ra("blockquoteKeymap",{WrapInBlockquote:{shortcuts:"Mod-Shift-b",command:t=>{let e=t.get(Zn);return()=>e.call(Hq.key)}}});Te(Gq.ctx,{displayName:"KeymapCtx<blockquote>",group:"Blockquote"});Te(Gq.shortcuts,{displayName:"Keymap<blockquote>",group:"Blockquote"});var Uq=eu("codeBlock",()=>({pre:{},code:{}}));Te(Uq,{displayName:"Attr<codeBlock>",group:"CodeBlock"});var p8=Ui("code_block",t=>({content:"text*",group:"block",marks:"",defining:!0,code:!0,attrs:{language:{default:"",validate:"string"}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{language:e.dataset.language}}}],toDOM:e=>{let n=t.get(Uq.key)(e),r=e.attrs.language,i=r&&r.length>0?{"data-language":r}:void 0;return["pre",{...n.pre,...i},["code",n.code,0]]},parseMarkdown:{match:({type:e})=>e==="code",runner:(e,n,r)=>{let i=n.lang??"",o=n.value;e.openNode(r,{language:i}),o&&e.addText(o),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="code_block",runner:(e,n)=>{e.addNode("code",void 0,n.content.firstChild?.text||"",{lang:n.attrs.language})}}}));Te(p8.node,{displayName:"NodeSchema<codeBlock>",group:"CodeBlock"});Te(p8.ctx,{displayName:"NodeSchemaCtx<codeBlock>",group:"CodeBlock"});var Ube=za(t=>$z(/^```(?<language>[a-z]*)?[\s\n]$/,p8.type(t),e=>({language:e.groups?.language??""})));Te(Ube,{displayName:"InputRule<createCodeBlockInputRule>",group:"CodeBlock"});var Vq=tn("CreateCodeBlock",t=>(e="")=>jy(p8.type(t),{language:e}));Te(Vq,{displayName:"Command<createCodeBlockCommand>",group:"CodeBlock"});var rXe=tn("UpdateCodeBlockLanguage",()=>({pos:t,language:e}={pos:-1,language:""})=>(n,r)=>t>=0?(r?.(n.tr.setNodeAttribute(t,"language",e)),!0):!1);Te(rXe,{displayName:"Command<updateCodeBlockLanguageCommand>",group:"CodeBlock"});var Zq=ra("codeBlockKeymap",{CreateCodeBlock:{shortcuts:"Mod-Alt-c",command:t=>{let e=t.get(Zn);return()=>e.call(Vq.key)}}});Te(Zq.ctx,{displayName:"KeymapCtx<codeBlock>",group:"CodeBlock"});Te(Zq.shortcuts,{displayName:"Keymap<codeBlock>",group:"CodeBlock"});var Wq=eu("image");Te(Wq,{displayName:"Attr<image>",group:"Image"});var e3=Ui("image",t=>({inline:!0,group:"inline",selectable:!0,draggable:!0,marks:"",atom:!0,defining:!0,isolating:!0,attrs:{src:{default:"",validate:"string"},alt:{default:"",validate:"string"},title:{default:"",validate:"string"}},parseDOM:[{tag:"img[src]",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{src:e.getAttribute("src")||"",alt:e.getAttribute("alt")||"",title:e.getAttribute("title")||e.getAttribute("alt")||""}}}],toDOM:e=>["img",{...t.get(Wq.key)(e),...e.attrs}],parseMarkdown:{match:({type:e})=>e==="image",runner:(e,n,r)=>{let i=n.url,o=n.alt,a=n.title;e.addNode(r,{src:i,alt:o,title:a})}},toMarkdown:{match:e=>e.type.name==="image",runner:(e,n)=>{e.addNode("image",void 0,void 0,{title:n.attrs.title,url:n.attrs.src,alt:n.attrs.alt})}}}));Te(e3.node,{displayName:"NodeSchema<image>",group:"Image"});Te(e3.ctx,{displayName:"NodeSchemaCtx<image>",group:"Image"});var Vbe=tn("InsertImage",t=>(e={})=>(n,r)=>{if(!r)return!0;let{src:i="",alt:o="",title:a=""}=e,s=e3.type(t).create({src:i,alt:o,title:a});return s&&r(n.tr.replaceSelectionWith(s).scrollIntoView()),!0});Te(Vbe,{displayName:"Command<insertImageCommand>",group:"Image"});var Zbe=tn("UpdateImage",t=>(e={})=>(n,r)=>{let i=zge(n.selection,e3.type(t));if(!i)return!1;let{node:o,pos:a}=i,s={...o.attrs},{src:l,alt:c,title:u}=e;return l!==void 0&&(s.src=l),c!==void 0&&(s.alt=c),u!==void 0&&(s.title=u),r?.(n.tr.setNodeMarkup(a,void 0,s).scrollIntoView()),!0});Te(Zbe,{displayName:"Command<updateImageCommand>",group:"Image"});var iXe=za(t=>new Io(/!\[(?<alt>.*?)]\((?<filename>.*?)\s*(?="|\))"?(?<title>[^"]+)?"?\)/,(e,n,r,i)=>{let[o,a,s="",l]=n;return o?e.tr.replaceWith(r,i,e3.type(t).create({src:s,alt:a,title:l})):null}));Te(iXe,{displayName:"InputRule<insertImageInputRule>",group:"Image"});var DE=eu("hardbreak",t=>({"data-type":"hardbreak","data-is-inline":t.attrs.isInline}));Te(DE,{displayName:"Attr<hardbreak>",group:"Hardbreak"});var Ug=Ui("hardbreak",t=>({inline:!0,group:"inline",attrs:{isInline:{default:!1,validate:"boolean"}},selectable:!1,parseDOM:[{tag:"br"},{tag:'span[data-type="hardbreak"]',getAttrs:()=>({isInline:!0})}],toDOM:e=>e.attrs.isInline?["span",t.get(DE.key)(e)," "]:["br",t.get(DE.key)(e)],parseMarkdown:{match:({type:e})=>e==="break",runner:(e,n,r)=>{e.addNode(r,{isInline:!!n.data?.isInline})}},leafText:()=>` `,toMarkdown:{match:e=>e.type.name==="hardbreak",runner:(e,n)=>{n.attrs.isInline?e.addNode("text",void 0,` -`):e.addNode("break")}}}));Te(Gg.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"});Te(Gg.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});var Kq=tn("InsertHardbreak",t=>()=>(e,n)=>{let{selection:r,tr:i}=e;if(!(r instanceof Qt))return!1;if(r.empty){let o=r.$from.node();if(o.childCount>0&&o.lastChild?.type.name==="hardbreak")return n?.(i.replaceRangeWith(r.to-1,r.to,e.schema.node("paragraph")).setSelection(Kt.near(i.doc.resolve(r.to))).scrollIntoView()),!0}return n?.(i.setMeta("hardbreak",!0).replaceSelectionWith(Gg.type(t).create()).scrollIntoView()),!0});Te(Kq,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});var Xq=ra("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:t=>{let e=t.get(Zn);return()=>e.call(Kq.key)}}});Te(Xq.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"});Te(Xq.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});var Yq=eu("hr");Te(Yq,{displayName:"Attr<hr>",group:"Hr"});var m8=Ui("hr",t=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:e=>["hr",t.get(Yq.key)(e)],parseMarkdown:{match:({type:e})=>e==="thematicBreak",runner:(e,n,r)=>{e.addNode(r)}},toMarkdown:{match:e=>e.type.name==="hr",runner:e=>{e.addNode("thematicBreak")}}}));Te(m8.node,{displayName:"NodeSchema<hr>",group:"Hr"});Te(m8.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});var Wbe=za(t=>new Io(/^(?:---|___\s|\*\*\*\s)$/,(e,n,r,i)=>{let{tr:o}=e;return n[0]&&o.replaceWith(r-1,i,m8.type(t).create()),o}));Te(Wbe,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});var Kbe=tn("InsertHr",t=>()=>(e,n)=>{if(!n)return!0;let r=Bu.node.type(t).create(),{tr:i,selection:o}=e,{from:a}=o,s=m8.type(t).create();if(!s)return!0;let l=i.replaceSelectionWith(s).insert(a,r),c=Kt.findFrom(l.doc.resolve(a),1,!0);return c&&n(l.setSelection(c).scrollIntoView()),!0});Te(Kbe,{displayName:"Command<insertHrCommand>",group:"Hr"});var Qq=eu("bulletList");Te(Qq,{displayName:"Attr<bulletList>",group:"BulletList"});var e3=Ui("bullet_list",t=>({content:"listItem+",group:"block",attrs:{spread:{default:!1,validate:"boolean"}},parseDOM:[{tag:"ul",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{spread:e.dataset.spread==="true"}}}],toDOM:e=>["ul",{...t.get(Qq.key)(e),"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:n})=>e==="list"&&!n,runner:(e,n,r)=>{let i=n.spread??!1;e.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="bullet_list",runner:(e,n)=>{e.openNode("list",void 0,{ordered:!1,spread:n.attrs.spread}).next(n.content).closeNode()}}}));Te(e3.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"});Te(e3.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});var Xbe=za(t=>rE(/^\s*([-+*])\s$/,e3.type(t)));Te(Xbe,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});var Jq=tn("WrapInBulletList",t=>()=>tE(e3.type(t)));Te(Jq,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});var eH=ra("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:t=>{let e=t.get(Zn);return()=>e.call(Jq.key)}}});Te(eH.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"});Te(eH.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});var tH=eu("orderedList");Te(tH,{displayName:"Attr<orderedList>",group:"OrderedList"});var t3=Ui("ordered_list",t=>({content:"listItem+",group:"block",attrs:{order:{default:1,validate:"number"},spread:{default:!1,validate:"boolean"}},parseDOM:[{tag:"ol",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{spread:e.dataset.spread==="true",order:e.hasAttribute("start")?Number(e.getAttribute("start")):1}}}],toDOM:e=>["ol",{...t.get(tH.key)(e),...e.attrs.order===1?{}:{start:e.attrs.order},"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:n})=>e==="list"&&!!n,runner:(e,n,r)=>{let i=n.spread??!0;e.openNode(r,{spread:i,order:n.start??1}).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="ordered_list",runner:(e,n)=>{e.openNode("list",void 0,{ordered:!0,start:n.attrs.order??1,spread:n.attrs.spread}),e.next(n.content),e.closeNode()}}}));Te(t3.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"});Te(t3.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});var Ybe=za(t=>rE(/^\s*(\d+)\.\s$/,t3.type(t),e=>({order:Number(e[1])}),(e,n)=>n.childCount+n.attrs.order===Number(e[1])));Te(Ybe,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});var nH=tn("WrapInOrderedList",t=>()=>tE(t3.type(t)));Te(nH,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});var rH=ra("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:t=>{let e=t.get(Zn);return()=>e.call(nH.key)}}});Te(rH.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"});Te(rH.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});var iH=eu("listItem");Te(iH,{displayName:"Attr<listItem>",group:"ListItem"});var Hd=Ui("list_item",t=>({group:"listItem",content:"paragraph block*",attrs:{label:{default:"\u2022",validate:"string"},listType:{default:"bullet",validate:"string"},spread:{default:!0,validate:"boolean"}},defining:!0,parseDOM:[{tag:"li",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{label:e.dataset.label,listType:e.dataset.listType,spread:e.dataset.spread==="true"}}}],toDOM:e=>["li",{...t.get(iH.key)(e),"data-label":e.attrs.label,"data-list-type":e.attrs.listType,"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e})=>e==="listItem",runner:(e,n,r)=>{let i=n.label!=null?`${n.label}.`:"\u2022",o=n.label!=null?"ordered":"bullet",a=n.spread??!0;e.openNode(r,{label:i,listType:o,spread:a}),e.next(n.children),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="list_item",runner:(e,n)=>{e.openNode("listItem",void 0,{spread:n.attrs.spread}),e.next(n.content),e.closeNode()}}}));Te(Hd.node,{displayName:"NodeSchema<listItem>",group:"ListItem"});Te(Hd.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});var oH=tn("SinkListItem",t=>()=>Rbe(Hd.type(t)));Te(oH,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});var aH=tn("LiftListItem",t=>()=>Tbe(Hd.type(t)));Te(aH,{displayName:"Command<liftListItemCommand>",group:"ListItem"});var sH=tn("SplitListItem",t=>()=>$E(Hd.type(t)));Te(sH,{displayName:"Command<splitListItemCommand>",group:"ListItem"});function nXe(t){return(e,n,r)=>{let{selection:i}=e;if(!(i instanceof Qt))return!1;let{empty:o,$from:a}=i;return!o||a.parentOffset!==0||a.node(-1).type!==Hd.type(t)?!1:Ez(e,n,r)}}var lH=tn("LiftFirstListItem",t=>()=>nXe(t));Te(lH,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});var cH=ra("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:t=>{let e=t.get(Zn);return()=>e.call(sH.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:t=>{let e=t.get(Zn);return()=>e.call(oH.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:t=>{let e=t.get(Zn);return()=>e.call(aH.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:t=>{let e=t.get(Zn);return()=>e.call(lH.key)}}});Te(cH.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"});Te(cH.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});var Qbe=AE("text",()=>({group:"inline",parseMarkdown:{match:({type:t})=>t==="text",runner:(t,e)=>{t.addText(e.value)}},toMarkdown:{match:t=>t.type.name==="text",runner:(t,e)=>{t.addNode("text",void 0,e.text)}}}));Te(Qbe,{displayName:"NodeSchema<text>",group:"Text"});var uH=eu("html");Te(uH,{displayName:"Attr<html>",group:"Html"});var dH=Ui("html",t=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:"",validate:"string"}},toDOM:e=>{let n=document.createElement("span"),r={...t.get(uH.key)(e),"data-value":e.attrs.value,"data-type":"html"};return n.textContent=e.attrs.value,["span",r,e.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:e=>({value:e.dataset.value??""})}],parseMarkdown:{match:({type:e})=>e==="html",runner:(e,n,r)=>{e.addNode(r,{value:n.value})}},toMarkdown:{match:e=>e.type.name==="html",runner:(e,n)=>{e.addNode("html",void 0,n.attrs.value)}}}));Te(dH.node,{displayName:"NodeSchema<html>",group:"Html"});Te(dH.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});var rXe=[Bbe,jq,Bu,OE,Fq,Ug,PE,Gg,qq,d8,Uq,p8,Yq,m8,Wq,Jy,Qq,e3,tH,t3,iH,Hd,Lq,Qy,Tq,u8,$q,uh,Pq,Yy,uH,dH,Qbe].flat(),iXe=[Gbe,Xbe,Ybe,Ube,Wbe,Hbe].flat(),oXe=[Nbe,Pbe,Obe,jbe],aXe=tn("IsMarkSelected",()=>t=>e=>{if(!t)return!1;let{doc:n,selection:r}=e;return n.rangeHasMark(r.from,r.to,t)}),sXe=tn("IsNoteSelected",()=>t=>e=>t?qge(e,t).hasNode:!1),lXe=tn("ClearTextInCurrentBlock",()=>()=>(t,e)=>{let n=t.tr,{$from:r,$to:i}=n.selection,{pos:o}=r,{pos:a}=i,s=o-r.node().content.size;return s<0?!1:(n=n.deleteRange(s,a),e?.(n),!0)}),cXe=tn("SetBlockType",()=>t=>(e,n)=>{let{nodeType:r,attrs:i=null}=t??{};if(!r)return!1;let o=e.tr,{from:a,to:s}=o.selection;try{o.setBlockType(a,s,r,i)}catch{return!1}return n?.(o),!0}),uXe=tn("WrapInBlockType",()=>t=>(e,n)=>{let{nodeType:r,attrs:i=null}=t??{};if(!r)return!1;let o=e.tr;try{let{$from:a,$to:s}=o.selection,l=a.blockRange(s),c=l&&Mg(l,r,i);if(!c)return!1;o=o.wrap(l,c)}catch{return!1}return n?.(o),!0}),dXe=tn("AddBlockType",()=>t=>(e,n)=>{let{nodeType:r,attrs:i=null}=t??{};if(!r)return!1;let o=e.tr;try{let a=r instanceof rl?r:r.createAndFill(i);if(!a)return!1;o.replaceSelectionWith(a)}catch{return!1}return n?.(o),!0}),pXe=tn("SelectTextNearPos",()=>t=>(e,n)=>{let{pos:r}=t??{};if(r==null)return!1;let i=(a,s,l)=>Math.min(Math.max(a,s),l),o=e.tr;try{let a=e.doc.resolve(i(r,0,e.doc.content.size));o.setSelection(Qt.near(a))}catch{return!1}return n?.(o.scrollIntoView()),!0}),mXe=[Oq,Hq,ch,Bq,Vq,Kq,Kbe,Vbe,Zbe,nH,Jq,oH,sH,aH,lH,Mq,Iq,Rq,Dbe,Fbe,aXe,sXe,lXe,cXe,uXe,dXe,pXe],fXe=[Gq,Zq,Xq,zq,cH,rH,eH,Dq,Eq,Nq,Aq].flat(),pH=$m("remarkAddOrderInList",()=>()=>t=>{Du(t,"list",e=>{if(e.ordered){let n=e.start??1;e.children.forEach((r,i)=>{r.label=i+n})}})});Te(pH.plugin,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"});Te(pH.options,{displayName:"RemarkConfig<remarkAddOrderInListPlugin>",group:"Remark"});var mH=$m("remarkLineBreak",()=>()=>t=>{let e=/[\t ]*(?:\r?\n|\r)/g;Du(t,"text",(n,r,i)=>{if(!n.value||typeof n.value!="string")return;let o=[],a=0;e.lastIndex=0;let s=e.exec(n.value);for(;s;){let l=s.index;a!==l&&o.push({type:"text",value:n.value.slice(a,l)}),o.push({type:"break",data:{isInline:!0}}),a=l+s[0].length,s=e.exec(n.value)}if(o.length>0&&i&&typeof r=="number")return a<n.value.length&&o.push({type:"text",value:n.value.slice(a)}),i.children.splice(r,1,...o),r+o.length})});Te(mH.plugin,{displayName:"Remark<remarkLineBreak>",group:"Remark"});Te(mH.options,{displayName:"RemarkConfig<remarkLineBreak>",group:"Remark"});var fH=$m("remarkInlineLink",()=>IE);Te(fH.plugin,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"});Te(fH.options,{displayName:"RemarkConfig<remarkInlineLinkPlugin>",group:"Remark"});var hXe=t=>!!t.children,gXe=t=>t.type==="html";function bXe(t,e){return n(t,0,null)[0];function n(r,i,o){if(hXe(r)){let a=[];for(let s=0,l=r.children.length;s<l;s++){let c=r.children[s];if(c){let u=n(c,s,r);if(u)for(let d=0,p=u.length;d<p;d++){let m=u[d];m&&a.push(m)}}}r.children=a}return e(r,i,o)}}var hH=$m("remarkHTMLTransformer",t=>()=>e=>{let n=qbe(t);bXe(e,(r,i,o)=>gXe(r)?(o&&n.has(o.type)&&(r.children=[BKe(r)],delete r.value,r.type="paragraph"),[r]):[r])});Te(hH.plugin,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"});Te(hH.options,{displayName:"RemarkConfig<remarkHtmlTransformer>",group:"Remark"});var gH=$m("remarkMarker",()=>()=>(t,e)=>{let n=r=>e.value.charAt(r.position.start.offset);Du(t,r=>["strong","emphasis"].includes(r.type),r=>{r.marker=n(r)})});Te(gH.plugin,{displayName:"Remark<remarkMarker>",group:"Remark"});Te(gH.options,{displayName:"RemarkConfig<remarkMarker>",group:"Remark"});var Jbe=ko(()=>{let t=!1,e=new qr("MILKDOWN_INLINE_NODES_CURSOR"),n=new Mr({key:e,state:{init(){return!1},apply(r){if(!r.selection.empty)return!1;let i=r.selection.$from,o=i.nodeBefore,a=i.nodeAfter;return!!(o&&a&&o.isInline&&!o.isText&&a.isInline&&!a.isText)}},props:{handleDOMEvents:{compositionend:(r,i)=>t?(t=!1,requestAnimationFrame(()=>{if(n.getState(r.state)){let o=r.state.selection.from;i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",o))}}),!0):!1,compositionstart:r=>(n.getState(r.state)&&(t=!0),!1),beforeinput:(r,i)=>{if(n.getState(r.state)&&i instanceof InputEvent&&i.data&&!t){let o=r.state.selection.from;return i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",o)),!0}return!1}},decorations(r){if(n.getState(r)){let i=r.selection.$from.pos,o=document.createElement("span"),a=na.widget(i,o,{side:-1}),s=document.createElement("span"),l=na.widget(i,s);return setTimeout(()=>{o.contentEditable="true",s.contentEditable="true"}),Gi.create(r.doc,[a,l])}return Gi.empty}}});return n});Te(Jbe,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});var e2e=ko(t=>new Mr({key:new qr("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(e,n,r)=>{if(!e.length)return;let[i]=e;if(!i)return;let[o]=i.steps;if(i.getMeta("hardbreak")){if(!(o instanceof Qo))return;let{from:a}=o;return r.tr.setNodeMarkup(a,Gg.type(t),void 0,[])}if(o instanceof Sg){let a=r.tr,{from:s,to:l}=o;return r.doc.nodesBetween(s,l,(c,u)=>{c.type===Gg.type(t)&&(a=a.setNodeMarkup(u,Gg.type(t),void 0,[]))}),a}}}));Te(e2e,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});var bH=Jc(["table","code_block"],"hardbreakFilterNodes");Te(bH,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});var t2e=ko(t=>{let e=t.get(bH.key);return new Mr({key:new qr("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(n,r)=>{let i=n.getMeta("hardbreak"),[o]=n.steps;if(i&&o){let{from:a}=o,s=r.doc.resolve(a),l=s.depth,c=!0;for(;l>0;)e.includes(s.node(l).type.name)&&(c=!1),l--;return c}return!0}})});Te(t2e,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});var n2e=ko(t=>{let e=new qr("MILKDOWN_HEADING_ID"),n=r=>{if(r.composing)return;let i=t.get(OE.key),o=r.state.tr.setMeta("addToHistory",!1),a=!1,s={};r.state.doc.descendants((l,c)=>{if(l.type===Ug.type(t)){if(l.textContent.trim().length===0)return;let u=l.attrs,d=i(l);s[d]?(s[d]+=1,d+=`-#${s[d]}`):s[d]=1,u.id!==d&&(a=!0,o.setMeta(e,!0).setNodeMarkup(c,void 0,{...u,id:d}))}}),a&&r.dispatch(o)};return new Mr({key:e,view:r=>(n(r),{update:(i,o)=>{i.state.doc.eq(o.doc)||n(i)}})})});Te(n2e,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});var r2e=ko(t=>{let e=(n,r,i)=>{if(!i.selection||n.some(d=>d.getMeta("addToHistory")===!1||!d.isGeneric))return null;let o=t3.type(t),a=e3.type(t),s=Hd.type(t),l=(d,p,m=1)=>{let f=!1,h=`${p+m}.`;return d.label!==h&&(d.label=h,f=!0),f},c=i.tr,u=!1;return i.doc.descendants((d,p,m,f)=>{if(d.type===a){let h=d.maybeChild(0);h?.type===s&&h.attrs.listType==="ordered"&&(u=!0,c.setNodeMarkup(p,o,{spread:!0}),d.descendants((x,g,y,b)=>{if(x.type===s){let w={...x.attrs};l(w,b)&&(c=c.setNodeMarkup(g,void 0,w))}return!1}))}else if(d.type===s&&m?.type===o){let h={...d.attrs},x=!1;h.listType!=="ordered"&&(h.listType="ordered",x=!0),m?.maybeChild(0)&&(x=l(h,f,m?.attrs.order??1)),x&&(c=c.setNodeMarkup(p,void 0,h),u=!0)}}),u?c.setMeta("addToHistory",!1):null};return new Mr({key:new qr("MILKDOWN_KEEP_LIST_ORDER"),appendTransaction:e})});Te(r2e,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});var yXe=[e2e,bH,t2e,Jbe,NE,pH,fH,mH,hH,gH,jE,n2e,r2e].flat(),i2e=[rXe,iXe,oXe,mXe,fXe,yXe].flat();var xH,wH;if(typeof WeakMap<"u"){let t=new WeakMap;xH=e=>t.get(e),wH=(e,n)=>(t.set(e,n),n)}else{let t=[],n=0;xH=r=>{for(let i=0;i<t.length;i+=2)if(t[i]==r)return t[i+1]},wH=(r,i)=>(n==10&&(n=0),t[n++]=r,t[n++]=i)}var cr=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){let n=this.map[e];if(n!=t)continue;let r=e%this.width,i=e/this.width|0,o=r+1,a=i+1;for(let s=1;o<this.width&&this.map[e+s]==n;s++)o++;for(let s=1;a<this.height&&this.map[e+this.width*s]==n;s++)a++;return{left:r,top:i,right:o,bottom:a}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){let{left:r,right:i,top:o,bottom:a}=this.findCell(t);return e=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:a==this.height)?null:this.map[r+this.width*(n<0?o-1:a)]}rectBetween(t,e){let{left:n,right:r,top:i,bottom:o}=this.findCell(t),{left:a,right:s,top:l,bottom:c}=this.findCell(e);return{left:Math.min(n,a),top:Math.min(i,l),right:Math.max(r,s),bottom:Math.max(o,c)}}cellsInRect(t){let e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let i=t.left;i<t.right;i++){let o=r*this.width+i,a=this.map[o];n[a]||(n[a]=!0,!(i==t.left&&i&&this.map[o-1]==a||r==t.top&&r&&this.map[o-this.width]==a)&&e.push(a))}return e}positionAt(t,e,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==t){let a=e+t*this.width,s=(t+1)*this.width;for(;a<s&&this.map[a]<i;)a++;return a==s?o-1:this.map[a]}i=o}}static get(t){return xH(t)||wH(t,xXe(t))}};function xXe(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);let e=wXe(t),n=t.childCount,r=[],i=0,o=null,a=[];for(let c=0,u=e*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){let d=t.child(c);u++;for(let f=0;;f++){for(;i<r.length&&r[i]!=0;)i++;if(f==d.childCount)break;let h=d.child(f),{colspan:x,rowspan:g,colwidth:y}=h.attrs;for(let b=0;b<g;b++){if(b+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:g-b});break}let w=i+b*e;for(let v=0;v<x;v++){r[w+v]==0?r[w+v]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:x-v});let k=y&&y[v];if(k){let _=(w+v)%e*2,L=a[_];L==null||L!=k&&a[_+1]==1?(a[_]=k,a[_+1]=1):L==k&&a[_+1]++}}}i+=x,u+=h.nodeSize}let p=(c+1)*e,m=0;for(;i<p;)r[i++]==0&&m++;m&&(o||(o=[])).push({type:"missing",row:c,n:m}),u++}(e===0||n===0)&&(o||(o=[])).push({type:"zero_sized"});let s=new cr(e,n,r,o),l=!1;for(let c=0;!l&&c<a.length;c+=2)a[c]!=null&&a[c+1]<n&&(l=!0);return l&&vXe(s,a,t),s}function wXe(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){let i=t.child(r),o=0;if(n)for(let a=0;a<r;a++){let s=t.child(a);for(let l=0;l<s.childCount;l++){let c=s.child(l);a+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let a=0;a<i.childCount;a++){let s=i.child(a);o+=s.attrs.colspan,s.attrs.rowspan>1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function vXe(t,e,n){t.problems||(t.problems=[]);let r={};for(let i=0;i<t.map.length;i++){let o=t.map[i];if(r[o])continue;r[o]=!0;let a=n.nodeAt(o);if(!a)throw new RangeError(`No cell with offset ${o} found`);let s=null,l=a.attrs;for(let c=0;c<l.colspan;c++){let u=e[(i+c)%t.width*2];u!=null&&(!l.colwidth||l.colwidth[c]!=u)&&((s||(s=kXe(l)))[c]=u)}s&&t.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:s})}}function kXe(t){if(t.colwidth)return t.colwidth.slice();let e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function o2e(t,e){if(typeof t=="string")return{};let n=t.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(a=>Number(a)):null,i=Number(t.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(t.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(let a in e){let s=e[a].getFromDOM,l=s&&s(t);l!=null&&(o[a]=l)}return o}function a2e(t,e){let n={};t.attrs.colspan!=1&&(n.colspan=t.attrs.colspan),t.attrs.rowspan!=1&&(n.rowspan=t.attrs.rowspan),t.attrs.colwidth&&(n["data-colwidth"]=t.attrs.colwidth.join(","));for(let r in e){let i=e[r].setDOMAttr;i&&i(t.attrs[r],n)}return n}function CXe(t){if(t!==null){if(!Array.isArray(t))throw new TypeError("colwidth must be null or an array");for(let e of t)if(typeof e!="number")throw new TypeError("colwidth must be null or an array of numbers")}}function y2e(t){let e=t.cellAttributes||{},n={colspan:{default:1,validate:"number"},rowspan:{default:1,validate:"number"},colwidth:{default:null,validate:CXe}};for(let r in e)n[r]={default:e[r].default,validate:e[r].validate};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:t.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:t.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:r=>o2e(r,e)}],toDOM(r){return["td",a2e(r,e),0]}},table_header:{content:t.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:r=>o2e(r,e)}],toDOM(r){return["th",a2e(r,e),0]}}}}function tu(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(let n in t.nodes){let r=t.nodes[n],i=r.spec.tableRole;i&&(e[i]=r)}}return e}var dh=new qr("selectingCells");function i3(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function ec(t){let e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function HE(t){let e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;let n=i3(e.$head)||_Xe(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function _Xe(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){let r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){let r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function vH(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function SXe(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function _H(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function x2e(t,e,n){let r=t.node(-1),i=cr.get(r),o=t.start(-1),a=i.nextCell(t.pos-o,e,n);return a==null?null:t.node(0).resolve(o+a)}function Vg(t,e,n=1){let r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function LXe(t,e,n=1){let r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(e,0,0)}return r}function MXe(t,e,n){let r=tu(e.type.schema).header_cell;for(let i=0;i<t.height;i++)if(e.nodeAt(t.map[n+i*t.width]).type!=r)return!1;return!0}var Hr=class Im extends Kt{constructor(e,n=e){let r=e.node(-1),i=cr.get(r),o=e.start(-1),a=i.rectBetween(e.pos-o,n.pos-o),s=e.node(0),l=i.cellsInRect(a).filter(u=>u!=n.pos-o);l.unshift(n.pos-o);let c=l.map(u=>{let d=r.nodeAt(u);if(!d)throw new RangeError(`No cell with offset ${u} found`);let p=o+u+1;return new Y1(s.resolve(p),s.resolve(p+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=n}map(e,n){let r=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if(vH(r)&&vH(i)&&_H(r,i)){let o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?Im.rowSelection(r,i):o&&this.isColSelection()?Im.colSelection(r,i):new Im(r,i)}return Qt.between(r,i)}content(){let e=this.$anchorCell.node(-1),n=cr.get(e),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},a=[];for(let l=i.top;l<i.bottom;l++){let c=[];for(let u=l*n.width+i.left,d=i.left;d<i.right;d++,u++){let p=n.map[u];if(o[p])continue;o[p]=!0;let m=n.findCell(p),f=e.nodeAt(p);if(!f)throw new RangeError(`No cell with offset ${p} found`);let h=i.left-m.left,x=m.right-i.right;if(h>0||x>0){let g=f.attrs;if(h>0&&(g=Vg(g,0,h)),x>0&&(g=Vg(g,g.colspan-x,x)),m.left<i.left){if(f=f.type.createAndFill(g),!f)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(g)}`)}else f=f.type.create(g,f.content)}if(m.top<i.top||m.bottom>i.bottom){let g={...f.attrs,rowspan:Math.min(m.bottom,i.bottom)-Math.max(m.top,i.top)};m.top<i.top?f=f.type.createAndFill(g):f=f.type.create(g,f.content)}c.push(f)}a.push(e.child(l).copy(De.from(c)))}let s=this.isColSelection()&&this.isRowSelection()?e:a;return new Je(De.from(s),1,1)}replace(e,n=Je.empty){let r=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(r);e.replace(c.map(s.pos),c.map(l.pos),a?Je.empty:n)}let o=Kt.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,n){this.replace(e,new Je(De.from(n),0,0))}forEachCell(e){let n=this.$anchorCell.node(-1),r=cr.get(n),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let a=0;a<o.length;a++)e(n.nodeAt(o[a]),i+o[a])}isColSelection(){let e=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(e,n)>0)return!1;let r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){let r=e.node(-1),i=cr.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.top<=s.top?(a.top>0&&(e=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(e=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))),new Im(e,n)}isRowSelection(){let e=this.$anchorCell.node(-1),n=cr.get(e),r=this.$anchorCell.start(-1),i=n.colCount(this.$anchorCell.pos-r),o=n.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;let a=i+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,s)==n.width}eq(e){return e instanceof Im&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){let r=e.node(-1),i=cr.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.left<=s.left?(a.left>0&&(e=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(n=l.resolve(o+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(e=l.resolve(o+i.map[i.width*(a.top+1)-1]))),new Im(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new Im(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){return new Im(e.resolve(n),e.resolve(r))}getBookmark(){return new EXe(this.$anchorCell.pos,this.$headCell.pos)}};Hr.prototype.visible=!1;Kt.jsonID("cell",Hr);var EXe=class w2e{constructor(e,n){this.anchor=e,this.head=n}map(e){return new w2e(e.map(this.anchor),e.map(this.head))}resolve(e){let n=e.resolve(this.anchor),r=e.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&_H(n,r)?new Hr(n,r):Kt.near(r,1)}};function TXe(t){if(!(t.selection instanceof Hr))return null;let e=[];return t.selection.forEachCell((n,r)=>{e.push(na.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Gi.create(t.doc,e)}function RXe({$from:t,$to:e}){if(t.pos==e.pos||t.pos<e.pos-6)return!1;let n=t.pos,r=e.pos,i=t.depth;for(;i>=0&&!(t.after(i+1)<t.end(i));i--,n++);for(let o=e.depth;o>=0&&!(e.before(o+1)>e.start(o));o--,r--);return n==r&&/row|table/.test(t.node(i).type.spec.tableRole)}function AXe({$from:t,$to:e}){let n,r;for(let i=t.depth;i>0;i--){let o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=e.depth;i>0;i--){let o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&e.parentOffset===0}function $Xe(t,e,n){let r=(e||t).selection,i=(e||t).doc,o,a;if(r instanceof cn&&(a=r.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")o=Hr.create(i,r.from);else if(a=="row"){let s=i.resolve(r.from+1);o=Hr.rowSelection(s,s)}else if(!n){let s=cr.get(r.node),l=r.from+1,c=l+s.map[s.width*s.height-1];o=Hr.create(i,l+1,c)}}else r instanceof Qt&&RXe(r)?o=Qt.create(i,r.from):r instanceof Qt&&AXe(r)&&(o=Qt.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=t.tr)).setSelection(o),e}var IXe=new qr("fix-tables");function v2e(t,e,n,r){let i=t.childCount,o=e.childCount;e:for(let a=0,s=0;a<o;a++){let l=e.child(a);for(let c=s,u=Math.min(i,a+3);c<u;c++)if(t.child(c)==l){s=c+1,n+=l.nodeSize;continue e}r(l,n),s<i&&t.child(s).sameMarkup(l)?v2e(t.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function NXe(t,e){let n,r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=PXe(t,i,o,n))};return e?e.doc!=t.doc&&v2e(e.doc,t.doc,0,r):t.doc.descendants(r),n}function PXe(t,e,n,r){let i=cr.get(e);if(!i.problems)return r;r||(r=t.tr);let o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){let c=i.problems[l];if(c.type=="collision"){let u=e.nodeAt(c.pos);if(!u)continue;let d=u.attrs;for(let p=0;p<d.rowspan;p++)o[c.row+p]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,Vg(d,d.colspan-c.n,c.n))}else if(c.type=="missing")o[c.row]+=c.n;else if(c.type=="overlong_rowspan"){let u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){let u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}else if(c.type=="zero_sized"){let u=r.mapping.map(n);r.delete(u,u+e.nodeSize)}}let a,s;for(let l=0;l<o.length;l++)o[l]&&(a==null&&(a=l),s=l);for(let l=0,c=n+1;l<i.height;l++){let u=e.child(l),d=c+u.nodeSize,p=o[l];if(p>0){let m="cell";u.firstChild&&(m=u.firstChild.type.spec.tableRole);let f=[];for(let x=0;x<p;x++){let g=tu(t.schema)[m].createAndFill();g&&f.push(g)}let h=(l==0||a==l-1)&&s==l?c+1:d-1;r.insert(r.mapping.map(h),f)}c=d}return r.setMeta(IXe,{fixTables:!0})}function k2e(t){let e=cr.get(t),n=[],r=e.height,i=e.width;for(let o=0;o<r;o++){let a=[];for(let s=0;s<i;s++){let l=o*i+s,c=e.map[l];if(o>0){let u=l-i;if(c===e.map[u]){a.push(null);continue}}if(s>0){let u=l-1;if(c===e.map[u]){a.push(null);continue}}a.push(t.nodeAt(c))}n.push(a)}return n}function C2e(t,e){let n=[],r=cr.get(t),i=r.height,o=r.width;for(let a=0;a<i;a++){let s=t.child(a),l=[];for(let u=0;u<o;u++){let d=e[a][u];if(!d)continue;let p=r.map[a*r.width+u],m=t.nodeAt(p);if(!m)continue;let f=m.type.createChecked(d.attrs,d.content,d.marks);l.push(f)}let c=s.type.createChecked(s.attrs,l,s.marks);n.push(c)}return t.type.createChecked(t.attrs,n,t.marks)}function _2e(t,e,n,r){let i=e[0]>n[0]?-1:1,o=t.splice(e[0],e.length),a=o.length%2===0?1:0,s;return r===-1&&i===1?s=n[0]-1:r===1&&i===-1?s=n[n.length-1]-a+1:s=i===-1?n[0]:n[n.length-1]-a,t.splice(s,0,...o),t}function o3(t){return jXe(e=>e.type.spec.tableRole==="table",t)}function jXe(t,e){for(let n=e.depth;n>=0;n-=1){let r=e.node(n);if(t(r))return{node:r,pos:n===0?0:e.before(n),start:e.start(n),depth:n}}return null}function n3(t,e){let n=o3(e.$from);if(!n)return;let r=cr.get(n.node);if(!(t<0||t>r.width-1))return r.cellsInRect({left:t,right:t+1,top:0,bottom:r.height}).map(i=>{let o=n.node.nodeAt(i),a=i+n.start;return{pos:a,start:a+1,node:o,depth:n.depth+2}})}function r3(t,e){let n=o3(e.$from);if(!n)return;let r=cr.get(n.node);if(!(t<0||t>r.height-1))return r.cellsInRect({left:0,right:r.width,top:t,bottom:t+1}).map(i=>{let o=n.node.nodeAt(i),a=i+n.start;return{pos:a,start:a+1,node:o,depth:n.depth+2}})}function s2e(t,e,n=e){let r=e,i=n;for(let u=e;u>=0;u--){let d=n3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.colspan+u-1;m>=r&&(r=u),m>i&&(i=m)})}for(let u=e;u<=i;u++){let d=n3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.colspan+u-1;p.node.attrs.colspan>1&&m>i&&(i=m)})}let o=[];for(let u=r;u<=i;u++){let d=n3(u,t.selection);d&&d.length>0&&o.push(u)}r=o[0],i=o[o.length-1];let a=n3(r,t.selection),s=r3(0,t.selection);if(!a||!s)return;let l=t.doc.resolve(a[a.length-1].pos),c;for(let u=i;u>=r;u--){let d=n3(u,t.selection);if(d&&d.length>0){for(let p=s.length-1;p>=0;p--)if(s[p].pos===d[0].pos){c=d[0];break}if(c)break}}if(c)return{$anchor:l,$head:t.doc.resolve(c.pos),indexes:o}}function l2e(t,e,n=e){let r=e,i=n;for(let u=e;u>=0;u--){let d=r3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.rowspan+u-1;m>=r&&(r=u),m>i&&(i=m)})}for(let u=e;u<=i;u++){let d=r3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.rowspan+u-1;p.node.attrs.rowspan>1&&m>i&&(i=m)})}let o=[];for(let u=r;u<=i;u++){let d=r3(u,t.selection);d&&d.length>0&&o.push(u)}r=o[0],i=o[o.length-1];let a=r3(r,t.selection),s=n3(0,t.selection);if(!a||!s)return;let l=t.doc.resolve(a[a.length-1].pos),c;for(let u=i;u>=r;u--){let d=r3(u,t.selection);if(d&&d.length>0){for(let p=s.length-1;p>=0;p--)if(s[p].pos===d[0].pos){c=d[0];break}if(c)break}}if(c)return{$anchor:l,$head:t.doc.resolve(c.pos),indexes:o}}function c2e(t){return t[0].map((e,n)=>t.map(r=>r[n]))}function OXe(t){var e,n;let{tr:r,originIndex:i,targetIndex:o,select:a,pos:s}=t,l=o3(r.doc.resolve(s));if(!l)return!1;let c=(e=s2e(r,i))===null||e===void 0?void 0:e.indexes,u=(n=s2e(r,o))===null||n===void 0?void 0:n.indexes;if(!c||!u||c.includes(o))return!1;let d=DXe(l.node,c,u,0);if(r.replaceWith(l.pos,l.pos+l.node.nodeSize,d),!a)return!0;let p=cr.get(d),m=l.start,f=o,h=p.positionAt(p.height-1,f,d),x=r.doc.resolve(m+h),g=p.positionAt(0,f,d),y=r.doc.resolve(m+g);return r.setSelection(Hr.colSelection(x,y)),!0}function DXe(t,e,n,r){let i=c2e(k2e(t));return i=_2e(i,e,n,r),i=c2e(i),C2e(t,i)}function FXe(t){var e,n;let{tr:r,originIndex:i,targetIndex:o,select:a,pos:s}=t,l=o3(r.doc.resolve(s));if(!l)return!1;let c=(e=l2e(r,i))===null||e===void 0?void 0:e.indexes,u=(n=l2e(r,o))===null||n===void 0?void 0:n.indexes;if(!c||!u||c.includes(o))return!1;let d=BXe(l.node,c,u,0);if(r.replaceWith(l.pos,l.pos+l.node.nodeSize,d),!a)return!0;let p=cr.get(d),m=l.start,f=o,h=p.positionAt(f,p.width-1,d),x=r.doc.resolve(m+h),g=p.positionAt(f,0,d),y=r.doc.resolve(m+g);return r.setSelection(Hr.rowSelection(x,y)),!0}function BXe(t,e,n,r){let i=k2e(t);return i=_2e(i,e,n,r),C2e(t,i)}function Nm(t){let e=t.selection,n=HE(t),r=n.node(-1),i=n.start(-1),o=cr.get(r);return{...e instanceof Hr?o.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function S2e(t,{map:e,tableStart:n,table:r},i){let o=i>0?-1:0;MXe(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let a=0;a<e.height;a++){let s=a*e.width+i;if(i>0&&i<e.width&&e.map[s-1]==e.map[s]){let l=e.map[s],c=r.nodeAt(l);t.setNodeMarkup(t.mapping.map(n+l),null,LXe(c.attrs,i-e.colCount(l))),a+=c.attrs.rowspan-1}else{let l=o==null?tu(r.type.schema).cell:r.nodeAt(e.map[s+o]).type,c=e.positionAt(a,i,r);t.insert(t.mapping.map(n+c),l.createAndFill())}}return t}function L2e(t,e){if(!ec(t))return!1;if(e){let n=Nm(t);e(S2e(t.tr,n,n.left))}return!0}function M2e(t,e){if(!ec(t))return!1;if(e){let n=Nm(t);e(S2e(t.tr,n,n.right))}return!0}function zXe(t,{map:e,table:n,tableStart:r},i){let o=t.mapping.maps.length;for(let a=0;a<e.height;){let s=a*e.width+i,l=e.map[s],c=n.nodeAt(l),u=c.attrs;if(i>0&&e.map[s-1]==l||i<e.width-1&&e.map[s+1]==l)t.setNodeMarkup(t.mapping.slice(o).map(r+l),null,Vg(u,i-e.colCount(l)));else{let d=t.mapping.slice(o).map(r+l);t.delete(d,d+c.nodeSize)}a+=u.rowspan}}function E2e(t,e){if(!ec(t))return!1;if(e){let n=Nm(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;zXe(r,n,i),i!=n.left;i--){let o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw new RangeError("No table found");n.table=o,n.map=cr.get(o)}e(r)}return!0}function qXe(t,{map:e,table:n,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=n.child(c).nodeSize;let a=o+n.child(i).nodeSize,s=t.mapping.maps.length;t.delete(o+r,a+r);let l=new Set;for(let c=0,u=i*e.width;c<e.width;c++,u++){let d=e.map[u];if(!l.has(d)){if(l.add(d),i>0&&d==e.map[u-e.width]){let p=n.nodeAt(d).attrs;t.setNodeMarkup(t.mapping.slice(s).map(d+r),null,{...p,rowspan:p.rowspan-1}),c+=p.colspan-1}else if(i<e.height&&d==e.map[u+e.width]){let p=n.nodeAt(d),m=p.attrs,f=p.type.create({...m,rowspan:p.attrs.rowspan-1},p.content),h=e.positionAt(i+1,c,n);t.insert(t.mapping.slice(s).map(r+h),f),c+=m.colspan-1}}}}function T2e(t,e){if(!ec(t))return!1;if(e){let n=Nm(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;qXe(r,n,i),i!=n.top;i--){let o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw new RangeError("No table found");n.table=o,n.map=cr.get(n.table)}e(r)}return!0}function R2e(t,e){return function(n,r){if(!ec(n))return!1;let i=HE(n);if(i.nodeAfter.attrs[t]===e)return!1;if(r){let o=n.tr;n.selection instanceof Hr?n.selection.forEachCell((a,s)=>{a.attrs[t]!==e&&o.setNodeMarkup(s,null,{...a.attrs,[t]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),r(o)}return!0}}function HXe(t){return function(e,n){if(!ec(e))return!1;if(n){let r=tu(e.schema),i=Nm(e),o=e.tr,a=i.map.cellsInRect(t=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:t=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=a.map(l=>i.table.nodeAt(l));for(let l=0;l<a.length;l++)s[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+a[l],r.cell,s[l].attrs);if(o.steps.length===0)for(let l=0;l<a.length;l++)o.setNodeMarkup(i.tableStart+a[l],r.header_cell,s[l].attrs);n(o)}return!0}}function u2e(t,e,n){let r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let i=0;i<r.length;i++){let o=e.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function SH(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?HXe(t):function(n,r){if(!ec(n))return!1;if(r){let i=tu(n.schema),o=Nm(n),a=n.tr,s=u2e("row",o,i),l=u2e("column",o,i),c=(t==="column"?s:t==="row"&&l)?1:0,u=t=="column"?{left:0,top:c,right:1,bottom:o.map.height}:t=="row"?{left:c,top:0,right:o.map.width,bottom:1}:o,d=t=="column"?l?i.cell:i.header_cell:t=="row"?s?i.cell:i.header_cell:i.cell;o.map.cellsInRect(u).forEach(p=>{let m=p+o.tableStart,f=a.doc.nodeAt(m);f&&a.setNodeMarkup(m,d,f.attrs)}),r(a)}return!0}}var HZt=SH("row",{useDeprecatedLogic:!0}),GZt=SH("column",{useDeprecatedLogic:!0}),UZt=SH("cell",{useDeprecatedLogic:!0});function GXe(t,e){if(e<0){let n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,i=t.before();r>=0;r--){let o=t.node(-1).child(r),a=o.lastChild;if(a)return i-1-a.nodeSize;i-=o.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;let n=t.node(-1);for(let r=t.indexAfter(-1),i=t.after();r<n.childCount;r++){let o=n.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function LH(t){return function(e,n){if(!ec(e))return!1;let r=GXe(HE(e),t);if(r==null)return!1;if(n){let i=e.doc.resolve(r);n(e.tr.setSelection(Qt.between(i,SXe(i))).scrollIntoView())}return!0}}function A2e(t,e){let n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function DE(t,e){let n=t.selection;if(!(n instanceof Hr))return!1;if(e){let r=t.tr,i=tu(t.schema).cell.createAndFill().content;n.forEachCell((o,a)=>{o.content.eq(i)||r.replace(r.mapping.map(a+1),r.mapping.map(a+o.nodeSize-1),new Je(i,0,0))}),r.docChanged&&e(r)}return!0}function $2e(t){return(e,n)=>{let{from:r,to:i,select:o=!0,pos:a=e.selection.from}=t,s=e.tr;return FXe({tr:s,originIndex:r,targetIndex:i,select:o,pos:a})?(n?.(s),!0):!1}}function I2e(t){return(e,n)=>{let{from:r,to:i,select:o=!0,pos:a=e.selection.from}=t,s=e.tr;return OXe({tr:s,originIndex:r,targetIndex:i,select:o,pos:a})?(n?.(s),!0):!1}}function UXe(t){if(t.size===0)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;let i=e.child(0),o=i.type.spec.tableRole,a=i.type.schema,s=[];if(o=="row")for(let l=0;l<e.childCount;l++){let c=e.child(l).content,u=l?0:Math.max(0,n-1),d=l<e.childCount-1?0:Math.max(0,r-1);(u||d)&&(c=kH(tu(a).row,new Je(c,u,d)).content),s.push(c)}else if(o=="cell"||o=="header_cell")s.push(n||r?kH(tu(a).row,new Je(e,n,r)).content:e);else return null;return VXe(a,s)}function VXe(t,e){let n=[];for(let i=0;i<e.length;i++){let o=e[i];for(let a=o.childCount-1;a>=0;a--){let{rowspan:s,colspan:l}=o.child(a).attrs;for(let c=i;c<i+s;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=e.length&&e.push(De.empty),n[i]<r){let o=tu(t).cell.createAndFill(),a=[];for(let s=n[i];s<r;s++)a.push(o);e[i]=e[i].append(De.from(a))}return{height:e.length,width:r,rows:e}}function kH(t,e){let n=t.createAndFill();return new Ry(n).replace(0,n.content.size,e).doc}function ZXe({width:t,height:e,rows:n},r,i){if(t!=r){let o=[],a=[];for(let s=0;s<n.length;s++){let l=n[s],c=[];for(let u=o[s]||0,d=0;u<r;d++){let p=l.child(d%l.childCount);u+p.attrs.colspan>r&&(p=p.type.createChecked(Vg(p.attrs,p.attrs.colspan,u+p.attrs.colspan-r),p.content)),c.push(p),u+=p.attrs.colspan;for(let m=1;m<p.attrs.rowspan;m++)o[s+m]=(o[s+m]||0)+p.attrs.colspan}a.push(De.from(c))}n=a,t=r}if(e!=i){let o=[];for(let a=0,s=0;a<i;a++,s++){let l=[],c=n[s%e];for(let u=0;u<c.childCount;u++){let d=c.child(u);a+d.attrs.rowspan>i&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}o.push(De.from(l))}n=o,e=i}return{width:t,height:e,rows:n}}function WXe(t,e,n,r,i,o,a){let s=t.doc.type.schema,l=tu(s),c,u;if(i>e.width)for(let d=0,p=0;d<e.height;d++){let m=n.child(d);p+=m.nodeSize;let f=[],h;m.lastChild==null||m.lastChild.type==l.cell?h=c||(c=l.cell.createAndFill()):h=u||(u=l.header_cell.createAndFill());for(let x=e.width;x<i;x++)f.push(h);t.insert(t.mapping.slice(a).map(p-1+r),f)}if(o>e.height){let d=[];for(let f=0,h=(e.height-1)*e.width;f<Math.max(e.width,i);f++){let x=f>=e.width?!1:n.nodeAt(e.map[h+f]).type==l.header_cell;d.push(x?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}let p=l.row.create(null,De.from(d)),m=[];for(let f=e.height;f<o;f++)m.push(p);t.insert(t.mapping.slice(a).map(r+n.nodeSize-2),m)}return!!(c||u)}function d2e(t,e,n,r,i,o,a,s){if(a==0||a==e.height)return!1;let l=!1;for(let c=i;c<o;c++){let u=a*e.width+c,d=e.map[u];if(e.map[u-e.width]==d){l=!0;let p=n.nodeAt(d),{top:m,left:f}=e.findCell(d);t.setNodeMarkup(t.mapping.slice(s).map(d+r),null,{...p.attrs,rowspan:a-m}),t.insert(t.mapping.slice(s).map(e.positionAt(a,f,n)),p.type.createAndFill({...p.attrs,rowspan:m+p.attrs.rowspan-a})),c+=p.attrs.colspan-1}}return l}function p2e(t,e,n,r,i,o,a,s){if(a==0||a==e.width)return!1;let l=!1;for(let c=i;c<o;c++){let u=c*e.width+a,d=e.map[u];if(e.map[u-1]==d){l=!0;let p=n.nodeAt(d),m=e.colCount(d),f=t.mapping.slice(s).map(d+r);t.setNodeMarkup(f,null,Vg(p.attrs,a-m,p.attrs.colspan-(a-m))),t.insert(f+p.nodeSize,p.type.createAndFill(Vg(p.attrs,0,a-m))),c+=p.attrs.rowspan-1}}return l}function m2e(t,e,n,r,i){let o=n?t.doc.nodeAt(n-1):t.doc;if(!o)throw new Error("No table found");let a=cr.get(o),{top:s,left:l}=r,c=l+i.width,u=s+i.height,d=t.tr,p=0;function m(){if(o=n?d.doc.nodeAt(n-1):d.doc,!o)throw new Error("No table found");a=cr.get(o),p=d.mapping.maps.length}WXe(d,a,o,n,c,u,p)&&m(),d2e(d,a,o,n,l,c,s,p)&&m(),d2e(d,a,o,n,l,c,u,p)&&m(),p2e(d,a,o,n,s,u,l,p)&&m(),p2e(d,a,o,n,s,u,c,p)&&m();for(let f=s;f<u;f++){let h=a.positionAt(f,l,o),x=a.positionAt(f,c,o);d.replace(d.mapping.slice(p).map(h+n),d.mapping.slice(p).map(x+n),new Je(i.rows[f-s],0,0))}m(),d.setSelection(new Hr(d.doc.resolve(n+a.positionAt(s,l,o)),d.doc.resolve(n+a.positionAt(u-1,c-1,o)))),e(d)}var KXe=Bz({ArrowLeft:FE("horiz",-1),ArrowRight:FE("horiz",1),ArrowUp:FE("vert",-1),ArrowDown:FE("vert",1),"Shift-ArrowLeft":BE("horiz",-1),"Shift-ArrowRight":BE("horiz",1),"Shift-ArrowUp":BE("vert",-1),"Shift-ArrowDown":BE("vert",1),Backspace:DE,"Mod-Backspace":DE,Delete:DE,"Mod-Delete":DE});function zE(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function FE(t,e){return(n,r,i)=>{if(!i)return!1;let o=n.selection;if(o instanceof Hr)return zE(n,r,Kt.near(o.$headCell,e));if(t!="horiz"&&!o.empty)return!1;let a=N2e(i,t,e);if(a==null)return!1;if(t=="horiz")return zE(n,r,Kt.near(n.doc.resolve(o.head+e),e));{let s=n.doc.resolve(a),l=x2e(s,t,e),c;return l?c=Kt.near(l,1):e<0?c=Kt.near(n.doc.resolve(s.before(-1)),-1):c=Kt.near(n.doc.resolve(s.after(-1)),1),zE(n,r,c)}}}function BE(t,e){return(n,r,i)=>{if(!i)return!1;let o=n.selection,a;if(o instanceof Hr)a=o;else{let l=N2e(i,t,e);if(l==null)return!1;a=new Hr(n.doc.resolve(l))}let s=x2e(a.$headCell,t,e);return s?zE(n,r,new Hr(a.$anchorCell,s)):!1}}function XXe(t,e){let n=t.state.doc,r=i3(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Hr(r))),!0):!1}function YXe(t,e,n){if(!ec(t.state))return!1;let r=UXe(n),i=t.state.selection;if(i instanceof Hr){r||(r={width:1,height:1,rows:[De.from(kH(tu(t.state.schema).cell,n))]});let o=i.$anchorCell.node(-1),a=i.$anchorCell.start(-1),s=cr.get(o).rectBetween(i.$anchorCell.pos-a,i.$headCell.pos-a);return r=ZXe(r,s.right-s.left,s.bottom-s.top),m2e(t.state,t.dispatch,a,s,r),!0}else if(r){let o=HE(t.state),a=o.start(-1);return m2e(t.state,t.dispatch,a,cr.get(o.node(-1)).findCell(o.pos-a),r),!0}else return!1}function QXe(t,e){var n;if(e.button!=0||e.ctrlKey||e.metaKey)return;let r=f2e(t,e.target),i;if(e.shiftKey&&t.state.selection instanceof Hr)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=i3(t.state.selection.$anchor))!=null&&((n=yH(t,e))===null||n===void 0?void 0:n.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,c){let u=yH(t,c),d=dh.getState(t.state)==null;if(!u||!_H(l,u))if(d)u=l;else return;let p=new Hr(l,u);if(d||!t.state.selection.eq(p)){let m=t.state.tr.setSelection(p);d&&m.setMeta(dh,l.pos),t.dispatch(m)}}function a(){t.root.removeEventListener("mouseup",a),t.root.removeEventListener("dragstart",a),t.root.removeEventListener("mousemove",s),dh.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(dh,-1))}function s(l){let c=l,u=dh.getState(t.state),d;if(u!=null)d=t.state.doc.resolve(u);else if(f2e(t,c.target)!=r&&(d=yH(t,e),!d))return a();d&&o(d,c)}t.root.addEventListener("mouseup",a),t.root.addEventListener("dragstart",a),t.root.addEventListener("mousemove",s)}function N2e(t,e,n){if(!(t.state.selection instanceof Qt))return null;let{$head:r}=t.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){let a=r.before(i),s=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(s)?a:null}}return null}function f2e(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function yH(t,e){let n=t.posAtCoords({left:e.clientX,top:e.clientY});if(!n)return null;let{inside:r,pos:i}=n;return r>=0&&i3(t.state.doc.resolve(r))||i3(t.state.doc.resolve(i))}var JXe=class{constructor(t,e){this.node=t,this.defaultCellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${e}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),CH(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!=this.node.type?!1:(this.node=t,CH(t,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(t){return t.type=="attributes"&&(t.target==this.table||this.colgroup.contains(t.target))}};function CH(t,e,n,r,i,o){let a=0,s=!0,l=e.firstChild,c=t.firstChild;if(c){for(let d=0,p=0;d<c.childCount;d++){let{colspan:m,colwidth:f}=c.child(d).attrs;for(let h=0;h<m;h++,p++){let x=i==p?o:f&&f[h],g=x?x+"px":"";if(a+=x||r,x||(s=!1),l)l.style.width!=g&&(l.style.width=g),l=l.nextSibling;else{let y=document.createElement("col");y.style.width=g,e.appendChild(y)}}}for(;l;){var u;let d=l.nextSibling;(u=l.parentNode)===null||u===void 0||u.removeChild(l),l=d}s?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var Jl=new qr("tableColumnResizing");function P2e({handleWidth:t=5,cellMinWidth:e=25,defaultCellMinWidth:n=100,View:r=JXe,lastColumnResizable:i=!0}={}){let o=new Mr({key:Jl,state:{init(a,s){var l;let c=(l=o.spec)===null||l===void 0||(l=l.props)===null||l===void 0?void 0:l.nodeViews,u=tu(s.schema).table.name;return r&&c&&(c[u]=(d,p)=>new r(d,n,p)),new eYe(-1,!1)},apply(a,s){return s.apply(a)}},props:{attributes:a=>{let s=Jl.getState(a);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,s)=>{tYe(a,s,t,i)},mouseleave:a=>{nYe(a)},mousedown:(a,s)=>{rYe(a,s,e,n)}},decorations:a=>{let s=Jl.getState(a);if(s&&s.activeHandle>-1)return lYe(a,s.activeHandle)},nodeViews:{}}});return o}var eYe=class qE{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){let n=this,r=e.getMeta(Jl);if(r&&r.setHandle!=null)return new qE(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new qE(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let i=e.mapping.map(n.activeHandle,-1);return vH(e.doc.resolve(i))||(i=-1),new qE(i,n.dragging)}return n}};function tYe(t,e,n,r){if(!t.editable)return;let i=Jl.getState(t.state);if(i&&!i.dragging){let o=oYe(e.target),a=-1;if(o){let{left:s,right:l}=o.getBoundingClientRect();e.clientX-s<=n?a=h2e(t,e,"left",n):l-e.clientX<=n&&(a=h2e(t,e,"right",n))}if(a!=i.activeHandle){if(!r&&a!==-1){let s=t.state.doc.resolve(a),l=s.node(-1),c=cr.get(l),u=s.start(-1);if(c.colCount(s.pos-u)+s.nodeAfter.attrs.colspan-1==c.width-1)return}j2e(t,a)}}}function nYe(t){if(!t.editable)return;let e=Jl.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&j2e(t,-1)}function rYe(t,e,n,r){var i;if(!t.editable)return!1;let o=(i=t.dom.ownerDocument.defaultView)!==null&&i!==void 0?i:window,a=Jl.getState(t.state);if(!a||a.activeHandle==-1||a.dragging)return!1;let s=t.state.doc.nodeAt(a.activeHandle),l=iYe(t,a.activeHandle,s.attrs);t.dispatch(t.state.tr.setMeta(Jl,{setDragging:{startX:e.clientX,startWidth:l}}));function c(d){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);let p=Jl.getState(t.state);p?.dragging&&(aYe(t,p.activeHandle,g2e(p.dragging,d,n)),t.dispatch(t.state.tr.setMeta(Jl,{setDragging:null})))}function u(d){if(!d.which)return c(d);let p=Jl.getState(t.state);if(p&&p.dragging){let m=g2e(p.dragging,d,n);b2e(t,p.activeHandle,m,r)}}return b2e(t,a.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),e.preventDefault(),!0}function iYe(t,e,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=t.domAtPos(e),a=o.node.childNodes[o.offset].offsetWidth,s=n;if(r)for(let l=0;l<n;l++)r[l]&&(a-=r[l],s--);return a/s}function oYe(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function h2e(t,e,n,r){let i=n=="right"?-r:r,o=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!o)return-1;let{pos:a}=o,s=i3(t.state.doc.resolve(a));if(!s)return-1;if(n=="right")return s.pos;let l=cr.get(s.node(-1)),c=s.start(-1),u=l.map.indexOf(s.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function g2e(t,e,n){let r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function j2e(t,e){t.dispatch(t.state.tr.setMeta(Jl,{setHandle:e}))}function aYe(t,e,n){let r=t.state.doc.resolve(e),i=r.node(-1),o=cr.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=t.state.tr;for(let c=0;c<o.height;c++){let u=c*o.width+s;if(c&&o.map[u]==o.map[u-o.width])continue;let d=o.map[u],p=i.nodeAt(d).attrs,m=p.colspan==1?0:s-o.colCount(d);if(p.colwidth&&p.colwidth[m]==n)continue;let f=p.colwidth?p.colwidth.slice():sYe(p.colspan);f[m]=n,l.setNodeMarkup(a+d,null,{...p,colwidth:f})}l.docChanged&&t.dispatch(l)}function b2e(t,e,n,r){let i=t.state.doc.resolve(e),o=i.node(-1),a=i.start(-1),s=cr.get(o).colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1,l=t.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&CH(o,l.firstChild,l,r,s,n)}function sYe(t){return Array(t).fill(0)}function lYe(t,e){let n=[],r=t.doc.resolve(e),i=r.node(-1);if(!i)return Gi.empty;let o=cr.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1;for(let c=0;c<o.height;c++){let u=s+c*o.width;if((s==o.width-1||o.map[u]!=o.map[u+1])&&(c==0||o.map[u]!=o.map[u-o.width])){var l;let d=o.map[u],p=a+d+i.nodeAt(d).nodeSize-1,m=document.createElement("div");m.className="column-resize-handle",!((l=Jl.getState(t))===null||l===void 0)&&l.dragging&&n.push(na.node(a+d,a+d+i.nodeAt(d).nodeSize,{class:"column-resize-dragging"})),n.push(na.widget(p,m))}}return Gi.create(t.doc,n)}function O2e({allowTableNodeSelection:t=!1}={}){return new Mr({key:dh,state:{init(){return null},apply(e,n){let r=e.getMeta(dh);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;let{deleted:i,pos:o}=e.mapping.mapResult(n);return i?null:o}},props:{decorations:TXe,handleDOMEvents:{mousedown:QXe},createSelectionBetween(e){return dh.getState(e.state)!=null?e.state.selection:null},handleTripleClick:XXe,handleKeyDown:KXe,handlePaste:YXe},appendTransaction(e,n,r){return $Xe(r,NXe(r,n),t)}})}var GE=typeof navigator<"u"?navigator:null,EH=GE&&GE.userAgent||"",cYe=/Edge\/(\d+)/.exec(EH),uYe=/MSIE \d/.exec(EH),dYe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(EH),pYe=!!(uYe||dYe||cYe),mYe=!pYe&&!!GE&&/Apple Computer/.test(GE.vendor),D2e=new qr("safari-ime-span"),MH=!1,fYe={key:D2e,props:{decorations:hYe,handleDOMEvents:{compositionstart:()=>{MH=!0},compositionend:()=>{MH=!1}}}};function hYe(t){let{$from:e,$to:n,to:r}=t.selection;if(MH&&e.sameParent(n)){let i=na.widget(r,gYe,{ignoreSelection:!0,key:"safari-ime-span"});return Gi.create(t.doc,[i])}}function gYe(t){let e=t.dom.ownerDocument.createElement("span");return e.className="ProseMirror-safari-ime-span",e}var F2e=new Mr(mYe?fYe:{key:D2e});function TH(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function RH(t,e,n){let i=X1((n||{}).ignore||[]),o=bYe(e),a=-1;for(;++a<o.length;)yg(t,"text",s);function s(c,u){let d=-1,p;for(;++d<u.length;){let m=u[d],f=p?p.children:void 0;if(i(m,f?f.indexOf(m):void 0,p))return;p=m}if(p)return l(c,u)}function l(c,u){let d=u[u.length-1],p=o[a][0],m=o[a][1],f=0,x=d.children.indexOf(c),g=!1,y=[];p.lastIndex=0;let b=p.exec(c.value);for(;b;){let w=b.index,v={index:b.index,input:b.input,stack:[...u,c]},k=m(...b,v);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?p.lastIndex=w+1:(f!==w&&y.push({type:"text",value:c.value.slice(f,w)}),Array.isArray(k)?y.push(...k):k&&y.push(k),f=w+b[0].length,g=!0),!p.global)break;b=p.exec(c.value)}return g?(f<c.value.length&&y.push({type:"text",value:c.value.slice(f)}),d.children.splice(x,1,...y)):y=[c],x+y.length}}function bYe(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let n=!t[0]||Array.isArray(t[0])?t:[t],r=-1;for(;++r<n.length;){let i=n[r];e.push([yYe(i[0]),xYe(i[1])])}return e}function yYe(t){return typeof t=="string"?new RegExp(TH(t),"g"):t}function xYe(t){return typeof t=="function"?t:function(){return t}}var AH="phrasing",$H=["autolink","link","image","label"];function NH(){return{transforms:[SYe],enter:{literalAutolink:wYe,literalAutolinkEmail:IH,literalAutolinkHttp:IH,literalAutolinkWww:IH},exit:{literalAutolink:_Ye,literalAutolinkEmail:CYe,literalAutolinkHttp:vYe,literalAutolinkWww:kYe}}}function PH(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:AH,notInConstruct:$H},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:AH,notInConstruct:$H},{character:":",before:"[ps]",after:"\\/",inConstruct:AH,notInConstruct:$H}]}}function wYe(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function IH(t){this.config.enter.autolinkProtocol.call(this,t)}function vYe(t){this.config.exit.autolinkProtocol.call(this,t)}function kYe(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function CYe(t){this.config.exit.autolinkEmail.call(this,t)}function _Ye(t){this.exit(t)}function SYe(t){RH(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,LYe],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,MYe]],{ignore:["link","linkReference"]})}function LYe(t,e,n,r,i){let o="";if(!B2e(i)||(/^w/i.test(e)&&(n=e+n,e="",o="http://"),!EYe(n)))return!1;let a=TYe(n+r);if(!a[0])return!1;let s={type:"link",title:null,url:o+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function MYe(t,e,n,r){return!B2e(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function EYe(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function TYe(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")"),i=Ob(t,"("),o=Ob(t,")");for(;r!==-1&&i>o;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[t,n]}function B2e(t,e){let n=t.input.charCodeAt(t.index-1);return(t.index===0||Od(n)||mg(n))&&(!e||n!==47)}z2e.peek=DYe;function RYe(){this.buffer()}function AYe(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function $Ye(){this.buffer()}function IYe(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function NYe(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(t)).toLowerCase(),n.label=e}function PYe(t){this.exit(t)}function jYe(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(t)).toLowerCase(),n.label=e}function OYe(t){this.exit(t)}function DYe(){return"["}function z2e(t,e,n,r){let i=n.createTracker(r),o=i.move("[^"),a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(t),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function jH(){return{enter:{gfmFootnoteCallString:RYe,gfmFootnoteCall:AYe,gfmFootnoteDefinitionLabelString:$Ye,gfmFootnoteDefinition:IYe},exit:{gfmFootnoteCallString:NYe,gfmFootnoteCall:PYe,gfmFootnoteDefinitionLabelString:jYe,gfmFootnoteDefinition:OYe}}}function OH(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:z2e},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){let s=o.createTracker(a),l=s.move("[^"),c=o.enter("footnoteDefinition"),u=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),u(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((e?` -`:" ")+o.indentLines(o.containerFlow(r,s.current()),e?q2e:FYe))),c(),l}}function FYe(t,e,n){return e===0?t:q2e(t,e,n)}function q2e(t,e,n){return(n?"":" ")+t}var BYe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];H2e.peek=HYe;function DH(){return{canContainEols:["delete"],enter:{strikethrough:zYe},exit:{strikethrough:qYe}}}function FH(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:BYe}],handlers:{delete:H2e}}}function zYe(t){this.enter({type:"delete",children:[]},t)}function qYe(t){this.exit(t)}function H2e(t,e,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(t,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function HYe(){return"~"}function GYe(t){return t.length}function U2e(t,e){let n=e||{},r=(n.align||[]).concat(),i=n.stringLength||GYe,o=[],a=[],s=[],l=[],c=0,u=-1;for(;++u<t.length;){let h=[],x=[],g=-1;for(t[u].length>c&&(c=t[u].length);++g<t[u].length;){let y=UYe(t[u][g]);if(n.alignDelimiters!==!1){let b=i(y);x[g]=b,(l[g]===void 0||b>l[g])&&(l[g]=b)}h.push(y)}a[u]=h,s[u]=x}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=G2e(r[d]);else{let h=G2e(r);for(;++d<c;)o[d]=h}d=-1;let p=[],m=[];for(;++d<c;){let h=o[d],x="",g="";h===99?(x=":",g=":"):h===108?x=":":h===114&&(g=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[d]-x.length-g.length),b=x+"-".repeat(y)+g;n.alignDelimiters!==!1&&(y=x.length+y+g.length,y>l[d]&&(l[d]=y),m[d]=y),p[d]=b}a.splice(1,0,p),s.splice(1,0,m),u=-1;let f=[];for(;++u<a.length;){let h=a[u],x=s[u];d=-1;let g=[];for(;++d<c;){let y=h[d]||"",b="",w="";if(n.alignDelimiters!==!1){let v=l[d]-(x[d]||0),k=o[d];k===114?b=" ".repeat(v):k===99?v%2?(b=" ".repeat(v/2+.5),w=" ".repeat(v/2-.5)):(b=" ".repeat(v/2),w=b):w=" ".repeat(v)}n.delimiterStart!==!1&&!d&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||d)&&g.push(" "),n.alignDelimiters!==!1&&g.push(b),g.push(y),n.alignDelimiters!==!1&&g.push(w),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&g.push("|")}f.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return f.join(` -`)}function UYe(t){return t==null?"":String(t)}function G2e(t){let e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function zH(){return{enter:{table:VYe,tableData:V2e,tableHeader:V2e,tableRow:WYe},exit:{codeText:KYe,table:ZYe,tableData:BH,tableHeader:BH,tableRow:BH}}}function VYe(t){let e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function ZYe(t){this.exit(t),this.data.inTable=void 0}function WYe(t){this.enter({type:"tableRow",children:[]},t)}function BH(t){this.exit(t)}function V2e(t){this.enter({type:"tableCell",children:[]},t)}function KYe(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,XYe));let n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function XYe(t,e){return e==="|"?e:t}function qH(t){let e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`):e.addNode("break")}}}));Te(Ug.node,{displayName:"NodeSchema<hardbreak>",group:"Hardbreak"});Te(Ug.ctx,{displayName:"NodeSchemaCtx<hardbreak>",group:"Hardbreak"});var Kq=tn("InsertHardbreak",t=>()=>(e,n)=>{let{selection:r,tr:i}=e;if(!(r instanceof Qt))return!1;if(r.empty){let o=r.$from.node();if(o.childCount>0&&o.lastChild?.type.name==="hardbreak")return n?.(i.replaceRangeWith(r.to-1,r.to,e.schema.node("paragraph")).setSelection(Kt.near(i.doc.resolve(r.to))).scrollIntoView()),!0}return n?.(i.setMeta("hardbreak",!0).replaceSelectionWith(Ug.type(t).create()).scrollIntoView()),!0});Te(Kq,{displayName:"Command<insertHardbreakCommand>",group:"Hardbreak"});var Xq=ra("hardbreakKeymap",{InsertHardbreak:{shortcuts:"Shift-Enter",command:t=>{let e=t.get(Zn);return()=>e.call(Kq.key)}}});Te(Xq.ctx,{displayName:"KeymapCtx<hardbreak>",group:"Hardbreak"});Te(Xq.shortcuts,{displayName:"Keymap<hardbreak>",group:"Hardbreak"});var Yq=eu("hr");Te(Yq,{displayName:"Attr<hr>",group:"Hr"});var m8=Ui("hr",t=>({group:"block",parseDOM:[{tag:"hr"}],toDOM:e=>["hr",t.get(Yq.key)(e)],parseMarkdown:{match:({type:e})=>e==="thematicBreak",runner:(e,n,r)=>{e.addNode(r)}},toMarkdown:{match:e=>e.type.name==="hr",runner:e=>{e.addNode("thematicBreak")}}}));Te(m8.node,{displayName:"NodeSchema<hr>",group:"Hr"});Te(m8.ctx,{displayName:"NodeSchemaCtx<hr>",group:"Hr"});var Wbe=za(t=>new Io(/^(?:---|___\s|\*\*\*\s)$/,(e,n,r,i)=>{let{tr:o}=e;return n[0]&&o.replaceWith(r-1,i,m8.type(t).create()),o}));Te(Wbe,{displayName:"InputRule<insertHrInputRule>",group:"Hr"});var Kbe=tn("InsertHr",t=>()=>(e,n)=>{if(!n)return!0;let r=Bu.node.type(t).create(),{tr:i,selection:o}=e,{from:a}=o,s=m8.type(t).create();if(!s)return!0;let l=i.replaceSelectionWith(s).insert(a,r),c=Kt.findFrom(l.doc.resolve(a),1,!0);return c&&n(l.setSelection(c).scrollIntoView()),!0});Te(Kbe,{displayName:"Command<insertHrCommand>",group:"Hr"});var Qq=eu("bulletList");Te(Qq,{displayName:"Attr<bulletList>",group:"BulletList"});var t3=Ui("bullet_list",t=>({content:"listItem+",group:"block",attrs:{spread:{default:!1,validate:"boolean"}},parseDOM:[{tag:"ul",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{spread:e.dataset.spread==="true"}}}],toDOM:e=>["ul",{...t.get(Qq.key)(e),"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:n})=>e==="list"&&!n,runner:(e,n,r)=>{let i=n.spread??!1;e.openNode(r,{spread:i}).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="bullet_list",runner:(e,n)=>{e.openNode("list",void 0,{ordered:!1,spread:n.attrs.spread}).next(n.content).closeNode()}}}));Te(t3.node,{displayName:"NodeSchema<bulletList>",group:"BulletList"});Te(t3.ctx,{displayName:"NodeSchemaCtx<bulletList>",group:"BulletList"});var Xbe=za(t=>aE(/^\s*([-+*])\s$/,t3.type(t)));Te(Xbe,{displayName:"InputRule<wrapInBulletListInputRule>",group:"BulletList"});var Jq=tn("WrapInBulletList",t=>()=>iE(t3.type(t)));Te(Jq,{displayName:"Command<wrapInBulletListCommand>",group:"BulletList"});var eH=ra("bulletListKeymap",{WrapInBulletList:{shortcuts:"Mod-Alt-8",command:t=>{let e=t.get(Zn);return()=>e.call(Jq.key)}}});Te(eH.ctx,{displayName:"KeymapCtx<bulletListKeymap>",group:"BulletList"});Te(eH.shortcuts,{displayName:"Keymap<bulletListKeymap>",group:"BulletList"});var tH=eu("orderedList");Te(tH,{displayName:"Attr<orderedList>",group:"OrderedList"});var n3=Ui("ordered_list",t=>({content:"listItem+",group:"block",attrs:{order:{default:1,validate:"number"},spread:{default:!1,validate:"boolean"}},parseDOM:[{tag:"ol",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{spread:e.dataset.spread==="true",order:e.hasAttribute("start")?Number(e.getAttribute("start")):1}}}],toDOM:e=>["ol",{...t.get(tH.key)(e),...e.attrs.order===1?{}:{start:e.attrs.order},"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e,ordered:n})=>e==="list"&&!!n,runner:(e,n,r)=>{let i=n.spread??!0;e.openNode(r,{spread:i,order:n.start??1}).next(n.children).closeNode()}},toMarkdown:{match:e=>e.type.name==="ordered_list",runner:(e,n)=>{e.openNode("list",void 0,{ordered:!0,start:n.attrs.order??1,spread:n.attrs.spread}),e.next(n.content),e.closeNode()}}}));Te(n3.node,{displayName:"NodeSchema<orderedList>",group:"OrderedList"});Te(n3.ctx,{displayName:"NodeSchemaCtx<orderedList>",group:"OrderedList"});var Ybe=za(t=>aE(/^\s*(\d+)\.\s$/,n3.type(t),e=>({order:Number(e[1])}),(e,n)=>n.childCount+n.attrs.order===Number(e[1])));Te(Ybe,{displayName:"InputRule<wrapInOrderedListInputRule>",group:"OrderedList"});var nH=tn("WrapInOrderedList",t=>()=>iE(n3.type(t)));Te(nH,{displayName:"Command<wrapInOrderedListCommand>",group:"OrderedList"});var rH=ra("orderedListKeymap",{WrapInOrderedList:{shortcuts:"Mod-Alt-7",command:t=>{let e=t.get(Zn);return()=>e.call(nH.key)}}});Te(rH.ctx,{displayName:"KeymapCtx<orderedList>",group:"OrderedList"});Te(rH.shortcuts,{displayName:"Keymap<orderedList>",group:"OrderedList"});var iH=eu("listItem");Te(iH,{displayName:"Attr<listItem>",group:"ListItem"});var Hd=Ui("list_item",t=>({group:"listItem",content:"paragraph block*",attrs:{label:{default:"\u2022",validate:"string"},listType:{default:"bullet",validate:"string"},spread:{default:!0,validate:"boolean"}},defining:!0,parseDOM:[{tag:"li",getAttrs:e=>{if(!(e instanceof HTMLElement))throw Wl(e);return{label:e.dataset.label,listType:e.dataset.listType,spread:e.dataset.spread==="true"}}}],toDOM:e=>["li",{...t.get(iH.key)(e),"data-label":e.attrs.label,"data-list-type":e.attrs.listType,"data-spread":e.attrs.spread},0],parseMarkdown:{match:({type:e})=>e==="listItem",runner:(e,n,r)=>{let i=n.label!=null?`${n.label}.`:"\u2022",o=n.label!=null?"ordered":"bullet",a=n.spread??!0;e.openNode(r,{label:i,listType:o,spread:a}),e.next(n.children),e.closeNode()}},toMarkdown:{match:e=>e.type.name==="list_item",runner:(e,n)=>{e.openNode("listItem",void 0,{spread:n.attrs.spread}),e.next(n.content),e.closeNode()}}}));Te(Hd.node,{displayName:"NodeSchema<listItem>",group:"ListItem"});Te(Hd.ctx,{displayName:"NodeSchemaCtx<listItem>",group:"ListItem"});var oH=tn("SinkListItem",t=>()=>Rbe(Hd.type(t)));Te(oH,{displayName:"Command<sinkListItemCommand>",group:"ListItem"});var aH=tn("LiftListItem",t=>()=>Tbe(Hd.type(t)));Te(aH,{displayName:"Command<liftListItemCommand>",group:"ListItem"});var sH=tn("SplitListItem",t=>()=>PE(Hd.type(t)));Te(sH,{displayName:"Command<splitListItemCommand>",group:"ListItem"});function oXe(t){return(e,n,r)=>{let{selection:i}=e;if(!(i instanceof Qt))return!1;let{empty:o,$from:a}=i;return!o||a.parentOffset!==0||a.node(-1).type!==Hd.type(t)?!1:Ez(e,n,r)}}var lH=tn("LiftFirstListItem",t=>()=>oXe(t));Te(lH,{displayName:"Command<liftFirstListItemCommand>",group:"ListItem"});var cH=ra("listItemKeymap",{NextListItem:{shortcuts:"Enter",command:t=>{let e=t.get(Zn);return()=>e.call(sH.key)}},SinkListItem:{shortcuts:["Tab","Mod-]"],command:t=>{let e=t.get(Zn);return()=>e.call(oH.key)}},LiftListItem:{shortcuts:["Shift-Tab","Mod-["],command:t=>{let e=t.get(Zn);return()=>e.call(aH.key)}},LiftFirstListItem:{shortcuts:["Backspace","Delete"],command:t=>{let e=t.get(Zn);return()=>e.call(lH.key)}}});Te(cH.ctx,{displayName:"KeymapCtx<listItem>",group:"ListItem"});Te(cH.shortcuts,{displayName:"Keymap<listItem>",group:"ListItem"});var Qbe=NE("text",()=>({group:"inline",parseMarkdown:{match:({type:t})=>t==="text",runner:(t,e)=>{t.addText(e.value)}},toMarkdown:{match:t=>t.type.name==="text",runner:(t,e)=>{t.addNode("text",void 0,e.text)}}}));Te(Qbe,{displayName:"NodeSchema<text>",group:"Text"});var uH=eu("html");Te(uH,{displayName:"Attr<html>",group:"Html"});var dH=Ui("html",t=>({atom:!0,group:"inline",inline:!0,attrs:{value:{default:"",validate:"string"}},toDOM:e=>{let n=document.createElement("span"),r={...t.get(uH.key)(e),"data-value":e.attrs.value,"data-type":"html"};return n.textContent=e.attrs.value,["span",r,e.attrs.value]},parseDOM:[{tag:'span[data-type="html"]',getAttrs:e=>({value:e.dataset.value??""})}],parseMarkdown:{match:({type:e})=>e==="html",runner:(e,n,r)=>{e.addNode(r,{value:n.value})}},toMarkdown:{match:e=>e.type.name==="html",runner:(e,n)=>{e.addNode("html",void 0,n.attrs.value)}}}));Te(dH.node,{displayName:"NodeSchema<html>",group:"Html"});Te(dH.ctx,{displayName:"NodeSchemaCtx<html>",group:"Html"});var aXe=[Bbe,jq,Bu,BE,Fq,Vg,DE,Ug,qq,d8,Uq,p8,Yq,m8,Wq,e3,Qq,t3,tH,n3,iH,Hd,Lq,Jy,Tq,u8,$q,ph,Pq,Qy,uH,dH,Qbe].flat(),sXe=[Gbe,Xbe,Ybe,Ube,Wbe,Hbe].flat(),lXe=[Nbe,Pbe,Obe,jbe],cXe=tn("IsMarkSelected",()=>t=>e=>{if(!t)return!1;let{doc:n,selection:r}=e;return n.rangeHasMark(r.from,r.to,t)}),uXe=tn("IsNoteSelected",()=>t=>e=>t?qge(e,t).hasNode:!1),dXe=tn("ClearTextInCurrentBlock",()=>()=>(t,e)=>{let n=t.tr,{$from:r,$to:i}=n.selection,{pos:o}=r,{pos:a}=i,s=o-r.node().content.size;return s<0?!1:(n=n.deleteRange(s,a),e?.(n),!0)}),pXe=tn("SetBlockType",()=>t=>(e,n)=>{let{nodeType:r,attrs:i=null}=t??{};if(!r)return!1;let o=e.tr,{from:a,to:s}=o.selection;try{o.setBlockType(a,s,r,i)}catch{return!1}return n?.(o),!0}),mXe=tn("WrapInBlockType",()=>t=>(e,n)=>{let{nodeType:r,attrs:i=null}=t??{};if(!r)return!1;let o=e.tr;try{let{$from:a,$to:s}=o.selection,l=a.blockRange(s),c=l&&Eg(l,r,i);if(!c)return!1;o=o.wrap(l,c)}catch{return!1}return n?.(o),!0}),fXe=tn("AddBlockType",()=>t=>(e,n)=>{let{nodeType:r,attrs:i=null}=t??{};if(!r)return!1;let o=e.tr;try{let a=r instanceof il?r:r.createAndFill(i);if(!a)return!1;o.replaceSelectionWith(a)}catch{return!1}return n?.(o),!0}),hXe=tn("SelectTextNearPos",()=>t=>(e,n)=>{let{pos:r}=t??{};if(r==null)return!1;let i=(a,s,l)=>Math.min(Math.max(a,s),l),o=e.tr;try{let a=e.doc.resolve(i(r,0,e.doc.content.size));o.setSelection(Qt.near(a))}catch{return!1}return n?.(o.scrollIntoView()),!0}),gXe=[Oq,Hq,dh,Bq,Vq,Kq,Kbe,Vbe,Zbe,nH,Jq,oH,sH,aH,lH,Mq,Iq,Rq,Dbe,Fbe,cXe,uXe,dXe,pXe,mXe,fXe,hXe],bXe=[Gq,Zq,Xq,zq,cH,rH,eH,Dq,Eq,Nq,Aq].flat(),pH=Im("remarkAddOrderInList",()=>()=>t=>{Du(t,"list",e=>{if(e.ordered){let n=e.start??1;e.children.forEach((r,i)=>{r.label=i+n})}})});Te(pH.plugin,{displayName:"Remark<remarkAddOrderInListPlugin>",group:"Remark"});Te(pH.options,{displayName:"RemarkConfig<remarkAddOrderInListPlugin>",group:"Remark"});var mH=Im("remarkLineBreak",()=>()=>t=>{let e=/[\t ]*(?:\r?\n|\r)/g;Du(t,"text",(n,r,i)=>{if(!n.value||typeof n.value!="string")return;let o=[],a=0;e.lastIndex=0;let s=e.exec(n.value);for(;s;){let l=s.index;a!==l&&o.push({type:"text",value:n.value.slice(a,l)}),o.push({type:"break",data:{isInline:!0}}),a=l+s[0].length,s=e.exec(n.value)}if(o.length>0&&i&&typeof r=="number")return a<n.value.length&&o.push({type:"text",value:n.value.slice(a)}),i.children.splice(r,1,...o),r+o.length})});Te(mH.plugin,{displayName:"Remark<remarkLineBreak>",group:"Remark"});Te(mH.options,{displayName:"RemarkConfig<remarkLineBreak>",group:"Remark"});var fH=Im("remarkInlineLink",()=>jE);Te(fH.plugin,{displayName:"Remark<remarkInlineLinkPlugin>",group:"Remark"});Te(fH.options,{displayName:"RemarkConfig<remarkInlineLinkPlugin>",group:"Remark"});var yXe=t=>!!t.children,xXe=t=>t.type==="html";function wXe(t,e){return n(t,0,null)[0];function n(r,i,o){if(yXe(r)){let a=[];for(let s=0,l=r.children.length;s<l;s++){let c=r.children[s];if(c){let u=n(c,s,r);if(u)for(let d=0,p=u.length;d<p;d++){let m=u[d];m&&a.push(m)}}}r.children=a}return e(r,i,o)}}var hH=Im("remarkHTMLTransformer",t=>()=>e=>{let n=qbe(t);wXe(e,(r,i,o)=>xXe(r)?(o&&n.has(o.type)&&(r.children=[HKe(r)],delete r.value,r.type="paragraph"),[r]):[r])});Te(hH.plugin,{displayName:"Remark<remarkHtmlTransformer>",group:"Remark"});Te(hH.options,{displayName:"RemarkConfig<remarkHtmlTransformer>",group:"Remark"});var gH=Im("remarkMarker",()=>()=>(t,e)=>{let n=r=>e.value.charAt(r.position.start.offset);Du(t,r=>["strong","emphasis"].includes(r.type),r=>{r.marker=n(r)})});Te(gH.plugin,{displayName:"Remark<remarkMarker>",group:"Remark"});Te(gH.options,{displayName:"RemarkConfig<remarkMarker>",group:"Remark"});var Jbe=ko(()=>{let t=!1,e=new qr("MILKDOWN_INLINE_NODES_CURSOR"),n=new Mr({key:e,state:{init(){return!1},apply(r){if(!r.selection.empty)return!1;let i=r.selection.$from,o=i.nodeBefore,a=i.nodeAfter;return!!(o&&a&&o.isInline&&!o.isText&&a.isInline&&!a.isText)}},props:{handleDOMEvents:{compositionend:(r,i)=>t?(t=!1,requestAnimationFrame(()=>{if(n.getState(r.state)){let o=r.state.selection.from;i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",o))}}),!0):!1,compositionstart:r=>(n.getState(r.state)&&(t=!0),!1),beforeinput:(r,i)=>{if(n.getState(r.state)&&i instanceof InputEvent&&i.data&&!t){let o=r.state.selection.from;return i.preventDefault(),r.dispatch(r.state.tr.insertText(i.data||"",o)),!0}return!1}},decorations(r){if(n.getState(r)){let i=r.selection.$from.pos,o=document.createElement("span"),a=na.widget(i,o,{side:-1}),s=document.createElement("span"),l=na.widget(i,s);return setTimeout(()=>{o.contentEditable="true",s.contentEditable="true"}),Gi.create(r.doc,[a,l])}return Gi.empty}}});return n});Te(Jbe,{displayName:"Prose<inlineNodesCursorPlugin>",group:"Prose"});var e2e=ko(t=>new Mr({key:new qr("MILKDOWN_HARDBREAK_MARKS"),appendTransaction:(e,n,r)=>{if(!e.length)return;let[i]=e;if(!i)return;let[o]=i.steps;if(i.getMeta("hardbreak")){if(!(o instanceof Qo))return;let{from:a}=o;return r.tr.setNodeMarkup(a,Ug.type(t),void 0,[])}if(o instanceof Lg){let a=r.tr,{from:s,to:l}=o;return r.doc.nodesBetween(s,l,(c,u)=>{c.type===Ug.type(t)&&(a=a.setNodeMarkup(u,Ug.type(t),void 0,[]))}),a}}}));Te(e2e,{displayName:"Prose<hardbreakClearMarkPlugin>",group:"Prose"});var bH=Jc(["table","code_block"],"hardbreakFilterNodes");Te(bH,{displayName:"Ctx<hardbreakFilterNodes>",group:"Prose"});var t2e=ko(t=>{let e=t.get(bH.key);return new Mr({key:new qr("MILKDOWN_HARDBREAK_FILTER"),filterTransaction:(n,r)=>{let i=n.getMeta("hardbreak"),[o]=n.steps;if(i&&o){let{from:a}=o,s=r.doc.resolve(a),l=s.depth,c=!0;for(;l>0;)e.includes(s.node(l).type.name)&&(c=!1),l--;return c}return!0}})});Te(t2e,{displayName:"Prose<hardbreakFilterPlugin>",group:"Prose"});var n2e=ko(t=>{let e=new qr("MILKDOWN_HEADING_ID"),n=r=>{if(r.composing)return;let i=t.get(BE.key),o=r.state.tr.setMeta("addToHistory",!1),a=!1,s={};r.state.doc.descendants((l,c)=>{if(l.type===Vg.type(t)){if(l.textContent.trim().length===0)return;let u=l.attrs,d=i(l);s[d]?(s[d]+=1,d+=`-#${s[d]}`):s[d]=1,u.id!==d&&(a=!0,o.setMeta(e,!0).setNodeMarkup(c,void 0,{...u,id:d}))}}),a&&r.dispatch(o)};return new Mr({key:e,view:r=>(n(r),{update:(i,o)=>{i.state.doc.eq(o.doc)||n(i)}})})});Te(n2e,{displayName:"Prose<syncHeadingIdPlugin>",group:"Prose"});var r2e=ko(t=>{let e=(n,r,i)=>{if(!i.selection||n.some(d=>d.getMeta("addToHistory")===!1||!d.isGeneric))return null;let o=n3.type(t),a=t3.type(t),s=Hd.type(t),l=(d,p,m=1)=>{let f=!1,h=`${p+m}.`;return d.label!==h&&(d.label=h,f=!0),f},c=i.tr,u=!1;return i.doc.descendants((d,p,m,f)=>{if(d.type===a){let h=d.maybeChild(0);h?.type===s&&h.attrs.listType==="ordered"&&(u=!0,c.setNodeMarkup(p,o,{spread:!0}),d.descendants((x,g,y,b)=>{if(x.type===s){let w={...x.attrs};l(w,b)&&(c=c.setNodeMarkup(g,void 0,w))}return!1}))}else if(d.type===s&&m?.type===o){let h={...d.attrs},x=!1;h.listType!=="ordered"&&(h.listType="ordered",x=!0),m?.maybeChild(0)&&(x=l(h,f,m?.attrs.order??1)),x&&(c=c.setNodeMarkup(p,void 0,h),u=!0)}}),u?c.setMeta("addToHistory",!1):null};return new Mr({key:new qr("MILKDOWN_KEEP_LIST_ORDER"),appendTransaction:e})});Te(r2e,{displayName:"Prose<syncListOrderPlugin>",group:"Prose"});var vXe=[e2e,bH,t2e,Jbe,OE,pH,fH,mH,hH,gH,FE,n2e,r2e].flat(),i2e=[aXe,sXe,lXe,gXe,bXe,vXe].flat();var xH,wH;if(typeof WeakMap<"u"){let t=new WeakMap;xH=e=>t.get(e),wH=(e,n)=>(t.set(e,n),n)}else{let t=[],n=0;xH=r=>{for(let i=0;i<t.length;i+=2)if(t[i]==r)return t[i+1]},wH=(r,i)=>(n==10&&(n=0),t[n++]=r,t[n++]=i)}var cr=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){let n=this.map[e];if(n!=t)continue;let r=e%this.width,i=e/this.width|0,o=r+1,a=i+1;for(let s=1;o<this.width&&this.map[e+s]==n;s++)o++;for(let s=1;a<this.height&&this.map[e+this.width*s]==n;s++)a++;return{left:r,top:i,right:o,bottom:a}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){let{left:r,right:i,top:o,bottom:a}=this.findCell(t);return e=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:a==this.height)?null:this.map[r+this.width*(n<0?o-1:a)]}rectBetween(t,e){let{left:n,right:r,top:i,bottom:o}=this.findCell(t),{left:a,right:s,top:l,bottom:c}=this.findCell(e);return{left:Math.min(n,a),top:Math.min(i,l),right:Math.max(r,s),bottom:Math.max(o,c)}}cellsInRect(t){let e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let i=t.left;i<t.right;i++){let o=r*this.width+i,a=this.map[o];n[a]||(n[a]=!0,!(i==t.left&&i&&this.map[o-1]==a||r==t.top&&r&&this.map[o-this.width]==a)&&e.push(a))}return e}positionAt(t,e,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==t){let a=e+t*this.width,s=(t+1)*this.width;for(;a<s&&this.map[a]<i;)a++;return a==s?o-1:this.map[a]}i=o}}static get(t){return xH(t)||wH(t,kXe(t))}};function kXe(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);let e=CXe(t),n=t.childCount,r=[],i=0,o=null,a=[];for(let c=0,u=e*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){let d=t.child(c);u++;for(let f=0;;f++){for(;i<r.length&&r[i]!=0;)i++;if(f==d.childCount)break;let h=d.child(f),{colspan:x,rowspan:g,colwidth:y}=h.attrs;for(let b=0;b<g;b++){if(b+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:g-b});break}let w=i+b*e;for(let v=0;v<x;v++){r[w+v]==0?r[w+v]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:x-v});let k=y&&y[v];if(k){let _=(w+v)%e*2,L=a[_];L==null||L!=k&&a[_+1]==1?(a[_]=k,a[_+1]=1):L==k&&a[_+1]++}}}i+=x,u+=h.nodeSize}let p=(c+1)*e,m=0;for(;i<p;)r[i++]==0&&m++;m&&(o||(o=[])).push({type:"missing",row:c,n:m}),u++}(e===0||n===0)&&(o||(o=[])).push({type:"zero_sized"});let s=new cr(e,n,r,o),l=!1;for(let c=0;!l&&c<a.length;c+=2)a[c]!=null&&a[c+1]<n&&(l=!0);return l&&_Xe(s,a,t),s}function CXe(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){let i=t.child(r),o=0;if(n)for(let a=0;a<r;a++){let s=t.child(a);for(let l=0;l<s.childCount;l++){let c=s.child(l);a+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let a=0;a<i.childCount;a++){let s=i.child(a);o+=s.attrs.colspan,s.attrs.rowspan>1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function _Xe(t,e,n){t.problems||(t.problems=[]);let r={};for(let i=0;i<t.map.length;i++){let o=t.map[i];if(r[o])continue;r[o]=!0;let a=n.nodeAt(o);if(!a)throw new RangeError(`No cell with offset ${o} found`);let s=null,l=a.attrs;for(let c=0;c<l.colspan;c++){let u=e[(i+c)%t.width*2];u!=null&&(!l.colwidth||l.colwidth[c]!=u)&&((s||(s=SXe(l)))[c]=u)}s&&t.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:s})}}function SXe(t){if(t.colwidth)return t.colwidth.slice();let e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function o2e(t,e){if(typeof t=="string")return{};let n=t.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(a=>Number(a)):null,i=Number(t.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(t.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(let a in e){let s=e[a].getFromDOM,l=s&&s(t);l!=null&&(o[a]=l)}return o}function a2e(t,e){let n={};t.attrs.colspan!=1&&(n.colspan=t.attrs.colspan),t.attrs.rowspan!=1&&(n.rowspan=t.attrs.rowspan),t.attrs.colwidth&&(n["data-colwidth"]=t.attrs.colwidth.join(","));for(let r in e){let i=e[r].setDOMAttr;i&&i(t.attrs[r],n)}return n}function LXe(t){if(t!==null){if(!Array.isArray(t))throw new TypeError("colwidth must be null or an array");for(let e of t)if(typeof e!="number")throw new TypeError("colwidth must be null or an array of numbers")}}function y2e(t){let e=t.cellAttributes||{},n={colspan:{default:1,validate:"number"},rowspan:{default:1,validate:"number"},colwidth:{default:null,validate:LXe}};for(let r in e)n[r]={default:e[r].default,validate:e[r].validate};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:t.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:t.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:r=>o2e(r,e)}],toDOM(r){return["td",a2e(r,e),0]}},table_header:{content:t.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:r=>o2e(r,e)}],toDOM(r){return["th",a2e(r,e),0]}}}}function tu(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(let n in t.nodes){let r=t.nodes[n],i=r.spec.tableRole;i&&(e[i]=r)}}return e}var mh=new qr("selectingCells");function o3(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function ec(t){let e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function VE(t){let e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;let n=o3(e.$head)||MXe(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function MXe(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){let r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){let r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function vH(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function EXe(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function _H(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function x2e(t,e,n){let r=t.node(-1),i=cr.get(r),o=t.start(-1),a=i.nextCell(t.pos-o,e,n);return a==null?null:t.node(0).resolve(o+a)}function Zg(t,e,n=1){let r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function TXe(t,e,n=1){let r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(e,0,0)}return r}function RXe(t,e,n){let r=tu(e.type.schema).header_cell;for(let i=0;i<t.height;i++)if(e.nodeAt(t.map[n+i*t.width]).type!=r)return!1;return!0}var Hr=class Nm extends Kt{constructor(e,n=e){let r=e.node(-1),i=cr.get(r),o=e.start(-1),a=i.rectBetween(e.pos-o,n.pos-o),s=e.node(0),l=i.cellsInRect(a).filter(u=>u!=n.pos-o);l.unshift(n.pos-o);let c=l.map(u=>{let d=r.nodeAt(u);if(!d)throw new RangeError(`No cell with offset ${u} found`);let p=o+u+1;return new J1(s.resolve(p),s.resolve(p+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=n}map(e,n){let r=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if(vH(r)&&vH(i)&&_H(r,i)){let o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?Nm.rowSelection(r,i):o&&this.isColSelection()?Nm.colSelection(r,i):new Nm(r,i)}return Qt.between(r,i)}content(){let e=this.$anchorCell.node(-1),n=cr.get(e),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},a=[];for(let l=i.top;l<i.bottom;l++){let c=[];for(let u=l*n.width+i.left,d=i.left;d<i.right;d++,u++){let p=n.map[u];if(o[p])continue;o[p]=!0;let m=n.findCell(p),f=e.nodeAt(p);if(!f)throw new RangeError(`No cell with offset ${p} found`);let h=i.left-m.left,x=m.right-i.right;if(h>0||x>0){let g=f.attrs;if(h>0&&(g=Zg(g,0,h)),x>0&&(g=Zg(g,g.colspan-x,x)),m.left<i.left){if(f=f.type.createAndFill(g),!f)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(g)}`)}else f=f.type.create(g,f.content)}if(m.top<i.top||m.bottom>i.bottom){let g={...f.attrs,rowspan:Math.min(m.bottom,i.bottom)-Math.max(m.top,i.top)};m.top<i.top?f=f.type.createAndFill(g):f=f.type.create(g,f.content)}c.push(f)}a.push(e.child(l).copy(De.from(c)))}let s=this.isColSelection()&&this.isRowSelection()?e:a;return new Je(De.from(s),1,1)}replace(e,n=Je.empty){let r=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(r);e.replace(c.map(s.pos),c.map(l.pos),a?Je.empty:n)}let o=Kt.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,n){this.replace(e,new Je(De.from(n),0,0))}forEachCell(e){let n=this.$anchorCell.node(-1),r=cr.get(n),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let a=0;a<o.length;a++)e(n.nodeAt(o[a]),i+o[a])}isColSelection(){let e=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(e,n)>0)return!1;let r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){let r=e.node(-1),i=cr.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.top<=s.top?(a.top>0&&(e=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(e=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))),new Nm(e,n)}isRowSelection(){let e=this.$anchorCell.node(-1),n=cr.get(e),r=this.$anchorCell.start(-1),i=n.colCount(this.$anchorCell.pos-r),o=n.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;let a=i+this.$anchorCell.nodeAfter.attrs.colspan,s=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,s)==n.width}eq(e){return e instanceof Nm&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){let r=e.node(-1),i=cr.get(r),o=e.start(-1),a=i.findCell(e.pos-o),s=i.findCell(n.pos-o),l=e.node(0);return a.left<=s.left?(a.left>0&&(e=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(n=l.resolve(o+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(e=l.resolve(o+i.map[i.width*(a.top+1)-1]))),new Nm(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new Nm(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){return new Nm(e.resolve(n),e.resolve(r))}getBookmark(){return new AXe(this.$anchorCell.pos,this.$headCell.pos)}};Hr.prototype.visible=!1;Kt.jsonID("cell",Hr);var AXe=class w2e{constructor(e,n){this.anchor=e,this.head=n}map(e){return new w2e(e.map(this.anchor),e.map(this.head))}resolve(e){let n=e.resolve(this.anchor),r=e.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&_H(n,r)?new Hr(n,r):Kt.near(r,1)}};function $Xe(t){if(!(t.selection instanceof Hr))return null;let e=[];return t.selection.forEachCell((n,r)=>{e.push(na.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Gi.create(t.doc,e)}function IXe({$from:t,$to:e}){if(t.pos==e.pos||t.pos<e.pos-6)return!1;let n=t.pos,r=e.pos,i=t.depth;for(;i>=0&&!(t.after(i+1)<t.end(i));i--,n++);for(let o=e.depth;o>=0&&!(e.before(o+1)>e.start(o));o--,r--);return n==r&&/row|table/.test(t.node(i).type.spec.tableRole)}function NXe({$from:t,$to:e}){let n,r;for(let i=t.depth;i>0;i--){let o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=e.depth;i>0;i--){let o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&e.parentOffset===0}function PXe(t,e,n){let r=(e||t).selection,i=(e||t).doc,o,a;if(r instanceof cn&&(a=r.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")o=Hr.create(i,r.from);else if(a=="row"){let s=i.resolve(r.from+1);o=Hr.rowSelection(s,s)}else if(!n){let s=cr.get(r.node),l=r.from+1,c=l+s.map[s.width*s.height-1];o=Hr.create(i,l+1,c)}}else r instanceof Qt&&IXe(r)?o=Qt.create(i,r.from):r instanceof Qt&&NXe(r)&&(o=Qt.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=t.tr)).setSelection(o),e}var jXe=new qr("fix-tables");function v2e(t,e,n,r){let i=t.childCount,o=e.childCount;e:for(let a=0,s=0;a<o;a++){let l=e.child(a);for(let c=s,u=Math.min(i,a+3);c<u;c++)if(t.child(c)==l){s=c+1,n+=l.nodeSize;continue e}r(l,n),s<i&&t.child(s).sameMarkup(l)?v2e(t.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function OXe(t,e){let n,r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=DXe(t,i,o,n))};return e?e.doc!=t.doc&&v2e(e.doc,t.doc,0,r):t.doc.descendants(r),n}function DXe(t,e,n,r){let i=cr.get(e);if(!i.problems)return r;r||(r=t.tr);let o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){let c=i.problems[l];if(c.type=="collision"){let u=e.nodeAt(c.pos);if(!u)continue;let d=u.attrs;for(let p=0;p<d.rowspan;p++)o[c.row+p]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,Zg(d,d.colspan-c.n,c.n))}else if(c.type=="missing")o[c.row]+=c.n;else if(c.type=="overlong_rowspan"){let u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){let u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}else if(c.type=="zero_sized"){let u=r.mapping.map(n);r.delete(u,u+e.nodeSize)}}let a,s;for(let l=0;l<o.length;l++)o[l]&&(a==null&&(a=l),s=l);for(let l=0,c=n+1;l<i.height;l++){let u=e.child(l),d=c+u.nodeSize,p=o[l];if(p>0){let m="cell";u.firstChild&&(m=u.firstChild.type.spec.tableRole);let f=[];for(let x=0;x<p;x++){let g=tu(t.schema)[m].createAndFill();g&&f.push(g)}let h=(l==0||a==l-1)&&s==l?c+1:d-1;r.insert(r.mapping.map(h),f)}c=d}return r.setMeta(jXe,{fixTables:!0})}function k2e(t){let e=cr.get(t),n=[],r=e.height,i=e.width;for(let o=0;o<r;o++){let a=[];for(let s=0;s<i;s++){let l=o*i+s,c=e.map[l];if(o>0){let u=l-i;if(c===e.map[u]){a.push(null);continue}}if(s>0){let u=l-1;if(c===e.map[u]){a.push(null);continue}}a.push(t.nodeAt(c))}n.push(a)}return n}function C2e(t,e){let n=[],r=cr.get(t),i=r.height,o=r.width;for(let a=0;a<i;a++){let s=t.child(a),l=[];for(let u=0;u<o;u++){let d=e[a][u];if(!d)continue;let p=r.map[a*r.width+u],m=t.nodeAt(p);if(!m)continue;let f=m.type.createChecked(d.attrs,d.content,d.marks);l.push(f)}let c=s.type.createChecked(s.attrs,l,s.marks);n.push(c)}return t.type.createChecked(t.attrs,n,t.marks)}function _2e(t,e,n,r){let i=e[0]>n[0]?-1:1,o=t.splice(e[0],e.length),a=o.length%2===0?1:0,s;return r===-1&&i===1?s=n[0]-1:r===1&&i===-1?s=n[n.length-1]-a+1:s=i===-1?n[0]:n[n.length-1]-a,t.splice(s,0,...o),t}function a3(t){return FXe(e=>e.type.spec.tableRole==="table",t)}function FXe(t,e){for(let n=e.depth;n>=0;n-=1){let r=e.node(n);if(t(r))return{node:r,pos:n===0?0:e.before(n),start:e.start(n),depth:n}}return null}function r3(t,e){let n=a3(e.$from);if(!n)return;let r=cr.get(n.node);if(!(t<0||t>r.width-1))return r.cellsInRect({left:t,right:t+1,top:0,bottom:r.height}).map(i=>{let o=n.node.nodeAt(i),a=i+n.start;return{pos:a,start:a+1,node:o,depth:n.depth+2}})}function i3(t,e){let n=a3(e.$from);if(!n)return;let r=cr.get(n.node);if(!(t<0||t>r.height-1))return r.cellsInRect({left:0,right:r.width,top:t,bottom:t+1}).map(i=>{let o=n.node.nodeAt(i),a=i+n.start;return{pos:a,start:a+1,node:o,depth:n.depth+2}})}function s2e(t,e,n=e){let r=e,i=n;for(let u=e;u>=0;u--){let d=r3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.colspan+u-1;m>=r&&(r=u),m>i&&(i=m)})}for(let u=e;u<=i;u++){let d=r3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.colspan+u-1;p.node.attrs.colspan>1&&m>i&&(i=m)})}let o=[];for(let u=r;u<=i;u++){let d=r3(u,t.selection);d&&d.length>0&&o.push(u)}r=o[0],i=o[o.length-1];let a=r3(r,t.selection),s=i3(0,t.selection);if(!a||!s)return;let l=t.doc.resolve(a[a.length-1].pos),c;for(let u=i;u>=r;u--){let d=r3(u,t.selection);if(d&&d.length>0){for(let p=s.length-1;p>=0;p--)if(s[p].pos===d[0].pos){c=d[0];break}if(c)break}}if(c)return{$anchor:l,$head:t.doc.resolve(c.pos),indexes:o}}function l2e(t,e,n=e){let r=e,i=n;for(let u=e;u>=0;u--){let d=i3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.rowspan+u-1;m>=r&&(r=u),m>i&&(i=m)})}for(let u=e;u<=i;u++){let d=i3(u,t.selection);d&&d.forEach(p=>{let m=p.node.attrs.rowspan+u-1;p.node.attrs.rowspan>1&&m>i&&(i=m)})}let o=[];for(let u=r;u<=i;u++){let d=i3(u,t.selection);d&&d.length>0&&o.push(u)}r=o[0],i=o[o.length-1];let a=i3(r,t.selection),s=r3(0,t.selection);if(!a||!s)return;let l=t.doc.resolve(a[a.length-1].pos),c;for(let u=i;u>=r;u--){let d=i3(u,t.selection);if(d&&d.length>0){for(let p=s.length-1;p>=0;p--)if(s[p].pos===d[0].pos){c=d[0];break}if(c)break}}if(c)return{$anchor:l,$head:t.doc.resolve(c.pos),indexes:o}}function c2e(t){return t[0].map((e,n)=>t.map(r=>r[n]))}function BXe(t){var e,n;let{tr:r,originIndex:i,targetIndex:o,select:a,pos:s}=t,l=a3(r.doc.resolve(s));if(!l)return!1;let c=(e=s2e(r,i))===null||e===void 0?void 0:e.indexes,u=(n=s2e(r,o))===null||n===void 0?void 0:n.indexes;if(!c||!u||c.includes(o))return!1;let d=zXe(l.node,c,u,0);if(r.replaceWith(l.pos,l.pos+l.node.nodeSize,d),!a)return!0;let p=cr.get(d),m=l.start,f=o,h=p.positionAt(p.height-1,f,d),x=r.doc.resolve(m+h),g=p.positionAt(0,f,d),y=r.doc.resolve(m+g);return r.setSelection(Hr.colSelection(x,y)),!0}function zXe(t,e,n,r){let i=c2e(k2e(t));return i=_2e(i,e,n,r),i=c2e(i),C2e(t,i)}function qXe(t){var e,n;let{tr:r,originIndex:i,targetIndex:o,select:a,pos:s}=t,l=a3(r.doc.resolve(s));if(!l)return!1;let c=(e=l2e(r,i))===null||e===void 0?void 0:e.indexes,u=(n=l2e(r,o))===null||n===void 0?void 0:n.indexes;if(!c||!u||c.includes(o))return!1;let d=HXe(l.node,c,u,0);if(r.replaceWith(l.pos,l.pos+l.node.nodeSize,d),!a)return!0;let p=cr.get(d),m=l.start,f=o,h=p.positionAt(f,p.width-1,d),x=r.doc.resolve(m+h),g=p.positionAt(f,0,d),y=r.doc.resolve(m+g);return r.setSelection(Hr.rowSelection(x,y)),!0}function HXe(t,e,n,r){let i=k2e(t);return i=_2e(i,e,n,r),C2e(t,i)}function Pm(t){let e=t.selection,n=VE(t),r=n.node(-1),i=n.start(-1),o=cr.get(r);return{...e instanceof Hr?o.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function S2e(t,{map:e,tableStart:n,table:r},i){let o=i>0?-1:0;RXe(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let a=0;a<e.height;a++){let s=a*e.width+i;if(i>0&&i<e.width&&e.map[s-1]==e.map[s]){let l=e.map[s],c=r.nodeAt(l);t.setNodeMarkup(t.mapping.map(n+l),null,TXe(c.attrs,i-e.colCount(l))),a+=c.attrs.rowspan-1}else{let l=o==null?tu(r.type.schema).cell:r.nodeAt(e.map[s+o]).type,c=e.positionAt(a,i,r);t.insert(t.mapping.map(n+c),l.createAndFill())}}return t}function L2e(t,e){if(!ec(t))return!1;if(e){let n=Pm(t);e(S2e(t.tr,n,n.left))}return!0}function M2e(t,e){if(!ec(t))return!1;if(e){let n=Pm(t);e(S2e(t.tr,n,n.right))}return!0}function GXe(t,{map:e,table:n,tableStart:r},i){let o=t.mapping.maps.length;for(let a=0;a<e.height;){let s=a*e.width+i,l=e.map[s],c=n.nodeAt(l),u=c.attrs;if(i>0&&e.map[s-1]==l||i<e.width-1&&e.map[s+1]==l)t.setNodeMarkup(t.mapping.slice(o).map(r+l),null,Zg(u,i-e.colCount(l)));else{let d=t.mapping.slice(o).map(r+l);t.delete(d,d+c.nodeSize)}a+=u.rowspan}}function E2e(t,e){if(!ec(t))return!1;if(e){let n=Pm(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;GXe(r,n,i),i!=n.left;i--){let o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw new RangeError("No table found");n.table=o,n.map=cr.get(o)}e(r)}return!0}function UXe(t,{map:e,table:n,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=n.child(c).nodeSize;let a=o+n.child(i).nodeSize,s=t.mapping.maps.length;t.delete(o+r,a+r);let l=new Set;for(let c=0,u=i*e.width;c<e.width;c++,u++){let d=e.map[u];if(!l.has(d)){if(l.add(d),i>0&&d==e.map[u-e.width]){let p=n.nodeAt(d).attrs;t.setNodeMarkup(t.mapping.slice(s).map(d+r),null,{...p,rowspan:p.rowspan-1}),c+=p.colspan-1}else if(i<e.height&&d==e.map[u+e.width]){let p=n.nodeAt(d),m=p.attrs,f=p.type.create({...m,rowspan:p.attrs.rowspan-1},p.content),h=e.positionAt(i+1,c,n);t.insert(t.mapping.slice(s).map(r+h),f),c+=m.colspan-1}}}}function T2e(t,e){if(!ec(t))return!1;if(e){let n=Pm(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;UXe(r,n,i),i!=n.top;i--){let o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw new RangeError("No table found");n.table=o,n.map=cr.get(n.table)}e(r)}return!0}function R2e(t,e){return function(n,r){if(!ec(n))return!1;let i=VE(n);if(i.nodeAfter.attrs[t]===e)return!1;if(r){let o=n.tr;n.selection instanceof Hr?n.selection.forEachCell((a,s)=>{a.attrs[t]!==e&&o.setNodeMarkup(s,null,{...a.attrs,[t]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),r(o)}return!0}}function VXe(t){return function(e,n){if(!ec(e))return!1;if(n){let r=tu(e.schema),i=Pm(e),o=e.tr,a=i.map.cellsInRect(t=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:t=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=a.map(l=>i.table.nodeAt(l));for(let l=0;l<a.length;l++)s[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+a[l],r.cell,s[l].attrs);if(o.steps.length===0)for(let l=0;l<a.length;l++)o.setNodeMarkup(i.tableStart+a[l],r.header_cell,s[l].attrs);n(o)}return!0}}function u2e(t,e,n){let r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let i=0;i<r.length;i++){let o=e.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function SH(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?VXe(t):function(n,r){if(!ec(n))return!1;if(r){let i=tu(n.schema),o=Pm(n),a=n.tr,s=u2e("row",o,i),l=u2e("column",o,i),c=(t==="column"?s:t==="row"&&l)?1:0,u=t=="column"?{left:0,top:c,right:1,bottom:o.map.height}:t=="row"?{left:c,top:0,right:o.map.width,bottom:1}:o,d=t=="column"?l?i.cell:i.header_cell:t=="row"?s?i.cell:i.header_cell:i.cell;o.map.cellsInRect(u).forEach(p=>{let m=p+o.tableStart,f=a.doc.nodeAt(m);f&&a.setNodeMarkup(m,d,f.attrs)}),r(a)}return!0}}var VZt=SH("row",{useDeprecatedLogic:!0}),ZZt=SH("column",{useDeprecatedLogic:!0}),WZt=SH("cell",{useDeprecatedLogic:!0});function ZXe(t,e){if(e<0){let n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,i=t.before();r>=0;r--){let o=t.node(-1).child(r),a=o.lastChild;if(a)return i-1-a.nodeSize;i-=o.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;let n=t.node(-1);for(let r=t.indexAfter(-1),i=t.after();r<n.childCount;r++){let o=n.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function LH(t){return function(e,n){if(!ec(e))return!1;let r=ZXe(VE(e),t);if(r==null)return!1;if(n){let i=e.doc.resolve(r);n(e.tr.setSelection(Qt.between(i,EXe(i))).scrollIntoView())}return!0}}function A2e(t,e){let n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function zE(t,e){let n=t.selection;if(!(n instanceof Hr))return!1;if(e){let r=t.tr,i=tu(t.schema).cell.createAndFill().content;n.forEachCell((o,a)=>{o.content.eq(i)||r.replace(r.mapping.map(a+1),r.mapping.map(a+o.nodeSize-1),new Je(i,0,0))}),r.docChanged&&e(r)}return!0}function $2e(t){return(e,n)=>{let{from:r,to:i,select:o=!0,pos:a=e.selection.from}=t,s=e.tr;return qXe({tr:s,originIndex:r,targetIndex:i,select:o,pos:a})?(n?.(s),!0):!1}}function I2e(t){return(e,n)=>{let{from:r,to:i,select:o=!0,pos:a=e.selection.from}=t,s=e.tr;return BXe({tr:s,originIndex:r,targetIndex:i,select:o,pos:a})?(n?.(s),!0):!1}}function WXe(t){if(t.size===0)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;let i=e.child(0),o=i.type.spec.tableRole,a=i.type.schema,s=[];if(o=="row")for(let l=0;l<e.childCount;l++){let c=e.child(l).content,u=l?0:Math.max(0,n-1),d=l<e.childCount-1?0:Math.max(0,r-1);(u||d)&&(c=kH(tu(a).row,new Je(c,u,d)).content),s.push(c)}else if(o=="cell"||o=="header_cell")s.push(n||r?kH(tu(a).row,new Je(e,n,r)).content:e);else return null;return KXe(a,s)}function KXe(t,e){let n=[];for(let i=0;i<e.length;i++){let o=e[i];for(let a=o.childCount-1;a>=0;a--){let{rowspan:s,colspan:l}=o.child(a).attrs;for(let c=i;c<i+s;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=e.length&&e.push(De.empty),n[i]<r){let o=tu(t).cell.createAndFill(),a=[];for(let s=n[i];s<r;s++)a.push(o);e[i]=e[i].append(De.from(a))}return{height:e.length,width:r,rows:e}}function kH(t,e){let n=t.createAndFill();return new Ay(n).replace(0,n.content.size,e).doc}function XXe({width:t,height:e,rows:n},r,i){if(t!=r){let o=[],a=[];for(let s=0;s<n.length;s++){let l=n[s],c=[];for(let u=o[s]||0,d=0;u<r;d++){let p=l.child(d%l.childCount);u+p.attrs.colspan>r&&(p=p.type.createChecked(Zg(p.attrs,p.attrs.colspan,u+p.attrs.colspan-r),p.content)),c.push(p),u+=p.attrs.colspan;for(let m=1;m<p.attrs.rowspan;m++)o[s+m]=(o[s+m]||0)+p.attrs.colspan}a.push(De.from(c))}n=a,t=r}if(e!=i){let o=[];for(let a=0,s=0;a<i;a++,s++){let l=[],c=n[s%e];for(let u=0;u<c.childCount;u++){let d=c.child(u);a+d.attrs.rowspan>i&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}o.push(De.from(l))}n=o,e=i}return{width:t,height:e,rows:n}}function YXe(t,e,n,r,i,o,a){let s=t.doc.type.schema,l=tu(s),c,u;if(i>e.width)for(let d=0,p=0;d<e.height;d++){let m=n.child(d);p+=m.nodeSize;let f=[],h;m.lastChild==null||m.lastChild.type==l.cell?h=c||(c=l.cell.createAndFill()):h=u||(u=l.header_cell.createAndFill());for(let x=e.width;x<i;x++)f.push(h);t.insert(t.mapping.slice(a).map(p-1+r),f)}if(o>e.height){let d=[];for(let f=0,h=(e.height-1)*e.width;f<Math.max(e.width,i);f++){let x=f>=e.width?!1:n.nodeAt(e.map[h+f]).type==l.header_cell;d.push(x?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}let p=l.row.create(null,De.from(d)),m=[];for(let f=e.height;f<o;f++)m.push(p);t.insert(t.mapping.slice(a).map(r+n.nodeSize-2),m)}return!!(c||u)}function d2e(t,e,n,r,i,o,a,s){if(a==0||a==e.height)return!1;let l=!1;for(let c=i;c<o;c++){let u=a*e.width+c,d=e.map[u];if(e.map[u-e.width]==d){l=!0;let p=n.nodeAt(d),{top:m,left:f}=e.findCell(d);t.setNodeMarkup(t.mapping.slice(s).map(d+r),null,{...p.attrs,rowspan:a-m}),t.insert(t.mapping.slice(s).map(e.positionAt(a,f,n)),p.type.createAndFill({...p.attrs,rowspan:m+p.attrs.rowspan-a})),c+=p.attrs.colspan-1}}return l}function p2e(t,e,n,r,i,o,a,s){if(a==0||a==e.width)return!1;let l=!1;for(let c=i;c<o;c++){let u=c*e.width+a,d=e.map[u];if(e.map[u-1]==d){l=!0;let p=n.nodeAt(d),m=e.colCount(d),f=t.mapping.slice(s).map(d+r);t.setNodeMarkup(f,null,Zg(p.attrs,a-m,p.attrs.colspan-(a-m))),t.insert(f+p.nodeSize,p.type.createAndFill(Zg(p.attrs,0,a-m))),c+=p.attrs.rowspan-1}}return l}function m2e(t,e,n,r,i){let o=n?t.doc.nodeAt(n-1):t.doc;if(!o)throw new Error("No table found");let a=cr.get(o),{top:s,left:l}=r,c=l+i.width,u=s+i.height,d=t.tr,p=0;function m(){if(o=n?d.doc.nodeAt(n-1):d.doc,!o)throw new Error("No table found");a=cr.get(o),p=d.mapping.maps.length}YXe(d,a,o,n,c,u,p)&&m(),d2e(d,a,o,n,l,c,s,p)&&m(),d2e(d,a,o,n,l,c,u,p)&&m(),p2e(d,a,o,n,s,u,l,p)&&m(),p2e(d,a,o,n,s,u,c,p)&&m();for(let f=s;f<u;f++){let h=a.positionAt(f,l,o),x=a.positionAt(f,c,o);d.replace(d.mapping.slice(p).map(h+n),d.mapping.slice(p).map(x+n),new Je(i.rows[f-s],0,0))}m(),d.setSelection(new Hr(d.doc.resolve(n+a.positionAt(s,l,o)),d.doc.resolve(n+a.positionAt(u-1,c-1,o)))),e(d)}var QXe=Bz({ArrowLeft:qE("horiz",-1),ArrowRight:qE("horiz",1),ArrowUp:qE("vert",-1),ArrowDown:qE("vert",1),"Shift-ArrowLeft":HE("horiz",-1),"Shift-ArrowRight":HE("horiz",1),"Shift-ArrowUp":HE("vert",-1),"Shift-ArrowDown":HE("vert",1),Backspace:zE,"Mod-Backspace":zE,Delete:zE,"Mod-Delete":zE});function GE(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function qE(t,e){return(n,r,i)=>{if(!i)return!1;let o=n.selection;if(o instanceof Hr)return GE(n,r,Kt.near(o.$headCell,e));if(t!="horiz"&&!o.empty)return!1;let a=N2e(i,t,e);if(a==null)return!1;if(t=="horiz")return GE(n,r,Kt.near(n.doc.resolve(o.head+e),e));{let s=n.doc.resolve(a),l=x2e(s,t,e),c;return l?c=Kt.near(l,1):e<0?c=Kt.near(n.doc.resolve(s.before(-1)),-1):c=Kt.near(n.doc.resolve(s.after(-1)),1),GE(n,r,c)}}}function HE(t,e){return(n,r,i)=>{if(!i)return!1;let o=n.selection,a;if(o instanceof Hr)a=o;else{let l=N2e(i,t,e);if(l==null)return!1;a=new Hr(n.doc.resolve(l))}let s=x2e(a.$headCell,t,e);return s?GE(n,r,new Hr(a.$anchorCell,s)):!1}}function JXe(t,e){let n=t.state.doc,r=o3(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Hr(r))),!0):!1}function eYe(t,e,n){if(!ec(t.state))return!1;let r=WXe(n),i=t.state.selection;if(i instanceof Hr){r||(r={width:1,height:1,rows:[De.from(kH(tu(t.state.schema).cell,n))]});let o=i.$anchorCell.node(-1),a=i.$anchorCell.start(-1),s=cr.get(o).rectBetween(i.$anchorCell.pos-a,i.$headCell.pos-a);return r=XXe(r,s.right-s.left,s.bottom-s.top),m2e(t.state,t.dispatch,a,s,r),!0}else if(r){let o=VE(t.state),a=o.start(-1);return m2e(t.state,t.dispatch,a,cr.get(o.node(-1)).findCell(o.pos-a),r),!0}else return!1}function tYe(t,e){var n;if(e.button!=0||e.ctrlKey||e.metaKey)return;let r=f2e(t,e.target),i;if(e.shiftKey&&t.state.selection instanceof Hr)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=o3(t.state.selection.$anchor))!=null&&((n=yH(t,e))===null||n===void 0?void 0:n.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,c){let u=yH(t,c),d=mh.getState(t.state)==null;if(!u||!_H(l,u))if(d)u=l;else return;let p=new Hr(l,u);if(d||!t.state.selection.eq(p)){let m=t.state.tr.setSelection(p);d&&m.setMeta(mh,l.pos),t.dispatch(m)}}function a(){t.root.removeEventListener("mouseup",a),t.root.removeEventListener("dragstart",a),t.root.removeEventListener("mousemove",s),mh.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(mh,-1))}function s(l){let c=l,u=mh.getState(t.state),d;if(u!=null)d=t.state.doc.resolve(u);else if(f2e(t,c.target)!=r&&(d=yH(t,e),!d))return a();d&&o(d,c)}t.root.addEventListener("mouseup",a),t.root.addEventListener("dragstart",a),t.root.addEventListener("mousemove",s)}function N2e(t,e,n){if(!(t.state.selection instanceof Qt))return null;let{$head:r}=t.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){let a=r.before(i),s=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(s)?a:null}}return null}function f2e(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function yH(t,e){let n=t.posAtCoords({left:e.clientX,top:e.clientY});if(!n)return null;let{inside:r,pos:i}=n;return r>=0&&o3(t.state.doc.resolve(r))||o3(t.state.doc.resolve(i))}var nYe=class{constructor(t,e){this.node=t,this.defaultCellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${e}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),CH(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!=this.node.type?!1:(this.node=t,CH(t,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(t){return t.type=="attributes"&&(t.target==this.table||this.colgroup.contains(t.target))}};function CH(t,e,n,r,i,o){let a=0,s=!0,l=e.firstChild,c=t.firstChild;if(c){for(let d=0,p=0;d<c.childCount;d++){let{colspan:m,colwidth:f}=c.child(d).attrs;for(let h=0;h<m;h++,p++){let x=i==p?o:f&&f[h],g=x?x+"px":"";if(a+=x||r,x||(s=!1),l)l.style.width!=g&&(l.style.width=g),l=l.nextSibling;else{let y=document.createElement("col");y.style.width=g,e.appendChild(y)}}}for(;l;){var u;let d=l.nextSibling;(u=l.parentNode)===null||u===void 0||u.removeChild(l),l=d}s?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var Jl=new qr("tableColumnResizing");function P2e({handleWidth:t=5,cellMinWidth:e=25,defaultCellMinWidth:n=100,View:r=nYe,lastColumnResizable:i=!0}={}){let o=new Mr({key:Jl,state:{init(a,s){var l;let c=(l=o.spec)===null||l===void 0||(l=l.props)===null||l===void 0?void 0:l.nodeViews,u=tu(s.schema).table.name;return r&&c&&(c[u]=(d,p)=>new r(d,n,p)),new rYe(-1,!1)},apply(a,s){return s.apply(a)}},props:{attributes:a=>{let s=Jl.getState(a);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,s)=>{iYe(a,s,t,i)},mouseleave:a=>{oYe(a)},mousedown:(a,s)=>{aYe(a,s,e,n)}},decorations:a=>{let s=Jl.getState(a);if(s&&s.activeHandle>-1)return dYe(a,s.activeHandle)},nodeViews:{}}});return o}var rYe=class UE{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){let n=this,r=e.getMeta(Jl);if(r&&r.setHandle!=null)return new UE(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new UE(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let i=e.mapping.map(n.activeHandle,-1);return vH(e.doc.resolve(i))||(i=-1),new UE(i,n.dragging)}return n}};function iYe(t,e,n,r){if(!t.editable)return;let i=Jl.getState(t.state);if(i&&!i.dragging){let o=lYe(e.target),a=-1;if(o){let{left:s,right:l}=o.getBoundingClientRect();e.clientX-s<=n?a=h2e(t,e,"left",n):l-e.clientX<=n&&(a=h2e(t,e,"right",n))}if(a!=i.activeHandle){if(!r&&a!==-1){let s=t.state.doc.resolve(a),l=s.node(-1),c=cr.get(l),u=s.start(-1);if(c.colCount(s.pos-u)+s.nodeAfter.attrs.colspan-1==c.width-1)return}j2e(t,a)}}}function oYe(t){if(!t.editable)return;let e=Jl.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&j2e(t,-1)}function aYe(t,e,n,r){var i;if(!t.editable)return!1;let o=(i=t.dom.ownerDocument.defaultView)!==null&&i!==void 0?i:window,a=Jl.getState(t.state);if(!a||a.activeHandle==-1||a.dragging)return!1;let s=t.state.doc.nodeAt(a.activeHandle),l=sYe(t,a.activeHandle,s.attrs);t.dispatch(t.state.tr.setMeta(Jl,{setDragging:{startX:e.clientX,startWidth:l}}));function c(d){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);let p=Jl.getState(t.state);p?.dragging&&(cYe(t,p.activeHandle,g2e(p.dragging,d,n)),t.dispatch(t.state.tr.setMeta(Jl,{setDragging:null})))}function u(d){if(!d.which)return c(d);let p=Jl.getState(t.state);if(p&&p.dragging){let m=g2e(p.dragging,d,n);b2e(t,p.activeHandle,m,r)}}return b2e(t,a.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),e.preventDefault(),!0}function sYe(t,e,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=t.domAtPos(e),a=o.node.childNodes[o.offset].offsetWidth,s=n;if(r)for(let l=0;l<n;l++)r[l]&&(a-=r[l],s--);return a/s}function lYe(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function h2e(t,e,n,r){let i=n=="right"?-r:r,o=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!o)return-1;let{pos:a}=o,s=o3(t.state.doc.resolve(a));if(!s)return-1;if(n=="right")return s.pos;let l=cr.get(s.node(-1)),c=s.start(-1),u=l.map.indexOf(s.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function g2e(t,e,n){let r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function j2e(t,e){t.dispatch(t.state.tr.setMeta(Jl,{setHandle:e}))}function cYe(t,e,n){let r=t.state.doc.resolve(e),i=r.node(-1),o=cr.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=t.state.tr;for(let c=0;c<o.height;c++){let u=c*o.width+s;if(c&&o.map[u]==o.map[u-o.width])continue;let d=o.map[u],p=i.nodeAt(d).attrs,m=p.colspan==1?0:s-o.colCount(d);if(p.colwidth&&p.colwidth[m]==n)continue;let f=p.colwidth?p.colwidth.slice():uYe(p.colspan);f[m]=n,l.setNodeMarkup(a+d,null,{...p,colwidth:f})}l.docChanged&&t.dispatch(l)}function b2e(t,e,n,r){let i=t.state.doc.resolve(e),o=i.node(-1),a=i.start(-1),s=cr.get(o).colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1,l=t.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&CH(o,l.firstChild,l,r,s,n)}function uYe(t){return Array(t).fill(0)}function dYe(t,e){let n=[],r=t.doc.resolve(e),i=r.node(-1);if(!i)return Gi.empty;let o=cr.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1;for(let c=0;c<o.height;c++){let u=s+c*o.width;if((s==o.width-1||o.map[u]!=o.map[u+1])&&(c==0||o.map[u]!=o.map[u-o.width])){var l;let d=o.map[u],p=a+d+i.nodeAt(d).nodeSize-1,m=document.createElement("div");m.className="column-resize-handle",!((l=Jl.getState(t))===null||l===void 0)&&l.dragging&&n.push(na.node(a+d,a+d+i.nodeAt(d).nodeSize,{class:"column-resize-dragging"})),n.push(na.widget(p,m))}}return Gi.create(t.doc,n)}function O2e({allowTableNodeSelection:t=!1}={}){return new Mr({key:mh,state:{init(){return null},apply(e,n){let r=e.getMeta(mh);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;let{deleted:i,pos:o}=e.mapping.mapResult(n);return i?null:o}},props:{decorations:$Xe,handleDOMEvents:{mousedown:tYe},createSelectionBetween(e){return mh.getState(e.state)!=null?e.state.selection:null},handleTripleClick:JXe,handleKeyDown:QXe,handlePaste:eYe},appendTransaction(e,n,r){return PXe(r,OXe(r,n),t)}})}var ZE=typeof navigator<"u"?navigator:null,EH=ZE&&ZE.userAgent||"",pYe=/Edge\/(\d+)/.exec(EH),mYe=/MSIE \d/.exec(EH),fYe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(EH),hYe=!!(mYe||fYe||pYe),gYe=!hYe&&!!ZE&&/Apple Computer/.test(ZE.vendor),D2e=new qr("safari-ime-span"),MH=!1,bYe={key:D2e,props:{decorations:yYe,handleDOMEvents:{compositionstart:()=>{MH=!0},compositionend:()=>{MH=!1}}}};function yYe(t){let{$from:e,$to:n,to:r}=t.selection;if(MH&&e.sameParent(n)){let i=na.widget(r,xYe,{ignoreSelection:!0,key:"safari-ime-span"});return Gi.create(t.doc,[i])}}function xYe(t){let e=t.dom.ownerDocument.createElement("span");return e.className="ProseMirror-safari-ime-span",e}var F2e=new Mr(gYe?bYe:{key:D2e});function TH(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function RH(t,e,n){let i=Q1((n||{}).ignore||[]),o=wYe(e),a=-1;for(;++a<o.length;)xg(t,"text",s);function s(c,u){let d=-1,p;for(;++d<u.length;){let m=u[d],f=p?p.children:void 0;if(i(m,f?f.indexOf(m):void 0,p))return;p=m}if(p)return l(c,u)}function l(c,u){let d=u[u.length-1],p=o[a][0],m=o[a][1],f=0,x=d.children.indexOf(c),g=!1,y=[];p.lastIndex=0;let b=p.exec(c.value);for(;b;){let w=b.index,v={index:b.index,input:b.input,stack:[...u,c]},k=m(...b,v);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?p.lastIndex=w+1:(f!==w&&y.push({type:"text",value:c.value.slice(f,w)}),Array.isArray(k)?y.push(...k):k&&y.push(k),f=w+b[0].length,g=!0),!p.global)break;b=p.exec(c.value)}return g?(f<c.value.length&&y.push({type:"text",value:c.value.slice(f)}),d.children.splice(x,1,...y)):y=[c],x+y.length}}function wYe(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let n=!t[0]||Array.isArray(t[0])?t:[t],r=-1;for(;++r<n.length;){let i=n[r];e.push([vYe(i[0]),kYe(i[1])])}return e}function vYe(t){return typeof t=="string"?new RegExp(TH(t),"g"):t}function kYe(t){return typeof t=="function"?t:function(){return t}}var AH="phrasing",$H=["autolink","link","image","label"];function NH(){return{transforms:[EYe],enter:{literalAutolink:CYe,literalAutolinkEmail:IH,literalAutolinkHttp:IH,literalAutolinkWww:IH},exit:{literalAutolink:MYe,literalAutolinkEmail:LYe,literalAutolinkHttp:_Ye,literalAutolinkWww:SYe}}}function PH(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:AH,notInConstruct:$H},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:AH,notInConstruct:$H},{character:":",before:"[ps]",after:"\\/",inConstruct:AH,notInConstruct:$H}]}}function CYe(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function IH(t){this.config.enter.autolinkProtocol.call(this,t)}function _Ye(t){this.config.exit.autolinkProtocol.call(this,t)}function SYe(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function LYe(t){this.config.exit.autolinkEmail.call(this,t)}function MYe(t){this.exit(t)}function EYe(t){RH(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,TYe],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,RYe]],{ignore:["link","linkReference"]})}function TYe(t,e,n,r,i){let o="";if(!B2e(i)||(/^w/i.test(e)&&(n=e+n,e="",o="http://"),!AYe(n)))return!1;let a=$Ye(n+r);if(!a[0])return!1;let s={type:"link",title:null,url:o+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function RYe(t,e,n,r){return!B2e(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function AYe(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function $Ye(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")"),i=Db(t,"("),o=Db(t,")");for(;r!==-1&&i>o;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[t,n]}function B2e(t,e){let n=t.input.charCodeAt(t.index-1);return(t.index===0||Od(n)||fg(n))&&(!e||n!==47)}z2e.peek=zYe;function IYe(){this.buffer()}function NYe(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function PYe(){this.buffer()}function jYe(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function OYe(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(t)).toLowerCase(),n.label=e}function DYe(t){this.exit(t)}function FYe(t){let e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ja(this.sliceSerialize(t)).toLowerCase(),n.label=e}function BYe(t){this.exit(t)}function zYe(){return"["}function z2e(t,e,n,r){let i=n.createTracker(r),o=i.move("[^"),a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(t),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function jH(){return{enter:{gfmFootnoteCallString:IYe,gfmFootnoteCall:NYe,gfmFootnoteDefinitionLabelString:PYe,gfmFootnoteDefinition:jYe},exit:{gfmFootnoteCallString:OYe,gfmFootnoteCall:DYe,gfmFootnoteDefinitionLabelString:FYe,gfmFootnoteDefinition:BYe}}}function OH(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:z2e},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){let s=o.createTracker(a),l=s.move("[^"),c=o.enter("footnoteDefinition"),u=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),u(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((e?` +`:" ")+o.indentLines(o.containerFlow(r,s.current()),e?q2e:qYe))),c(),l}}function qYe(t,e,n){return e===0?t:q2e(t,e,n)}function q2e(t,e,n){return(n?"":" ")+t}var HYe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];H2e.peek=VYe;function DH(){return{canContainEols:["delete"],enter:{strikethrough:GYe},exit:{strikethrough:UYe}}}function FH(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:HYe}],handlers:{delete:H2e}}}function GYe(t){this.enter({type:"delete",children:[]},t)}function UYe(t){this.exit(t)}function H2e(t,e,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(t,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function VYe(){return"~"}function ZYe(t){return t.length}function U2e(t,e){let n=e||{},r=(n.align||[]).concat(),i=n.stringLength||ZYe,o=[],a=[],s=[],l=[],c=0,u=-1;for(;++u<t.length;){let h=[],x=[],g=-1;for(t[u].length>c&&(c=t[u].length);++g<t[u].length;){let y=WYe(t[u][g]);if(n.alignDelimiters!==!1){let b=i(y);x[g]=b,(l[g]===void 0||b>l[g])&&(l[g]=b)}h.push(y)}a[u]=h,s[u]=x}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=G2e(r[d]);else{let h=G2e(r);for(;++d<c;)o[d]=h}d=-1;let p=[],m=[];for(;++d<c;){let h=o[d],x="",g="";h===99?(x=":",g=":"):h===108?x=":":h===114&&(g=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[d]-x.length-g.length),b=x+"-".repeat(y)+g;n.alignDelimiters!==!1&&(y=x.length+y+g.length,y>l[d]&&(l[d]=y),m[d]=y),p[d]=b}a.splice(1,0,p),s.splice(1,0,m),u=-1;let f=[];for(;++u<a.length;){let h=a[u],x=s[u];d=-1;let g=[];for(;++d<c;){let y=h[d]||"",b="",w="";if(n.alignDelimiters!==!1){let v=l[d]-(x[d]||0),k=o[d];k===114?b=" ".repeat(v):k===99?v%2?(b=" ".repeat(v/2+.5),w=" ".repeat(v/2-.5)):(b=" ".repeat(v/2),w=b):w=" ".repeat(v)}n.delimiterStart!==!1&&!d&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||d)&&g.push(" "),n.alignDelimiters!==!1&&g.push(b),g.push(y),n.alignDelimiters!==!1&&g.push(w),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&g.push("|")}f.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return f.join(` +`)}function WYe(t){return t==null?"":String(t)}function G2e(t){let e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}function zH(){return{enter:{table:KYe,tableData:V2e,tableHeader:V2e,tableRow:YYe},exit:{codeText:QYe,table:XYe,tableData:BH,tableHeader:BH,tableRow:BH}}}function KYe(t){let e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function XYe(t){this.exit(t),this.data.inTable=void 0}function YYe(t){this.enter({type:"tableRow",children:[]},t)}function BH(t){this.exit(t)}function V2e(t){this.enter({type:"tableCell",children:[]},t)}function QYe(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,JYe));let n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function JYe(t,e){return e==="|"?e:t}function qH(t){let e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:l,tableRow:s}};function a(m,f,h,x){return c(u(m,h,x),m.align)}function s(m,f,h,x){let g=d(m,h,x),y=c([g]);return y.slice(0,y.indexOf(` -`))}function l(m,f,h,x){let g=h.enter("tableCell"),y=h.enter("phrasing"),b=h.containerPhrasing(m,{...x,before:o,after:o});return y(),g(),b}function c(m,f){return U2e(m,{align:f,alignDelimiters:r,padding:n,stringLength:i})}function u(m,f,h){let x=m.children,g=-1,y=[],b=f.enter("table");for(;++g<x.length;)y[g]=d(x[g],f,h);return b(),y}function d(m,f,h){let x=m.children,g=-1,y=[],b=f.enter("tableRow");for(;++g<x.length;)y[g]=l(x[g],m,f,h);return b(),y}function p(m,f,h){let x=xg.inlineCode(m,f,h);return h.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function HH(){return{exit:{taskListCheckValueChecked:Z2e,taskListCheckValueUnchecked:Z2e,paragraph:YYe}}}function GH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:QYe}}}function Z2e(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function YYe(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=e.children,o=-1,a;for(;++o<i.length;){let s=i[o];if(s.type==="paragraph"){a=s;break}}a===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(t)}function QYe(t,e,n,r){let i=t.children[0],o=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=xg.listItem(t,e,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function UH(){return[NH(),jH(),DH(),zH(),HH()]}function VH(t){return{extensions:[PH(),OH(t),FH(),qH(t),GH()]}}var JYe={tokenize:iQe,partial:!0},W2e={tokenize:oQe,partial:!0},K2e={tokenize:aQe,partial:!0},X2e={tokenize:sQe,partial:!0},eQe={tokenize:lQe,partial:!0},Y2e={name:"wwwAutolink",tokenize:nQe,previous:J2e},Q2e={name:"protocolAutolink",tokenize:rQe,previous:eye},Pm={name:"emailAutolink",tokenize:tQe,previous:tye},Gd={};function WH(){return{text:Gd}}var Zg=48;for(;Zg<123;)Gd[Zg]=Pm,Zg++,Zg===58?Zg=65:Zg===91&&(Zg=97);Gd[43]=Pm;Gd[45]=Pm;Gd[46]=Pm;Gd[95]=Pm;Gd[72]=[Pm,Q2e];Gd[104]=[Pm,Q2e];Gd[87]=[Pm,Y2e];Gd[119]=[Pm,Y2e];function tQe(t,e,n){let r=this,i,o;return a;function a(d){return!ZH(d)||!tye.call(r,r.previous)||KH(r.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),s(d))}function s(d){return ZH(d)?(t.consume(d),s):d===64?(t.consume(d),l):n(d)}function l(d){return d===46?t.check(eQe,u,c)(d):d===45||d===95||vo(d)?(o=!0,t.consume(d),l):u(d)}function c(d){return t.consume(d),i=!0,l}function u(d){return o&&i&&wo(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function nQe(t,e,n){let r=this;return i;function i(a){return a!==87&&a!==119||!J2e.call(r,r.previous)||KH(r.events)?n(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(JYe,t.attempt(W2e,t.attempt(K2e,o),n),n)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}function rQe(t,e,n){let r=this,i="",o=!1;return a;function a(d){return(d===72||d===104)&&eye.call(r,r.previous)&&!KH(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),t.consume(d),s):n(d)}function s(d){if(wo(d)&&i.length<5)return i+=String.fromCodePoint(d),t.consume(d),s;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return t.consume(d),l}return n(d)}function l(d){return d===47?(t.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||pg(d)||Pn(d)||Od(d)||mg(d)?n(d):t.attempt(W2e,t.attempt(K2e,u),n)(d)}function u(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function iQe(t,e,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,t.consume(a),i):a===46&&r===3?(t.consume(a),o):n(a)}function o(a){return a===null?n(a):e(a)}}function oQe(t,e,n){let r,i,o;return a;function a(c){return c===46||c===95?t.check(X2e,l,s)(c):c===null||Pn(c)||Od(c)||c!==45&&mg(c)?l(c):(o=!0,t.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),a}function l(c){return i||r||!o?n(c):e(c)}}function aQe(t,e){let n=0,r=0;return i;function i(a){return a===40?(n++,t.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check(X2e,e,o)(a):a===null||Pn(a)||Od(a)?e(a):(t.consume(a),i)}function o(a){return a===41&&r++,t.consume(a),i}}function sQe(t,e,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(t.consume(s),r):s===38?(t.consume(s),o):s===93?(t.consume(s),i):s===60||s===null||Pn(s)||Od(s)?e(s):n(s)}function i(s){return s===null||s===40||s===91||Pn(s)||Od(s)?e(s):r(s)}function o(s){return wo(s)?a(s):n(s)}function a(s){return s===59?(t.consume(s),r):wo(s)?(t.consume(s),a):n(s)}}function lQe(t,e,n){return r;function r(o){return t.consume(o),i}function i(o){return vo(o)?n(o):e(o)}}function J2e(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Pn(t)}function eye(t){return!wo(t)}function tye(t){return!(t===47||ZH(t))}function ZH(t){return t===43||t===45||t===46||t===95||vo(t)}function KH(t){let e=t.length,n=!1;for(;e--;){let r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var cQe={tokenize:gQe,partial:!0};function XH(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mQe,continuation:{tokenize:fQe},exit:hQe}},text:{91:{name:"gfmFootnoteCall",tokenize:pQe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uQe,resolveTo:dQe}}}}function uQe(t,e,n){let r=this,i=r.events.length,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);let c=ja(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function dQe(t,e){let n=t.length,r;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){r=t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[t[n+1],t[n+2],["enter",i,e],t[n+3],t[n+4],["enter",o,e],["exit",o,e],["enter",a,e],["enter",s,e],["exit",s,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(n,t.length-n+1,...l),t}function pQe(t,e,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o=0,a;return s;function s(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||Pn(d))return n(d);if(d===93){t.exit("chunkString");let p=t.exit("gfmFootnoteCallString");return i.includes(ja(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return Pn(d)||(a=!0),o++,t.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(t.consume(d),o++,c):c(d)}}function mQe(t,e,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o,a=0,s;return l;function l(f){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(f),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(f){return f===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(f),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",u):n(f)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Pn(f))return n(f);if(f===93){t.exit("chunkString");let h=t.exit("gfmFootnoteDefinitionLabelString");return o=ja(r.sliceSerialize(h)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(f),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return Pn(f)||(s=!0),a++,t.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(t.consume(f),a++,u):u(f)}function p(f){return f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),i.includes(o)||i.push(o),Ft(t,m,"gfmFootnoteDefinitionWhitespace")):n(f)}function m(f){return e(f)}}function fQe(t,e,n){return t.check(Dd,e,t.attempt(cQe,e,n))}function hQe(t){t.exit("gfmFootnoteDefinition")}function gQe(t,e,n){let r=this;return Ft(t,i,"gfmFootnoteDefinitionIndent",5);function i(o){let a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(o):n(o)}}function YH(t){let n=(t||{}).singleTilde,r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},p=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],m=s.parser.constructs.insideSpan.null;m&&Hi(p,p.length,0,Z1(m,a.slice(c+1,l),s)),Hi(p,p.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),Hi(a,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){let c=this.previous,u=this.events,d=0;return p;function p(f){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(f):(a.enter("strikethroughSequenceTemporary"),m(f))}function m(f){let h=xm(c);if(f===126)return d>1?l(f):(a.consume(f),d++,m);if(d<2&&!n)return l(f);let x=a.exit("strikethroughSequenceTemporary"),g=xm(f);return x._open=!g||g===2&&!!h,x._close=!h||h===2&&!!g,s(f)}}}var UE=class{constructor(){this.map=[],this.index=new Map}add(e,n,r){bQe(this,e,n,r)}consume(e){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(let o of i)e.push(o);i=r.pop()}this.map.length=0,this.index.clear()}};function bQe(t,e,n,r){if(n===0&&r.length===0)return;let i=t.index.get(e);if(i){i[1]+=n,i[2].push(...r);return}let o=[e,n,r];t.map.push(o),t.index.set(e,o)}function nye(t,e){let n=!1,r=[];for(;e<t.length;){let i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){let o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function QH(){return{flow:{null:{name:"table",tokenize:yQe,resolveAll:xQe}}}}function yQe(t,e,n){let r=this,i=0,o=0,a;return s;function s(C){let T=r.events.length-1;for(;T>-1;){let{type:$}=r.events[T][1];if($==="lineEnding"||$==="linePrefix")T--;else break}let M=T>-1?r.events[T][1].type:null,A=M==="tableHead"||M==="tableRow"?k:l;return A===k&&r.parser.lazy[r.now().line]?n(C):A(C)}function l(C){return t.enter("tableHead"),t.enter("tableRow"),c(C)}function c(C){return C===124||(a=!0,o+=1),u(C)}function u(C){return C===null?n(C):ct(C)?o>1?(o=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),m):n(C):Zt(C)?Ft(t,u,"whitespace")(C):(o+=1,a&&(a=!1,i+=1),C===124?(t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),a=!0,u):(t.enter("data"),d(C)))}function d(C){return C===null||C===124||Pn(C)?(t.exit("data"),u(C)):(t.consume(C),C===92?p:d)}function p(C){return C===92||C===124?(t.consume(C),d):d(C)}function m(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(t.enter("tableDelimiterRow"),a=!1,Zt(C)?Ft(t,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):f(C))}function f(C){return C===45||C===58?x(C):C===124?(a=!0,t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),h):v(C)}function h(C){return Zt(C)?Ft(t,x,"whitespace")(C):x(C)}function x(C){return C===58?(o+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(C),t.exit("tableDelimiterMarker"),g):C===45?(o+=1,g(C)):C===null||ct(C)?w(C):v(C)}function g(C){return C===45?(t.enter("tableDelimiterFiller"),y(C)):v(C)}function y(C){return C===45?(t.consume(C),y):C===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(C),t.exit("tableDelimiterMarker"),b):(t.exit("tableDelimiterFiller"),b(C))}function b(C){return Zt(C)?Ft(t,w,"whitespace")(C):w(C)}function w(C){return C===124?f(C):C===null||ct(C)?!a||i!==o?v(C):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(C)):v(C)}function v(C){return n(C)}function k(C){return t.enter("tableRow"),_(C)}function _(C){return C===124?(t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),_):C===null||ct(C)?(t.exit("tableRow"),e(C)):Zt(C)?Ft(t,_,"whitespace")(C):(t.enter("data"),L(C))}function L(C){return C===null||C===124||Pn(C)?(t.exit("data"),_(C)):(t.consume(C),C===92?S:L)}function S(C){return C===92||C===124?(t.consume(C),L):L(C)}}function xQe(t,e){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d,p=new UE;for(;++n<t.length;){let m=t[n],f=m[1];m[0]==="enter"?f.type==="tableHead"?(s=!1,l!==0&&(rye(p,e,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(n,0,[["enter",c,e]])):f.type==="tableRow"||f.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(n,0,[["enter",u,e]])),i=f.type==="tableDelimiterRow"?2:u?3:1):i&&(f.type==="data"||f.type==="tableDelimiterMarker"||f.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=VE(p,e,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):f.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=VE(p,e,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):f.type==="tableHead"?(s=!0,l=n):f.type==="tableRow"||f.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=VE(p,e,o,i,n,d)):a[1]!==0&&(d=VE(p,e,a,i,n,d)),i=0):i&&(f.type==="data"||f.type==="tableDelimiterMarker"||f.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&rye(p,e,l,c,u),p.consume(e.events),n=-1;++n<e.events.length;){let m=e.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=nye(e.events,n))}return t}function VE(t,e,n,r,i,o){let a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},a3(e.events,n[0])),t.add(n[0],0,[["exit",o,e]]));let l=a3(e.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",o,e]]),n[2]!==0){let c=a3(e.events,n[2]),u=a3(e.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(t.add(n[2],0,[["enter",d,e]]),r!==2){let p=e.events[n[2]],m=e.events[n[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let f=n[2]+1,h=n[3]-n[2]-1;t.add(f,h,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return i!==void 0&&(o.end=Object.assign({},a3(e.events,i)),t.add(i,0,[["exit",o,e]]),o=void 0),o}function rye(t,e,n,r,i){let o=[],a=a3(e.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,e])),r.end=Object.assign({},a),o.push(["exit",r,e]),t.add(n+1,0,o)}function a3(t,e){let n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}var wQe={name:"tasklistCheck",tokenize:vQe};function JH(){return{text:{91:wQe}}}function vQe(t,e,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),o)}function o(l){return Pn(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),s):n(l)}function s(l){return ct(l)?e(l):Zt(l)?t.check({tokenize:kQe},e,n)(l):n(l)}}function kQe(t,e,n){return Ft(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function iye(t){return wM([WH(),XH(),YH(t),QH(),JH()])}var CQe={};function ZE(t){let e=this,n=t||CQe,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(iye(n)),o.push(UH()),a.push(VH(n))}function nn(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-gfm",...e}}),t}var nG=Hg("strike_through");nn(nG,{displayName:"Attr<strikethrough>",group:"Strikethrough"});var f8=lh("strike_through",t=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:e=>e==="line-through"}],toDOM:e=>["del",t.get(nG.key)(e)],parseMarkdown:{match:e=>e.type==="delete",runner:(e,n,r)=>{e.openMark(r),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strike_through",runner:(e,n)=>{e.withMark(n,"delete")}}}));nn(f8.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});nn(f8.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});var rG=tn("ToggleStrikeThrough",t=>()=>jy(f8.type(t)));nn(rG,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});var aye=za(t=>Ag(/(?<![\w:/])(~{1,2})(.+?)\1(?!\w|\/)$/,f8.type(t)));nn(aye,{displayName:"InputRule<strikethrough>",group:"Strikethrough"});var iG=ra("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:t=>{let e=t.get(Zn);return()=>e.call(rG.key)}}});nn(iG.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});nn(iG.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});function sye(t,e){let n=e.content.firstChild;if(e.childCount!==1||n?.type.name!=="paragraph"){t.next(e.content);return}let r=n.lastChild,i=r?.type.name==="hardbreak"?n.content.cut(0,n.content.size-r.nodeSize):n.content;t.next(i)}var h8=y2e({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:t=>t.style.textAlign||"left",setDOMAttr:(t,e)=>{e.style=`text-align: ${t||"left"}`}}}}),jm=Ui("table",()=>({...h8.table,content:"table_header_row table_row+",disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="table",runner:(t,e,n)=>{let r=e.align,i=e.children.map((o,a)=>({...o,align:r,isHeader:a===0}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table",runner:(t,e)=>{let n=e.content.firstChild?.content;if(!n)return;let r=[];n.forEach(i=>{r.push(i.attrs.alignment)}),t.openNode("table",void 0,{align:r}),t.next(e.content),t.closeNode()}}}));nn(jm.node,{displayName:"NodeSchema<table>",group:"Table"});nn(jm.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});var g8=Ui("table_header_row",()=>({...h8.table_row,disableDropCursor:!0,content:"(table_header)*",parseDOM:[{tag:"tr[data-is-header]"},{tag:"tr",getAttrs:t=>t instanceof HTMLElement&&t.querySelector("th")?{}:!1}],toDOM(){return["tr",{"data-is-header":!0},0]},parseMarkdown:{match:t=>!!(t.type==="tableRow"&&t.isHeader),runner:(t,e,n)=>{let r=e.align,i=e.children.map((o,a)=>({...o,align:r[a],isHeader:e.isHeader}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow",void 0,{isHeader:!0}),t.next(e.content),t.closeNode())}}}));nn(g8.node,{displayName:"NodeSchema<tableHeaderRow>",group:"Table"});nn(g8.ctx,{displayName:"NodeSchemaCtx<tableHeaderRow>",group:"Table"});var l3=Ui("table_row",()=>({...h8.table_row,disableDropCursor:!0,content:"(table_cell)*",parseMarkdown:{match:t=>t.type==="tableRow",runner:(t,e,n)=>{let r=e.align,i=e.children.map((o,a)=>({...o,align:r[a]}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow"),t.next(e.content),t.closeNode())}}}));nn(l3.node,{displayName:"NodeSchema<tableRow>",group:"Table"});nn(l3.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});var b8=Ui("table_cell",()=>({...h8.table_cell,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!t.isHeader,runner:(t,e,n)=>{let r=e.align;t.openNode(n,{alignment:r}).openNode(t.schema.nodes.paragraph).next(e.children).closeNode().closeNode()}},toMarkdown:{match:t=>t.type.name==="table_cell",runner:(t,e)=>{t.openNode("tableCell"),sye(t,e),t.closeNode()}}}));nn(b8.node,{displayName:"NodeSchema<tableCell>",group:"Table"});nn(b8.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});var s3=Ui("table_header",()=>({...h8.table_header,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!!t.isHeader,runner:(t,e,n)=>{let r=e.align;t.openNode(n,{alignment:r}),t.openNode(t.schema.nodes.paragraph),t.next(e.children),t.closeNode(),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header",runner:(t,e)=>{t.openNode("tableCell"),sye(t,e),t.closeNode()}}}));nn(s3.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});nn(s3.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});function lye(t,e=3,n=3){let r=Array(n).fill(0).map(()=>b8.type(t).createAndFill()),i=Array(n).fill(0).map(()=>s3.type(t).createAndFill()),o=Array(e).fill(0).map((a,s)=>s===0?g8.type(t).create(null,i):l3.type(t).create(null,r));return jm.type(t).create(null,o)}function cye(t){return(e,n)=>r=>{n=n??r.selection.from;let i=r.doc.resolve(n),o=Bge(l=>l.type.name==="table")(i),a=o?{node:o.node,from:o.start}:void 0,s=t==="row";if(a){let l=cr.get(a.node);if(e>=0&&e<(s?l.height:l.width)){let c=l.positionAt(s?e:l.height-1,s?l.width-1:e,a.node),u=r.doc.resolve(a.from+c),d=s?Hr.rowSelection:Hr.colSelection,p=l.positionAt(s?e:0,s?0:e,a.node),m=r.doc.resolve(a.from+p);return Dz(r.setSelection(d(u,m)))}}return r}}var _Qe=cye("row"),SQe=cye("col");function uye(t,e,{map:n,tableStart:r,table:i},o){let a=Array(o).fill(0).reduce((l,c,u)=>l+i.child(u).nodeSize,r),s=Array(n.width).fill(0).map((l,c)=>{let u=i.nodeAt(n.map[c]);return b8.type(t).createAndFill({alignment:u?.attrs.alignment})});return e.insert(a,l3.type(t).create(null,s)),e}function LQe(t){let e=o3(t.$from);if(!e)return;let n=cr.get(e.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(r=>{let i=e.node.nodeAt(r),o=r+e.start;return{pos:o,start:o+1,node:i}})}function MQe(t){let e=LQe(t.selection);if(e&&e[0]){let n=t.doc.resolve(e[0].pos),r=e[e.length-1];if(r){let i=t.doc.resolve(r.pos);return Dz(t.setSelection(new Hr(i,n)))}}return t}var oG=tn("GoToPrevTableCell",()=>()=>LH(-1));nn(oG,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});var aG=tn("GoToNextTableCell",()=>()=>LH(1));nn(aG,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});var sG=tn("ExitTable",t=>()=>(e,n)=>{if(!ec(e))return!1;let{$head:r}=e.selection,i=Dge(r,jm.type(t));if(!i)return!1;let{to:o}=i,a=e.tr.replaceWith(o,o,Bu.type(t).createAndFill());return a.setSelection(Kt.near(a.doc.resolve(o),1)).scrollIntoView(),n?.(a),!0});nn(sG,{displayName:"Command<breakTableCommand>",group:"Table"});var dye=tn("InsertTable",t=>({row:e,col:n}={})=>(r,i)=>{let{selection:o,tr:a}=r,{from:s}=o,l=lye(t,e,n),c=a.replaceSelectionWith(l),u=Kt.findFrom(c.doc.resolve(s),1,!0);return u&&c.setSelection(u),i?.(c),!0});nn(dye,{displayName:"Command<insertTableCommand>",group:"Table"});var pye=tn("MoveRow",()=>({from:t,to:e,pos:n}={})=>$2e({from:t??0,to:e??0,pos:n}));nn(pye,{displayName:"Command<moveRowCommand>",group:"Table"});var mye=tn("MoveCol",()=>({from:t,to:e,pos:n}={})=>I2e({from:t??0,to:e??0,pos:n}));nn(mye,{displayName:"Command<moveColCommand>",group:"Table"});var fye=tn("SelectRow",()=>(t={index:0})=>(e,n)=>{let{tr:r}=e;return!!n?.(_Qe(t.index,t.pos)(r))});nn(fye,{displayName:"Command<selectRowCommand>",group:"Table"});var hye=tn("SelectCol",()=>(t={index:0})=>(e,n)=>{let{tr:r}=e;return!!n?.(SQe(t.index,t.pos)(r))});nn(hye,{displayName:"Command<selectColCommand>",group:"Table"});var gye=tn("SelectTable",()=>()=>(t,e)=>{let{tr:n}=t;return!!e?.(MQe(n))});nn(gye,{displayName:"Command<selectTableCommand>",group:"Table"});var bye=tn("DeleteSelectedCells",()=>()=>(t,e)=>{let{selection:n}=t;if(!(n instanceof Hr))return!1;let r=n.isRowSelection(),i=n.isColSelection();return r&&i?A2e(t,e):i?E2e(t,e):T2e(t,e)});nn(bye,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});var yye=tn("AddColBefore",()=>()=>L2e);nn(yye,{displayName:"Command<addColBeforeCommand>",group:"Table"});var xye=tn("AddColAfter",()=>()=>M2e);nn(xye,{displayName:"Command<addColAfterCommand>",group:"Table"});var wye=tn("AddRowBefore",t=>()=>(e,n)=>{if(!ec(e))return!1;if(n){let r=Nm(e);n(uye(t,e.tr,r,r.top))}return!0});nn(wye,{displayName:"Command<addRowBeforeCommand>",group:"Table"});var vye=tn("AddRowAfter",t=>()=>(e,n)=>{if(!ec(e))return!1;if(n){let r=Nm(e);n(uye(t,e.tr,r,r.bottom))}return!0});nn(vye,{displayName:"Command<addRowAfterCommand>",group:"Table"});var kye=tn("SetAlign",()=>(t="left")=>R2e("alignment",t));nn(kye,{displayName:"Command<setAlignCommand>",group:"Table"});var Cye=za(t=>new Io(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(e,n,r,i)=>{let o=e.doc.resolve(r);if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),jm.type(t)))return null;let a=lye(t,Math.max(Number(n.groups?.row??0),2),Number(n.groups?.col)),s=e.tr.replaceRangeWith(r,i,a);return s.setSelection(Qt.create(s.doc,r+3)).scrollIntoView()}));nn(Cye,{displayName:"InputRule<insertTableInputRule>",group:"Table"});var _ye=Lbe(t=>({run:(e,n,r)=>{if(r)return e;function i(c){let u=c.childCount,d=c.lastChild?.childCount??0;if(u===0||d===0)return Bu.type(t).create();let p=c.firstChild;if(!(d>0&&p&&p.childCount===0))return c;if(u>=3){let x=c.child(1),g=[];for(let w=0;w<x.childCount;w++){let v=x.child(w);g.push(s3.type(t).create(v.attrs,v.content,v.marks))}let y=p.type.create(p.attrs,g),b=[];for(let w=2;w<u;w++)b.push(c.child(w));return c.type.create(c.attrs,[y,...b])}let m=Array(d).fill(0).map(()=>s3.type(t).createAndFill()),f=new Je(De.from(m),0,0),h=p.replace(0,0,f);return c.replace(0,p.nodeSize,new Je(De.from(h),0,0))}function o(c){let u=l3.type(t),d=[],p=[],m=!1;function f(){if(p.length===0)return;let h=g8.type(t).createAndFill(),x=jm.type(t).create(null,[h,...p]);d.push(i(x)),p=[]}return c.forEach(h=>{h.type===u?(m=!0,p.push(h)):(f(),d.push(h))}),f(),m?De.from(d):c}function a(c){let u=o(c),d=u!==c,p=[];return u.forEach(m=>{if(m.type===jm.type(t)){let f=i(m);f!==m&&(d=!0),p.push(f)}else if(m.childCount>0){let f=a(m.content);f!==m.content?(d=!0,p.push(m.copy(f))):p.push(m)}else p.push(m)}),d?De.from(p):c}function s(c){let u=[],d=[];c.forEach(p=>d.push(p));for(let p=0;p<d.length;p++){let m=d[p],f=d[p+1];m.type===Bu.type(t)&&m.content.size===0&&f&&f.type===jm.type(t)||u.push(m)}return u.length<d.length?De.from(u):c}let l=a(e.content);return l=s(l),new Je(De.from(l),e.openStart,e.openEnd)}}));nn(_ye,{displayName:"PasteRule<table>",group:"Table"});var lG=ra("tableKeymap",{NextCell:{priority:100,shortcuts:["Mod-]","Tab"],command:t=>{let e=t.get(Zn);return()=>e.call(aG.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:t=>{let e=t.get(Zn);return()=>e.call(oG.key)}},ExitTable:{shortcuts:["Mod-Enter","Enter"],command:t=>{let e=t.get(Zn);return()=>e.call(sG.key)}}});nn(lG.ctx,{displayName:"KeymapCtx<table>",group:"Table"});nn(lG.shortcuts,{displayName:"Keymap<table>",group:"Table"});var eG="footnote_definition",oye="footnoteDefinition",cG=Ui("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`dl[data-type="${eG}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Wl(t);return{label:t.dataset.label}},contentElement:"dd"}],toDOM:t=>{let e=t.attrs.label;return["dl",{"data-label":e,"data-type":eG},["dt",e],["dd",0]]},parseMarkdown:{match:({type:t})=>t===oye,runner:(t,e,n)=>{t.openNode(n,{label:e.label}).next(e.children).closeNode()}},toMarkdown:{match:t=>t.type.name===eG,runner:(t,e)=>{t.openNode(oye,void 0,{label:e.attrs.label,identifier:e.attrs.label}).next(e.content).closeNode()}}}));nn(cG.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});nn(cG.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});var tG="footnote_reference",uG=Ui("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`sup[data-type="${tG}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Wl(t);return{label:t.dataset.label}}}],toDOM:t=>{let e=t.attrs.label;return["sup",{"data-label":e,"data-type":tG},e]},parseMarkdown:{match:({type:t})=>t==="footnoteReference",runner:(t,e,n)=>{t.addNode(n,{label:e.label})}},toMarkdown:{match:t=>t.type.name===tG,runner:(t,e)=>{t.addNode("footnoteReference",void 0,void 0,{label:e.attrs.label,identifier:e.attrs.label})}}}));nn(uG.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});nn(uG.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});var dG=Hd.extendSchema(t=>e=>{let n=t(e);return{...n,attrs:{...n.attrs,checked:{default:null,validate:"boolean|null"}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:r=>{if(!(r instanceof HTMLElement))throw Wl(r);return{label:r.dataset.label,listType:r.dataset.listType,spread:r.dataset.spread==="true",checked:r.dataset.checked?r.dataset.checked==="true":null}}},...n?.parseDOM||[]],toDOM:r=>n.toDOM&&r.attrs.checked==null?n.toDOM(r):["li",{"data-item-type":"task","data-label":r.attrs.label,"data-list-type":r.attrs.listType,"data-spread":r.attrs.spread,"data-checked":r.attrs.checked},0],parseMarkdown:{match:({type:r})=>r==="listItem",runner:(r,i,o)=>{if(i.checked==null){n.parseMarkdown.runner(r,i,o);return}let a=i.label!=null?`${i.label}.`:"\u2022",s=i.checked!=null?!!i.checked:null,l=i.label!=null?"ordered":"bullet",c=i.spread??!0;r.openNode(o,{label:a,listType:l,spread:c,checked:s}),r.next(i.children),r.closeNode()}},toMarkdown:{match:r=>r.type.name==="list_item",runner:(r,i)=>{if(i.attrs.checked==null){n.toMarkdown.runner(r,i);return}let o=i.attrs.label,a=i.attrs.listType,s=i.attrs.spread,l=i.attrs.checked;r.openNode("listItem",void 0,{label:o,listType:a,spread:s,checked:l}),r.next(i.content),r.closeNode()}}}});nn(dG.node,{displayName:"NodeSchema<taskListItem>",group:"ListItem"});nn(dG.ctx,{displayName:"NodeSchemaCtx<taskListItem>",group:"ListItem"});var Sye=za(()=>new Io(/^\[(?<checked>\s|x)\]\s$/,(t,e,n,r)=>{let i=t.doc.resolve(n),o=0,a=i.node(o);for(;a&&a.type.name!=="list_item";)o--,a=i.node(o);if(!a||a.attrs.checked!=null)return null;let s=e.groups?.checked==="x",l=i.before(o),c=t.tr;return c.deleteRange(n,r).setNodeMarkup(l,void 0,{...a.attrs,checked:s}),c}));nn(Sye,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});var EQe=[iG,lG].flat(),TQe=[Cye,Sye],RQe=[aye],AQe=[_ye],Lye=ko(()=>F2e);nn(Lye,{displayName:"Prose<autoInsertSpanPlugin>",group:"Prose"});var $Qe=ko(()=>P2e({}));nn($Qe,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});var Mye=ko(()=>O2e({allowTableNodeSelection:!0}));nn(Mye,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});var pG=$m("remarkGFM",()=>ZE);nn(pG.plugin,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});nn(pG.options,{displayName:"RemarkConfig<remarkGFMPlugin>",group:"Remark"});var IQe=new qr("MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN");function NQe(t,e){let n=0;return e.forEach((r,i,o)=>{r===t&&(n=o)}),n}function PQe(t,e){let n=t.content.findDiffStart(e.content);if(n==null)return null;let r=t.content.findDiffEnd(e.content);return r?{from:n,to:Math.max(r.b,n)}:null}var Eye=ko(()=>new Mr({key:IQe,appendTransaction:(t,e,n)=>{if(e.doc===n.doc)return;let r=PQe(e.doc,n.doc);if(!r)return;let i,o=(a,s)=>{if(a.type.name!=="table_cell")return;let l=n.doc.resolve(s),c=l.node(l.depth),u=l.node(l.depth-1).firstChild;if(!u)return;let d=NQe(a,c),p=u.maybeChild(d);if(!p)return;let m=p.attrs.alignment;m!==a.attrs.alignment&&(i||(i=n.tr),i.setNodeMarkup(s,void 0,{...a.attrs,alignment:m}))};return n.doc.nodesBetween(r.from,r.to,(a,s)=>a.type.name!=="table"?!0:(n.doc.nodesBetween(s,s+a.nodeSize,o),!1)),i}}));nn(Eye,{displayName:"Prose<keepTableAlignPlugin>",group:"Prose"});var jQe=[Eye,Lye,pG,Mye].flat(),OQe=[dG,jm,g8,l3,s3,b8,cG,uG,nG,f8].flat(),DQe=[aG,oG,sG,dye,pye,mye,fye,hye,gye,bye,wye,vye,yye,xye,kye,rG],Tye=[OQe,TQe,AQe,RQe,EQe,DQe,jQe].flat();var WE=200,ia=function(){};ia.prototype.append=function(e){return e.length?(e=ia.from(e),!this.length&&e||e.length<WE&&this.leafAppend(e)||this.length<WE&&e.leafPrepend(this)||this.appendInner(e)):this};ia.prototype.prepend=function(e){return e.length?ia.from(e).append(this):this};ia.prototype.appendInner=function(e){return new FQe(this,e)};ia.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?ia.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};ia.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};ia.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};ia.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(e(o,a))},n,r),i};ia.from=function(e){return e instanceof ia?e:e&&e.length?new Rye(e):ia.empty};var Rye=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new e(this.values.slice(i,o))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,o,a,s){for(var l=o;l<a;l++)if(i(this.values[l],s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(i,o,a,s){for(var l=o-1;l>=a;l--)if(i(this.values[l],s+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=WE)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=WE)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(ia);ia.empty=new Rye([]);var FQe=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,o,a){var s=this.left.length;if(i<s&&this.left.forEachInner(r,i,Math.min(o,s),a)===!1||o>s&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o<s&&this.left.forEachInvertedInner(r,Math.min(i,s),o,a)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var o=this.left.length;return i<=o?this.left.slice(r,i):r>=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(ia),mG=ia;var BQe=500,Kg=class t{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=e.tr,s,l,c=[],u=[];return this.items.forEach((d,p)=>{if(!d.step){i||(i=this.remapping(r,p+1),o=i.maps.length),o--,u.push(d);return}if(i){u.push(new Ud(d.map));let m=d.step.map(i.slice(o)),f;m&&a.maybeStep(m).doc&&(f=a.mapping.maps[a.mapping.maps.length-1],c.push(new Ud(f,void 0,void 0,c.length+u.length))),o--,f&&i.appendMap(f,o)}else a.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(o)):d.selection,l=new t(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(e,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let u=0;u<e.steps.length;u++){let d=e.steps[u].invert(e.docs[u]),p=new Ud(e.mapping.maps[u],d,n),m;(m=l&&l.merge(p))&&(p=m,u?o.pop():s=s.slice(0,s.length-1)),o.push(p),n&&(a++,n=void 0),i||(l=p)}let c=a-r.depth;return c>qQe&&(s=zQe(s,c),a-=c),new t(s.append(o),a)}remapping(e,n){let r=new Vx;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},e,n),r}addMaps(e){return this.eventCount==0?this:new t(this.items.append(e.map(n=>new Ud(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=e.mapping,a=e.steps.length,s=this.eventCount;this.items.forEach(p=>{p.selection&&s--},i);let l=n;this.items.forEach(p=>{let m=o.getMirror(--l);if(m==null)return;a=Math.min(a,m);let f=o.maps[m];if(p.step){let h=e.steps[m].invert(e.docs[m]),x=p.selection&&p.selection.map(o.slice(l+1,m));x&&s++,r.push(new Ud(f,h,x))}else r.push(new Ud(f))},i);let c=[];for(let p=n;p<a;p++)c.push(new Ud(o.maps[p]));let u=this.items.slice(0,i).append(c).append(r),d=new t(u,s);return d.emptyItemCount()>BQe&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=e)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=a.selection&&a.selection.map(n.slice(r));u&&o++;let d=new Ud(c.invert(),l,u),p,m=i.length-1;(p=i.length&&i[m].merge(d))?i[m]=p:i.push(d)}}else a.map&&r--},this.items.length,0),new t(mG.from(i.reverse()),o)}};Kg.empty=new Kg(mG.empty,0);function zQe(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}var Ud=class t{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new t(n.getMap().invert(),n,this.selection)}}},Vd=class{constructor(e,n,r,i,o){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}},qQe=20;function HQe(t,e,n,r){let i=n.getMeta(Wg),o;if(i)return i.historyState;n.getMeta(VQe)&&(t=new Vd(t.done,t.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(a&&a.getMeta(Wg))return a.getMeta(Wg).redo?new Vd(t.done.addTransform(n,void 0,r,KE(e)),t.undone,Aye(n.mapping.maps),t.prevTime,t.prevComposition):new Vd(t.done,t.undone.addTransform(n,void 0,r,KE(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=t.prevTime==0||!a&&t.prevComposition!=s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!GQe(n,t.prevRanges)),c=a?fG(t.prevRanges,n.mapping):Aye(n.mapping.maps);return new Vd(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,KE(e)),Kg.empty,c,n.time,s??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Vd(t.done.rebased(n,o),t.undone.rebased(n,o),fG(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Vd(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),fG(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function GQe(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let o=0;o<e.length;o+=2)r<=e[o+1]&&i>=e[o]&&(n=!0)}),n}function Aye(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,o,a)=>e.push(o,a));return e}function fG(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),o=e.map(t[r+1],-1);i<=o&&n.push(i,o)}return n}function UQe(t,e,n){let r=KE(e),i=Wg.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,r);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),i,r),l=new Vd(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(Wg,{redo:n,historyState:l})}var hG=!1,$ye=null;function KE(t){let e=t.plugins;if($ye!=e){hG=!1,$ye=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){hG=!0;break}}return hG}var Wg=new qr("history"),VQe=new qr("closeHistory");function Iye(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Mr({key:Wg,state:{init(){return new Vd(Kg.empty,Kg.empty,null,0,-1)},apply(e,n,r){return HQe(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,i=r=="historyUndo"?gG:r=="historyRedo"?bG:null;return!i||!e.editable?!1:(n.preventDefault(),i(e.state,e.dispatch))}}}})}function XE(t,e){return(n,r)=>{let i=Wg.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let o=UQe(i,n,t);o&&r(e?o.scrollIntoView():o)}return!0}}var gG=XE(!1,!0),bG=XE(!0,!0),WKt=XE(!1,!1),KKt=XE(!0,!1);function c3(t,e){return Object.assign(t,{meta:{package:"@milkdown/plugin-history",...e}}),t}var yG=tn("Undo",()=>()=>gG);c3(yG,{displayName:"Command<undo>"});var xG=tn("Redo",()=>()=>bG);c3(xG,{displayName:"Command<redo>"});var wG=Jc({},"historyProviderConfig");c3(wG,{displayName:"Ctx<historyProviderConfig>"});var Nye=ko(t=>Iye(t.get(wG.key)));c3(Nye,{displayName:"Ctx<historyProviderPlugin>"});var vG=ra("historyKeymap",{Undo:{shortcuts:"Mod-z",command:t=>{let e=t.get(Zn);return()=>e.call(yG.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:t=>{let e=t.get(Zn);return()=>e.call(xG.key)}}});c3(vG.ctx,{displayName:"KeymapCtx<history>"});c3(vG.shortcuts,{displayName:"Keymap<history>"});var Pye=[wG,Nye,vG,yG,xG].flat();function kG(t){if(!t)return!1;if(Array.isArray(t))return t.length>1?!1:kG(t[0]);let e=t.content;return e?kG(e):t.type==="text"}function ZQe(t,e){return Object.assign(t,{meta:{package:"@milkdown/plugin-clipboard",...e}}),t}function jye(t,e){let n=Oge(e);if(n)return t.dispatch(t.state.tr.replaceSelectionWith(n,!0)),!0;try{return t.dispatch(t.state.tr.replaceSelection(e)),!0}catch{return!1}}var CG=ko(t=>{let e=t.get(Ql);t.update(qg,r=>({...r,editable:r.editable??(()=>!0),transformPastedHTML:(i,o)=>{let a=r.transformPastedHTML;return a&&(i=a(i,o)),i.includes("docs-internal-guid")&&(i=i.replace(/<b[^>]*id="docs-internal-guid[^"]*"[^>]*>([\s\S]*)<\/b>/,"$1"),i=i.replace(/<div[^>]*>(<table[\s\S]*?<\/table>)<\/div>/g,"$1")),i}}));let n=new qr("MILKDOWN_CLIPBOARD");return new Mr({key:n,props:{handlePaste:(r,i,o)=>{let a=t.get(sh),s=r.props.editable?.(r.state),{clipboardData:l}=i;if(!s||!l||r.state.selection.$from.node().type.spec.code)return!1;let c=l.getData("text/plain"),u=l.getData("vscode-editor-data");if(u){let f=JSON.parse(u)?.mode;if(c&&f){let{tr:h}=r.state,x=Fge("code_block",e);return h.replaceSelectionWith(x.create({language:f})).setSelection(Qt.near(h.doc.resolve(Math.max(0,h.selection.from-2)))).insertText(c.replace(/\r\n?/g,` -`)),r.dispatch(h),!0}}let d=l.getData("text/html");if(d.length===0&&c.length===0)return!1;if(d.length>0&&o)return jye(r,o);let p=Fd.fromSchema(e),m;if(d.length===0){let f=a(c);if(!f||typeof f=="string")return!1;m=Bd.fromSchema(e).serializeFragment(f.content)}else{let f=document.createElement("template");f.innerHTML=d,m=f.content.cloneNode(!0),f.remove()}return jye(r,p.parseSlice(m))},clipboardTextSerializer:r=>{let i=t.get(zg);if(kG(r.content.toJSON()))return r.content.textBetween(0,r.content.size,` +`))}function l(m,f,h,x){let g=h.enter("tableCell"),y=h.enter("phrasing"),b=h.containerPhrasing(m,{...x,before:o,after:o});return y(),g(),b}function c(m,f){return U2e(m,{align:f,alignDelimiters:r,padding:n,stringLength:i})}function u(m,f,h){let x=m.children,g=-1,y=[],b=f.enter("table");for(;++g<x.length;)y[g]=d(x[g],f,h);return b(),y}function d(m,f,h){let x=m.children,g=-1,y=[],b=f.enter("tableRow");for(;++g<x.length;)y[g]=l(x[g],m,f,h);return b(),y}function p(m,f,h){let x=wg.inlineCode(m,f,h);return h.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function HH(){return{exit:{taskListCheckValueChecked:Z2e,taskListCheckValueUnchecked:Z2e,paragraph:eQe}}}function GH(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tQe}}}function Z2e(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function eQe(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=e.children,o=-1,a;for(;++o<i.length;){let s=i[o];if(s.type==="paragraph"){a=s;break}}a===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(t)}function tQe(t,e,n,r){let i=t.children[0],o=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=wg.listItem(t,e,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function UH(){return[NH(),jH(),DH(),zH(),HH()]}function VH(t){return{extensions:[PH(),OH(t),FH(),qH(t),GH()]}}var nQe={tokenize:sQe,partial:!0},W2e={tokenize:lQe,partial:!0},K2e={tokenize:cQe,partial:!0},X2e={tokenize:uQe,partial:!0},rQe={tokenize:dQe,partial:!0},Y2e={name:"wwwAutolink",tokenize:oQe,previous:J2e},Q2e={name:"protocolAutolink",tokenize:aQe,previous:eye},jm={name:"emailAutolink",tokenize:iQe,previous:tye},Gd={};function WH(){return{text:Gd}}var Wg=48;for(;Wg<123;)Gd[Wg]=jm,Wg++,Wg===58?Wg=65:Wg===91&&(Wg=97);Gd[43]=jm;Gd[45]=jm;Gd[46]=jm;Gd[95]=jm;Gd[72]=[jm,Q2e];Gd[104]=[jm,Q2e];Gd[87]=[jm,Y2e];Gd[119]=[jm,Y2e];function iQe(t,e,n){let r=this,i,o;return a;function a(d){return!ZH(d)||!tye.call(r,r.previous)||KH(r.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),s(d))}function s(d){return ZH(d)?(t.consume(d),s):d===64?(t.consume(d),l):n(d)}function l(d){return d===46?t.check(rQe,u,c)(d):d===45||d===95||vo(d)?(o=!0,t.consume(d),l):u(d)}function c(d){return t.consume(d),i=!0,l}function u(d){return o&&i&&wo(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function oQe(t,e,n){let r=this;return i;function i(a){return a!==87&&a!==119||!J2e.call(r,r.previous)||KH(r.events)?n(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(nQe,t.attempt(W2e,t.attempt(K2e,o),n),n)(a))}function o(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}function aQe(t,e,n){let r=this,i="",o=!1;return a;function a(d){return(d===72||d===104)&&eye.call(r,r.previous)&&!KH(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),t.consume(d),s):n(d)}function s(d){if(wo(d)&&i.length<5)return i+=String.fromCodePoint(d),t.consume(d),s;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return t.consume(d),l}return n(d)}function l(d){return d===47?(t.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||mg(d)||Pn(d)||Od(d)||fg(d)?n(d):t.attempt(W2e,t.attempt(K2e,u),n)(d)}function u(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function sQe(t,e,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,t.consume(a),i):a===46&&r===3?(t.consume(a),o):n(a)}function o(a){return a===null?n(a):e(a)}}function lQe(t,e,n){let r,i,o;return a;function a(c){return c===46||c===95?t.check(X2e,l,s)(c):c===null||Pn(c)||Od(c)||c!==45&&fg(c)?l(c):(o=!0,t.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),t.consume(c),a}function l(c){return i||r||!o?n(c):e(c)}}function cQe(t,e){let n=0,r=0;return i;function i(a){return a===40?(n++,t.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check(X2e,e,o)(a):a===null||Pn(a)||Od(a)?e(a):(t.consume(a),i)}function o(a){return a===41&&r++,t.consume(a),i}}function uQe(t,e,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(t.consume(s),r):s===38?(t.consume(s),o):s===93?(t.consume(s),i):s===60||s===null||Pn(s)||Od(s)?e(s):n(s)}function i(s){return s===null||s===40||s===91||Pn(s)||Od(s)?e(s):r(s)}function o(s){return wo(s)?a(s):n(s)}function a(s){return s===59?(t.consume(s),r):wo(s)?(t.consume(s),a):n(s)}}function dQe(t,e,n){return r;function r(o){return t.consume(o),i}function i(o){return vo(o)?n(o):e(o)}}function J2e(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Pn(t)}function eye(t){return!wo(t)}function tye(t){return!(t===47||ZH(t))}function ZH(t){return t===43||t===45||t===46||t===95||vo(t)}function KH(t){let e=t.length,n=!1;for(;e--;){let r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var pQe={tokenize:xQe,partial:!0};function XH(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gQe,continuation:{tokenize:bQe},exit:yQe}},text:{91:{name:"gfmFootnoteCall",tokenize:hQe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:mQe,resolveTo:fQe}}}}function mQe(t,e,n){let r=this,i=r.events.length,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);let c=ja(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function fQe(t,e){let n=t.length,r;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){r=t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[t[n+1],t[n+2],["enter",i,e],t[n+3],t[n+4],["enter",o,e],["exit",o,e],["enter",a,e],["enter",s,e],["exit",s,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(n,t.length-n+1,...l),t}function hQe(t,e,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o=0,a;return s;function s(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||Pn(d))return n(d);if(d===93){t.exit("chunkString");let p=t.exit("gfmFootnoteCallString");return i.includes(ja(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return Pn(d)||(a=!0),o++,t.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(t.consume(d),o++,c):c(d)}}function gQe(t,e,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o,a=0,s;return l;function l(f){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(f),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(f){return f===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(f),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",u):n(f)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Pn(f))return n(f);if(f===93){t.exit("chunkString");let h=t.exit("gfmFootnoteDefinitionLabelString");return o=ja(r.sliceSerialize(h)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(f),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return Pn(f)||(s=!0),a++,t.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(t.consume(f),a++,u):u(f)}function p(f){return f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),i.includes(o)||i.push(o),Bt(t,m,"gfmFootnoteDefinitionWhitespace")):n(f)}function m(f){return e(f)}}function bQe(t,e,n){return t.check(Dd,e,t.attempt(pQe,e,n))}function yQe(t){t.exit("gfmFootnoteDefinition")}function xQe(t,e,n){let r=this;return Bt(t,i,"gfmFootnoteDefinitionIndent",5);function i(o){let a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(o):n(o)}}function YH(t){let n=(t||{}).singleTilde,r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},p=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],m=s.parser.constructs.insideSpan.null;m&&Hi(p,p.length,0,K1(m,a.slice(c+1,l),s)),Hi(p,p.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),Hi(a,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){let c=this.previous,u=this.events,d=0;return p;function p(f){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(f):(a.enter("strikethroughSequenceTemporary"),m(f))}function m(f){let h=wm(c);if(f===126)return d>1?l(f):(a.consume(f),d++,m);if(d<2&&!n)return l(f);let x=a.exit("strikethroughSequenceTemporary"),g=wm(f);return x._open=!g||g===2&&!!h,x._close=!h||h===2&&!!g,s(f)}}}var WE=class{constructor(){this.map=[],this.index=new Map}add(e,n,r){wQe(this,e,n,r)}consume(e){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(let o of i)e.push(o);i=r.pop()}this.map.length=0,this.index.clear()}};function wQe(t,e,n,r){if(n===0&&r.length===0)return;let i=t.index.get(e);if(i){i[1]+=n,i[2].push(...r);return}let o=[e,n,r];t.map.push(o),t.index.set(e,o)}function nye(t,e){let n=!1,r=[];for(;e<t.length;){let i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){let o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function QH(){return{flow:{null:{name:"table",tokenize:vQe,resolveAll:kQe}}}}function vQe(t,e,n){let r=this,i=0,o=0,a;return s;function s(C){let T=r.events.length-1;for(;T>-1;){let{type:$}=r.events[T][1];if($==="lineEnding"||$==="linePrefix")T--;else break}let M=T>-1?r.events[T][1].type:null,A=M==="tableHead"||M==="tableRow"?k:l;return A===k&&r.parser.lazy[r.now().line]?n(C):A(C)}function l(C){return t.enter("tableHead"),t.enter("tableRow"),c(C)}function c(C){return C===124||(a=!0,o+=1),u(C)}function u(C){return C===null?n(C):ct(C)?o>1?(o=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),m):n(C):Zt(C)?Bt(t,u,"whitespace")(C):(o+=1,a&&(a=!1,i+=1),C===124?(t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),a=!0,u):(t.enter("data"),d(C)))}function d(C){return C===null||C===124||Pn(C)?(t.exit("data"),u(C)):(t.consume(C),C===92?p:d)}function p(C){return C===92||C===124?(t.consume(C),d):d(C)}function m(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(t.enter("tableDelimiterRow"),a=!1,Zt(C)?Bt(t,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):f(C))}function f(C){return C===45||C===58?x(C):C===124?(a=!0,t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),h):v(C)}function h(C){return Zt(C)?Bt(t,x,"whitespace")(C):x(C)}function x(C){return C===58?(o+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(C),t.exit("tableDelimiterMarker"),g):C===45?(o+=1,g(C)):C===null||ct(C)?w(C):v(C)}function g(C){return C===45?(t.enter("tableDelimiterFiller"),y(C)):v(C)}function y(C){return C===45?(t.consume(C),y):C===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(C),t.exit("tableDelimiterMarker"),b):(t.exit("tableDelimiterFiller"),b(C))}function b(C){return Zt(C)?Bt(t,w,"whitespace")(C):w(C)}function w(C){return C===124?f(C):C===null||ct(C)?!a||i!==o?v(C):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(C)):v(C)}function v(C){return n(C)}function k(C){return t.enter("tableRow"),_(C)}function _(C){return C===124?(t.enter("tableCellDivider"),t.consume(C),t.exit("tableCellDivider"),_):C===null||ct(C)?(t.exit("tableRow"),e(C)):Zt(C)?Bt(t,_,"whitespace")(C):(t.enter("data"),L(C))}function L(C){return C===null||C===124||Pn(C)?(t.exit("data"),_(C)):(t.consume(C),C===92?S:L)}function S(C){return C===92||C===124?(t.consume(C),L):L(C)}}function kQe(t,e){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d,p=new WE;for(;++n<t.length;){let m=t[n],f=m[1];m[0]==="enter"?f.type==="tableHead"?(s=!1,l!==0&&(rye(p,e,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(n,0,[["enter",c,e]])):f.type==="tableRow"||f.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(n,0,[["enter",u,e]])),i=f.type==="tableDelimiterRow"?2:u?3:1):i&&(f.type==="data"||f.type==="tableDelimiterMarker"||f.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=KE(p,e,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):f.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=KE(p,e,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):f.type==="tableHead"?(s=!0,l=n):f.type==="tableRow"||f.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=KE(p,e,o,i,n,d)):a[1]!==0&&(d=KE(p,e,a,i,n,d)),i=0):i&&(f.type==="data"||f.type==="tableDelimiterMarker"||f.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&rye(p,e,l,c,u),p.consume(e.events),n=-1;++n<e.events.length;){let m=e.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=nye(e.events,n))}return t}function KE(t,e,n,r,i,o){let a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},s3(e.events,n[0])),t.add(n[0],0,[["exit",o,e]]));let l=s3(e.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",o,e]]),n[2]!==0){let c=s3(e.events,n[2]),u=s3(e.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(t.add(n[2],0,[["enter",d,e]]),r!==2){let p=e.events[n[2]],m=e.events[n[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let f=n[2]+1,h=n[3]-n[2]-1;t.add(f,h,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return i!==void 0&&(o.end=Object.assign({},s3(e.events,i)),t.add(i,0,[["exit",o,e]]),o=void 0),o}function rye(t,e,n,r,i){let o=[],a=s3(e.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,e])),r.end=Object.assign({},a),o.push(["exit",r,e]),t.add(n+1,0,o)}function s3(t,e){let n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}var CQe={name:"tasklistCheck",tokenize:_Qe};function JH(){return{text:{91:CQe}}}function _Qe(t,e,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),o)}function o(l){return Pn(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),s):n(l)}function s(l){return ct(l)?e(l):Zt(l)?t.check({tokenize:SQe},e,n)(l):n(l)}}function SQe(t,e,n){return Bt(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function iye(t){return CM([WH(),XH(),YH(t),QH(),JH()])}var LQe={};function XE(t){let e=this,n=t||LQe,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(iye(n)),o.push(UH()),a.push(VH(n))}function nn(t,e){return Object.assign(t,{meta:{package:"@milkdown/preset-gfm",...e}}),t}var nG=Gg("strike_through");nn(nG,{displayName:"Attr<strikethrough>",group:"Strikethrough"});var f8=uh("strike_through",t=>({parseDOM:[{tag:"del"},{style:"text-decoration",getAttrs:e=>e==="line-through"}],toDOM:e=>["del",t.get(nG.key)(e)],parseMarkdown:{match:e=>e.type==="delete",runner:(e,n,r)=>{e.openMark(r),e.next(n.children),e.closeMark(r)}},toMarkdown:{match:e=>e.type.name==="strike_through",runner:(e,n)=>{e.withMark(n,"delete")}}}));nn(f8.mark,{displayName:"MarkSchema<strikethrough>",group:"Strikethrough"});nn(f8.ctx,{displayName:"MarkSchemaCtx<strikethrough>",group:"Strikethrough"});var rG=tn("ToggleStrikeThrough",t=>()=>Oy(f8.type(t)));nn(rG,{displayName:"Command<ToggleStrikethrough>",group:"Strikethrough"});var aye=za(t=>$g(/(?<![\w:/])(~{1,2})(.+?)\1(?!\w|\/)$/,f8.type(t)));nn(aye,{displayName:"InputRule<strikethrough>",group:"Strikethrough"});var iG=ra("strikeThroughKeymap",{ToggleStrikethrough:{shortcuts:"Mod-Alt-x",command:t=>{let e=t.get(Zn);return()=>e.call(rG.key)}}});nn(iG.ctx,{displayName:"KeymapCtx<strikethrough>",group:"Strikethrough"});nn(iG.shortcuts,{displayName:"Keymap<strikethrough>",group:"Strikethrough"});function sye(t,e){let n=e.content.firstChild;if(e.childCount!==1||n?.type.name!=="paragraph"){t.next(e.content);return}let r=n.lastChild,i=r?.type.name==="hardbreak"?n.content.cut(0,n.content.size-r.nodeSize):n.content;t.next(i)}var h8=y2e({tableGroup:"block",cellContent:"paragraph",cellAttributes:{alignment:{default:"left",getFromDOM:t=>t.style.textAlign||"left",setDOMAttr:(t,e)=>{e.style=`text-align: ${t||"left"}`}}}}),Om=Ui("table",()=>({...h8.table,content:"table_header_row table_row+",disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="table",runner:(t,e,n)=>{let r=e.align,i=e.children.map((o,a)=>({...o,align:r,isHeader:a===0}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table",runner:(t,e)=>{let n=e.content.firstChild?.content;if(!n)return;let r=[];n.forEach(i=>{r.push(i.attrs.alignment)}),t.openNode("table",void 0,{align:r}),t.next(e.content),t.closeNode()}}}));nn(Om.node,{displayName:"NodeSchema<table>",group:"Table"});nn(Om.ctx,{displayName:"NodeSchemaCtx<table>",group:"Table"});var g8=Ui("table_header_row",()=>({...h8.table_row,disableDropCursor:!0,content:"(table_header)*",parseDOM:[{tag:"tr[data-is-header]"},{tag:"tr",getAttrs:t=>t instanceof HTMLElement&&t.querySelector("th")?{}:!1}],toDOM(){return["tr",{"data-is-header":!0},0]},parseMarkdown:{match:t=>!!(t.type==="tableRow"&&t.isHeader),runner:(t,e,n)=>{let r=e.align,i=e.children.map((o,a)=>({...o,align:r[a],isHeader:e.isHeader}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow",void 0,{isHeader:!0}),t.next(e.content),t.closeNode())}}}));nn(g8.node,{displayName:"NodeSchema<tableHeaderRow>",group:"Table"});nn(g8.ctx,{displayName:"NodeSchemaCtx<tableHeaderRow>",group:"Table"});var c3=Ui("table_row",()=>({...h8.table_row,disableDropCursor:!0,content:"(table_cell)*",parseMarkdown:{match:t=>t.type==="tableRow",runner:(t,e,n)=>{let r=e.align,i=e.children.map((o,a)=>({...o,align:r[a]}));t.openNode(n),t.next(i),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_row",runner:(t,e)=>{e.content.size!==0&&(t.openNode("tableRow"),t.next(e.content),t.closeNode())}}}));nn(c3.node,{displayName:"NodeSchema<tableRow>",group:"Table"});nn(c3.ctx,{displayName:"NodeSchemaCtx<tableRow>",group:"Table"});var b8=Ui("table_cell",()=>({...h8.table_cell,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!t.isHeader,runner:(t,e,n)=>{let r=e.align;t.openNode(n,{alignment:r}).openNode(t.schema.nodes.paragraph).next(e.children).closeNode().closeNode()}},toMarkdown:{match:t=>t.type.name==="table_cell",runner:(t,e)=>{t.openNode("tableCell"),sye(t,e),t.closeNode()}}}));nn(b8.node,{displayName:"NodeSchema<tableCell>",group:"Table"});nn(b8.ctx,{displayName:"NodeSchemaCtx<tableCell>",group:"Table"});var l3=Ui("table_header",()=>({...h8.table_header,disableDropCursor:!0,parseMarkdown:{match:t=>t.type==="tableCell"&&!!t.isHeader,runner:(t,e,n)=>{let r=e.align;t.openNode(n,{alignment:r}),t.openNode(t.schema.nodes.paragraph),t.next(e.children),t.closeNode(),t.closeNode()}},toMarkdown:{match:t=>t.type.name==="table_header",runner:(t,e)=>{t.openNode("tableCell"),sye(t,e),t.closeNode()}}}));nn(l3.node,{displayName:"NodeSchema<tableHeader>",group:"Table"});nn(l3.ctx,{displayName:"NodeSchemaCtx<tableHeader>",group:"Table"});function lye(t,e=3,n=3){let r=Array(n).fill(0).map(()=>b8.type(t).createAndFill()),i=Array(n).fill(0).map(()=>l3.type(t).createAndFill()),o=Array(e).fill(0).map((a,s)=>s===0?g8.type(t).create(null,i):c3.type(t).create(null,r));return Om.type(t).create(null,o)}function cye(t){return(e,n)=>r=>{n=n??r.selection.from;let i=r.doc.resolve(n),o=Bge(l=>l.type.name==="table")(i),a=o?{node:o.node,from:o.start}:void 0,s=t==="row";if(a){let l=cr.get(a.node);if(e>=0&&e<(s?l.height:l.width)){let c=l.positionAt(s?e:l.height-1,s?l.width-1:e,a.node),u=r.doc.resolve(a.from+c),d=s?Hr.rowSelection:Hr.colSelection,p=l.positionAt(s?e:0,s?0:e,a.node),m=r.doc.resolve(a.from+p);return Dz(r.setSelection(d(u,m)))}}return r}}var MQe=cye("row"),EQe=cye("col");function uye(t,e,{map:n,tableStart:r,table:i},o){let a=Array(o).fill(0).reduce((l,c,u)=>l+i.child(u).nodeSize,r),s=Array(n.width).fill(0).map((l,c)=>{let u=i.nodeAt(n.map[c]);return b8.type(t).createAndFill({alignment:u?.attrs.alignment})});return e.insert(a,c3.type(t).create(null,s)),e}function TQe(t){let e=a3(t.$from);if(!e)return;let n=cr.get(e.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map(r=>{let i=e.node.nodeAt(r),o=r+e.start;return{pos:o,start:o+1,node:i}})}function RQe(t){let e=TQe(t.selection);if(e&&e[0]){let n=t.doc.resolve(e[0].pos),r=e[e.length-1];if(r){let i=t.doc.resolve(r.pos);return Dz(t.setSelection(new Hr(i,n)))}}return t}var oG=tn("GoToPrevTableCell",()=>()=>LH(-1));nn(oG,{displayName:"Command<goToPrevTableCellCommand>",group:"Table"});var aG=tn("GoToNextTableCell",()=>()=>LH(1));nn(aG,{displayName:"Command<goToNextTableCellCommand>",group:"Table"});var sG=tn("ExitTable",t=>()=>(e,n)=>{if(!ec(e))return!1;let{$head:r}=e.selection,i=Dge(r,Om.type(t));if(!i)return!1;let{to:o}=i,a=e.tr.replaceWith(o,o,Bu.type(t).createAndFill());return a.setSelection(Kt.near(a.doc.resolve(o),1)).scrollIntoView(),n?.(a),!0});nn(sG,{displayName:"Command<breakTableCommand>",group:"Table"});var dye=tn("InsertTable",t=>({row:e,col:n}={})=>(r,i)=>{let{selection:o,tr:a}=r,{from:s}=o,l=lye(t,e,n),c=a.replaceSelectionWith(l),u=Kt.findFrom(c.doc.resolve(s),1,!0);return u&&c.setSelection(u),i?.(c),!0});nn(dye,{displayName:"Command<insertTableCommand>",group:"Table"});var pye=tn("MoveRow",()=>({from:t,to:e,pos:n}={})=>$2e({from:t??0,to:e??0,pos:n}));nn(pye,{displayName:"Command<moveRowCommand>",group:"Table"});var mye=tn("MoveCol",()=>({from:t,to:e,pos:n}={})=>I2e({from:t??0,to:e??0,pos:n}));nn(mye,{displayName:"Command<moveColCommand>",group:"Table"});var fye=tn("SelectRow",()=>(t={index:0})=>(e,n)=>{let{tr:r}=e;return!!n?.(MQe(t.index,t.pos)(r))});nn(fye,{displayName:"Command<selectRowCommand>",group:"Table"});var hye=tn("SelectCol",()=>(t={index:0})=>(e,n)=>{let{tr:r}=e;return!!n?.(EQe(t.index,t.pos)(r))});nn(hye,{displayName:"Command<selectColCommand>",group:"Table"});var gye=tn("SelectTable",()=>()=>(t,e)=>{let{tr:n}=t;return!!e?.(RQe(n))});nn(gye,{displayName:"Command<selectTableCommand>",group:"Table"});var bye=tn("DeleteSelectedCells",()=>()=>(t,e)=>{let{selection:n}=t;if(!(n instanceof Hr))return!1;let r=n.isRowSelection(),i=n.isColSelection();return r&&i?A2e(t,e):i?E2e(t,e):T2e(t,e)});nn(bye,{displayName:"Command<deleteSelectedCellsCommand>",group:"Table"});var yye=tn("AddColBefore",()=>()=>L2e);nn(yye,{displayName:"Command<addColBeforeCommand>",group:"Table"});var xye=tn("AddColAfter",()=>()=>M2e);nn(xye,{displayName:"Command<addColAfterCommand>",group:"Table"});var wye=tn("AddRowBefore",t=>()=>(e,n)=>{if(!ec(e))return!1;if(n){let r=Pm(e);n(uye(t,e.tr,r,r.top))}return!0});nn(wye,{displayName:"Command<addRowBeforeCommand>",group:"Table"});var vye=tn("AddRowAfter",t=>()=>(e,n)=>{if(!ec(e))return!1;if(n){let r=Pm(e);n(uye(t,e.tr,r,r.bottom))}return!0});nn(vye,{displayName:"Command<addRowAfterCommand>",group:"Table"});var kye=tn("SetAlign",()=>(t="left")=>R2e("alignment",t));nn(kye,{displayName:"Command<setAlignCommand>",group:"Table"});var Cye=za(t=>new Io(/^\|(?<col>\d+)[xX](?<row>\d+)\|\s$/,(e,n,r,i)=>{let o=e.doc.resolve(r);if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),Om.type(t)))return null;let a=lye(t,Math.max(Number(n.groups?.row??0),2),Number(n.groups?.col)),s=e.tr.replaceRangeWith(r,i,a);return s.setSelection(Qt.create(s.doc,r+3)).scrollIntoView()}));nn(Cye,{displayName:"InputRule<insertTableInputRule>",group:"Table"});var _ye=Lbe(t=>({run:(e,n,r)=>{if(r)return e;function i(c){let u=c.childCount,d=c.lastChild?.childCount??0;if(u===0||d===0)return Bu.type(t).create();let p=c.firstChild;if(!(d>0&&p&&p.childCount===0))return c;if(u>=3){let x=c.child(1),g=[];for(let w=0;w<x.childCount;w++){let v=x.child(w);g.push(l3.type(t).create(v.attrs,v.content,v.marks))}let y=p.type.create(p.attrs,g),b=[];for(let w=2;w<u;w++)b.push(c.child(w));return c.type.create(c.attrs,[y,...b])}let m=Array(d).fill(0).map(()=>l3.type(t).createAndFill()),f=new Je(De.from(m),0,0),h=p.replace(0,0,f);return c.replace(0,p.nodeSize,new Je(De.from(h),0,0))}function o(c){let u=c3.type(t),d=[],p=[],m=!1;function f(){if(p.length===0)return;let h=g8.type(t).createAndFill(),x=Om.type(t).create(null,[h,...p]);d.push(i(x)),p=[]}return c.forEach(h=>{h.type===u?(m=!0,p.push(h)):(f(),d.push(h))}),f(),m?De.from(d):c}function a(c){let u=o(c),d=u!==c,p=[];return u.forEach(m=>{if(m.type===Om.type(t)){let f=i(m);f!==m&&(d=!0),p.push(f)}else if(m.childCount>0){let f=a(m.content);f!==m.content?(d=!0,p.push(m.copy(f))):p.push(m)}else p.push(m)}),d?De.from(p):c}function s(c){let u=[],d=[];c.forEach(p=>d.push(p));for(let p=0;p<d.length;p++){let m=d[p],f=d[p+1];m.type===Bu.type(t)&&m.content.size===0&&f&&f.type===Om.type(t)||u.push(m)}return u.length<d.length?De.from(u):c}let l=a(e.content);return l=s(l),new Je(De.from(l),e.openStart,e.openEnd)}}));nn(_ye,{displayName:"PasteRule<table>",group:"Table"});var lG=ra("tableKeymap",{NextCell:{priority:100,shortcuts:["Mod-]","Tab"],command:t=>{let e=t.get(Zn);return()=>e.call(aG.key)}},PrevCell:{shortcuts:["Mod-[","Shift-Tab"],command:t=>{let e=t.get(Zn);return()=>e.call(oG.key)}},ExitTable:{shortcuts:["Mod-Enter","Enter"],command:t=>{let e=t.get(Zn);return()=>e.call(sG.key)}}});nn(lG.ctx,{displayName:"KeymapCtx<table>",group:"Table"});nn(lG.shortcuts,{displayName:"Keymap<table>",group:"Table"});var eG="footnote_definition",oye="footnoteDefinition",cG=Ui("footnote_definition",()=>({group:"block",content:"block+",defining:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`dl[data-type="${eG}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Wl(t);return{label:t.dataset.label}},contentElement:"dd"}],toDOM:t=>{let e=t.attrs.label;return["dl",{"data-label":e,"data-type":eG},["dt",e],["dd",0]]},parseMarkdown:{match:({type:t})=>t===oye,runner:(t,e,n)=>{t.openNode(n,{label:e.label}).next(e.children).closeNode()}},toMarkdown:{match:t=>t.type.name===eG,runner:(t,e)=>{t.openNode(oye,void 0,{label:e.attrs.label,identifier:e.attrs.label}).next(e.content).closeNode()}}}));nn(cG.ctx,{displayName:"NodeSchemaCtx<footnodeDef>",group:"footnote"});nn(cG.node,{displayName:"NodeSchema<footnodeDef>",group:"footnote"});var tG="footnote_reference",uG=Ui("footnote_reference",()=>({group:"inline",inline:!0,atom:!0,attrs:{label:{default:"",validate:"string"}},parseDOM:[{tag:`sup[data-type="${tG}"]`,getAttrs:t=>{if(!(t instanceof HTMLElement))throw Wl(t);return{label:t.dataset.label}}}],toDOM:t=>{let e=t.attrs.label;return["sup",{"data-label":e,"data-type":tG},e]},parseMarkdown:{match:({type:t})=>t==="footnoteReference",runner:(t,e,n)=>{t.addNode(n,{label:e.label})}},toMarkdown:{match:t=>t.type.name===tG,runner:(t,e)=>{t.addNode("footnoteReference",void 0,void 0,{label:e.attrs.label,identifier:e.attrs.label})}}}));nn(uG.ctx,{displayName:"NodeSchemaCtx<footnodeRef>",group:"footnote"});nn(uG.node,{displayName:"NodeSchema<footnodeRef>",group:"footnote"});var dG=Hd.extendSchema(t=>e=>{let n=t(e);return{...n,attrs:{...n.attrs,checked:{default:null,validate:"boolean|null"}},parseDOM:[{tag:'li[data-item-type="task"]',getAttrs:r=>{if(!(r instanceof HTMLElement))throw Wl(r);return{label:r.dataset.label,listType:r.dataset.listType,spread:r.dataset.spread==="true",checked:r.dataset.checked?r.dataset.checked==="true":null}}},...n?.parseDOM||[]],toDOM:r=>n.toDOM&&r.attrs.checked==null?n.toDOM(r):["li",{"data-item-type":"task","data-label":r.attrs.label,"data-list-type":r.attrs.listType,"data-spread":r.attrs.spread,"data-checked":r.attrs.checked},0],parseMarkdown:{match:({type:r})=>r==="listItem",runner:(r,i,o)=>{if(i.checked==null){n.parseMarkdown.runner(r,i,o);return}let a=i.label!=null?`${i.label}.`:"\u2022",s=i.checked!=null?!!i.checked:null,l=i.label!=null?"ordered":"bullet",c=i.spread??!0;r.openNode(o,{label:a,listType:l,spread:c,checked:s}),r.next(i.children),r.closeNode()}},toMarkdown:{match:r=>r.type.name==="list_item",runner:(r,i)=>{if(i.attrs.checked==null){n.toMarkdown.runner(r,i);return}let o=i.attrs.label,a=i.attrs.listType,s=i.attrs.spread,l=i.attrs.checked;r.openNode("listItem",void 0,{label:o,listType:a,spread:s,checked:l}),r.next(i.content),r.closeNode()}}}});nn(dG.node,{displayName:"NodeSchema<taskListItem>",group:"ListItem"});nn(dG.ctx,{displayName:"NodeSchemaCtx<taskListItem>",group:"ListItem"});var Sye=za(()=>new Io(/^\[(?<checked>\s|x)\]\s$/,(t,e,n,r)=>{let i=t.doc.resolve(n),o=0,a=i.node(o);for(;a&&a.type.name!=="list_item";)o--,a=i.node(o);if(!a||a.attrs.checked!=null)return null;let s=e.groups?.checked==="x",l=i.before(o),c=t.tr;return c.deleteRange(n,r).setNodeMarkup(l,void 0,{...a.attrs,checked:s}),c}));nn(Sye,{displayName:"InputRule<wrapInTaskListInputRule>",group:"ListItem"});var AQe=[iG,lG].flat(),$Qe=[Cye,Sye],IQe=[aye],NQe=[_ye],Lye=ko(()=>F2e);nn(Lye,{displayName:"Prose<autoInsertSpanPlugin>",group:"Prose"});var PQe=ko(()=>P2e({}));nn(PQe,{displayName:"Prose<columnResizingPlugin>",group:"Prose"});var Mye=ko(()=>O2e({allowTableNodeSelection:!0}));nn(Mye,{displayName:"Prose<tableEditingPlugin>",group:"Prose"});var pG=Im("remarkGFM",()=>XE);nn(pG.plugin,{displayName:"Remark<remarkGFMPlugin>",group:"Remark"});nn(pG.options,{displayName:"RemarkConfig<remarkGFMPlugin>",group:"Remark"});var jQe=new qr("MILKDOWN_KEEP_TABLE_ALIGN_PLUGIN");function OQe(t,e){let n=0;return e.forEach((r,i,o)=>{r===t&&(n=o)}),n}function DQe(t,e){let n=t.content.findDiffStart(e.content);if(n==null)return null;let r=t.content.findDiffEnd(e.content);return r?{from:n,to:Math.max(r.b,n)}:null}var Eye=ko(()=>new Mr({key:jQe,appendTransaction:(t,e,n)=>{if(e.doc===n.doc)return;let r=DQe(e.doc,n.doc);if(!r)return;let i,o=(a,s)=>{if(a.type.name!=="table_cell")return;let l=n.doc.resolve(s),c=l.node(l.depth),u=l.node(l.depth-1).firstChild;if(!u)return;let d=OQe(a,c),p=u.maybeChild(d);if(!p)return;let m=p.attrs.alignment;m!==a.attrs.alignment&&(i||(i=n.tr),i.setNodeMarkup(s,void 0,{...a.attrs,alignment:m}))};return n.doc.nodesBetween(r.from,r.to,(a,s)=>a.type.name!=="table"?!0:(n.doc.nodesBetween(s,s+a.nodeSize,o),!1)),i}}));nn(Eye,{displayName:"Prose<keepTableAlignPlugin>",group:"Prose"});var FQe=[Eye,Lye,pG,Mye].flat(),BQe=[dG,Om,g8,c3,l3,b8,cG,uG,nG,f8].flat(),zQe=[aG,oG,sG,dye,pye,mye,fye,hye,gye,bye,wye,vye,yye,xye,kye,rG],Tye=[BQe,$Qe,NQe,IQe,AQe,zQe,FQe].flat();var YE=200,ia=function(){};ia.prototype.append=function(e){return e.length?(e=ia.from(e),!this.length&&e||e.length<YE&&this.leafAppend(e)||this.length<YE&&e.leafPrepend(this)||this.appendInner(e)):this};ia.prototype.prepend=function(e){return e.length?ia.from(e).append(this):this};ia.prototype.appendInner=function(e){return new qQe(this,e)};ia.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?ia.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};ia.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};ia.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};ia.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,a){return i.push(e(o,a))},n,r),i};ia.from=function(e){return e instanceof ia?e:e&&e.length?new Rye(e):ia.empty};var Rye=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new e(this.values.slice(i,o))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,o,a,s){for(var l=o;l<a;l++)if(i(this.values[l],s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(i,o,a,s){for(var l=o-1;l>=a;l--)if(i(this.values[l],s+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=YE)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=YE)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(ia);ia.empty=new Rye([]);var qQe=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,o,a){var s=this.left.length;if(i<s&&this.left.forEachInner(r,i,Math.min(o,s),a)===!1||o>s&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,o)-s,a+s)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,o,a){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(o,s)-s,a+s)===!1||o<s&&this.left.forEachInvertedInner(r,Math.min(i,s),o,a)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var o=this.left.length;return i<=o?this.left.slice(r,i):r>=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(ia),mG=ia;var HQe=500,Xg=class t{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;n&&(i=this.remapping(r,this.items.length),o=i.maps.length);let a=e.tr,s,l,c=[],u=[];return this.items.forEach((d,p)=>{if(!d.step){i||(i=this.remapping(r,p+1),o=i.maps.length),o--,u.push(d);return}if(i){u.push(new Ud(d.map));let m=d.step.map(i.slice(o)),f;m&&a.maybeStep(m).doc&&(f=a.mapping.maps[a.mapping.maps.length-1],c.push(new Ud(f,void 0,void 0,c.length+u.length))),o--,f&&i.appendMap(f,o)}else a.maybeStep(d.step);if(d.selection)return s=i?d.selection.map(i.slice(o)):d.selection,l=new t(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:a,selection:s}}addTransform(e,n,r,i){let o=[],a=this.eventCount,s=this.items,l=!i&&s.length?s.get(s.length-1):null;for(let u=0;u<e.steps.length;u++){let d=e.steps[u].invert(e.docs[u]),p=new Ud(e.mapping.maps[u],d,n),m;(m=l&&l.merge(p))&&(p=m,u?o.pop():s=s.slice(0,s.length-1)),o.push(p),n&&(a++,n=void 0),i||(l=p)}let c=a-r.depth;return c>UQe&&(s=GQe(s,c),a-=c),new t(s.append(o),a)}remapping(e,n){let r=new Vx;return this.items.forEach((i,o)=>{let a=i.mirrorOffset!=null&&o-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,a)},e,n),r}addMaps(e){return this.eventCount==0?this:new t(this.items.append(e.map(n=>new Ud(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),o=e.mapping,a=e.steps.length,s=this.eventCount;this.items.forEach(p=>{p.selection&&s--},i);let l=n;this.items.forEach(p=>{let m=o.getMirror(--l);if(m==null)return;a=Math.min(a,m);let f=o.maps[m];if(p.step){let h=e.steps[m].invert(e.docs[m]),x=p.selection&&p.selection.map(o.slice(l+1,m));x&&s++,r.push(new Ud(f,h,x))}else r.push(new Ud(f))},i);let c=[];for(let p=n;p<a;p++)c.push(new Ud(o.maps[p]));let u=this.items.slice(0,i).append(c).append(r),d=new t(u,s);return d.emptyItemCount()>HQe&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],o=0;return this.items.forEach((a,s)=>{if(s>=e)i.push(a),a.selection&&o++;else if(a.step){let l=a.step.map(n.slice(r)),c=l&&l.getMap();if(r--,c&&n.appendMap(c,r),l){let u=a.selection&&a.selection.map(n.slice(r));u&&o++;let d=new Ud(c.invert(),l,u),p,m=i.length-1;(p=i.length&&i[m].merge(d))?i[m]=p:i.push(d)}}else a.map&&r--},this.items.length,0),new t(mG.from(i.reverse()),o)}};Xg.empty=new Xg(mG.empty,0);function GQe(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}var Ud=class t{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new t(n.getMap().invert(),n,this.selection)}}},Vd=class{constructor(e,n,r,i,o){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}},UQe=20;function VQe(t,e,n,r){let i=n.getMeta(Kg),o;if(i)return i.historyState;n.getMeta(KQe)&&(t=new Vd(t.done,t.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(a&&a.getMeta(Kg))return a.getMeta(Kg).redo?new Vd(t.done.addTransform(n,void 0,r,QE(e)),t.undone,Aye(n.mapping.maps),t.prevTime,t.prevComposition):new Vd(t.done,t.undone.addTransform(n,void 0,r,QE(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=t.prevTime==0||!a&&t.prevComposition!=s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!ZQe(n,t.prevRanges)),c=a?fG(t.prevRanges,n.mapping):Aye(n.mapping.maps);return new Vd(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,QE(e)),Xg.empty,c,n.time,s??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Vd(t.done.rebased(n,o),t.undone.rebased(n,o),fG(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Vd(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),fG(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function ZQe(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let o=0;o<e.length;o+=2)r<=e[o+1]&&i>=e[o]&&(n=!0)}),n}function Aye(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,o,a)=>e.push(o,a));return e}function fG(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),o=e.map(t[r+1],-1);i<=o&&n.push(i,o)}return n}function WQe(t,e,n){let r=QE(e),i=Kg.get(e).spec.config,o=(n?t.undone:t.done).popEvent(e,r);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(n?t.done:t.undone).addTransform(o.transform,e.selection.getBookmark(),i,r),l=new Vd(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(Kg,{redo:n,historyState:l})}var hG=!1,$ye=null;function QE(t){let e=t.plugins;if($ye!=e){hG=!1,$ye=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){hG=!0;break}}return hG}var Kg=new qr("history"),KQe=new qr("closeHistory");function Iye(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new Mr({key:Kg,state:{init(){return new Vd(Xg.empty,Xg.empty,null,0,-1)},apply(e,n,r){return VQe(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,i=r=="historyUndo"?gG:r=="historyRedo"?bG:null;return!i||!e.editable?!1:(n.preventDefault(),i(e.state,e.dispatch))}}}})}function JE(t,e){return(n,r)=>{let i=Kg.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let o=WQe(i,n,t);o&&r(e?o.scrollIntoView():o)}return!0}}var gG=JE(!1,!0),bG=JE(!0,!0),YKt=JE(!1,!1),QKt=JE(!0,!1);function u3(t,e){return Object.assign(t,{meta:{package:"@milkdown/plugin-history",...e}}),t}var yG=tn("Undo",()=>()=>gG);u3(yG,{displayName:"Command<undo>"});var xG=tn("Redo",()=>()=>bG);u3(xG,{displayName:"Command<redo>"});var wG=Jc({},"historyProviderConfig");u3(wG,{displayName:"Ctx<historyProviderConfig>"});var Nye=ko(t=>Iye(t.get(wG.key)));u3(Nye,{displayName:"Ctx<historyProviderPlugin>"});var vG=ra("historyKeymap",{Undo:{shortcuts:"Mod-z",command:t=>{let e=t.get(Zn);return()=>e.call(yG.key)}},Redo:{shortcuts:["Mod-y","Shift-Mod-z"],command:t=>{let e=t.get(Zn);return()=>e.call(xG.key)}}});u3(vG.ctx,{displayName:"KeymapCtx<history>"});u3(vG.shortcuts,{displayName:"Keymap<history>"});var Pye=[wG,Nye,vG,yG,xG].flat();function kG(t){if(!t)return!1;if(Array.isArray(t))return t.length>1?!1:kG(t[0]);let e=t.content;return e?kG(e):t.type==="text"}function XQe(t,e){return Object.assign(t,{meta:{package:"@milkdown/plugin-clipboard",...e}}),t}function jye(t,e){let n=Oge(e);if(n)return t.dispatch(t.state.tr.replaceSelectionWith(n,!0)),!0;try{return t.dispatch(t.state.tr.replaceSelection(e)),!0}catch{return!1}}var CG=ko(t=>{let e=t.get(Ql);t.update(Hg,r=>({...r,editable:r.editable??(()=>!0),transformPastedHTML:(i,o)=>{let a=r.transformPastedHTML;return a&&(i=a(i,o)),i.includes("docs-internal-guid")&&(i=i.replace(/<b[^>]*id="docs-internal-guid[^"]*"[^>]*>([\s\S]*)<\/b>/,"$1"),i=i.replace(/<div[^>]*>(<table[\s\S]*?<\/table>)<\/div>/g,"$1")),i}}));let n=new qr("MILKDOWN_CLIPBOARD");return new Mr({key:n,props:{handlePaste:(r,i,o)=>{let a=t.get(ch),s=r.props.editable?.(r.state),{clipboardData:l}=i;if(!s||!l||r.state.selection.$from.node().type.spec.code)return!1;let c=l.getData("text/plain"),u=l.getData("vscode-editor-data");if(u){let f=JSON.parse(u)?.mode;if(c&&f){let{tr:h}=r.state,x=Fge("code_block",e);return h.replaceSelectionWith(x.create({language:f})).setSelection(Qt.near(h.doc.resolve(Math.max(0,h.selection.from-2)))).insertText(c.replace(/\r\n?/g,` +`)),r.dispatch(h),!0}}let d=l.getData("text/html");if(d.length===0&&c.length===0)return!1;if(d.length>0&&o)return jye(r,o);let p=Fd.fromSchema(e),m;if(d.length===0){let f=a(c);if(!f||typeof f=="string")return!1;m=Bd.fromSchema(e).serializeFragment(f.content)}else{let f=document.createElement("template");f.innerHTML=d,m=f.content.cloneNode(!0),f.remove()}return jye(r,p.parseSlice(m))},clipboardTextSerializer:r=>{let i=t.get(qg);if(kG(r.content.toJSON()))return r.content.textBetween(0,r.content.size,` -`);let o=e.topNodeType.createAndFill(void 0,r.content);return o?i(o):""}}})});ZQe(CG,{displayName:"Prose<clipboard>"});var y8=R(ee(),1),Oye=t=>t.replace(/\n+$/,"").replace(/^\u200b$/,"").replace(/(^|\n\n)<br \/>(?=\n\n|$)/g,"$1").replace(/^\n+|\n+$/g,""),Dye=t=>/[ \t]+$/.exec(t.state.doc.lastChild?.textContent??"")?.[0]??"";function WQe(t,e){let n=Oye(t?.action(Mbe())??""),r=Dye(e);return r&&!n.endsWith(r)?n+r:n}var KQe=t=>{let e=t.children?.length===1?t.children[0]:void 0,n=e?.type==="text"?e.value:void 0;if(!(n===void 0||!t.url))return[n,`http://${n}`,`mailto:${n}`].includes(t.url)?n:void 0};function Fye(t){if(t.type==="text")return{type:"html",value:t.value??""};if(t.type==="break")return{type:"html",value:` -`};if(t.type==="link"){let n=KQe(t);if(n!==void 0)return{type:"html",value:n}}if(!t.children)return t;let e=[];for(let n of t.children.map(Fye)){let r=e.at(-1);n.type==="html"&&r?.type==="html"?e[e.length-1]={...r,value:`${r.value}${n.value}`}:e.push(n)}return{...t,children:e}}function XQe(t,e){let n=t.runSync(t.parse(e),e);return Oye(String(t.stringify(Fye(n))))}function _G(t){let{selection:e,doc:n}=t.state,r=n.firstChild;if(!r)return 0;let i=1,o=i+r.content.size;return e.from<i||e.from>o?r.textContent.length+1:n.textBetween(i,e.from,` +`);let o=e.topNodeType.createAndFill(void 0,r.content);return o?i(o):""}}})});XQe(CG,{displayName:"Prose<clipboard>"});var y8=R(ee(),1),Oye=t=>t.replace(/\n+$/,"").replace(/^\u200b$/,"").replace(/(^|\n\n)<br \/>(?=\n\n|$)/g,"$1").replace(/^\n+|\n+$/g,""),Dye=t=>/[ \t]+$/.exec(t.state.doc.lastChild?.textContent??"")?.[0]??"";function YQe(t,e){let n=Oye(t?.action(Mbe())??""),r=Dye(e);return r&&!n.endsWith(r)?n+r:n}var QQe=t=>{let e=t.children?.length===1?t.children[0]:void 0,n=e?.type==="text"?e.value:void 0;if(!(n===void 0||!t.url))return[n,`http://${n}`,`mailto:${n}`].includes(t.url)?n:void 0};function Fye(t){if(t.type==="text")return{type:"html",value:t.value??""};if(t.type==="break")return{type:"html",value:` +`};if(t.type==="link"){let n=QQe(t);if(n!==void 0)return{type:"html",value:n}}if(!t.children)return t;let e=[];for(let n of t.children.map(Fye)){let r=e.at(-1);n.type==="html"&&r?.type==="html"?e[e.length-1]={...r,value:`${r.value}${n.value}`}:e.push(n)}return{...t,children:e}}function JQe(t,e){let n=t.runSync(t.parse(e),e);return Oye(String(t.stringify(Fye(n))))}function _G(t){let{selection:e,doc:n}=t.state,r=n.firstChild;if(!r)return 0;let i=1,o=i+r.content.size;return e.from<i||e.from>o?r.textContent.length+1:n.textBetween(i,e.from,` `,` `).length}var SG=(t,e)=>t.textBetween(0,e,` `,` -`).length;function YE(t,e){let n=0,r=t.content.size;for(;n<r;){let o=n+r>>1;SG(t,o)>=e?r=o:n=o+1}let i=t.resolve(n);return i.parent.inlineContent?n:Qt.near(i,1).from}var Bye=ii.default.forwardRef(function({value:e,onChange:n,onCaret:r,onKeyDown:i,onCompositionChange:o,onBeforeInput:a,onSubmit:s,onFirstInput:l,plugins:c=[],multiline:u=!0,placeholder:d,className:p,attributes:m},f){let h=(0,ii.useRef)(void 0),x=(0,ii.useRef)(void 0),g=(0,ii.useRef)(void 0),y=(0,ii.useRef)(e),b=(0,ii.useRef)({onChange:n,onCaret:r,onKeyDown:i,onCompositionChange:o,onBeforeInput:a,onSubmit:s,onFirstInput:l});b.current={onChange:n,onCaret:r,onKeyDown:i,onCompositionChange:o,onBeforeInput:a,onSubmit:s,onFirstInput:l};let w=(0,ii.useRef)(!1),v=(0,ii.useRef)(!1),k=(0,ii.useRef)(!1),_=(0,ii.useRef)(c),L=(0,ii.useRef)(u),S=(0,ii.useRef)(null),C=(0,ii.useRef)(m);C.current=m;let T=()=>{let O=x.current?.dom;if(O)for(let[B,P]of Object.entries(C.current??{}))P===void 0?O.removeAttribute(B):O.setAttribute(B,P)},M=O=>{S.current&&(S.current.hidden=O!=="")},A=(O,B)=>b.current.onBeforeInput?.(B,{empty:O.state.doc.textContent==="",composing:w.current||O.composing})===!0,$=(0,ii.useCallback)(O=>{if(!O)return;let B=!1,P=ko(()=>new Mr({props:{handleDOMEvents:{keydown:(G,j)=>{if(b.current.onKeyDown?.(j),j.defaultPrevented)return!0;let V=b.current.onSubmit;return V&&j.key==="Enter"&&!j.shiftKey&&!j.altKey&&!j.isComposing?(j.preventDefault(),V(y.current,{cmd:j.metaKey||j.ctrlKey}),!0):!1},compositionstart:()=>(w.current=!0,b.current.onCompositionChange?.(!0),!1),compositionend:()=>(w.current=!1,b.current.onCompositionChange?.(!1),!1)},handleTextInput:(G,j,V,H)=>A(G,H),handlePaste:(G,j,V)=>A(G,V.content.textBetween(0,V.content.size,` +`).length;function eT(t,e){let n=0,r=t.content.size;for(;n<r;){let o=n+r>>1;SG(t,o)>=e?r=o:n=o+1}let i=t.resolve(n);return i.parent.inlineContent?n:Qt.near(i,1).from}var Bye=ii.default.forwardRef(function({value:e,onChange:n,onCaret:r,onKeyDown:i,onCompositionChange:o,onBeforeInput:a,onSubmit:s,onFirstInput:l,plugins:c=[],multiline:u=!0,placeholder:d,className:p,attributes:m},f){let h=(0,ii.useRef)(void 0),x=(0,ii.useRef)(void 0),g=(0,ii.useRef)(void 0),y=(0,ii.useRef)(e),b=(0,ii.useRef)({onChange:n,onCaret:r,onKeyDown:i,onCompositionChange:o,onBeforeInput:a,onSubmit:s,onFirstInput:l});b.current={onChange:n,onCaret:r,onKeyDown:i,onCompositionChange:o,onBeforeInput:a,onSubmit:s,onFirstInput:l};let w=(0,ii.useRef)(!1),v=(0,ii.useRef)(!1),k=(0,ii.useRef)(!1),_=(0,ii.useRef)(c),L=(0,ii.useRef)(u),S=(0,ii.useRef)(null),C=(0,ii.useRef)(m);C.current=m;let T=()=>{let O=x.current?.dom;if(O)for(let[B,P]of Object.entries(C.current??{}))P===void 0?O.removeAttribute(B):O.setAttribute(B,P)},M=O=>{S.current&&(S.current.hidden=O!=="")},A=(O,B)=>b.current.onBeforeInput?.(B,{empty:O.state.doc.textContent==="",composing:w.current||O.composing})===!0,$=(0,ii.useCallback)(O=>{if(!O)return;let B=!1,P=ko(()=>new Mr({props:{handleDOMEvents:{keydown:(G,j)=>{if(b.current.onKeyDown?.(j),j.defaultPrevented)return!0;let V=b.current.onSubmit;return V&&j.key==="Enter"&&!j.shiftKey&&!j.altKey&&!j.isComposing?(j.preventDefault(),V(y.current,{cmd:j.metaKey||j.ctrlKey}),!0):!1},compositionstart:()=>(w.current=!0,b.current.onCompositionChange?.(!0),!1),compositionend:()=>(w.current=!1,b.current.onCompositionChange?.(!1),!1)},handleTextInput:(G,j,V,H)=>A(G,H),handlePaste:(G,j,V)=>A(G,V.content.textBetween(0,V.content.size,` `,` -`))},view:()=>({update:(G,j)=>{if(G.state.doc.eq(j.doc)){G.state.selection.eq(j.selection)||b.current.onCaret?.(_G(G));return}let V=WQe(h.current,G);M(V),V!==y.current&&(y.current=V,v.current||(v.current=!0,b.current.onFirstInput?.()),b.current.onChange(V,_G(G)))}})})),U=ko(()=>aE({"Shift-Enter":(G,j,V)=>{if(!L.current)return!0;let H=G.schema.nodes.list_item,ne=nE.Enter;return Cm(...H?[$E(H),ne]:[ne])(G,j,V)}}));return kbe.make().config(G=>{G.set(l8,O),G.set(a8,y.current),G.update(ah,j=>({...j,bullet:"-",emphasis:"*"})),G.update(qg,j=>({...j,attributes:{class:"acpmux-md"}}))}).use(P).use(_.current.map(G=>ko(()=>G))).use(U).use(i2e).use(Tye).use(Pye).use(CG).create().then(G=>{if(B){G.destroy();return}h.current=G,x.current=G.ctx.get(Yl),g.current=G.ctx.get(Tm),M(y.current),T(),k.current&&x.current.focus(),window.dispatchEvent(new window.Event(bL))}),()=>{B=!0,h.current?.destroy(),h.current=void 0,x.current=void 0,g.current=void 0}},[]),N=O=>{h.current?.action(Ebe(O));let B=x.current,P=/[ \t]+$/.exec(O)?.[0];B&&P&&!Dye(B)&&B.dispatch(B.state.tr.insertText(P,B.state.doc.content.size-1))};(0,ii.useLayoutEffect)(()=>{e!==y.current&&(y.current=e,h.current&&N(e))},[e]),(0,ii.useLayoutEffect)(T);let F=(0,ii.useRef)(null),D=(0,ii.useRef)(void 0);return(0,ii.useImperativeHandle)(f,()=>D.current={focus:()=>{x.current?x.current.focus():k.current=!0},setCaret:O=>{let B=x.current;if(!B)return;let{doc:P}=B.state,U=P.firstChild,G=U?.isTextblock&&O<=U.content.size,j=G?1+Math.max(0,O):P.content.size;B.dispatch(B.state.tr.setSelection(Qt.near(P.resolve(j),G?1:-1)))},value:()=>y.current,caret:()=>x.current?_G(x.current):0,type:O=>{if(!h.current)return;N(O);let B=x.current;if(B){let P=B.state.doc.content.size;B.dispatch(B.state.tr.setSelection(Qt.near(B.state.doc.resolve(P),-1)))}},text:()=>{let O=x.current;if(!O)return{value:y.current,selectionStart:0,selectionEnd:0};let{doc:B,selection:P}=O.state;return{value:B.textBetween(0,B.content.size,` +`))},view:()=>({update:(G,j)=>{if(G.state.doc.eq(j.doc)){G.state.selection.eq(j.selection)||b.current.onCaret?.(_G(G));return}let V=YQe(h.current,G);M(V),V!==y.current&&(y.current=V,v.current||(v.current=!0,b.current.onFirstInput?.()),b.current.onChange(V,_G(G)))}})})),U=ko(()=>cE({"Shift-Enter":(G,j,V)=>{if(!L.current)return!0;let H=G.schema.nodes.list_item,ne=oE.Enter;return _m(...H?[PE(H),ne]:[ne])(G,j,V)}}));return kbe.make().config(G=>{G.set(l8,O),G.set(a8,y.current),G.update(lh,j=>({...j,bullet:"-",emphasis:"*"})),G.update(Hg,j=>({...j,attributes:{class:"acpmux-md"}}))}).use(P).use(_.current.map(G=>ko(()=>G))).use(U).use(i2e).use(Tye).use(Pye).use(CG).create().then(G=>{if(B){G.destroy();return}h.current=G,x.current=G.ctx.get(Yl),g.current=G.ctx.get(Rm),M(y.current),T(),k.current&&x.current.focus(),window.dispatchEvent(new window.Event(bL))}),()=>{B=!0,h.current?.destroy(),h.current=void 0,x.current=void 0,g.current=void 0}},[]),N=O=>{h.current?.action(Ebe(O));let B=x.current,P=/[ \t]+$/.exec(O)?.[0];B&&P&&!Dye(B)&&B.dispatch(B.state.tr.insertText(P,B.state.doc.content.size-1))};(0,ii.useLayoutEffect)(()=>{e!==y.current&&(y.current=e,h.current&&N(e))},[e]),(0,ii.useLayoutEffect)(T);let F=(0,ii.useRef)(null),D=(0,ii.useRef)(void 0);return(0,ii.useImperativeHandle)(f,()=>D.current={focus:()=>{x.current?x.current.focus():k.current=!0},setCaret:O=>{let B=x.current;if(!B)return;let{doc:P}=B.state,U=P.firstChild,G=U?.isTextblock&&O<=U.content.size,j=G?1+Math.max(0,O):P.content.size;B.dispatch(B.state.tr.setSelection(Qt.near(P.resolve(j),G?1:-1)))},value:()=>y.current,caret:()=>x.current?_G(x.current):0,type:O=>{if(!h.current)return;N(O);let B=x.current;if(B){let P=B.state.doc.content.size;B.dispatch(B.state.tr.setSelection(Qt.near(B.state.doc.resolve(P),-1)))}},text:()=>{let O=x.current;if(!O)return{value:y.current,selectionStart:0,selectionEnd:0};let{doc:B,selection:P}=O.state;return{value:B.textBetween(0,B.content.size,` `,` `),selectionStart:SG(B,P.from),selectionEnd:SG(B,P.to)}},writeText:(O,B,P)=>{let U=x.current;if(!U)return;let{doc:G}=U.state,j=G.textBetween(0,G.content.size,` `,` -`),V=0;for(;V<j.length&&V<O.length&&j[V]===O[V];)V+=1;let H=0;for(;H<j.length-V&&H<O.length-V&&j[j.length-1-H]===O[O.length-1-H];)H+=1;let ne=U.state.tr;if(j!==O){let ie=YE(G,V),Z=Math.max(ie,YE(G,j.length-H)),ce=O.slice(V,O.length-H);ce?ne.insertText(ce,ie,Z):ne.delete(ie,Z)}let J=YE(ne.doc,B),W=YE(ne.doc,P);ne.setSelection(Qt.create(ne.doc,J,W)),U.dispatch(ne)},focused:()=>x.current?.hasFocus()??!1,element:()=>F.current,plainText:()=>{let O=x.current?.state.doc;return O?O.textBetween(0,O.content.size,` +`),V=0;for(;V<j.length&&V<O.length&&j[V]===O[V];)V+=1;let H=0;for(;H<j.length-V&&H<O.length-V&&j[j.length-1-H]===O[O.length-1-H];)H+=1;let ne=U.state.tr;if(j!==O){let ie=eT(G,V),Z=Math.max(ie,eT(G,j.length-H)),le=O.slice(V,O.length-H);le?ne.insertText(le,ie,Z):ne.delete(ie,Z)}let J=eT(ne.doc,B),W=eT(ne.doc,P);ne.setSelection(Qt.create(ne.doc,J,W)),U.dispatch(ne)},focused:()=>x.current?.hasFocus()??!1,element:()=>F.current,plainText:()=>{let O=x.current?.state.doc;return O?O.textBetween(0,O.content.size,` `,` -`):y.current},insertTyped:O=>{let B=x.current;if(!B)return;let{from:P,to:U}=B.state.selection;A(B,O)||B.dispatch(B.state.tr.insertText(O,P,U))},pasteText:O=>{let B=x.current;B&&(A(B,O)||B.pasteText(O))},reset:(O="")=>{y.current=O,M(O),h.current&&N(O)},agentText:O=>g.current?XQe(g.current,O):O},[]),(0,y8.jsxs)("div",{className:`acpmux-md-field ${p??""}`,ref:O=>{F.current=O,O&&Object.defineProperty(O,"acpmuxMarkdownField",{get:()=>D.current,configurable:!0})},children:[(0,y8.jsx)("span",{ref:S,className:"acpmux-md-placeholder","aria-hidden":"true",children:d}),(0,y8.jsx)("div",{ref:$,className:"acpmux-md-root"})]})});var YQe=["codex","opencode"];function zye(t){let e=t.summary?.family||t.summary?.harness;return!e||!YQe.includes(e)?{canSend:!0}:t.origin==="remote"?{note:"composer.remoteUnavailable",canSend:!1}:t.origin==="unknown"?{note:"composer.originUnknown",canSend:!1}:{canSend:!0}}var Ht=R(ee(),1),QQe=600,Co={placeholder:"composer.placeholder",add:"composer.add",mention:"composer.mention",attach:"composer.attach",prompt:"composer.prompt",send:"composer.send",stop:"composer.stop",commands:"composer.commands",noCommands:"composer.noCommands",noMatchingCommands:"composer.noMatchingCommands",attachments:"composer.attachments",removeAttachment:"composer.removeAttachment",dropFiles:"composer.dropFiles",tooLarge:"composer.tooLarge",unsupported:"composer.unsupported",imagesUnsupported:"composer.imagesUnsupported",tooMany:"composer.tooMany",queue:"composer.queue",queued:"composer.queued"};function JQe(t,e){return e(Co[t.reason],{name:t.name})}function Hye({snapshot:t,chips:e,onSend:n,onStop:r,draft:i,leading:o,accessory:a,prompt:s,onAttach:l,searchFiles:c,onProject:u,projectChoices:d,onBrowseProject:p,localName:m,movedTo:f,onMove:h,onShell:x,onShellInterrupt:g,onMode:y,onOpenInWindow:b,handle:w,blocked:v}){let k=we(),[_,L]=(0,wn.useState)(!1);(0,wn.useEffect)(()=>L(!1),[c]);let S=(0,wn.useRef)(null),[C,T]=(0,wn.useState)(""),[M,A]=(0,wn.useState)(!1),[$,N]=(0,wn.useState)(""),F=(0,wn.useRef)(null),D=(0,wn.useRef)(void 0),[O,B]=(0,wn.useState)(0),[P,U]=(0,wn.useState)(0),[G,j]=(0,wn.useState)(),[V,H]=(0,wn.useState)([]),[ne,J]=(0,wn.useState)(),[W,ie]=(0,wn.useState)(!1),Z=(0,wn.useRef)(null),ce=(0,wn.useCallback)(ae=>{Z.current=ae,s&&(s.current=ae)},[s]),se=(0,wn.useRef)(void 0),be=(0,wn.useRef)(0),le=(0,wn.useRef)(void 0),ge=(0,wn.useRef)(!1),ke=(0,wn.useRef)(!1),me=(0,wn.useRef)(null),Se=(0,wn.useRef)(!1),de=(0,wn.useRef)(()=>!1),Le=(0,wn.useRef)(0);Le.current=V.length;let Ne=t.summary?.promptCapabilities?.image!==!1,Be=(0,wn.useRef)(async()=>{});Be.current=async ae=>{if(ae.length===0)return;let st=await yse(ae,Le.current,Ne);H(Lt=>[...Lt,...st.attachments]),J(st.errors[0]?JQe(st.errors[0],k):void 0)},(0,wn.useEffect)(()=>{let ae=wt=>{RO(wt.dataTransfer)&&(wt.preventDefault(),ie(!0))},st=wt=>{wt.relatedTarget||ie(!1)},Lt=wt=>{RO(wt.dataTransfer)&&(wt.preventDefault(),ie(!1),Be.current(TO(wt.dataTransfer)))},Ye=wt=>{let jn=wt.target;if(!Z.current?.element()?.contains(jn)&&!F.current?.contains(jn))return;let Kn=TO(wt.clipboardData);Kn.length!==0&&(wt.preventDefault(),Be.current(Kn))};return document.addEventListener("dragover",ae),document.addEventListener("dragleave",st),document.addEventListener("drop",Lt),document.addEventListener("paste",Ye),()=>{document.removeEventListener("dragover",ae),document.removeEventListener("dragleave",st),document.removeEventListener("drop",Lt),document.removeEventListener("paste",Ye)}},[]),(0,wn.useLayoutEffect)(()=>{if(!ke.current)return;let ae=document.activeElement;if(ae&&ae!==document.body&&ae!==me.current){ke.current=!1;return}me.current?.focus(),t.isWorking&&(ke.current=!1)}),(0,wn.useImperativeHandle)(w,()=>({restore(ae,st){let Lt=Z.current?.value()??"",Ye=Lt.trim()?`${ae} +`):y.current},insertTyped:O=>{let B=x.current;if(!B)return;let{from:P,to:U}=B.state.selection;A(B,O)||B.dispatch(B.state.tr.insertText(O,P,U))},pasteText:O=>{let B=x.current;B&&(A(B,O)||B.pasteText(O))},reset:(O="")=>{y.current=O,M(O),h.current&&N(O)},agentText:O=>g.current?JQe(g.current,O):O},[]),(0,y8.jsxs)("div",{className:`acpmux-md-field ${p??""}`,ref:O=>{F.current=O,O&&Object.defineProperty(O,"acpmuxMarkdownField",{get:()=>D.current,configurable:!0})},children:[(0,y8.jsx)("span",{ref:S,className:"acpmux-md-placeholder","aria-hidden":"true",children:d}),(0,y8.jsx)("div",{ref:$,className:"acpmux-md-root"})]})});var eJe=["codex","opencode"];function zye(t){let e=t.summary?.family||t.summary?.harness;return!e||!eJe.includes(e)?{canSend:!0}:t.origin==="remote"?{note:"composer.remoteUnavailable",canSend:!1}:t.origin==="unknown"?{note:"composer.originUnknown",canSend:!1}:{canSend:!0}}var Ht=R(ee(),1),tJe=600,Co={placeholder:"composer.placeholder",add:"composer.add",mention:"composer.mention",attach:"composer.attach",prompt:"composer.prompt",send:"composer.send",stop:"composer.stop",commands:"composer.commands",noCommands:"composer.noCommands",noMatchingCommands:"composer.noMatchingCommands",attachments:"composer.attachments",removeAttachment:"composer.removeAttachment",dropFiles:"composer.dropFiles",tooLarge:"composer.tooLarge",unsupported:"composer.unsupported",imagesUnsupported:"composer.imagesUnsupported",tooMany:"composer.tooMany",queue:"composer.queue",queued:"composer.queued"};function nJe(t,e){return e(Co[t.reason],{name:t.name})}function Hye({snapshot:t,chips:e,onSend:n,onStop:r,draft:i,leading:o,accessory:a,prompt:s,onAttach:l,searchFiles:c,onProject:u,projectChoices:d,onBrowseProject:p,localName:m,movedTo:f,onMove:h,onShell:x,onShellInterrupt:g,onMode:y,onOpenInWindow:b,handle:w,blocked:v}){let k=ve(),[_,L]=(0,wn.useState)(!1);(0,wn.useEffect)(()=>L(!1),[c]);let S=(0,wn.useRef)(null),[C,T]=(0,wn.useState)(""),[M,A]=(0,wn.useState)(!1),[$,N]=(0,wn.useState)(""),F=(0,wn.useRef)(null),D=(0,wn.useRef)(void 0),[O,B]=(0,wn.useState)(0),[P,U]=(0,wn.useState)(0),[G,j]=(0,wn.useState)(),[V,H]=(0,wn.useState)([]),[ne,J]=(0,wn.useState)(),[W,ie]=(0,wn.useState)(!1),Z=(0,wn.useRef)(null),le=(0,wn.useCallback)(ae=>{Z.current=ae,s&&(s.current=ae)},[s]),se=(0,wn.useRef)(void 0),ge=(0,wn.useRef)(0),ce=(0,wn.useRef)(void 0),be=(0,wn.useRef)(!1),ke=(0,wn.useRef)(!1),me=(0,wn.useRef)(null),Se=(0,wn.useRef)(!1),de=(0,wn.useRef)(()=>!1),Le=(0,wn.useRef)(0);Le.current=V.length;let Ne=t.summary?.promptCapabilities?.image!==!1,Be=(0,wn.useRef)(async()=>{});Be.current=async ae=>{if(ae.length===0)return;let st=await yse(ae,Le.current,Ne);H(Mt=>[...Mt,...st.attachments]),J(st.errors[0]?nJe(st.errors[0],k):void 0)},(0,wn.useEffect)(()=>{let ae=vt=>{IO(vt.dataTransfer)&&(vt.preventDefault(),ie(!0))},st=vt=>{vt.relatedTarget||ie(!1)},Mt=vt=>{IO(vt.dataTransfer)&&(vt.preventDefault(),ie(!1),Be.current($O(vt.dataTransfer)))},Ye=vt=>{let jn=vt.target;if(!Z.current?.element()?.contains(jn)&&!F.current?.contains(jn))return;let Kn=$O(vt.clipboardData);Kn.length!==0&&(vt.preventDefault(),Be.current(Kn))};return document.addEventListener("dragover",ae),document.addEventListener("dragleave",st),document.addEventListener("drop",Mt),document.addEventListener("paste",Ye),()=>{document.removeEventListener("dragover",ae),document.removeEventListener("dragleave",st),document.removeEventListener("drop",Mt),document.removeEventListener("paste",Ye)}},[]),(0,wn.useLayoutEffect)(()=>{if(!ke.current)return;let ae=document.activeElement;if(ae&&ae!==document.body&&ae!==me.current){ke.current=!1;return}me.current?.focus(),t.isWorking&&(ke.current=!1)}),(0,wn.useImperativeHandle)(w,()=>({restore(ae,st){let Mt=Z.current?.value()??"",Ye=Mt.trim()?`${ae} -${Lt}`:ae;Z.current?Z.current.type(Ye):(T(Ye),B(Ye.length)),st.length&&H(wt=>[...st,...wt.filter(jn=>!st.some(Kn=>Kn.id===jn.id))])},send:()=>de.current(!0)}),[]),(0,wn.useEffect)(()=>{!i||Z.current?.value()||(T(ae=>ype(ae,i)),B(i.length),se.current=i.length)},[i]);let _e=t.commands,xe=zye(t),Ce=(t.summary?.modes?.availableModes??[]).filter(ae=>!/(^|[-_])plan$/i.test(ae.id)).map(ae=>({id:`mode:${ae.id}`,name:ae.name||ae.id,description:ae.description,icon:(0,Ht.jsx)(uF,{})})),K=t.summary?.modes?.availableModes?.find(ae=>/(^|[-_])plan$/i.test(ae.id)),Y=t.summary?.modes?.currentModeId,ye=(0,wn.useRef)({});ye.current.sessionId!==t.summary?.sessionId&&(ye.current={sessionId:t.summary?.sessionId}),Y&&!/(^|[-_])plan$/i.test(Y)&&(ye.current.mode=Y);let Re=K?.id===Y,Ke=[...Ce,...K?[{id:`plan:${K.id}`,name:Re?"Build":"Plan",icon:Re?(0,Ht.jsx)(pF,{}):(0,Ht.jsx)(dF,{})}]:[]],mt=hse(C,O),dt=mt!==void 0&&G!==C,Ae=(0,wn.useMemo)(()=>dt?gse(_e??[],mt??""):[],[_e,dt,mt]);(0,wn.useEffect)(()=>U(0),[mt]);let xt=Math.min(P,Math.max(Ae.length-1,0));(0,wn.useLayoutEffect)(()=>{let ae=F.current;ae&&(ae.style.height="0px",ae.style.height=`${ae.scrollHeight}px`,D.current!==void 0&&(ae.focus(),ae.setSelectionRange(D.current,D.current),D.current=void 0))}),(0,wn.useLayoutEffect)(()=>{se.current===void 0||!Z.current||(Z.current.setCaret(se.current),se.current=void 0)});let Et=(ae,st)=>{T(ae),B(st),j(void 0)},jt=ae=>{let st=bse(C,O,ae);se.current=st.caret,Et(st.text,st.caret),Z.current?.focus()},Bt=()=>{let ae=le.current;return ae&&ae.written===C?ae.original:C},Ve=ae=>(ae.preventDefault(),Jt(!1)),Jt=ae=>{if(!xe.canSend||v&&!ae||Se.current)return!1;let st=Bt(),Lt=(Z.current?.agentText(st)??st).trim();if(!Lt&&V.length===0)return le.current=void 0,!1;let Ye=document.activeElement?.classList.contains("acpmux-send")??!1,wt=V,jn=n(Lt,wt);if(jn===!1)return!1;let Kn=Z.current?.value()??"",un=(it="")=>{H(ft=>ft.filter(En=>!wt.includes(En))),J(void 0),le.current=void 0,Z.current&&it?Z.current.type(it):Et(it,it.length),be.current=Date.now(),ke.current=Ye};return jn instanceof Promise?(Se.current=!0,jn.then(()=>{Se.current=!1;let it=Z.current?.value()??Kn;un(it===Kn?"":it.startsWith(Kn)?it.slice(Kn.length).trimStart():it)},()=>{Se.current=!1}),!0):(un(),!0)};de.current=Jt;let rn=ae=>{if(ge.current)return;let st=rJe(C,O),Lt=C.slice(0,st),Ye=ae&&/\s/.test(ae)?`"${ae}"`:ae,jn=(!Lt||/(\s| | | )$/i.test(Lt)?"@":" @")+(Ye?`${Ye} `:""),Kn=jn.replace(/[\\`*_[\]~<]/g,"\\$&");le.current=void 0,se.current=O+jn.length;let un=C.slice(st).replace(/^\s+$/,"");Et(Lt+Kn+un,O+jn.length),Z.current?.focus()},Rn=()=>{if(ge.current)return;let ae=/^\/(\S*)/.exec(C)?.[1],Lt=ae!==void 0&&(_e??[]).some(Ye=>Ye.name.startsWith(ae))?C:C?`/ ${C}`:"/";le.current={written:Lt,original:C},se.current=1,Et(Lt,1),Z.current?.focus()},_t=ae=>{A(!0),N(ae),D.current=ae.length},An=()=>{let ae=$;A(!1),N(""),Z.current?.focus(),ae&&Z.current?.writeText(ae,ae.length,ae.length)},Xt=()=>{let ae=$.trim();if(!ae||!x)return;let st=x(ae);st&&(H(Lt=>yme([...Lt,gme(st)])),A(!1),N(""),Z.current?.focus())},zn=ae=>ae.key!=="c"||!ae.ctrlKey||ae.metaKey||ae.altKey||ae.shiftKey||!g?.()?!1:(ae.preventDefault(),!0),Ot=ae=>{if(ae.nativeEvent.isComposing||ae.keyCode===229||zn(ae))return;let st=!ae.shiftKey&&!ae.altKey&&!ae.metaKey&&!ae.ctrlKey;ae.key==="Enter"&&st?(ae.preventDefault(),Xt()):ae.key==="Escape"?(ae.preventDefault(),ae.stopPropagation(),An()):ae.key==="Backspace"&&$===""&&ae.currentTarget.selectionStart===0&&ae.currentTarget.selectionEnd===0&&(ae.preventDefault(),An())},mn=()=>{Date.now()-be.current>QQe&&r()},yn=ae=>{if(ae.isComposing||ae.keyCode===229||zn(ae))return;let st=!ae.shiftKey&&!ae.altKey&&!ae.metaKey&&!ae.ctrlKey;if(b&&ae.key==="Enter"&&ae.metaKey&&!ae.shiftKey&&!ae.altKey&&!ae.ctrlKey){let Ye=Bt().trim()!=="",wt=Ve(ae);if(Ye&&!wt)return;b(wt);return}let Lt=Ae[xt]?.command.name===mt&&!Ae[xt]?.command.hint;if(ae.key==="Enter"&&st&&(!dt||Ae.length===0||Lt)){Ve(ae);return}if(dt){if(ae.key==="Escape"){ae.preventDefault(),ae.stopPropagation();let Ye=le.current;if(le.current=void 0,Ye&&Ye.written===C){Et(Ye.original,Ye.original.length),se.current=Ye.original.length;return}j(C);return}if(Ae.length!==0)if(ae.key==="ArrowDown"||ae.key==="ArrowUp"){ae.preventDefault();let Ye=ae.key==="ArrowDown"?1:-1;U((xt+Ye+Ae.length)%Ae.length)}else(ae.key==="Enter"||ae.key==="Tab")&&st&&(ae.preventDefault(),jt(Ae[xt].command))}},In=!M&&t.isWorking&&!C.trim();return(0,Ht.jsxs)("form",{ref:S,className:"acpmux-composer","data-shell":M?"":void 0,onSubmit:ae=>{if(!M)return Ve(ae);ae.preventDefault(),Xt()},onBlur:ae=>{if(ae.currentTarget.contains(ae.relatedTarget))return;let st=Bt();le.current=void 0,st!==C?Et(st,st.length):dt&&j(C)},children:[t.queue.length>0&&(0,Ht.jsx)("ol",{className:"acpmux-composer-queue","aria-label":k(Co.queue),children:t.queue.map(ae=>(0,Ht.jsxs)("li",{className:"acpmux-queued",title:ae.prompt,children:[(0,Ht.jsx)("span",{className:"acpmux-queued-label","aria-hidden":"true",children:k(Co.queued)}),(0,Ht.jsx)("span",{className:"acpmux-queued-text",children:ae.prompt})]},ae.id))}),xe.note&&(0,Ht.jsx)("p",{className:"acpmux-composer-remote-note",role:"note",children:k(xe.note)}),!xe.note&&v?.reason&&(0,Ht.jsx)("p",{className:"acpmux-composer-remote-note acpmux-composer-trust-note",role:"note",children:k(v.reason)}),(0,Ht.jsx)(K1e,{projectChoices:d,onBrowseProject:p,summary:t.summary,sessions:t.sessions,peers:t.peers,started:(t.summary?.turnCount??0)>0||t.rows.length>0,onProject:u&&((ae,st)=>{u(ae,st),Z.current?.focus()}),localName:m,movedTo:f,busy:t.isWorking,onMove:h&&(ae=>{let st=h(ae);H(Lt=>[...Lt.filter(Ye=>!Ye.move),wme(st)]),Z.current?.focus()})}),_&&c&&S.current?.parentElement&&(0,qye.createPortal)((0,Ht.jsx)(J1e,{search:c,onClose:()=>{L(!1),Z.current?.focus()},onPick:ae=>{L(!1),rn(ae)}}),S.current.parentElement),(0,Ht.jsxs)("div",{className:"acpmux-composer-box",children:[dt&&(0,Ht.jsx)(tJe,{matches:Ae,active:xt,empty:_e?.length?k(Co.noMatchingCommands):k(Co.noCommands),onHover:U,onPick:jt}),(V.length>0||ne||W)&&(0,Ht.jsxs)("fieldset",{className:"acpmux-attachments","aria-label":k(Co.attachments),children:[V.map(ae=>(0,Ht.jsx)(eJe,{attachment:ae,onRemove:st=>{H(Lt=>Lt.filter(Ye=>Ye.id!==st)),Z.current?.focus()}},ae.id)),W?(0,Ht.jsx)("span",{className:"acpmux-attachment-note",children:k(Co.dropFiles)}):ne&&(0,Ht.jsx)("output",{className:"acpmux-attachment-note",children:ne})]}),(0,Ht.jsx)(Bye,{ref:ce,className:M?"acpmux-composer-prompt is-hidden":"acpmux-composer-prompt",value:C,placeholder:k(Co.placeholder),attributes:{role:"combobox","aria-label":k(Co.prompt),"aria-multiline":"true","aria-expanded":String(dt),"aria-controls":dt?"acpmux-slash-menu":void 0,"aria-autocomplete":"list","aria-activedescendant":dt&&Ae.length>0?`acpmux-slash-${xt}`:void 0},onBeforeInput:(ae,st)=>!x||st.composing||!st.empty||!ae.startsWith("!")?!1:(_t(ae.slice(1)),!0),onChange:(ae,st)=>Et(ae,st),onCaret:B,onKeyDown:yn,onCompositionChange:ae=>{ge.current=ae}}),M&&(0,Ht.jsxs)("div",{className:"acpmux-shell-prompt",children:[(0,Ht.jsx)("span",{className:"acpmux-shell-glyph","aria-hidden":"true",children:"!"}),(0,Ht.jsx)("textarea",{ref:F,className:"acpmux-shell-field",rows:1,value:$,"aria-label":k("composer.shell"),placeholder:k("composer.shellPlaceholder"),spellCheck:!1,autoCapitalize:"off",autoCorrect:"off",onChange:ae=>N(ae.target.value),onKeyDown:Ot})]}),(0,Ht.jsxs)("div",{className:"acpmux-composer-bar",children:[o!==void 0?o:(0,Ht.jsx)(cF,{label:k(Co.add),className:"acpmux-composer-plus",button:(0,Ht.jsx)(Dde,{}),align:"start",returnFocus:!1,sections:[...Ke.length>0&&y?[{title:k("picker.mode"),choices:Ke,onPick:ae=>{ae.startsWith("mode:")?y(ae.slice(5)):ae.startsWith("plan:")&&y(Re?ye.current.mode??Ce[0]?.id?.slice(5)??ae.slice(5):ae.slice(5))}}]:[],{choices:[...l?[{id:"attach",name:k(Co.attach),icon:(0,Ht.jsx)(Bde,{})}]:[],{id:"mention",name:k(Co.mention),icon:(0,Ht.jsx)(zde,{}),hint:"@"},...c?[{id:"files",name:k("files.search"),icon:(0,Ht.jsx)(P2,{size:18})}]:[],..._e?.length?[{id:"commands",name:k(Co.commands),icon:(0,Ht.jsx)(Hde,{}),hint:"/"}]:[]],onPick:ae=>ae==="attach"?l?.():ae==="mention"?rn():ae==="files"?L(!0):Rn()}]}),(0,Ht.jsx)(e,{snapshot:t}),(0,Ht.jsxs)("span",{className:"acpmux-composer-actions",children:[a,In?(0,Ht.jsx)("button",{ref:me,type:"button",className:"acpmux-send acpmux-cancel","aria-label":k(Co.stop),title:k(Co.stop),onClick:mn,children:(0,Ht.jsx)(Fde,{})},"stop"):xe.canSend?(0,Ht.jsx)("button",{ref:me,type:"submit",disabled:!!v&&!M,className:`acpmux-send${(M?$.trim():!v&&(C.trim()||V.length))?" acpmux-send-ready":""}`,"aria-label":k(M?"composer.shellRun":Co.send),title:M?k("composer.shellRun"):v?.reason?k(v.reason):k("composer.sendTooltip"),children:(0,Ht.jsx)(tL,{})},"send"):null]})]})]})]})}function eJe(t){let e=(0,QE.c)(22),{attachment:n,onRemove:r}=t,i=we(),o;e[0]!==n.name||e[1]!==i?(o=i(Co.removeAttachment,{name:n.name}),e[0]=n.name,e[1]=i,e[2]=o):o=e[2];let a;e[3]!==n.id||e[4]!==r?(a=()=>r(n.id),e[3]=n.id,e[4]=r,e[5]=a):a=e[5];let s;e[6]!==o||e[7]!==a?(s=(0,Ht.jsx)("button",{type:"button",className:"acpmux-attachment-remove","aria-label":o,onClick:a,children:"\xD7"}),e[6]=o,e[7]=a,e[8]=s):s=e[8];let l=s;if(n.kind==="image"){let d=`data:${n.mimeType};base64,${n.data}`,p;e[9]!==n.name||e[10]!==d?(p=(0,Ht.jsx)("img",{alt:n.name,src:d}),e[9]=n.name,e[10]=d,e[11]=p):p=e[11];let m;return e[12]!==n.name||e[13]!==l||e[14]!==p?(m=(0,Ht.jsxs)("div",{className:"acpmux-attachment acpmux-attachment-image",title:n.name,children:[p,l]}),e[12]=n.name,e[13]=l,e[14]=p,e[15]=m):m=e[15],m}let c;e[16]!==n.name?(c=(0,Ht.jsx)("span",{children:n.name}),e[16]=n.name,e[17]=c):c=e[17];let u;return e[18]!==n.name||e[19]!==l||e[20]!==c?(u=(0,Ht.jsxs)("div",{className:"acpmux-attachment acpmux-attachment-file",title:n.name,children:[c,l]}),e[18]=n.name,e[19]=l,e[20]=c,e[21]=u):u=e[21],u}function tJe(t){let e=(0,QE.c)(22),{matches:n,active:r,empty:i,onHover:o,onPick:a}=t,s=we(),l=(0,wn.useRef)(null),c,u;if(e[0]!==r?(c=()=>{l.current?.querySelector(`#acpmux-slash-${r}`)?.scrollIntoView?.({block:"nearest"})},u=[r],e[0]=r,e[1]=c,e[2]=u):(c=e[1],u=e[2]),(0,wn.useLayoutEffect)(c,u),n.length===0){let f;e[3]!==s?(f=s(Co.commands),e[3]=s,e[4]=f):f=e[4];let h;return e[5]!==i||e[6]!==f?(h=(0,Ht.jsx)("div",{className:"acpmux-slash-menu acpmux-slash-empty",id:"acpmux-slash-menu",role:"listbox","aria-label":f,children:i}),e[5]=i,e[6]=f,e[7]=h):h=e[7],h}let d;e[8]!==s?(d=s(Co.commands),e[8]=s,e[9]=d):d=e[9];let p;if(e[10]!==r||e[11]!==n||e[12]!==o||e[13]!==a){let f;e[15]!==r||e[16]!==o||e[17]!==a?(f=(h,x)=>(0,Ht.jsxs)("div",{id:`acpmux-slash-${x}`,role:"option",tabIndex:-1,"aria-selected":x===r,className:x===r?"acpmux-slash-row acpmux-slash-active":"acpmux-slash-row",onMouseMove:()=>{x!==r&&o(x)},onMouseDown:g=>{g.preventDefault(),a(h.command)},children:[(0,Ht.jsxs)("span",{className:"acpmux-slash-name",children:["/",(0,Ht.jsx)(nJe,{name:h.command.name,ranges:h.ranges})]}),h.command.hint&&(0,Ht.jsx)("span",{className:"acpmux-slash-hint",children:h.command.hint}),(0,Ht.jsx)("span",{className:"acpmux-slash-description",children:h.command.description})]},h.command.name),e[15]=r,e[16]=o,e[17]=a,e[18]=f):f=e[18],p=n.map(f),e[10]=r,e[11]=n,e[12]=o,e[13]=a,e[14]=p}else p=e[14];let m;return e[19]!==d||e[20]!==p?(m=(0,Ht.jsx)("div",{ref:l,className:"acpmux-slash-menu",id:"acpmux-slash-menu",role:"listbox","aria-label":d,children:p}),e[19]=d,e[20]=p,e[21]=m):m=e[21],m}function nJe(t){let e=(0,QE.c)(6),{name:n,ranges:r}=t,i;if(e[0]!==n||e[1]!==r){let o=[],a=0;for(let[s,l]of r)s>a&&o.push(n.slice(a,s)),o.push((0,Ht.jsx)("mark",{children:n.slice(s,l)},s)),a=l;if(a<n.length){let s;e[3]!==a||e[4]!==n?(s=n.slice(a),e[3]=a,e[4]=n,e[5]=s):s=e[5],o.push(s)}i=(0,Ht.jsx)(Ht.Fragment,{children:o}),e[0]=n,e[1]=r,e[2]=i}else i=e[2];return i}function rJe(t,e){let n=0;for(let r=0;r<e&&n<t.length;r++){let i=/^(\\[!-/:-@[-`{-~]|&(#x[0-9a-f]+|#[0-9]+|[a-z][a-z0-9]*);)/i.exec(t.slice(n));n+=i?i[0].length:1}return n}var Uye=R(qe(),1);var zu=R(ee(),1),Gye={prompt:"empty.prompt",promptIn:"empty.promptIn"};function x8(t){if(!t?.replace(/\/+$/,""))return;let e=wi(t);return e==="~"?void 0:e}function Vye(t,e=!1){let n=t.summary;if(e&&!n&&!t.sessionId&&!t.canLoadOlder)return t.rows.length===0&&!t.isWorking&&t.queue.length===0;if(!n||n.sessionId!==t.sessionId&&!t.switching||/^(connecting|disconnected|failed)/.test(t.connection))return!1;let r=n.turnCount??(t.canLoadOlder?1:0);return t.rows.length===0&&!t.isWorking&&t.queue.length===0&&r===0}function Zye(t){let e=(0,Uye.c)(10),{project:n}=t,r=we(),i;e[0]!==r?(i=r(Gye.promptIn).split("{project}"),e[0]=r,e[1]=i):i=e[1];let[o,a]=i,s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,zu.jsxs)("svg",{className:"acpmux-empty-glyph",width:36,height:36,viewBox:"0 0 36 36",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:[(0,zu.jsx)("rect",{x:"4.75",y:"6.75",width:"26.5",height:"22.5",rx:"6"}),(0,zu.jsx)("path",{d:"m11.5 14.5 3.5 3.5-3.5 3.5M18.5 22h6"})]}),e[2]=s):s=e[2];let l;e[3]!==a||e[4]!==o||e[5]!==n||e[6]!==r?(l=n?(0,zu.jsxs)(zu.Fragment,{children:[o,(0,zu.jsx)("span",{className:"acpmux-empty-project",children:n}),a]}):r(Gye.prompt),e[3]=a,e[4]=o,e[5]=n,e[6]=r,e[7]=l):l=e[7];let c;return e[8]!==l?(c=(0,zu.jsxs)("div",{className:"acpmux-empty",children:[s,(0,zu.jsx)("h2",{className:"acpmux-empty-title",children:l})]}),e[8]=l,e[9]=c):c=e[9],c}var Xg=R(qe(),1);var Nr=R(ee(),1),LG={needsInput:"home.needsInput",readyForReview:"home.readyForReview",ago:"home.ago"},Wye=3;function iJe(t,e){let n=t.filter(r=>r.sessionId!==e).sort((r,i)=>(i.updatedAt??0)-(r.updatedAt??0));return{input:n.filter(r=>_2(r,!1)==="input").slice(0,Wye),review:n.filter(r=>r.pullRequest?.state==="open"&&r.pullRequest.reviewReady).slice(0,Wye)}}function oJe(t,e=Date.now(),n=ve){if(t===void 0)return;let r=Math.floor(Math.max(0,e-t)/6e4);if(r<1)return n("age.now");let i=[[1440*360,"age.years"],[1440*30,"age.months"],[1440,"age.days"],[60,"age.hours"],[1,"age.minutes"]],[o,a]=i.find(([l])=>r>=l),s=a==="age.years"?Math.max(1,Math.round(r/(1440*365))):Math.floor(r/o);return n(LG.ago,{time:n(a,{n:s})})}function Yye(t){let e=(0,Xg.c)(12),{sessions:n,currentId:r,onSelect:i}=t,o=we(),a,s,l,c;if(e[0]!==r||e[1]!==i||e[2]!==n||e[3]!==o){c=Symbol.for("react.early_return_sentinel");e:{let{input:d,review:p}=iJe(n,r);if(d.length===0&&p.length===0){c=null;break e}a="acpmux-home",s=d.length>0&&(0,Nr.jsx)(Kye,{label:o(LG.needsInput),children:d.map(m=>(0,Nr.jsx)(Xye,{session:m,mark:(0,Nr.jsx)("span",{className:"acpmux-home-dot","aria-hidden":"true"}),detail:m.preview,onSelect:i},m.sessionId))}),l=p.length>0&&(0,Nr.jsx)(Kye,{label:o(LG.readyForReview),children:p.map(m=>(0,Nr.jsx)(Xye,{session:m,mark:(0,Nr.jsx)(aJe,{}),title:m.pullRequest.title,detail:`#${m.pullRequest.number}`,onSelect:i},m.sessionId))})}e[0]=r,e[1]=i,e[2]=n,e[3]=o,e[4]=a,e[5]=s,e[6]=l,e[7]=c}else a=e[4],s=e[5],l=e[6],c=e[7];if(c!==Symbol.for("react.early_return_sentinel"))return c;let u;return e[8]!==a||e[9]!==s||e[10]!==l?(u=(0,Nr.jsxs)("div",{className:a,children:[s,l]}),e[8]=a,e[9]=s,e[10]=l,e[11]=u):u=e[11],u}function Kye(t){let e=(0,Xg.c)(8),{label:n,children:r}=t,i;e[0]!==n?(i=(0,Nr.jsx)("h3",{className:"acpmux-home-label",children:n}),e[0]=n,e[1]=i):i=e[1];let o;e[2]!==r?(o=(0,Nr.jsx)("ul",{children:r}),e[2]=r,e[3]=o):o=e[3];let a;return e[4]!==n||e[5]!==i||e[6]!==o?(a=(0,Nr.jsxs)("section",{className:"acpmux-home-list","aria-label":n,children:[i,o]}),e[4]=n,e[5]=i,e[6]=o,e[7]=a):a=e[7],a}function Xye(t){let e=(0,Xg.c)(24),{session:n,mark:r,title:i,detail:o,onSelect:a}=t,s=we(),l;e[0]!==n.cwd?(l=n.cwd?wi(n.cwd):void 0,e[0]=n.cwd,e[1]=l):l=e[1];let c=l,u;e[2]!==n.updatedAt||e[3]!==s?(u=oJe(n.updatedAt,Date.now(),s),e[2]=n.updatedAt,e[3]=s,e[4]=u):u=e[4];let d=u,p;e[5]!==a||e[6]!==n.sessionId?(p=()=>a(n.sessionId),e[5]=a,e[6]=n.sessionId,e[7]=p):p=e[7];let m=i??n.displayTitle,f;e[8]!==m?(f=(0,Nr.jsx)("span",{className:"acpmux-home-title",children:m}),e[8]=m,e[9]=f):f=e[9];let h;e[10]!==o?(h=o&&(0,Nr.jsx)("span",{className:"acpmux-home-detail",children:o}),e[10]=o,e[11]=h):h=e[11];let x;e[12]!==c?(x=c&&(0,Nr.jsx)("span",{className:"acpmux-home-meta",children:c}),e[12]=c,e[13]=x):x=e[13];let g;e[14]!==d?(g=d&&(0,Nr.jsx)("span",{className:"acpmux-home-meta",children:d}),e[14]=d,e[15]=g):g=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,Nr.jsx)(sJe,{}),e[16]=y):y=e[16];let b;return e[17]!==r||e[18]!==p||e[19]!==f||e[20]!==h||e[21]!==x||e[22]!==g?(b=(0,Nr.jsx)("li",{children:(0,Nr.jsxs)("button",{type:"button",className:"acpmux-home-row",onClick:p,children:[r,f,h,x,g,y]})}),e[17]=r,e[18]=p,e[19]=f,e[20]=h,e[21]=x,e[22]=g,e[23]=b):b=e[23],b}function Qye(t){let e=(0,Xg.c)(2),{children:n}=t,r;return e[0]!==n?(r=(0,Nr.jsx)("svg",{className:"acpmux-icon",width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:n}),e[0]=n,e[1]=r):r=e[1],r}var aJe=()=>{let t=(0,Xg.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Nr.jsxs)(Qye,{children:[(0,Nr.jsx)("circle",{cx:"4.5",cy:"3.75",r:"1.5"}),(0,Nr.jsx)("circle",{cx:"4.5",cy:"12.25",r:"1.5"}),(0,Nr.jsx)("circle",{cx:"11.5",cy:"12.25",r:"1.5"}),(0,Nr.jsx)("path",{d:"M4.5 5.25v5.5M11.5 10.75V6.25c0-.83-.67-1.5-1.5-1.5H7.75M9.25 3.25l-1.5 1.5 1.5 1.5"})]}),t[0]=e):e=t[0],e},sJe=()=>{let t=(0,Xg.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Nr.jsx)(Qye,{children:(0,Nr.jsx)("path",{d:"m6.25 4.25 3.5 3.75-3.5 3.75"})}),t[0]=e):e=t[0],e};var Jye=R(qe(),1);var ol=R(ee(),1);function e3e(t){let e=(0,Jye.c)(9),{ask:n,agent:r,onTrust:i,onDistrust:o,onUndo:a}=t,s=we(),l;if(e[0]!==r||e[1]!==n.cwd||e[2]!==n.level||e[3]!==n.state||e[4]!==o||e[5]!==i||e[6]!==a||e[7]!==s){let c=x8(n.cwd)??n.cwd;l=(0,ol.jsx)("div",{className:"acpmux-trust-ask","aria-live":"polite",children:n.state==="decided"?(0,ol.jsxs)(ol.Fragment,{children:[(0,ol.jsx)("span",{className:"acpmux-trust-ask-text",children:s(n.level==="trusted"?"trust.trusted":"trust.untrusted",{folder:c})}),(0,ol.jsx)("button",{type:"button",className:"acpmux-trust-ask-action",onClick:a,children:s("trust.undo")})]}):n.state==="remote"?(0,ol.jsx)("span",{className:"acpmux-trust-ask-text",children:s("trust.remote")}):(0,ol.jsxs)(ol.Fragment,{children:[(0,ol.jsx)("span",{className:"acpmux-trust-ask-text",children:n.state==="failed"?s("trust.failed"):s("trust.ask",{agent:r,folder:c})}),(0,ol.jsx)("button",{type:"button",className:"acpmux-trust-ask-action",onClick:i,children:s("trust.trust")}),(0,ol.jsx)("button",{type:"button",className:"acpmux-trust-ask-action",onClick:o,children:s("trust.distrust")})]})}),e[0]=r,e[1]=n.cwd,e[2]=n.level,e[3]=n.state,e[4]=o,e[5]=i,e[6]=a,e[7]=s,e[8]=l}else l=e[8];return l}var i3e=R(qe(),1),Qg=R(Q(),1);var lJe='input, textarea, select, [contenteditable]:not([contenteditable="false"])';function cJe(t){let e=t;return typeof e?.closest=="function"&&e.closest(lJe)!==null}function t3e(t){if(!(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)&&!(t.isComposing||t.nativeEvent?.isComposing)&&!(t.key.length!==1||cJe(t.target)))return t.key.toLowerCase()}var n3e=R(qe(),1),r3e=R(ee(),1);function u3(t){let e=(0,n3e.c)(2),{children:n}=t,r;return e[0]!==n?(r=(0,r3e.jsx)("kbd",{className:"acpmux-keycap","aria-hidden":"true",children:n}),e[0]=n,e[1]=r):r=e[1],r}var Yg=R(ee(),1);function MG(t){let e=(0,i3e.c)(29),{permission:n,onAnswer:r}=t,i=we(),o;e[0]!==n.options||e[1]!==n.pending?(o=n.pending?xL(n.options):new Map,e[0]=n.options,e[1]=n.pending,e[2]=o):o=e[2];let a=o,s;e[3]!==n.title||e[4]!==i?(s=n.title||i("permission.required"),e[3]=n.title,e[4]=i,e[5]=s):s=e[5];let l=s,c=(0,Qg.useId)(),u=(0,Qg.useRef)(null),d=(0,Qg.useRef)(void 0),p,m;e[6]!==a||e[7]!==r||e[8]!==n.options||e[9]!==n.pending||e[10]!==n.permissionId?(p=()=>{let y=u.current;if(!y||!n.pending)return;let b=w=>{if(w.repeat||d.current===n.permissionId)return;let v=t3e(w),k=v?wL(n.options,a,v):void 0;k&&(w.preventDefault(),d.current=n.permissionId,r(k.id))};return y.addEventListener("keydown",b),()=>y.removeEventListener("keydown",b)},m=[n.pending,n.permissionId,n.options,a,r],e[6]=a,e[7]=r,e[8]=n.options,e[9]=n.pending,e[10]=n.permissionId,e[11]=p,e[12]=m):(p=e[11],m=e[12]),(0,Qg.useEffect)(p,m);let f;e[13]!==l||e[14]!==c?(f=(0,Yg.jsx)("strong",{id:c,children:l}),e[13]=l,e[14]=c,e[15]=f):f=e[15];let h;if(e[16]!==a||e[17]!==r||e[18]!==n.options){let y;e[20]!==a||e[21]!==r?(y=b=>{let w=a.get(b.id);return(0,Yg.jsxs)("button",{type:"button","aria-keyshortcuts":w,onClick:()=>r(b.id),children:[w&&(0,Yg.jsx)(u3,{children:w}),b.name]},b.id)},e[20]=a,e[21]=r,e[22]=y):y=e[22],h=n.options.map(y),e[16]=a,e[17]=r,e[18]=n.options,e[19]=h}else h=e[19];let x;e[23]!==h?(x=(0,Yg.jsx)("div",{className:"acpmux-permission-buttons",children:h}),e[23]=h,e[24]=x):x=e[24];let g;return e[25]!==f||e[26]!==x||e[27]!==c?(g=(0,Yg.jsxs)("fieldset",{ref:u,className:"acpmux-permission-card","aria-labelledby":c,children:[f,x]}),e[25]=f,e[26]=x,e[27]=c,e[28]=g):g=e[28],g}var qa=R(Q(),1);function o3e(t,e,n=!0){let[r,i]=(0,qa.useState)(),[o,a]=(0,qa.useState)(!1),[s,l]=(0,qa.useState)(0),[c,u]=(0,qa.useState)(),d=(0,qa.useRef)(void 0),{sessionId:p,family:m,prompts:f}=e,h=e.cwd??(c&&c.sessionId===p?c.cwd:void 0),x=(0,qa.useRef)({sessionId:p,cwd:h});x.current={sessionId:p,cwd:h};let g=(0,qa.useRef)(void 0),y=(0,qa.useRef)(!1);(0,qa.useEffect)(()=>{if(i(void 0),g.current=void 0,a(!!h),!h)return;let v=!0;return Tpe(t,h).then(k=>{if(!v)return;a(!1);let _=k&&Mpe(k,m);_==="unknown"?i({cwd:h,state:n?"ask":"remote"}):_==="untrusted"&&i({cwd:h,state:"decided",level:_})}),()=>{v=!1}},[t,p,h,m,s,n]),(0,qa.useEffect)(()=>{r?.state==="decided"&&r.level==="trusted"&&g.current!==void 0&&f>g.current&&i(void 0)},[r,f]);let b=(0,qa.useCallback)(async v=>{if(!r||y.current)return;y.current=!0;let k={sessionId:p,cwd:r.cwd},_=()=>x.current.sessionId===k.sessionId&&x.current.cwd===k.cwd;try{if(await t.set(k.cwd,v),!_())return;g.current=v==="unknown"?void 0:f,i(v==="unknown"?{cwd:k.cwd,state:"ask"}:{cwd:k.cwd,state:"decided",level:v});let L=d.current;d.current=void 0,v==="trusted"&&L?.()}catch{_()&&i({cwd:k.cwd,state:"failed"})}finally{y.current=!1}},[r,t,p,f]),w=o?{}:r?.state==="ask"||r?.state==="failed"?{reason:"trust.answerFirst"}:r?.state==="remote"?{reason:"trust.remote"}:r?.state==="decided"&&r.level==="untrusted"?{reason:"trust.untrustedNoPrompts"}:void 0;return{ask:r,blocked:w,trust:()=>{b("trusted")},distrust:()=>{b("untrusted")},undo:()=>{b("unknown")},refused:(0,qa.useCallback)((v,k)=>{if(!$2(v))return!1;let _=v.cwd;return typeof _=="string"&&_&&u({sessionId:p,cwd:_}),d.current=k,l(L=>L+1),!0},[p])}}var Xxe=R(qe(),1),lo=R(Q(),1);var a3e={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},s3e={display:"contents"};function EG(){return null}var tc=R(ee(),1);function l3e({fileDiff:t,actions:e,renderCustomHeader:n,renderHeaderPrefix:r,renderHeaderMetadata:i,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:s,lineAnnotations:l,getHoveredLine:c,getInstance:u}){let d=n?.(t),p=r?.(t),m=i?.(t);return(0,tc.jsxs)(tc.Fragment,{children:[d!=null?(0,tc.jsx)("div",{slot:Ip,children:d}):(0,tc.jsxs)(tc.Fragment,{children:[p!=null&&(0,tc.jsx)("div",{slot:Ap,children:p}),m!=null&&(0,tc.jsx)("div",{slot:$p,children:m})]}),o!=null&&l?.map((f,h)=>(0,tc.jsx)("div",{slot:El(f),children:o(f)},h)),e!=null&&s!=null&&u!=null&&e.map(f=>{if(f==null)return;let h=uJe(f,t);return(0,tc.jsx)("div",{slot:h,style:s3e,children:s(f,u)},h)}),a!=null&&(0,tc.jsx)("div",{slot:"gutter-utility-slot",style:a3e,children:a(c)})]})}function uJe(t,e){let n=$re(t,e);return n!=null?Are({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:t.conflictIndex}):void 0}var d3=R(Q(),1);function nu(t){let e=(0,d3.useRef)(t);return(0,d3.useInsertionEffect)(()=>{e.current=t}),(0,d3.useCallback)((...n)=>e.current(...n),[])}var p3=R(Q(),1),dJe=R(ee(),1),Jg=(0,p3.createContext)(void 0);var ph=R(ee(),1);function c3e(t,e){return typeof window>"u"&&e!=null?(0,ph.jsxs)(ph.Fragment,{children:[(0,ph.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:e}}),t]}):(0,ph.jsx)(ph.Fragment,{children:t})}var m3=R(Q(),1),pJe=R(ee(),1),mJe=(0,m3.createContext)(void 0);function u3e(){return(0,m3.useContext)(mJe)}var Zd=R(Q(),1),fJe=typeof window>"u"?Zd.useEffect:Zd.useLayoutEffect;function d3e({fileDiff:t,options:e,lineAnnotations:n,selectedLines:r,prerenderedHTML:i,metrics:o,hasGutterRenderUtility:a,hasCustomHeader:s,disableWorkerPool:l}){let c=u3e(),u=r!==void 0,d=(0,Zd.useContext)(Jg),p=(0,Zd.useRef)(null),m=nu(f=>{if(f!=null){if(p.current!=null)throw new Error("useFileDiffInstance: An instance should not already exist when a node is created");c!=null?p.current=new Rre(TG({controlledSelection:u,hasCustomHeader:s,hasGutterRenderUtility:a,options:e}),c,o,l?void 0:d,!0):p.current=new Dk(TG({controlledSelection:u,hasCustomHeader:s,hasGutterRenderUtility:a,options:e}),l?void 0:d,!0),p.current.hydrate({fileDiff:t,fileContainer:f,lineAnnotations:n,prerenderedHTML:i})}else{if(p.current==null)throw new Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");p.current.cleanUp(),p.current=null}});return fJe(()=>{let{current:f}=p;if(f==null)return;let h=TG({controlledSelection:u,hasCustomHeader:s,hasGutterRenderUtility:a,options:e}),x=!nv(f.options,h);f.setOptions(h),f.render({forceRender:x,fileDiff:t,lineAnnotations:n}),r!==void 0&&f.setSelectedLines(r)}),{ref:m,getHoveredLine:(0,Zd.useCallback)(()=>p.current?.getHoveredLine(),[])}}function TG({options:t,controlledSelection:e,hasCustomHeader:n,hasGutterRenderUtility:r}){return!e&&!r&&!n?t:{...t,controlledSelection:e,renderCustomHeader:n?EG:t?.renderCustomHeader,renderGutterUtility:r?EG:t?.renderGutterUtility}}var p3e=R(ee(),1);function w8({fileDiff:t,options:e,metrics:n,lineAnnotations:r,selectedLines:i,className:o,style:a,prerenderedHTML:s,renderAnnotation:l,renderCustomHeader:c,renderHeaderPrefix:u,renderHeaderMetadata:d,renderGutterUtility:p,disableWorkerPool:m=!1}){let{ref:f,getHoveredLine:h}=d3e({fileDiff:t,options:e,metrics:n,lineAnnotations:r,selectedLines:i,prerenderedHTML:s,hasGutterRenderUtility:p!=null,hasCustomHeader:c!=null,disableWorkerPool:m});return(0,p3e.jsx)(kc,{ref:f,className:o,style:a,children:c3e(l3e({fileDiff:t,renderCustomHeader:c,renderHeaderPrefix:u,renderHeaderMetadata:d,renderAnnotation:l,renderGutterUtility:p,lineAnnotations:r,getHoveredLine:h}),s)})}var Ha=R(qe(),1),C6e=R(Q(),1);var h3e=`<svg data-icon-sprite aria-hidden="true" width="0" height="0"> +${Mt}`:ae;Z.current?Z.current.type(Ye):(T(Ye),B(Ye.length)),st.length&&H(vt=>[...st,...vt.filter(jn=>!st.some(Kn=>Kn.id===jn.id))])},send:()=>de.current(!0)}),[]),(0,wn.useEffect)(()=>{!i||Z.current?.value()||(T(ae=>ype(ae,i)),B(i.length),se.current=i.length)},[i]);let _e=t.commands,xe=zye(t),Ce=(t.summary?.modes?.availableModes??[]).filter(ae=>!/(^|[-_])plan$/i.test(ae.id)).map(ae=>({id:`mode:${ae.id}`,name:ae.name||ae.id,description:ae.description,icon:(0,Ht.jsx)(mF,{})})),K=t.summary?.modes?.availableModes?.find(ae=>/(^|[-_])plan$/i.test(ae.id)),Y=t.summary?.modes?.currentModeId,ye=(0,wn.useRef)({});ye.current.sessionId!==t.summary?.sessionId&&(ye.current={sessionId:t.summary?.sessionId}),Y&&!/(^|[-_])plan$/i.test(Y)&&(ye.current.mode=Y);let Re=K?.id===Y,Ke=[...Ce,...K?[{id:`plan:${K.id}`,name:Re?"Build":"Plan",icon:Re?(0,Ht.jsx)(hF,{}):(0,Ht.jsx)(fF,{})}]:[]],mt=hse(C,O),dt=mt!==void 0&&G!==C,Ae=(0,wn.useMemo)(()=>dt?gse(_e??[],mt??""):[],[_e,dt,mt]);(0,wn.useEffect)(()=>U(0),[mt]);let wt=Math.min(P,Math.max(Ae.length-1,0));(0,wn.useLayoutEffect)(()=>{let ae=F.current;ae&&(ae.style.height="0px",ae.style.height=`${ae.scrollHeight}px`,D.current!==void 0&&(ae.focus(),ae.setSelectionRange(D.current,D.current),D.current=void 0))}),(0,wn.useLayoutEffect)(()=>{se.current===void 0||!Z.current||(Z.current.setCaret(se.current),se.current=void 0)});let Tt=(ae,st)=>{T(ae),B(st),j(void 0)},Ot=ae=>{let st=bse(C,O,ae);se.current=st.caret,Tt(st.text,st.caret),Z.current?.focus()},zt=()=>{let ae=ce.current;return ae&&ae.written===C?ae.original:C},Ve=ae=>(ae.preventDefault(),Jt(!1)),Jt=ae=>{if(!xe.canSend||v&&!ae||Se.current)return!1;let st=zt(),Mt=(Z.current?.agentText(st)??st).trim();if(!Mt&&V.length===0)return ce.current=void 0,!1;let Ye=document.activeElement?.classList.contains("acpmux-send")??!1,vt=V,jn=n(Mt,vt);if(jn===!1)return!1;let Kn=Z.current?.value()??"",un=(it="")=>{H(ft=>ft.filter(En=>!vt.includes(En))),J(void 0),ce.current=void 0,Z.current&&it?Z.current.type(it):Tt(it,it.length),ge.current=Date.now(),ke.current=Ye};return jn instanceof Promise?(Se.current=!0,jn.then(()=>{Se.current=!1;let it=Z.current?.value()??Kn;un(it===Kn?"":it.startsWith(Kn)?it.slice(Kn.length).trimStart():it)},()=>{Se.current=!1}),!0):(un(),!0)};de.current=Jt;let rn=ae=>{if(be.current)return;let st=aJe(C,O),Mt=C.slice(0,st),Ye=ae&&/\s/.test(ae)?`"${ae}"`:ae,jn=(!Mt||/(\s| | | )$/i.test(Mt)?"@":" @")+(Ye?`${Ye} `:""),Kn=jn.replace(/[\\`*_[\]~<]/g,"\\$&");ce.current=void 0,se.current=O+jn.length;let un=C.slice(st).replace(/^\s+$/,"");Tt(Mt+Kn+un,O+jn.length),Z.current?.focus()},Rn=()=>{if(be.current)return;let ae=/^\/(\S*)/.exec(C)?.[1],Mt=ae!==void 0&&(_e??[]).some(Ye=>Ye.name.startsWith(ae))?C:C?`/ ${C}`:"/";ce.current={written:Mt,original:C},se.current=1,Tt(Mt,1),Z.current?.focus()},St=ae=>{A(!0),N(ae),D.current=ae.length},An=()=>{let ae=$;A(!1),N(""),Z.current?.focus(),ae&&Z.current?.writeText(ae,ae.length,ae.length)},Xt=()=>{let ae=$.trim();if(!ae||!x)return;let st=x(ae);st&&(H(Mt=>yme([...Mt,gme(st)])),A(!1),N(""),Z.current?.focus())},zn=ae=>ae.key!=="c"||!ae.ctrlKey||ae.metaKey||ae.altKey||ae.shiftKey||!g?.()?!1:(ae.preventDefault(),!0),Dt=ae=>{if(ae.nativeEvent.isComposing||ae.keyCode===229||zn(ae))return;let st=!ae.shiftKey&&!ae.altKey&&!ae.metaKey&&!ae.ctrlKey;ae.key==="Enter"&&st?(ae.preventDefault(),Xt()):ae.key==="Escape"?(ae.preventDefault(),ae.stopPropagation(),An()):ae.key==="Backspace"&&$===""&&ae.currentTarget.selectionStart===0&&ae.currentTarget.selectionEnd===0&&(ae.preventDefault(),An())},mn=()=>{Date.now()-ge.current>tJe&&r()},yn=ae=>{if(ae.isComposing||ae.keyCode===229||zn(ae))return;let st=!ae.shiftKey&&!ae.altKey&&!ae.metaKey&&!ae.ctrlKey;if(b&&ae.key==="Enter"&&ae.metaKey&&!ae.shiftKey&&!ae.altKey&&!ae.ctrlKey){let Ye=zt().trim()!=="",vt=Ve(ae);if(Ye&&!vt)return;b(vt);return}let Mt=Ae[wt]?.command.name===mt&&!Ae[wt]?.command.hint;if(ae.key==="Enter"&&st&&(!dt||Ae.length===0||Mt)){Ve(ae);return}if(dt){if(ae.key==="Escape"){ae.preventDefault(),ae.stopPropagation();let Ye=ce.current;if(ce.current=void 0,Ye&&Ye.written===C){Tt(Ye.original,Ye.original.length),se.current=Ye.original.length;return}j(C);return}if(Ae.length!==0)if(ae.key==="ArrowDown"||ae.key==="ArrowUp"){ae.preventDefault();let Ye=ae.key==="ArrowDown"?1:-1;U((wt+Ye+Ae.length)%Ae.length)}else(ae.key==="Enter"||ae.key==="Tab")&&st&&(ae.preventDefault(),Ot(Ae[wt].command))}},In=!M&&t.isWorking&&!C.trim();return(0,Ht.jsxs)("form",{ref:S,className:"acpmux-composer","data-shell":M?"":void 0,onSubmit:ae=>{if(!M)return Ve(ae);ae.preventDefault(),Xt()},onBlur:ae=>{if(ae.currentTarget.contains(ae.relatedTarget))return;let st=zt();ce.current=void 0,st!==C?Tt(st,st.length):dt&&j(C)},children:[t.queue.length>0&&(0,Ht.jsx)("ol",{className:"acpmux-composer-queue","aria-label":k(Co.queue),children:t.queue.map(ae=>(0,Ht.jsxs)("li",{className:"acpmux-queued",title:ae.prompt,children:[(0,Ht.jsx)("span",{className:"acpmux-queued-label","aria-hidden":"true",children:k(Co.queued)}),(0,Ht.jsx)("span",{className:"acpmux-queued-text",children:ae.prompt})]},ae.id))}),xe.note&&(0,Ht.jsx)("p",{className:"acpmux-composer-remote-note",role:"note",children:k(xe.note)}),!xe.note&&v?.reason&&(0,Ht.jsx)("p",{className:"acpmux-composer-remote-note acpmux-composer-trust-note",role:"note",children:k(v.reason)}),_&&c&&S.current?.parentElement&&(0,qye.createPortal)((0,Ht.jsx)(J1e,{search:c,onClose:()=>{L(!1),Z.current?.focus()},onPick:ae=>{L(!1),rn(ae)}}),S.current.parentElement),(0,Ht.jsxs)("div",{className:"acpmux-composer-box",children:[dt&&(0,Ht.jsx)(iJe,{matches:Ae,active:wt,empty:_e?.length?k(Co.noMatchingCommands):k(Co.noCommands),onHover:U,onPick:Ot}),(V.length>0||ne||W)&&(0,Ht.jsxs)("fieldset",{className:"acpmux-attachments","aria-label":k(Co.attachments),children:[V.map(ae=>(0,Ht.jsx)(rJe,{attachment:ae,onRemove:st=>{H(Mt=>Mt.filter(Ye=>Ye.id!==st)),Z.current?.focus()}},ae.id)),W?(0,Ht.jsx)("span",{className:"acpmux-attachment-note",children:k(Co.dropFiles)}):ne&&(0,Ht.jsx)("output",{className:"acpmux-attachment-note",children:ne})]}),(0,Ht.jsx)(Bye,{ref:le,className:M?"acpmux-composer-prompt is-hidden":"acpmux-composer-prompt",value:C,placeholder:k(Co.placeholder),attributes:{role:"combobox","aria-label":k(Co.prompt),"aria-multiline":"true","aria-expanded":String(dt),"aria-controls":dt?"acpmux-slash-menu":void 0,"aria-autocomplete":"list","aria-activedescendant":dt&&Ae.length>0?`acpmux-slash-${wt}`:void 0},onBeforeInput:(ae,st)=>!x||st.composing||!st.empty||!ae.startsWith("!")?!1:(St(ae.slice(1)),!0),onChange:(ae,st)=>Tt(ae,st),onCaret:B,onKeyDown:yn,onCompositionChange:ae=>{be.current=ae}}),M&&(0,Ht.jsxs)("div",{className:"acpmux-shell-prompt",children:[(0,Ht.jsx)("span",{className:"acpmux-shell-glyph","aria-hidden":"true",children:"!"}),(0,Ht.jsx)("textarea",{ref:F,className:"acpmux-shell-field",rows:1,value:$,"aria-label":k("composer.shell"),placeholder:k("composer.shellPlaceholder"),spellCheck:!1,autoCapitalize:"off",autoCorrect:"off",onChange:ae=>N(ae.target.value),onKeyDown:Dt})]}),(0,Ht.jsxs)("div",{className:"acpmux-composer-bar",children:[o!==void 0?o:(0,Ht.jsx)(pF,{label:k(Co.add),className:"acpmux-composer-plus",button:(0,Ht.jsx)(Dde,{}),align:"start",returnFocus:!1,sections:[...Ke.length>0&&y?[{title:k("picker.mode"),choices:Ke,onPick:ae=>{ae.startsWith("mode:")?y(ae.slice(5)):ae.startsWith("plan:")&&y(Re?ye.current.mode??Ce[0]?.id?.slice(5)??ae.slice(5):ae.slice(5))}}]:[],{choices:[...l?[{id:"attach",name:k(Co.attach),icon:(0,Ht.jsx)(Bde,{})}]:[],{id:"mention",name:k(Co.mention),icon:(0,Ht.jsx)(zde,{}),hint:"@"},...c?[{id:"files",name:k("files.search"),icon:(0,Ht.jsx)(j2,{size:18})}]:[],..._e?.length?[{id:"commands",name:k(Co.commands),icon:(0,Ht.jsx)(Hde,{}),hint:"/"}]:[]],onPick:ae=>ae==="attach"?l?.():ae==="mention"?rn():ae==="files"?L(!0):Rn()}]}),(0,Ht.jsx)(e,{snapshot:t}),(0,Ht.jsxs)("span",{className:"acpmux-composer-actions",children:[a,In?(0,Ht.jsx)("button",{ref:me,type:"button",className:"acpmux-send acpmux-cancel","aria-label":k(Co.stop),title:k(Co.stop),onClick:mn,children:(0,Ht.jsx)(Fde,{})},"stop"):xe.canSend?(0,Ht.jsx)("button",{ref:me,type:"submit",disabled:!!v&&!M,className:`acpmux-send${(M?$.trim():!v&&(C.trim()||V.length))?" acpmux-send-ready":""}`,"aria-label":k(M?"composer.shellRun":Co.send),title:M?k("composer.shellRun"):v?.reason?k(v.reason):k("composer.sendTooltip"),children:(0,Ht.jsx)(tL,{})},"send"):null]})]})]}),(0,Ht.jsx)(K1e,{projectChoices:d,onBrowseProject:p,summary:t.summary,sessions:t.sessions,peers:t.peers,started:(t.summary?.turnCount??0)>0||t.rows.length>0,onProject:u&&((ae,st)=>{u(ae,st),Z.current?.focus()}),localName:m,movedTo:f,busy:t.isWorking,onMove:h&&(ae=>{let st=h(ae);H(Mt=>[...Mt.filter(Ye=>!Ye.move),wme(st)]),Z.current?.focus()})})]})}function rJe(t){let e=(0,tT.c)(22),{attachment:n,onRemove:r}=t,i=ve(),o;e[0]!==n.name||e[1]!==i?(o=i(Co.removeAttachment,{name:n.name}),e[0]=n.name,e[1]=i,e[2]=o):o=e[2];let a;e[3]!==n.id||e[4]!==r?(a=()=>r(n.id),e[3]=n.id,e[4]=r,e[5]=a):a=e[5];let s;e[6]!==o||e[7]!==a?(s=(0,Ht.jsx)("button",{type:"button",className:"acpmux-attachment-remove","aria-label":o,onClick:a,children:"\xD7"}),e[6]=o,e[7]=a,e[8]=s):s=e[8];let l=s;if(n.kind==="image"){let d=`data:${n.mimeType};base64,${n.data}`,p;e[9]!==n.name||e[10]!==d?(p=(0,Ht.jsx)("img",{alt:n.name,src:d}),e[9]=n.name,e[10]=d,e[11]=p):p=e[11];let m;return e[12]!==n.name||e[13]!==l||e[14]!==p?(m=(0,Ht.jsxs)("div",{className:"acpmux-attachment acpmux-attachment-image",title:n.name,children:[p,l]}),e[12]=n.name,e[13]=l,e[14]=p,e[15]=m):m=e[15],m}let c;e[16]!==n.name?(c=(0,Ht.jsx)("span",{children:n.name}),e[16]=n.name,e[17]=c):c=e[17];let u;return e[18]!==n.name||e[19]!==l||e[20]!==c?(u=(0,Ht.jsxs)("div",{className:"acpmux-attachment acpmux-attachment-file",title:n.name,children:[c,l]}),e[18]=n.name,e[19]=l,e[20]=c,e[21]=u):u=e[21],u}function iJe(t){let e=(0,tT.c)(22),{matches:n,active:r,empty:i,onHover:o,onPick:a}=t,s=ve(),l=(0,wn.useRef)(null),c,u;if(e[0]!==r?(c=()=>{l.current?.querySelector(`#acpmux-slash-${r}`)?.scrollIntoView?.({block:"nearest"})},u=[r],e[0]=r,e[1]=c,e[2]=u):(c=e[1],u=e[2]),(0,wn.useLayoutEffect)(c,u),n.length===0){let f;e[3]!==s?(f=s(Co.commands),e[3]=s,e[4]=f):f=e[4];let h;return e[5]!==i||e[6]!==f?(h=(0,Ht.jsx)("div",{className:"acpmux-slash-menu acpmux-slash-empty",id:"acpmux-slash-menu",role:"listbox","aria-label":f,children:i}),e[5]=i,e[6]=f,e[7]=h):h=e[7],h}let d;e[8]!==s?(d=s(Co.commands),e[8]=s,e[9]=d):d=e[9];let p;if(e[10]!==r||e[11]!==n||e[12]!==o||e[13]!==a){let f;e[15]!==r||e[16]!==o||e[17]!==a?(f=(h,x)=>(0,Ht.jsxs)("div",{id:`acpmux-slash-${x}`,role:"option",tabIndex:-1,"aria-selected":x===r,className:x===r?"acpmux-slash-row acpmux-slash-active":"acpmux-slash-row",onMouseMove:()=>{x!==r&&o(x)},onMouseDown:g=>{g.preventDefault(),a(h.command)},children:[(0,Ht.jsxs)("span",{className:"acpmux-slash-name",children:["/",(0,Ht.jsx)(oJe,{name:h.command.name,ranges:h.ranges})]}),h.command.hint&&(0,Ht.jsx)("span",{className:"acpmux-slash-hint",children:h.command.hint}),(0,Ht.jsx)("span",{className:"acpmux-slash-description",children:h.command.description})]},h.command.name),e[15]=r,e[16]=o,e[17]=a,e[18]=f):f=e[18],p=n.map(f),e[10]=r,e[11]=n,e[12]=o,e[13]=a,e[14]=p}else p=e[14];let m;return e[19]!==d||e[20]!==p?(m=(0,Ht.jsx)("div",{ref:l,className:"acpmux-slash-menu",id:"acpmux-slash-menu",role:"listbox","aria-label":d,children:p}),e[19]=d,e[20]=p,e[21]=m):m=e[21],m}function oJe(t){let e=(0,tT.c)(6),{name:n,ranges:r}=t,i;if(e[0]!==n||e[1]!==r){let o=[],a=0;for(let[s,l]of r)s>a&&o.push(n.slice(a,s)),o.push((0,Ht.jsx)("mark",{children:n.slice(s,l)},s)),a=l;if(a<n.length){let s;e[3]!==a||e[4]!==n?(s=n.slice(a),e[3]=a,e[4]=n,e[5]=s):s=e[5],o.push(s)}i=(0,Ht.jsx)(Ht.Fragment,{children:o}),e[0]=n,e[1]=r,e[2]=i}else i=e[2];return i}function aJe(t,e){let n=0;for(let r=0;r<e&&n<t.length;r++){let i=/^(\\[!-/:-@[-`{-~]|&(#x[0-9a-f]+|#[0-9]+|[a-z][a-z0-9]*);)/i.exec(t.slice(n));n+=i?i[0].length:1}return n}var Uye=R(qe(),1);var zu=R(ee(),1),Gye={prompt:"empty.prompt",promptIn:"empty.promptIn"};function x8(t){if(!t?.replace(/\/+$/,""))return;let e=wi(t);return e==="~"?void 0:e}function Vye(t,e=!1){let n=t.summary;if(e&&!n&&!t.sessionId&&!t.canLoadOlder)return t.rows.length===0&&!t.isWorking&&t.queue.length===0;if(!n||n.sessionId!==t.sessionId&&!t.switching||/^(connecting|disconnected|failed)/.test(t.connection))return!1;let r=n.turnCount??(t.canLoadOlder?1:0);return t.rows.length===0&&!t.isWorking&&t.queue.length===0&&r===0}function Zye(t){let e=(0,Uye.c)(10),{project:n}=t,r=ve(),i;e[0]!==r?(i=r(Gye.promptIn).split("{project}"),e[0]=r,e[1]=i):i=e[1];let[o,a]=i,s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,zu.jsxs)("svg",{className:"acpmux-empty-glyph",width:36,height:36,viewBox:"0 0 36 36",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:[(0,zu.jsx)("rect",{x:"4.75",y:"6.75",width:"26.5",height:"22.5",rx:"6"}),(0,zu.jsx)("path",{d:"m11.5 14.5 3.5 3.5-3.5 3.5M18.5 22h6"})]}),e[2]=s):s=e[2];let l;e[3]!==a||e[4]!==o||e[5]!==n||e[6]!==r?(l=n?(0,zu.jsxs)(zu.Fragment,{children:[o,(0,zu.jsx)("span",{className:"acpmux-empty-project",children:n}),a]}):r(Gye.prompt),e[3]=a,e[4]=o,e[5]=n,e[6]=r,e[7]=l):l=e[7];let c;return e[8]!==l?(c=(0,zu.jsxs)("div",{className:"acpmux-empty",children:[s,(0,zu.jsx)("h2",{className:"acpmux-empty-title",children:l})]}),e[8]=l,e[9]=c):c=e[9],c}var Yg=R(qe(),1);var Nr=R(ee(),1),LG={needsInput:"home.needsInput",readyForReview:"home.readyForReview",ago:"home.ago"},Wye=3;function sJe(t,e){let n=t.filter(r=>r.sessionId!==e).sort((r,i)=>(i.updatedAt??0)-(r.updatedAt??0));return{input:n.filter(r=>S2(r,!1)==="input").slice(0,Wye),review:n.filter(r=>r.pullRequest?.state==="open"&&r.pullRequest.reviewReady).slice(0,Wye)}}function lJe(t,e=Date.now(),n=we){if(t===void 0)return;let r=Math.floor(Math.max(0,e-t)/6e4);if(r<1)return n("age.now");let i=[[1440*360,"age.years"],[1440*30,"age.months"],[1440,"age.days"],[60,"age.hours"],[1,"age.minutes"]],[o,a]=i.find(([l])=>r>=l),s=a==="age.years"?Math.max(1,Math.round(r/(1440*365))):Math.floor(r/o);return n(LG.ago,{time:n(a,{n:s})})}function Yye(t){let e=(0,Yg.c)(12),{sessions:n,currentId:r,onSelect:i}=t,o=ve(),a,s,l,c;if(e[0]!==r||e[1]!==i||e[2]!==n||e[3]!==o){c=Symbol.for("react.early_return_sentinel");e:{let{input:d,review:p}=sJe(n,r);if(d.length===0&&p.length===0){c=null;break e}a="acpmux-home",s=d.length>0&&(0,Nr.jsx)(Kye,{label:o(LG.needsInput),children:d.map(m=>(0,Nr.jsx)(Xye,{session:m,mark:(0,Nr.jsx)("span",{className:"acpmux-home-dot","aria-hidden":"true"}),detail:m.preview,onSelect:i},m.sessionId))}),l=p.length>0&&(0,Nr.jsx)(Kye,{label:o(LG.readyForReview),children:p.map(m=>(0,Nr.jsx)(Xye,{session:m,mark:(0,Nr.jsx)(cJe,{}),title:m.pullRequest.title,detail:`#${m.pullRequest.number}`,onSelect:i},m.sessionId))})}e[0]=r,e[1]=i,e[2]=n,e[3]=o,e[4]=a,e[5]=s,e[6]=l,e[7]=c}else a=e[4],s=e[5],l=e[6],c=e[7];if(c!==Symbol.for("react.early_return_sentinel"))return c;let u;return e[8]!==a||e[9]!==s||e[10]!==l?(u=(0,Nr.jsxs)("div",{className:a,children:[s,l]}),e[8]=a,e[9]=s,e[10]=l,e[11]=u):u=e[11],u}function Kye(t){let e=(0,Yg.c)(8),{label:n,children:r}=t,i;e[0]!==n?(i=(0,Nr.jsx)("h3",{className:"acpmux-home-label",children:n}),e[0]=n,e[1]=i):i=e[1];let o;e[2]!==r?(o=(0,Nr.jsx)("ul",{children:r}),e[2]=r,e[3]=o):o=e[3];let a;return e[4]!==n||e[5]!==i||e[6]!==o?(a=(0,Nr.jsxs)("section",{className:"acpmux-home-list","aria-label":n,children:[i,o]}),e[4]=n,e[5]=i,e[6]=o,e[7]=a):a=e[7],a}function Xye(t){let e=(0,Yg.c)(24),{session:n,mark:r,title:i,detail:o,onSelect:a}=t,s=ve(),l;e[0]!==n.cwd?(l=n.cwd?wi(n.cwd):void 0,e[0]=n.cwd,e[1]=l):l=e[1];let c=l,u;e[2]!==n.updatedAt||e[3]!==s?(u=lJe(n.updatedAt,Date.now(),s),e[2]=n.updatedAt,e[3]=s,e[4]=u):u=e[4];let d=u,p;e[5]!==a||e[6]!==n.sessionId?(p=()=>a(n.sessionId),e[5]=a,e[6]=n.sessionId,e[7]=p):p=e[7];let m=i??n.displayTitle,f;e[8]!==m?(f=(0,Nr.jsx)("span",{className:"acpmux-home-title",children:m}),e[8]=m,e[9]=f):f=e[9];let h;e[10]!==o?(h=o&&(0,Nr.jsx)("span",{className:"acpmux-home-detail",children:o}),e[10]=o,e[11]=h):h=e[11];let x;e[12]!==c?(x=c&&(0,Nr.jsx)("span",{className:"acpmux-home-meta",children:c}),e[12]=c,e[13]=x):x=e[13];let g;e[14]!==d?(g=d&&(0,Nr.jsx)("span",{className:"acpmux-home-meta",children:d}),e[14]=d,e[15]=g):g=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,Nr.jsx)(uJe,{}),e[16]=y):y=e[16];let b;return e[17]!==r||e[18]!==p||e[19]!==f||e[20]!==h||e[21]!==x||e[22]!==g?(b=(0,Nr.jsx)("li",{children:(0,Nr.jsxs)("button",{type:"button",className:"acpmux-home-row",onClick:p,children:[r,f,h,x,g,y]})}),e[17]=r,e[18]=p,e[19]=f,e[20]=h,e[21]=x,e[22]=g,e[23]=b):b=e[23],b}function Qye(t){let e=(0,Yg.c)(2),{children:n}=t,r;return e[0]!==n?(r=(0,Nr.jsx)("svg",{className:"acpmux-icon",width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:n}),e[0]=n,e[1]=r):r=e[1],r}var cJe=()=>{let t=(0,Yg.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Nr.jsxs)(Qye,{children:[(0,Nr.jsx)("circle",{cx:"4.5",cy:"3.75",r:"1.5"}),(0,Nr.jsx)("circle",{cx:"4.5",cy:"12.25",r:"1.5"}),(0,Nr.jsx)("circle",{cx:"11.5",cy:"12.25",r:"1.5"}),(0,Nr.jsx)("path",{d:"M4.5 5.25v5.5M11.5 10.75V6.25c0-.83-.67-1.5-1.5-1.5H7.75M9.25 3.25l-1.5 1.5 1.5 1.5"})]}),t[0]=e):e=t[0],e},uJe=()=>{let t=(0,Yg.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,Nr.jsx)(Qye,{children:(0,Nr.jsx)("path",{d:"m6.25 4.25 3.5 3.75-3.5 3.75"})}),t[0]=e):e=t[0],e};var Jye=R(qe(),1);var al=R(ee(),1);function e3e(t){let e=(0,Jye.c)(9),{ask:n,agent:r,onTrust:i,onDistrust:o,onUndo:a}=t,s=ve(),l;if(e[0]!==r||e[1]!==n.cwd||e[2]!==n.level||e[3]!==n.state||e[4]!==o||e[5]!==i||e[6]!==a||e[7]!==s){let c=x8(n.cwd)??n.cwd;l=(0,al.jsx)("div",{className:"acpmux-trust-ask","aria-live":"polite",children:n.state==="decided"?(0,al.jsxs)(al.Fragment,{children:[(0,al.jsx)("span",{className:"acpmux-trust-ask-text",children:s(n.level==="trusted"?"trust.trusted":"trust.untrusted",{folder:c})}),(0,al.jsx)("button",{type:"button",className:"acpmux-trust-ask-action",onClick:a,children:s("trust.undo")})]}):n.state==="remote"?(0,al.jsx)("span",{className:"acpmux-trust-ask-text",children:s("trust.remote")}):(0,al.jsxs)(al.Fragment,{children:[(0,al.jsx)("span",{className:"acpmux-trust-ask-text",children:n.state==="failed"?s("trust.failed"):s("trust.ask",{agent:r,folder:c})}),(0,al.jsx)("button",{type:"button",className:"acpmux-trust-ask-action",onClick:i,children:s("trust.trust")}),(0,al.jsx)("button",{type:"button",className:"acpmux-trust-ask-action",onClick:o,children:s("trust.distrust")})]})}),e[0]=r,e[1]=n.cwd,e[2]=n.level,e[3]=n.state,e[4]=o,e[5]=i,e[6]=a,e[7]=s,e[8]=l}else l=e[8];return l}var i3e=R(qe(),1),Jg=R(Q(),1);var dJe='input, textarea, select, [contenteditable]:not([contenteditable="false"])';function pJe(t){let e=t;return typeof e?.closest=="function"&&e.closest(dJe)!==null}function t3e(t){if(!(t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)&&!(t.isComposing||t.nativeEvent?.isComposing)&&!(t.key.length!==1||pJe(t.target)))return t.key.toLowerCase()}var n3e=R(qe(),1),r3e=R(ee(),1);function d3(t){let e=(0,n3e.c)(2),{children:n}=t,r;return e[0]!==n?(r=(0,r3e.jsx)("kbd",{className:"acpmux-keycap","aria-hidden":"true",children:n}),e[0]=n,e[1]=r):r=e[1],r}var Qg=R(ee(),1);function MG(t){let e=(0,i3e.c)(29),{permission:n,onAnswer:r}=t,i=ve(),o;e[0]!==n.options||e[1]!==n.pending?(o=n.pending?xL(n.options):new Map,e[0]=n.options,e[1]=n.pending,e[2]=o):o=e[2];let a=o,s;e[3]!==n.title||e[4]!==i?(s=n.title||i("permission.required"),e[3]=n.title,e[4]=i,e[5]=s):s=e[5];let l=s,c=(0,Jg.useId)(),u=(0,Jg.useRef)(null),d=(0,Jg.useRef)(void 0),p,m;e[6]!==a||e[7]!==r||e[8]!==n.options||e[9]!==n.pending||e[10]!==n.permissionId?(p=()=>{let y=u.current;if(!y||!n.pending)return;let b=w=>{if(w.repeat||d.current===n.permissionId)return;let v=t3e(w),k=v?wL(n.options,a,v):void 0;k&&(w.preventDefault(),d.current=n.permissionId,r(k.id))};return y.addEventListener("keydown",b),()=>y.removeEventListener("keydown",b)},m=[n.pending,n.permissionId,n.options,a,r],e[6]=a,e[7]=r,e[8]=n.options,e[9]=n.pending,e[10]=n.permissionId,e[11]=p,e[12]=m):(p=e[11],m=e[12]),(0,Jg.useEffect)(p,m);let f;e[13]!==l||e[14]!==c?(f=(0,Qg.jsx)("strong",{id:c,children:l}),e[13]=l,e[14]=c,e[15]=f):f=e[15];let h;if(e[16]!==a||e[17]!==r||e[18]!==n.options){let y;e[20]!==a||e[21]!==r?(y=b=>{let w=a.get(b.id);return(0,Qg.jsxs)("button",{type:"button","aria-keyshortcuts":w,onClick:()=>r(b.id),children:[w&&(0,Qg.jsx)(d3,{children:w}),b.name]},b.id)},e[20]=a,e[21]=r,e[22]=y):y=e[22],h=n.options.map(y),e[16]=a,e[17]=r,e[18]=n.options,e[19]=h}else h=e[19];let x;e[23]!==h?(x=(0,Qg.jsx)("div",{className:"acpmux-permission-buttons",children:h}),e[23]=h,e[24]=x):x=e[24];let g;return e[25]!==f||e[26]!==x||e[27]!==c?(g=(0,Qg.jsxs)("fieldset",{ref:u,className:"acpmux-permission-card","aria-labelledby":c,children:[f,x]}),e[25]=f,e[26]=x,e[27]=c,e[28]=g):g=e[28],g}var qa=R(Q(),1);function o3e(t,e,n=!0){let[r,i]=(0,qa.useState)(),[o,a]=(0,qa.useState)(!1),[s,l]=(0,qa.useState)(0),[c,u]=(0,qa.useState)(),d=(0,qa.useRef)(void 0),{sessionId:p,family:m,prompts:f}=e,h=e.cwd??(c&&c.sessionId===p?c.cwd:void 0),x=(0,qa.useRef)({sessionId:p,cwd:h});x.current={sessionId:p,cwd:h};let g=(0,qa.useRef)(void 0),y=(0,qa.useRef)(!1);(0,qa.useEffect)(()=>{if(i(void 0),g.current=void 0,a(!!h),!h)return;let v=!0;return Tpe(t,h).then(k=>{if(!v)return;a(!1);let _=k&&Mpe(k,m);_==="unknown"?i({cwd:h,state:n?"ask":"remote"}):_==="untrusted"&&i({cwd:h,state:"decided",level:_})}),()=>{v=!1}},[t,p,h,m,s,n]),(0,qa.useEffect)(()=>{r?.state==="decided"&&r.level==="trusted"&&g.current!==void 0&&f>g.current&&i(void 0)},[r,f]);let b=(0,qa.useCallback)(async v=>{if(!r||y.current)return;y.current=!0;let k={sessionId:p,cwd:r.cwd},_=()=>x.current.sessionId===k.sessionId&&x.current.cwd===k.cwd;try{if(await t.set(k.cwd,v),!_())return;g.current=v==="unknown"?void 0:f,i(v==="unknown"?{cwd:k.cwd,state:"ask"}:{cwd:k.cwd,state:"decided",level:v});let L=d.current;d.current=void 0,v==="trusted"&&L?.()}catch{_()&&i({cwd:k.cwd,state:"failed"})}finally{y.current=!1}},[r,t,p,f]),w=o?{}:r?.state==="ask"||r?.state==="failed"?{reason:"trust.answerFirst"}:r?.state==="remote"?{reason:"trust.remote"}:r?.state==="decided"&&r.level==="untrusted"?{reason:"trust.untrustedNoPrompts"}:void 0;return{ask:r,blocked:w,trust:()=>{b("trusted")},distrust:()=>{b("untrusted")},undo:()=>{b("unknown")},refused:(0,qa.useCallback)((v,k)=>{if(!I2(v))return!1;let _=v.cwd;return typeof _=="string"&&_&&u({sessionId:p,cwd:_}),d.current=k,l(L=>L+1),!0},[p])}}var Xxe=R(qe(),1),lo=R(Q(),1);var a3e={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},s3e={display:"contents"};function EG(){return null}var tc=R(ee(),1);function l3e({fileDiff:t,actions:e,renderCustomHeader:n,renderHeaderPrefix:r,renderHeaderMetadata:i,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:s,lineAnnotations:l,getHoveredLine:c,getInstance:u}){let d=n?.(t),p=r?.(t),m=i?.(t);return(0,tc.jsxs)(tc.Fragment,{children:[d!=null?(0,tc.jsx)("div",{slot:Ip,children:d}):(0,tc.jsxs)(tc.Fragment,{children:[p!=null&&(0,tc.jsx)("div",{slot:Ap,children:p}),m!=null&&(0,tc.jsx)("div",{slot:$p,children:m})]}),o!=null&&l?.map((f,h)=>(0,tc.jsx)("div",{slot:Tl(f),children:o(f)},h)),e!=null&&s!=null&&u!=null&&e.map(f=>{if(f==null)return;let h=mJe(f,t);return(0,tc.jsx)("div",{slot:h,style:s3e,children:s(f,u)},h)}),a!=null&&(0,tc.jsx)("div",{slot:"gutter-utility-slot",style:a3e,children:a(c)})]})}function mJe(t,e){let n=$re(t,e);return n!=null?Are({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:t.conflictIndex}):void 0}var p3=R(Q(),1);function nu(t){let e=(0,p3.useRef)(t);return(0,p3.useInsertionEffect)(()=>{e.current=t}),(0,p3.useCallback)((...n)=>e.current(...n),[])}var m3=R(Q(),1),fJe=R(ee(),1),e5=(0,m3.createContext)(void 0);var fh=R(ee(),1);function c3e(t,e){return typeof window>"u"&&e!=null?(0,fh.jsxs)(fh.Fragment,{children:[(0,fh.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:e}}),t]}):(0,fh.jsx)(fh.Fragment,{children:t})}var f3=R(Q(),1),hJe=R(ee(),1),gJe=(0,f3.createContext)(void 0);function u3e(){return(0,f3.useContext)(gJe)}var Zd=R(Q(),1),bJe=typeof window>"u"?Zd.useEffect:Zd.useLayoutEffect;function d3e({fileDiff:t,options:e,lineAnnotations:n,selectedLines:r,prerenderedHTML:i,metrics:o,hasGutterRenderUtility:a,hasCustomHeader:s,disableWorkerPool:l}){let c=u3e(),u=r!==void 0,d=(0,Zd.useContext)(e5),p=(0,Zd.useRef)(null),m=nu(f=>{if(f!=null){if(p.current!=null)throw new Error("useFileDiffInstance: An instance should not already exist when a node is created");c!=null?p.current=new Rre(TG({controlledSelection:u,hasCustomHeader:s,hasGutterRenderUtility:a,options:e}),c,o,l?void 0:d,!0):p.current=new Dk(TG({controlledSelection:u,hasCustomHeader:s,hasGutterRenderUtility:a,options:e}),l?void 0:d,!0),p.current.hydrate({fileDiff:t,fileContainer:f,lineAnnotations:n,prerenderedHTML:i})}else{if(p.current==null)throw new Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");p.current.cleanUp(),p.current=null}});return bJe(()=>{let{current:f}=p;if(f==null)return;let h=TG({controlledSelection:u,hasCustomHeader:s,hasGutterRenderUtility:a,options:e}),x=!nv(f.options,h);f.setOptions(h),f.render({forceRender:x,fileDiff:t,lineAnnotations:n}),r!==void 0&&f.setSelectedLines(r)}),{ref:m,getHoveredLine:(0,Zd.useCallback)(()=>p.current?.getHoveredLine(),[])}}function TG({options:t,controlledSelection:e,hasCustomHeader:n,hasGutterRenderUtility:r}){return!e&&!r&&!n?t:{...t,controlledSelection:e,renderCustomHeader:n?EG:t?.renderCustomHeader,renderGutterUtility:r?EG:t?.renderGutterUtility}}var p3e=R(ee(),1);function w8({fileDiff:t,options:e,metrics:n,lineAnnotations:r,selectedLines:i,className:o,style:a,prerenderedHTML:s,renderAnnotation:l,renderCustomHeader:c,renderHeaderPrefix:u,renderHeaderMetadata:d,renderGutterUtility:p,disableWorkerPool:m=!1}){let{ref:f,getHoveredLine:h}=d3e({fileDiff:t,options:e,metrics:n,lineAnnotations:r,selectedLines:i,prerenderedHTML:s,hasGutterRenderUtility:p!=null,hasCustomHeader:c!=null,disableWorkerPool:m});return(0,p3e.jsx)(kc,{ref:f,className:o,style:a,children:c3e(l3e({fileDiff:t,renderCustomHeader:c,renderHeaderPrefix:u,renderHeaderMetadata:d,renderAnnotation:l,renderGutterUtility:p,lineAnnotations:r,getHoveredLine:h}),s)})}var Ha=R(qe(),1),C6e=R(Q(),1);var h3e=`<svg data-icon-sprite aria-hidden="true" width="0" height="0"> <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16"> <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/> </symbol> @@ -1059,72 +1059,72 @@ ${Lt}`:ae;Z.current?Z.current.type(Ye):(T(Ye),B(Ye.length)),st.length&&H(wt=>[.. <symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16"> <path d="M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" /> </symbol> -</svg>`,hJe=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16"> +</svg>`,yJe=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16"> <path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/> <path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/> -</symbol>`,gJe=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16"> +</symbol>`,xJe=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/> -</symbol>`,bJe=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16"> +</symbol>`,wJe=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/> <path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/> -</symbol>`,yJe=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16"> +</symbol>`,vJe=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/> -</symbol>`,xJe=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16"> +</symbol>`,kJe=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/> <path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/> -</symbol>`,wJe=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16"> +</symbol>`,CJe=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16"> <path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/> <path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/> <path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/> -</symbol>`,vJe=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16"> +</symbol>`,_Je=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/> -</symbol>`,kJe=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16"> +</symbol>`,SJe=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/> -</symbol>`,CJe=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16"> +</symbol>`,LJe=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16"> <path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/> -</symbol>`,_Je=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16"> +</symbol>`,MJe=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/> -</symbol>`,SJe=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16"> +</symbol>`,EJe=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/> <path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/> -</symbol>`,LJe=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16"> +</symbol>`,TJe=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16"> <path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/> <path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/> <path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/> -</symbol>`,MJe=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16"> +</symbol>`,RJe=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/> <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/> -</symbol>`,EJe=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16"> +</symbol>`,AJe=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16"> <path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/> <path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/> -</symbol>`,TJe=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16"> +</symbol>`,$Je=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16"> <path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/> <path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/> -</symbol>`,RJe=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16"> +</symbol>`,IJe=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16"> <path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/> -</symbol>`,AJe=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16"> +</symbol>`,NJe=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16"> <path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/> -</symbol>`,$Je=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16"> +</symbol>`,PJe=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/> -</symbol>`,IJe=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16"> +</symbol>`,jJe=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/> -</symbol>`,NJe=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16"> +</symbol>`,OJe=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/> <path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/> -</symbol>`,PJe=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16"> +</symbol>`,DJe=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16"> <path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/> <path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/> -</symbol>`,jJe=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16"> +</symbol>`,FJe=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/> <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/> -</symbol>`,OJe=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16"> +</symbol>`,BJe=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16"> <path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/> -</symbol>`,DJe=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16"> +</symbol>`,zJe=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16"> <path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/> -</symbol>`,FJe=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16"> +</symbol>`,qJe=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16"> <path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/> <path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/> -</symbol>`,BJe=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16"> +</symbol>`,HJe=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16"> <defs> <linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse"> <stop stop-color="currentColor"/> @@ -1134,84 +1134,84 @@ ${Lt}`:ae;Z.current?Z.current.type(Ye):(T(Ye),B(Ye.length)),st.length&&H(wt=>[.. <path fill="currentColor" d="M3 2h1.522v9.09H3z"/> <path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/> <path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/> -</symbol>`,zJe=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16"> +</symbol>`,GJe=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16"> <path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/> <path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/> -</symbol>`,qJe=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16"> +</symbol>`,UJe=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16"> <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/> -</symbol>`,HJe=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16"> +</symbol>`,VJe=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16"> <path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/> -</symbol>`,GJe=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16"> +</symbol>`,ZJe=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16"> <path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/> <path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/> <path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/> <path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/> -</symbol>`,UJe=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16"> +</symbol>`,WJe=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16"> <path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/> <path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/> -</symbol>`,VJe=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16"> +</symbol>`,KJe=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/> <path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/> -</symbol>`,ZJe=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16"> +</symbol>`,XJe=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/> -</symbol>`,WJe=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16"> +</symbol>`,YJe=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/> -</symbol>`,KJe=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16"> +</symbol>`,QJe=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/> -</symbol>`,XJe=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16"> +</symbol>`,JJe=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16"> <path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/> <path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/> -</symbol>`,YJe=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16"> +</symbol>`,eet=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16"> <path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/> -</symbol>`,QJe=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16"> +</symbol>`,tet=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16"> <path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/> <path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/> -</symbol>`,JJe=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16"> +</symbol>`,net=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16"> <path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/> <path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/> -</symbol>`,eet=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16"> +</symbol>`,ret=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16"> <path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/> -</symbol>`,tet=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16"> +</symbol>`,iet=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/> <path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/> -</symbol>`,net=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16"> +</symbol>`,oet=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/> -</symbol>`,ret=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16"> +</symbol>`,aet=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16"> <path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/> -</symbol>`,iet=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16"> +</symbol>`,set=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16"> <path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/> <path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/> -</symbol>`,oet=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16"> +</symbol>`,cet=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16"> <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/> <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/> -</symbol>`,aet=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16"> +</symbol>`,uet=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16"> <path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/> -</symbol>`,set=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16"> +</symbol>`,det=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16"> <path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/> <path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/> <path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/> -</symbol>`,cet=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16"> +</symbol>`,pet=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16"> <path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/> <path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/> -</symbol>`,uet=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16"> +</symbol>`,met=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16"> <path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/> <path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/> <path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/> -</symbol>`,det=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16"> +</symbol>`,fet=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16"> <path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/> <path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/> -</symbol>`,pet=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16"> +</symbol>`,het=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16"> <path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/> -</symbol>`,met=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16"> +</symbol>`,get=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16"> <path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/> <path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/> -</symbol>`,fet=[bJe,kJe,_Je,SJe,LJe,MJe,RJe,AJe,$Je,NJe,PJe,jJe,OJe,DJe,FJe,UJe,ZJe,WJe,eet,tet,iet,oet,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16"> +</symbol>`,bet=[wJe,SJe,MJe,EJe,TJe,RJe,IJe,NJe,PJe,OJe,DJe,FJe,BJe,zJe,qJe,WJe,XJe,YJe,ret,iet,set,cet,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16"> <path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/> <path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/> -</symbol>`],het=[hJe,gJe,yJe,xJe,wJe,vJe,CJe,EJe,TJe,IJe,BJe,zJe,qJe,HJe,GJe,VJe,KJe,XJe,YJe,QJe,JJe,net,ret,aet,set,cet,uet,det,pet,met];function g3e(t,e){return e.length===0?t:t.replace("</svg>",` +</symbol>`],yet=[yJe,xJe,vJe,kJe,CJe,_Je,LJe,AJe,$Je,jJe,HJe,GJe,UJe,VJe,ZJe,KJe,QJe,JJe,eet,tet,net,oet,aet,uet,det,pet,met,fet,het,get];function g3e(t,e){return e.length===0?t:t.replace("</svg>",` ${e.join(` `)} -</svg>`)}var m3e=g3e(h3e,fet),get={minimal:h3e,standard:m3e,complete:g3e(m3e,het)},bet={".babelrc":"babel",".babelrc.json":"babel",".bash_profile":"bash",".bashrc":"bash",".browserslistrc":"browserslist",".dockerignore":"docker",".eslintignore":"eslint",".eslintrc":"eslint",".eslintrc.cjs":"eslint",".eslintrc.js":"eslint",".eslintrc.json":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".gitattributes":"git",".gitignore":"git",".gitkeep":"git",".gitmodules":"git",".oxlintrc.json":"oxc",".postcssrc":"postcss",".postcssrc.json":"postcss",".postcssrc.yaml":"postcss",".postcssrc.yml":"postcss",".prettierignore":"prettier",".prettierrc":"prettier",".prettierrc.cjs":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.mjs":"prettier",".prettierrc.toml":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".stylelintignore":"stylelint",".stylelintrc":"stylelint",".stylelintrc.cjs":"stylelint",".stylelintrc.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.mjs":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".terraform.lock.hcl":"terraform",".zprofile":"bash",".zshenv":"bash",".zshrc":"bash","babel.config.cjs":"babel","babel.config.js":"babel","babel.config.json":"babel","babel.config.mjs":"babel","biome.json":"biome","biome.jsonc":"biome","bootstrap.bundle.js":"bootstrap","bootstrap.bundle.min.js":"bootstrap","bootstrap.css":"bootstrap","bootstrap.js":"bootstrap","bootstrap.min.css":"bootstrap","bootstrap.min.js":"bootstrap","bun.lock":"bun","bun.lockb":"bun","bunfig.toml":"bun","claude.md":"claude","compose.yaml":"docker","compose.yml":"docker","docker-compose.override.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker","eslint.config.cjs":"eslint","eslint.config.js":"eslint","eslint.config.mjs":"eslint","eslint.config.mts":"eslint","eslint.config.ts":"eslint",gemfile:"ruby","next.config.js":"nextjs","next.config.mjs":"nextjs","next.config.mts":"nextjs","next.config.ts":"nextjs","postcss.config.cjs":"postcss","postcss.config.js":"postcss","postcss.config.mjs":"postcss","postcss.config.ts":"postcss","prettier.config.cjs":"prettier","prettier.config.js":"prettier","prettier.config.mjs":"prettier",rakefile:"ruby","readme.md":"markdown","stylelint.config.cjs":"stylelint","stylelint.config.js":"stylelint","stylelint.config.mjs":"stylelint","svgo.config.cjs":"svgo","svgo.config.js":"svgo","svgo.config.mjs":"svgo","svgo.config.ts":"svgo","tailwind.config.cjs":"tailwind","tailwind.config.js":"tailwind","tailwind.config.mjs":"tailwind","tailwind.config.ts":"tailwind","vite.config.js":"vite","vite.config.mjs":"vite","vite.config.mts":"vite","vite.config.ts":"vite","webpack.config.babel.js":"webpack","webpack.config.cjs":"webpack","webpack.config.js":"webpack","webpack.config.mjs":"webpack","webpack.config.ts":"webpack"},yet={"7z":"zip",astro:"astro",AUTHORS:"text",avif:"image",bash:"bash",bmp:"image",bz2:"zip",c:"c",cc:"cpp",cfg:"text",CHANGELOG:"text",cjs:"javascript","code-workspace":"vscode",conf:"text",CONTRIBUTORS:"text",cpp:"cpp",csh:"bash",css:"css",csv:"table",cts:"typescript",cxx:"cpp",db:"database",editorconfig:"text",env:"text","env.development":"text","env.local":"text","env.production":"text",eot:"font",erb:"ruby",fish:"bash",gemspec:"ruby",gif:"image",go:"go",gql:"graphql",graphql:"graphql",gz:"zip",h:"c",hh:"cpp",hpp:"cpp",htm:"html",html:"html",hxx:"cpp",icns:"image",ico:"image",ini:"text",inl:"cpp",jar:"zip",jpeg:"image",jpg:"image",js:"javascript",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsx:"javascript",ksh:"bash",less:"css",LICENSE:"text",log:"text",markdown:"markdown",mcp:"mcp",md:"markdown",mdx:"markdown","mdx.tsx":"markdown",mjs:"javascript",mm:"cpp",mts:"typescript",ods:"table",otf:"font",png:"image",postcss:"css",py:"python",pyi:"python",pyw:"python",pyx:"python",rake:"ruby",rar:"zip",rb:"ruby",rs:"rust",rst:"text",rtf:"text",sass:"css",scss:"css",sh:"bash",sql:"database",sqlite:"database",sqlite3:"database",styl:"css",svelte:"svelte",svg:"svg",swift:"swift",tar:"zip",tf:"terraform",tfstate:"terraform",tfvars:"terraform",tgz:"zip",tif:"image",tiff:"image",ts:"typescript",tsv:"table",tsx:"typescript",ttf:"font",txt:"text",vue:"vue",war:"zip",wasm:"wasm",wast:"wasm",wat:"wasm",webp:"image",woff:"font",woff2:"font",xhtml:"html",xls:"table",xlsx:"table",xz:"zip",yaml:"yml",yml:"yml",zig:"zig",zip:"zip",zsh:"bash"},xet={jsx:"react",sass:"sass",scss:"sass",tsx:"react"},f3e=new Set(["bash","c","cpp","css","database","default","font","git","go","html","image","javascript","json","markdown","mcp","python","ruby","rust","swift","table","text","typescript","zip"]),wet=new Set(["complete"]);function v8(t){return get[t==="none"?"minimal":t]}function b3e(t){return`file-tree-builtin-${t}`}function y3e(t){return t!=="none"&&wet.has(t)}function x3e(t,e,n){if(t==="minimal"||t==="none")return;let r=t==="complete",i=bet[e.toLowerCase()];if(i!=null&&(r||f3e.has(i)))return i;for(let o of n){if(r){let s=xet[o];if(s!=null)return s}let a=yet[o];if(a!=null&&(r||f3e.has(a)))return a}return"default"}var mh="file-tree-container",k8="data-file-tree-style",RG="data-file-tree-unsafe-css",w3e="data-file-tree-scrollbar-measure",AG="data-file-tree-scrollbar-gutter-measured",v3e="--trees-scrollbar-gutter-measured";var e5="header",fh="context-menu",JE="context-menu-trigger";function vet(t){return t.spriteSheet!=null||t.remap!=null||t.byFileName!=null||t.byFileExtension!=null||t.byFileNameContains!=null}function f3(t){return t==null?{set:"complete",colored:!0}:typeof t=="string"?{set:t,colored:!0}:{...t,set:t.set??(vet(t)?"none":"complete"),colored:t.colored??!0}}var ket=t=>t.trim().toLowerCase(),Cet=t=>t.split("/").at(-1)??t,_et=t=>{let e=t.toLowerCase().split("."),n=[];for(let r=1;r<e.length;r+=1)n.push(e.slice(r).join("."));return n};function eT(t,e){return typeof t=="string"?{name:t,remappedFrom:e}:{...t,remappedFrom:e}}function C8(t){let e=f3(t),n=e.remap,r=new Map;for(let[s,l]of Object.entries(e.byFileName??{}))r.set(s.toLowerCase(),l);let i=new Map;for(let[s,l]of Object.entries(e.byFileExtension??{}))i.set(ket(s),l);let o=Object.entries(e.byFileNameContains??{}).map(([s,l])=>[s.toLowerCase(),l]);return{resolveIcon:(s,l)=>{if(s==="file-tree-icon-file"&&l!=null){let u=Cet(l),d=u.toLowerCase(),p=r.get(d);if(p!=null)return eT(p,s);for(let[h,x]of o)if(d.includes(h))return eT(x,s);let m=_et(u);for(let h of m){let x=i.get(h);if(x!=null)return eT(x,s)}let f=x3e(e.set,u,m);if(f!=null&&e.set!=="none")return{name:b3e(f),remappedFrom:s,token:f}}let c=n?.[s];return c==null?{name:s}:eT(c,s)}}}function t5(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function $G(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function hh(t,e){if(e.childIdByNameId!=null)return e.childIdByNameId;let n=new Map;for(let r of e.childIds){let i=t[r];i!=null&&n.set(i.nameId,r)}return e.childIdByNameId=n,n}function h3(t){if(t.childPositionById!=null)return t.childPositionById;let e=new Map;for(let n=0;n<t.childIds.length;n++){let r=t.childIds[n];r!=null&&e.set(r,n)}return t.childPositionById=e,e}function g3(t,e){t.childPositionById!=null&&t.childPositionById.set(e,t.childIds.length),t.childIds.push(e)}function IG(t,e){if(t.childPositionById!=null)for(let n=e;n<t.childIds.length;n++){let r=t.childIds[n];r!=null&&t.childPositionById.set(r,n)}}function n5(t,e){let n=0,r=0;for(let i of e.childIds){let o=t[i];o!=null&&(n+=o.subtreeNodeCount,r+=o.visibleSubtreeCount)}e.totalChildSubtreeNodeCount=n,e.totalChildVisibleSubtreeCount=r,r5(t,e)}function tT(t,e,n,r){if(t.totalChildSubtreeNodeCount+=n,t.totalChildVisibleSubtreeCount+=r,t.childVisibleChunkSums==null||r===0)return;let i=h3(t).get(e);if(i===void 0)return;let o=i>>5;t.childVisibleChunkSums[o]+=r}function nT(t,e,n){let r=e.childVisibleChunkSums;if(r!=null){let o=n,a=0;for(let s of r){if(o<s){let l=Let(t,e,a,o);return{...l,childVisibleIndex:n-l.localVisibleIndex}}o-=s,a+=32}throw new Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let o=0;o<e.childIds.length;o++){let a=e.childIds[o];if(a==null)continue;let s=t[a];if(s!=null){if(i<s.visibleSubtreeCount)return{childIndex:o,childVisibleIndex:n-i,localVisibleIndex:i};i-=s.visibleSubtreeCount}}throw new Error(`Visible child index ${String(n)} is out of range`)}function k3e(t,e,n){let r=0,i=e.childVisibleChunkSums,o=0;if(i!=null){let a=n>>5;for(let s=0;s<a;s+=1)r+=i[s]??0;o=a<<5}for(let a=o;a<n;a+=1){let s=e.childIds[a];if(s==null)continue;let l=t[s];l!=null&&(r+=l.visibleSubtreeCount)}return r}function r5(t,e){if(e.childIds.length<128){e.childVisibleChunkSums=null;return}let n=Math.ceil(e.childIds.length/32),r=new Int32Array(n);for(let i=0;i<e.childIds.length;i++){let o=e.childIds[i];if(o==null)continue;let a=t[o];a!=null&&(r[i>>5]+=a.visibleSubtreeCount)}e.childVisibleChunkSums=r}function Let(t,e,n,r){let i=Math.min(e.childIds.length,n+32),o=r;for(let a=n;a<i;a++){let s=e.childIds[a];if(s==null)continue;let l=t[s];if(l!=null){if(o<l.visibleSubtreeCount)return{childIndex:a,localVisibleIndex:o};o-=l.visibleSubtreeCount}}throw new Error(`Visible child index ${String(r)} is out of range`)}function fs(t,e,n=0){return t<<4|n<<3|e}function al(t){return t.depthAndFlags>>>4}function _8(t){return(t.depthAndFlags&8)>>3}function Mt(t){return(t.depthAndFlags&8)!==0}function C3e(t){return t.depthAndFlags&7}function Jr(t,e){return(C3e(t)&e)!==0}function b3(t,e){t.depthAndFlags|=e}function _3e(t,e){t.depthAndFlags=fs(e,C3e(t),_8(t))}var S3e=Symbol("benchmarkInstrumentation");function L3e(t,e){return e==null||Object.defineProperty(t,S3e,{configurable:!0,enumerable:!1,value:e,writable:!1}),t}function S8(t){return t==null?null:t[S3e]??null}function yt(t,e,n){return t==null?n():t.measurePhase(e,n)}function y3(t,e,n){!Number.isFinite(n)||t==null||t.setCounter(e,n)}function M3e(t){return t>=48&&t<=57}function Met(t){let e=[],n=0,r=0;for(;r<t.length;){for(;r<t.length&&!M3e(t.charCodeAt(r));)r+=1;if(r>=t.length)break;r>n&&e.push(t.slice(n,r));let i=0;for(;r<t.length&&M3e(t.charCodeAt(r));)i=i*10+(t.charCodeAt(r)-48),r+=1;e.push(i),n=r}return(n<t.length||e.length===0)&&e.push(t.slice(n)),e}function i5(t){let e=t.toLowerCase();return{lowerValue:e,tokens:Met(e)}}function Eet(t,e){let n=Math.min(t.length,e.length);for(let r=0;r<n;r++){let i=t[r],o=e[r];if(i===o)continue;if(typeof i=="number"&&typeof o=="number")return i<o?-1:1;let a=String(i),s=String(o);if(a!==s)return a<s?-1:1}return t.length!==e.length?t.length<e.length?-1:1:0}function L8(t,e){if(t.tokens.length===1&&e.tokens.length===1&&typeof t.tokens[0]=="string"&&typeof e.tokens[0]=="string")return t.lowerValue===e.lowerValue?0:t.lowerValue<e.lowerValue?-1:1;let n=Eet(t.tokens,e.tokens);return n!==0?n:t.lowerValue!==e.lowerValue?t.lowerValue<e.lowerValue?-1:1:0}function E3e(t,e,n){let r=L8(n(t),n(e));return r!==0?r:t===e?0:t<e?-1:1}function Tet(t,e){return E3e(t,e,i5)}function rT(t,e){return e!==t.segments.length-1?1:t.isDirectory?1:0}function Ret(t,e){let n=Math.min(t.segments.length,e.segments.length);for(let r=0;r<n;r++){let i=t.segments[r],o=e.segments[r];if(i===o)continue;let a=rT(t,r);return a!==rT(e,r)?a===1?-1:1:Tet(i,o)}return t.segments.length!==e.segments.length?t.segments.length<e.segments.length?-1:1:t.isDirectory===e.isDirectory?0:t.isDirectory?-1:1}function T3e(t,e){return Ret(t,e)}function R3e(t,e,n){let r=o=>{let a=n.get(o);if(a!=null)return a;let s=i5(o);return n.set(o,s),s},i=Math.min(t.segments.length,e.segments.length);for(let o=0;o<i;o++){let a=t.segments[o],s=e.segments[o];if(a===s)continue;let l=rT(t,o);return l!==rT(e,o)?l===1?-1:1:E3e(a,s,r)}return t.segments.length!==e.segments.length?t.segments.length<e.segments.length?-1:1:t.isDirectory===e.isDirectory?0:t.isDirectory?-1:1}function M8(t,e){let n=t.sortKeyById[e];if(n!==void 0)return n;let r=t.valueById[e],i=i5(r);return t.sortKeyById[e]=i,i}function NG(t={}){return{flattenEmptyDirectories:t.flattenEmptyDirectories!==!1,sort:t.sort??"default"}}function A3e(t){let e=t.length>0&&t.charCodeAt(t.length-1)===47,n=e?t.length-1:t.length,r=[],i=0;for(let o=0;o<n;o++)t.charCodeAt(o)===47&&(r.push(t.slice(i,o)),i=o+1);return r.push(t.slice(i,n)),{hasTrailingSlash:e,segments:r}}function o5(t){let{hasTrailingSlash:e,segments:n}=A3e(t);return{basename:n[n.length-1]??"",isDirectory:e,path:t,segments:n}}function iT(t){if(t.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:e,segments:n}=A3e(t);return{requiresDirectory:e,segments:n}}var PG="";function oT(){let t=new Map;return t.set(PG,0),{idByValue:t,valueById:[PG],sortKeyById:[i5(PG)]}}function qu(t,e){let n=t.idByValue.get(e);if(n!==void 0)return n;let r=t.valueById.length;return t.idByValue.set(e,r),t.valueById.push(e),r}function nc(t,e){let n=t.valueById[e];if(n===void 0)throw new Error(`Unknown segment ID: ${String(e)}`);return n}var jG=Symbol("pathStorePreparedInputKind");function N3e(t,e){return t[jG]=e,t}function $3e(t){return{basename:t.basename,depth:t.segments.length,isDirectory:t.isDirectory,path:t.path,segments:t.segments}}function P3e(t,e,n){return n==="default"?T3e(t,e):n($3e(t),$3e(e))}function Aet(){return{depthAndFlags:fs(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function $et(t,e){let n=Math.min(t.length,e.length);for(let r=0;r<n;r++)if(t[r]!==e[r])return r;return n}function I3e(t){return t.isDirectory?t.segments.length:t.segments.length-1}function Iet(t){return Array.isArray(t)&&t.every(e=>e!=null&&typeof e=="object"&&typeof e.path=="string"&&Array.isArray(e.segments)&&typeof e.basename=="string"&&typeof e.isDirectory=="boolean")}function Net(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}function j3e(t,e={}){return aT(t,e).map(n=>n.path)}function O3e(t,e={}){let n=aT(t,e);return N3e({paths:n.map(r=>r.path),preparedPaths:n},"prepared")}function D3e(t){let e=t.length,n=!1;for(let r=0;r<e;r+=1){let i=t[r];if(i.length>0&&i.charCodeAt(i.length-1)===47){n=!0;break}}return N3e({paths:t,presortedPaths:t,presortedPathsContainDirectories:n},"presorted")}function F3e(t){let e=t,n=e.preparedPaths;if(e[jG]==="prepared"&&n!=null)return n;if(!Iet(n))throw new Error("preparedInput must come from PathStore.prepareInput()");return n}function B3e(t){let e=t;return e[jG]==="presorted"&&e.presortedPaths!=null||Net(e.presortedPaths)?e.presortedPaths:null}function z3e(t){let e=t;return typeof e.presortedPathsContainDirectories=="boolean"?e.presortedPathsContainDirectories:null}function aT(t,e={}){let n=NG(e),r=S8(e);y3(r,"workload.inputFiles",t.length);let i=yt(r,"store.preparePathEntries.parse",()=>t.map(o=>o5(o)));return yt(r,"store.preparePathEntries.sort",()=>i.sort((o,a)=>P3e(o,a,n.sort))),i}var sT=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[Aet()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=oT();hasDeferredDirectoryIndexes=!1;constructor(t={}){this.instrumentation=S8(t),this.options=NG(t);let e=t.initialExpandedPaths??null;if(e==null||e.length===0)this.initialExpandedPathSet=null;else{let n=new Set,r=e.length;for(let i=0;i<r;i+=1){let o=e[i],a=o.length;n.add(a>0&&o.charCodeAt(a-1)===47?o.slice(0,a-1):o)}this.initialExpandedPathSet=n,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,t5())}appendPaths(t){return yt(this.instrumentation,"store.builder.appendPaths.parse",()=>this.appendPreparedPaths(t.map(e=>o5(e))))}appendPreparedPaths(t,e=!0){return this.createdDirectoriesAllExpanded=!1,yt(this.instrumentation,"store.builder.appendPreparedPaths",()=>{for(let n of t)this.appendPreparedPath(n,e)}),this}appendPresortedPaths(t,e=null){return yt(this.instrumentation,"store.builder.appendPresortedPaths",()=>{if(e===!1){this.appendPresortedFilePaths(t);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,o=this.segmentTable,a=o.idByValue,s=o.valueById,l=this.directoryStack,c=0,u="",d=0;for(let p of t){if(n===p)throw new Error(`Duplicate path: "${p}"`);let m=p.length>0&&p.charCodeAt(p.length-1)===47,f=m?p.length-1:p.length,h=0,x=0;if(n!=null)if(u.length>0&&p.length>u.length&&p.startsWith(u))h=d,x=u.length;else{let b=Math.min(f,n.length),w=!0;for(let v=0;v<b;v++){let k=p.charCodeAt(v);if(k!==n.charCodeAt(v)){w=!1;break}k===47&&(h++,x=v+1)}w&&m&&b===f&&n.length>f&&n.charCodeAt(f)===47&&(h++,x=f+1)}c=h,r=h;let g=x,y=p.indexOf("/",g);for(;y>=0&&y<f;){let b=l[c];if(b===void 0)throw new Error("Directory stack underflow while building the path store");r++;let w=p.slice(g,y),v=a.get(w);v===void 0&&(v=s.length,a.set(w,v),s.push(w));let k=i.length;i.push({depthAndFlags:fs(r,0,1),nameId:v,parentId:b,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(p.slice(0,y)),c++,l[c]=k,g=y+1,y=p.indexOf("/",g)}if(m){if(g<f){let w=l[c];if(w===void 0)throw new Error(`Unable to resolve directory parent for "${p}"`);r++;let v=p.slice(g,f),k=a.get(v);k===void 0&&(k=s.length,a.set(v,k),s.push(v));let _=i.length;i.push({depthAndFlags:fs(r,0,1),nameId:k,parentId:w,subtreeNodeCount:1,visibleSubtreeCount:1}),c++,l[c]=_}let b=l[c];if(b===void 0)throw new Error(`Unable to resolve directory node for "${p}"`);this.promoteDirectoryToExplicit(b,p)}else{let b=l[c];if(b===void 0)throw new Error(`Unable to resolve file parent for "${p}"`);let w=p.slice(g),v=a.get(w);v===void 0&&(v=s.length,a.set(w,v),s.push(w)),i.push({depthAndFlags:fs(r+1,0),nameId:v,parentId:b,subtreeNodeCount:1,visibleSubtreeCount:1})}g!==u.length&&(u=p.substring(0,g),d=r),n=p}l.length=c+1,n!=null&&(this.lastPreparedPath=o5(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(t){let e=null,n=0,r=this.nodes,i=this.segmentTable,o=i.idByValue,a=i.valueById,s=this.directoryStack,l=0,c="",u=0;for(let d of t){if(e===d)throw new Error(`Duplicate path: "${d}"`);let p=d.length,m=0,f=0;if(e!=null)if(c.length>0&&d.length>c.length&&d.startsWith(c))m=u,f=c.length;else{let w=Math.min(p,e.length);for(let v=0;v<w;v++){let k=d.charCodeAt(v);if(k!==e.charCodeAt(v))break;k===47&&(m++,f=v+1)}}l=m,n=m;let h=f,x=d.indexOf("/",h);for(;x>=0;){let w=s[l];if(w===void 0)throw new Error("Directory stack underflow while building the path store");n++;let v=d.slice(h,x),k=o.get(v);k===void 0&&(k=a.length,o.set(v,k),a.push(v));let _=r.length;r.push({depthAndFlags:fs(n,0,1),nameId:k,parentId:w,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(d.slice(0,x)),this.presortedDirectoryNodeIds.push(_),l++,s[l]=_,h=x+1,x=d.indexOf("/",h)}let g=s[l];if(g===void 0)throw new Error(`Unable to resolve file parent for "${d}"`);let y=d.slice(h),b=o.get(y);b===void 0&&(b=a.length,o.set(y,b),a.push(y)),r.push({depthAndFlags:fs(n+1,0),nameId:b,parentId:g,subtreeNodeCount:1,visibleSubtreeCount:1}),h!==c.length&&(c=d.substring(0,h),u=n),e=d}s.length=l+1,e!=null&&(this.lastPreparedPath=o5(e)),this.hasDeferredDirectoryIndexes=!0}finish(t={}){let e=t.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(yt(this.instrumentation,"store.builder.buildDirectoryIndexes",()=>this.buildPresortedFinish(e)),this.hasDeferredDirectoryIndexes=!1):e||yt(this.instrumentation,"store.builder.computeSubtreeCounts",()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(t,e){if(this.hasDeferredDirectoryIndexes&&(this.buildDirectoryIndexes(),this.hasDeferredDirectoryIndexes=!1),this.lastPreparedPath!=null){if(t.path===this.lastPreparedPath.path)throw new Error(`Duplicate path: "${t.path}"`);if(e&&(this.options.sort==="default"?R3e(this.lastPreparedPath,t,this.segmentSortKeyCache):P3e(this.lastPreparedPath,t,this.options.sort))>0)throw new Error(`Builder input must be sorted before appendPaths(): "${t.path}"`)}let n=this.lastPreparedPath,r=I3e(t),i=n==null?0:I3e(n),o=n==null?0:$et(n.segments,t.segments),a=Math.min(o,r,i);this.directoryStack.length=a+1;for(let l=a;l<r;l++){let c=this.directoryStack[this.directoryStack.length-1];if(c===void 0)throw new Error("Directory stack underflow while building the path store");let u=e?this.getOrCreateDirectoryChild(c,t.segments[l]):this.createDirectoryChild(c,t.segments[l]);this.directoryStack.push(u)}if(t.isDirectory){let l=this.directoryStack[this.directoryStack.length-1];if(l===void 0)throw new Error(`Unable to resolve directory node for "${t.path}"`);this.promoteDirectoryToExplicit(l,t.path),this.lastPreparedPath=t;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw new Error(`Unable to resolve file parent for "${t.path}"`);e?this.createFileChild(s,t.basename,t.path):this.createFileChildUnchecked(s,t.basename),this.lastPreparedPath=t}recordCreatedDirectoryPath(t){!this.createdDirectoriesAllExpanded||this.initialExpandedPathSet==null||(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(t)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(t,e,n){let r=qu(this.segmentTable,e),i=this.getDirectoryIndex(t),o=i.childIdByNameId;if(o!=null&&o.get(r)!==void 0)throw new Error(`Path collides with an existing entry: "${n}"`);let a=this.nodes[t];if(a===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:fs(al(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),o?.set(r,s),g3(i,s),s}createFileChildUnchecked(t,e){let n=qu(this.segmentTable,e),r=this.getDirectoryIndex(t),i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let o=this.nodes.length;return this.nodes.push({depthAndFlags:fs(al(i)+1,0),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),g3(r,o),o}getOrCreateDirectoryChild(t,e){let n=qu(this.segmentTable,e),r=this.getDirectoryIndex(t);if(r.childIdByNameId!=null){let a=r.childIdByNameId.get(n);if(a!==void 0){let s=this.nodes[a];if(s!=null&&!Mt(s))throw new Error(`Path collides with an existing file while creating directory "${e}"`);return a}}let i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let o=this.nodes.length;return this.nodes.push({depthAndFlags:fs(al(i)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),g3(r,o),this.directories.set(o,t5()),o}createDirectoryChild(t,e){let n=qu(this.segmentTable,e),r=this.getDirectoryIndex(t),i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let o=this.nodes.length;return this.nodes.push({depthAndFlags:fs(al(i)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),g3(r,o),this.directories.set(o,t5()),o}promoteDirectoryToExplicit(t,e){let n=this.nodes[t];if(n===void 0)throw new Error(`Unknown directory node ID: ${String(t)}`);if(!Mt(n))throw new Error(`Path is not a directory: "${e}"`);if(Jr(n,1))throw new Error(`Duplicate path: "${e}"`);b3(n,1)}getDirectoryIndex(t){let e=this.directories.get(t);if(e!==void 0)return e;throw new Error(`Unknown directory child index for node ${String(t)}`)}buildPresortedFinish(t){let e=this.nodes,n=this.directories;n.set(0,$G());let r=-1,i=null;for(let o=1;o<e.length;o++){let a=e[o];if(a==null)continue;if(Mt(a)){let l=$G();n.set(o,l),r=o,i=l}let s;a.parentId===r?s=i:(s=n.get(a.parentId),r=a.parentId,i=s??null),s?.childIds.push(o)}if(!t)for(let o=e.length-1;o>=1;o--){let a=e[o];if(a==null)continue;let s=e[a.parentId];s!=null&&(s.subtreeNodeCount+=a.subtreeNodeCount,s.visibleSubtreeCount+=a.visibleSubtreeCount)}}buildDirectoryIndexes(){let t=this.nodes;for(let e=1;e<t.length;e++){let n=t[e];if(n==null)continue;Mt(n)&&this.directories.set(e,t5());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,e),g3(r,e))}}computeSubtreeCounts(t){let e=this.nodes[t];if(e===void 0)throw new Error(`Unknown node ID: ${String(t)}`);if(!Mt(e))return e.subtreeNodeCount=1,e.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(t),r=1;for(let i of n.childIds)r+=this.computeSubtreeCounts(i);return n5(this.nodes,n),e.subtreeNodeCount=r,e.visibleSubtreeCount=r,r}};function q3e(t,e="closed",n=null){let r=Pet(e);return{activeNodeCount:t.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r==="open",hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[t.rootId,{path:"",version:0}]]),pathCacheVersion:0,snapshot:t,transactionStack:[]}}function H3e(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function Pet(t){if(typeof t!="number")return t;if(!Number.isInteger(t)||t<0)throw new Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(t)}`);return t}function G3e(t,e){return Jr(e,2)||t.defaultExpansion==="open"?!0:t.defaultExpansion==="closed"?!1:al(e)<=t.defaultExpansion}function No(t,e,n=t.snapshot.nodes[e]){return n==null||!Mt(n)?!1:t.directoriesOpenByDefault&&!t.hasCollapsedDirectoryOverrides?!0:t.collapsedDirectoryIds.has(e)?!1:t.expandedDirectoryIds.has(e)?!0:G3e(t,n)}function gh(t,e,n,r=t.snapshot.nodes[e]){if(r==null||!Mt(r))return;let i=G3e(t,r);if(n){if(i){t.collapsedDirectoryIds.delete(e),t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0;return}t.expandedDirectoryIds.add(e);return}if(i){t.collapsedDirectoryIds.add(e),t.hasCollapsedDirectoryOverrides=!0;return}t.expandedDirectoryIds.delete(e)}function U3e(t,e){let n=t.directoryLoadInfoById.get(e);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:"loaded"};return t.directoryLoadInfoById.set(e,r),r}function bh(t,e){return t.directoryLoadInfoById.get(e)?.state??"loaded"}function V3e(t,e){let n=U3e(t,e);if(n.state==="loading"&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:e,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state="loading",{attemptId:r,nodeId:e,reused:!1}}function Z3e(t,e){let n=U3e(t,e);n.activeAttemptId=null,n.errorMessage=null,n.state="unloaded"}function W3e(t,e,n){let r=t.directoryLoadInfoById.get(e);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state="loaded",!0)}function K3e(t,e,n){return t.directoryLoadInfoById.get(e)?.activeAttemptId===n}function X3e(t,e,n,r){let i=t.directoryLoadInfoById.get(e);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state="error",!0)}function Y3e(t,e){t.directoryLoadInfoById.delete(e)}function n4e(t,e,n){let r=n,i=t.listeners.get(e);return i!=null?i.add(r):t.listeners.set(e,new Set([r])),()=>{let o=t.listeners.get(e);o!=null&&(o.delete(r),o.size===0&&t.listeners.delete(e))}}function r4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"add",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function i4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"remove",path:t.path,projectionChanged:t.projectionChanged,recursive:t.recursive,visibleCountDelta:null}}function o4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,from:t.from,operation:"move",projectionChanged:t.projectionChanged,to:t.to,visibleCountDelta:null}}function a4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"expand",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function s4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"collapse",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function l4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"mark-directory-unloaded",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function c4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"begin-child-load",path:t.path,projectionChanged:t.projectionChanged,reused:t.reused,visibleCountDelta:null}}function u4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:t.childEvents.some(e=>e.canonicalChanged),childEvents:t.childEvents,operation:"apply-child-patch",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function d4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"complete-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function p4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,errorMessage:t.errorMessage,operation:"fail-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function m4e(t){return{activeNodeCountAfter:t.activeNodeCountAfter,activeNodeCountBefore:t.activeNodeCountBefore,affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],cachedPathEntryCountAfter:t.cachedPathEntryCountAfter,cachedPathEntryCountBefore:t.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:t.idsPreserved,loadInfoEntryCountAfter:t.loadInfoEntryCountAfter,loadInfoEntryCountBefore:t.loadInfoEntryCountBefore,mode:t.mode,operation:"cleanup",projectionChanged:t.projectionChanged,reclaimedCachedPathEntryCount:t.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:t.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:t.reclaimedNodeSlotCount,reclaimedSegmentCount:t.reclaimedSegmentCount,segmentCountAfter:t.segmentCountAfter,segmentCountBefore:t.segmentCountBefore,totalNodeSlotCountAfter:t.totalNodeSlotCountAfter,totalNodeSlotCountBefore:t.totalNodeSlotCountBefore,visibleCountDelta:null}}function hs(t,e,n){return{...n,visibleCountDelta:DG(t)-e}}function f4e(t,e){let n=DG(t),r=H3e();t.transactionStack.push(r);try{e()}catch(i){throw J3e(t,r,!1),i}J3e(t,r,!0,DG(t)-n)}function iu(t,e){let n=t.instrumentation;if(n==null){Q3e(t,e);return}yt(n,"store.events.record",()=>Q3e(t,e))}function Q3e(t,e){let n=t.transactionStack[t.transactionStack.length-1]??null;if(n==null){OG(t,e);return}n.events.push(e),Det(n,e)}function J3e(t,e,n,r=null){if(t.transactionStack.pop()!==e)throw new Error("Transaction stack underflow");if(!n)return;let i=t.transactionStack[t.transactionStack.length-1]??null;if(i!=null){let s=t.instrumentation;s==null?e4e(i,e):yt(s,"store.events.batch.merge",()=>e4e(i,e));return}let o=jet(e,r),a=t.instrumentation;if(a==null){OG(t,o);return}yt(a,"store.events.batch.commit",()=>OG(t,o))}function jet(t,e){return{affectedAncestorIds:[...t.affectedAncestorIds],affectedNodeIds:[...t.affectedNodeIds],canonicalChanged:t.events.some(n=>n.canonicalChanged),events:[...t.events],operation:"batch",projectionChanged:t.events.some(n=>n.projectionChanged),visibleCountDelta:e}}function Oet(t,e){for(let n of e.affectedAncestorIds)t.affectedAncestorIds.add(n);for(let n of e.affectedNodeIds)t.affectedNodeIds.add(n)}function e4e(t,e){for(let n of e.events)t.events.push(n);Oet(t,e)}function Det(t,e){for(let n of e.affectedNodeIds)t.affectedNodeIds.add(n);for(let n of e.affectedAncestorIds)t.affectedAncestorIds.add(n)}function OG(t,e){let n=t.instrumentation;if(n==null){t4e(t,e);return}yt(n,"store.events.emit",()=>t4e(t,e))}function t4e(t,e){t.listeners.get(e.operation)?.forEach(n=>n(e)),t.listeners.get("*")?.forEach(n=>n(e))}function DG(t){return t.snapshot.nodes[t.snapshot.rootId]?.visibleSubtreeCount??0}function Dm(t,e){if(t.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=t.snapshot.nodes[e];if(n==null||!Mt(n)||Jr(n,2))return null;let r=t.snapshot.directories.get(e);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let o=t.snapshot.nodes[i];return o==null||!Mt(o)?null:i}function Fm(t,e){let n=e;for(;;){let r=Dm(t,n);if(r==null)return n;n=r}}function x3(t,e){let n=[e],r=e;for(;;){let i=Dm(t,r);if(i==null)return n;n.push(i),r=i}}function lT(t,e){let n=e==null?t.snapshot.rootId:gs(t,e);return n==null?[]:Bet(t,n)}function BG(t,e){let n=o5(e),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=yh(t,Ket(t,r)),{createdNodeIds:o,directoryId:a}=zet(t,r),s=new Set(o),l=a;if(n.isDirectory){let u=$t(t,a);if(Jr(u,1))throw new Error(`Path already exists: "${e}"`);b3(u,1),t.pathCacheByNodeId.set(a,{path:e,version:t.pathCacheVersion}),s.add(a)}else l=Het(t,a,n.basename),s.add(l);xh(t,a);let c=yh(t,a);return r4e({affectedAncestorIds:rc(t,l),affectedNodeIds:[...s],path:e,projectionChanged:v4e(i,c)})}function zG(t,e,n){let r=gs(t,e);if(r==null)throw new Error(`Path does not exist: "${e}"`);let i=$t(t,r);if(Jr(i,2))throw new Error("The root node cannot be removed");if(Mt(i)&&Pr(t,r).childIds.length>0&&n.recursive!==!0)throw new Error(`Cannot remove a non-empty directory without recursive: "${e}"`);let o=i.parentId,a=yh(t,o),s=w4e(t,r);GG(t,o,r,i.nameId),UG(t,o),xh(t,o);let l=yh(t,o);return i4e({affectedAncestorIds:rc(t,o),affectedNodeIds:s,path:e,projectionChanged:v4e(a,l),recursive:n.recursive===!0})}function qG(t,e,n,r){let i=gs(t,e);if(i==null)throw new Error(`Source path does not exist: "${e}"`);let o=$t(t,i);if(Jr(o,2))throw new Error("The root node cannot be moved");let a=r.collision??"error",s=Zet(t,i,n),l=yh(t,o.parentId),c=yh(t,s.parentId),u=nc(t.snapshot.segmentTable,o.nameId),d=qu(t.snapshot.segmentTable,s.basename);if(s.parentId===o.parentId&&u===s.basename)return null;if(Mt(o)&&Yet(t,i,s.parentId))throw new Error("Cannot move a directory into one of its descendants");let p=hh(t.snapshot.nodes,Pr(t,s.parentId)).get(d),m=s.existingNodeId??p??null;if(m!=null&&m!==i&&Wet(t,m,a,_8(o))==="skip")return null;let f=o.parentId;GG(t,f,i,o.nameId),o.parentId=s.parentId,o.nameId=d,t.pathCacheByNodeId.delete(i),C4e(t,i),HG(t,s.parentId,i),UG(t,f),t.pathCacheVersion++,xh(t,f),s.parentId!==f&&xh(t,s.parentId);let h=yh(t,f),x=yh(t,s.parentId);return o4e({affectedAncestorIds:[...new Set([...rc(t,f),...rc(t,s.parentId)])],affectedNodeIds:[i],from:e,projectionChanged:k4e([l,c],[h,x]),to:Er(t,i)})}function Fet(t,e){let n=t.pathCacheByNodeId.get(e);return n!=null&&n.version===t.pathCacheVersion?n.path:null}function h4e(t,e,n){return t.pathCacheByNodeId.set(e,{path:n,version:t.pathCacheVersion}),n}function Er(t,e){let n=$t(t,e),r=Fet(t,e);if(r!=null)return r;if(Jr(n,2))return h4e(t,e,"");let i=Er(t,n.parentId),o=nc(t.snapshot.segmentTable,n.nameId),a=i.length===0?o:`${i}${o}`;return h4e(t,e,Mt(n)?`${a}/`:a)}function xh(t,e){let n=t.instrumentation;if(n==null){b4e(t,e);return}yt(n,"store.recomputeCountsUpwardFrom",()=>b4e(t,e))}function E8(t,e){let n=[[e,0]],{nodes:r,directories:i}=t.snapshot;for(;n.length>0;){let o=n[n.length-1],a=o[0],s=r[a];if(s==null||!Mt(s)){FG(t,a,s,!0),n.pop();continue}let l=i.get(a);if(l==null||o[1]>=l.childIds.length){FG(t,a,s,!0),n.pop();continue}let c=l.childIds[o[1]++];n.push([c,0])}}function rc(t,e){let n=[],r=e;for(;r!=null;){let i=$t(t,r);if(n.push(r),r===t.snapshot.rootId)break;r=i.parentId}return n}function gs(t,e){if(e.length===0)return t.snapshot.rootId;let n=iT(e);return x4e(t,n.segments,n.requiresDirectory)}function x4e(t,e,n){let r=t.snapshot.rootId;for(let o of e){let a=t.snapshot.segmentTable.idByValue.get(o);if(a===void 0)return null;let s=Pr(t,r),l=hh(t.snapshot.nodes,s).get(a);if(l===void 0)return null;r=l}let i=$t(t,r);return n&&!Mt(i)?null:r}function Pr(t,e){let n=t.snapshot.directories.get(e);if(n===void 0)throw new Error(`Unknown directory child index for node ${String(e)}`);return n}function $t(t,e){let n=t.snapshot.nodes[e];if(n===void 0||Jr(n,4))throw new Error(`Unknown node ID: ${String(e)}`);return n}function Bet(t,e){let n=t.snapshot.nodes[e];if(n===void 0||Jr(n,4))return[];if(!Mt(n))return[Er(t,e)];if(Pr(t,e).childIds.length===0)return Jr(n,1)&&!Jr(n,2)?[Er(t,e)]:[];let r=[],i=[{childIndex:0,nodeId:e}];for(;i.length>0;){let o=i[i.length-1];if(o==null)break;let a=t.snapshot.nodes[o.nodeId];if(a===void 0||Jr(a,4)){i.pop();continue}if(!Mt(a)){r.push(Er(t,o.nodeId)),i.pop();continue}let s=Pr(t,o.nodeId);if(s.childIds.length===0){Jr(a,1)&&!Jr(a,2)&&r.push(Er(t,o.nodeId)),i.pop();continue}let l=s.childIds[o.childIndex];if(l==null){i.pop();continue}o.childIndex++,i.push({childIndex:0,nodeId:l})}return r}function zet(t,e){let n=[],r=t.snapshot.rootId;for(let i of e){let o=qu(t.snapshot.segmentTable,i),a=Pr(t,r),s=hh(t.snapshot.nodes,a).get(o);if(s!==void 0){if(!Mt($t(t,s)))throw new Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=s;continue}r=qet(t,r,o),n.push(r)}return{createdNodeIds:n,directoryId:r}}function qet(t,e,n){let r=$t(t,e),i=t.snapshot.nodes.length;return t.snapshot.nodes.push({depthAndFlags:fs(al(r)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),t.snapshot.directories.set(i,t5()),HG(t,e,i),t.collapseNewDirectoriesByDefault&&(t.collapsedDirectoryIds.add(i),t.hasCollapsedDirectoryOverrides=!0),t.activeNodeCount++,i}function Het(t,e,n){let r=qu(t.snapshot.segmentTable,n),i=Pr(t,e);if(hh(t.snapshot.nodes,i).has(r))throw new Error(`Path already exists: "${Qet(t,e,n)}"`);let o=$t(t,e),a=t.snapshot.nodes.length;return t.snapshot.nodes.push({depthAndFlags:fs(al(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),HG(t,e,a),t.activeNodeCount++,a}function Get(t,e,n){let r=0,i=e.childIds.length;for(;r<i;){let o=r+i>>>1,a=e.childIds[o];if(a==null){i=o;continue}Uet(t,n,a)<0?i=o:r=o+1}return r}function HG(t,e,n){let r=Pr(t,e),i=$t(t,n);hh(t.snapshot.nodes,r).set(i.nameId,n),tT(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let o=Get(t,r,n);r.childIds.splice(o,0,n),IG(r,o),r5(t.snapshot.nodes,r)}function GG(t,e,n,r){let i=Pr(t,e),o=h3(i),a=o.get(n)??-1;hh(t.snapshot.nodes,i).delete(r),o.delete(n);let s=t.snapshot.nodes[n];s!=null&&tT(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),a>=0&&(i.childIds.splice(a,1),IG(i,a),r5(t.snapshot.nodes,i))}function Uet(t,e,n){let r=t.snapshot.options.sort;return r==="default"?Vet(t,e,n):r(g4e(t,e),g4e(t,n))}function Vet(t,e,n){let r=$t(t,e),i=$t(t,n),o=Mt(r);if(o!==Mt(i))return o?-1:1;let a=L8(M8(t.snapshot.segmentTable,r.nameId),M8(t.snapshot.segmentTable,i.nameId));if(a!==0)return a;let s=nc(t.snapshot.segmentTable,r.nameId),l=nc(t.snapshot.segmentTable,i.nameId);return s!==l?s<l?-1:1:e<n?-1:1}function g4e(t,e){let n=$t(t,e),r=Er(t,e),i=Mt(n),o=i?r.slice(0,-1):r;return{basename:nc(t.snapshot.segmentTable,n.nameId),depth:al(n),isDirectory:i,path:r,segments:o.length===0?[]:o.split("/")}}function Zet(t,e,n){let r=$t(t,e),i=gs(t,n);if(i!=null){let c=$t(t,i);if(Mt(c))return{basename:nc(t.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let u=iT(n).segments;return{basename:u[u.length-1]??"",existingNodeId:i,parentId:c.parentId}}let o=iT(n),a=o.segments[o.segments.length-1]??"",s=o.segments.slice(0,-1),l=s.length===0?t.snapshot.rootId:x4e(t,s,!0);if(l==null)throw new Error(`Destination parent does not exist: "${n}"`);return{basename:a,existingNodeId:null,parentId:l}}function Wet(t,e,n,r){if(n==="skip")return"skip";if(n==="error")throw new Error(`Destination already exists: "${Er(t,e)}"`);let i=$t(t,e);if(_8(i)!==r)throw new Error("replace collision requires the same source and destination kinds");if(Mt(i)&&Pr(t,e).childIds.length>0)throw new Error("replace collision does not support non-empty directories");let o=i.parentId,a=i.nameId;return w4e(t,e),GG(t,o,e,a),UG(t,o),xh(t,o),"handled"}function w4e(t,e){let n=[],r=[{nodeId:e,visitedChildren:!1}];for(;r.length>0;){let i=r.pop();if(i==null)break;let o=$t(t,i.nodeId);if(i.visitedChildren||!Mt(o)){Mt(o)&&t.snapshot.directories.delete(i.nodeId),b3(o,4),t.pathCacheByNodeId.delete(i.nodeId),t.collapsedDirectoryIds.delete(i.nodeId)&&(t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0),t.expandedDirectoryIds.delete(i.nodeId),Y3e(t,i.nodeId),t.activeNodeCount--,n.push(i.nodeId);continue}r.push({nodeId:i.nodeId,visitedChildren:!0});let a=Pr(t,i.nodeId);for(let s=a.childIds.length-1;s>=0;s--){let l=a.childIds[s];l!=null&&r.push({nodeId:l,visitedChildren:!1})}}return n}function UG(t,e){let n=e;for(;n!=null;){let r=$t(t,n);if(!Mt(r)||Jr(r,2)||Pr(t,n).childIds.length>0)return;b3(r,1),n=r.parentId===n?null:r.parentId}}function Ket(t,e){let n=t.snapshot.rootId;for(let r of e){let i=t.snapshot.segmentTable.idByValue.get(r);if(i==null)break;let o=hh(t.snapshot.nodes,Pr(t,n)).get(i);if(o==null||!Mt($t(t,o)))break;n=o}return n}function yh(t,e){let n=Xet(t,e);if(n==null)return null;let r=Fm(t,n),i=$t(t,r),o=n===r?null:x3(t,n).map(a=>Er(t,a));return JSON.stringify({flattenedSegmentPaths:o,hasChildren:Pr(t,r).childIds.length>0,path:Er(t,r),terminalKind:_8(i)})}function v4e(t,e){return k4e([t],[e])}function k4e(t,e){for(let n=0;n<t.length;n+=1){let r=t[n],i=e[n];if(r==null||i==null||r!==i)return!0}return!1}function Xet(t,e){let n=e;for(;n!=null;){let r=$t(t,n);if(!Mt(r)||Jr(r,2))return null;if(!No(t,n,r))return n;n=r.parentId}return null}function C4e(t,e){let n=$t(t,e);if(_3e(n,(e===t.snapshot.rootId?-1:al($t(t,n.parentId)))+1),!Mt(n))return;let r=Pr(t,e);for(let i of r.childIds)C4e(t,i)}function Yet(t,e,n){let r=n;for(;r!=null;){if(r===e)return!0;let i=$t(t,r);if(r===t.snapshot.rootId)return!1;r=i.parentId}return!1}function FG(t,e,n=$t(t,e),r=!1){let i=t.instrumentation;if(i==null){y4e(t,e,n,r);return}yt(i,"store.recomputeNodeCounts",()=>y4e(t,e,n,r))}function b4e(t,e){let n=e;for(;n!=null;){let r=$t(t,n),i=r.subtreeNodeCount,o=r.visibleSubtreeCount;if(FG(t,n,r),n===t.snapshot.rootId)return;let a=r.subtreeNodeCount-i,s=r.visibleSubtreeCount-o,l=r.parentId;(a!==0||s!==0)&&tT(Pr(t,l),n,a,s),n=l}}function y4e(t,e,n,r){if(!Mt(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=Pr(t,e);if(r){let s=t.instrumentation;s==null?n5(t.snapshot.nodes,i):yt(s,"store.recomputeNodeCounts.rebuildChildAggregates",()=>n5(t.snapshot.nodes,i))}let o=1+i.totalChildSubtreeNodeCount,a=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=o,Jr(n,2)){n.visibleSubtreeCount=a;return}n.visibleSubtreeCount=Dm(t,e)!=null?a:No(t,e,n)?1+a:1}function Qet(t,e,n){let r=Er(t,e);return r.length===0?n:`${r}${n}`}function v3(t){return t!=null&&!Jr(t,4)}function cT(t,e){let n=t.snapshot.nodes[e];return!v3(n)||!Mt(n)||Jr(n,2)?null:n}function Jet(t){let e=0;for(let[n,r]of t.pathCacheByNodeId)r.version===t.pathCacheVersion&&v3(t.snapshot.nodes[n])&&(e+=1);return e}function ett(t){return Math.max(0,t.valueById.length-1)}function _4e(t){return{activeNodeCount:t.activeNodeCount,cachedPathEntryCount:Jet(t),loadInfoEntryCount:t.directoryLoadInfoById.size,segmentCount:ett(t.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,t.snapshot.nodes.length-1)}}function ttt(t,e,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:e,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:t,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function S4e(t){let e=[],n=[];for(let r of t.collapsedDirectoryIds)cT(t,r)!=null&&e.push(Er(t,r));for(let r of t.expandedDirectoryIds)cT(t,r)!=null&&n.push(Er(t,r));return{collapsedPaths:e,expandedPaths:n}}function L4e(t){let e=[];for(let[n,r]of t.directoryLoadInfoById)cT(t,n)==null||bh(t,n)==="loaded"||e.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:Er(t,n)});return e}function M4e(t,e){t.collapsedDirectoryIds.clear(),t.hasCollapsedDirectoryOverrides=!1,t.expandedDirectoryIds.clear();for(let n of e.expandedPaths){let r=gs(t,n);r!=null&&gh(t,r,!0,$t(t,r))}for(let n of e.collapsedPaths){let r=gs(t,n);r!=null&&gh(t,r,!1,$t(t,r))}}function E4e(t,e){t.directoryLoadInfoById.clear();for(let n of e){let r=gs(t,n.path);r!=null&&cT(t,r)!=null&&t.directoryLoadInfoById.set(r,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function ntt(t){t.pathCacheVersion+=1,t.pathCacheByNodeId.clear(),t.pathCacheByNodeId.set(t.snapshot.rootId,{path:"",version:t.pathCacheVersion})}function rtt(t){let e=t.snapshot.segmentTable,n=oT();for(let r of t.snapshot.nodes)if(v3(r)){if(Jr(r,2)){r.nameId=0;continue}r.nameId=qu(n,nc(e,r.nameId))}t.snapshot.segmentTable=n}function itt(t){for(let[e,n]of t.snapshot.directories){let r=t.snapshot.nodes[e];if(!v3(r)||!Mt(r)){t.snapshot.directories.delete(e);continue}let i=n.childIds.filter(o=>{let a=t.snapshot.nodes[o];return v3(a)&&a.parentId===e});n.childIds=i,n.childIdByNameId=new Map(i.map(o=>[$t(t,o).nameId,o])),n.childPositionById=new Map(i.map((o,a)=>[o,a])),n5(t.snapshot.nodes,n)}}function ott(t){let e=t.snapshot.nodes.length-1;for(;e>t.snapshot.rootId;){let n=t.snapshot.nodes[e];if(v3(n))break;e-=1}t.snapshot.nodes.length=e+1}function att(t){let e=S4e(t),n=L4e(t);yt(t.instrumentation,"store.cleanup.stable.clearPathCaches",()=>ntt(t)),yt(t.instrumentation,"store.cleanup.stable.rebuildSegmentTable",()=>rtt(t)),yt(t.instrumentation,"store.cleanup.stable.rebuildDirectoryIndexes",()=>itt(t)),yt(t.instrumentation,"store.cleanup.stable.trimTrailingRemovedNodeSlots",()=>ott(t)),yt(t.instrumentation,"store.cleanup.stable.restoreExpansionOverrides",()=>M4e(t,e)),yt(t.instrumentation,"store.cleanup.stable.restoreDirectoryLoadInfos",()=>E4e(t,n)),yt(t.instrumentation,"store.cleanup.stable.recomputeCounts",()=>E8(t,t.snapshot.rootId))}function stt(t){let e=S4e(t),n=L4e(t),r=yt(t.instrumentation,"store.cleanup.aggressive.listPaths",()=>lT(t)),i=L3e({...t.snapshot.options},t.instrumentation),o=yt(t.instrumentation,"store.cleanup.aggressive.rebuildSnapshot",()=>{let a=new sT(i);return a.appendPaths(r),a.finish()});t.snapshot=o,t.activeNodeCount=o.nodes.length-1,t.pathCacheByNodeId=new Map([[o.rootId,{path:"",version:0}]]),t.pathCacheVersion=0,yt(t.instrumentation,"store.cleanup.aggressive.restoreExpansionOverrides",()=>M4e(t,e)),yt(t.instrumentation,"store.cleanup.aggressive.restoreDirectoryLoadInfos",()=>E4e(t,n)),yt(t.instrumentation,"store.cleanup.aggressive.recomputeCounts",()=>E8(t,t.snapshot.rootId))}function T4e(t){for(let e of t.directoryLoadInfoById.values())if(e.state==="loading"&&e.activeAttemptId!=null)return!0;return!1}function R4e(t,e){let n=_4e(t);e==="stable"?yt(t.instrumentation,"store.cleanup.stable",()=>att(t)):yt(t.instrumentation,"store.cleanup.aggressive",()=>stt(t));let r=_4e(t);return ttt(e,e==="stable",n,r)}var ltt=64;function ctt(t,e){let n=e+2;if(n<=t.length)return t;let r=t.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(t),i}function Po(t){return $t(t,t.snapshot.rootId).visibleSubtreeCount}function N4e(t,e,n,r){let i=$t(t,e.terminalNodeId),o=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+o-1)}function utt(t,e,n,r){return{ancestorPaths:r,index:e.index,posInSet:e.posInSet,row:T8(t,e.cursor),setSize:e.setSize,subtreeEndIndex:N4e(t,e.cursor,e.index,n)}}function P4e(t,e,n,r,i,o){let a=Pr(t,e),{childIndex:s,childVisibleIndex:l,localVisibleIndex:c}=nT(t.snapshot.nodes,a,n),u=a.childIds[s];if(u==null)throw new Error(`Visible index ${String(n)} is out of range`);return dtt(t,u,c,r+l,i+1,s,a.childIds.length,o)}function dtt(t,e,n,r,i,o,a,s){if(!Mt($t(t,e))){if(n===0)return{ancestors:s,cursor:{headNodeId:e,terminalNodeId:e,visibleDepth:i},index:r,posInSet:o,setSize:a};throw new Error(`Visible index ${String(n)} is out of range for file`)}let l=H4e(t,e,i);if(n===0)return{ancestors:s,cursor:l,index:r,posInSet:o,setSize:a};let c=$t(t,l.terminalNodeId);if(!Mt(c)||!No(t,l.terminalNodeId,c))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return P4e(t,l.terminalNodeId,n-1,r+1,l.visibleDepth,[...s,{cursor:l,index:r,posInSet:o,setSize:a}])}function j4e(t,e){let n=Po(t);if(e<0||e>=n)return null;let r=P4e(t,t.snapshot.rootId,e,0,-1,[]),i=r.ancestors.map(a=>Er(t,a.cursor.terminalNodeId)),o=null;return{ancestorPaths:i,get ancestorRows(){if(o!=null)return o;let a=[],s=[];for(let l of r.ancestors){let c=utt(t,l,n,[...s]);a.push(c),s.push(c.row.path)}return o=a,o},index:r.index,posInSet:r.posInSet,row:T8(t,r.cursor),setSize:r.setSize,subtreeEndIndex:N4e(t,r.cursor,r.index,n)}}function O4e(t,e,n){let r=t.instrumentation,i=Po(t);if(i<=0||n<e)return[];let o=Math.max(0,Math.min(e,i-1)),a=Math.max(o,Math.min(n,i-1));if(r==null){if(o===0)return ftt(t,a+1);let d=[],p=A4e(t,o);for(let m=o;m<=a&&p!=null;m++){let f=T8(t,p);d.push(f),p=$4e(t,p)}return d}let s=[],l=0,c=0,u=yt(r,"store.getVisibleSlice.selectFirstRow",()=>A4e(t,o));for(let d=o;d<=a&&u!=null;d++){let p=yt(r,"store.getVisibleSlice.materializeRow",()=>T8(t,u));s.push(p),p.isFlattened&&(l++,c+=p.flattenedSegments?.length??0),u=yt(r,"store.getVisibleSlice.advanceCursor",()=>$4e(t,u))}return y3(r,"workload.visibleRowsRead",s.length),y3(r,"workload.flattenedRowsRead",l),y3(r,"workload.flattenedSegmentsRead",c),s}function ZG(t,e=Po(t)){let n=t.instrumentation;return n==null?I4e(t,e):yt(n,"store.getVisibleTreeProjection",()=>I4e(t,e))}function D4e(t){return mtt(ZG(t))}function F4e(t,e){let n=gs(t,e);if(n==null||n===t.snapshot.rootId||Mt($t(t,n))&&Fm(t,n)!==n)return null;let r=0,i=n,{nodes:o,rootId:a}=t.snapshot;for(;i!==a;){let s=$t(t,i).parentId,l=Pr(t,s),c=h3(l).get(i);if(c==null)throw new Error(`Child ${String(i)} was not found in its parent index`);if(r+=k3e(o,l,c),s!==a){let u=$t(t,s),d=Dm(t,s);if(!No(t,s,u)&&d!==i)return null;Fm(t,s)===s&&(r+=1)}i=s}return r}function B4e(t,e){let n=gs(t,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);let r=$t(t,n);if(!Mt(r))throw new Error(`Path is not a directory: "${e}"`);return No(t,n,r)?null:(gh(t,n,!0,r),xh(t,n),a4e({affectedAncestorIds:rc(t,n),affectedNodeIds:[n],path:e,projectionChanged:!0}))}function z4e(t,e){let n=gs(t,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);let r=$t(t,n);if(!Mt(r))throw new Error(`Path is not a directory: "${e}"`);return No(t,n,r)?(gh(t,n,!1,r),xh(t,n),s4e({affectedAncestorIds:rc(t,n),affectedNodeIds:[n],path:e,projectionChanged:!0})):null}function A4e(t,e){return e<0||e>=Po(t)?null:q4e(t,t.snapshot.rootId,e,-1)}function q4e(t,e,n,r){let i=Pr(t,e),o=t.instrumentation,{childIndex:a,localVisibleIndex:s}=o==null?nT(t.snapshot.nodes,i,n):yt(o,"store.getVisibleSlice.selectChildIndex",()=>nT(t.snapshot.nodes,i,n)),l=i.childIds[a];if(l!=null)return VG(t,l,s,r+1);throw new Error(`Visible index ${String(n)} is out of range`)}function VG(t,e,n,r){if(!Mt($t(t,e))){if(n===0)return{headNodeId:e,terminalNodeId:e,visibleDepth:r};throw new Error(`Visible index ${String(n)} is out of range for file`)}let i=H4e(t,e,r);if(n===0)return i;let o=$t(t,i.terminalNodeId);if(!Mt(o)||!No(t,i.terminalNodeId,o))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return q4e(t,i.terminalNodeId,n-1,i.visibleDepth)}function H4e(t,e,n){return Mt($t(t,e))?t.instrumentation==null?{headNodeId:e,terminalNodeId:Fm(t,e),visibleDepth:n}:{headNodeId:e,terminalNodeId:yt(t.instrumentation,"store.getVisibleSlice.flatten.resolveTerminalDirectory",()=>Fm(t,e)),visibleDepth:n}:{headNodeId:e,terminalNodeId:e,visibleDepth:n}}function ptt(t,e){let n=$t(t,e);if(!Mt(n))return!0;let r=n.parentId;return r===t.snapshot.rootId?!0:Dm(t,r)!==e}function $4e(t,e){let n=$t(t,e.terminalNodeId);if(Mt(n)){let o=Pr(t,e.terminalNodeId);if(No(t,e.terminalNodeId,n)&&o.childIds.length>0){let a=o.childIds[0];return a==null?null:VG(t,a,0,e.visibleDepth+1)}}let r=e.terminalNodeId,i=e.visibleDepth;for(;;){let o=$t(t,r);if(r===t.snapshot.rootId)return null;let a=o.parentId,s=Pr(t,a),l=h3(s).get(r)??-1;if(l<0)throw new Error(`Child ${String(r)} was not found in its parent index`);let c=s.childIds[l+1]??null;if(c!=null)return VG(t,c,0,i);ptt(t,r)&&i--,r=a}}function mtt(t){let e=t.paths.length,n=new Array(e);for(let r=0;r<e;r+=1){let i=t.getParentIndex(r);n[r]={index:r,parentPath:i>=0?t.paths[i]??null:null,path:t.paths[r]??"",posInSet:t.posInSetByIndex[r]??0,setSize:t.setSizeByIndex[r]??0}}return{getParentIndex:t.getParentIndex,rows:n,get visibleIndexByPath(){return t.visibleIndexByPath}}}function I4e(t,e){let n=new Array(e),r=new Int32Array(e),i=new Int32Array(e),o=new Int32Array(e),a=new Int32Array(ltt);a.fill(-1);let s=0,{nodes:l,directories:c,segmentTable:u}=t.snapshot,d=[[c.get(t.snapshot.rootId),0,-1,""]],p=t.snapshot.options.flattenEmptyDirectories,m=t.pathCacheByNodeId,f=t.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<e;){let w=d[d.length-1],v=w[0];if(w[1]>=v.childIds.length){d.pop();continue}let k=w[1],_=v.childIds[w[1]++],L=l[_],S=w[2]+1,C=w[3];a=ctt(a,S);let T,M=_;if(Mt(L))M=p?Fm(t,_):_,T=M===_?`${C}${h[L.nameId]}/`:Er(t,M);else{let $=m.get(_);T=$!=null&&$.version===f?$.path:`${C}${h[L.nameId]}`}r[s]=a[S],n[s]=T,i[s]=k,o[s]=v.childIds.length,a[S+1]=s,s+=1;let A=l[M];A!=null&&Mt(A)&&No(t,M,A)&&d.push([c.get(M),0,S,T])}s<e&&(n.length=s);let x=r.subarray(0,s),g=i.subarray(0,s),y=o.subarray(0,s),b=null;return{getParentIndex(w){return w<0||w>=s?-1:x[w]??-1},paths:n,posInSetByIndex:g,setSizeByIndex:y,get visibleIndexByPath(){if(b==null){b=new Map;for(let w=0;w<s;w+=1)b.set(n[w]??"",w)}return b}}}function ftt(t,e){let n=new Array(e),r=0,{nodes:i,directories:o,segmentTable:a}=t.snapshot,s=[[o.get(t.snapshot.rootId),0,-1]],l=a.valueById,c=t.snapshot.options.flattenEmptyDirectories,u=t.pathCacheByNodeId,d=t.pathCacheVersion;for(;s.length>0&&r<e;){let p=s[s.length-1],m=p[0];if(p[1]>=m.childIds.length){s.pop();continue}let f=m.childIds[p[1]++],h=i[f],x=p[2]+1;if(!Mt(h)){let w=u.get(f);n[r++]={depth:x,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:"file",loadState:void 0,name:l[h.nameId],path:w!=null&&w.version===d?w.path:Er(t,f)};continue}let g=c?Fm(t,f):f,y={headNodeId:f,terminalNodeId:g,visibleDepth:x};n[r++]=T8(t,y);let b=i[g];b!=null&&Mt(b)&&No(t,g,b)&&s.push([o.get(g),0,x])}return r<e&&(n.length=r),n}function T8(t,e){let n=$t(t,e.terminalNodeId),r=Mt(n)?htt(t,e):null,i=Er(t,e.terminalNodeId),o=nc(t.snapshot.segmentTable,n.nameId),a=Mt(n)&&Pr(t,e.terminalNodeId).childIds.length>0,s=e.headNodeId!==e.terminalNodeId,l=t.instrumentation,c=s?l==null?x3(t,e.headNodeId).map(u=>{let d=$t(t,u);return{isTerminal:u===e.terminalNodeId,name:nc(t.snapshot.segmentTable,d.nameId),nodeId:u,path:Er(t,u)}}):yt(l,"store.getVisibleSlice.flatten.collectSegments",()=>x3(t,e.headNodeId).map(u=>{let d=$t(t,u);return{isTerminal:u===e.terminalNodeId,name:nc(t.snapshot.segmentTable,d.nameId),nodeId:u,path:Er(t,u)}})):void 0;return{depth:e.visibleDepth,flattenedSegments:c,hasChildren:a,id:e.terminalNodeId,isExpanded:Mt(n)&&No(t,e.terminalNodeId,n),isFlattened:s,isLoading:r==="loading",kind:Mt(n)?"directory":"file",loadState:r==null||r==="loaded"?void 0:r,name:o,path:i}}function htt(t,e){if(e.headNodeId===e.terminalNodeId)return bh(t,e.terminalNodeId);let n=x3(t,e.headNodeId),r=!1,i=!1;for(let o of n){let a=bh(t,o);if(a==="loading")return"loading";if(a==="error"){i=!0;continue}a==="unloaded"&&(r=!0)}return i?"error":r?"unloaded":"loaded"}function btt(t){let{directories:e,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:o}=t.snapshot,a=r.flattenEmptyDirectories===!0,s=m=>{let f=n[m];if(f==null||!Mt(f))return;let h=e.get(m);if(h==null)throw new Error(`Unknown directory child index for node ${String(m)}`);let x=h.childIds,g=x.length,y=0,b=0;for(let v=0;v<g;v++){let k=x[v];if(k==null)continue;let _=n[k];y+=_.subtreeNodeCount,b+=_.visibleSubtreeCount}h.totalChildSubtreeNodeCount=y,h.totalChildVisibleSubtreeCount=b,g>=128&&r5(n,h),f.subtreeNodeCount=1+y;let w;if(a&&g===1){let v=n[x[0]];w=v!=null&&Mt(v)?b:1+b}else w=1+b;f.visibleSubtreeCount=w};if(o!=null)for(let m=o.length-1;m>=0;m--)s(o[m]);else for(let m=n.length-1;m>=1;m--)s(m);let l=n[i],c=e.get(i);if(l==null||c==null)return;let u=c.childIds,d=0,p=0;for(let m=0;m<u.length;m++){let f=u[m];if(f==null)continue;let h=n[f];d+=h.subtreeNodeCount,p+=h.visibleSubtreeCount}c.totalChildSubtreeNodeCount=d,c.totalChildVisibleSubtreeCount=p,r5(n,c),l.subtreeNodeCount=1+d,l.visibleSubtreeCount=p}function ytt(t){return t.initialExpansion==="open"&&(t.initialExpandedPaths==null||t.initialExpandedPaths.length===0)}var uT=class G4e{#e;constructor(e={}){let n=S8(e),r=yt(n,"store.builder.create",()=>new sT(e));if(e.preparedInput!=null){let s=B3e(e.preparedInput);s!=null?r.appendPresortedPaths(s,z3e(e.preparedInput)):r.appendPreparedPaths(F3e(e.preparedInput),!1)}else{let s=e.paths??[];e.presorted===!0?r.appendPaths(s):r.appendPreparedPaths(yt(n,"store.preparePathEntries",()=>aT(s,e)))}let i=yt(n,"store.builder.finish",()=>r.finish({skipSubtreeCountPass:!0})),o=yt(n,"store.state.detectAllDirectoriesExpanded",()=>(e.initialExpansion??"closed")==="closed"&&r.didMatchAllInitialExpandedPaths());this.#e=yt(n,"store.state.create",()=>q3e(i,o?"open":e.initialExpansion??"closed",n)),o&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=o?this.#e.snapshot.directories.size-1:yt(n,"store.state.initializeExpandedPaths",()=>this.initializeExpandedPaths(e.initialExpandedPaths));o||ytt(e)||(e.initialExpansion??"closed")==="closed"&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&yt(n,"store.state.checkAllDirectoriesExpanded",()=>this.hasAllDirectoriesExpanded())?yt(n,"store.state.initializeOpenVisibleCounts",()=>btt(this.#e)):yt(n,"store.state.recomputeCounts",()=>E8(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,n={}){return j3e(e,n)}static prepareInput(e,n={}){return O3e(e,n)}static preparePresortedInput(e){return D3e(e)}list(e){return yt(this.#e.instrumentation,"store.list",()=>lT(this.#e,e))}add(e){yt(this.#e.instrumentation,"store.add",()=>{let n=Po(this.#e);iu(this.#e,hs(this.#e,n,BG(this.#e,e)))})}remove(e,n={}){yt(this.#e.instrumentation,"store.remove",()=>{let r=Po(this.#e);iu(this.#e,hs(this.#e,r,zG(this.#e,e,n)))})}move(e,n,r={}){yt(this.#e.instrumentation,"store.move",()=>{let i=Po(this.#e),o=qG(this.#e,e,n,r);o!=null&&iu(this.#e,hs(this.#e,i,o))})}batch(e){f4e(this.#e,()=>{if(typeof e=="function"){e(this);return}for(let n of e)switch(n.type){case"add":this.add(n.path);break;case"remove":this.remove(n.path,{recursive:n.recursive});break;case"move":this.move(n.from,n.to,{collision:n.collision});break}})}getVisibleCount(){return yt(this.#e.instrumentation,"store.getVisibleCount",()=>Po(this.#e))}getVisibleSlice(e,n){return yt(this.#e.instrumentation,"store.getVisibleSlice",()=>O4e(this.#e,e,n))}getVisibleRowContext(e){return yt(this.#e.instrumentation,"store.getVisibleRowContext",()=>j4e(this.#e,e))}getVisibleTreeProjection(){return D4e(this.#e)}getVisibleTreeProjectionData(e){return ZG(this.#e,e)}getVisibleIndex(e){return yt(this.#e.instrumentation,"store.getVisibleIndex",()=>F4e(this.#e,e))}getPathInfo(e){return yt(this.#e.instrumentation,"store.getPathInfo",()=>{let n=gs(this.#e,e);if(n==null)return null;let r=$t(this.#e,n);return{depth:al(r),kind:Mt(r)?"directory":"file",path:Er(this.#e,n)}})}isExpanded(e){return yt(this.#e.instrumentation,"store.isExpanded",()=>{let n=this.requireDirectoryNodeId(e),r=$t(this.#e,n);return No(this.#e,n,r)})}expand(e){yt(this.#e.instrumentation,"store.expand",()=>{let n=Po(this.#e),r=B4e(this.#e,e);r!=null&&iu(this.#e,hs(this.#e,n,r))})}collapse(e){yt(this.#e.instrumentation,"store.collapse",()=>{let n=Po(this.#e),r=z4e(this.#e,e);r!=null&&iu(this.#e,hs(this.#e,n,r))})}on(e,n){return n4e(this.#e,e,n)}getDirectoryLoadState(e){let n=this.requireDirectoryNodeId(e);return bh(this.#e,n)}markDirectoryUnloaded(e){yt(this.#e.instrumentation,"store.markDirectoryUnloaded",()=>{let n=this.requireDirectoryNodeId(e);if(Pr(this.#e,n).childIds.length>0)throw new Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let r=Po(this.#e);Z3e(this.#e,n),iu(this.#e,hs(this.#e,r,l4e({affectedAncestorIds:rc(this.#e,n),affectedNodeIds:[n],path:e,projectionChanged:this.isDirectoryProjectionVisible(n)})))})}beginChildLoad(e){return yt(this.#e.instrumentation,"store.beginChildLoad",()=>{let n=this.requireDirectoryNodeId(e),r=Po(this.#e),i=V3e(this.#e,n);return iu(this.#e,hs(this.#e,r,c4e({affectedAncestorIds:rc(this.#e,n),affectedNodeIds:[n],attemptId:i.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(n),reused:i.reused}))),i})}applyChildPatch(e,n){return yt(this.#e.instrumentation,"store.applyChildPatch",()=>{let r=this.resolveActiveDirectoryNodeId(e.nodeId);if(r==null||bh(this.#e,r)!=="loading"||!K3e(this.#e,r,e.attemptId))return!1;let i=Er(this.#e,r);this.validateChildPatch(i,n);let o=Po(this.#e),a=[];for(let l of n.operations){xtt(i,l);let c=Po(this.#e);switch(l.type){case"add":a.push(hs(this.#e,c,BG(this.#e,l.path)));break;case"remove":a.push(hs(this.#e,c,zG(this.#e,l.path,{recursive:l.recursive})));break;case"move":{let u=qG(this.#e,l.from,l.to,{collision:l.collision});u!=null&&a.push(hs(this.#e,c,u));break}}}let s=a.some(l=>l.projectionChanged)||this.isDirectoryProjectionVisible(r);return iu(this.#e,hs(this.#e,o,u4e({affectedAncestorIds:rc(this.#e,r),affectedNodeIds:[r],attemptId:e.attemptId,childEvents:a,path:Er(this.#e,r),projectionChanged:s}))),!0})}completeChildLoad(e){return yt(this.#e.instrumentation,"store.completeChildLoad",()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=Po(this.#e),i=W3e(this.#e,n,e.attemptId);return iu(this.#e,hs(this.#e,r,d4e({affectedAncestorIds:rc(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,path:Er(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}failChildLoad(e,n){return yt(this.#e.instrumentation,"store.failChildLoad",()=>{let r=this.resolveActiveDirectoryNodeId(e.nodeId);if(r==null)return!1;let i=Po(this.#e),o=X3e(this.#e,r,e.attemptId,n);return iu(this.#e,hs(this.#e,i,p4e({affectedAncestorIds:rc(this.#e,r),affectedNodeIds:[r],attemptId:e.attemptId,errorMessage:n,path:Er(this.#e,r),projectionChanged:this.isDirectoryProjectionVisible(r),stale:!o}))),o})}cleanup(e={}){return yt(this.#e.instrumentation,"store.cleanup",()=>{if(this.#e.transactionStack.length>0)throw new Error("Cleanup cannot run during an open batch or transaction.");if(T4e(this.#e))throw new Error("Cleanup cannot run while directory loads are active.");let n=Po(this.#e),r=R4e(this.#e,e.mode??"stable");return iu(this.#e,hs(this.#e,n,m4e({...r,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:r.idsPreserved===!1}))),r})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let n=0,r=[],i=[],o=0,a=null,s=this.#e.snapshot.segmentTable,l=s.valueById,c=this.#e.snapshot.nodes,u=new Map;for(let d of e){a!=null&&d<a&&(a=null,o=0,r.length=0,i.length=0);let p=d.length>0&&d.charCodeAt(d.length-1)===47?d.length-1:d.length;if(p===0){a=d,o=p,r.length=0,i.length=0;continue}let m=0,f=0;if(a!=null){let b=Math.min(p,o),w=!0;for(let v=0;v<b;v+=1){let k=d.charCodeAt(v);if(k!==a.charCodeAt(v)){w=!1;break}k===47&&(m+=1,f=v+1)}w&&(b===o&&p>b&&d.charCodeAt(b)===47?(m+=1,f=b+1):b===p&&o>b&&a.charCodeAt(b)===47&&(m+=1,f=p+1)),m=Math.min(m,i.length)}let h=m===0?this.#e.snapshot.rootId:i[m-1]??this.#e.snapshot.rootId,x=m,g=!0,y=f;for(;y<=p;){let b=d.indexOf("/",y),w=b===-1||b>p?p:b,v=d.slice(y,w),k=Pr(this.#e,h).childIds,_=x===m?r[x]??0:0,L=_,S,C=u.get(v)??i5(v);u.set(v,C);let T=(M,A)=>{for(L=M;L<A;L+=1){let $=k[L],N=c[$],F=l[N.nameId];if(F===v)return S=$,!0;let D=L8(M8(s,N.nameId),C);if(D>0||D===0&&F>v)return!1}return!1};if(!T(_,k.length)&&_>0&&T(0,_),S===void 0){g=!1;break}if(!Mt($t(this.#e,S))){g=!1;break}if(r[x]=L,i[x]=S,h=S,x+=1,w===p)break;y=w+1}if(a=d,o=p,r.length=x,i.length=x,!g){a=null,o=0,r.length=0,i.length=0;continue}for(let b=m;b<x;b+=1){let w=i[b];if(w==null)continue;let v=$t(this.#e,w);No(this.#e,w,v)||(gh(this.#e,w,!0,v),n+=1)}}return n}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let n=$t(this.#e,e);if(!No(this.#e,e,n))return!1}return!0}requireDirectoryNodeId(e){let n=gs(this.#e,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);if(!Mt($t(this.#e,n)))throw new Error(`Path is not a directory: "${e}"`);return n}resolveActiveDirectoryNodeId(e){try{if(!Mt($t(this.#e,e)))throw new Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let n=e;for(;n!==this.#e.snapshot.rootId;){let r=$t(this.#e,n).parentId;if(r!==this.#e.snapshot.rootId){let i=$t(this.#e,r),o=Dm(this.#e,r);if(!No(this.#e,r,i)&&o!==n)return!1}n=r}return!0}validateChildPatch(e,n){new G4e({paths:this.list(e),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function xtt(t,e){switch(e.type){case"add":case"remove":if(!e.path.startsWith(t)||e.path===t)throw new Error(`Child patch operation must stay within ${t}: "${e.path}"`);break;case"move":if(!e.from.startsWith(t)||!e.to.startsWith(t)||e.from===t||e.to===t)throw new Error(`Child patch move must stay within ${t}: "${e.from}" -> "${e.to}"`);break}}var dT={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function U4e(t,e){if(typeof t=="number")return{itemHeight:e??dT.default.itemHeight,factor:t};let n=dT[t??"default"];return{itemHeight:e??n.itemHeight,factor:n.factor}}var pT=dT.default.itemHeight,V4e=10,mT=420;var WG=`@layer base, theme, unsafe; +</svg>`)}var m3e=g3e(h3e,bet),xet={minimal:h3e,standard:m3e,complete:g3e(m3e,yet)},wet={".babelrc":"babel",".babelrc.json":"babel",".bash_profile":"bash",".bashrc":"bash",".browserslistrc":"browserslist",".dockerignore":"docker",".eslintignore":"eslint",".eslintrc":"eslint",".eslintrc.cjs":"eslint",".eslintrc.js":"eslint",".eslintrc.json":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".gitattributes":"git",".gitignore":"git",".gitkeep":"git",".gitmodules":"git",".oxlintrc.json":"oxc",".postcssrc":"postcss",".postcssrc.json":"postcss",".postcssrc.yaml":"postcss",".postcssrc.yml":"postcss",".prettierignore":"prettier",".prettierrc":"prettier",".prettierrc.cjs":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.mjs":"prettier",".prettierrc.toml":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".stylelintignore":"stylelint",".stylelintrc":"stylelint",".stylelintrc.cjs":"stylelint",".stylelintrc.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.mjs":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".terraform.lock.hcl":"terraform",".zprofile":"bash",".zshenv":"bash",".zshrc":"bash","babel.config.cjs":"babel","babel.config.js":"babel","babel.config.json":"babel","babel.config.mjs":"babel","biome.json":"biome","biome.jsonc":"biome","bootstrap.bundle.js":"bootstrap","bootstrap.bundle.min.js":"bootstrap","bootstrap.css":"bootstrap","bootstrap.js":"bootstrap","bootstrap.min.css":"bootstrap","bootstrap.min.js":"bootstrap","bun.lock":"bun","bun.lockb":"bun","bunfig.toml":"bun","claude.md":"claude","compose.yaml":"docker","compose.yml":"docker","docker-compose.override.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker","eslint.config.cjs":"eslint","eslint.config.js":"eslint","eslint.config.mjs":"eslint","eslint.config.mts":"eslint","eslint.config.ts":"eslint",gemfile:"ruby","next.config.js":"nextjs","next.config.mjs":"nextjs","next.config.mts":"nextjs","next.config.ts":"nextjs","postcss.config.cjs":"postcss","postcss.config.js":"postcss","postcss.config.mjs":"postcss","postcss.config.ts":"postcss","prettier.config.cjs":"prettier","prettier.config.js":"prettier","prettier.config.mjs":"prettier",rakefile:"ruby","readme.md":"markdown","stylelint.config.cjs":"stylelint","stylelint.config.js":"stylelint","stylelint.config.mjs":"stylelint","svgo.config.cjs":"svgo","svgo.config.js":"svgo","svgo.config.mjs":"svgo","svgo.config.ts":"svgo","tailwind.config.cjs":"tailwind","tailwind.config.js":"tailwind","tailwind.config.mjs":"tailwind","tailwind.config.ts":"tailwind","vite.config.js":"vite","vite.config.mjs":"vite","vite.config.mts":"vite","vite.config.ts":"vite","webpack.config.babel.js":"webpack","webpack.config.cjs":"webpack","webpack.config.js":"webpack","webpack.config.mjs":"webpack","webpack.config.ts":"webpack"},vet={"7z":"zip",astro:"astro",AUTHORS:"text",avif:"image",bash:"bash",bmp:"image",bz2:"zip",c:"c",cc:"cpp",cfg:"text",CHANGELOG:"text",cjs:"javascript","code-workspace":"vscode",conf:"text",CONTRIBUTORS:"text",cpp:"cpp",csh:"bash",css:"css",csv:"table",cts:"typescript",cxx:"cpp",db:"database",editorconfig:"text",env:"text","env.development":"text","env.local":"text","env.production":"text",eot:"font",erb:"ruby",fish:"bash",gemspec:"ruby",gif:"image",go:"go",gql:"graphql",graphql:"graphql",gz:"zip",h:"c",hh:"cpp",hpp:"cpp",htm:"html",html:"html",hxx:"cpp",icns:"image",ico:"image",ini:"text",inl:"cpp",jar:"zip",jpeg:"image",jpg:"image",js:"javascript",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsx:"javascript",ksh:"bash",less:"css",LICENSE:"text",log:"text",markdown:"markdown",mcp:"mcp",md:"markdown",mdx:"markdown","mdx.tsx":"markdown",mjs:"javascript",mm:"cpp",mts:"typescript",ods:"table",otf:"font",png:"image",postcss:"css",py:"python",pyi:"python",pyw:"python",pyx:"python",rake:"ruby",rar:"zip",rb:"ruby",rs:"rust",rst:"text",rtf:"text",sass:"css",scss:"css",sh:"bash",sql:"database",sqlite:"database",sqlite3:"database",styl:"css",svelte:"svelte",svg:"svg",swift:"swift",tar:"zip",tf:"terraform",tfstate:"terraform",tfvars:"terraform",tgz:"zip",tif:"image",tiff:"image",ts:"typescript",tsv:"table",tsx:"typescript",ttf:"font",txt:"text",vue:"vue",war:"zip",wasm:"wasm",wast:"wasm",wat:"wasm",webp:"image",woff:"font",woff2:"font",xhtml:"html",xls:"table",xlsx:"table",xz:"zip",yaml:"yml",yml:"yml",zig:"zig",zip:"zip",zsh:"bash"},ket={jsx:"react",sass:"sass",scss:"sass",tsx:"react"},f3e=new Set(["bash","c","cpp","css","database","default","font","git","go","html","image","javascript","json","markdown","mcp","python","ruby","rust","swift","table","text","typescript","zip"]),Cet=new Set(["complete"]);function v8(t){return xet[t==="none"?"minimal":t]}function b3e(t){return`file-tree-builtin-${t}`}function y3e(t){return t!=="none"&&Cet.has(t)}function x3e(t,e,n){if(t==="minimal"||t==="none")return;let r=t==="complete",i=wet[e.toLowerCase()];if(i!=null&&(r||f3e.has(i)))return i;for(let o of n){if(r){let s=ket[o];if(s!=null)return s}let a=vet[o];if(a!=null&&(r||f3e.has(a)))return a}return"default"}var hh="file-tree-container",k8="data-file-tree-style",RG="data-file-tree-unsafe-css",w3e="data-file-tree-scrollbar-measure",AG="data-file-tree-scrollbar-gutter-measured",v3e="--trees-scrollbar-gutter-measured";var t5="header",gh="context-menu",nT="context-menu-trigger";function _et(t){return t.spriteSheet!=null||t.remap!=null||t.byFileName!=null||t.byFileExtension!=null||t.byFileNameContains!=null}function h3(t){return t==null?{set:"complete",colored:!0}:typeof t=="string"?{set:t,colored:!0}:{...t,set:t.set??(_et(t)?"none":"complete"),colored:t.colored??!0}}var Let=t=>t.trim().toLowerCase(),Met=t=>t.split("/").at(-1)??t,Eet=t=>{let e=t.toLowerCase().split("."),n=[];for(let r=1;r<e.length;r+=1)n.push(e.slice(r).join("."));return n};function rT(t,e){return typeof t=="string"?{name:t,remappedFrom:e}:{...t,remappedFrom:e}}function C8(t){let e=h3(t),n=e.remap,r=new Map;for(let[s,l]of Object.entries(e.byFileName??{}))r.set(s.toLowerCase(),l);let i=new Map;for(let[s,l]of Object.entries(e.byFileExtension??{}))i.set(Let(s),l);let o=Object.entries(e.byFileNameContains??{}).map(([s,l])=>[s.toLowerCase(),l]);return{resolveIcon:(s,l)=>{if(s==="file-tree-icon-file"&&l!=null){let u=Met(l),d=u.toLowerCase(),p=r.get(d);if(p!=null)return rT(p,s);for(let[h,x]of o)if(d.includes(h))return rT(x,s);let m=Eet(u);for(let h of m){let x=i.get(h);if(x!=null)return rT(x,s)}let f=x3e(e.set,u,m);if(f!=null&&e.set!=="none")return{name:b3e(f),remappedFrom:s,token:f}}let c=n?.[s];return c==null?{name:s}:rT(c,s)}}}function n5(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function $G(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function bh(t,e){if(e.childIdByNameId!=null)return e.childIdByNameId;let n=new Map;for(let r of e.childIds){let i=t[r];i!=null&&n.set(i.nameId,r)}return e.childIdByNameId=n,n}function g3(t){if(t.childPositionById!=null)return t.childPositionById;let e=new Map;for(let n=0;n<t.childIds.length;n++){let r=t.childIds[n];r!=null&&e.set(r,n)}return t.childPositionById=e,e}function b3(t,e){t.childPositionById!=null&&t.childPositionById.set(e,t.childIds.length),t.childIds.push(e)}function IG(t,e){if(t.childPositionById!=null)for(let n=e;n<t.childIds.length;n++){let r=t.childIds[n];r!=null&&t.childPositionById.set(r,n)}}function r5(t,e){let n=0,r=0;for(let i of e.childIds){let o=t[i];o!=null&&(n+=o.subtreeNodeCount,r+=o.visibleSubtreeCount)}e.totalChildSubtreeNodeCount=n,e.totalChildVisibleSubtreeCount=r,i5(t,e)}function iT(t,e,n,r){if(t.totalChildSubtreeNodeCount+=n,t.totalChildVisibleSubtreeCount+=r,t.childVisibleChunkSums==null||r===0)return;let i=g3(t).get(e);if(i===void 0)return;let o=i>>5;t.childVisibleChunkSums[o]+=r}function oT(t,e,n){let r=e.childVisibleChunkSums;if(r!=null){let o=n,a=0;for(let s of r){if(o<s){let l=Tet(t,e,a,o);return{...l,childVisibleIndex:n-l.localVisibleIndex}}o-=s,a+=32}throw new Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let o=0;o<e.childIds.length;o++){let a=e.childIds[o];if(a==null)continue;let s=t[a];if(s!=null){if(i<s.visibleSubtreeCount)return{childIndex:o,childVisibleIndex:n-i,localVisibleIndex:i};i-=s.visibleSubtreeCount}}throw new Error(`Visible child index ${String(n)} is out of range`)}function k3e(t,e,n){let r=0,i=e.childVisibleChunkSums,o=0;if(i!=null){let a=n>>5;for(let s=0;s<a;s+=1)r+=i[s]??0;o=a<<5}for(let a=o;a<n;a+=1){let s=e.childIds[a];if(s==null)continue;let l=t[s];l!=null&&(r+=l.visibleSubtreeCount)}return r}function i5(t,e){if(e.childIds.length<128){e.childVisibleChunkSums=null;return}let n=Math.ceil(e.childIds.length/32),r=new Int32Array(n);for(let i=0;i<e.childIds.length;i++){let o=e.childIds[i];if(o==null)continue;let a=t[o];a!=null&&(r[i>>5]+=a.visibleSubtreeCount)}e.childVisibleChunkSums=r}function Tet(t,e,n,r){let i=Math.min(e.childIds.length,n+32),o=r;for(let a=n;a<i;a++){let s=e.childIds[a];if(s==null)continue;let l=t[s];if(l!=null){if(o<l.visibleSubtreeCount)return{childIndex:a,localVisibleIndex:o};o-=l.visibleSubtreeCount}}throw new Error(`Visible child index ${String(r)} is out of range`)}function fs(t,e,n=0){return t<<4|n<<3|e}function sl(t){return t.depthAndFlags>>>4}function _8(t){return(t.depthAndFlags&8)>>3}function Et(t){return(t.depthAndFlags&8)!==0}function C3e(t){return t.depthAndFlags&7}function Jr(t,e){return(C3e(t)&e)!==0}function y3(t,e){t.depthAndFlags|=e}function _3e(t,e){t.depthAndFlags=fs(e,C3e(t),_8(t))}var S3e=Symbol("benchmarkInstrumentation");function L3e(t,e){return e==null||Object.defineProperty(t,S3e,{configurable:!0,enumerable:!1,value:e,writable:!1}),t}function S8(t){return t==null?null:t[S3e]??null}function xt(t,e,n){return t==null?n():t.measurePhase(e,n)}function x3(t,e,n){!Number.isFinite(n)||t==null||t.setCounter(e,n)}function M3e(t){return t>=48&&t<=57}function Ret(t){let e=[],n=0,r=0;for(;r<t.length;){for(;r<t.length&&!M3e(t.charCodeAt(r));)r+=1;if(r>=t.length)break;r>n&&e.push(t.slice(n,r));let i=0;for(;r<t.length&&M3e(t.charCodeAt(r));)i=i*10+(t.charCodeAt(r)-48),r+=1;e.push(i),n=r}return(n<t.length||e.length===0)&&e.push(t.slice(n)),e}function o5(t){let e=t.toLowerCase();return{lowerValue:e,tokens:Ret(e)}}function Aet(t,e){let n=Math.min(t.length,e.length);for(let r=0;r<n;r++){let i=t[r],o=e[r];if(i===o)continue;if(typeof i=="number"&&typeof o=="number")return i<o?-1:1;let a=String(i),s=String(o);if(a!==s)return a<s?-1:1}return t.length!==e.length?t.length<e.length?-1:1:0}function L8(t,e){if(t.tokens.length===1&&e.tokens.length===1&&typeof t.tokens[0]=="string"&&typeof e.tokens[0]=="string")return t.lowerValue===e.lowerValue?0:t.lowerValue<e.lowerValue?-1:1;let n=Aet(t.tokens,e.tokens);return n!==0?n:t.lowerValue!==e.lowerValue?t.lowerValue<e.lowerValue?-1:1:0}function E3e(t,e,n){let r=L8(n(t),n(e));return r!==0?r:t===e?0:t<e?-1:1}function $et(t,e){return E3e(t,e,o5)}function aT(t,e){return e!==t.segments.length-1?1:t.isDirectory?1:0}function Iet(t,e){let n=Math.min(t.segments.length,e.segments.length);for(let r=0;r<n;r++){let i=t.segments[r],o=e.segments[r];if(i===o)continue;let a=aT(t,r);return a!==aT(e,r)?a===1?-1:1:$et(i,o)}return t.segments.length!==e.segments.length?t.segments.length<e.segments.length?-1:1:t.isDirectory===e.isDirectory?0:t.isDirectory?-1:1}function T3e(t,e){return Iet(t,e)}function R3e(t,e,n){let r=o=>{let a=n.get(o);if(a!=null)return a;let s=o5(o);return n.set(o,s),s},i=Math.min(t.segments.length,e.segments.length);for(let o=0;o<i;o++){let a=t.segments[o],s=e.segments[o];if(a===s)continue;let l=aT(t,o);return l!==aT(e,o)?l===1?-1:1:E3e(a,s,r)}return t.segments.length!==e.segments.length?t.segments.length<e.segments.length?-1:1:t.isDirectory===e.isDirectory?0:t.isDirectory?-1:1}function M8(t,e){let n=t.sortKeyById[e];if(n!==void 0)return n;let r=t.valueById[e],i=o5(r);return t.sortKeyById[e]=i,i}function NG(t={}){return{flattenEmptyDirectories:t.flattenEmptyDirectories!==!1,sort:t.sort??"default"}}function A3e(t){let e=t.length>0&&t.charCodeAt(t.length-1)===47,n=e?t.length-1:t.length,r=[],i=0;for(let o=0;o<n;o++)t.charCodeAt(o)===47&&(r.push(t.slice(i,o)),i=o+1);return r.push(t.slice(i,n)),{hasTrailingSlash:e,segments:r}}function a5(t){let{hasTrailingSlash:e,segments:n}=A3e(t);return{basename:n[n.length-1]??"",isDirectory:e,path:t,segments:n}}function sT(t){if(t.length===0)return{requiresDirectory:!1,segments:[]};let{hasTrailingSlash:e,segments:n}=A3e(t);return{requiresDirectory:e,segments:n}}var PG="";function lT(){let t=new Map;return t.set(PG,0),{idByValue:t,valueById:[PG],sortKeyById:[o5(PG)]}}function qu(t,e){let n=t.idByValue.get(e);if(n!==void 0)return n;let r=t.valueById.length;return t.idByValue.set(e,r),t.valueById.push(e),r}function nc(t,e){let n=t.valueById[e];if(n===void 0)throw new Error(`Unknown segment ID: ${String(e)}`);return n}var jG=Symbol("pathStorePreparedInputKind");function N3e(t,e){return t[jG]=e,t}function $3e(t){return{basename:t.basename,depth:t.segments.length,isDirectory:t.isDirectory,path:t.path,segments:t.segments}}function P3e(t,e,n){return n==="default"?T3e(t,e):n($3e(t),$3e(e))}function Net(){return{depthAndFlags:fs(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function Pet(t,e){let n=Math.min(t.length,e.length);for(let r=0;r<n;r++)if(t[r]!==e[r])return r;return n}function I3e(t){return t.isDirectory?t.segments.length:t.segments.length-1}function jet(t){return Array.isArray(t)&&t.every(e=>e!=null&&typeof e=="object"&&typeof e.path=="string"&&Array.isArray(e.segments)&&typeof e.basename=="string"&&typeof e.isDirectory=="boolean")}function Oet(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}function j3e(t,e={}){return cT(t,e).map(n=>n.path)}function O3e(t,e={}){let n=cT(t,e);return N3e({paths:n.map(r=>r.path),preparedPaths:n},"prepared")}function D3e(t){let e=t.length,n=!1;for(let r=0;r<e;r+=1){let i=t[r];if(i.length>0&&i.charCodeAt(i.length-1)===47){n=!0;break}}return N3e({paths:t,presortedPaths:t,presortedPathsContainDirectories:n},"presorted")}function F3e(t){let e=t,n=e.preparedPaths;if(e[jG]==="prepared"&&n!=null)return n;if(!jet(n))throw new Error("preparedInput must come from PathStore.prepareInput()");return n}function B3e(t){let e=t;return e[jG]==="presorted"&&e.presortedPaths!=null||Oet(e.presortedPaths)?e.presortedPaths:null}function z3e(t){let e=t;return typeof e.presortedPathsContainDirectories=="boolean"?e.presortedPathsContainDirectories:null}function cT(t,e={}){let n=NG(e),r=S8(e);x3(r,"workload.inputFiles",t.length);let i=xt(r,"store.preparePathEntries.parse",()=>t.map(o=>a5(o)));return xt(r,"store.preparePathEntries.sort",()=>i.sort((o,a)=>P3e(o,a,n.sort))),i}var uT=class{directories=new Map;directoryStack=[0];presortedDirectoryNodeIds=[];initialExpandedPathSet;createdDirectoriesAllExpanded=!1;createdDirectoryCount=0;lastPreparedPath=null;nodes=[Net()];options;instrumentation;segmentSortKeyCache=new Map;segmentTable=lT();hasDeferredDirectoryIndexes=!1;constructor(t={}){this.instrumentation=S8(t),this.options=NG(t);let e=t.initialExpandedPaths??null;if(e==null||e.length===0)this.initialExpandedPathSet=null;else{let n=new Set,r=e.length;for(let i=0;i<r;i+=1){let o=e[i],a=o.length;n.add(a>0&&o.charCodeAt(a-1)===47?o.slice(0,a-1):o)}this.initialExpandedPathSet=n,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,n5())}appendPaths(t){return xt(this.instrumentation,"store.builder.appendPaths.parse",()=>this.appendPreparedPaths(t.map(e=>a5(e))))}appendPreparedPaths(t,e=!0){return this.createdDirectoriesAllExpanded=!1,xt(this.instrumentation,"store.builder.appendPreparedPaths",()=>{for(let n of t)this.appendPreparedPath(n,e)}),this}appendPresortedPaths(t,e=null){return xt(this.instrumentation,"store.builder.appendPresortedPaths",()=>{if(e===!1){this.appendPresortedFilePaths(t);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0,i=this.nodes,o=this.segmentTable,a=o.idByValue,s=o.valueById,l=this.directoryStack,c=0,u="",d=0;for(let p of t){if(n===p)throw new Error(`Duplicate path: "${p}"`);let m=p.length>0&&p.charCodeAt(p.length-1)===47,f=m?p.length-1:p.length,h=0,x=0;if(n!=null)if(u.length>0&&p.length>u.length&&p.startsWith(u))h=d,x=u.length;else{let b=Math.min(f,n.length),w=!0;for(let v=0;v<b;v++){let k=p.charCodeAt(v);if(k!==n.charCodeAt(v)){w=!1;break}k===47&&(h++,x=v+1)}w&&m&&b===f&&n.length>f&&n.charCodeAt(f)===47&&(h++,x=f+1)}c=h,r=h;let g=x,y=p.indexOf("/",g);for(;y>=0&&y<f;){let b=l[c];if(b===void 0)throw new Error("Directory stack underflow while building the path store");r++;let w=p.slice(g,y),v=a.get(w);v===void 0&&(v=s.length,a.set(w,v),s.push(w));let k=i.length;i.push({depthAndFlags:fs(r,0,1),nameId:v,parentId:b,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(p.slice(0,y)),c++,l[c]=k,g=y+1,y=p.indexOf("/",g)}if(m){if(g<f){let w=l[c];if(w===void 0)throw new Error(`Unable to resolve directory parent for "${p}"`);r++;let v=p.slice(g,f),k=a.get(v);k===void 0&&(k=s.length,a.set(v,k),s.push(v));let _=i.length;i.push({depthAndFlags:fs(r,0,1),nameId:k,parentId:w,subtreeNodeCount:1,visibleSubtreeCount:1}),c++,l[c]=_}let b=l[c];if(b===void 0)throw new Error(`Unable to resolve directory node for "${p}"`);this.promoteDirectoryToExplicit(b,p)}else{let b=l[c];if(b===void 0)throw new Error(`Unable to resolve file parent for "${p}"`);let w=p.slice(g),v=a.get(w);v===void 0&&(v=s.length,a.set(w,v),s.push(w)),i.push({depthAndFlags:fs(r+1,0),nameId:v,parentId:b,subtreeNodeCount:1,visibleSubtreeCount:1})}g!==u.length&&(u=p.substring(0,g),d=r),n=p}l.length=c+1,n!=null&&(this.lastPreparedPath=a5(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(t){let e=null,n=0,r=this.nodes,i=this.segmentTable,o=i.idByValue,a=i.valueById,s=this.directoryStack,l=0,c="",u=0;for(let d of t){if(e===d)throw new Error(`Duplicate path: "${d}"`);let p=d.length,m=0,f=0;if(e!=null)if(c.length>0&&d.length>c.length&&d.startsWith(c))m=u,f=c.length;else{let w=Math.min(p,e.length);for(let v=0;v<w;v++){let k=d.charCodeAt(v);if(k!==e.charCodeAt(v))break;k===47&&(m++,f=v+1)}}l=m,n=m;let h=f,x=d.indexOf("/",h);for(;x>=0;){let w=s[l];if(w===void 0)throw new Error("Directory stack underflow while building the path store");n++;let v=d.slice(h,x),k=o.get(v);k===void 0&&(k=a.length,o.set(v,k),a.push(v));let _=r.length;r.push({depthAndFlags:fs(n,0,1),nameId:k,parentId:w,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(d.slice(0,x)),this.presortedDirectoryNodeIds.push(_),l++,s[l]=_,h=x+1,x=d.indexOf("/",h)}let g=s[l];if(g===void 0)throw new Error(`Unable to resolve file parent for "${d}"`);let y=d.slice(h),b=o.get(y);b===void 0&&(b=a.length,o.set(y,b),a.push(y)),r.push({depthAndFlags:fs(n+1,0),nameId:b,parentId:g,subtreeNodeCount:1,visibleSubtreeCount:1}),h!==c.length&&(c=d.substring(0,h),u=n),e=d}s.length=l+1,e!=null&&(this.lastPreparedPath=a5(e)),this.hasDeferredDirectoryIndexes=!0}finish(t={}){let e=t.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(xt(this.instrumentation,"store.builder.buildDirectoryIndexes",()=>this.buildPresortedFinish(e)),this.hasDeferredDirectoryIndexes=!1):e||xt(this.instrumentation,"store.builder.computeSubtreeCounts",()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(t,e){if(this.hasDeferredDirectoryIndexes&&(this.buildDirectoryIndexes(),this.hasDeferredDirectoryIndexes=!1),this.lastPreparedPath!=null){if(t.path===this.lastPreparedPath.path)throw new Error(`Duplicate path: "${t.path}"`);if(e&&(this.options.sort==="default"?R3e(this.lastPreparedPath,t,this.segmentSortKeyCache):P3e(this.lastPreparedPath,t,this.options.sort))>0)throw new Error(`Builder input must be sorted before appendPaths(): "${t.path}"`)}let n=this.lastPreparedPath,r=I3e(t),i=n==null?0:I3e(n),o=n==null?0:Pet(n.segments,t.segments),a=Math.min(o,r,i);this.directoryStack.length=a+1;for(let l=a;l<r;l++){let c=this.directoryStack[this.directoryStack.length-1];if(c===void 0)throw new Error("Directory stack underflow while building the path store");let u=e?this.getOrCreateDirectoryChild(c,t.segments[l]):this.createDirectoryChild(c,t.segments[l]);this.directoryStack.push(u)}if(t.isDirectory){let l=this.directoryStack[this.directoryStack.length-1];if(l===void 0)throw new Error(`Unable to resolve directory node for "${t.path}"`);this.promoteDirectoryToExplicit(l,t.path),this.lastPreparedPath=t;return}let s=this.directoryStack[this.directoryStack.length-1];if(s===void 0)throw new Error(`Unable to resolve file parent for "${t.path}"`);e?this.createFileChild(s,t.basename,t.path):this.createFileChildUnchecked(s,t.basename),this.lastPreparedPath=t}recordCreatedDirectoryPath(t){!this.createdDirectoriesAllExpanded||this.initialExpandedPathSet==null||(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(t)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(t,e,n){let r=qu(this.segmentTable,e),i=this.getDirectoryIndex(t),o=i.childIdByNameId;if(o!=null&&o.get(r)!==void 0)throw new Error(`Path collides with an existing entry: "${n}"`);let a=this.nodes[t];if(a===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let s=this.nodes.length;return this.nodes.push({depthAndFlags:fs(sl(a)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),o?.set(r,s),b3(i,s),s}createFileChildUnchecked(t,e){let n=qu(this.segmentTable,e),r=this.getDirectoryIndex(t),i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let o=this.nodes.length;return this.nodes.push({depthAndFlags:fs(sl(i)+1,0),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),b3(r,o),o}getOrCreateDirectoryChild(t,e){let n=qu(this.segmentTable,e),r=this.getDirectoryIndex(t);if(r.childIdByNameId!=null){let a=r.childIdByNameId.get(n);if(a!==void 0){let s=this.nodes[a];if(s!=null&&!Et(s))throw new Error(`Path collides with an existing file while creating directory "${e}"`);return a}}let i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let o=this.nodes.length;return this.nodes.push({depthAndFlags:fs(sl(i)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),b3(r,o),this.directories.set(o,n5()),o}createDirectoryChild(t,e){let n=qu(this.segmentTable,e),r=this.getDirectoryIndex(t),i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);let o=this.nodes.length;return this.nodes.push({depthAndFlags:fs(sl(i)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),b3(r,o),this.directories.set(o,n5()),o}promoteDirectoryToExplicit(t,e){let n=this.nodes[t];if(n===void 0)throw new Error(`Unknown directory node ID: ${String(t)}`);if(!Et(n))throw new Error(`Path is not a directory: "${e}"`);if(Jr(n,1))throw new Error(`Duplicate path: "${e}"`);y3(n,1)}getDirectoryIndex(t){let e=this.directories.get(t);if(e!==void 0)return e;throw new Error(`Unknown directory child index for node ${String(t)}`)}buildPresortedFinish(t){let e=this.nodes,n=this.directories;n.set(0,$G());let r=-1,i=null;for(let o=1;o<e.length;o++){let a=e[o];if(a==null)continue;if(Et(a)){let l=$G();n.set(o,l),r=o,i=l}let s;a.parentId===r?s=i:(s=n.get(a.parentId),r=a.parentId,i=s??null),s?.childIds.push(o)}if(!t)for(let o=e.length-1;o>=1;o--){let a=e[o];if(a==null)continue;let s=e[a.parentId];s!=null&&(s.subtreeNodeCount+=a.subtreeNodeCount,s.visibleSubtreeCount+=a.visibleSubtreeCount)}}buildDirectoryIndexes(){let t=this.nodes;for(let e=1;e<t.length;e++){let n=t[e];if(n==null)continue;Et(n)&&this.directories.set(e,n5());let r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,e),b3(r,e))}}computeSubtreeCounts(t){let e=this.nodes[t];if(e===void 0)throw new Error(`Unknown node ID: ${String(t)}`);if(!Et(e))return e.subtreeNodeCount=1,e.visibleSubtreeCount=1,1;let n=this.getDirectoryIndex(t),r=1;for(let i of n.childIds)r+=this.computeSubtreeCounts(i);return r5(this.nodes,n),e.subtreeNodeCount=r,e.visibleSubtreeCount=r,r}};function q3e(t,e="closed",n=null){let r=Det(e);return{activeNodeCount:t.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r==="open",hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[t.rootId,{path:"",version:0}]]),pathCacheVersion:0,snapshot:t,transactionStack:[]}}function H3e(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function Det(t){if(typeof t!="number")return t;if(!Number.isInteger(t)||t<0)throw new Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(t)}`);return t}function G3e(t,e){return Jr(e,2)||t.defaultExpansion==="open"?!0:t.defaultExpansion==="closed"?!1:sl(e)<=t.defaultExpansion}function No(t,e,n=t.snapshot.nodes[e]){return n==null||!Et(n)?!1:t.directoriesOpenByDefault&&!t.hasCollapsedDirectoryOverrides?!0:t.collapsedDirectoryIds.has(e)?!1:t.expandedDirectoryIds.has(e)?!0:G3e(t,n)}function yh(t,e,n,r=t.snapshot.nodes[e]){if(r==null||!Et(r))return;let i=G3e(t,r);if(n){if(i){t.collapsedDirectoryIds.delete(e),t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0;return}t.expandedDirectoryIds.add(e);return}if(i){t.collapsedDirectoryIds.add(e),t.hasCollapsedDirectoryOverrides=!0;return}t.expandedDirectoryIds.delete(e)}function U3e(t,e){let n=t.directoryLoadInfoById.get(e);if(n!=null)return n;let r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:"loaded"};return t.directoryLoadInfoById.set(e,r),r}function xh(t,e){return t.directoryLoadInfoById.get(e)?.state??"loaded"}function V3e(t,e){let n=U3e(t,e);if(n.state==="loading"&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:e,reused:!0};let r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state="loading",{attemptId:r,nodeId:e,reused:!1}}function Z3e(t,e){let n=U3e(t,e);n.activeAttemptId=null,n.errorMessage=null,n.state="unloaded"}function W3e(t,e,n){let r=t.directoryLoadInfoById.get(e);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state="loaded",!0)}function K3e(t,e,n){return t.directoryLoadInfoById.get(e)?.activeAttemptId===n}function X3e(t,e,n,r){let i=t.directoryLoadInfoById.get(e);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state="error",!0)}function Y3e(t,e){t.directoryLoadInfoById.delete(e)}function n4e(t,e,n){let r=n,i=t.listeners.get(e);return i!=null?i.add(r):t.listeners.set(e,new Set([r])),()=>{let o=t.listeners.get(e);o!=null&&(o.delete(r),o.size===0&&t.listeners.delete(e))}}function r4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"add",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function i4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"remove",path:t.path,projectionChanged:t.projectionChanged,recursive:t.recursive,visibleCountDelta:null}}function o4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,from:t.from,operation:"move",projectionChanged:t.projectionChanged,to:t.to,visibleCountDelta:null}}function a4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"expand",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function s4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"collapse",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function l4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"mark-directory-unloaded",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function c4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"begin-child-load",path:t.path,projectionChanged:t.projectionChanged,reused:t.reused,visibleCountDelta:null}}function u4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:t.childEvents.some(e=>e.canonicalChanged),childEvents:t.childEvents,operation:"apply-child-patch",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function d4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"complete-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function p4e(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,errorMessage:t.errorMessage,operation:"fail-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function m4e(t){return{activeNodeCountAfter:t.activeNodeCountAfter,activeNodeCountBefore:t.activeNodeCountBefore,affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],cachedPathEntryCountAfter:t.cachedPathEntryCountAfter,cachedPathEntryCountBefore:t.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:t.idsPreserved,loadInfoEntryCountAfter:t.loadInfoEntryCountAfter,loadInfoEntryCountBefore:t.loadInfoEntryCountBefore,mode:t.mode,operation:"cleanup",projectionChanged:t.projectionChanged,reclaimedCachedPathEntryCount:t.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:t.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:t.reclaimedNodeSlotCount,reclaimedSegmentCount:t.reclaimedSegmentCount,segmentCountAfter:t.segmentCountAfter,segmentCountBefore:t.segmentCountBefore,totalNodeSlotCountAfter:t.totalNodeSlotCountAfter,totalNodeSlotCountBefore:t.totalNodeSlotCountBefore,visibleCountDelta:null}}function hs(t,e,n){return{...n,visibleCountDelta:DG(t)-e}}function f4e(t,e){let n=DG(t),r=H3e();t.transactionStack.push(r);try{e()}catch(i){throw J3e(t,r,!1),i}J3e(t,r,!0,DG(t)-n)}function iu(t,e){let n=t.instrumentation;if(n==null){Q3e(t,e);return}xt(n,"store.events.record",()=>Q3e(t,e))}function Q3e(t,e){let n=t.transactionStack[t.transactionStack.length-1]??null;if(n==null){OG(t,e);return}n.events.push(e),zet(n,e)}function J3e(t,e,n,r=null){if(t.transactionStack.pop()!==e)throw new Error("Transaction stack underflow");if(!n)return;let i=t.transactionStack[t.transactionStack.length-1]??null;if(i!=null){let s=t.instrumentation;s==null?e4e(i,e):xt(s,"store.events.batch.merge",()=>e4e(i,e));return}let o=Fet(e,r),a=t.instrumentation;if(a==null){OG(t,o);return}xt(a,"store.events.batch.commit",()=>OG(t,o))}function Fet(t,e){return{affectedAncestorIds:[...t.affectedAncestorIds],affectedNodeIds:[...t.affectedNodeIds],canonicalChanged:t.events.some(n=>n.canonicalChanged),events:[...t.events],operation:"batch",projectionChanged:t.events.some(n=>n.projectionChanged),visibleCountDelta:e}}function Bet(t,e){for(let n of e.affectedAncestorIds)t.affectedAncestorIds.add(n);for(let n of e.affectedNodeIds)t.affectedNodeIds.add(n)}function e4e(t,e){for(let n of e.events)t.events.push(n);Bet(t,e)}function zet(t,e){for(let n of e.affectedNodeIds)t.affectedNodeIds.add(n);for(let n of e.affectedAncestorIds)t.affectedAncestorIds.add(n)}function OG(t,e){let n=t.instrumentation;if(n==null){t4e(t,e);return}xt(n,"store.events.emit",()=>t4e(t,e))}function t4e(t,e){t.listeners.get(e.operation)?.forEach(n=>n(e)),t.listeners.get("*")?.forEach(n=>n(e))}function DG(t){return t.snapshot.nodes[t.snapshot.rootId]?.visibleSubtreeCount??0}function Fm(t,e){if(t.snapshot.options.flattenEmptyDirectories!==!0)return null;let n=t.snapshot.nodes[e];if(n==null||!Et(n)||Jr(n,2))return null;let r=t.snapshot.directories.get(e);if(r==null||r.childIds.length!==1)return null;let i=r.childIds[0];if(i==null)return null;let o=t.snapshot.nodes[i];return o==null||!Et(o)?null:i}function Bm(t,e){let n=e;for(;;){let r=Fm(t,n);if(r==null)return n;n=r}}function w3(t,e){let n=[e],r=e;for(;;){let i=Fm(t,r);if(i==null)return n;n.push(i),r=i}}function dT(t,e){let n=e==null?t.snapshot.rootId:gs(t,e);return n==null?[]:Het(t,n)}function BG(t,e){let n=a5(e),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=wh(t,Qet(t,r)),{createdNodeIds:o,directoryId:a}=Get(t,r),s=new Set(o),l=a;if(n.isDirectory){let u=It(t,a);if(Jr(u,1))throw new Error(`Path already exists: "${e}"`);y3(u,1),t.pathCacheByNodeId.set(a,{path:e,version:t.pathCacheVersion}),s.add(a)}else l=Vet(t,a,n.basename),s.add(l);vh(t,a);let c=wh(t,a);return r4e({affectedAncestorIds:rc(t,l),affectedNodeIds:[...s],path:e,projectionChanged:v4e(i,c)})}function zG(t,e,n){let r=gs(t,e);if(r==null)throw new Error(`Path does not exist: "${e}"`);let i=It(t,r);if(Jr(i,2))throw new Error("The root node cannot be removed");if(Et(i)&&Pr(t,r).childIds.length>0&&n.recursive!==!0)throw new Error(`Cannot remove a non-empty directory without recursive: "${e}"`);let o=i.parentId,a=wh(t,o),s=w4e(t,r);GG(t,o,r,i.nameId),UG(t,o),vh(t,o);let l=wh(t,o);return i4e({affectedAncestorIds:rc(t,o),affectedNodeIds:s,path:e,projectionChanged:v4e(a,l),recursive:n.recursive===!0})}function qG(t,e,n,r){let i=gs(t,e);if(i==null)throw new Error(`Source path does not exist: "${e}"`);let o=It(t,i);if(Jr(o,2))throw new Error("The root node cannot be moved");let a=r.collision??"error",s=Xet(t,i,n),l=wh(t,o.parentId),c=wh(t,s.parentId),u=nc(t.snapshot.segmentTable,o.nameId),d=qu(t.snapshot.segmentTable,s.basename);if(s.parentId===o.parentId&&u===s.basename)return null;if(Et(o)&&ett(t,i,s.parentId))throw new Error("Cannot move a directory into one of its descendants");let p=bh(t.snapshot.nodes,Pr(t,s.parentId)).get(d),m=s.existingNodeId??p??null;if(m!=null&&m!==i&&Yet(t,m,a,_8(o))==="skip")return null;let f=o.parentId;GG(t,f,i,o.nameId),o.parentId=s.parentId,o.nameId=d,t.pathCacheByNodeId.delete(i),C4e(t,i),HG(t,s.parentId,i),UG(t,f),t.pathCacheVersion++,vh(t,f),s.parentId!==f&&vh(t,s.parentId);let h=wh(t,f),x=wh(t,s.parentId);return o4e({affectedAncestorIds:[...new Set([...rc(t,f),...rc(t,s.parentId)])],affectedNodeIds:[i],from:e,projectionChanged:k4e([l,c],[h,x]),to:Er(t,i)})}function qet(t,e){let n=t.pathCacheByNodeId.get(e);return n!=null&&n.version===t.pathCacheVersion?n.path:null}function h4e(t,e,n){return t.pathCacheByNodeId.set(e,{path:n,version:t.pathCacheVersion}),n}function Er(t,e){let n=It(t,e),r=qet(t,e);if(r!=null)return r;if(Jr(n,2))return h4e(t,e,"");let i=Er(t,n.parentId),o=nc(t.snapshot.segmentTable,n.nameId),a=i.length===0?o:`${i}${o}`;return h4e(t,e,Et(n)?`${a}/`:a)}function vh(t,e){let n=t.instrumentation;if(n==null){b4e(t,e);return}xt(n,"store.recomputeCountsUpwardFrom",()=>b4e(t,e))}function E8(t,e){let n=[[e,0]],{nodes:r,directories:i}=t.snapshot;for(;n.length>0;){let o=n[n.length-1],a=o[0],s=r[a];if(s==null||!Et(s)){FG(t,a,s,!0),n.pop();continue}let l=i.get(a);if(l==null||o[1]>=l.childIds.length){FG(t,a,s,!0),n.pop();continue}let c=l.childIds[o[1]++];n.push([c,0])}}function rc(t,e){let n=[],r=e;for(;r!=null;){let i=It(t,r);if(n.push(r),r===t.snapshot.rootId)break;r=i.parentId}return n}function gs(t,e){if(e.length===0)return t.snapshot.rootId;let n=sT(e);return x4e(t,n.segments,n.requiresDirectory)}function x4e(t,e,n){let r=t.snapshot.rootId;for(let o of e){let a=t.snapshot.segmentTable.idByValue.get(o);if(a===void 0)return null;let s=Pr(t,r),l=bh(t.snapshot.nodes,s).get(a);if(l===void 0)return null;r=l}let i=It(t,r);return n&&!Et(i)?null:r}function Pr(t,e){let n=t.snapshot.directories.get(e);if(n===void 0)throw new Error(`Unknown directory child index for node ${String(e)}`);return n}function It(t,e){let n=t.snapshot.nodes[e];if(n===void 0||Jr(n,4))throw new Error(`Unknown node ID: ${String(e)}`);return n}function Het(t,e){let n=t.snapshot.nodes[e];if(n===void 0||Jr(n,4))return[];if(!Et(n))return[Er(t,e)];if(Pr(t,e).childIds.length===0)return Jr(n,1)&&!Jr(n,2)?[Er(t,e)]:[];let r=[],i=[{childIndex:0,nodeId:e}];for(;i.length>0;){let o=i[i.length-1];if(o==null)break;let a=t.snapshot.nodes[o.nodeId];if(a===void 0||Jr(a,4)){i.pop();continue}if(!Et(a)){r.push(Er(t,o.nodeId)),i.pop();continue}let s=Pr(t,o.nodeId);if(s.childIds.length===0){Jr(a,1)&&!Jr(a,2)&&r.push(Er(t,o.nodeId)),i.pop();continue}let l=s.childIds[o.childIndex];if(l==null){i.pop();continue}o.childIndex++,i.push({childIndex:0,nodeId:l})}return r}function Get(t,e){let n=[],r=t.snapshot.rootId;for(let i of e){let o=qu(t.snapshot.segmentTable,i),a=Pr(t,r),s=bh(t.snapshot.nodes,a).get(o);if(s!==void 0){if(!Et(It(t,s)))throw new Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=s;continue}r=Uet(t,r,o),n.push(r)}return{createdNodeIds:n,directoryId:r}}function Uet(t,e,n){let r=It(t,e),i=t.snapshot.nodes.length;return t.snapshot.nodes.push({depthAndFlags:fs(sl(r)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),t.snapshot.directories.set(i,n5()),HG(t,e,i),t.collapseNewDirectoriesByDefault&&(t.collapsedDirectoryIds.add(i),t.hasCollapsedDirectoryOverrides=!0),t.activeNodeCount++,i}function Vet(t,e,n){let r=qu(t.snapshot.segmentTable,n),i=Pr(t,e);if(bh(t.snapshot.nodes,i).has(r))throw new Error(`Path already exists: "${ttt(t,e,n)}"`);let o=It(t,e),a=t.snapshot.nodes.length;return t.snapshot.nodes.push({depthAndFlags:fs(sl(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),HG(t,e,a),t.activeNodeCount++,a}function Zet(t,e,n){let r=0,i=e.childIds.length;for(;r<i;){let o=r+i>>>1,a=e.childIds[o];if(a==null){i=o;continue}Wet(t,n,a)<0?i=o:r=o+1}return r}function HG(t,e,n){let r=Pr(t,e),i=It(t,n);bh(t.snapshot.nodes,r).set(i.nameId,n),iT(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);let o=Zet(t,r,n);r.childIds.splice(o,0,n),IG(r,o),i5(t.snapshot.nodes,r)}function GG(t,e,n,r){let i=Pr(t,e),o=g3(i),a=o.get(n)??-1;bh(t.snapshot.nodes,i).delete(r),o.delete(n);let s=t.snapshot.nodes[n];s!=null&&iT(i,n,-s.subtreeNodeCount,-s.visibleSubtreeCount),a>=0&&(i.childIds.splice(a,1),IG(i,a),i5(t.snapshot.nodes,i))}function Wet(t,e,n){let r=t.snapshot.options.sort;return r==="default"?Ket(t,e,n):r(g4e(t,e),g4e(t,n))}function Ket(t,e,n){let r=It(t,e),i=It(t,n),o=Et(r);if(o!==Et(i))return o?-1:1;let a=L8(M8(t.snapshot.segmentTable,r.nameId),M8(t.snapshot.segmentTable,i.nameId));if(a!==0)return a;let s=nc(t.snapshot.segmentTable,r.nameId),l=nc(t.snapshot.segmentTable,i.nameId);return s!==l?s<l?-1:1:e<n?-1:1}function g4e(t,e){let n=It(t,e),r=Er(t,e),i=Et(n),o=i?r.slice(0,-1):r;return{basename:nc(t.snapshot.segmentTable,n.nameId),depth:sl(n),isDirectory:i,path:r,segments:o.length===0?[]:o.split("/")}}function Xet(t,e,n){let r=It(t,e),i=gs(t,n);if(i!=null){let c=It(t,i);if(Et(c))return{basename:nc(t.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};let u=sT(n).segments;return{basename:u[u.length-1]??"",existingNodeId:i,parentId:c.parentId}}let o=sT(n),a=o.segments[o.segments.length-1]??"",s=o.segments.slice(0,-1),l=s.length===0?t.snapshot.rootId:x4e(t,s,!0);if(l==null)throw new Error(`Destination parent does not exist: "${n}"`);return{basename:a,existingNodeId:null,parentId:l}}function Yet(t,e,n,r){if(n==="skip")return"skip";if(n==="error")throw new Error(`Destination already exists: "${Er(t,e)}"`);let i=It(t,e);if(_8(i)!==r)throw new Error("replace collision requires the same source and destination kinds");if(Et(i)&&Pr(t,e).childIds.length>0)throw new Error("replace collision does not support non-empty directories");let o=i.parentId,a=i.nameId;return w4e(t,e),GG(t,o,e,a),UG(t,o),vh(t,o),"handled"}function w4e(t,e){let n=[],r=[{nodeId:e,visitedChildren:!1}];for(;r.length>0;){let i=r.pop();if(i==null)break;let o=It(t,i.nodeId);if(i.visitedChildren||!Et(o)){Et(o)&&t.snapshot.directories.delete(i.nodeId),y3(o,4),t.pathCacheByNodeId.delete(i.nodeId),t.collapsedDirectoryIds.delete(i.nodeId)&&(t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0),t.expandedDirectoryIds.delete(i.nodeId),Y3e(t,i.nodeId),t.activeNodeCount--,n.push(i.nodeId);continue}r.push({nodeId:i.nodeId,visitedChildren:!0});let a=Pr(t,i.nodeId);for(let s=a.childIds.length-1;s>=0;s--){let l=a.childIds[s];l!=null&&r.push({nodeId:l,visitedChildren:!1})}}return n}function UG(t,e){let n=e;for(;n!=null;){let r=It(t,n);if(!Et(r)||Jr(r,2)||Pr(t,n).childIds.length>0)return;y3(r,1),n=r.parentId===n?null:r.parentId}}function Qet(t,e){let n=t.snapshot.rootId;for(let r of e){let i=t.snapshot.segmentTable.idByValue.get(r);if(i==null)break;let o=bh(t.snapshot.nodes,Pr(t,n)).get(i);if(o==null||!Et(It(t,o)))break;n=o}return n}function wh(t,e){let n=Jet(t,e);if(n==null)return null;let r=Bm(t,n),i=It(t,r),o=n===r?null:w3(t,n).map(a=>Er(t,a));return JSON.stringify({flattenedSegmentPaths:o,hasChildren:Pr(t,r).childIds.length>0,path:Er(t,r),terminalKind:_8(i)})}function v4e(t,e){return k4e([t],[e])}function k4e(t,e){for(let n=0;n<t.length;n+=1){let r=t[n],i=e[n];if(r==null||i==null||r!==i)return!0}return!1}function Jet(t,e){let n=e;for(;n!=null;){let r=It(t,n);if(!Et(r)||Jr(r,2))return null;if(!No(t,n,r))return n;n=r.parentId}return null}function C4e(t,e){let n=It(t,e);if(_3e(n,(e===t.snapshot.rootId?-1:sl(It(t,n.parentId)))+1),!Et(n))return;let r=Pr(t,e);for(let i of r.childIds)C4e(t,i)}function ett(t,e,n){let r=n;for(;r!=null;){if(r===e)return!0;let i=It(t,r);if(r===t.snapshot.rootId)return!1;r=i.parentId}return!1}function FG(t,e,n=It(t,e),r=!1){let i=t.instrumentation;if(i==null){y4e(t,e,n,r);return}xt(i,"store.recomputeNodeCounts",()=>y4e(t,e,n,r))}function b4e(t,e){let n=e;for(;n!=null;){let r=It(t,n),i=r.subtreeNodeCount,o=r.visibleSubtreeCount;if(FG(t,n,r),n===t.snapshot.rootId)return;let a=r.subtreeNodeCount-i,s=r.visibleSubtreeCount-o,l=r.parentId;(a!==0||s!==0)&&iT(Pr(t,l),n,a,s),n=l}}function y4e(t,e,n,r){if(!Et(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}let i=Pr(t,e);if(r){let s=t.instrumentation;s==null?r5(t.snapshot.nodes,i):xt(s,"store.recomputeNodeCounts.rebuildChildAggregates",()=>r5(t.snapshot.nodes,i))}let o=1+i.totalChildSubtreeNodeCount,a=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=o,Jr(n,2)){n.visibleSubtreeCount=a;return}n.visibleSubtreeCount=Fm(t,e)!=null?a:No(t,e,n)?1+a:1}function ttt(t,e,n){let r=Er(t,e);return r.length===0?n:`${r}${n}`}function k3(t){return t!=null&&!Jr(t,4)}function pT(t,e){let n=t.snapshot.nodes[e];return!k3(n)||!Et(n)||Jr(n,2)?null:n}function ntt(t){let e=0;for(let[n,r]of t.pathCacheByNodeId)r.version===t.pathCacheVersion&&k3(t.snapshot.nodes[n])&&(e+=1);return e}function rtt(t){return Math.max(0,t.valueById.length-1)}function _4e(t){return{activeNodeCount:t.activeNodeCount,cachedPathEntryCount:ntt(t),loadInfoEntryCount:t.directoryLoadInfoById.size,segmentCount:rtt(t.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,t.snapshot.nodes.length-1)}}function itt(t,e,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:e,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:t,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function S4e(t){let e=[],n=[];for(let r of t.collapsedDirectoryIds)pT(t,r)!=null&&e.push(Er(t,r));for(let r of t.expandedDirectoryIds)pT(t,r)!=null&&n.push(Er(t,r));return{collapsedPaths:e,expandedPaths:n}}function L4e(t){let e=[];for(let[n,r]of t.directoryLoadInfoById)pT(t,n)==null||xh(t,n)==="loaded"||e.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:Er(t,n)});return e}function M4e(t,e){t.collapsedDirectoryIds.clear(),t.hasCollapsedDirectoryOverrides=!1,t.expandedDirectoryIds.clear();for(let n of e.expandedPaths){let r=gs(t,n);r!=null&&yh(t,r,!0,It(t,r))}for(let n of e.collapsedPaths){let r=gs(t,n);r!=null&&yh(t,r,!1,It(t,r))}}function E4e(t,e){t.directoryLoadInfoById.clear();for(let n of e){let r=gs(t,n.path);r!=null&&pT(t,r)!=null&&t.directoryLoadInfoById.set(r,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function ott(t){t.pathCacheVersion+=1,t.pathCacheByNodeId.clear(),t.pathCacheByNodeId.set(t.snapshot.rootId,{path:"",version:t.pathCacheVersion})}function att(t){let e=t.snapshot.segmentTable,n=lT();for(let r of t.snapshot.nodes)if(k3(r)){if(Jr(r,2)){r.nameId=0;continue}r.nameId=qu(n,nc(e,r.nameId))}t.snapshot.segmentTable=n}function stt(t){for(let[e,n]of t.snapshot.directories){let r=t.snapshot.nodes[e];if(!k3(r)||!Et(r)){t.snapshot.directories.delete(e);continue}let i=n.childIds.filter(o=>{let a=t.snapshot.nodes[o];return k3(a)&&a.parentId===e});n.childIds=i,n.childIdByNameId=new Map(i.map(o=>[It(t,o).nameId,o])),n.childPositionById=new Map(i.map((o,a)=>[o,a])),r5(t.snapshot.nodes,n)}}function ltt(t){let e=t.snapshot.nodes.length-1;for(;e>t.snapshot.rootId;){let n=t.snapshot.nodes[e];if(k3(n))break;e-=1}t.snapshot.nodes.length=e+1}function ctt(t){let e=S4e(t),n=L4e(t);xt(t.instrumentation,"store.cleanup.stable.clearPathCaches",()=>ott(t)),xt(t.instrumentation,"store.cleanup.stable.rebuildSegmentTable",()=>att(t)),xt(t.instrumentation,"store.cleanup.stable.rebuildDirectoryIndexes",()=>stt(t)),xt(t.instrumentation,"store.cleanup.stable.trimTrailingRemovedNodeSlots",()=>ltt(t)),xt(t.instrumentation,"store.cleanup.stable.restoreExpansionOverrides",()=>M4e(t,e)),xt(t.instrumentation,"store.cleanup.stable.restoreDirectoryLoadInfos",()=>E4e(t,n)),xt(t.instrumentation,"store.cleanup.stable.recomputeCounts",()=>E8(t,t.snapshot.rootId))}function utt(t){let e=S4e(t),n=L4e(t),r=xt(t.instrumentation,"store.cleanup.aggressive.listPaths",()=>dT(t)),i=L3e({...t.snapshot.options},t.instrumentation),o=xt(t.instrumentation,"store.cleanup.aggressive.rebuildSnapshot",()=>{let a=new uT(i);return a.appendPaths(r),a.finish()});t.snapshot=o,t.activeNodeCount=o.nodes.length-1,t.pathCacheByNodeId=new Map([[o.rootId,{path:"",version:0}]]),t.pathCacheVersion=0,xt(t.instrumentation,"store.cleanup.aggressive.restoreExpansionOverrides",()=>M4e(t,e)),xt(t.instrumentation,"store.cleanup.aggressive.restoreDirectoryLoadInfos",()=>E4e(t,n)),xt(t.instrumentation,"store.cleanup.aggressive.recomputeCounts",()=>E8(t,t.snapshot.rootId))}function T4e(t){for(let e of t.directoryLoadInfoById.values())if(e.state==="loading"&&e.activeAttemptId!=null)return!0;return!1}function R4e(t,e){let n=_4e(t);e==="stable"?xt(t.instrumentation,"store.cleanup.stable",()=>ctt(t)):xt(t.instrumentation,"store.cleanup.aggressive",()=>utt(t));let r=_4e(t);return itt(e,e==="stable",n,r)}var dtt=64;function ptt(t,e){let n=e+2;if(n<=t.length)return t;let r=t.length;for(;r<n;)r*=2;let i=new Int32Array(r);return i.fill(-1),i.set(t),i}function Po(t){return It(t,t.snapshot.rootId).visibleSubtreeCount}function N4e(t,e,n,r){let i=It(t,e.terminalNodeId),o=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+o-1)}function mtt(t,e,n,r){return{ancestorPaths:r,index:e.index,posInSet:e.posInSet,row:T8(t,e.cursor),setSize:e.setSize,subtreeEndIndex:N4e(t,e.cursor,e.index,n)}}function P4e(t,e,n,r,i,o){let a=Pr(t,e),{childIndex:s,childVisibleIndex:l,localVisibleIndex:c}=oT(t.snapshot.nodes,a,n),u=a.childIds[s];if(u==null)throw new Error(`Visible index ${String(n)} is out of range`);return ftt(t,u,c,r+l,i+1,s,a.childIds.length,o)}function ftt(t,e,n,r,i,o,a,s){if(!Et(It(t,e))){if(n===0)return{ancestors:s,cursor:{headNodeId:e,terminalNodeId:e,visibleDepth:i},index:r,posInSet:o,setSize:a};throw new Error(`Visible index ${String(n)} is out of range for file`)}let l=H4e(t,e,i);if(n===0)return{ancestors:s,cursor:l,index:r,posInSet:o,setSize:a};let c=It(t,l.terminalNodeId);if(!Et(c)||!No(t,l.terminalNodeId,c))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return P4e(t,l.terminalNodeId,n-1,r+1,l.visibleDepth,[...s,{cursor:l,index:r,posInSet:o,setSize:a}])}function j4e(t,e){let n=Po(t);if(e<0||e>=n)return null;let r=P4e(t,t.snapshot.rootId,e,0,-1,[]),i=r.ancestors.map(a=>Er(t,a.cursor.terminalNodeId)),o=null;return{ancestorPaths:i,get ancestorRows(){if(o!=null)return o;let a=[],s=[];for(let l of r.ancestors){let c=mtt(t,l,n,[...s]);a.push(c),s.push(c.row.path)}return o=a,o},index:r.index,posInSet:r.posInSet,row:T8(t,r.cursor),setSize:r.setSize,subtreeEndIndex:N4e(t,r.cursor,r.index,n)}}function O4e(t,e,n){let r=t.instrumentation,i=Po(t);if(i<=0||n<e)return[];let o=Math.max(0,Math.min(e,i-1)),a=Math.max(o,Math.min(n,i-1));if(r==null){if(o===0)return btt(t,a+1);let d=[],p=A4e(t,o);for(let m=o;m<=a&&p!=null;m++){let f=T8(t,p);d.push(f),p=$4e(t,p)}return d}let s=[],l=0,c=0,u=xt(r,"store.getVisibleSlice.selectFirstRow",()=>A4e(t,o));for(let d=o;d<=a&&u!=null;d++){let p=xt(r,"store.getVisibleSlice.materializeRow",()=>T8(t,u));s.push(p),p.isFlattened&&(l++,c+=p.flattenedSegments?.length??0),u=xt(r,"store.getVisibleSlice.advanceCursor",()=>$4e(t,u))}return x3(r,"workload.visibleRowsRead",s.length),x3(r,"workload.flattenedRowsRead",l),x3(r,"workload.flattenedSegmentsRead",c),s}function ZG(t,e=Po(t)){let n=t.instrumentation;return n==null?I4e(t,e):xt(n,"store.getVisibleTreeProjection",()=>I4e(t,e))}function D4e(t){return gtt(ZG(t))}function F4e(t,e){let n=gs(t,e);if(n==null||n===t.snapshot.rootId||Et(It(t,n))&&Bm(t,n)!==n)return null;let r=0,i=n,{nodes:o,rootId:a}=t.snapshot;for(;i!==a;){let s=It(t,i).parentId,l=Pr(t,s),c=g3(l).get(i);if(c==null)throw new Error(`Child ${String(i)} was not found in its parent index`);if(r+=k3e(o,l,c),s!==a){let u=It(t,s),d=Fm(t,s);if(!No(t,s,u)&&d!==i)return null;Bm(t,s)===s&&(r+=1)}i=s}return r}function B4e(t,e){let n=gs(t,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);let r=It(t,n);if(!Et(r))throw new Error(`Path is not a directory: "${e}"`);return No(t,n,r)?null:(yh(t,n,!0,r),vh(t,n),a4e({affectedAncestorIds:rc(t,n),affectedNodeIds:[n],path:e,projectionChanged:!0}))}function z4e(t,e){let n=gs(t,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);let r=It(t,n);if(!Et(r))throw new Error(`Path is not a directory: "${e}"`);return No(t,n,r)?(yh(t,n,!1,r),vh(t,n),s4e({affectedAncestorIds:rc(t,n),affectedNodeIds:[n],path:e,projectionChanged:!0})):null}function A4e(t,e){return e<0||e>=Po(t)?null:q4e(t,t.snapshot.rootId,e,-1)}function q4e(t,e,n,r){let i=Pr(t,e),o=t.instrumentation,{childIndex:a,localVisibleIndex:s}=o==null?oT(t.snapshot.nodes,i,n):xt(o,"store.getVisibleSlice.selectChildIndex",()=>oT(t.snapshot.nodes,i,n)),l=i.childIds[a];if(l!=null)return VG(t,l,s,r+1);throw new Error(`Visible index ${String(n)} is out of range`)}function VG(t,e,n,r){if(!Et(It(t,e))){if(n===0)return{headNodeId:e,terminalNodeId:e,visibleDepth:r};throw new Error(`Visible index ${String(n)} is out of range for file`)}let i=H4e(t,e,r);if(n===0)return i;let o=It(t,i.terminalNodeId);if(!Et(o)||!No(t,i.terminalNodeId,o))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return q4e(t,i.terminalNodeId,n-1,i.visibleDepth)}function H4e(t,e,n){return Et(It(t,e))?t.instrumentation==null?{headNodeId:e,terminalNodeId:Bm(t,e),visibleDepth:n}:{headNodeId:e,terminalNodeId:xt(t.instrumentation,"store.getVisibleSlice.flatten.resolveTerminalDirectory",()=>Bm(t,e)),visibleDepth:n}:{headNodeId:e,terminalNodeId:e,visibleDepth:n}}function htt(t,e){let n=It(t,e);if(!Et(n))return!0;let r=n.parentId;return r===t.snapshot.rootId?!0:Fm(t,r)!==e}function $4e(t,e){let n=It(t,e.terminalNodeId);if(Et(n)){let o=Pr(t,e.terminalNodeId);if(No(t,e.terminalNodeId,n)&&o.childIds.length>0){let a=o.childIds[0];return a==null?null:VG(t,a,0,e.visibleDepth+1)}}let r=e.terminalNodeId,i=e.visibleDepth;for(;;){let o=It(t,r);if(r===t.snapshot.rootId)return null;let a=o.parentId,s=Pr(t,a),l=g3(s).get(r)??-1;if(l<0)throw new Error(`Child ${String(r)} was not found in its parent index`);let c=s.childIds[l+1]??null;if(c!=null)return VG(t,c,0,i);htt(t,r)&&i--,r=a}}function gtt(t){let e=t.paths.length,n=new Array(e);for(let r=0;r<e;r+=1){let i=t.getParentIndex(r);n[r]={index:r,parentPath:i>=0?t.paths[i]??null:null,path:t.paths[r]??"",posInSet:t.posInSetByIndex[r]??0,setSize:t.setSizeByIndex[r]??0}}return{getParentIndex:t.getParentIndex,rows:n,get visibleIndexByPath(){return t.visibleIndexByPath}}}function I4e(t,e){let n=new Array(e),r=new Int32Array(e),i=new Int32Array(e),o=new Int32Array(e),a=new Int32Array(dtt);a.fill(-1);let s=0,{nodes:l,directories:c,segmentTable:u}=t.snapshot,d=[[c.get(t.snapshot.rootId),0,-1,""]],p=t.snapshot.options.flattenEmptyDirectories,m=t.pathCacheByNodeId,f=t.pathCacheVersion,h=u.valueById;for(;d.length>0&&s<e;){let w=d[d.length-1],v=w[0];if(w[1]>=v.childIds.length){d.pop();continue}let k=w[1],_=v.childIds[w[1]++],L=l[_],S=w[2]+1,C=w[3];a=ptt(a,S);let T,M=_;if(Et(L))M=p?Bm(t,_):_,T=M===_?`${C}${h[L.nameId]}/`:Er(t,M);else{let $=m.get(_);T=$!=null&&$.version===f?$.path:`${C}${h[L.nameId]}`}r[s]=a[S],n[s]=T,i[s]=k,o[s]=v.childIds.length,a[S+1]=s,s+=1;let A=l[M];A!=null&&Et(A)&&No(t,M,A)&&d.push([c.get(M),0,S,T])}s<e&&(n.length=s);let x=r.subarray(0,s),g=i.subarray(0,s),y=o.subarray(0,s),b=null;return{getParentIndex(w){return w<0||w>=s?-1:x[w]??-1},paths:n,posInSetByIndex:g,setSizeByIndex:y,get visibleIndexByPath(){if(b==null){b=new Map;for(let w=0;w<s;w+=1)b.set(n[w]??"",w)}return b}}}function btt(t,e){let n=new Array(e),r=0,{nodes:i,directories:o,segmentTable:a}=t.snapshot,s=[[o.get(t.snapshot.rootId),0,-1]],l=a.valueById,c=t.snapshot.options.flattenEmptyDirectories,u=t.pathCacheByNodeId,d=t.pathCacheVersion;for(;s.length>0&&r<e;){let p=s[s.length-1],m=p[0];if(p[1]>=m.childIds.length){s.pop();continue}let f=m.childIds[p[1]++],h=i[f],x=p[2]+1;if(!Et(h)){let w=u.get(f);n[r++]={depth:x,flattenedSegments:void 0,hasChildren:!1,id:f,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:"file",loadState:void 0,name:l[h.nameId],path:w!=null&&w.version===d?w.path:Er(t,f)};continue}let g=c?Bm(t,f):f,y={headNodeId:f,terminalNodeId:g,visibleDepth:x};n[r++]=T8(t,y);let b=i[g];b!=null&&Et(b)&&No(t,g,b)&&s.push([o.get(g),0,x])}return r<e&&(n.length=r),n}function T8(t,e){let n=It(t,e.terminalNodeId),r=Et(n)?ytt(t,e):null,i=Er(t,e.terminalNodeId),o=nc(t.snapshot.segmentTable,n.nameId),a=Et(n)&&Pr(t,e.terminalNodeId).childIds.length>0,s=e.headNodeId!==e.terminalNodeId,l=t.instrumentation,c=s?l==null?w3(t,e.headNodeId).map(u=>{let d=It(t,u);return{isTerminal:u===e.terminalNodeId,name:nc(t.snapshot.segmentTable,d.nameId),nodeId:u,path:Er(t,u)}}):xt(l,"store.getVisibleSlice.flatten.collectSegments",()=>w3(t,e.headNodeId).map(u=>{let d=It(t,u);return{isTerminal:u===e.terminalNodeId,name:nc(t.snapshot.segmentTable,d.nameId),nodeId:u,path:Er(t,u)}})):void 0;return{depth:e.visibleDepth,flattenedSegments:c,hasChildren:a,id:e.terminalNodeId,isExpanded:Et(n)&&No(t,e.terminalNodeId,n),isFlattened:s,isLoading:r==="loading",kind:Et(n)?"directory":"file",loadState:r==null||r==="loaded"?void 0:r,name:o,path:i}}function ytt(t,e){if(e.headNodeId===e.terminalNodeId)return xh(t,e.terminalNodeId);let n=w3(t,e.headNodeId),r=!1,i=!1;for(let o of n){let a=xh(t,o);if(a==="loading")return"loading";if(a==="error"){i=!0;continue}a==="unloaded"&&(r=!0)}return i?"error":r?"unloaded":"loaded"}function wtt(t){let{directories:e,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:o}=t.snapshot,a=r.flattenEmptyDirectories===!0,s=m=>{let f=n[m];if(f==null||!Et(f))return;let h=e.get(m);if(h==null)throw new Error(`Unknown directory child index for node ${String(m)}`);let x=h.childIds,g=x.length,y=0,b=0;for(let v=0;v<g;v++){let k=x[v];if(k==null)continue;let _=n[k];y+=_.subtreeNodeCount,b+=_.visibleSubtreeCount}h.totalChildSubtreeNodeCount=y,h.totalChildVisibleSubtreeCount=b,g>=128&&i5(n,h),f.subtreeNodeCount=1+y;let w;if(a&&g===1){let v=n[x[0]];w=v!=null&&Et(v)?b:1+b}else w=1+b;f.visibleSubtreeCount=w};if(o!=null)for(let m=o.length-1;m>=0;m--)s(o[m]);else for(let m=n.length-1;m>=1;m--)s(m);let l=n[i],c=e.get(i);if(l==null||c==null)return;let u=c.childIds,d=0,p=0;for(let m=0;m<u.length;m++){let f=u[m];if(f==null)continue;let h=n[f];d+=h.subtreeNodeCount,p+=h.visibleSubtreeCount}c.totalChildSubtreeNodeCount=d,c.totalChildVisibleSubtreeCount=p,i5(n,c),l.subtreeNodeCount=1+d,l.visibleSubtreeCount=p}function vtt(t){return t.initialExpansion==="open"&&(t.initialExpandedPaths==null||t.initialExpandedPaths.length===0)}var mT=class G4e{#e;constructor(e={}){let n=S8(e),r=xt(n,"store.builder.create",()=>new uT(e));if(e.preparedInput!=null){let s=B3e(e.preparedInput);s!=null?r.appendPresortedPaths(s,z3e(e.preparedInput)):r.appendPreparedPaths(F3e(e.preparedInput),!1)}else{let s=e.paths??[];e.presorted===!0?r.appendPaths(s):r.appendPreparedPaths(xt(n,"store.preparePathEntries",()=>cT(s,e)))}let i=xt(n,"store.builder.finish",()=>r.finish({skipSubtreeCountPass:!0})),o=xt(n,"store.state.detectAllDirectoriesExpanded",()=>(e.initialExpansion??"closed")==="closed"&&r.didMatchAllInitialExpandedPaths());this.#e=xt(n,"store.state.create",()=>q3e(i,o?"open":e.initialExpansion??"closed",n)),o&&(this.#e.collapseNewDirectoriesByDefault=!0);let a=o?this.#e.snapshot.directories.size-1:xt(n,"store.state.initializeExpandedPaths",()=>this.initializeExpandedPaths(e.initialExpandedPaths));o||vtt(e)||(e.initialExpansion??"closed")==="closed"&&a===this.#e.snapshot.directories.size-1||(e.initialExpandedPaths?.length??0)>0&&xt(n,"store.state.checkAllDirectoriesExpanded",()=>this.hasAllDirectoriesExpanded())?xt(n,"store.state.initializeOpenVisibleCounts",()=>wtt(this.#e)):xt(n,"store.state.recomputeCounts",()=>E8(this.#e,this.#e.snapshot.rootId))}static preparePaths(e,n={}){return j3e(e,n)}static prepareInput(e,n={}){return O3e(e,n)}static preparePresortedInput(e){return D3e(e)}list(e){return xt(this.#e.instrumentation,"store.list",()=>dT(this.#e,e))}add(e){xt(this.#e.instrumentation,"store.add",()=>{let n=Po(this.#e);iu(this.#e,hs(this.#e,n,BG(this.#e,e)))})}remove(e,n={}){xt(this.#e.instrumentation,"store.remove",()=>{let r=Po(this.#e);iu(this.#e,hs(this.#e,r,zG(this.#e,e,n)))})}move(e,n,r={}){xt(this.#e.instrumentation,"store.move",()=>{let i=Po(this.#e),o=qG(this.#e,e,n,r);o!=null&&iu(this.#e,hs(this.#e,i,o))})}batch(e){f4e(this.#e,()=>{if(typeof e=="function"){e(this);return}for(let n of e)switch(n.type){case"add":this.add(n.path);break;case"remove":this.remove(n.path,{recursive:n.recursive});break;case"move":this.move(n.from,n.to,{collision:n.collision});break}})}getVisibleCount(){return xt(this.#e.instrumentation,"store.getVisibleCount",()=>Po(this.#e))}getVisibleSlice(e,n){return xt(this.#e.instrumentation,"store.getVisibleSlice",()=>O4e(this.#e,e,n))}getVisibleRowContext(e){return xt(this.#e.instrumentation,"store.getVisibleRowContext",()=>j4e(this.#e,e))}getVisibleTreeProjection(){return D4e(this.#e)}getVisibleTreeProjectionData(e){return ZG(this.#e,e)}getVisibleIndex(e){return xt(this.#e.instrumentation,"store.getVisibleIndex",()=>F4e(this.#e,e))}getPathInfo(e){return xt(this.#e.instrumentation,"store.getPathInfo",()=>{let n=gs(this.#e,e);if(n==null)return null;let r=It(this.#e,n);return{depth:sl(r),kind:Et(r)?"directory":"file",path:Er(this.#e,n)}})}isExpanded(e){return xt(this.#e.instrumentation,"store.isExpanded",()=>{let n=this.requireDirectoryNodeId(e),r=It(this.#e,n);return No(this.#e,n,r)})}expand(e){xt(this.#e.instrumentation,"store.expand",()=>{let n=Po(this.#e),r=B4e(this.#e,e);r!=null&&iu(this.#e,hs(this.#e,n,r))})}collapse(e){xt(this.#e.instrumentation,"store.collapse",()=>{let n=Po(this.#e),r=z4e(this.#e,e);r!=null&&iu(this.#e,hs(this.#e,n,r))})}on(e,n){return n4e(this.#e,e,n)}getDirectoryLoadState(e){let n=this.requireDirectoryNodeId(e);return xh(this.#e,n)}markDirectoryUnloaded(e){xt(this.#e.instrumentation,"store.markDirectoryUnloaded",()=>{let n=this.requireDirectoryNodeId(e);if(Pr(this.#e,n).childIds.length>0)throw new Error(`Cannot mark a directory with known children as unloaded: "${e}"`);let r=Po(this.#e);Z3e(this.#e,n),iu(this.#e,hs(this.#e,r,l4e({affectedAncestorIds:rc(this.#e,n),affectedNodeIds:[n],path:e,projectionChanged:this.isDirectoryProjectionVisible(n)})))})}beginChildLoad(e){return xt(this.#e.instrumentation,"store.beginChildLoad",()=>{let n=this.requireDirectoryNodeId(e),r=Po(this.#e),i=V3e(this.#e,n);return iu(this.#e,hs(this.#e,r,c4e({affectedAncestorIds:rc(this.#e,n),affectedNodeIds:[n],attemptId:i.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(n),reused:i.reused}))),i})}applyChildPatch(e,n){return xt(this.#e.instrumentation,"store.applyChildPatch",()=>{let r=this.resolveActiveDirectoryNodeId(e.nodeId);if(r==null||xh(this.#e,r)!=="loading"||!K3e(this.#e,r,e.attemptId))return!1;let i=Er(this.#e,r);this.validateChildPatch(i,n);let o=Po(this.#e),a=[];for(let l of n.operations){ktt(i,l);let c=Po(this.#e);switch(l.type){case"add":a.push(hs(this.#e,c,BG(this.#e,l.path)));break;case"remove":a.push(hs(this.#e,c,zG(this.#e,l.path,{recursive:l.recursive})));break;case"move":{let u=qG(this.#e,l.from,l.to,{collision:l.collision});u!=null&&a.push(hs(this.#e,c,u));break}}}let s=a.some(l=>l.projectionChanged)||this.isDirectoryProjectionVisible(r);return iu(this.#e,hs(this.#e,o,u4e({affectedAncestorIds:rc(this.#e,r),affectedNodeIds:[r],attemptId:e.attemptId,childEvents:a,path:Er(this.#e,r),projectionChanged:s}))),!0})}completeChildLoad(e){return xt(this.#e.instrumentation,"store.completeChildLoad",()=>{let n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;let r=Po(this.#e),i=W3e(this.#e,n,e.attemptId);return iu(this.#e,hs(this.#e,r,d4e({affectedAncestorIds:rc(this.#e,n),affectedNodeIds:[n],attemptId:e.attemptId,path:Er(this.#e,n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}failChildLoad(e,n){return xt(this.#e.instrumentation,"store.failChildLoad",()=>{let r=this.resolveActiveDirectoryNodeId(e.nodeId);if(r==null)return!1;let i=Po(this.#e),o=X3e(this.#e,r,e.attemptId,n);return iu(this.#e,hs(this.#e,i,p4e({affectedAncestorIds:rc(this.#e,r),affectedNodeIds:[r],attemptId:e.attemptId,errorMessage:n,path:Er(this.#e,r),projectionChanged:this.isDirectoryProjectionVisible(r),stale:!o}))),o})}cleanup(e={}){return xt(this.#e.instrumentation,"store.cleanup",()=>{if(this.#e.transactionStack.length>0)throw new Error("Cleanup cannot run during an open batch or transaction.");if(T4e(this.#e))throw new Error("Cleanup cannot run while directory loads are active.");let n=Po(this.#e),r=R4e(this.#e,e.mode??"stable");return iu(this.#e,hs(this.#e,n,m4e({...r,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:r.idsPreserved===!1}))),r})}getNodeCount(){return this.#e.activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let n=0,r=[],i=[],o=0,a=null,s=this.#e.snapshot.segmentTable,l=s.valueById,c=this.#e.snapshot.nodes,u=new Map;for(let d of e){a!=null&&d<a&&(a=null,o=0,r.length=0,i.length=0);let p=d.length>0&&d.charCodeAt(d.length-1)===47?d.length-1:d.length;if(p===0){a=d,o=p,r.length=0,i.length=0;continue}let m=0,f=0;if(a!=null){let b=Math.min(p,o),w=!0;for(let v=0;v<b;v+=1){let k=d.charCodeAt(v);if(k!==a.charCodeAt(v)){w=!1;break}k===47&&(m+=1,f=v+1)}w&&(b===o&&p>b&&d.charCodeAt(b)===47?(m+=1,f=b+1):b===p&&o>b&&a.charCodeAt(b)===47&&(m+=1,f=p+1)),m=Math.min(m,i.length)}let h=m===0?this.#e.snapshot.rootId:i[m-1]??this.#e.snapshot.rootId,x=m,g=!0,y=f;for(;y<=p;){let b=d.indexOf("/",y),w=b===-1||b>p?p:b,v=d.slice(y,w),k=Pr(this.#e,h).childIds,_=x===m?r[x]??0:0,L=_,S,C=u.get(v)??o5(v);u.set(v,C);let T=(M,A)=>{for(L=M;L<A;L+=1){let $=k[L],N=c[$],F=l[N.nameId];if(F===v)return S=$,!0;let D=L8(M8(s,N.nameId),C);if(D>0||D===0&&F>v)return!1}return!1};if(!T(_,k.length)&&_>0&&T(0,_),S===void 0){g=!1;break}if(!Et(It(this.#e,S))){g=!1;break}if(r[x]=L,i[x]=S,h=S,x+=1,w===p)break;y=w+1}if(a=d,o=p,r.length=x,i.length=x,!g){a=null,o=0,r.length=0,i.length=0;continue}for(let b=m;b<x;b+=1){let w=i[b];if(w==null)continue;let v=It(this.#e,w);No(this.#e,w,v)||(yh(this.#e,w,!0,v),n+=1)}}return n}hasAllDirectoriesExpanded(){for(let e of this.#e.snapshot.directories.keys()){if(e===this.#e.snapshot.rootId)continue;let n=It(this.#e,e);if(!No(this.#e,e,n))return!1}return!0}requireDirectoryNodeId(e){let n=gs(this.#e,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);if(!Et(It(this.#e,n)))throw new Error(`Path is not a directory: "${e}"`);return n}resolveActiveDirectoryNodeId(e){try{if(!Et(It(this.#e,e)))throw new Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let n=e;for(;n!==this.#e.snapshot.rootId;){let r=It(this.#e,n).parentId;if(r!==this.#e.snapshot.rootId){let i=It(this.#e,r),o=Fm(this.#e,r);if(!No(this.#e,r,i)&&o!==n)return!1}n=r}return!0}validateChildPatch(e,n){new G4e({paths:this.list(e),presorted:!0,sort:this.#e.snapshot.options.sort}).batch(n.operations)}};function ktt(t,e){switch(e.type){case"add":case"remove":if(!e.path.startsWith(t)||e.path===t)throw new Error(`Child patch operation must stay within ${t}: "${e.path}"`);break;case"move":if(!e.from.startsWith(t)||!e.to.startsWith(t)||e.from===t||e.to===t)throw new Error(`Child patch move must stay within ${t}: "${e.from}" -> "${e.to}"`);break}}var fT={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function U4e(t,e){if(typeof t=="number")return{itemHeight:e??fT.default.itemHeight,factor:t};let n=fT[t??"default"];return{itemHeight:e??n.itemHeight,factor:n.factor}}var hT=fT.default.itemHeight,V4e=10,gT=420;var WG=`@layer base, theme, unsafe; @layer base { :host { @@ -2875,27 +2875,27 @@ ${Lt}`:ae;Z.current?Z.current.type(Ye):(T(Ye),B(Ye.length)),st.length&&H(wt=>[.. } } } -`;var Z4e="@layer base, unsafe;";function fT(t){return`${Z4e} +`;var Z4e="@layer base, unsafe;";function bT(t){return`${Z4e} @layer base { ${t} }`}function W4e(t){return`${Z4e} @layer unsafe { ${t} -}`}var K4e=new WeakMap;function wtt(t){let e=K4e.get(t);if(e!=null)return e;let n=document.createElement("div");n.setAttribute(w3e,"true");let r=document.createElement("div");r.style.position="relative",r.style.height="200%",n.appendChild(r),t.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),K4e.set(t,i),i}function X4e(t,e){if(!t.isConnected)return;let n=wtt(e);if(n==null)return;let r=e.querySelector(`style[${AG}]`),i=r instanceof HTMLStyleElement?r:document.createElement("style");r instanceof HTMLStyleElement||(i.setAttribute(AG,""),e.appendChild(i)),i.textContent=`:host { ${v3e}: ${n}px; }`}var hT;function vtt(t){if(typeof CSSStyleSheet<"u"&&typeof CSSStyleSheet.prototype.replaceSync=="function"&&"adoptedStyleSheets"in t){hT==null&&(hT=new CSSStyleSheet,hT.replaceSync(fT(WG)));let e=!1;try{t.adoptedStyleSheets=[hT],e=!0}catch{}if(e){t.querySelector(`style[${k8}]`)?.remove();return}}if(t.querySelector(`style[${k8}]`)==null){let e=document.createElement("style");e.setAttribute(k8,""),e.textContent=fT(WG),t.prepend(e)}}function gT(t,e){ktt(t,e),vtt(e),X4e(t,e)}function ktt(t,e){let n=t.querySelector('template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]');n instanceof HTMLTemplateElement&&(e.childNodes.length>0||(e.appendChild(n.content.cloneNode(!0)),n.hasAttribute("shadowrootmode")&&n.remove()))}if(typeof HTMLElement<"u"&&customElements.get(mh)==null){class t extends HTMLElement{constructor(){super()}connectedCallback(){let n=this.shadowRoot??this.attachShadow({mode:"open"});gT(this,n)}}if(customElements.define(mh,t),typeof document<"u")for(let e of Array.from(document.querySelectorAll(mh)))e instanceof HTMLElement&&gT(e,e.shadowRoot??e.attachShadow({mode:"open"}))}var Y4e=!0;var Q4e=t=>t.startsWith("f::")?t.slice("f::".length):t;function _tt(t){let e=t.lastIndexOf("/");return e<0?{parentPath:"",baseName:t}:{parentPath:t.slice(0,e),baseName:t.slice(e+1)}}function Stt(t,e){return t===""?e:`${t}/${e}`}function J4e({files:t,path:e,isFolder:n,nextBasename:r}){let i=Q4e(e),o=r.trim();if(o.length===0)return{error:"Name cannot be empty."};if(o.includes("/"))return{error:'Name cannot include "/".'};let{parentPath:a,baseName:s}=_tt(i);if(o===s)return{nextFiles:t,sourcePath:i,destinationPath:i,isFolder:n};let l=Stt(a,o),c=new Array(t.length),u=new Set;if(!n){let f=`${l}/`,h=!1;for(let x=0;x<t.length;x++){let g=t[x];if(g!==i&&g.startsWith(f))return{error:`"${l}" already exists.`};let y=g===i?l:g;if(u.has(y))return{error:`"${l}" already exists.`};u.add(y),c[x]=y,g===i&&(h=!0)}return h?{nextFiles:c,sourcePath:i,destinationPath:l,isFolder:n}:{error:"Could not find the selected file to rename."}}let d=`${i}/`,p=`${l}/`,m=0;for(let f=0;f<t.length;f++){let h=t[f],x=h===i||h.startsWith(d);if(!x&&(h===l||h.startsWith(p)))return{error:`"${l}" already exists.`};let g=x?`${l}${h.slice(i.length)}`:h;if(u.has(g))return{error:`"${l}" already exists.`};u.add(g),c[f]=g,x&&m++}return m===0?{error:"Could not find the selected folder to rename."}:{nextFiles:c,sourcePath:i,destinationPath:l,isFolder:n}}function Ltt(t){return t.endsWith("/")}function Mtt(t){let e=t.endsWith("/")?t.slice(0,-1):t,n=e.lastIndexOf("/"),r=n<0?e:e.slice(n+1);return t.endsWith("/")?`${r}/`:r}function Ett(t){let e=[],n=new Set;for(let i of t)n.has(i)||(n.add(i),e.push(i));let r=new Set;for(let i of e.toSorted((o,a)=>o.length!==a.length?o.length-a.length:o.localeCompare(a))){let o=(i.endsWith("/")?i.slice(0,-1):i).split("/"),a=!1;for(let s=0;s<o.length-1;s+=1){let l=`${o.slice(0,s+1).join("/")}/`;if(r.has(l)){a=!0;break}}a||r.add(i)}return e.filter(i=>r.has(i))}function e7e(t,e){return e.includes(t)?Ett(e):[t]}function t7e(t,e){return t===e?!0:t==null||e==null?!1:t.kind===e.kind&&t.directoryPath===e.directoryPath&&t.flattenedSegmentPath===e.flattenedSegmentPath&&t.hoveredPath===e.hoveredPath}function KG(t,e){return{draggedPaths:t,target:e}}function XG(t,e){if(e.kind!=="directory"||e.directoryPath==null)return!1;for(let n of t)if(Ltt(n)&&(e.directoryPath===n||e.directoryPath.startsWith(n)))return!0;return!1}function Ttt(t,e){return e.kind==="root"||e.directoryPath==null?Mtt(t):e.directoryPath}function n7e(t,e){let n=t.map(r=>{let i=Ttt(r,e);return i===r?null:{from:r,to:i,type:"move"}}).filter(r=>r!=null);return n.length===0?null:{operations:n,result:{draggedPaths:t,operation:n.length===1?"move":"batch",target:e}}}function Rtt(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1)if(t[n]!==e[n])return!1;return!0}function YG(t,e,n){let{paths:r,preparedInput:i}=t;if(i==null){if(r==null)throw new Error("FileTree requires paths or preparedInput");return{paths:r,preparedInput:void 0}}let o=i.paths;if(r==null)return{paths:o,preparedInput:i};if(!Rtt(uT.preparePaths(r,n==null?{}:{sort:n}),o))throw new Error(`FileTree ${e} received paths and preparedInput for different path lists`);return{paths:o,preparedInput:i}}function QG(t){return t.operation==="add"||t.operation==="remove"||t.operation==="move"||t.operation==="batch"}function Att(t,e,n){if(t===e)return n;let r=e.endsWith("/")?e:`${e}/`;return t.startsWith(r)?`${n.endsWith("/")?n:`${n}/`}${t.slice(r.length)}`:t}function $tt(t,e){if(t===e)return!0;let n=e.endsWith("/")?e:`${e}/`;return t.startsWith(n)}function k3(t,e,n=!1){if(t==null)return null;switch(e.operation){case"add":case"expand":case"collapse":case"mark-directory-unloaded":case"begin-child-load":case"apply-child-patch":case"complete-child-load":case"fail-child-load":case"cleanup":return t;case"remove":return $tt(t,e.path)?n?t:null:t;case"move":return Att(t,e.from,e.to);case"batch":{let r=t;for(let i of e.events)if(r=k3(r,i,n),r==null)return null;return r}}}function bT(t){return{canonicalChanged:t.canonicalChanged,projectionChanged:t.projectionChanged,visibleCountDelta:t.visibleCountDelta}}function r7e(t){switch(t.operation){case"add":return{...bT(t),operation:"add",path:t.path};case"remove":return{...bT(t),operation:"remove",path:t.path,recursive:t.recursive};case"move":return{...bT(t),from:t.from,operation:"move",to:t.to}}}function Itt(t){return{...bT(t),events:t.events.filter(e=>e.operation==="add"||e.operation==="remove"||e.operation==="move").map(e=>r7e(e)),operation:"batch"}}function i7e(t){switch(t.operation){case"add":case"remove":case"move":return r7e(t);case"batch":return Itt(t);default:return null}}function yT(t,e){if(t.size!==e.length)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Bm(t){let e=t.endsWith("/")?t.slice(0,-1):t;if(e.length===0)return[];let n=e.split("/");return n.slice(0,-1).map((r,i)=>`${n.slice(0,i+1).join("/")}/`)}function xT(t){return Bm(t).at(-1)??null}function JG(t,e){return e==null?t:t.startsWith(e)?t.slice(e.length):t}function R8(t){return t.endsWith("/")}var eU=t=>t.toLowerCase();function o7e(t){let e=t.endsWith("/")?t.slice(0,-1):t,n=e.lastIndexOf("/");return n<0?e:e.slice(n+1)}function tU(t){return t.endsWith("/")?t.slice(0,-1):t}function nU(t,e){return e&&!t.endsWith("/")?`${t}/`:t}var a7e=t=>{let e=t.trim();return e.length===0?"":(e.includes("\\")?e.replaceAll("\\","/"):e).toLowerCase()};var rU=Symbol("FILE_TREE_RENAME_VIEW"),Ntt=512,Ptt=512;function jtt(t){return t==="top"||t==="center"?t:"nearest"}function Ott(t,e,n){if(t===0)return-1;if(n!=null){let r=e(n);if(r!=null)return r;let i=Bm(n);for(let o=i.length-1;o>=0;o-=1){let a=i[o];if(a==null)continue;let s=e(a);if(s!=null)return s}}return 0}function Dtt(t,e,n){if(t.paths.length===0)return{focusedIndex:-1,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};if(e==null)return{focusedIndex:0,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};let r=n??(i=>t.visibleIndexByPath.get(i)??null);return{focusedIndex:Ott(t.paths.length,r,e),getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex}}var s7e=class{#e;#t=new Set;#n=new Map;#r=null;#i=null;#o=new Map;#s=new Map;#c=-1;#a=null;#g=!1;#f=t=>-1;#d=new Map;#p=null;#m=null;#b=null;#C=null;#w=null;#$;#I;#E;#u=[];#N=new Int32Array(0);#P=new Int32Array(0);#Q=void 0;#D=!1;#y=null;#_="";#j=!1;#T=new Set;#U=[];#V;#Z=null;#x=null;#z=null;#F=null;#M=null;#q=null;#J=null;#Se=0;#S=null;#h=new Set;#W=0;#l;#ne=0;#re=!1;#k=0;#K;constructor(t){let{dragAndDrop:e,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:o,onSearchChange:a,paths:s,preparedInput:l,...c}=t,u=YG({paths:s,preparedInput:l},"constructor",c.sort);this.#e=c,e!=null&&e!==!1&&(this.#r=e===!0?{}:e),this.#D=o!=null&&o!==!1,o!=null&&o!==!1&&o!==!0&&(this.#Q=o.canRename,this.#I=o.onError,this.#$=o.onRename),this.#E=a,this.#V=n??"hide-non-matches",this.#l=this.#oe(u.paths,u.preparedInput);let d=i?.map(m=>this.#B(m)).filter(m=>m!=null)??[],p=d.at(-1)??null;d.length>0&&(this.#h=new Set(d),this.#S=p,this.#W=1),this.#G(p,!1),r!=null&&this.#X(r,!1),this.#K=this.#Ce()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#se()}focusFirstItem(){this.#R().length>0&&this.#A(0)}focusLastItem(){this.#k<=0||(this.#O(),this.#A(this.#k-1))}focusNextItem(){this.#ke(1)}focusParentItem(){if(this.#a==null)return;let t=xT(this.#a);if(t==null)return;let e=this.#H(t);e>=0&&this.#A(e)}focusPath(t){let e=this.#l.getPathInfo(t)?.path??null;if(e==null)return;this.#O();let n=this.#H(e);n>=0&&this.#A(n)}scrollToPath(t,e){let n=this.#l.getPathInfo(t)?.path??null;if(n==null)return;this.#O();let r=this.#De(n);r<0||this.#le(r)!=null&&(e?.focus!==!1&&this.#A(r,!1),this.#J={id:this.#Se+=1,offset:jtt(e?.offset),visibleIndex:r},this.#v())}focusMountedPathFromInput(t){let e=this.#l.getPathInfo(t)?.path??null;if(e==null)return;let n=this.#H(e);n>=0&&this.#A(n)}focusNearestPath(t){let e=this.resolveNearestVisiblePath(t);if(e==null)return null;let n=this.#H(e);return n>=0?(this.#A(n),this.#R()[n]??e):null}focusPreviousItem(){this.#ke(-1)}getFocusedIndex(){return this.#c}getFocusedItem(){return this.#a==null?null:this.#ce(this.#a)}getFocusedPath(){return this.#a}getScrollRequest(){return this.#J}clearScrollRequest(t){this.#J?.id===t&&(this.#J=null)}resolveNearestVisiblePath(t){let e=this.#R();if(this.#k===0)return null;if(t==null)return this.#a??e[0]??null;let n=this.#l.getPathInfo(t)?.path??t,r=this.#H(n);if(r>=0)return e[r]??n;let i=this.#Te(n);return i??this.#a??e[0]??null}getSelectedPaths(){return[...this.#h]}getSelectionVersion(){return this.#W}getVisibleCount(){return this.#k}getVisibleRows(t,e){if(e<t||this.#k===0)return[];let n=Math.max(0,t),r=Math.min(this.#k-1,e);if(r<n)return[];let i=r-n+1;if(this.#M==null&&!this.#g&&r>=this.#u.length&&i<=Ptt){let o=[];for(let a=n;a<=r;a+=1){let s=this.#l.getVisibleRowContext(a);if(s==null)break;o.push(this.#ue(s))}return o}if(!this.#g&&r>=this.#u.length&&this.#O(),this.#M!=null){let o=Array.from({length:r-n+1},(c,u)=>this.#be(n+u)),a=new Map,s=o[0]??-1,l=s;for(let c=1;c<=o.length;c+=1){let u=o[c];if(u!=null&&u===l+1){l=u;continue}if(s>=0&&this.#l.getVisibleSlice(s,l).forEach((d,p)=>{a.set(s+p,d)}),u==null){s=-1,l=-1;continue}s=u,l=u}return Array.from({length:r-n+1},(c,u)=>{let d=n+u,p=this.#be(d),m=a.get(p),f=this.#u[p];if(m==null||f==null)throw new Error(`Missing projection row for filtered visible index ${String(d)}`);return this.#ie(m,d,p,{ancestorPaths:this.#me(p),path:f})})}return this.#l.getVisibleSlice(n,r).map((o,a)=>{let s=n+a,l=this.#u[s];if(l==null)throw new Error(`Missing projection path for visible index ${String(s)}`);return this.#ie(o,s,s,{ancestorPaths:this.#me(s),path:l})})}getStickyRowCandidates(t,e){if(this.#M!=null)return null;if(this.#k===0||t<=0||e<=0)return[];let n=[];for(let r=0;r<this.#k;r+=1){let i=t+r*e,o=Math.min(this.#k-1,Math.floor(i/e)),a=this.#de(o,r)??(o>0?this.#de(o-1,r):void 0);if(a==null)break;n.push({row:this.#ue(a),subtreeEndIndex:a.subtreeEndIndex})}return n}getItem(t){let e=this.#l.getPathInfo(t);return e==null?null:this.#ce(e.path,e)}resolveMountedDirectoryPathFromInput(t){let e=this.#l.getPathInfo(t);return e?.kind==="directory"?e.path:null}toggleMountedDirectoryFromInput(t){let e=this.resolveMountedDirectoryPathFromInput(t);e!=null&&this.#_e(e)}selectAllVisiblePaths(){this.#O();let t=[...this.#R()];this.#L(t,this.#a??this.#S)}selectOnlyPath(t){let e=this.#B(t);e!=null&&this.#L([e],e)}selectOnlyMountedPathFromInput(t){this.#L([t],t)}selectPath(t){let e=this.#B(t);e==null||this.#h.has(e)||this.#L([...this.#h,e])}deselectPath(t){let e=this.#B(t);e==null||!this.#h.has(e)||this.#L([...this.#h].filter(n=>n!==e))}toggleFocusedSelection(){this.#a!=null&&this.togglePathSelectionFromInput(this.#a)}togglePathSelection(t){let e=this.#B(t);if(e!=null){if(this.#h.has(e)){this.deselectPath(e);return}this.selectPath(e)}}togglePathSelectionFromInput(t){let e=this.#B(t);if(e!=null){if(this.#h.has(e)){this.#L([...this.#h].filter(n=>n!==e),e);return}this.#L([...this.#h,e],e)}}selectPathRange(t,e){let n=this.#B(t);if(n==null)return;this.#O();let r=this.#S,i=r==null?-1:this.#te(r),o=this.#te(n);if(i===-1||o===-1){let u=e?[...this.#h,n]:[n];this.#L(u,n);return}let[a,s]=i<=o?[i,o]:[o,i],l=this.#R().slice(a,s+1),c=e?[...this.#h,...l]:l;this.#L(c,r)}extendSelectionFromFocused(t){if(this.#a==null)return;let e=this.#c;if(e===-1)return;let n=Math.min(this.#k-1,Math.max(0,e+t));if(n===e)return;!this.#g&&n>=this.#u.length&&this.#O();let r=this.#R(),i=r[e]??null,o=r[n]??null;if(i==null||o==null)return;let a=new Set(this.#h);a.has(i)&&a.has(o)?a.delete(i):a.add(o),this.#L([...a],this.#S??i,!1),this.#A(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(t){if(this.#r==null)return!1;let e=this.#B(t);if(e==null||this.#x!=null&&this.#x.length>0)return!1;let n=this.getSelectedPaths(),r=e7e(e,n);return this.#r.canDrag?.(r)===!1?!1:(n.includes(e)||this.#L([e],e,!1),this.#Y(e),this.#i={draggedPaths:r,primaryPath:e,target:null},this.#v(),!0)}setDragTarget(t){let e=this.#i;if(e==null)return;let n=t;if(n!=null){let r=KG(e.draggedPaths,n);(XG(e.draggedPaths,n)||this.#r?.canDrop?.(r)===!1)&&(n=null)}t7e(e.target,n)||(this.#i={...e,target:n},this.#v())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#v())}completeDrag(){let t=this.#i;if(t==null)return!1;this.#i=null;let e=t.target==null?null:{...t.target};if(e==null)return this.#v(),!1;let n=KG(t.draggedPaths,e);if(XG(t.draggedPaths,e)||this.#r?.canDrop?.(n)===!1)return this.#v(),!1;let r=n7e(t.draggedPaths,e);if(r==null)return this.#v(),!1;try{if(r.operations.length===1){let i=r.operations[0];if(i==null||i.type!=="move")throw new Error("Expected a single move operation for one-item drops");this.#l.move(i.from,i.to,{collision:i.collision})}else this.#$e(r.operations),this.#l.batch(r.operations)}catch(i){return this.#v(),this.#r?.onDropError?.(i instanceof Error?i.message:String(i),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(t){return this.#t.add(t),t(),()=>{this.#t.delete(t)}}add(t){this.#l.add(t)}remove(t,e={}){this.#l.remove(t,e)}move(t,e,n={}){this.#l.move(t,e,n)}batch(t){this.#l.batch(t)}onMutation(t,e){let n=t,r=e,i=this.#n.get(n);return i==null&&(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let o=this.#n.get(n);o?.delete(r),o?.size===0&&this.#n.delete(n)}}setSearch(t){this.#X(t,!0)}openSearch(t=""){this.#X(t,!0)}closeSearch(){this.#X(null,!0)}isSearchOpen(){return this.#x!==null}getSearchValue(){return this.#x??""}getSearchMatchingPaths(){return this.#U}focusNextSearchMatch(){this.#ye(1)}focusPreviousSearchMatch(){this.#ye(-1)}startRenaming(t=this.#a??"",e={}){if(!this.#D)return!1;let n=this.#l.getPathInfo(t);if(n==null)return!1;let r=n.path,i=R8(r),o=tU(r);if(this.#Q?.({isFolder:i,path:o})===!1)return!1;for(let a of Bm(r))this.#l.isExpanded(a)||this.#l.expand(a);return this.#L([r],r,!1),this.#x!=null&&(this.#X(null,!1),this.#E?.(this.#x)),this.#Y(r),this.#y=r,this.#_=o7e(r),this.#j=e.removeIfCanceled??!1,this.#v(),!0}[rU](){return{cancel:()=>{this.#Le()},commit:()=>{this.#Me()},getPath:()=>this.#y,getValue:()=>this.#_,isActive:()=>this.#y!=null,setValue:t=>{this.#Ee(t)}}}#Le(){if(this.#y==null)return;let t=this.#y,e=this.#j;if(this.#y=null,this.#_="",this.#j=!1,e){this.remove(t,R8(t)?{recursive:!0}:void 0);return}this.#Y(t),this.#v()}#Me(){let t=this.#y;if(t==null)return;if(this.#j&&this.#_.trim().length===0){this.#y=null,this.#_="",this.#j=!1,this.remove(t,R8(t)?{recursive:!0}:void 0);return}let e=R8(t),n=J4e({files:this.#l.list(),isFolder:e,nextBasename:this.#_,path:tU(t)});if(this.#y=null,this.#_="",this.#j=!1,"error"in n){this.#Y(t),this.#I?.(n.error),this.#v();return}if(n.sourcePath===n.destinationPath){this.#Y(t),this.#v();return}this.#$?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(nU(n.sourcePath,e),nU(n.destinationPath,e))}#Ee(t){this.#y==null||this.#_===t||(this.#_=t,this.#v())}resetPaths(t,e={}){let n=this.#l.list().length,r=this.#k,i=YG({paths:t,preparedInput:e.preparedInput},"resetPaths",this.#e.sort),o=this.#oe(i.paths,i.preparedInput,e.initialExpandedPaths),a=this.#a,s=this.#y,l=this.getSelectedPaths(),c=this.#S;this.#K?.(),this.#l=o,this.#d.clear(),this.#se();let u=l.map(p=>o.getPathInfo(p)?.path??null).filter(p=>p!=null),d=!yT(this.#h,u);this.#h=new Set(u),d&&(this.#W+=1),this.#S=c==null?null:o.getPathInfo(c)?.path??null,this.#y=s==null?null:o.getPathInfo(s)?.path??null,this.#y==null&&(this.#_="",this.#j=!1),this.#G(a,a!=null||u.length>0||this.#S!=null),this.#K=this.#Ce(),this.#v(),this.#we({canonicalChanged:!0,operation:"reset",pathCountAfter:i.paths.length,pathCountBefore:n,projectionChanged:!0,usedPreparedInput:e.preparedInput!=null,visibleCountDelta:this.#k-r})}#Te(t){this.#O();let e=xT(t),n=JG(t,e),r=null,i=null;for(let o of this.#R()){if(xT(o)!==e)continue;let a=JG(o,e);if(a<n){r=o;continue}if(a>n){i=o;break}}return r??i}#H(t){let e=this.#te(t);if(e!==-1)return e;let n=Bm(t);for(let r=n.length-1;r>=0;r-=1){let i=n[r];if(i==null)continue;let o=this.#te(i);if(o!==-1)return o}return this.#R().length>0?0:-1}#ce(t,e){let n=this.#d.get(t);if(n!=null)return n;let r=e??this.#l.getPathInfo(t);if(r==null)return null;let i=r.kind==="directory"?this.#Re(r.path):this.#Ae(r.path);return this.#d.set(r.path,i),i}#ie(t,e,n,r){return{ancestorPaths:r.ancestorPaths,depth:t.depth,flattenedSegments:t.flattenedSegments?.map(i=>({isTerminal:i.isTerminal,name:i.name,path:i.path})),hasChildren:t.hasChildren,index:e,isExpanded:t.isExpanded,isFlattened:t.isFlattened,isFocused:r.path===this.#a,isSelected:this.#h.has(r.path),kind:t.kind,level:t.depth,name:t.name,path:r.path,posInSet:r.posInSet??this.#N[n]??0,setSize:r.setSize??this.#P[n]??0}}#ue(t){return this.#ie(t.row,t.index,t.index,{ancestorPaths:t.ancestorPaths,path:t.row.path,posInSet:t.posInSet,setSize:t.setSize})}#de(t,e){let n=this.#l.getVisibleRowContext(t);if(n==null)return;let r=n.ancestorRows[e];return r??(e===n.ancestorRows.length&&n.row.kind==="directory"&&n.row.isExpanded?n:void 0)}#pe(t){let e=this.#o.get(t);if(e!=null)return e;let n=this.#f(t),r=n<0?[]:[...this.#pe(n),n];return this.#o.set(t,r),r}#me(t){let e=this.#s.get(t);if(e!=null)return e;let n=this.#pe(t).map(r=>this.#u[r]??"").filter(r=>r!=="");return this.#s.set(t,n),n}#fe(t){this.#l.collapse(t)}#L(t,e=this.#S,n=!0){let r=[...new Set(t)],i=!yT(this.#h,r),o=this.#S!==e;!i&&!o||(this.#h=new Set(r),this.#S=e,i&&(this.#W+=1),n&&this.#v())}#Re(t){return{collapse:()=>{this.#fe(t)},deselect:()=>{this.deselectPath(t)},expand:()=>{this.#ve(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!0,isExpanded:()=>this.#l.isExpanded(t),isFocused:()=>this.#a===t,isSelected:()=>this.#h.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)},toggle:()=>{this.#_e(t)}}}#Ae(t){return{deselect:()=>{this.deselectPath(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!1,isFocused:()=>this.#a===t,isSelected:()=>this.#h.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)}}}#$e(t){let e=this.#l.list();this.#oe(e).batch(t)}#oe(t,e,n){return new uT({...this.#e,paths:t,preparedInput:e??void 0,...n!==void 0?{initialExpandedPaths:n}:{}})}#ae(){return this.#C!=null?this.#C:(this.#C=this.#l.list(),this.#C)}#Ie(){if(this.#b!=null)return this.#b;let t=new Set;for(let e of this.#ae()){t.add(e);for(let n of Bm(e))t.add(n)}return this.#b=[...t].sort(),this.#b}#Ne(){return this.#w!=null?this.#w:(this.#w=this.#ae().map(eU),this.#w)}#ee(){return this.#p!=null?this.#p:(this.#p=this.#Ie().filter(t=>t.endsWith("/")),this.#p)}#Pe(){return this.#m!=null?this.#m:(this.#m=this.#ee().map(eU),this.#m)}#se(){this.#p=null,this.#m=null,this.#b=null,this.#C=null,this.#w=null}#je(){return this.#ee().filter(t=>this.#l.isExpanded(t))}#he(t){let e=new Set(this.#Z??[]);if(t)for(let n of this.#h)for(let r of Bm(n))e.add(r);this.#ge(e)}#ge(t){this.#re=!0;try{for(let e of this.#ee()){let n=t.has(e),r=this.#l.isExpanded(e);n&&!r?this.#l.expand(e):!n&&r&&this.#l.collapse(e)}}finally{this.#re=!1}}#Oe(){if(this.#x==null||this.#x.length===0){this.#U=[],this.#M=null,this.#q=null,this.#F=null,this.#k=this.#ne;return}let t=this.#u;if(this.#U=t.filter(i=>this.#T.has(i)),this.#V!=="hide-non-matches"||this.#T.size===0){this.#M=null,this.#q=null,this.#F=null,this.#k=this.#ne;return}let e=[],n=[],r=new Map;for(let[i,o]of t.entries())this.#z?.has(o)===!0&&(r.set(o,n.length),e.push(i),n.push(o));this.#M=e,this.#q=n,this.#F=r,this.#k=n.length}#R(){return this.#q??this.#u}#De(t){return this.#q!=null?this.#F?.get(t)??-1:this.#l.getVisibleIndex(t)??-1}#be(t){return this.#M?.[t]??t}#te(t){let e=this.#F?.get(t);return e??this.#l.getVisibleIndex(t)??-1}#ye(t){let e=this.#U;if(e.length===0)return;let n=this.#a,r=n==null?-1:e.indexOf(n),i=e[r<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,r+t))];i!=null&&this.focusPath(i)}#X(t,e){let n=t==null?null:a7e(t),r=this.#x;if(r!==n){if(r==null&&n!=null&&(this.#Z=this.#je()),this.#x=n,n==null)this.#he(!0),this.#Z=null,this.#T.clear(),this.#z=null,this.#G(this.#a,!0);else if(n.length===0)this.#he(!1),this.#T.clear(),this.#z=null,this.#G(this.#a,!0);else{let i=this.#xe();this.#G(i,!0)}e&&(this.#E?.(this.#x),this.#v())}}#xe(){if(this.#x==null||this.#x.length===0)return this.#T.clear(),this.#a;let t=this.#x,e=this.#ae(),n=this.#Ne(),r=[],i=new Set,o=null;for(let u=0;u<e.length;u+=1){if(!n[u].includes(t))continue;let d=e[u];r.push(d),i.add(d),o??=d}let a=this.#ee(),s=this.#Pe();for(let u=0;u<a.length;u+=1){if(!s[u].includes(t))continue;let d=a[u];i.has(d)||(r.push(d),i.add(d),o??=d)}this.#T=i;let l=this.#V==="hide-non-matches"&&r.length>0?new Set:null;this.#z=l;let c=this.#V==="expand-matches"?new Set(this.#Z??[]):new Set;for(let u of r){l?.add(u),u.endsWith("/")&&c.add(u);for(let d of Bm(u))c.add(d),l?.add(d)}return this.#ge(c),o??this.#a}#v(){for(let t of this.#t)t()}#we(t){this.#n.get(t.operation)?.forEach(e=>{e(t)}),this.#n.get("*")?.forEach(e=>{e(t)})}#ve(t){for(let e of Bm(t))this.#l.isExpanded(e)||this.#l.expand(e);this.#l.isExpanded(t)||this.#l.expand(t)}#ke(t){let e=this.#k;if(e===0)return;let n=this.#c===-1?0:this.#c,r=Math.min(e-1,Math.max(0,n+t));(r!==n||this.#c===-1)&&(!this.#g&&this.#M==null&&r>=this.#u.length&&this.#O(),this.#A(r))}#G(t,e=!0){let n=this.#l.getVisibleCount();this.#ne=n;let r=Dtt(this.#l.getVisibleTreeProjectionData(e?void 0:Math.min(n,Ntt)),t,e?i=>this.#l.getVisibleIndex(i):void 0);this.#o.clear(),this.#s.clear(),this.#g=r.paths.length>=n,this.#f=r.getParentIndex,this.#u=r.paths,this.#N=r.posInSetByIndex,this.#P=r.setSizeByIndex,this.#Oe(),this.#c=t==null?this.#R().length>0?0:-1:this.#H(t),this.#a=this.#c<0?null:this.#le(this.#c)}#le(t){let e=this.#R()[t];return e??(this.#M!=null?null:this.#l.getVisibleRowContext(t)?.row.path??null)}#B(t){return this.#l.getPathInfo(t)?.path??null}#Y(t){if(t==null)return;let e=this.#H(t);e>=0&&this.#A(e,!1)}#A(t,e=!0){let n=this.#le(t);n!=null&&(this.#c===t&&this.#a===n||(this.#c=t,this.#a=n,e&&this.#v()))}#O(){this.#g||this.#G(this.#a,!0)}#Fe(t){let e=k3(this.#y,t);e==null&&this.#y!=null&&(this.#_=""),this.#y=e;let n=k3(this.#a,t,!0),r=[...this.#h].map(s=>k3(s,t)).filter(s=>s!=null).map(s=>this.#l.getPathInfo(s)?.path??null).filter(s=>s!=null),i=k3(this.#S,t),o=i==null?null:this.#l.getPathInfo(i)?.path??null,a=[...new Set(r)];return yT(this.#h,a)||(this.#h=new Set(a),this.#W+=1),this.#S=o,n}#Ce(){return this.#l.on("*",t=>{if(this.#re)return;t.canonicalChanged&&(this.#d.clear(),this.#se()),this.#i!=null&&QG(t)&&(this.#i=null);let e=QG(t)?this.#Fe(t):this.#a,n=this.#x!=null&&this.#x.length>0?this.#xe():this.#x===""?this.#a:e,r=this.#x!=null||t.operation!=="expand"&&t.operation!=="collapse";this.#G(n,r),this.#v();let i=i7e(t);i!=null&&this.#we(i)})}#_e(t){if(this.#l.isExpanded(t)){this.#fe(t);return}this.#ve(t)}};var l7e=t=>{if(t==null||t.length===0)return"0";let e=`${t.length}`;for(let n of t)e+=`\0${n.path}\0${n.status}`;return e};function c7e(t){let e=t.endsWith("/"),n="",r=-1;for(let i=0;i<=t.length;i+=1){if(!(t[i]==="/"||i===t.length)){r===-1&&(r=i);continue}r!==-1&&(n!==""&&(n+="/"),n+=t.slice(r,i),r=-1)}return n===""?null:{isDirectory:e,path:n}}function Ftt(t){let e=t.endsWith("/")?t.slice(0,-1):t;if(e.length===0)return[];let n=e.split("/");return n.slice(0,-1).map((r,i)=>`${n.slice(0,i+1).join("/")}/`)}function Btt(t,e){return e?`${t}/`:t}function iU(t,e=null){let n=l7e(t==null?void 0:[...t]);if(n==="0")return null;if(e?.signature===n)return e;let r=new Map,i=new Set,o=new Set;for(let a of t??[]){let s=c7e(a.path);if(s==null)continue;let l=Btt(s.path,s.isDirectory);r.set(l,a.status),a.status==="ignored"&&s.isDirectory?o.add(l):s.isDirectory&&o.delete(l);for(let c of Ftt(s.path))i.add(c)}return{directoriesWithChanges:i,ignoredDirectoryPaths:o,signature:n,statusByPath:r}}var mr,f7e,ztt,a5,u7e,CT,h7e,g7e,lU,oU,aU,qtt,A8={},b7e=[],_T=Array.isArray,cU=b7e.slice,wh=Object.assign;function uU(t){t&&t.parentNode&&t.remove()}function _3(t,e,n){var r,i,o,a={};for(o in e)o=="key"?r=e[o]:o=="ref"&&typeof t!="function"?i=e[o]:a[o]=e[o];return arguments.length>2&&(a.children=arguments.length>3?cU.call(arguments,2):n),vT(t,a,r,i,null)}function vT(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++f7e,__i:-1,__u:0};return i==null&&mr.vnode!=null&&mr.vnode(o),o}function Wd(t){return t.children}function kT(t,e){this.props=t,this.context=e,this.__g=0}function C3(t,e){if(e==null)return t.__?C3(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?C3(t):null}function y7e(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=n.__e;break}return y7e(t)}}function d7e(t){(8&t.__g||!(t.__g|=8)||!a5.push(t)||CT++)&&u7e==mr.debounceRendering||((u7e=mr.debounceRendering)||queueMicrotask)(Htt)}function Htt(){for(var t,e,n,r,i,o,a,s,l=1;a5.length;)a5.length>l&&a5.sort(h7e),t=a5.shift(),l=a5.length,8&t.__g&&(n=void 0,i=(r=(e=t).__v).__e,o=[],a=[],(s=e.__P)&&((n=wh({},r)).__v=r.__v+1,mr.vnode&&mr.vnode(n),dU(s,n,r,e.__n,s.namespaceURI,32&r.__u?[i]:null,o,i??C3(r),!!(32&r.__u),a,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,v7e(o,n,a),n.__e!=i&&y7e(n)));CT=0}function x7e(t,e,n,r,i,o,a,s,l,c,u,d){var p,m,f,h,x,g,y,b=r&&r.__k||b7e,w=e.length;for(l=Gtt(n,e,b,l,w),p=0;p<w;p++)(f=n.__k[p])!=null&&(m=f.__i==-1?A8:b[f.__i]||A8,f.__i=p,g=dU(t,f,m,i,o,a,s,l,c,u,d),h=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&pU(m.ref,null,f),u.push(f.ref,f.__c||h,f)),x==null&&h!=null&&(x=h),(y=!!(4&f.__u))||m.__k===f.__k?l=w7e(f,l,t,y):typeof f.type=="function"&&g!==void 0?l=g:h&&(l=h.nextSibling),f.__u&=-7);return n.__e=x,l}function Gtt(t,e,n,r,i){var o,a,s,l,c,u=n.length,d=u,p=0;for(t.__k=new Array(i),o=0;o<i;o++)(a=e[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=t.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?vT(null,a,null,null,null):_T(a)?vT(Wd,{children:a},null,null,null):a.constructor==null&&a.__b>0?vT(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,s=null,(c=a.__i=Utt(a,n,l,d))!=-1&&(d--,(s=n[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(i>u?p--:i<u&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):t.__k[o]=null;if(d)for(o=0;o<u;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=C3(s)),C7e(s,s));return r}function w7e(t,e,n,r){var i,o;if(typeof t.type=="function"){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,e=w7e(i[o],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=C3(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Utt(t,e,n,r){var i,o,a,s=t.key,l=t.type,c=e[n],u=c!=null&&(2&c.__u)==0;if(c===null&&t.key==null||u&&s==c.key&&l==c.type)return n;if(r>(u?1:0)){for(i=n-1,o=n+1;i>=0||o<e.length;)if((c=e[a=i>=0?i--:o++])!=null&&(2&c.__u)==0&&s==c.key&&l==c.type)return a}return-1}function p7e(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n??""}function wT(t,e,n,r,i){var o;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||p7e(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||p7e(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(g7e,"$1")),(e=e.slice(2))[0].toLowerCase()!=e[0]&&(e=e.toLowerCase()),t.__l||(t.__l={}),t.__l[e+o]=n,n?r?n.l=r.l:(n.l=lU,t.addEventListener(e,o?aU:oU,o)):t.removeEventListener(e,o?aU:oU,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function m7e(t){return function(e){if(this.__l){var n=this.__l[e.type+t];if(e.u==null)e.u=lU++;else if(e.u<n.l)return;return n(mr.event?mr.event(e):e)}}}function dU(t,e,n,r,i,o,a,s,l,c,u){var d,p,m,f,h,x,g,y,b,w,v,k,_,L,S,C,T,M,A,$,N,F=e.type;if(e.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),n.__c.__z&&(s=e.__e=n.__e=(o=n.__c.__z)[0],n.__c.__z=null)),(d=mr.__b)&&d(e);e:if(typeof F=="function")try{if(y=e.props,b="prototype"in F&&F.prototype.render,w=(d=F.contextType)&&r[d.__c],v=d?w?w.props.value:d.__:r,n.__c?2&(p=e.__c=n.__c).__g&&(p.__g|=1,g=!0):(b?e.__c=p=new F(y,v):(e.__c=p=new kT(y,v),p.constructor=F,p.render=Ztt),w&&w.sub(p),p.props=y,p.state||(p.state={}),p.context=v,p.__n=r,m=!0,p.__g|=8,p.__h=[],p._sb=[]),b&&p.__s==null&&(p.__s=p.state),b&&F.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=wh({},p.__s)),wh(p.__s,F.getDerivedStateFromProps(y,p.__s))),f=p.props,h=p.state,p.__v=e,m)b&&F.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),b&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(b&&F.getDerivedStateFromProps==null&&y!==f&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(y,v),!(4&p.__g)&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(y,p.__s,v)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(p.props=y,p.state=p.__s,p.__g&=-9),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(D){D&&(D.__=e)}),k=0;k<p._sb.length;k++)p.__h.push(p._sb[k]);p._sb=[],p.__h.length&&a.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(y,p.__s,v),b&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(f,h,x)})}if(p.context=v,p.props=y,p.__P=t,p.__g&=-5,_=mr.__r,L=0,b){for(p.state=p.__s,p.__g&=-9,_&&_(e),d=p.render(p.props,p.state,p.context),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[]}else do p.__g&=-9,_&&_(e),d=p.render(p.props,p.state,p.context),p.state=p.__s;while(8&p.__g&&++L<25);p.state=p.__s,p.getChildContext!=null&&(r=wh({},r,p.getChildContext())),b&&!m&&p.getSnapshotBeforeUpdate!=null&&(x=p.getSnapshotBeforeUpdate(f,h)),C=d,d!=null&&d.type===Wd&&d.key==null&&(C=k7e(d.props.children)),s=x7e(t,_T(C)?C:[C],e,n,r,i,o,a,s,l,c,u),e.__u&=-161,p.__h.length&&a.push(p),g&&(p.__g&=-4)}catch(D){if(e.__v=null,l||o!=null)if(D.then){for(T=0,M=!1,e.__u|=l?160:128,e.__c.__z=[],A=0;A<o.length;A++)($=o[A])==null||M||($.nodeType==8&&$.data=="$s"?(T>0&&e.__c.__z.push($),T++,o[A]=null):$.nodeType==8&&$.data=="/$s"?(--T>0&&e.__c.__z.push($),M=T===0,s=o[A],o[A]=null):T>0&&(e.__c.__z.push($),o[A]=null));if(!M){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,e.__c.__z=[s]}e.__e=s}else{for(N=o.length;N--;)uU(o[N]);sU(e)}else e.__e=n.__e,e.__k=n.__k,D.then||sU(e);mr.__e(D,e,n)}else s=e.__e=Vtt(n.__e,e,n,r,i,o,a,l,c,u);return(d=mr.diffed)&&d(e),128&e.__u?void 0:s}function sU(t){t&&t.__c&&(t.__c.__g|=4),t&&t.__k&&t.__k.forEach(sU)}function v7e(t,e,n){for(var r=0;r<n.length;r++)pU(n[r],n[++r],n[++r]);mr.__c&&mr.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){mr.__e(o,i.__v)}})}function k7e(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:_T(t)?t.map(k7e):wh({},t)}function Vtt(t,e,n,r,i,o,a,s,l,c){var u,d,p,m,f,h,x,g,y=n.props,b=e.props,w=e.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){t=f,o[u]=null;break}}if(t==null){if(w==null)return c.createTextNode(b);t=c.createElementNS(i,w,b.is&&b),s&&(mr.__m&&mr.__m(e,o),s=!1),o=null}if(w==null)y===b||s&&t.data==b||(t.data=b);else{if(o=o&&cU.call(t.childNodes),y=n.props||A8,!s&&o!=null)for(y={},u=0;u<t.attributes.length;u++)y[(f=t.attributes[u]).name]=f.value;for(u in y)if(f=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")p=f;else if(!(u in b)){if(u=="value"&&"defaultValue"in b||u=="checked"&&"defaultChecked"in b)continue;wT(t,u,null,f,i)}}for(u in g=1&n.__u,b)f=b[u],u=="children"?m=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?h=f:u=="checked"?x=f:s&&typeof f!="function"||y[u]===f&&!g||wT(t,u,f,y[u],i);if(d)s||p&&(d.__html==p.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(p&&(t.innerHTML=""),x7e(w=="template"?t.content:t,_T(m)?m:[m],e,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&C3(n,0),s,l,c),o!=null)for(u=o.length;u--;)uU(o[u]);s||(u="value",w=="progress"&&h==null?t.removeAttribute("value"):h==null||h===t[u]&&(w!=="progress"||h)||wT(t,u,h,y[u],i),u="checked",x!=null&&x!=t[u]&&wT(t,u,x,y[u],i))}return t}function pU(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){mr.__e(i,n)}}function C7e(t,e,n){var r,i;if(mr.unmount&&mr.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||pU(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){mr.__e(o,e)}r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&C7e(r[i],e,n||typeof t.type!="function");n||uU(t.__e),t.__e&&t.__e.__l&&(t.__e.__l=null),t.__e=t.__c=t.__=null}function Ztt(t,e,n){return this.constructor(t,n)}function ST(t,e){var n,r,i,o;e==document&&(e=document.documentElement),mr.__&&mr.__(t,e),r=(n=!!(t&&32&t.__u))?null:e.__k,t=e.__k=_3(Wd,null,[t]),i=[],o=[],dU(e,t,r||A8,A8,e.namespaceURI,r?null:e.firstChild?cU.call(e.childNodes):null,i,r?r.__e:e.firstChild,n,o,e.ownerDocument),v7e(i,t,o)}function _7e(t,e){t.__u|=32,ST(t,e)}mr={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!(1&i.__g)){i.__g|=4;try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),a=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),a=8&i.__g),a)return void(i.__g|=2)}catch(s){t=s}}throw CT=0,t}},f7e=0,ztt=function(t){return t!=null&&t.constructor==null},kT.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=wh({},this.state),typeof t=="function"&&(t=t(wh({},n),this.props)),t&&wh(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),d7e(this))},kT.prototype.forceUpdate=function(t){this.__v&&(this.__g|=4,t&&this.__h.push(t),d7e(this))},kT.prototype.render=Wd,a5=[],CT=0,h7e=function(t,e){return t.__v.__b-e.__v.__b},g7e=/(PointerCapture)$|Capture$/i,lU=0,oU=m7e(!1),aU=m7e(!0),qtt=0;var Wtt=0;function ut(t,e,n,r,i,o){e||(e={});var a,s,l=e;if("ref"in l&&typeof t!="function")for(s in l={},e)s=="ref"?a=e[s]:l[s]=e[s];var c={type:t,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wtt,__i:-1,__u:0,__source:i,__self:o};return mr.vnode&&mr.vnode(c),c}var Ktt=16,Xtt=16,Ytt={};function S3({name:t,remappedFrom:e,token:n,width:r,height:i,viewBox:o,label:a,alignCapitals:s=!1}){"use no memo";let l=`#${t.replace(/^#/,"")}`,{width:c,height:u,viewBox:d}=Ytt[t]??{width:Ktt,height:Xtt},p=r??c,m=i??u,f=o??d??`0 0 ${c} ${u}`,h=a!=null?{"aria-label":a,role:"img"}:{"aria-hidden":!0};return ut("svg",{"data-icon-name":e??t,"data-icon-token":n,"data-align-capitals":s,...h,viewBox:f,width:p,height:m,children:ut("use",{href:l})})}var S7e=t=>{if(t.length<2)return[t,""];let e=Math.ceil(t.length/2);return[t.slice(0,e),t.slice(e)]},Qtt=t=>{if(t.length<4)return[t,""];let e=t.lastIndexOf(".")+1,n=t.length-e>10,r=e>=1&&!n?e:Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]},Jtt=t=>{if(t.length<4)return[t,""];let e=t.lastIndexOf("/")+1,n=t.length-e>25,r=e>=1&&!n?e:Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]},ent=(t,{splitIndex:e}={})=>{if(typeof e!="number"){let n=Math.ceil(t.length/2);return[t.slice(0,n),t.slice(n)]}return[t.slice(0,e),t.slice(e)]},tnt=(t,{splitOffset:e}={})=>{if(typeof e!="number"||e<=0||e>=t.length){let r=Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]}let n=t.length-e;return[t.slice(0,n),t.slice(n)]},nnt=(t,{splitOffset:e}={})=>{if(typeof e!="number"||e<=0||e>=t.length){let r=Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]}let n=e;return[t.slice(0,n),t.slice(n)]};function rnt({children:t,marker:e,variant:n="default"}){"use no memo";return ut("div",{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:ut("div",{"data-truncate-marker":!0,children:typeof e=="function"?e({children:t}):n==="fade"?ut("span",{"data-truncate-fade":!0}):e})})}function int(t){"use no memo";let{mode:e,children:n}=t;return ut("div",{children:[ut("div",{"data-truncate-content":"visible",children:e==="fruncate"?ut("span",{children:n}):n}),ut("div",{"data-truncate-content":"overflow","aria-hidden":!0,children:e==="fruncate"?ut("span",{children:n}):n})]})}function L7e({children:t,mode:e="truncate",marker:n="\u2026",variant:r="default",...i}){"use no memo";let o=ut(int,{mode:e,children:t},"content"),a=ut(rnt,{marker:n,mode:e,variant:r},"marker");return ut("div",{"data-truncate-container":e,"data-truncate-variant":r,...i,children:ut("div",{"data-truncate-grid":!0,children:e==="truncate"?[o,a]:[a,o,ut("div",{"data-truncate-fill":!0},"fill")]})})}function $8({children:t,...e}){"use no memo";return ut(L7e,{mode:"truncate",...e,children:t})}function mU({children:t,...e}){"use no memo";return ut(L7e,{mode:"fruncate",...e,children:t})}function M7e({children:t,contents:e,priority:n="end",split:r="center",minimumLength:i=12,className:o,style:a,...s}){"use no memo";let l=null,c=null;if(Array.isArray(e)){if(e.length!==2)return console.error("MiddleTruncate: contents must be an array of two items"),null;l=ut($8,{...s,children:e[0]}),c=ut(mU,{...s,children:e[1]})}else{if(typeof t!="string")return console.error("MiddleTruncate: children must be a string"),null;if(t.length===0)return ut("div",{className:o,style:a});if(t.length<i)return n==="end"?ut(mU,{...s,className:o,style:a,children:t}):ut($8,{...s,className:o,style:a,children:t});let u=null,d=null,p=null;if(typeof r=="string")r==="center"?u=S7e:r==="extension"?u=Qtt:r==="leaf-path"&&(u=Jtt);else if(typeof r=="number")u=ent,d=r;else if(Array.isArray(r)){let[w,v]=r;p=v,w==="last"?u=tnt:w==="first"&&(u=nnt)}else typeof r=="function"&&(u=r);u??=S7e;let[m,f]=u(t,{priority:n,variant:s.variant,splitIndex:typeof d=="number"?d:void 0,splitOffset:typeof p=="number"?p:void 0}),h=m.length>=f.length,x=n==="equal"&&!h,g=n==="equal"&&h,y={},b={};x&&(y.marker=""),g&&(b.marker=""),l=ut($8,{...s,...y,children:m}),c=ut(mU,{...s,...b,children:f})}return ut("div",{"data-truncate-group-container":"middle",className:o,style:a,children:[ut("div",{"data-truncate-segment-priority":n==="start"||n==="equal"?"1":"2",children:l}),ut("div",{"data-truncate-segment-priority":n==="end"||n==="equal"?"1":"2",children:c})]})}var fU={endIndex:-1,startIndex:-1};function ont(t,e,n){return Math.min(Math.max(t,e),n)}function E7e(t,e){return t<0||e<t?fU:{endIndex:e,startIndex:t}}function hU(t){return t.startIndex<0||t.endIndex<t.startIndex}function ant(t,e){return hU(t)?0:(t.endIndex-t.startIndex+1)*e}function T7e(t,e,n){if(e<=0)return-1;let r=e*n;return t<=0?0:t>=r?e:Math.floor(t/n)}function snt(t,e,n){return e<=0||t<=0?-1:t>=e*n?e-1:Math.ceil(t/n)-1}function lnt(t){let e=new Map;return t.forEach((n,r)=>{if(n.kind!=="directory"||!n.isExpanded)return;let i=n.ancestorPaths.length,o=e.get(i);if(o==null){e.set(i,[r]);return}o.push(r)}),e}function cnt(t,e){let n=0,r=t.length-1,i=-1;for(;n<=r;){let o=Math.floor((n+r)/2),a=t[o];if(a==null)break;if(a<=e){i=o,n=o+1;continue}r=o-1}return i}function unt(t){let e=new Map,n=[];for(let i=0;i<t.length;i+=1){let o=t[i];if(o==null)continue;let a=o.kind==="directory"&&o.isExpanded?[...o.ancestorPaths,o.path]:o.ancestorPaths,s=0;for(;s<n.length&&s<a.length&&n[s]===a[s];)s+=1;for(let l=n.length-1;l>=s;l-=1){let c=n[l];c!=null&&e.set(c,i-1)}n.length=s;for(let l=s;l<a.length;l+=1){let c=a[l];c!=null&&n.push(c)}}let r=t.length-1;for(let i of n)e.set(i,r);return e}function gU(t,e,n){if(t.length===0||e<=0)return[];let r=unt(t),i=lnt(t),o=[];for(let a=0;a<t.length;a+=1){let s=i.get(a);if(s==null||s.length===0)break;let l=e+a*n,c=cnt(s,Math.min(t.length-1,Math.floor(l/n))),u=null;for(;c>=0;){let d=s[c],p=d==null?null:t[d]??null;if(p!=null&&(a===0||p.ancestorPaths[a-1]===o[a-1]?.path)){u=p;break}c-=1}if(u==null)break;o.push(u)}return o.map((a,s)=>{let l=s*n,c=(r.get(a.path)??t.length-1)+1;if(c>=t.length)return{row:a,top:l};let u=c*n-e;return{row:a,top:Math.min(l,u-n)}}).filter(a=>a.top+n>0)}function R7e(t,e){let n=e.totalRowCount??t.length,r=n*e.itemHeight,i=Math.max(0,e.viewportHeight),o=Math.max(0,Math.floor(e.overscan)),a=Math.max(0,r-i),s=ont(e.scrollTop,0,a),l=e.stickyRows??gU(t,s,e.itemHeight),c=l.reduce((k,_)=>Math.max(k,_.top+e.itemHeight),0),u=Math.min(r,s+c),d=Math.max(0,i-c),p=Math.max(0,r-u),m=T7e(s,n,e.itemHeight),f=T7e(u,n,e.itemHeight),h=c<=0||m<0||m>=n?-1:m,x=h===-1?-1:Math.min(n-1,f-1),g=h===-1||x<h?0:x-h+1,y=d<=0||f>=n?fU:E7e(f,snt(u+d,n,e.itemHeight)),b=x+1,w=hU(y)?fU:E7e(Math.max(b,y.startIndex-o),Math.min(n-1,y.endIndex+o)),v=ant(w,e.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:x,occludedCount:g},physical:{itemHeight:e.itemHeight,maxScrollTop:a,overscan:o,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:p,paneHeight:d,paneTop:u},sticky:{height:c,rows:l},visible:y,window:{endIndex:w.endIndex,height:v,offsetTop:hU(w)?0:w.startIndex*e.itemHeight,startIndex:w.startIndex}}}var A7e={added:"A",deleted:"D",ignored:null,modified:"M",renamed:"R",untracked:"U"},$7e={added:"Git status: added",deleted:"Git status: deleted",ignored:"Git status: ignored",modified:"Git status: modified",renamed:"Git status: renamed",untracked:"Git status: untracked"},I7e="Contains git status items";function bU(t){let{currentScrollTop:e,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:o}=t;if(n<0)return null;let a=Math.max(0,i),s=n*r,l=s+r;if(s<e+a){let c=Math.max(0,s-a);return c===e?null:c}if(l>e+o){let c=l-o;return c===e?null:c}return null}function N7e(t){let{currentScrollTop:e,focusedIndex:n,itemHeight:r,offset:i,topInset:o=0,totalHeight:a,viewportHeight:s}=t;if(i==="nearest")return bU({currentScrollTop:e,focusedIndex:n,itemHeight:r,topInset:o,viewportHeight:s});if(n<0)return null;let l=Math.max(0,o),c=n*r,u=Math.max(0,s-l),d=i==="center"?l+Math.max(0,(u-r)/2):l,p=Math.max(0,a-s),m=Math.max(0,Math.min(c-d,p));return m===e?null:m}function P7e(t){let{currentScrollTop:e,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:o,viewportHeight:a}=t;if(n<0)return null;let s=Math.max(0,i),l=n*r,c=l+r,u=e+s,d=e+a;if(l>=u&&c<=d)return null;let p=Math.max(0,o-a),m=Math.max(0,Math.min(l-s,p));return m===e?null:m}function s5(t){if(t==null||!t.isConnected||t===document.body||t===document.documentElement)return!1;t.focus({preventScroll:!0});let e=t.getRootNode();return e instanceof ShadowRoot?e.activeElement===t:document.activeElement===t}function I8(t){let e=t.getRootNode();if(e instanceof ShadowRoot){let r=e.activeElement;return r instanceof HTMLElement?r:null}let n=document.activeElement;return n instanceof HTMLElement&&t.contains(n)?n:null}function L3(t,e){if(t==null)return e;let n=t.getBoundingClientRect().height;return n>0?n:t.clientHeight>0?t.clientHeight:e}function yU(t,e){return t!=null&&t>0?t:e}function j7e(t){let e=t.borderBoxSize,n=Array.isArray(e)?e[0]:e;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:t.contentRect.height>0?t.contentRect.height:null}function xU(t,e,n,r,i=0){let o=bU({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,topInset:i,viewportHeight:r});return o==null?!1:(t.scrollTop=o,!0)}function O7e(t,e,n,r,i,o,a=0){let s=N7e({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,offset:o,topInset:a,totalHeight:i,viewportHeight:r});return s==null?!1:(t.scrollTop=s,!0)}function M3(t,e,n,r,i,o){let a=P7e({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,targetViewportOffset:o,totalHeight:i,viewportHeight:r});return a==null?!1:(t.scrollTop=a,!0)}function wU(t,e,n,r){return n.end<n.start?null:t<n.start?-e:t>n.end?r:null}function D7e(t){let{renamingPath:e,previousRenamingPath:n,hasRenderedInput:r}=t;return e==null?"reset":r?n===e?"ignore":"focus-input":"reveal-canonical"}function F7e({ariaLabel:t,isFlattened:e=!1,ref:n,value:r,onBlur:i,onInput:o}){return ut("input",{ref:n,"data-item-rename-input":!0,...e?{"data-item-flattened-rename-input":!0}:{},"aria-label":t,value:r,onBlur:i,onInput:o,onClick:a=>a.stopPropagation(),onMouseDown:a=>a.stopPropagation(),onPointerDown:a=>a.stopPropagation()})}function B7e(t){let{row:e,mode:n,targetPath:r,ariaLabel:i,domId:o,isParked:a,itemHeight:s,features:l,state:c,extraStyle:u}=t,d=n==="sticky",p=e.ancestorPaths.at(-1)??"",m={};return c.isFocusRinged&&(m["data-item-focused"]=!0),e.isSelected&&(m["data-item-selected"]=!0),c.isContextHovered&&(m["data-item-context-hover"]="true"),c.isDragTarget&&(m["data-item-drag-target"]=!0),c.isDragging&&(m["data-item-dragging"]=!0),c.effectiveGitStatus!=null&&(m["data-item-git-status"]=c.effectiveGitStatus),c.containsGitChange&&(m["data-item-contains-git-change"]="true"),{"aria-expanded":!d&&e.kind==="directory"?e.isExpanded:void 0,"aria-haspopup":l.contextMenuEnabled?"menu":void 0,"aria-label":i,"aria-level":d?void 0:e.level+1,"aria-posinset":d?void 0:e.posInSet+1,"aria-selected":d?void 0:e.isSelected?"true":"false","aria-setsize":d?void 0:e.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?"true":void 0,"data-item-context-menu-button-visibility":l.actionLaneEnabled?l.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":l.contextMenuEnabled?l.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":l.actionLaneEnabled?"true":void 0,"data-item-has-git-lane":l.gitLaneActive?"true":void 0,"data-item-parent-path":p.length>0?p:void 0,"data-item-parked":a?"true":void 0,"data-item-path":r,"data-item-type":e.kind==="directory"?"folder":"file","data-type":"item",id:d?void 0:o,role:d?void 0:"treeitem",style:{minHeight:`${s}px`,...u},tabIndex:!d&&e.isFocused?0:-1,...m}}function z7e(t){let{event:e,mode:n,isSearchOpen:r,isDirectory:i}=t,o=e.ctrlKey||e.metaKey,a=e.shiftKey||o,s=e.shiftKey?{additive:o,kind:"range"}:o?{kind:"toggle"}:{kind:"single"};return{closeSearch:r,revealCanonical:n==="sticky",selection:s,toggleDirectory:!a&&i}}var E3,_i,vU,q7e,kU=Object.is,N8=0,X7e=[],Vi=mr,H7e=Vi.__b,G7e=Vi.__r,U7e=Vi.diffed,V7e=Vi.__c,Z7e=Vi.unmount,W7e=Vi.__;function MT(t,e){Vi.__h&&Vi.__h(_i,t,N8||e),N8=0;var n=_i.__H||(_i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Hu(t){return N8=1,dnt(Y7e,t)}function dnt(t,e,n){var r=MT(E3++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Y7e(void 0,e),function(s){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,s);kU(l,c)||(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=_i,!_i.__f)){var i=function(s,l,c){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(p){return!!p.__c});if(u.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var d=r.__c.props!==s;return u.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,kU(m,p.__[0])||(d=!0)}}),o&&o.call(this,s,l,c)||d};_i.__f=!0;var o=_i.shouldComponentUpdate,a=_i.componentWillUpdate;_i.componentWillUpdate=function(s,l,c){if(4&this.__g){var u=o;o=void 0,i(s,l,c),o=u}a&&a.call(this,s,l,c)},_i.shouldComponentUpdate=i}return r.__N||r.__}function _U(t,e){var n=MT(E3++,3);!Vi.__s&&SU(n.__H,e)&&(n.__=t,n.u=e,_i.__H.__h.push(n))}function sl(t,e){var n=MT(E3++,4);!Vi.__s&&SU(n.__H,e)&&(n.__=t,n.u=e,_i.__h.push(n))}function bn(t){return N8=5,zm(function(){return{current:t}},[])}function zm(t,e){var n=MT(E3++,7);return SU(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function aa(t,e){return N8=8,zm(function(){return t},e)}function pnt(){for(var t;t=X7e.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(LT),t.__H.__h.forEach(CU),t.__H.__h=[]}catch(e){t.__H.__h=[],Vi.__e(e,t.__v)}}Vi.__b=function(t){_i=null,H7e&&H7e(t)},Vi.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),W7e&&W7e(t,e)},Vi.__r=function(t){G7e&&G7e(t),E3=0;var e=(_i=t.__c).__H;e&&(vU===_i?(e.__h=[],_i.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.forEach(LT),e.__h.forEach(CU),e.__h=[],E3=0)),vU=_i},Vi.diffed=function(t){U7e&&U7e(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(X7e.push(e)!==1&&q7e===Vi.requestAnimationFrame||((q7e=Vi.requestAnimationFrame)||mnt)(pnt)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),vU=_i=null},Vi.__c=function(t,e){e.some(function(n){try{n.__h.forEach(LT),n.__h=n.__h.filter(function(r){return!r.__||CU(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Vi.__e(r,n.__v)}}),V7e&&V7e(t,e)},Vi.unmount=function(t){Z7e&&Z7e(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{LT(r)}catch(i){e=i}}),n.__H=void 0,e&&Vi.__e(e,n.__v))};var K7e=typeof requestAnimationFrame=="function";function mnt(t){var e,n=function(){clearTimeout(r),K7e&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);K7e&&(e=requestAnimationFrame(n))}function LT(t){var e=_i,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),_i=e}function CU(t){var e=_i;t.__c=t.__(),_i=e}function SU(t,e){return!t||t.length!==e.length||e.some(function(n,r){return!kU(n,t[r])})}function Y7e(t,e){return typeof e=="function"?e(t):e}function fnt(t,e=null,n=null){"use no memo";let r=t.flattenedSegments;return r==null||r.length===0?e??t.name:ut("span",{"data-item-flattened-subitems":!0,children:r.map((i,o)=>{let a=o===r.length-1;return ut(Wd,{children:[ut("span",{"data-item-flattened-subitem":i.path,"data-item-flattened-subitem-drag-target":n===i.path?"true":void 0,children:a&&e!=null?e:ut($8,{children:i.name})}),o<r.length-1?" / ":""]},i.path)})})}function R3(t){return t.isFlattened?t.flattenedSegments?.findLast(e=>e.isTerminal)?.path??t.path:t.path}function MU(t){let e=t.flattenedSegments;return e==null||e.length===0?t.name:e.map(n=>n.name).join(" / ")}function Q7e(t,e,n,r){return t.map((i,o)=>{let a=o*n,s=i.subtreeEndIndex+1;if(s>=r)return{row:i.row,top:a};let l=s*n-e;return{row:i.row,top:Math.min(a,l-n)}}).filter(i=>i.top+n>0)}function LU({controller:t,itemHeight:e,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:o}){let a=t.getVisibleCount(),s=i&&a>0?t.getStickyRowCandidates(r,e):[],l=s==null&&i&&a>0?t.getVisibleRows(0,a-1):[],c=R7e(l,{itemHeight:e,overscan:n,scrollTop:r,stickyRows:s==null?void 0:Q7e(s,r,e,a),totalRowCount:a,viewportHeight:o}),u=i&&r<=0&&a>0?t.getStickyRowCandidates(1,e):[],d=u!=null&&r<=0?Q7e(u,1,e,a):i&&r<=0&&l.length>0?gU(l,1,e):c.sticky.rows;return{overlayHeight:d.reduce((p,m)=>Math.max(p,m.top+e),0),overlayRows:d,snapshot:c,visibleRows:l}}var hnt=400,J7e=10,T3=40,e6e=18;function gnt(t,e,n){let r=t,i=document.elementFromPoint?.bind(document)??null,o=r.elementFromPoint?.(e,n)??i?.(e,n)??null;return t instanceof ShadowRoot&&(o==null||!t.contains(o))?bnt(t,e,n):o instanceof HTMLElement?o:null}function bnt(t,e,n){let r=Array.from(t.querySelectorAll('[data-type="item"], [data-item-flattened-subitem]'));for(let i=r.length-1;i>=0;i--){let o=r[i],a=o.getBoundingClientRect();if(e>=a.left&&e<=a.right&&n>=a.top&&n<=a.bottom)return o}return null}function t6e(t){let e=t?.closest?.('[data-type="item"]');if(!(e instanceof HTMLElement))return null;let n=e.dataset.itemPath??null;if(n==null)return null;let r=t?.closest?.("[data-item-flattened-subitem]"),i=r instanceof HTMLElement?r.getAttribute("data-item-flattened-subitem")??null:null;if(i!=null&&i.endsWith("/"))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:"directory"};if(e.dataset.itemType==="folder")return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"};let o=e.dataset.itemParentPath??null;return o==null||o.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:"root"}:{directoryPath:o,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"}}function n6e(t){let e=t.cloneNode(!0);return e.removeAttribute("id"),e.dataset.fileTreeDragPreview="true",e.setAttribute("aria-hidden","true"),e.tabIndex=-1,Object.assign(e.style,{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",left:"0px",margin:"0",pointerEvents:"none",position:"fixed",top:"0px",willChange:"transform",zIndex:"10000"}),e}function ynt(){return navigator.vendor!=="Apple Computer, Inc."}function xnt(t,e){let n=t-e.top;if(n<T3){let i=Math.max(0,n);return-Math.ceil((T3-i)/T3*e6e)}let r=e.bottom-t;if(r<T3){let i=Math.max(0,r);return Math.ceil((T3-i)/T3*e6e)}return 0}function wnt(t,e){if(t!=null){let n=A7e[t];return n==null?null:{text:n,title:$7e[t]}}return e?{icon:{name:"file-tree-icon-dot",width:6,height:6},title:I7e}:null}function vnt(t,e,n){if(e==null||e.size===0)return null;let r=[];for(let i=t.length-1;i>=0;i-=1){let o=t[i],a=n.get(o);if(a!=null){for(let s of r)n.set(s,a);return a?"ignored":null}if(e.has(o)){n.set(o,!0);for(let s of r)n.set(s,!0);return"ignored"}r.push(o)}for(let i of r)n.set(i,!1);return null}function r6e(t){return t!=null&&"toggle"in t}function d6e(t){return t.code==="Space"||t.key===" "||t.key==="Spacebar"}function knt(t){return t.key.length===1&&/^[\p{L}\p{N}]$/u.test(t.key)&&!t.ctrlKey&&!t.metaKey&&!t.altKey}function Cnt(t){return t==null?"":`[data-item-section="spacing-item"][data-ancestor-path="${t.replaceAll("\\","\\\\").replaceAll('"','\\"')}"] { opacity: 1; }`}function p6e(t){return t.shiftKey&&t.key==="F10"||t.key==="ContextMenu"}function _nt(t,e){return e&&p6e(t)||(t.ctrlKey||t.metaKey)&&d6e(t)?!0:t.key==="ArrowDown"||t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"}var Snt=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function i6e(t){for(let e of t.composedPath())if(e instanceof HTMLElement&&(e.dataset.fileTreeContextMenuRoot==="true"||e.dataset.type==="context-menu-anchor"||e.dataset.type===JE||e.getAttribute("slot")===fh))return!0;return!1}function Lnt(t){return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width,x:t.x,y:t.y}}function Mnt(t,e){return{bottom:e,height:0,left:t,right:t,top:e,width:0,x:t,y:e}}function Ent(t,e){if(t==null)return e.offsetTop;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top-r.top}function o6e(t,e,n){if(n==null){t.delete(e);return}t.set(e,n)}function a6e(t,e,n){if(t==null)return null;let r=e.get(t)??null;if(r!=null)return r;let i=n.get(t)??null;return i?.dataset.itemParked==="true"?null:i}function Tnt(t){if(t==null)return[];let e=[];for(let n of t.querySelectorAll('button[data-file-tree-sticky-row="true"]')){if(!(n instanceof HTMLElement))continue;let r=n.dataset.fileTreeStickyPath;r!=null&&e.push(r)}return e}function Rnt(t,e){if(t==null||e==null)return null;for(let n of t.querySelectorAll('button[data-item-focused="true"][data-item-parked="true"]'))if(n instanceof HTMLElement&&n.dataset.itemPath===e)return n;return null}function Ant(t,e,n,r,i,o,a){let s=Math.max(0,o-i),l=e?.getBoundingClientRect()??null,c=l==null||n==null?null:n.getBoundingClientRect().top-l.top,u=Rnt(t,r),d=l==null||u==null?null:u.getBoundingClientRect().top-l.top;return Math.max(0,Math.min(d??Math.max(c??0,s),Math.max(0,a-i)))}function s6e(t,e){return{kind:t.kind,name:MU(t),path:e}}function $nt(t){return t==null?void 0:`${t}__tree`}function m6e(t,e,n){if(t!=null)return`${t}__focused-item-${encodeURIComponent(e)}${n?"__parked":""}`}function l6e(t){return t==="file-tree-icon-chevron"||t==="file-tree-icon-dot"||t==="file-tree-icon-file"||t==="file-tree-icon-lock"}function c6e(t,e){if(t==null)return null;if("text"in t)return ut("span",{title:t.title,children:t.text});let n=typeof t.icon=="string"?l6e(t.icon)?e(t.icon):{name:t.icon}:l6e(t.icon.name)?(()=>{let r=e(t.icon.name),{name:i,...o}=t.icon;return{...r,...o}})():t.icon;return ut("span",{title:t.title,children:ut(S3,{...n})})}function u6e(t){t!=null&&s5(t.querySelector(["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "))??t)}function Int(t,e,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:o=null,gitDecoration:a=null,gitLaneActive:s=!1,renameInput:l=null,showDecorativeActionAffordance:c=!1}={}){let u=R3(t);return ut(Wd,{children:[t.depth>0?ut("div",{"data-item-section":"spacing",children:Array.from({length:t.depth}).map((d,p)=>ut("div",{"data-item-section":"spacing-item","data-ancestor-path":t.ancestorPaths[p]},p))}):null,ut("div",{"data-item-section":"icon",children:t.kind==="directory"?ut(S3,{...e("file-tree-icon-chevron")}):ut(S3,{...e("file-tree-icon-file",u)})}),ut("div",{"data-item-section":"content",children:t.isFlattened?fnt(t,l,o):l??ut(M7e,{minimumLength:5,split:"extension",children:t.name})}),i?ut("div",{"data-item-section":"decoration",children:r!=null?c6e(r,e):null}):null,s?ut("div",{"data-item-section":"git",children:c6e(a,e)}):null,n?ut("div",{"data-item-section":"action",children:c?ut("span",{"aria-hidden":"true","data-item-action-affordance":"decorative",children:ut(S3,{...e("file-tree-icon-ellipsis")})}):null}):null]})}function ET(t,e,n,r={}){let{controller:i,renameView:o,visualFocusPath:a,contextHoverPath:s,draggedPathSet:l,dragTarget:c,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:p,handleRowDragEnd:m,handleRowTouchStart:f,instanceId:h,itemHeight:x,gitStatusByPath:g,ignoredGitDirectories:y,ignoredInheritanceCache:b,directoriesWithGitChanges:w,gitLaneActive:v,contextMenuEnabled:k,contextMenuTriggerMode:_,contextMenuButtonTriggerEnabled:L,contextMenuButtonVisibility:S,contextMenuRightClickEnabled:C,registerRenameInput:T,registerButton:M,resolveIcon:A,renderDecorationForRow:$,openContextMenuForRow:N,onRowClick:F,onKeyDown:D}=t,O=R3(e),{isParked:B=!1,mode:P="flow",style:U}=r,G=P==="sticky",j=g?.get(O)??null??vnt(e.ancestorPaths,y,b),V=e.kind==="directory"&&(w?.has(O)??!1),H=$(e,O),ne=wnt(j,V),J=k&&L,W=H!=null||v||J,ie=J&&S==="always",Z=o.getPath()===O,ce=Z?o.getValue():"",se=G||!Z?null:ut(F7e,{ref:T,ariaLabel:`Rename ${MU(e)}`,isFlattened:e.isFlattened,value:ce,onBlur:()=>{o.commit()},onInput:ge=>{o.setValue(ge.currentTarget.value)}}),be=Int(e,A,{actionLaneEnabled:J,customDecoration:H,decorationLaneEnabled:W,dragTargetFlattenedSegmentPath:c?.flattenedSegmentPath??null,gitDecoration:ne,gitLaneActive:v,renameInput:se,showDecorativeActionAffordance:ie}),le={...B7e({ariaLabel:MU(e),domId:e.isFocused?m6e(h,O,B):void 0,extraStyle:U,features:{actionLaneEnabled:J,contextMenuButtonVisibility:J?S:null,contextMenuEnabled:k,contextMenuTriggerMode:k?_:null,gitLaneActive:v},isParked:B,itemHeight:x,mode:P,row:e,state:{containsGitChange:V,effectiveGitStatus:j,isContextHovered:s===O,isDragTarget:c?.kind==="directory"&&c.directoryPath===O,isDragging:l?.has(O)===!0,isFocusRinged:e.isFocused&&a===O},targetPath:O}),key:n,onContextMenu:k||u?ge=>{if(d()){ge.preventDefault();return}k&&(ge.preventDefault(),C&&(i.focusMountedPathFromInput(O),N(e,O,{anchorRect:Mnt(ge.clientX,ge.clientY),source:"right-click"})))}:void 0,onFocus:G?void 0:()=>{i.focusMountedPathFromInput(O)},onKeyDown:G?void 0:D,ref:ge=>{M(O,ge)}};return!G&&Z?ut("div",{...le,children:be}):ut("button",{...le,type:"button",draggable:u&&!B,onDragEnd:u&&!B?m:void 0,onDragStart:u&&!B?ge=>{p(ge,e,O)}:void 0,onMouseDown:ge=>{if(G){ge.preventDefault();return}i.isSearchOpen()&&ge.preventDefault()},onTouchStart:u&&!B?ge=>{f(ge,e,O)}:void 0,onClick:ge=>{F(ge,e,O,P)},children:be})}function Nnt(t,e,n){return e.end<e.start?[]:t.controller.getVisibleRows(e.start,e.end).filter(r=>!n.has(R3(r))).map((r,i)=>ET(t,r,e.start+i))}function EU({composition:t,controller:e,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:o,instanceId:a,itemHeight:s=pT,overscan:l=V4e,renamingEnabled:c=!1,renderRowDecoration:u,searchBlurBehavior:d="close",searchEnabled:p=!1,searchFakeFocus:m=!1,slotHost:f,stickyFolders:h=!1,initialViewportHeight:x=mT}){"use no memo";let g=bn(null),y=bn(null),b=bn(!1),w=bn(null),v=bn(null),k=bn(null),_=bn(null),L=bn(null),S=bn(new Map),C=bn(new Map),T=bn(()=>{}),M=bn(null),A=bn(0),$=bn(!1),N=bn(null);N.current!==e&&($.current=!1,N.current=e);let F=bn(!1),D=bn(null),O=bn(null),B=bn(!1),P=bn(null),U=bn(null),G=bn(null),j=bn(null),V=bn(null),H=bn(null),ne=bn(null),J=bn(null),W=bn(!1),ie=bn(null),Z=bn(null),ce=bn(null),se=bn(null),be=zm(()=>new Map,[]),[,le]=Hu(0),[ge,ke]=Hu(null),[me,Se]=Hu(null),[de,Le]=Hu(null),[Ne,Be]=Hu(null),[_e,xe]=Hu(0),[Ce,K]=Hu(null),Y=bn(Ce);Y.current=Ce;let ye=bn(null),Re=bn(null),Ke=bn(null),mt=bn(null),dt=bn(null),Ae=bn(!1),xt=()=>{Re.current=null,Ke.current=null,mt.current=null},Et=(re,$e)=>{Re.current=re,Ke.current=null,mt.current=$e==null?null:{path:re,scrollTop:$e}},jt=(re,$e)=>{Re.current=null,Ke.current={path:re,viewportOffset:$e},mt.current=null},Bt=bn(d==="retain"&&e.isSearchOpen()),[Ve,Jt]=Hu(m);_U(()=>{m||Jt(!1)},[m]);let rn=bn(!1),Rn=aa(()=>{rn.current=!0,Jt(re=>re&&!1)},[]),[_t,An]=Hu(()=>LU({controller:e,itemHeight:s,overscan:l,scrollTop:0,stickyFolders:h,viewportHeight:x})),[Xt,zn]=Hu(!1);_U(()=>{zn(!0)},[]);let Ot=t?.contextMenu?.enabled===!0||t?.contextMenu?.render!=null||t?.contextMenu?.onOpen!=null||t?.contextMenu?.onClose!=null,mn=t?.contextMenu?.triggerMode??(Ot?"right-click":"both"),yn=mn==="both"||mn==="button",In=t?.contextMenu?.buttonVisibility??"when-needed",er=mn==="both"||mn==="right-click";sl(()=>{let re=k.current;if(re==null)return;let $e=at=>{if(!(at instanceof CustomEvent))return;let bt=at.detail?.path??null;dt.current=bt,Se(bt),Be(bt==null?null:"pointer")},Ct=at=>{at instanceof CustomEvent&&(Ae.current=at.detail?.disabled===!0)};return re.addEventListener("file-tree-debug-set-context-menu-trigger",$e),re.addEventListener("file-tree-debug-set-scroll-suppression",Ct),()=>{re.removeEventListener("file-tree-debug-set-context-menu-trigger",$e),re.removeEventListener("file-tree-debug-set-scroll-suppression",Ct)}},[]);let ae=aa((re,$e)=>{o6e(S.current,re,$e)},[]),st=aa((re,$e)=>{o6e(C.current,re,$e)},[]),Lt=aa(re=>{v.current=re},[]),Ye=aa(re=>a6e(re,C.current,S.current),[]),wt=n!=null||r!=null||i!=null,{resolveIcon:jn}=zm(()=>C8(o),[o]),Kn=e[rU](),un=Kn.getPath(),it=un!=null,ft=e.isSearchOpen(),En=e.getSearchValue(),Pt=e.getFocusedPath(),It=e.getFocusedIndex(),mi=e.getScrollRequest(),Ei=e.isDragAndDropEnabled(),Ti=e.getDragSession(),Ua=zm(()=>Ti==null?null:new Set(Ti.draggedPaths),[Ti]),ml=Ti?.target??null,Ge=Ti?.primaryPath??null,dn=$nt(a),{overlayHeight:pt,overlayRows:vs,snapshot:Gr,visibleRows:np}=_t,Ri=Gr.physical.viewportHeight,Wi=zm(()=>({end:Gr.window.endIndex,start:Gr.window.startIndex}),[Gr.window.endIndex,Gr.window.startIndex]),co=vs,ks=Gr.sticky.rows,da=Gr.physical.totalHeight,Oo=Gr.sticky.height,Cs=zm(()=>new Set(ks.map(re=>R3(re.row))),[ks]),Mh=It>=0&&It>=Wi.start&&It<=Wi.end,uo=aa((re,$e)=>u?.({item:s6e(re,$e),row:re})??null,[u]),pa=aa(re=>s5(re==null?null:S.current.get(re)??null)?!0:s5(k.current),[]),rp=aa(re=>{pa(e.focusNearestPath(re))},[e,pa]),ef=bn(rp);ef.current=rp;let ac=bn(!0),Eh=bn(()=>{}),Do=aa((re=!0)=>{let $e=Y.current;$e!=null&&(ac.current=ac.current&&re,K(null),t?.contextMenu?.onClose?.(),ac.current&&rp($e.path))},[t?.contextMenu,rp]);Eh.current=Do;let sc=aa(re=>{let $e=re==null?null:Ent(k.current,re);Le(Ct=>Ct===$e?Ct:$e)},[]),Fo=aa((re,$e,Ct)=>{let at=e.getItem($e);if(at==null)return;let bt=Ye($e);if(bt?.dataset.fileTreeStickyRow==="true"){let Gt=_.current;Et($e,Gt?.scrollTop??null),F.current=!0,ke(ei=>ei===$e?ei:$e)}at.focus(),sc(bt),ac.current=!0,K({anchorRect:Ct?.anchorRect??null,item:s6e(re,$e),path:$e,source:Ct?.source??"keyboard"})},[e,Ye,sc]),tf=aa(re=>{if(c){if(e.isSearchOpen()){let $e=_.current,Ct=L3($e,Ri);P.current=It<0||$e==null?null:Math.max(0,Math.min(It*s-$e.scrollTop,Math.max(0,Ct-s))),B.current=!0}e.startRenaming(re)!==!1&&(Be("focus"),le($e=>$e+1))}},[e,It,s,c,Ri]),nf=aa((re,{restoreTreeFocus:$e=!0,targetOffset:Ct="live-overlay"}={})=>{let at=_.current;if(at==null)return!1;e.focusPath(re);let bt=e.getFocusedIndex();if(bt<0)return!1;let Gt=e.getVisibleRows(bt,bt)[0]??null;if(Gt==null)return!1;let ei=L3(at,Ri),pn=e.getVisibleCount()*s,Xn=Ct==="sticky-parents"?Gt.ancestorPaths.length*s:LU({controller:e,itemHeight:s,overscan:l,scrollTop:at.scrollTop,stickyFolders:h,viewportHeight:ei}).snapshot.sticky.height;return F.current=!0,M3(at,bt,s,ei,pn,Xn),T.current(),ye.current=$e?re:null,!0},[e,s,l,Ri,h]),rf=()=>b.current===!0||se.current!=null||W.current===!0,lc=re=>typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{re()}):window.setTimeout(re,16),Va=re=>{if(re!=null){if(typeof window.cancelAnimationFrame=="function"){window.cancelAnimationFrame(re);return}window.clearTimeout(re)}},fi=()=>{j.current!=null&&(clearTimeout(j.current),j.current=null),G.current=null},cu=()=>{H.current?.remove(),H.current=null},_s=()=>{Va(U.current),U.current=null,V.current=null},fl=re=>{let $e=k.current?.getRootNode();if($e instanceof ShadowRoot){$e.append(re);return}document.body.append(re)},Za=()=>{J.current?.(),J.current=null,se.current!=null&&(clearTimeout(se.current),se.current=null),W.current=!1,ie.current=null,ce.current=null,Z.current!=null&&(Z.current.setAttribute("draggable","true"),Z.current.style.removeProperty("touch-action"),Z.current=null),cu(),fi(),_s(),ne.current=null},cc=(re,$e)=>{let Ct=k.current?.getRootNode(),at=t6e(gnt(Ct instanceof ShadowRoot?Ct:document,re,$e));return e.setDragTarget(at),e.getDragSession()?.target??null},ip=re=>{let $e=e.getDragAndDropConfig()?.openOnDropDelay??800;if(re==null||re.kind!=="directory"||re.directoryPath==null||$e<=0){fi();return}let Ct=e.getItem(re.directoryPath),at=r6e(Ct)?Ct:null;if(at==null||at.isExpanded()){fi();return}let bt=`${re.directoryPath}::${re.flattenedSegmentPath??""}`;G.current!==bt&&(fi(),G.current=bt,j.current=setTimeout(()=>{let Gt=e.getDragSession()?.target;Gt?.kind!=="directory"||Gt.directoryPath!==re.directoryPath||Gt.flattenedSegmentPath!==re.flattenedSegmentPath||at.expand()},$e))},Th=()=>{U.current=null;let re=V.current,$e=_.current;if(re==null||$e==null||e.getDragSession()==null)return;let Ct=$e.getBoundingClientRect(),at=xnt(re.clientY,Ct);if(at===0)return;let bt=Math.max(0,$e.scrollHeight-$e.clientHeight),Gt=Math.max(0,Math.min(bt,$e.scrollTop+at));Gt!==$e.scrollTop&&($e.scrollTop=Gt,T.current()),ip(cc(re.clientX,re.clientY)),U.current=lc(Th)},k5=(re,$e)=>{V.current={clientX:re,clientY:$e},U.current??=lc(Th)},C5=(re,$e,Ct)=>{let at=re.currentTarget;if(at!=null){if(Za(),cu(),fi(),_s(),e.startDrag(Ct)===!1){re.preventDefault();return}if(ne.current=$e,re.dataTransfer!=null&&(re.dataTransfer.effectAllowed="move",re.dataTransfer.dropEffect="move",re.dataTransfer.setData("text/plain",Ct),ynt())){let bt=n6e(at),Gt=at.getBoundingClientRect();Object.assign(bt.style,{height:`${Gt.height}px`,opacity:"0.85",transform:"translate3d(-9999px, 0px, 0)",width:`${Gt.width}px`}),fl(bt),H.current=bt,re.dataTransfer.setDragImage(bt,Math.max(0,re.clientX-Gt.left),Math.max(0,re.clientY-Gt.top))}}},Rh=()=>{cu(),fi(),_s(),ne.current=null,e.cancelDrag()},_5=(re,$e,Ct)=>{if(se.current!=null||W.current)return;let at=re.touches[0],bt=re.currentTarget;if(at==null||bt==null)return;ce.current={clientX:at.clientX,clientY:at.clientY},Z.current=bt,bt.setAttribute("draggable","false");let Gt=(Xn={})=>{let Tr=Xn.restoreNativeDraggable??!W.current;se.current!=null&&(clearTimeout(se.current),se.current=null),document.removeEventListener("touchmove",ei),document.removeEventListener("touchend",pn),document.removeEventListener("touchcancel",pn),J.current===Gt&&(J.current=null),Tr&&(bt.setAttribute("draggable","true"),Z.current===bt&&(Z.current=null),ce.current=null)},ei=Xn=>{let Tr=Xn.touches[0],jr=ce.current;if(Tr==null||jr==null)return;let Ai=Tr.clientX-jr.clientX,Ki=Tr.clientY-jr.clientY;Ai*Ai+Ki*Ki<=J7e*J7e||Gt()},pn=()=>{Gt()};document.addEventListener("touchmove",ei,{passive:!0}),document.addEventListener("touchend",pn),document.addEventListener("touchcancel",pn),J.current=Gt,se.current=setTimeout(()=>{if(Gt({restoreNativeDraggable:!1}),e.startDrag(Ct)===!1){bt.setAttribute("draggable","true"),Z.current===bt&&(Z.current=null),ce.current=null;return}W.current=!0,Z.current=bt,bt.setAttribute("draggable","false"),bt.style.setProperty("touch-action","none"),ne.current=$e;let Xn=bt.getBoundingClientRect(),Tr=n6e(bt);Object.assign(Tr.style,{height:`${Xn.height}px`,opacity:"0.85",transform:`translate3d(${Xn.left}px, ${Xn.top}px, 0)`,width:`${Xn.width}px`}),fl(Tr),H.current=Tr,ie.current={x:at.clientX-Xn.left,y:at.clientY-Xn.top};let jr=Wu=>{let Xi=Wu.touches[0];if(Xi==null)return;Wu.preventDefault();let gl=ie.current;gl!=null&&H.current!=null&&(H.current.style.transform=`translate3d(${Xi.clientX-gl.x}px, ${Xi.clientY-gl.y}px, 0)`),ip(cc(Xi.clientX,Xi.clientY)),k5(Xi.clientX,Xi.clientY)},Ai=Wu=>{let Xi=Wu.changedTouches[0];Xi!=null&&cc(Xi.clientX,Xi.clientY),e.completeDrag(),Za()},Ki=()=>{e.cancelDrag(),Za()};J.current=()=>{document.removeEventListener("touchmove",jr),document.removeEventListener("touchend",Ai),document.removeEventListener("touchcancel",Ki)},document.addEventListener("touchmove",jr,{passive:!1}),document.addEventListener("touchend",Ai),document.addEventListener("touchcancel",Ki)},hnt)},of=re=>{if(Ce!=null){if(re.key==="Escape"){Do(),re.preventDefault(),re.stopPropagation();return}Snt.has(re.key)&&(re.preventDefault(),re.stopPropagation());return}if(Kn.isActive()){if(re.key==="Escape")Kn.cancel();else if(re.key==="Enter")Kn.commit();else return;Be("focus"),le(gi=>gi+1),re.preventDefault(),re.stopPropagation();return}if(c&&re.key==="F2"){tf(Pt??void 0),re.preventDefault(),re.stopPropagation();return}if(ft){if(re.key==="Escape")B.current=!1,P.current=null,e.closeSearch();else if(re.key==="Enter"){let gi=e.getFocusedPath();gi!=null&&e.selectOnlyPath(gi);let Ku=_.current,Y8=L3(Ku,Ri);P.current=It<0||Ku==null?null:Math.max(0,Math.min(It*s-Ku.scrollTop,Math.max(0,Y8-s))),B.current=!0,e.closeSearch()}else if(re.key==="ArrowDown")e.focusNextSearchMatch();else if(re.key==="ArrowUp")e.focusPreviousSearchMatch();else return;Be("focus"),le(gi=>gi+1),re.preventDefault(),re.stopPropagation();return}if(p&&knt(re)){e.openSearch(re.key),le(gi=>gi+1),re.preventDefault(),re.stopPropagation();return}let $e=Ot&&p6e(re),Ct=_nt(re,Ot),at=Ct&&k.current!=null?I8(k.current):null,bt=Ct?new Set(Tnt(k.current)):new Set,Gt=at?.dataset.fileTreeStickyPath??null,ei=at?.dataset.fileTreeStickyRow==="true"&&Gt!=null;if(ei&&Gt!==Pt&&bt.has(Gt)){let gi=_.current;Et(Gt,gi?.scrollTop??null),e.focusPath(Gt)}let pn=e.getFocusedPath(),Xn=e.getFocusedIndex(),Tr=e.getFocusedItem();if(Tr==null)return;let jr=r6e(Tr)?Tr:null,Ai=pn!=null&&(Cs.has(pn)||ei&&Gt===pn&&bt.has(pn)),Ki=re.key==="ArrowDown"||re.key==="ArrowUp"||re.key==="ArrowRight"&&jr!=null&&jr.isExpanded(),Wu=re.key==="ArrowLeft"&&Ai&&jr!=null&&jr.isExpanded(),Xi=_.current,gl=!0;if(re.shiftKey&&re.key==="ArrowDown")e.extendSelectionFromFocused(1);else if(re.shiftKey&&re.key==="ArrowUp")e.extendSelectionFromFocused(-1);else if($e&&pn!=null&&Xn>=0){let gi=e.getVisibleRows(Xn,Xn)[0]??null,Ku=a6e(pn,C.current,S.current);gi==null||Ku==null?gl=!1:Fo(gi,pn)}else if((re.ctrlKey||re.metaKey)&&d6e(re))e.toggleFocusedSelection();else if((re.ctrlKey||re.metaKey)&&re.key.toLowerCase()==="a")e.selectAllVisiblePaths();else switch(re.key){case"ArrowDown":e.focusNextItem();break;case"ArrowUp":e.focusPreviousItem();break;case"ArrowRight":jr==null||jr.isExpanded()?e.focusNextItem():jr.expand();break;case"ArrowLeft":jr!=null&&jr.isExpanded()?jr.collapse():e.focusParentItem();break;case"Home":e.focusFirstItem();break;case"End":e.focusLastItem();break;default:gl=!1}if(!gl)return;Be("focus");let qn=e.getFocusedPath(),Ls=qn!=null&&(Cs.has(qn)||bt.has(qn)),du=Ki&&qn!==pn,X8=$e&&ei&&Gt===pn&&qn===pn;if((Ai||X8)&&qn!=null&&(du&&Ls||X8))Et(qn,Xi?.scrollTop??null),F.current=!0,ke(gi=>gi===qn?gi:qn);else{let gi=re.key==="ArrowUp"&&Ai&&qn!==pn;qn!=null&&(gi||Wu&&qn===pn)?(jt(qn,Ant(k.current,Xi,at,pn,s,Oo,Ri)),F.current=!0,ke(Ku=>Ku===qn?Ku:qn)):xt()}le(gi=>gi+1),re.preventDefault(),re.stopPropagation()};sl(()=>{if(!(!p||!ft)){if(Bt.current){Bt.current=!1;return}s5(L.current)}},[ft,p]),sl(()=>{let re=v.current;switch(D7e({hasRenderedInput:re!=null,previousRenamingPath:O.current,renamingPath:un})){case"reset":O.current=null;return;case"reveal-canonical":un!=null&&nf(un,{restoreTreeFocus:!1,targetOffset:"live-overlay"});return;case"ignore":return;case"focus-input":re!=null&&(ye.current=null,O.current=un,s5(re),re.select());return}},[Wi.end,Wi.start,un,nf,Cs]),sl(()=>{let re=k.current;if(re==null)return;let $e=null,Ct=()=>{$e!=null&&(clearTimeout($e),$e=null)},at=()=>{let ei=I8(re)?.dataset.itemPath??null;ke(pn=>pn===ei?pn:ei)},bt=()=>{Ct(),F.current=!0,at()},Gt=ei=>{let pn=ei.relatedTarget;if(pn==null){Ct(),$e=setTimeout(()=>{if($e=null,I8(re)!=null){at();return}F.current=!1,ke(null)},0);return}if(!(pn instanceof Node)||!re.contains(pn)){Ct(),F.current=!1,ke(null);return}let Xn=pn instanceof HTMLElement?pn.dataset.itemPath??null:null;ke(Tr=>Tr===Xn?Tr:Xn)};return re.addEventListener("focusin",bt),re.addEventListener("focusout",Gt),()=>{Ct(),re.removeEventListener("focusin",bt),re.removeEventListener("focusout",Gt)}},[]),sl(()=>{let re=k.current;re!=null&&(Gr.physical.scrollTop<=0?re.dataset.scrollAtTop="true":delete re.dataset.scrollAtTop)},[Gr.physical.scrollTop]),sl(()=>{let re=null,$e=_.current,Ct=w.current,at=k.current;if($e==null)return;M.current=L3($e,x);let bt=()=>{let qn=e.getVisibleCount(),Ls=yU(M.current,x),du=Math.max(0,qn*s-Ls);$e.scrollTop>du&&($e.scrollTop=du),An(LU({controller:e,itemHeight:s,overscan:l,scrollTop:Math.min($e.scrollTop,du),stickyFolders:h,viewportHeight:Ls}))};if(!$.current){$.current=!0;let qn=e.getFocusedIndex();if(qn>=0){let Ls=yU(M.current,x),du=e.getVisibleRows(qn,qn)[0]??null;xU($e,qn,s,Ls,h&&du!=null?Math.max(0,Math.min(du.ancestorPaths.length*s,Math.max(0,Ls-s))):0)}}T.current=bt;let Gt=!1,ei=e.subscribe(()=>{Gt?le(qn=>qn+1):Gt=!0,bt()}),pn=()=>{Ae.current!==!0&&(Ct!=null&&(Ct.dataset.isScrolling??=""),at!=null&&(at.dataset.isScrolling??=""),b.current=!0,re!=null&&clearTimeout(re),re=setTimeout(()=>{Ct!=null&&delete Ct.dataset.isScrolling,at!=null&&delete at.dataset.isScrolling,b.current=!1,xe(qn=>qn+1),re=null},50))},Xn=null,Tr=()=>{at!=null&&delete at.dataset.overlayReveal,Xn!=null&&(clearTimeout(Xn),Xn=null)},jr=()=>{at==null||Ae.current===!0||$e.scrollTop>0||(at.dataset.overlayReveal="true",Xn!=null&&clearTimeout(Xn),Xn=setTimeout(()=>{Tr()},200))},Ai=()=>{if(bt(),$e.scrollTop>0&&Tr(),Y.current!=null&&b.current&&Eh.current(),Ae.current===!0){b.current=!1;return}Se(qn=>qn==null?qn:null),pn()},Ki=()=>{pn(),jr()},Wu=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"," ","Spacebar"]),Xi=qn=>{Wu.has(qn.key)&&Ki()};$e.addEventListener("scroll",Ai,{passive:!0}),$e.addEventListener("wheel",Ki,{passive:!0}),$e.addEventListener("touchmove",Ki,{passive:!0}),$e.addEventListener("keydown",Xi);let gl=typeof ResizeObserver<"u"?new ResizeObserver(qn=>{M.current=(qn[0]==null?null:j7e(qn[0]))??L3($e,x),bt()}):null;return gl?.observe($e),()=>{T.current=()=>{},ei(),$e.removeEventListener("scroll",Ai),$e.removeEventListener("wheel",Ki),$e.removeEventListener("touchmove",Ki),$e.removeEventListener("keydown",Xi),re!=null&&clearTimeout(re),Xn!=null&&clearTimeout(Xn),Ct!=null&&delete Ct.dataset.isScrolling,at!=null&&(delete at.dataset.isScrolling,delete at.dataset.overlayReveal),b.current=!1,M.current=null,gl?.disconnect()}},[e,x,s,l,h]),sl(()=>{Ot||Ce==null||Do(!1)},[Do,Ot,Ce]);let Ah=zm(()=>Ce==null?null:`${Ce.path}::${Ce.source}`,[Ce]);sl(()=>{if(Ah==null){f?.clearSlotContent(fh);return}let re=Y.current;if(re==null)return;let $e=y.current??g.current;if($e==null)return;let Ct={anchorElement:$e,anchorRect:re.anchorRect??Lnt($e.getBoundingClientRect()),close:bt=>{Eh.current(bt?.restoreFocus??!0)},restoreFocus:()=>{ac.current&&ef.current(Y.current?.path??null)}},at=t?.contextMenu?.render?.(re.item,Ct)??null;return f?.setSlotContent(fh,at),t?.contextMenu?.onOpen?.(re.item,Ct),u6e(at),queueMicrotask(()=>{at==null||!at.isConnected||document.activeElement===at&&u6e(at)}),()=>{f?.clearSlotContent(fh)}},[Ah,t?.contextMenu,f]),sl(()=>{Ce!=null&&e.getItem(Ce.path)==null&&Do()},[Do,Ce,e]),sl(()=>{if(Ce==null)return;let re=k.current?.getRootNode(),$e=re instanceof ShadowRoot?re.host:k.current,Ct=bt=>{let Gt=bt.target;Gt instanceof Node&&(i6e(bt)||g.current?.contains(Gt)!==!0&&$e?.contains(Gt)!==!0&&Do())},at=bt=>{bt.key==="Escape"&&(bt.preventDefault(),bt.stopPropagation(),Do())};return document.addEventListener("mousedown",Ct,!0),document.addEventListener("keydown",at,!0),()=>{document.removeEventListener("mousedown",Ct,!0),document.removeEventListener("keydown",at,!0)}},[Do,Ce]),sl(()=>{let re=_.current,$e=k.current;if(re==null||$e==null){D.current=Pt;return}let Ct=Pt==null?null:S.current.get(Pt)??null,at=I8($e),bt=at?.dataset.itemPath??null,Gt=it&&v.current===at,ei=p&&L.current===at,pn=B.current&&!ft,Xn=P.current??0,Tr=ye.current,jr=Re.current,Ai=Ke.current,Ki=mt.current,Wu=at!=null,Xi=F.current||Wu,gl=D.current!==Pt,qn=jr!=null&&jr===Pt&&Pt!=null,Ls=!1,du=!1;if(mi!=null&&mi.id!==A.current){A.current=mi.id;let uR=mi.visibleIndex,yV=e.getVisibleRows(uR,uR)[0]??null;if(yV!=null){let xve=h?Math.max(0,Math.min(yV.ancestorPaths.length*s,Math.max(0,Ri-s))):Oo;Ls=!0,du=O7e(re,uR,s,Ri,da,mi.offset,xve)}e.clearScrollRequest(mi.id)}let X8=!Ls&&pn&&M3(re,It,s,Ri,da,Xn),gi=!Ls&&Tr!=null&&Tr===Pt&&M3(re,It,s,Ri,da,Oo),Ku=!Ls&&Ai!=null&&Ai.path===Pt&&M3(re,It,s,Ri,da,Ai.viewportOffset),Y8=!Ls&&Ki!=null&&Ki.path===Pt&&re.scrollTop!==Ki.scrollTop;if(Y8&&(re.scrollTop=Ki.scrollTop),(Y8||du||gi||Ku||X8||Xi&&gl&&Tr!==Pt&&!qn&&xU(re,It,s,Ri,Oo))&&T.current(),Ls){D.current=Pt;return}if(!Xi){D.current=Pt;return}if(Gt){D.current=Pt;return}if(ei&&!pn){D.current=Pt;return}if(Ct==null){pn&&It>=0&&(M3(re,It,s,Ri,da,Xn),T.current()),D.current=Pt;return}(gl||pn||Tr===Pt||jr===Pt||Ai?.path===Pt||Ki?.path===Pt||bt==null||bt!==Pt)&&(s5(Ct),Tr===Pt&&(ye.current=null),jr===Pt&&(Re.current=null),Ai?.path===Pt&&(Ke.current=null),Ki?.path===Pt&&(mt.current=null),B.current=!1,P.current=null),D.current=Pt},[e,It,Pt,Mh,s,it,ft,Wi,Ri,p,mi,h,Oo,da,np]);let S5=It>=0&&It>=Gr.visible.startIndex&&It<=Gr.visible.endIndex,op=Pt!=null&&co.some(re=>R3(re.row)===Pt),L5=S5||op,ap=yn&&F.current===!0&&L5?Pt:null,$h=Ne==="pointer"?me:null,Wa=Ce?.path??dt.current??$h??ap??me,af=Ce?.source==="right-click";sl(()=>{b.current&&Ce==null||sc(Ye(Wa))},[Ce,Ye,Wi,Ri,_e,co,Wa,sc,np]);let sp=aa(re=>{if(b.current||i6e(re))return;let $e=re.target;if(!($e instanceof HTMLElement)||$e.closest?.(`[data-type="${JE}"]`)!=null)return;let Ct=$e.closest?.('[data-file-tree-sticky-row="true"]'),at=$e.closest?.('[data-type="item"]'),bt=Ct instanceof HTMLElement?Ct.dataset.fileTreeStickyPath??null:at instanceof HTMLElement?at.dataset.itemPath??null:null;bt!=null&&Be(Gt=>Gt==="pointer"?Gt:"pointer"),Se(Gt=>Gt===bt?Gt:bt)},[]),ue=aa(()=>{Se(null)},[]);sl(()=>{if(!Ei)return;let re=()=>{Za(),e.cancelDrag()};return window.addEventListener("dragend",re),()=>{window.removeEventListener("dragend",re),Za(),e.cancelDrag()}},[e,Ei]);let je=re=>{if(!Ei||e.getDragSession()==null||W.current)return;let $e=t6e(re.target instanceof HTMLElement?re.target:null);e.setDragTarget($e),ip(e.getDragSession()?.target??null),k5(re.clientX,re.clientY),re.dataTransfer!=null&&(re.dataTransfer.dropEffect="move"),re.preventDefault()},St=re=>{if(!Ei||e.getDragSession()==null||W.current)return;let $e=re.relatedTarget;$e instanceof Node&&k.current?.contains($e)===!0||(fi(),_s(),e.setDragTarget(null))},_n=re=>{!Ei||e.getDragSession()==null||W.current||(re.preventDefault(),cc(re.clientX,re.clientY),e.completeDrag(),cu(),fi(),_s(),ne.current=null)},xr=Gr.window.height,po=Gr.window.offsetTop,Ss=Math.min(0,Ri-xr),uu=Math.min(0,Ri-xr-Oo),sf=ge===Pt||B.current,uc=Pt!=null&&sf&&!Mh&&It>=0?np[It]??e.getVisibleRows(It,It)[0]??null:null,Zu=uc==null?null:wU(It,s,Wi,xr),hl=ne.current,M5=Ge!=null&&hl!=null&&hl.path===Ge&&hl.index>=Wi.start&&hl.index<=Wi.end,Fe=Ge!=null&&hl!=null&&hl.path===Ge&&!M5&&hl.path!==uc?.path?hl:null,tt=Fe==null?null:wU(Fe.index,s,Wi,xr),Me=Cnt((It>=0?np[It]??e.getVisibleRows(It,It)[0]??null:null)?.ancestorPaths.at(-1)??null),Rt=ft&&Pt!=null?m6e(a,Pt,!Mh):void 0,$n=Ce?.path??(ft?Pt:ge),wr=Ce?.path??me,or=Ye(Wa),vt=Ot&&yn&&!af&&!it&&or!=null&&de!=null&&Wa!=null,hi=Ot&&(vt||Ce!=null),ma=Ce?.anchorRect,Bo=ma==null&&or!=null&&de!=null&&(Ce!=null||vt)?de:null,H3=ma!=null?{left:`${ma.left}px`,position:"fixed",right:"auto",top:`${ma.top}px`}:Bo!=null?{top:`${Bo}px`}:void 0,Ze=af?{opacity:"0"}:void 0,en=aa((re,$e,Ct,at)=>{let bt=z7e({event:{ctrlKey:re.ctrlKey,metaKey:re.metaKey,shiftKey:re.shiftKey},isDirectory:$e.kind==="directory",isSearchOpen:ft,mode:at}),Gt=bt.toggleDirectory&&$e.kind==="directory",ei=Gt?e.resolveMountedDirectoryPathFromInput(Ct):null;if(Gt&&ei==null)return;let pn=ei??Ct;switch(bt.selection.kind){case"range":e.selectPathRange(pn,bt.selection.additive);break;case"toggle":e.togglePathSelectionFromInput(pn);break;case"single":e.selectOnlyMountedPathFromInput(pn);break}let Xn=re.currentTarget instanceof HTMLElement?re.currentTarget:null,Tr=$e.index>=Gr.visible.startIndex&&$e.index<=Gr.visible.endIndex,jr=at==="flow"&&Tr&&Xn!=null&&Xn.dataset.itemParked!=="true";e.focusMountedPathFromInput(pn),jr&&(F.current=!0,ke(Ai=>Ai===pn?Ai:pn),Be("focus")),Gt&&e.toggleMountedDirectoryFromInput(pn),bt.closeSearch&&e.closeSearch(),bt.revealCanonical&&nf(pn,{targetOffset:"sticky-parents"})},[e,ft,Gr.visible.endIndex,Gr.visible.startIndex,nf]),vr=()=>{if(b.current||!yn||Wa==null||or==null)return;let re=e.getItem(Wa);re!=null&&(sc(or),ac.current=!0,K({anchorRect:null,item:{kind:re.isDirectory()?"directory":"file",name:or.getAttribute("aria-label")??Wa,path:re.getPath()},path:re.getPath(),source:"button"}))},Ka={contextHoverPath:wr,contextMenuButtonTriggerEnabled:yn,contextMenuButtonVisibility:In,contextMenuEnabled:Ot,contextMenuRightClickEnabled:er,contextMenuTriggerMode:mn,controller:e,directoriesWithGitChanges:i,dragAndDropEnabled:Ei,draggedPathSet:Ua,dragTarget:ml,gitLaneActive:wt,gitStatusByPath:n,handleRowDragEnd:Rh,handleRowDragStart:C5,handleRowTouchStart:_5,ignoredGitDirectories:r,ignoredInheritanceCache:be,instanceId:a,itemHeight:s,onKeyDown:of,onRowClick:en,openContextMenuForRow:Fo,registerButton:ae,registerRenameInput:Lt,renameView:Kn,renderDecorationForRow:uo,resolveIcon:jn,shouldSuppressContextMenu:rf,visualFocusPath:$n},K8={...Ka,registerButton:st};return ut("div",{ref:k,id:dn,"data-file-tree-context-menu-button-visibility":Ot&&yn?In:void 0,"data-file-tree-context-menu-trigger-mode":Ot?mn:void 0,"data-file-tree-has-context-menu-action-lane":Ot&&yn?"true":void 0,"data-file-tree-has-git-lane":wt?"true":void 0,"data-file-tree-virtualized-root":"true",onDragLeave:Ei?St:void 0,onDragOver:Ei?je:void 0,onDrop:Ei?_n:void 0,onKeyDown:of,onPointerLeave:Ot?ue:void 0,onPointerOver:Ot?sp:void 0,role:"tree",tabIndex:-1,style:{outline:"none",position:"relative"},children:[ut("style",{"data-file-tree-guide-style":"true",dangerouslySetInnerHTML:{__html:Me}}),ut("slot",{name:e5,"data-type":"header-slot"}),p?ut("div",{"data-file-tree-search-container":!0,"data-open":ft?"true":"false",children:ut("input",{ref:L,"aria-activedescendant":Rt,"aria-controls":dn,placeholder:"Search\u2026","data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Ve?"true":void 0,value:En,onBlur:()=>{d==="retain"&&!rn.current||e.closeSearch()},onFocus:Rn,onPointerDown:Rn,onInput:re=>{Rn();let $e=re.currentTarget;e.setSearch($e.value)}})}):null,ut("div",{ref:_,"data-file-tree-virtualized-scroll":"true",children:[h&&Xt&&co.length>0?ut("div",{"aria-hidden":"true","data-file-tree-sticky-overlay":"true",children:ut("div",{"data-file-tree-sticky-overlay-content":"true",style:{height:`${pt}px`},children:co.map((re,$e)=>ET(K8,re.row,`sticky:${R3(re.row)}`,{mode:"sticky",style:{left:"0",position:"absolute",right:"0",top:`${re.top}px`,zIndex:`${co.length-$e}`}}))})}):null,ut("div",{ref:w,"data-file-tree-virtualized-list":"true",style:{height:`${da}px`},children:[ut("div",{"data-file-tree-virtualized-sticky-offset":"true","aria-hidden":"true",style:{height:`${po}px`}}),ut("div",{"data-file-tree-virtualized-sticky":"true",style:{height:`${xr}px`,top:`${Ss}px`,bottom:`${uu}px`},children:[Nnt(Ka,Wi,Cs),uc!=null&&Zu!=null?ET(Ka,uc,`parked:${uc.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:Ge===uc.path?"none":void 0,position:"absolute",right:"0",top:`${Zu}px`}}):null,Fe!=null&&tt!=null?ET(Ka,Fe,`parked-drag:${Fe.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:"none",position:"absolute",right:"0",top:`${tt}px`}}):null]})]})]}),Ot?ut("div",{ref:g,"data-type":"context-menu-anchor","data-visible":hi?"true":"false",style:H3,children:[ut("button",{ref:y,type:"button","data-type":JE,"aria-label":"Options","aria-haspopup":"menu","aria-expanded":Ce!=null?"true":"false","data-visible":vt?"true":"false",onMouseDown:re=>{re.preventDefault()},onClick:re=>{if(re.preventDefault(),re.stopPropagation(),Ce!=null){Do();return}vr()},tabIndex:-1,style:Ze,children:ut(S3,{...jn("file-tree-icon-ellipsis")})}),Ce!=null?ut("slot",{name:fh}):null]}):null,Ce!=null?ut("div",{"data-type":"context-menu-wash","aria-hidden":"true",onMouseDownCapture:re=>{re.preventDefault(),Do()},onTouchStartCapture:re=>{re.preventDefault(),re.stopPropagation(),Do()},onTouchMoveCapture:re=>{re.preventDefault(),re.stopPropagation()},onWheelCapture:re=>{re.preventDefault(),re.stopPropagation()}}):null]})}var TU={hydrateRoot:(t,e)=>{_7e(_3(EU,e),t)},renderRoot:(t,e)=>{ST(_3(EU,e),t)},unmountRoot:t=>{ST(null,t)}};function P8(t,e){TU.renderRoot(t,e)}function f6e(t,e){TU.hydrateRoot(t,e)}function h6e(t){TU.unmountRoot(t)}var g6e=class{#e=new Map;#t=null;clearAll(){for(let t of this.#e.values())t.remove();this.#e.clear()}clearSlotContent(t){let e=this.#n(t);e!=null&&(e.remove(),this.#e.delete(t))}setHost(t){if(this.#t=t,t!=null){this.#i(t);for(let[e,n]of this.#e)this.#r(e,n)}}setSlotContent(t,e){let n=this.#n(t);if(n===e){e!=null&&(this.#e.set(t,e),this.#r(t,e));return}if(n?.remove(),e==null){this.#e.delete(t);return}this.#e.set(t,e),this.#r(t,e)}setSlotHtml(t,e){let n=e?.trim()??"";if(n.length===0){this.setSlotContent(t,null);return}let r=this.#n(t);if(r!=null&&r.innerHTML===n){this.#e.set(t,r),this.#r(t,r);return}let i=document.createElement("div");i.innerHTML=n,this.setSlotContent(t,i)}#n(t){let e=this.#e.get(t)??null;if(e!=null)return e;let n=this.#t;if(n==null)return null;for(let r of Array.from(n.children))if(r instanceof HTMLElement&&r.dataset.fileTreeManagedSlot===t)return r;return null}#r(t,e){e.slot=t,e.dataset.fileTreeManagedSlot=t,this.#t!=null&&e.parentNode!==this.#t&&this.#t.appendChild(e)}#i(t){for(let e of Array.from(t.children)){if(!(e instanceof HTMLElement))continue;let n=e.dataset.fileTreeManagedSlot;n==null||this.#e.has(n)||this.#e.set(n,e)}}};var b6e=0;function Pnt(t){return t!=null&&t.length>0?t:(b6e+=1,`pst_ft_${b6e}`)}function jnt({initialVisibleRowCount:t,itemHeight:e}){return t==null?mT:Math.max(0,t)*(e??pT)}function y6e(t){if(typeof document>"u")return;let e=document.createElement("div");e.innerHTML=t;let n=e.querySelector("svg");return n instanceof SVGElement?n:void 0}function x6e(t){return t.querySelector("#file-tree-icon-chevron")instanceof SVGElement&&t.querySelector("#file-tree-icon-file")instanceof SVGElement&&t.querySelector("#file-tree-icon-dot")instanceof SVGElement&&t.querySelector("#file-tree-icon-lock")instanceof SVGElement}function w6e(t){return Array.from(t.children).filter(e=>e instanceof SVGElement)}var v6e=class{static LoadedCustomComponent=Y4e;#e;#t;#n;#r;#i;#o;#s;#c;#a;#g=new g6e;#f;#d;#p;#m;#b;#C;#w;#$;#I;#E=null;#u;#N=!1;#P=!1;constructor(t){let{composition:e,density:n,fileTreeSearchMode:r,gitStatus:i,id:o,initialSearchQuery:a,icons:s,itemHeight:l,onSearchChange:c,onSelectionChange:u,overscan:d,renderRowDecoration:p,renaming:m,search:f,searchBlurBehavior:h,searchFakeFocus:x,stickyFolders:g,unsafeCSS:y,initialVisibleRowCount:b,...w}=t;this.#e=e,this.#n=Pnt(o),this.#m=iU(i),this.#b=s,this.#C=y,this.#r=u,this.#i=p,this.#o=m!=null&&m!==!1,this.#s=h,this.#c=f===!0,this.#a=x===!0,this.#f=U4e(n,l),this.#d={itemHeight:this.#f.itemHeight,overscan:d,stickyFolders:g,initialVisibleRowCount:b},this.#t=new s7e({...w,fileTreeSearchMode:r,initialSearchQuery:a,onSearchChange:c,renaming:m}),this.#I=this.#t.getSelectionVersion(),this.#E=this.#r==null?null:this.subscribe(()=>{this.#j()})}unmount(){this.#u!=null&&(h6e(this.#u),delete this.#u.dataset.fileTreeVirtualizedWrapper,this.#u=void 0),this.#g.clearAll(),this.#g.setHost(null),this.#p!=null&&(delete this.#p.dataset.fileTreeVirtualized,this.#q(this.#p),this.#p=void 0)}cleanUp(){this.unmount(),this.#E?.(),this.#E=null,this.#t.destroy()}getFileTreeContainer(){return this.#p}getItem(t){return this.#t.getItem(t)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#f.itemHeight}getDensityFactor(){return this.#f.factor}subscribe(t){let e=!1;return this.#t.subscribe(()=>{if(!e){e=!0;return}t()})}focusPath(t){this.#t.focusPath(t)}scrollToPath(t,e){this.#t.scrollToPath(t,e)}focusNearestPath(t){return this.#t.focusNearestPath(t)}add(t){this.#t.add(t)}batch(t){this.#t.batch(t)}move(t,e,n){this.#t.move(t,e,n)}onMutation(t,e){return this.#t.onMutation(t,e)}setSearch(t){this.#t.setSearch(t)}openSearch(t){this.#t.openSearch(t)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(t,e){return this.#t.startRenaming(t,e)}remove(t,e){this.#t.remove(t,e)}resetPaths(t,e){this.#t.resetPaths(t,e)}setComposition(t){this.#e=t;let e=this.#y();e!=null&&(this.#T(),P8(e.wrapper,this.#D()))}setGitStatus(t){this.#m=iU(t,this.#m);let e=this.#y();e!=null&&P8(e.wrapper,this.#D())}setIcons(t){this.#b=t;let e=this.#y();e!=null&&(this.#_(e.host,e.wrapper),P8(e.wrapper,this.#D()))}hydrate({fileTreeContainer:t}){let e=this.#F(t),n=this.#z(e);this.#T(),f6e(n,this.#D())}render({containerWrapper:t,fileTreeContainer:e}){let n=this.#F(e??this.#p,t),r=this.#z(n);this.#T(),P8(r,this.#D())}#Q(){return{initialViewportHeight:jnt({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#D(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#m?.statusByPath,ignoredGitDirectories:this.#m?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#m?.directoriesWithChanges,icons:this.#b,instanceId:this.#n,renamingEnabled:this.#o,renderRowDecoration:this.#i,searchBlurBehavior:this.#s,searchEnabled:this.#c,searchFakeFocus:this.#a,slotHost:this.#g,...this.#Q()}}#y(){let t=this.#p,e=this.#u;return t==null||e==null?null:{host:t,wrapper:e}}#_(t,e){let n=t.shadowRoot;n!=null&&(this.#U(n),this.#V(n)),this.#Z(e)}#j(){let t=this.#r;if(t==null)return;let e=this.#t.getSelectionVersion();e!==this.#I&&(this.#I=e,t(this.#t.getSelectedPaths()))}#T(){let t=this.#e?.header?.render;if(t!=null){this.#g.setSlotContent(e5,t());return}this.#g.setSlotHtml(e5,this.#e?.header?.html??null)}#U(t){let e=w6e(t).find(r=>x6e(r)),n=y6e(v8(f3(this.#b).set));n!=null&&(e!=null&&e.outerHTML===n.outerHTML||(e!=null?e.replaceWith(n):t.prepend(n)))}#V(t){let e=w6e(t),n=e.find(a=>x6e(a)),r=e.filter(a=>a!==n),i=f3(this.#b).spriteSheet?.trim()??"";if(i.length===0){for(let a of r)a.remove();return}let o=y6e(i);if(o==null){for(let a of r)a.remove();return}if(!(r.length===1&&r[0].outerHTML===o.outerHTML)){for(let a of r)a.remove();t.appendChild(o)}}#Z(t){let e=f3(this.#b);e.colored&&y3e(e.set)?t.dataset.fileTreeColoredIcons="true":delete t.dataset.fileTreeColoredIcons}#x(t){let e=t.querySelector(`style[${RG}]`);if(this.#w==null&&e instanceof HTMLStyleElement&&(this.#w=e),this.#C==null||this.#C===""){this.#w?.remove(),this.#w=void 0,this.#$=void 0;return}this.#w?.parentNode===t&&this.#$===this.#C||(this.#w??=document.createElement("style"),this.#w.setAttribute(RG,""),this.#w.parentNode!==t&&t.appendChild(this.#w),this.#w.textContent=W4e(this.#C),this.#$=this.#C)}#z(t){if(this.#u!=null)return this.#u;let e=t.shadowRoot;if(e==null)throw new Error("FileTree requires a shadow root");let n=Array.from(e.children).filter(i=>i instanceof HTMLDivElement&&typeof i.dataset.fileTreeId=="string"&&i.dataset.fileTreeId.length>0),r=n.find(i=>i.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#u=r??document.createElement("div"),this.#u.dataset.fileTreeId=this.#n,this.#u.dataset.fileTreeVirtualizedWrapper="true",this.#_(t,this.#u),this.#u.parentNode!==e&&e.appendChild(this.#u),this.#u}#F(t,e){let n=t??this.#p??document.createElement(mh);e!=null&&n.parentNode!==e&&e.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:"open"});return gT(n,r),this.#x(r),n.dataset.fileTreeVirtualized="true",n.style.display="flex",this.#M(n),this.#g.setHost(n),this.#p=n,n}#M(t){t.style.getPropertyValue("--trees-item-height")===""&&(t.style.setProperty("--trees-item-height",`${String(this.#f.itemHeight)}px`),this.#N=!0),t.style.getPropertyValue("--trees-density-override")===""&&(t.style.setProperty("--trees-density-override",String(this.#f.factor)),this.#P=!0)}#q(t){this.#N&&(t.style.removeProperty("--trees-item-height"),this.#N=!1),this.#P&&(t.style.removeProperty("--trees-density-override"),this.#P=!1)}};var Cn=R(ee(),1),ou=t=>({width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0}),l5=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(12),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M4 6l4 4 4-4"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},_6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M7 3H4.6A1.6 1.6 0 0 0 3 4.6v6.8A1.6 1.6 0 0 0 4.6 13h6.8a1.6 1.6 0 0 0 1.6-1.6V9"}),i=(0,Cn.jsx)("path",{d:"M9.5 3H13v3.5M13 3L8 8"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},S6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M4.6 5.2L2.2 8l2.4 2.8M11.4 5.2L13.8 8l-2.4 2.8M9 4.9L7 11.1"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,strokeWidth:1.45,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},L6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(14),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M3.5 8.5l3 3 6-7"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},M6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(12),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},E6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(17),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),i=(0,Cn.jsx)("path",{d:"M8 4.75v3.75M8 11.1v.15"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},T6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M10 3.5L5.5 8l4.5 4.5"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},R6e=t=>{let e=(0,Ha.c)(6),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i,o;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M13 2.5v11"}),i=(0,Cn.jsx)("path",{d:"M2.8 5.2h5.4a2.3 2.3 0 0 1 0 4.6H4.2"}),o=(0,Cn.jsx)("path",{d:"M6 8l-1.9 1.8L6 11.6"}),e[1]=r,e[2]=i,e[3]=o):(r=e[1],i=e[2],o=e[3]);let a;return e[4]!==t?(a=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i,o]}),e[4]=t,e[5]=a):a=e[5],a},A6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M5 1.8v4.6M3 4.6l2 1.9 2-1.9M5 14.2V9.6M3 11.4l2-1.9 2 1.9M9.4 6.4h4.4M9.4 9.6h3.2"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},$6e=t=>{let e=(0,Ha.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,Cn.jsx)("rect",{x:"1.6",y:"2.1",width:"12.8",height:"11.8",rx:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.25"}),r=(0,Cn.jsx)("rect",{x:"3.2",y:"3.7",width:"4.4",height:"8.6",rx:"0.8",fill:"var(--acpmux-del)"}),i=(0,Cn.jsx)("rect",{x:"8.4",y:"3.7",width:"4.4",height:"8.6",rx:"0.8",fill:"var(--acpmux-add)"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16","aria-hidden":!0,...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o},I6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("rect",{x:"1.6",y:"5.4",width:"9.6",height:"9",rx:"2.2"}),i=(0,Cn.jsx)("path",{d:"M4.8 5.3V4a2.2 2.2 0 0 1 2.2-2.2h5.4A2.2 2.2 0 0 1 14.6 4v5.2a2.2 2.2 0 0 1-2.2 2.2h-1.2"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},N6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M1.6 8s2.3-4.4 6.4-4.4S14.4 8 14.4 8s-2.3 4.4-6.4 4.4S1.6 8 1.6 8z"}),i=(0,Cn.jsx)("circle",{cx:"8",cy:"8",r:"2"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},TT=t=>{let e=(0,Ha.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,Cn.jsx)("circle",{cx:"3.5",cy:"8",r:"1.1"}),r=(0,Cn.jsx)("circle",{cx:"8",cy:"8",r:"1.1"}),i=(0,Cn.jsx)("circle",{cx:"12.5",cy:"8",r:"1.1"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":!0,...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o},P6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("circle",{cx:"7",cy:"7",r:"4.6"}),i=(0,Cn.jsx)("path",{d:"M10.4 10.4l3.4 3.4"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o};var k6e="acpmux-file-icon-sprite";function Ont(){if(typeof document>"u"||!document.body||document.getElementById(k6e))return;let t=document.createElement("div");t.id=k6e,t.hidden=!0,t.innerHTML=v8("complete"),document.body.prepend(t)}var Dnt=C8({set:"complete",colored:!0});function j6e(t){let e=(0,Ha.c)(19),{path:n}=t,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0],(0,C6e.useLayoutEffect)(Ont,r);let i,o,a,s,l,c,u;if(e[1]!==n){let f=Dnt.resolveIcon("file-tree-icon-file",n).name;i=f.startsWith("file-tree-builtin-")?f:"file-tree-builtin-default",o="acpmux-file-icon",a=16,s=16,l="0 0 16 16",c=!0,u=i.slice(18),e[1]=n,e[2]=i,e[3]=o,e[4]=a,e[5]=s,e[6]=l,e[7]=c,e[8]=u}else i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];let d=`#${i}`,p;e[9]!==d?(p=(0,Cn.jsx)("use",{href:d}),e[9]=d,e[10]=p):p=e[10];let m;return e[11]!==o||e[12]!==a||e[13]!==s||e[14]!==l||e[15]!==c||e[16]!==u||e[17]!==p?(m=(0,Cn.jsx)("svg",{className:o,width:a,height:s,viewBox:l,"aria-hidden":c,"data-icon":u,children:p}),e[11]=o,e[12]=a,e[13]=s,e[14]=l,e[15]=c,e[16]=u,e[17]=p,e[18]=m):m=e[18],m}var au=R(Q(),1);var sa=R(Q(),1),ic=R(ee(),1),O6e=typeof window>"u"?sa.useEffect:sa.useLayoutEffect;function Fnt(t,e,n){let r=t!=null?(0,ic.jsx)("div",{slot:e5,children:t}):null,i=e!=null&&n!=null?(0,ic.jsx)("div",{slot:fh,children:e(n.item,n.context)}):null;return r==null&&i==null?null:(0,ic.jsxs)(ic.Fragment,{children:[r,i]})}function Bnt(t,e){return typeof window>"u"&&e!=null?(0,ic.jsxs)(ic.Fragment,{children:[(0,ic.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:e.shadowHtml}}),t]}):(0,ic.jsx)(ic.Fragment,{children:t})}function znt(t){let e=t.shadowRoot;return e?.querySelector("[data-file-tree-id]")instanceof HTMLElement||e?.querySelector("[data-file-tree-id]")instanceof SVGElement?!0:t.querySelector('template[shadowrootmode="open"]')instanceof HTMLTemplateElement}function qnt(t,e,n,r,i){let o={...t??{}};if(e!=null&&delete o.header,n){let a=t?.contextMenu,s=a?.onClose,l=a?.onOpen;o.contextMenu={...a??{},enabled:!0,onClose:()=>{s?.(),r()},onOpen:(c,u)=>{i(c,u),l?.(c,u)}},delete o.contextMenu.render}return o.header!=null||o.contextMenu!=null?o:void 0}function RU({header:t,id:e,model:n,preloadedData:r,renderContextMenu:i,...o}){let[a,s]=(0,sa.useState)(null),[l,c]=(0,sa.useState)(null),u=(0,sa.useRef)(n.getComposition()),d=(0,sa.useRef)(n);d.current!==n&&(d.current=n,u.current=n.getComposition());let p=i!=null,m=(0,sa.useCallback)(()=>{s(null)},[]),f=(0,sa.useCallback)((v,k)=>{s({context:k,item:v})},[]),h=u.current,x=(0,sa.useMemo)(()=>qnt(h,t,p,m,f),[h,m,f,p,t]),g=(0,sa.useCallback)(v=>{c(v)},[]);(0,sa.useEffect)(()=>{p||s(null)},[p]),O6e(()=>{n.setComposition(x)},[x,n]),O6e(()=>{if(l!=null)return r!=null&&znt(l)?n.hydrate({fileTreeContainer:l}):n.render({fileTreeContainer:l}),()=>{n.unmount(),n.setComposition(h)}},[h,l,n,r]);let y=Bnt(Fnt(t,i,a),r),b=e??r?.id,w={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...o.style};return(0,ic.jsx)(mh,{...o,id:b,ref:g,style:w,suppressHydrationWarning:r!=null,children:y})}var A3=R(Q(),1);function AU(t){let[e]=(0,A3.useState)(()=>new v6e(t)),n=(0,A3.useRef)({timeout:null,model:e});return(0,A3.useEffect)(()=>{let{current:r}=n;return r.timeout!=null&&(clearTimeout(r.timeout),r.timeout=null),()=>{r.timeout=setTimeout(()=>r.model.cleanUp(),1)}},[]),{model:e}}var Hnt="cmux.experiments";function Gnt(){try{let t=globalThis.localStorage?.getItem(Hnt),e=t?JSON.parse(t):void 0;return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}catch{return{}}}function D6e(t,e){return typeof e=="string"&&Object.hasOwn(t.arms,e)}function $U(t,e={}){let n=e.overrides??globalThis.cmuxExperiments??{};if(D6e(t,n[t.id]))return n[t.id];let r=e.stored??Gnt();return D6e(t,r[t.id])?r[t.id]:t.defaultArm}var F6e={id:"diff-tree-disclosure",title:"Changes tree: folder open and close",description:"How the rows of a folder appear and leave when it opens or closes (click, or Left and Right). Watch the rows below the folder, the chevron, and a click that reverses a motion halfway.",arms:{a:{label:"Instant (today)",description:"No motion: the rows appear and leave in one frame."},b:{label:"Grow, fade, slide",description:"The rows below move with the appear and disappear springs; the children fade in and slide down 8 px inside the growing gap."},c:{label:"Siblings glide, children stagger",description:"The rows below glide on the move spring (FLIP); the children stay put and fade in one after another, 15 ms apart."},d:{label:"Drawer (Finder)",description:"The children slide out from under the folder row, clipped at its edge, with no fade; the rows below move with them."},e:{label:"Instant, highlight",description:"The layout changes in one frame; the new rows cross-fade in and carry a short tint. What every arm does under Reduce Motion."},f:{label:"Drawer, capped travel",description:"Arm d with a soft fade (0.4 to 1) and travel capped at the room below the folder, so a 100-file folder opens as fast as a 3-file one."}},defaultArm:"a"},B6e={w12:12,w20:20,w28:28},z6e={id:"diff-tree-name-fade",title:"Changes tree: fade at the end of a long name",description:"A clipped file or folder name fades out at the right edge (no ellipsis); hover or focus scrolls it once, like tab titles. The arms vary the fade's length.",arms:{w12:{label:"12 px",description:"A short fade: more of the name stays opaque."},w20:{label:"20 px (tabs)",description:"The tab title's fade (TabTunables titleFadeWidth)."},w28:{label:"28 px",description:"A long, soft fade."}},defaultArm:"w20"};var qm={move:{response:.2,dampingFraction:.9},appear:{response:.18,dampingFraction:.9},disappear:{response:.15,dampingFraction:.9}},IU={hover:80,fadeIn:120,fadeOut:80,crossfade:100,highlight:1200};function q6e(t){for(let n=0;n<5*t.response+1;n+=.001)if(j8(t,n)>=.95)return n;return 5*t.response}function j8(t,e){if(e<=0)return 0;let n=2*Math.PI/Math.max(t.response,.001),r=Math.max(t.dampingFraction,0);if(r<1){let s=n*Math.sqrt(1-r*r);return 1-Math.exp(-r*n*e)*(Math.cos(s*e)+r*n/s*Math.sin(s*e))}if(r===1)return 1-Math.exp(-n*e)*(1+n*e);let i=n*Math.sqrt(r*r-1),o=-r*n+i,a=-r*n-i;return 1-(a*Math.exp(o*e)-o*Math.exp(a*e))/(a-o)}function NU(t){let n=0;for(let r=0;r<5*t.response+1;r+=.001)Math.abs(1-j8(t,r))>=.005&&(n=r);return n+.001}function H6e(t,e=24){let n=NU(t),r=[];for(let i=0;i<=e;i+=1){let o=i===e?1:j8(t,n*i/e);r.push(Math.round(o*1e4)/1e4)}return{durationMs:Math.round(n*1e3),progress:r}}var $3={kind:"spring",open:qm.appear,close:qm.disappear,drawer:!1,slidePx:0,fade:"none",staggerMs:0,capTravel:!1,tint:!1},Unt={a:{...$3,kind:"none"},b:{...$3,slidePx:8,fade:"linear"},c:{...$3,open:qm.move,close:qm.move,fade:"stagger",staggerMs:15},d:{...$3,drawer:!0},e:{...$3,kind:"snap",tint:!0},f:{...$3,drawer:!0,fade:"soft",capTravel:!0}};function G6e(t,e){let n=Unt[t];return!e||n.kind==="none"?n:{...n,kind:"snap",tint:!1}}function Vnt(t){return Math.round(NU(t)*1e3)}function U6e(t,e){let n=t.open?1:0,r=e-t.start;return r>=t.duration?n:r<=0?t.q0:t.q0+(n-t.q0)*j8(t.spring,r/1e3)}function V6e(t,e,n,r){let i=e.open?n.open:n.close,o=t?U6e(t,r):e.open?0:1;return{...e,q0:o,start:r,spring:i,duration:Vnt(i)}}function Z6e(t,e,n){return n.capTravel?Math.max(0,Math.min(t,Math.max(e,0))):t}var Znt=t=>t.endsWith("/")?t:`${t}/`;function PU(t,e,n){return t===n.path?"self":t.startsWith(Znt(n.path))?"descendant":e>n.top?"following":"before"}function D8(t,e,n,r){let i=0,o=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,s=1,l=0,c=[...e].sort((u,d)=>u.top-d.top);for(let u of c){let d=U6e(u,r),p=PU(t.path,t.top,u);if(p==="self")l+=u.open?-90*(1-d):90*d;else if(p==="following")i+=u.open?-u.height+d*u.travel:d*u.travel;else if(p==="descendant"){let m=D8({path:u.path,top:u.top,height:u.rowHeight},c.filter(x=>x!==u),n,r).y,f=u.top+u.rowHeight+m,h=Math.max(0,Math.round((t.top-u.top-u.rowHeight)/u.rowHeight));n.drawer&&(i+=-(1-d)*u.travel),n.slidePx&&(i+=-(1-d)*n.slidePx),o=Math.max(o,f),a=Math.min(a,f+d*u.travel),s*=Wnt(n,d,h,u.duration)}}return{y:i,clipTop:o,clipBottom:a,opacity:s,rotate:l}}function Wnt(t,e,n,r){switch(t.fade){case"none":return 1;case"linear":return e;case"soft":return .4+.6*e;case"stagger":{let i=Math.min(n,8)*(t.staggerMs/Math.max(r,1));return Math.max(0,Math.min(1,(e-i)/.5))}}}function W6e(t,e){let r=Math.max(e,...t.map(o=>o.start+o.duration))-e;if(r<=0)return[e];let i=Math.min(48,Math.max(2,Math.ceil(r/8.33)));return Array.from({length:i+1},(o,a)=>e+r*a/i)}var O8=t=>Math.round(t*100)/100;function Knt(t,e,n){let r=e+t.y,i=Math.max(0,t.clipTop-r),o=Math.max(0,r+n-t.clipBottom);return i<=0&&o<=0?null:{top:Math.min(n,O8(i)),bottom:Math.min(n,O8(o))}}function K6e(t,e,n,r){let i=r.map(f=>D8(t,e,n,f)),o=i.some(f=>Math.abs(f.y)>.01),a=i.some(f=>f.opacity<.999),s=i.map(f=>Knt(f,t.top,t.height)),l=s.some(Boolean),c=i.some(f=>Math.abs(f.rotate)>.01),u=r[r.length-1]-r[0],d=f=>u>0?(r[f]-r[0])/u:f/Math.max(1,r.length-1),p=o||a||l?i.map((f,h)=>{let x={offset:d(h)};if(o&&(x.transform=`translate3d(0, ${O8(f.y)}px, 0)`),a&&(x.opacity=O8(f.opacity)),l){let g=s[h];x.clipPath=g?`inset(${g.top}px -100vw ${g.bottom}px -100vw)`:"inset(0px -100vw 0px -100vw)"}return x}):null,m=c?i.map((f,h)=>({offset:d(h),rotate:`${O8(f.rotate)}deg`})):null;return{row:p,chevron:m}}function X6e(t,e){let n={keyframes:[{opacity:0},{opacity:1}],duration:IU.crossfade};return t.tint?{fade:n,tint:{keyframes:[{backgroundColor:`color-mix(in srgb, ${e} 22%, transparent)`,easing:"ease-out"},{backgroundColor:`color-mix(in srgb, ${e} 0%, transparent)`}],duration:IU.highlight}}:{fade:n}}var Xnt='[data-type="item"]:not([data-item-parked]):not([data-file-tree-sticky-row])',Ynt='[data-icon-name="file-tree-icon-chevron"]',Qnt=()=>globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1;function Q6e(t,e){if(e==="a")return()=>{};let n=null,r=null,i=null,o=[],a=[],s=null,l=[],c=0,u=0,d=()=>n?.querySelector('[data-file-tree-virtualized-list="true"]')??null,p=()=>n?.querySelector('[data-file-tree-virtualized-scroll="true"]')??null,m=()=>[...n?.querySelectorAll(Xnt)??[]].filter(S=>!s?.contains(S)),f=()=>{if(n)return!0;let S=t.querySelector("*");return S?.shadowRoot?(n=S.shadowRoot,r=new MutationObserver(L),r.observe(n,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-expanded","data-item-path"]}),!0):!1},h=S=>{let C=S.cloneNode(!0);for(let T of["role","id","tabindex"])C.removeAttribute(T);return C},x=(S,C)=>{let T=new Map;for(let M of C)T.set(M.path,{top:M.top,height:M.height,expanded:M.element.getAttribute("aria-expanded"),copy:h(M.element)});for(let M of a)T.set(M.path,{top:M.top,height:M.height,expanded:M.element.getAttribute("aria-expanded"),copy:M.element});i={time:performance.now(),height:Y6e(S),rows:T}},g=()=>{u||(u=requestAnimationFrame(()=>{u=0,f();let S=d();if(!S||o.length)return;let C=S.getBoundingClientRect().top;x(S,m().map(T=>{let M=T.getBoundingClientRect();return{element:T,path:T.dataset.itemPath??"",top:M.top-C,height:M.height}}))}))},y=()=>{for(let S of l)S.cancel();l=[]},b=()=>{for(let S of a)S.element.remove();a=[]},w=()=>{y(),b(),o=[],s?.remove(),s=null,g()},v=S=>(s?.isConnected||(s=document.createElement("div"),s.dataset.cmuxTreeGhosts="",s.setAttribute("aria-hidden","true"),s.style.cssText="position:absolute;inset:0;pointer-events:none;z-index:1",S.append(s)),s),k=(S,C)=>{let T=d();if(!T)return;performance.mark("cmux-motion:tree-plan-start"),y();let M=document.timeline.currentTime,A=T.getBoundingClientRect().top,$=m().map(H=>{let ne=H.getBoundingClientRect();return{element:H,path:H.dataset.itemPath??"",top:ne.top-A,height:ne.height}}),N=p(),F=N?N.getBoundingClientRect().bottom-A:Number.POSITIVE_INFINITY,D=new Map($.map(H=>[H.path,H]));if(C){let H=D.get(C.path),ne=i;if(H&&ne){let J=o.find(be=>be.path===C.path),W=o,ie=Math.abs(Y6e(T)-ne.height),Z=F-(H.top+H.height),ce=V6e(J,{path:C.path,open:C.open,height:ie,travel:Z6e(ie,Z,S),top:H.top,rowHeight:H.height},S,M);o=[...o.filter(be=>be!==J),ce];let se=[];for(let[be,le]of ne.rows){if(D.has(be))continue;let ge=PU(be,le.top,ce);if(!(C.open?ge==="following":ge==="descendant"||ge==="following")&&!a.some(Le=>Le.path===be))continue;let me=a.find(Le=>Le.path===be),Se=le.top+D8({path:be,top:le.top,height:le.height},W,S,M).y,de=D8({path:be,top:Se,height:le.height},o,S,M).y;se.push({path:be,top:Se-de,height:le.height,element:me?.element??le.copy})}for(let be of a)!se.includes(be)&&!se.some(le=>le.element===be.element)&&be.element.remove();a=se}}if(o=o.map(H=>({...H,top:D.get(H.path)?.top??H.top})).filter(H=>M<H.start+H.duration),!o.length){w(),performance.measure("cmux-motion:tree-plan","cmux-motion:tree-plan-start");return}x(T,$);let O=W6e(o,M),P={duration:O[O.length-1]-M,easing:"linear",fill:"both"},U=a.length?v(T):null;for(let H of a)H.element.style.cssText+=`;position:absolute;left:0;right:0;top:${H.top}px;height:${H.height}px;margin:0`,H.element.parentNode!==U&&U?.append(H.element);let G=[...$.map(H=>({...H})),...a.map(H=>({element:H.element,path:H.path,top:H.top,height:H.height}))];for(let H of G){let ne=K6e(H,o,S,O);ne.row&&l.push(H.element.animate(ne.row,P));let J=ne.chevron&&H.element.querySelector(Ynt);J&&ne.chevron&&l.push(J.animate(ne.chevron,P))}let j=++c,V=l[0];V?.finished.then(()=>j===c&&w(),()=>{}),V||w(),performance.measure("cmux-motion:tree-plan","cmux-motion:tree-plan-start")},_=(S,C)=>{if(!C.open||!i)return;let T=getComputedStyle(t).getPropertyValue("--agent-accent").trim()||"#4c8dff",{fade:M,tint:A}=X6e(S,T);for(let $ of m()){let N=$.dataset.itemPath??"";i.rows.has(N)||!N.startsWith(C.path.endsWith("/")?C.path:`${C.path}/`)||(l.push($.animate(M.keyframes,{duration:M.duration,easing:"ease-out"})),A&&l.push($.animate(A.keyframes,{duration:A.duration})))}};function L(S){if(S.every(M=>s?.contains(M.target)||[...M.addedNodes,...M.removedNodes].every(A=>A===s)))return;let C=G6e(e,Qnt()),T=i?Jnt(i,m()):void 0;if(T==="many")return w();if(T){C.kind==="snap"?(w(),_(C,T)):k(C,T);return}o.length?k(C):g()}return f(),g(),()=>{r?.disconnect(),w(),u&&cancelAnimationFrame(u)}}function Jnt(t,e){let n=[];for(let r of e){let i=r.dataset.itemPath??"",o=t.rows.get(i)?.expanded,a=r.getAttribute("aria-expanded");o&&a&&o!==a&&n.push({path:i,open:a==="true"})}return n.length>1?"many":n[0]}var Y6e=t=>Number.parseFloat(t.style.height)||0;var F8={delayMs:600,pointsPerSecond:40,minimumScrollMs:400,holdMs:1200,minimumTravel:2};function J6e(t){let e=Math.max(0,t.span),n=Math.max(0,Math.min(t.visibleWidth,e)),r=Math.max(0,t.textWidth),i=e>0&&r>n+.5,o=Math.min(e,n+Math.max(0,t.trailingPadding)),a=Math.min(Math.max(0,t.fadeWidth),Math.max(o,1)*.5),s=Math.max(0,o-a),l=i?Math.ceil(Math.max(0,r-s)):0;return{truncated:i,fadeStart:s,fadeEnd:o,marqueeTravel:l}}function exe(t,e){return e||t<F8.minimumTravel?null:{delayMs:F8.delayMs,scrollMs:Math.max(F8.minimumScrollMs,t/F8.pointsPerSecond*1e3),holdMs:F8.holdMs,backMs:Math.round(q6e(qm.move)*1e3)}}function txe(t,e){let n=e.scrollMs+e.holdMs+e.backMs,r=`${-t}px 0`;return{duration:n,keyframes:[{offset:0,translate:"0px 0",easing:"ease-in-out"},{offset:e.scrollMs/n,translate:r,easing:"linear"},{offset:(e.scrollMs+e.holdMs)/n,translate:r,easing:"ease-out"},{offset:1,translate:"0px 0"}]}}var nxe='[data-type="item"]',rxe='[data-item-section="content"]',jU=4,ixe="cmux-ambient:marquee",OU=()=>globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1;function oxe(t,e){let n=t.querySelector("*"),r=n?.shadowRoot;if(!n||!r)return()=>{};n.style.setProperty("--cmux-title-fade",`${e.fadeWidth}px`),n.style.setProperty("--cmux-title-lead",`${jU}px`);let i=0,o=null,a=null,s=null,l=()=>{i=0;let v=OU(),k=[...r.querySelectorAll(nxe)].flatMap(_=>{let L=_.querySelector(rxe),S=L?.firstElementChild;if(!L||!S)return[];let C=L.clientWidth-jU,T=J6e({textWidth:Math.max(S.getBoundingClientRect().width,L.scrollWidth-jU),span:C,visibleWidth:C,trailingPadding:0,fadeWidth:e.fadeWidth});return[{row:_,content:L,fade:T}]});for(let{row:_,content:L,fade:S}of k){S.truncated?(L.dataset.cmuxClipped="",L.dataset.cmuxTravel=String(S.marqueeTravel)):(delete L.dataset.cmuxClipped,delete L.dataset.cmuxTravel);let C=_.getAttribute("aria-label")??"";v&&S.truncated?_.title=C:_.title===C&&_.removeAttribute("title")}},c=()=>{i||(i=requestAnimationFrame(l))},u=v=>{if(!o)return;let{text:k,animation:_}=o;o=null;let L=v&&Number.parseFloat(getComputedStyle(k).translate)||0;if(_.cancel(),Math.abs(L)<=.5||OU())return;let{durationMs:S,progress:C}=H6e(qm.disappear),T=C.map((M,A)=>({offset:A/(C.length-1),translate:`${Math.round(L*(1-M)*100)/100}px 0`}));k.animate(T,{duration:S,easing:"linear",id:ixe})},d=v=>{let k=v.dataset.itemPath??"";if(o?.row===v&&o.path===k)return;u(!0);let _=v.querySelector(rxe),L=_?.firstElementChild;if(!_||!L||_.dataset.cmuxClipped===void 0)return;let S=Number(_.dataset.cmuxTravel),C=exe(S,OU());if(!C)return;let{keyframes:T,duration:M}=txe(S,C);o={row:v,path:k,text:L,animation:L.animate(T,{duration:M,delay:C.delayMs,id:ixe})}},p=()=>a??s,m=()=>{let v=p();v?d(v):u(!0)},f=v=>v.composedPath().find(k=>k instanceof HTMLElement&&k.matches(nxe))??null,h=v=>{a=f(v),m()},x=()=>{a=null,m()},g=v=>{s=f(v),m()},y=()=>{s=null,m()},b=new MutationObserver(()=>{o&&(!o.row.isConnected||o.row.dataset.itemPath!==o.path)&&u(!1),c()});b.observe(r,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["data-item-path"]});let w=new ResizeObserver(c);return w.observe(n),r.addEventListener("pointerover",h),n.addEventListener("pointerleave",x),r.addEventListener("focusin",g),r.addEventListener("focusout",y),c(),()=>{b.disconnect(),w.disconnect(),r.removeEventListener("pointerover",h),n.removeEventListener("pointerleave",x),r.removeEventListener("focusin",g),r.removeEventListener("focusout",y),i&&cancelAnimationFrame(i),u(!1)}}var Gu=R(ee(),1);function axe({files:t,selected:e,onSelect:n}){let r=we(),i=$U(F6e),o=B6e[$U(z6e)],a=(0,au.useCallback)(y=>{if(!y)return;let b=Q6e(y,i),w=oxe(y,{fadeWidth:o});return()=>{b(),w()}},[i,o]),s=(0,au.useMemo)(()=>new Map(t.map(y=>[y.displayPath,y])),[t]),l=(0,au.useRef)(s);l.current=s;let c=({item:y})=>{let b=l.current.get(y.path);if(!b||y.kind!=="file")return null;let w=[b.additions>0&&`+${b.additions}`,b.deletions>0&&`-${b.deletions}`].filter(Boolean).join(" ");return w?{text:w}:null},u=nu(y=>{let b=l.current.get(y[y.length-1]??"");b&&b.path!==e&&n(b.path)}),d=y=>{if(y.metaKey||y.ctrlKey||y.shiftKey||y.altKey||"key"in y&&y.key!=="Enter"&&y.key!==" ")return;let b=y.nativeEvent.composedPath().find(v=>v instanceof HTMLElement&&v.dataset.itemPath!==void 0),w=b&&l.current.get(b.dataset.itemPath);w&&w.path===e&&n(w.path)},[p,m]=(0,au.useState)(""),f=(0,au.useMemo)(()=>{let y=p.trim().toLowerCase();return t.map(b=>b.displayPath).filter(b=>!y||b.toLowerCase().includes(y))},[t,p]),h=t.find(y=>y.path===e)?.displayPath,{model:x}=AU({paths:f,flattenEmptyDirectories:!0,initialExpansion:"open",initialSelectedPaths:h?[h]:[],onSelectionChange:u,icons:{set:"complete",colored:!0},itemHeight:28,renderRowDecoration:c,unsafeCSS:Ore}),g=(0,au.useRef)(f);return(0,au.useEffect)(()=>{g.current.length===f.length&&g.current.every((y,b)=>y===f[b])||(g.current=f,x.resetPaths(f))},[x,f]),(0,Gu.jsxs)(Gu.Fragment,{children:[(0,Gu.jsxs)("label",{className:"acpmux-diff-filter",children:[(0,Gu.jsx)(P6e,{width:14,height:14}),(0,Gu.jsx)("input",{type:"search","aria-label":r("changes.filterFiles"),placeholder:r("changes.filterPlaceholder"),defaultValue:"",onInput:y=>m(y.currentTarget.value)})]}),f.length===0&&(0,Gu.jsx)("div",{className:"acpmux-diff-tree-empty",children:r("changes.noMatchingFiles")}),(0,Gu.jsx)("div",{className:"acpmux-diff-tree-motion",ref:a,children:(0,Gu.jsx)(RU,{model:x,className:"acpmux-diff-tree-host",onClick:d,onKeyDown:d})})]})}var sxe=R(qe(),1),RT=R(ee(),1);function Hm(t){let e=(0,sxe.c)(7),{additions:n,deletions:r}=t,i;e[0]!==n?(i=(0,RT.jsxs)("span",{className:"acpmux-diff-add",children:["+",n]}),e[0]=n,e[1]=i):i=e[1];let o;e[2]!==r?(o=(0,RT.jsxs)("span",{className:"acpmux-diff-del",children:["-",r]}),e[2]=r,e[3]=o):o=e[3];let a;return e[4]!==i||e[5]!==o?(a=(0,RT.jsxs)("span",{className:"acpmux-diff-counts",children:[i,o]}),e[4]=i,e[5]=o,e[6]=a):a=e[6],a}var lxe=R(qe(),1),cxe=R(Q(),1);var c5=R(ee(),1);function uxe(){let t=(0,lxe.c)(2),e=we(),n;if(t[0]!==e){let r=[[["j","k"],e("diff.keys.files")],[["n","p"],e("diff.keys.changes")],[["esc"],e("diff.keys.back")]];n=(0,c5.jsx)("footer",{className:"acpmux-diff-keys","aria-label":e("diff.keys"),children:r.map(ert)}),t[0]=e,t[1]=n}else n=t[1];return n}function ert(t,e){let[n,r]=t;return(0,c5.jsxs)(cxe.default.Fragment,{children:[e>0&&(0,c5.jsx)("span",{className:"acpmux-diff-keys-dot","aria-hidden":"true",children:"\xB7"}),(0,c5.jsxs)("span",{className:"acpmux-diff-key",children:[n.map(trt),r]})]},r)}function trt(t){return(0,c5.jsx)(u3,{children:t},t)}var vxe=R(qe(),1);var mxe=R(qe(),1);var dxe=R(qe(),1),Gm=R(Q(),1);var u5=R(ee(),1);function pxe(t){let e=(0,dxe.c)(51),{path:n,name:r,collapsed:i,onToggleCollapsed:o,onOpenInTab:a}=t,s=we(),[l,c]=(0,Gm.useState)(!1),u=(0,Gm.useRef)(null),d=(0,Gm.useRef)(null),p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={side:"below",align:"start"},e[0]=p):p=e[0];let m=Ys(u,d,l,p),f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f=U=>{c(!1),U&&u.current?.focus()},e[1]=f):f=e[1];let h=f,x,g;e[2]!==l?(x=()=>{l&&d.current?.querySelector('[role="menuitem"]')?.focus()},g=[l],e[2]=l,e[3]=x,e[4]=g):(x=e[3],g=e[4]),(0,Gm.useLayoutEffect)(x,g);let y,b;e[5]!==l?(y=()=>{if(!l)return;let U=G=>{let j=G.target;!d.current?.contains(j)&&!u.current?.contains(j)&&c(!1)};return document.addEventListener("pointerdown",U,!0),()=>document.removeEventListener("pointerdown",U,!0)},b=[l],e[5]=l,e[6]=y,e[7]=b):(y=e[6],b=e[7]),(0,Gm.useEffect)(y,b);let w;e[8]!==s?(w=s("changes.copyPath"),e[8]=s,e[9]=w):w=e[9];let v;e[10]!==n?(v=()=>ba(n),e[10]=n,e[11]=v):v=e[11];let k;e[12]!==w||e[13]!==v?(k={label:w,run:v},e[12]=w,e[13]=v,e[14]=k):k=e[14];let _;e[15]!==a||e[16]!==s?(_=a?[{label:s("changes.openInTab"),run:a}]:[],e[15]=a,e[16]=s,e[17]=_):_=e[17];let L;e[18]!==i||e[19]!==s?(L=s(i?"changes.expandFile":"changes.collapseFile"),e[18]=i,e[19]=s,e[20]=L):L=e[20];let S;e[21]!==o||e[22]!==L?(S={label:L,run:o},e[21]=o,e[22]=L,e[23]=S):S=e[23];let C;e[24]!==_||e[25]!==S||e[26]!==k?(C=[k,..._,S],e[24]=_,e[25]=S,e[26]=k,e[27]=C):C=e[27];let T=C,M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M=U=>{let G=[...d.current?.querySelectorAll('[role="menuitem"]')??[]],j=G.indexOf(document.activeElement),V=H=>G[(H+G.length)%G.length]?.focus();U.key==="Escape"?(U.preventDefault(),U.stopPropagation(),h(!0)):U.key==="ArrowDown"||U.key==="ArrowUp"?(U.preventDefault(),V(j+(U.key==="ArrowDown"?1:-1))):U.key==="Home"||U.key==="End"?(U.preventDefault(),V(U.key==="Home"?0:G.length-1)):U.key==="Enter"||U.key===" "?(U.preventDefault(),G[j]?.click()):U.key==="Tab"&&h(!1)},e[28]=M):M=e[28];let A=M,$;e[29]!==r||e[30]!==s?($=s("changes.moreActionsFor",{name:r}),e[29]=r,e[30]=s,e[31]=$):$=e[31];let N;e[32]!==s?(N=s("changes.moreActions"),e[32]=s,e[33]=N):N=e[33];let F;e[34]!==l?(F=()=>l?h(!0):c(!0),e[34]=l,e[35]=F):F=e[35];let D;e[36]===Symbol.for("react.memo_cache_sentinel")?(D=(0,u5.jsx)(TT,{}),e[36]=D):D=e[36];let O;e[37]!==l||e[38]!==$||e[39]!==N||e[40]!==F?(O=(0,u5.jsx)("button",{ref:u,type:"button",className:"acpmux-fh-btn","aria-label":$,"aria-haspopup":"menu","aria-expanded":l,title:N,onClick:F,children:D}),e[37]=l,e[38]=$,e[39]=N,e[40]=F,e[41]=O):O=e[41];let B;e[42]!==T||e[43]!==m||e[44]!==r||e[45]!==l||e[46]!==s?(B=l&&(0,u5.jsx)("div",{ref:d,style:m,role:"menu",tabIndex:-1,className:"acpmux-file-menu-list","aria-label":s("changes.actionsFor",{name:r}),onKeyDown:A,children:T.map(U=>(0,u5.jsx)("button",{type:"button",role:"menuitem",tabIndex:-1,className:"acpmux-file-menu-item",onClick:()=>{h(!1),Promise.resolve(U.run()).finally(()=>u.current?.focus())},children:U.label},U.label))}),e[42]=T,e[43]=m,e[44]=r,e[45]=l,e[46]=s,e[47]=B):B=e[47];let P;return e[48]!==O||e[49]!==B?(P=(0,u5.jsxs)("span",{className:"acpmux-file-menu",children:[O,B]}),e[48]=O,e[49]=B,e[50]=P):P=e[50],P}var oi=R(ee(),1);function fxe(t){let e=(0,mxe.c)(84),{file:n,edit:r,index:i,view:o,on:a}=t,s=we(),l=n.displayPath.lastIndexOf("/"),c;e[0]!==r.hunks?(c=r.hunks.reduce(irt,0),e[0]=r.hunks,e[1]=c):c=e[1];let u=c,d;e[2]!==r.hunks?(d=r.hunks.reduce(nrt,0),e[2]=r.hunks,e[3]=d):d=e[3];let p=d,m=o.viewed?"":void 0,f;e[4]!==n.displayPath?(f=(0,oi.jsx)(j6e,{path:n.displayPath}),e[4]=n.displayPath,e[5]=f):f=e[5];let h=n.path,x=!o.collapsed,g;e[6]!==n.path||e[7]!==a?(g=()=>a.toggleCollapsed(n.path),e[6]=n.path,e[7]=a,e[8]=g):g=e[8];let y;e[9]!==n.displayPath||e[10]!==l?(y=l>=0&&(0,oi.jsx)("span",{className:"acpmux-fh-dir",children:n.displayPath.slice(0,l+1)}),e[9]=n.displayPath,e[10]=l,e[11]=y):y=e[11];let b;e[12]!==n.displayPath||e[13]!==l?(b=n.displayPath.slice(l+1),e[12]=n.displayPath,e[13]=l,e[14]=b):b=e[14];let w;e[15]!==b?(w=(0,oi.jsx)("span",{children:b}),e[15]=b,e[16]=w):w=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,oi.jsx)(l5,{className:"acpmux-fh-chevron",width:14,height:14}),e[17]=v):v=e[17];let k;e[18]!==n.path||e[19]!==w||e[20]!==x||e[21]!==g||e[22]!==y?(k=(0,oi.jsxs)("button",{type:"button",className:"acpmux-fh-name",title:h,"aria-expanded":x,onClick:g,children:[y,w,v]}),e[18]=n.path,e[19]=w,e[20]=x,e[21]=g,e[22]=y,e[23]=k):k=e[23];let _;e[24]!==n.created||e[25]!==i||e[26]!==s?(_=n.created&&i===0&&(0,oi.jsx)("span",{className:"acpmux-fh-badge",children:s("changes.badgeNew")}),e[24]=n.created,e[25]=i,e[26]=s,e[27]=_):_=e[27];let L;e[28]!==n.deleted||e[29]!==s?(L=n.deleted&&(0,oi.jsx)("span",{className:"acpmux-fh-badge",children:s("changes.badgeDeleted")}),e[28]=n.deleted,e[29]=s,e[30]=L):L=e[30];let S;e[31]!==n.edits.length||e[32]!==i?(S=n.edits.length>1&&(0,oi.jsx)("span",{className:"acpmux-fh-badge",children:`Edit ${i+1} of ${n.edits.length}`}),e[31]=n.edits.length,e[32]=i,e[33]=S):S=e[33];let C;e[34]!==n.outside||e[35]!==s?(C=n.outside&&(0,oi.jsx)("span",{className:"acpmux-fh-badge acpmux-fh-outside",title:s("turn.outside.title"),children:s("turn.outside")}),e[34]=n.outside,e[35]=s,e[36]=C):C=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=(0,oi.jsx)("span",{className:"acpmux-fh-spacer"}),e[37]=T):T=e[37];let M;e[38]!==u||e[39]!==p?(M=(0,oi.jsx)(Hm,{additions:u,deletions:p}),e[38]=u,e[39]=p,e[40]=M):M=e[40];let A=o.viewed?"changes.markNotViewed":"changes.markViewed",$;e[41]!==n.displayPath||e[42]!==s||e[43]!==A?($=s(A,{path:n.displayPath}),e[41]=n.displayPath,e[42]=s,e[43]=A,e[44]=$):$=e[44];let N;e[45]!==n.path||e[46]!==a?(N=()=>a.toggleViewed(n.path),e[45]=n.path,e[46]=a,e[47]=N):N=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=(0,oi.jsx)(N6e,{}),e[48]=F):F=e[48];let D;e[49]!==$||e[50]!==N||e[51]!==o.viewed?(D=(0,oi.jsx)("button",{type:"button",className:"acpmux-fh-btn","aria-label":$,"aria-pressed":o.viewed,onClick:N,children:F}),e[49]=$,e[50]=N,e[51]=o.viewed,e[52]=D):D=e[52];let O;e[53]!==n.deleted||e[54]!==n.displayPath||e[55]!==n.path||e[56]!==a||e[57]!==s?(O=!n.deleted&&(0,oi.jsxs)(oi.Fragment,{children:[(0,oi.jsx)("button",{type:"button",className:"acpmux-fh-btn","aria-label":s("changes.openPathInTab",{path:n.displayPath}),title:s("changes.openInTab"),onClick:()=>a.openFile(n.path,"tab"),children:(0,oi.jsx)(_6e,{})}),(0,oi.jsx)("button",{type:"button",className:"acpmux-fh-btn","aria-label":s("changes.openPathInEditor",{path:n.displayPath}),title:s("changes.openInEditor"),onClick:()=>a.openFile(n.path,"editor"),children:(0,oi.jsx)(S6e,{})})]}),e[53]=n.deleted,e[54]=n.displayPath,e[55]=n.path,e[56]=a,e[57]=s,e[58]=O):O=e[58];let B;e[59]!==n.path||e[60]!==a?(B=()=>a.toggleCollapsed(n.path),e[59]=n.path,e[60]=a,e[61]=B):B=e[61];let P;e[62]!==n.deleted||e[63]!==n.path||e[64]!==a?(P=n.deleted?void 0:()=>a.openFile(n.path,"tab"),e[62]=n.deleted,e[63]=n.path,e[64]=a,e[65]=P):P=e[65];let U;e[66]!==n.displayPath||e[67]!==n.path||e[68]!==B||e[69]!==P||e[70]!==o.collapsed?(U=(0,oi.jsx)(pxe,{path:n.path,name:n.displayPath,collapsed:o.collapsed,onToggleCollapsed:B,onOpenInTab:P}),e[66]=n.displayPath,e[67]=n.path,e[68]=B,e[69]=P,e[70]=o.collapsed,e[71]=U):U=e[71];let G;return e[72]!==k||e[73]!==_||e[74]!==L||e[75]!==S||e[76]!==C||e[77]!==M||e[78]!==D||e[79]!==O||e[80]!==U||e[81]!==m||e[82]!==f?(G=(0,oi.jsxs)("div",{className:"acpmux-file-header","data-viewed":m,children:[f,k,_,L,S,C,T,M,D,O,U]}),e[72]=k,e[73]=_,e[74]=L,e[75]=S,e[76]=C,e[77]=M,e[78]=D,e[79]=O,e[80]=U,e[81]=m,e[82]=f,e[83]=G):G=e[83],G}function nrt(t,e){return t+e.lines.filter(rrt).length}function rrt(t){return t.type==="del"}function irt(t,e){return t+e.lines.filter(ort).length}function ort(t){return t.type==="add"}var Kd=R(ee(),1);function hxe({anchor:t,decision:e,onDecide:n,focusAfter:r}){let i=we(),o=s=>{r.current=t.key,n(s)},a=s=>{s&&r.current===t.key&&(r.current=void 0,s.focus())};return e==="requested"?(0,Kd.jsx)("div",{className:"acpmux-hunk-actions","data-decision":e,children:(0,Kd.jsx)("output",{children:i("hunk.revertRequested")})}):e?(0,Kd.jsxs)("div",{className:"acpmux-hunk-actions","data-decision":e,children:[(0,Kd.jsx)("output",{children:i(e==="accepted"?"hunk.accepted":"hunk.rejected")}),(0,Kd.jsx)("button",{ref:a,type:"button",className:"acpmux-hunk-undo","aria-label":i("hunk.undoAt",{line:t.label}),onClick:()=>o(void 0),children:i("hunk.undo")})]}):(0,Kd.jsxs)("div",{className:"acpmux-hunk-actions",children:[(0,Kd.jsx)("button",{ref:a,type:"button",className:"acpmux-hunk-reject","aria-label":i("hunk.rejectAt",{line:t.label}),onClick:()=>o("rejected"),children:i("hunk.reject")}),(0,Kd.jsx)("button",{type:"button",className:"acpmux-hunk-accept","aria-label":i("hunk.acceptAt",{line:t.label}),onClick:()=>o("accepted"),children:i("hunk.accept")})]})}var gxe=t=>t.trim().split(/\s+|(?=[^\w\s])|(?<=[^\w\s])/).filter(Boolean);function art(t,e){let n=gxe(t),r=gxe(e);if(n.length+r.length===0)return 1;let i=new Map;for(let a of n)i.set(a,(i.get(a)??0)+1);let o=0;for(let a of r){let s=i.get(a)??0;s>0&&(o+=1,i.set(a,s-1))}return 2*o/(n.length+r.length)}function srt(t){let e=[];for(let n of t.hunks){let r=[],i=[],o=()=>{for(let a=0;a<Math.min(r.length,i.length);a+=1)e.push([r[a],i[a]]);r=[],i=[]};for(let a of n.lines)(a.type==="context"||a.type==="del"&&i.length>0)&&o(),a.type==="del"?r.push(a.text):a.type==="add"&&i.push(a.text);o()}return e}function bxe(t){let e=srt(t);return e.length===0||e.filter(([r,i])=>art(r,i)>=.5).length/e.length>=.6?"word-alt":"none"}function yxe(t,e,n,r){let i=t.lines.filter(c=>c.type!=="context"),o=i[i.length-1];if(!o)return;let a=i[0],s=a.newLine??a.oldLine,l=r&&s!==void 0?`${n.displayPath} line ${s}`:n.displayPath;return o.type==="add"?{side:"additions",lineNumber:o.newLine,metadata:{key:e,label:l,keys:t.reviewKeys??[e]}}:{side:"deletions",lineNumber:o.oldLine,metadata:{key:e,label:l,keys:t.reviewKeys??[e]}}}function xxe(t,e){return t.flatMap(n=>n.edits.flatMap((r,i)=>r.hunks.flatMap((o,a)=>{let s=E2(n,i,a);return(o.reviewKeys??[s]).flatMap(c=>e.get(c)==="rejected"?[{key:c,patch:kse(n,r,o)}]:[])})))}function wxe(t,e){let n=new Map(t);for(let[r,i]of e)n.get(r)==="requested"&&(i?n.set(r,i):n.delete(r));return n}var vh=R(ee(),1),lrt=()=>document.documentElement.dataset.theme==="light"?"light":"dark";function kxe(t){let e=(0,vxe.c)(49),{file:n,edit:r,index:i,layout:o,wrap:a,view:s,on:l,onPainted:c,review:u,focusAfter:d}=t,p=we(),m;e[0]!==r||e[1]!==n?(m=M2(n,r),e[0]=r,e[1]=n,e[2]=m):m=e[2];let f=m,h;e[3]!==n.displayPath?(h=b0(br(n.displayPath)),e[3]=n.displayPath,e[4]=h):h=e[4];let x=h,g=x?br(n.displayPath):"text",y;if(e[5]!==x||e[6]!==f){let V=q7(f);y=x?V:H7(V,"text"),e[5]=x,e[6]=f,e[7]=y}else y=e[7];let b=y,w=nu(c),v;e[8]!==r?(v=bxe(r),e[8]=r,e[9]=v):v=e[9];let k=v,_=r2(k,g),L=u!==void 0,S;e[10]!==r.hunks||e[11]!==r.numbered||e[12]!==n||e[13]!==i||e[14]!==L?(S=L?r.hunks.flatMap((V,H)=>V.reviewKeys?.length===0?[]:yxe(V,E2(n,i,H),n,r.numbered)??[]):[],e[10]=r.hunks,e[11]=r.numbered,e[12]=n,e[13]=i,e[14]=L,e[15]=S):S=e[15];let C=S,T,M;e[16]===Symbol.for("react.memo_cache_sentinel")?(T={dark:pd,light:md},M=lrt(),e[16]=T,e[17]=M):(T=e[16],M=e[17]);let A=a?"wrap":"scroll",$=!r.numbered,N;e[18]!==w||e[19]!==o||e[20]!==k||e[21]!==A||e[22]!==$?(N={theme:T,themeType:M,diffStyle:o,diffIndicators:"bars",hunkSeparators:"line-info",lineDiffType:k,overflow:A,disableLineNumbers:$,preferredHighlighter:"shiki-js",disableFileHeader:!0,unsafeCSS:Qb,onPostRender:w},e[18]=w,e[19]=o,e[20]=k,e[21]=A,e[22]=$,e[23]=N):N=e[23];let F=N,D;e[24]!==r||e[25]!==n||e[26]!==i||e[27]!==l||e[28]!==s?(D=(0,vh.jsx)(fxe,{file:n,edit:r,index:i,view:s,on:l}),e[24]=r,e[25]=n,e[26]=i,e[27]=l,e[28]=s,e[29]=D):D=e[29];let O=D,B=!s.collapsed&&r.hunks.length>0,P=s.collapsed?"":void 0,U;e[30]!==r.hunks||e[31]!==n.binary||e[32]!==p||e[33]!==s.collapsed?(U=!s.collapsed&&r.hunks.length===0&&(0,vh.jsx)("div",{className:"acpmux-diff-empty-edit",children:n.binary?p("changes.binaryNotShown"):p("changes.noLineChanges")}),e[30]=r.hunks,e[31]=n.binary,e[32]=p,e[33]=s.collapsed,e[34]=U):U=e[34];let G;e[35]!==C||e[36]!==b||e[37]!==d||e[38]!==F||e[39]!==u||e[40]!==B||e[41]!==_?(G=B&&(0,vh.jsx)(Jg.Provider,{value:_,children:(0,vh.jsx)(w8,{className:"acpmux-diff-pierre",fileDiff:b,options:F,lineAnnotations:C,renderAnnotation:V=>{let H=V.metadata;return u&&d&&H?(0,vh.jsx)(hxe,{anchor:H,decision:H.keys.length>0&&H.keys.every(ne=>u.decisions.get(ne)===u.decisions.get(H.keys[0]))?u.decisions.get(H.keys[0]):void 0,onDecide:ne=>H.keys.forEach(J=>u.decide(J,ne)),focusAfter:d}):null}})}),e[35]=C,e[36]=b,e[37]=d,e[38]=F,e[39]=u,e[40]=B,e[41]=_,e[42]=G):G=e[42];let j;return e[43]!==n.path||e[44]!==O||e[45]!==P||e[46]!==U||e[47]!==G?(j=(0,vh.jsxs)("div",{className:"acpmux-diff-file","data-path":n.path,"data-collapsed":P,children:[O,U,G]}),e[43]=n.path,e[44]=O,e[45]=P,e[46]=U,e[47]=G,e[48]=j):j=e[48],j}var Cxe=R(qe(),1);var Xd=R(ee(),1);function _xe(t){let e=(0,Cxe.c)(25),{state:n,onRetry:r}=t,i=we();if(n==="loading"){let p;e[0]!==i?(p=i("changes.loading"),e[0]=i,e[1]=p):p=e[1];let m;return e[2]!==p?(m=(0,Xd.jsx)("output",{className:"acpmux-changes-state",children:(0,Xd.jsx)("span",{className:"acpmux-changes-state-body",children:p})}),e[2]=p,e[3]=m):m=e[3],m}if(n==="empty"){let p;e[4]!==i?(p=i("changes.none"),e[4]=i,e[5]=p):p=e[5];let m;return e[6]!==p?(m=(0,Xd.jsx)("output",{className:"acpmux-changes-state",children:(0,Xd.jsx)("strong",{children:p})}),e[6]=p,e[7]=m):m=e[7],m}let o;e[8]!==i?(o=i("changes.loadFailed"),e[8]=i,e[9]=o):o=e[9];let a;e[10]!==o?(a=(0,Xd.jsx)("strong",{children:o}),e[10]=o,e[11]=a):a=e[11];let s;e[12]!==i?(s=i("changes.loadFailedHint"),e[12]=i,e[13]=s):s=e[13];let l;e[14]!==s?(l=(0,Xd.jsx)("span",{className:"acpmux-changes-state-body",children:s}),e[14]=s,e[15]=l):l=e[15];let c;e[16]!==i?(c=i("changes.retry"),e[16]=i,e[17]=c):c=e[17];let u;e[18]!==r||e[19]!==c?(u=(0,Xd.jsx)("button",{type:"button",className:"acpmux-changes-retry",onClick:r,children:c}),e[18]=r,e[19]=c,e[20]=u):u=e[20];let d;return e[21]!==a||e[22]!==l||e[23]!==u?(d=(0,Xd.jsxs)("div",{className:"acpmux-changes-state",role:"alert",children:[a,l,u]}),e[21]=a,e[22]=l,e[23]=u,e[24]=d):d=e[24],d}var DU="CMUX_PATCH";function crt(t){let e=t.previousPath??t.path,n=t.status==="added"||t.status==="untracked",r=t.status==="deleted",i=[`diff --git a/${e} b/${t.path}`];n&&i.push("new file mode 100644"),r&&i.push("deleted file mode 100644"),t.previousPath&&i.push(`rename from ${t.previousPath}`,`rename to ${t.path}`);let o=t.patch??"";return o!==""&&i.push(n?"--- /dev/null":`--- a/${e}`,r?"+++ /dev/null":`+++ b/${t.path}`),`${i.join(` +}`}var K4e=new WeakMap;function Ctt(t){let e=K4e.get(t);if(e!=null)return e;let n=document.createElement("div");n.setAttribute(w3e,"true");let r=document.createElement("div");r.style.position="relative",r.style.height="200%",n.appendChild(r),t.appendChild(n);let i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),K4e.set(t,i),i}function X4e(t,e){if(!t.isConnected)return;let n=Ctt(e);if(n==null)return;let r=e.querySelector(`style[${AG}]`),i=r instanceof HTMLStyleElement?r:document.createElement("style");r instanceof HTMLStyleElement||(i.setAttribute(AG,""),e.appendChild(i)),i.textContent=`:host { ${v3e}: ${n}px; }`}var yT;function _tt(t){if(typeof CSSStyleSheet<"u"&&typeof CSSStyleSheet.prototype.replaceSync=="function"&&"adoptedStyleSheets"in t){yT==null&&(yT=new CSSStyleSheet,yT.replaceSync(bT(WG)));let e=!1;try{t.adoptedStyleSheets=[yT],e=!0}catch{}if(e){t.querySelector(`style[${k8}]`)?.remove();return}}if(t.querySelector(`style[${k8}]`)==null){let e=document.createElement("style");e.setAttribute(k8,""),e.textContent=bT(WG),t.prepend(e)}}function xT(t,e){Stt(t,e),_tt(e),X4e(t,e)}function Stt(t,e){let n=t.querySelector('template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]');n instanceof HTMLTemplateElement&&(e.childNodes.length>0||(e.appendChild(n.content.cloneNode(!0)),n.hasAttribute("shadowrootmode")&&n.remove()))}if(typeof HTMLElement<"u"&&customElements.get(hh)==null){class t extends HTMLElement{constructor(){super()}connectedCallback(){let n=this.shadowRoot??this.attachShadow({mode:"open"});xT(this,n)}}if(customElements.define(hh,t),typeof document<"u")for(let e of Array.from(document.querySelectorAll(hh)))e instanceof HTMLElement&&xT(e,e.shadowRoot??e.attachShadow({mode:"open"}))}var Y4e=!0;var Q4e=t=>t.startsWith("f::")?t.slice("f::".length):t;function Mtt(t){let e=t.lastIndexOf("/");return e<0?{parentPath:"",baseName:t}:{parentPath:t.slice(0,e),baseName:t.slice(e+1)}}function Ett(t,e){return t===""?e:`${t}/${e}`}function J4e({files:t,path:e,isFolder:n,nextBasename:r}){let i=Q4e(e),o=r.trim();if(o.length===0)return{error:"Name cannot be empty."};if(o.includes("/"))return{error:'Name cannot include "/".'};let{parentPath:a,baseName:s}=Mtt(i);if(o===s)return{nextFiles:t,sourcePath:i,destinationPath:i,isFolder:n};let l=Ett(a,o),c=new Array(t.length),u=new Set;if(!n){let f=`${l}/`,h=!1;for(let x=0;x<t.length;x++){let g=t[x];if(g!==i&&g.startsWith(f))return{error:`"${l}" already exists.`};let y=g===i?l:g;if(u.has(y))return{error:`"${l}" already exists.`};u.add(y),c[x]=y,g===i&&(h=!0)}return h?{nextFiles:c,sourcePath:i,destinationPath:l,isFolder:n}:{error:"Could not find the selected file to rename."}}let d=`${i}/`,p=`${l}/`,m=0;for(let f=0;f<t.length;f++){let h=t[f],x=h===i||h.startsWith(d);if(!x&&(h===l||h.startsWith(p)))return{error:`"${l}" already exists.`};let g=x?`${l}${h.slice(i.length)}`:h;if(u.has(g))return{error:`"${l}" already exists.`};u.add(g),c[f]=g,x&&m++}return m===0?{error:"Could not find the selected folder to rename."}:{nextFiles:c,sourcePath:i,destinationPath:l,isFolder:n}}function Ttt(t){return t.endsWith("/")}function Rtt(t){let e=t.endsWith("/")?t.slice(0,-1):t,n=e.lastIndexOf("/"),r=n<0?e:e.slice(n+1);return t.endsWith("/")?`${r}/`:r}function Att(t){let e=[],n=new Set;for(let i of t)n.has(i)||(n.add(i),e.push(i));let r=new Set;for(let i of e.toSorted((o,a)=>o.length!==a.length?o.length-a.length:o.localeCompare(a))){let o=(i.endsWith("/")?i.slice(0,-1):i).split("/"),a=!1;for(let s=0;s<o.length-1;s+=1){let l=`${o.slice(0,s+1).join("/")}/`;if(r.has(l)){a=!0;break}}a||r.add(i)}return e.filter(i=>r.has(i))}function e7e(t,e){return e.includes(t)?Att(e):[t]}function t7e(t,e){return t===e?!0:t==null||e==null?!1:t.kind===e.kind&&t.directoryPath===e.directoryPath&&t.flattenedSegmentPath===e.flattenedSegmentPath&&t.hoveredPath===e.hoveredPath}function KG(t,e){return{draggedPaths:t,target:e}}function XG(t,e){if(e.kind!=="directory"||e.directoryPath==null)return!1;for(let n of t)if(Ttt(n)&&(e.directoryPath===n||e.directoryPath.startsWith(n)))return!0;return!1}function $tt(t,e){return e.kind==="root"||e.directoryPath==null?Rtt(t):e.directoryPath}function n7e(t,e){let n=t.map(r=>{let i=$tt(r,e);return i===r?null:{from:r,to:i,type:"move"}}).filter(r=>r!=null);return n.length===0?null:{operations:n,result:{draggedPaths:t,operation:n.length===1?"move":"batch",target:e}}}function Itt(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1)if(t[n]!==e[n])return!1;return!0}function YG(t,e,n){let{paths:r,preparedInput:i}=t;if(i==null){if(r==null)throw new Error("FileTree requires paths or preparedInput");return{paths:r,preparedInput:void 0}}let o=i.paths;if(r==null)return{paths:o,preparedInput:i};if(!Itt(mT.preparePaths(r,n==null?{}:{sort:n}),o))throw new Error(`FileTree ${e} received paths and preparedInput for different path lists`);return{paths:o,preparedInput:i}}function QG(t){return t.operation==="add"||t.operation==="remove"||t.operation==="move"||t.operation==="batch"}function Ntt(t,e,n){if(t===e)return n;let r=e.endsWith("/")?e:`${e}/`;return t.startsWith(r)?`${n.endsWith("/")?n:`${n}/`}${t.slice(r.length)}`:t}function Ptt(t,e){if(t===e)return!0;let n=e.endsWith("/")?e:`${e}/`;return t.startsWith(n)}function C3(t,e,n=!1){if(t==null)return null;switch(e.operation){case"add":case"expand":case"collapse":case"mark-directory-unloaded":case"begin-child-load":case"apply-child-patch":case"complete-child-load":case"fail-child-load":case"cleanup":return t;case"remove":return Ptt(t,e.path)?n?t:null:t;case"move":return Ntt(t,e.from,e.to);case"batch":{let r=t;for(let i of e.events)if(r=C3(r,i,n),r==null)return null;return r}}}function wT(t){return{canonicalChanged:t.canonicalChanged,projectionChanged:t.projectionChanged,visibleCountDelta:t.visibleCountDelta}}function r7e(t){switch(t.operation){case"add":return{...wT(t),operation:"add",path:t.path};case"remove":return{...wT(t),operation:"remove",path:t.path,recursive:t.recursive};case"move":return{...wT(t),from:t.from,operation:"move",to:t.to}}}function jtt(t){return{...wT(t),events:t.events.filter(e=>e.operation==="add"||e.operation==="remove"||e.operation==="move").map(e=>r7e(e)),operation:"batch"}}function i7e(t){switch(t.operation){case"add":case"remove":case"move":return r7e(t);case"batch":return jtt(t);default:return null}}function vT(t,e){if(t.size!==e.length)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zm(t){let e=t.endsWith("/")?t.slice(0,-1):t;if(e.length===0)return[];let n=e.split("/");return n.slice(0,-1).map((r,i)=>`${n.slice(0,i+1).join("/")}/`)}function kT(t){return zm(t).at(-1)??null}function JG(t,e){return e==null?t:t.startsWith(e)?t.slice(e.length):t}function R8(t){return t.endsWith("/")}var eU=t=>t.toLowerCase();function o7e(t){let e=t.endsWith("/")?t.slice(0,-1):t,n=e.lastIndexOf("/");return n<0?e:e.slice(n+1)}function tU(t){return t.endsWith("/")?t.slice(0,-1):t}function nU(t,e){return e&&!t.endsWith("/")?`${t}/`:t}var a7e=t=>{let e=t.trim();return e.length===0?"":(e.includes("\\")?e.replaceAll("\\","/"):e).toLowerCase()};var rU=Symbol("FILE_TREE_RENAME_VIEW"),Ott=512,Dtt=512;function Ftt(t){return t==="top"||t==="center"?t:"nearest"}function Btt(t,e,n){if(t===0)return-1;if(n!=null){let r=e(n);if(r!=null)return r;let i=zm(n);for(let o=i.length-1;o>=0;o-=1){let a=i[o];if(a==null)continue;let s=e(a);if(s!=null)return s}}return 0}function ztt(t,e,n){if(t.paths.length===0)return{focusedIndex:-1,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};if(e==null)return{focusedIndex:0,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};let r=n??(i=>t.visibleIndexByPath.get(i)??null);return{focusedIndex:Btt(t.paths.length,r,e),getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex}}var s7e=class{#e;#t=new Set;#n=new Map;#r=null;#i=null;#o=new Map;#s=new Map;#c=-1;#a=null;#g=!1;#f=t=>-1;#d=new Map;#p=null;#m=null;#b=null;#C=null;#w=null;#$;#I;#E;#u=[];#N=new Int32Array(0);#P=new Int32Array(0);#Q=void 0;#D=!1;#y=null;#_="";#j=!1;#T=new Set;#U=[];#V;#Z=null;#x=null;#z=null;#F=null;#M=null;#q=null;#J=null;#Se=0;#S=null;#h=new Set;#W=0;#l;#ne=0;#re=!1;#k=0;#K;constructor(t){let{dragAndDrop:e,fileTreeSearchMode:n,initialSearchQuery:r,initialSelectedPaths:i,renaming:o,onSearchChange:a,paths:s,preparedInput:l,...c}=t,u=YG({paths:s,preparedInput:l},"constructor",c.sort);this.#e=c,e!=null&&e!==!1&&(this.#r=e===!0?{}:e),this.#D=o!=null&&o!==!1,o!=null&&o!==!1&&o!==!0&&(this.#Q=o.canRename,this.#I=o.onError,this.#$=o.onRename),this.#E=a,this.#V=n??"hide-non-matches",this.#l=this.#oe(u.paths,u.preparedInput);let d=i?.map(m=>this.#B(m)).filter(m=>m!=null)??[],p=d.at(-1)??null;d.length>0&&(this.#h=new Set(d),this.#S=p,this.#W=1),this.#G(p,!1),r!=null&&this.#X(r,!1),this.#K=this.#Ce()}destroy(){this.#K?.(),this.#K=null,this.#n.clear(),this.#t.clear(),this.#d.clear(),this.#i=null,this.#se()}focusFirstItem(){this.#R().length>0&&this.#A(0)}focusLastItem(){this.#k<=0||(this.#O(),this.#A(this.#k-1))}focusNextItem(){this.#ke(1)}focusParentItem(){if(this.#a==null)return;let t=kT(this.#a);if(t==null)return;let e=this.#H(t);e>=0&&this.#A(e)}focusPath(t){let e=this.#l.getPathInfo(t)?.path??null;if(e==null)return;this.#O();let n=this.#H(e);n>=0&&this.#A(n)}scrollToPath(t,e){let n=this.#l.getPathInfo(t)?.path??null;if(n==null)return;this.#O();let r=this.#De(n);r<0||this.#le(r)!=null&&(e?.focus!==!1&&this.#A(r,!1),this.#J={id:this.#Se+=1,offset:Ftt(e?.offset),visibleIndex:r},this.#v())}focusMountedPathFromInput(t){let e=this.#l.getPathInfo(t)?.path??null;if(e==null)return;let n=this.#H(e);n>=0&&this.#A(n)}focusNearestPath(t){let e=this.resolveNearestVisiblePath(t);if(e==null)return null;let n=this.#H(e);return n>=0?(this.#A(n),this.#R()[n]??e):null}focusPreviousItem(){this.#ke(-1)}getFocusedIndex(){return this.#c}getFocusedItem(){return this.#a==null?null:this.#ce(this.#a)}getFocusedPath(){return this.#a}getScrollRequest(){return this.#J}clearScrollRequest(t){this.#J?.id===t&&(this.#J=null)}resolveNearestVisiblePath(t){let e=this.#R();if(this.#k===0)return null;if(t==null)return this.#a??e[0]??null;let n=this.#l.getPathInfo(t)?.path??t,r=this.#H(n);if(r>=0)return e[r]??n;let i=this.#Te(n);return i??this.#a??e[0]??null}getSelectedPaths(){return[...this.#h]}getSelectionVersion(){return this.#W}getVisibleCount(){return this.#k}getVisibleRows(t,e){if(e<t||this.#k===0)return[];let n=Math.max(0,t),r=Math.min(this.#k-1,e);if(r<n)return[];let i=r-n+1;if(this.#M==null&&!this.#g&&r>=this.#u.length&&i<=Dtt){let o=[];for(let a=n;a<=r;a+=1){let s=this.#l.getVisibleRowContext(a);if(s==null)break;o.push(this.#ue(s))}return o}if(!this.#g&&r>=this.#u.length&&this.#O(),this.#M!=null){let o=Array.from({length:r-n+1},(c,u)=>this.#be(n+u)),a=new Map,s=o[0]??-1,l=s;for(let c=1;c<=o.length;c+=1){let u=o[c];if(u!=null&&u===l+1){l=u;continue}if(s>=0&&this.#l.getVisibleSlice(s,l).forEach((d,p)=>{a.set(s+p,d)}),u==null){s=-1,l=-1;continue}s=u,l=u}return Array.from({length:r-n+1},(c,u)=>{let d=n+u,p=this.#be(d),m=a.get(p),f=this.#u[p];if(m==null||f==null)throw new Error(`Missing projection row for filtered visible index ${String(d)}`);return this.#ie(m,d,p,{ancestorPaths:this.#me(p),path:f})})}return this.#l.getVisibleSlice(n,r).map((o,a)=>{let s=n+a,l=this.#u[s];if(l==null)throw new Error(`Missing projection path for visible index ${String(s)}`);return this.#ie(o,s,s,{ancestorPaths:this.#me(s),path:l})})}getStickyRowCandidates(t,e){if(this.#M!=null)return null;if(this.#k===0||t<=0||e<=0)return[];let n=[];for(let r=0;r<this.#k;r+=1){let i=t+r*e,o=Math.min(this.#k-1,Math.floor(i/e)),a=this.#de(o,r)??(o>0?this.#de(o-1,r):void 0);if(a==null)break;n.push({row:this.#ue(a),subtreeEndIndex:a.subtreeEndIndex})}return n}getItem(t){let e=this.#l.getPathInfo(t);return e==null?null:this.#ce(e.path,e)}resolveMountedDirectoryPathFromInput(t){let e=this.#l.getPathInfo(t);return e?.kind==="directory"?e.path:null}toggleMountedDirectoryFromInput(t){let e=this.resolveMountedDirectoryPathFromInput(t);e!=null&&this.#_e(e)}selectAllVisiblePaths(){this.#O();let t=[...this.#R()];this.#L(t,this.#a??this.#S)}selectOnlyPath(t){let e=this.#B(t);e!=null&&this.#L([e],e)}selectOnlyMountedPathFromInput(t){this.#L([t],t)}selectPath(t){let e=this.#B(t);e==null||this.#h.has(e)||this.#L([...this.#h,e])}deselectPath(t){let e=this.#B(t);e==null||!this.#h.has(e)||this.#L([...this.#h].filter(n=>n!==e))}toggleFocusedSelection(){this.#a!=null&&this.togglePathSelectionFromInput(this.#a)}togglePathSelection(t){let e=this.#B(t);if(e!=null){if(this.#h.has(e)){this.deselectPath(e);return}this.selectPath(e)}}togglePathSelectionFromInput(t){let e=this.#B(t);if(e!=null){if(this.#h.has(e)){this.#L([...this.#h].filter(n=>n!==e),e);return}this.#L([...this.#h,e],e)}}selectPathRange(t,e){let n=this.#B(t);if(n==null)return;this.#O();let r=this.#S,i=r==null?-1:this.#te(r),o=this.#te(n);if(i===-1||o===-1){let u=e?[...this.#h,n]:[n];this.#L(u,n);return}let[a,s]=i<=o?[i,o]:[o,i],l=this.#R().slice(a,s+1),c=e?[...this.#h,...l]:l;this.#L(c,r)}extendSelectionFromFocused(t){if(this.#a==null)return;let e=this.#c;if(e===-1)return;let n=Math.min(this.#k-1,Math.max(0,e+t));if(n===e)return;!this.#g&&n>=this.#u.length&&this.#O();let r=this.#R(),i=r[e]??null,o=r[n]??null;if(i==null||o==null)return;let a=new Set(this.#h);a.has(i)&&a.has(o)?a.delete(i):a.add(o),this.#L([...a],this.#S??i,!1),this.#A(n)}getDragAndDropConfig(){return this.#r}isDragAndDropEnabled(){return this.#r!=null}getDragSession(){return this.#i==null?null:{draggedPaths:[...this.#i.draggedPaths],primaryPath:this.#i.primaryPath,target:this.#i.target==null?null:{...this.#i.target}}}startDrag(t){if(this.#r==null)return!1;let e=this.#B(t);if(e==null||this.#x!=null&&this.#x.length>0)return!1;let n=this.getSelectedPaths(),r=e7e(e,n);return this.#r.canDrag?.(r)===!1?!1:(n.includes(e)||this.#L([e],e,!1),this.#Y(e),this.#i={draggedPaths:r,primaryPath:e,target:null},this.#v(),!0)}setDragTarget(t){let e=this.#i;if(e==null)return;let n=t;if(n!=null){let r=KG(e.draggedPaths,n);(XG(e.draggedPaths,n)||this.#r?.canDrop?.(r)===!1)&&(n=null)}t7e(e.target,n)||(this.#i={...e,target:n},this.#v())}cancelDrag(){this.#i!=null&&(this.#i=null,this.#v())}completeDrag(){let t=this.#i;if(t==null)return!1;this.#i=null;let e=t.target==null?null:{...t.target};if(e==null)return this.#v(),!1;let n=KG(t.draggedPaths,e);if(XG(t.draggedPaths,e)||this.#r?.canDrop?.(n)===!1)return this.#v(),!1;let r=n7e(t.draggedPaths,e);if(r==null)return this.#v(),!1;try{if(r.operations.length===1){let i=r.operations[0];if(i==null||i.type!=="move")throw new Error("Expected a single move operation for one-item drops");this.#l.move(i.from,i.to,{collision:i.collision})}else this.#$e(r.operations),this.#l.batch(r.operations)}catch(i){return this.#v(),this.#r?.onDropError?.(i instanceof Error?i.message:String(i),n),!1}return this.#r?.onDropComplete?.(r.result),!0}subscribe(t){return this.#t.add(t),t(),()=>{this.#t.delete(t)}}add(t){this.#l.add(t)}remove(t,e={}){this.#l.remove(t,e)}move(t,e,n={}){this.#l.move(t,e,n)}batch(t){this.#l.batch(t)}onMutation(t,e){let n=t,r=e,i=this.#n.get(n);return i==null&&(i=new Set,this.#n.set(n,i)),i.add(r),()=>{let o=this.#n.get(n);o?.delete(r),o?.size===0&&this.#n.delete(n)}}setSearch(t){this.#X(t,!0)}openSearch(t=""){this.#X(t,!0)}closeSearch(){this.#X(null,!0)}isSearchOpen(){return this.#x!==null}getSearchValue(){return this.#x??""}getSearchMatchingPaths(){return this.#U}focusNextSearchMatch(){this.#ye(1)}focusPreviousSearchMatch(){this.#ye(-1)}startRenaming(t=this.#a??"",e={}){if(!this.#D)return!1;let n=this.#l.getPathInfo(t);if(n==null)return!1;let r=n.path,i=R8(r),o=tU(r);if(this.#Q?.({isFolder:i,path:o})===!1)return!1;for(let a of zm(r))this.#l.isExpanded(a)||this.#l.expand(a);return this.#L([r],r,!1),this.#x!=null&&(this.#X(null,!1),this.#E?.(this.#x)),this.#Y(r),this.#y=r,this.#_=o7e(r),this.#j=e.removeIfCanceled??!1,this.#v(),!0}[rU](){return{cancel:()=>{this.#Le()},commit:()=>{this.#Me()},getPath:()=>this.#y,getValue:()=>this.#_,isActive:()=>this.#y!=null,setValue:t=>{this.#Ee(t)}}}#Le(){if(this.#y==null)return;let t=this.#y,e=this.#j;if(this.#y=null,this.#_="",this.#j=!1,e){this.remove(t,R8(t)?{recursive:!0}:void 0);return}this.#Y(t),this.#v()}#Me(){let t=this.#y;if(t==null)return;if(this.#j&&this.#_.trim().length===0){this.#y=null,this.#_="",this.#j=!1,this.remove(t,R8(t)?{recursive:!0}:void 0);return}let e=R8(t),n=J4e({files:this.#l.list(),isFolder:e,nextBasename:this.#_,path:tU(t)});if(this.#y=null,this.#_="",this.#j=!1,"error"in n){this.#Y(t),this.#I?.(n.error),this.#v();return}if(n.sourcePath===n.destinationPath){this.#Y(t),this.#v();return}this.#$?.({destinationPath:n.destinationPath,isFolder:n.isFolder,sourcePath:n.sourcePath}),this.move(nU(n.sourcePath,e),nU(n.destinationPath,e))}#Ee(t){this.#y==null||this.#_===t||(this.#_=t,this.#v())}resetPaths(t,e={}){let n=this.#l.list().length,r=this.#k,i=YG({paths:t,preparedInput:e.preparedInput},"resetPaths",this.#e.sort),o=this.#oe(i.paths,i.preparedInput,e.initialExpandedPaths),a=this.#a,s=this.#y,l=this.getSelectedPaths(),c=this.#S;this.#K?.(),this.#l=o,this.#d.clear(),this.#se();let u=l.map(p=>o.getPathInfo(p)?.path??null).filter(p=>p!=null),d=!vT(this.#h,u);this.#h=new Set(u),d&&(this.#W+=1),this.#S=c==null?null:o.getPathInfo(c)?.path??null,this.#y=s==null?null:o.getPathInfo(s)?.path??null,this.#y==null&&(this.#_="",this.#j=!1),this.#G(a,a!=null||u.length>0||this.#S!=null),this.#K=this.#Ce(),this.#v(),this.#we({canonicalChanged:!0,operation:"reset",pathCountAfter:i.paths.length,pathCountBefore:n,projectionChanged:!0,usedPreparedInput:e.preparedInput!=null,visibleCountDelta:this.#k-r})}#Te(t){this.#O();let e=kT(t),n=JG(t,e),r=null,i=null;for(let o of this.#R()){if(kT(o)!==e)continue;let a=JG(o,e);if(a<n){r=o;continue}if(a>n){i=o;break}}return r??i}#H(t){let e=this.#te(t);if(e!==-1)return e;let n=zm(t);for(let r=n.length-1;r>=0;r-=1){let i=n[r];if(i==null)continue;let o=this.#te(i);if(o!==-1)return o}return this.#R().length>0?0:-1}#ce(t,e){let n=this.#d.get(t);if(n!=null)return n;let r=e??this.#l.getPathInfo(t);if(r==null)return null;let i=r.kind==="directory"?this.#Re(r.path):this.#Ae(r.path);return this.#d.set(r.path,i),i}#ie(t,e,n,r){return{ancestorPaths:r.ancestorPaths,depth:t.depth,flattenedSegments:t.flattenedSegments?.map(i=>({isTerminal:i.isTerminal,name:i.name,path:i.path})),hasChildren:t.hasChildren,index:e,isExpanded:t.isExpanded,isFlattened:t.isFlattened,isFocused:r.path===this.#a,isSelected:this.#h.has(r.path),kind:t.kind,level:t.depth,name:t.name,path:r.path,posInSet:r.posInSet??this.#N[n]??0,setSize:r.setSize??this.#P[n]??0}}#ue(t){return this.#ie(t.row,t.index,t.index,{ancestorPaths:t.ancestorPaths,path:t.row.path,posInSet:t.posInSet,setSize:t.setSize})}#de(t,e){let n=this.#l.getVisibleRowContext(t);if(n==null)return;let r=n.ancestorRows[e];return r??(e===n.ancestorRows.length&&n.row.kind==="directory"&&n.row.isExpanded?n:void 0)}#pe(t){let e=this.#o.get(t);if(e!=null)return e;let n=this.#f(t),r=n<0?[]:[...this.#pe(n),n];return this.#o.set(t,r),r}#me(t){let e=this.#s.get(t);if(e!=null)return e;let n=this.#pe(t).map(r=>this.#u[r]??"").filter(r=>r!=="");return this.#s.set(t,n),n}#fe(t){this.#l.collapse(t)}#L(t,e=this.#S,n=!0){let r=[...new Set(t)],i=!vT(this.#h,r),o=this.#S!==e;!i&&!o||(this.#h=new Set(r),this.#S=e,i&&(this.#W+=1),n&&this.#v())}#Re(t){return{collapse:()=>{this.#fe(t)},deselect:()=>{this.deselectPath(t)},expand:()=>{this.#ve(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!0,isExpanded:()=>this.#l.isExpanded(t),isFocused:()=>this.#a===t,isSelected:()=>this.#h.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)},toggle:()=>{this.#_e(t)}}}#Ae(t){return{deselect:()=>{this.deselectPath(t)},focus:()=>{this.focusPath(t)},getPath:()=>t,isDirectory:()=>!1,isFocused:()=>this.#a===t,isSelected:()=>this.#h.has(t),select:()=>{this.selectPath(t)},toggleSelect:()=>{this.togglePathSelection(t)}}}#$e(t){let e=this.#l.list();this.#oe(e).batch(t)}#oe(t,e,n){return new mT({...this.#e,paths:t,preparedInput:e??void 0,...n!==void 0?{initialExpandedPaths:n}:{}})}#ae(){return this.#C!=null?this.#C:(this.#C=this.#l.list(),this.#C)}#Ie(){if(this.#b!=null)return this.#b;let t=new Set;for(let e of this.#ae()){t.add(e);for(let n of zm(e))t.add(n)}return this.#b=[...t].sort(),this.#b}#Ne(){return this.#w!=null?this.#w:(this.#w=this.#ae().map(eU),this.#w)}#ee(){return this.#p!=null?this.#p:(this.#p=this.#Ie().filter(t=>t.endsWith("/")),this.#p)}#Pe(){return this.#m!=null?this.#m:(this.#m=this.#ee().map(eU),this.#m)}#se(){this.#p=null,this.#m=null,this.#b=null,this.#C=null,this.#w=null}#je(){return this.#ee().filter(t=>this.#l.isExpanded(t))}#he(t){let e=new Set(this.#Z??[]);if(t)for(let n of this.#h)for(let r of zm(n))e.add(r);this.#ge(e)}#ge(t){this.#re=!0;try{for(let e of this.#ee()){let n=t.has(e),r=this.#l.isExpanded(e);n&&!r?this.#l.expand(e):!n&&r&&this.#l.collapse(e)}}finally{this.#re=!1}}#Oe(){if(this.#x==null||this.#x.length===0){this.#U=[],this.#M=null,this.#q=null,this.#F=null,this.#k=this.#ne;return}let t=this.#u;if(this.#U=t.filter(i=>this.#T.has(i)),this.#V!=="hide-non-matches"||this.#T.size===0){this.#M=null,this.#q=null,this.#F=null,this.#k=this.#ne;return}let e=[],n=[],r=new Map;for(let[i,o]of t.entries())this.#z?.has(o)===!0&&(r.set(o,n.length),e.push(i),n.push(o));this.#M=e,this.#q=n,this.#F=r,this.#k=n.length}#R(){return this.#q??this.#u}#De(t){return this.#q!=null?this.#F?.get(t)??-1:this.#l.getVisibleIndex(t)??-1}#be(t){return this.#M?.[t]??t}#te(t){let e=this.#F?.get(t);return e??this.#l.getVisibleIndex(t)??-1}#ye(t){let e=this.#U;if(e.length===0)return;let n=this.#a,r=n==null?-1:e.indexOf(n),i=e[r<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,r+t))];i!=null&&this.focusPath(i)}#X(t,e){let n=t==null?null:a7e(t),r=this.#x;if(r!==n){if(r==null&&n!=null&&(this.#Z=this.#je()),this.#x=n,n==null)this.#he(!0),this.#Z=null,this.#T.clear(),this.#z=null,this.#G(this.#a,!0);else if(n.length===0)this.#he(!1),this.#T.clear(),this.#z=null,this.#G(this.#a,!0);else{let i=this.#xe();this.#G(i,!0)}e&&(this.#E?.(this.#x),this.#v())}}#xe(){if(this.#x==null||this.#x.length===0)return this.#T.clear(),this.#a;let t=this.#x,e=this.#ae(),n=this.#Ne(),r=[],i=new Set,o=null;for(let u=0;u<e.length;u+=1){if(!n[u].includes(t))continue;let d=e[u];r.push(d),i.add(d),o??=d}let a=this.#ee(),s=this.#Pe();for(let u=0;u<a.length;u+=1){if(!s[u].includes(t))continue;let d=a[u];i.has(d)||(r.push(d),i.add(d),o??=d)}this.#T=i;let l=this.#V==="hide-non-matches"&&r.length>0?new Set:null;this.#z=l;let c=this.#V==="expand-matches"?new Set(this.#Z??[]):new Set;for(let u of r){l?.add(u),u.endsWith("/")&&c.add(u);for(let d of zm(u))c.add(d),l?.add(d)}return this.#ge(c),o??this.#a}#v(){for(let t of this.#t)t()}#we(t){this.#n.get(t.operation)?.forEach(e=>{e(t)}),this.#n.get("*")?.forEach(e=>{e(t)})}#ve(t){for(let e of zm(t))this.#l.isExpanded(e)||this.#l.expand(e);this.#l.isExpanded(t)||this.#l.expand(t)}#ke(t){let e=this.#k;if(e===0)return;let n=this.#c===-1?0:this.#c,r=Math.min(e-1,Math.max(0,n+t));(r!==n||this.#c===-1)&&(!this.#g&&this.#M==null&&r>=this.#u.length&&this.#O(),this.#A(r))}#G(t,e=!0){let n=this.#l.getVisibleCount();this.#ne=n;let r=ztt(this.#l.getVisibleTreeProjectionData(e?void 0:Math.min(n,Ott)),t,e?i=>this.#l.getVisibleIndex(i):void 0);this.#o.clear(),this.#s.clear(),this.#g=r.paths.length>=n,this.#f=r.getParentIndex,this.#u=r.paths,this.#N=r.posInSetByIndex,this.#P=r.setSizeByIndex,this.#Oe(),this.#c=t==null?this.#R().length>0?0:-1:this.#H(t),this.#a=this.#c<0?null:this.#le(this.#c)}#le(t){let e=this.#R()[t];return e??(this.#M!=null?null:this.#l.getVisibleRowContext(t)?.row.path??null)}#B(t){return this.#l.getPathInfo(t)?.path??null}#Y(t){if(t==null)return;let e=this.#H(t);e>=0&&this.#A(e,!1)}#A(t,e=!0){let n=this.#le(t);n!=null&&(this.#c===t&&this.#a===n||(this.#c=t,this.#a=n,e&&this.#v()))}#O(){this.#g||this.#G(this.#a,!0)}#Fe(t){let e=C3(this.#y,t);e==null&&this.#y!=null&&(this.#_=""),this.#y=e;let n=C3(this.#a,t,!0),r=[...this.#h].map(s=>C3(s,t)).filter(s=>s!=null).map(s=>this.#l.getPathInfo(s)?.path??null).filter(s=>s!=null),i=C3(this.#S,t),o=i==null?null:this.#l.getPathInfo(i)?.path??null,a=[...new Set(r)];return vT(this.#h,a)||(this.#h=new Set(a),this.#W+=1),this.#S=o,n}#Ce(){return this.#l.on("*",t=>{if(this.#re)return;t.canonicalChanged&&(this.#d.clear(),this.#se()),this.#i!=null&&QG(t)&&(this.#i=null);let e=QG(t)?this.#Fe(t):this.#a,n=this.#x!=null&&this.#x.length>0?this.#xe():this.#x===""?this.#a:e,r=this.#x!=null||t.operation!=="expand"&&t.operation!=="collapse";this.#G(n,r),this.#v();let i=i7e(t);i!=null&&this.#we(i)})}#_e(t){if(this.#l.isExpanded(t)){this.#fe(t);return}this.#ve(t)}};var l7e=t=>{if(t==null||t.length===0)return"0";let e=`${t.length}`;for(let n of t)e+=`\0${n.path}\0${n.status}`;return e};function c7e(t){let e=t.endsWith("/"),n="",r=-1;for(let i=0;i<=t.length;i+=1){if(!(t[i]==="/"||i===t.length)){r===-1&&(r=i);continue}r!==-1&&(n!==""&&(n+="/"),n+=t.slice(r,i),r=-1)}return n===""?null:{isDirectory:e,path:n}}function qtt(t){let e=t.endsWith("/")?t.slice(0,-1):t;if(e.length===0)return[];let n=e.split("/");return n.slice(0,-1).map((r,i)=>`${n.slice(0,i+1).join("/")}/`)}function Htt(t,e){return e?`${t}/`:t}function iU(t,e=null){let n=l7e(t==null?void 0:[...t]);if(n==="0")return null;if(e?.signature===n)return e;let r=new Map,i=new Set,o=new Set;for(let a of t??[]){let s=c7e(a.path);if(s==null)continue;let l=Htt(s.path,s.isDirectory);r.set(l,a.status),a.status==="ignored"&&s.isDirectory?o.add(l):s.isDirectory&&o.delete(l);for(let c of qtt(s.path))i.add(c)}return{directoriesWithChanges:i,ignoredDirectoryPaths:o,signature:n,statusByPath:r}}var mr,f7e,Gtt,s5,u7e,LT,h7e,g7e,lU,oU,aU,Utt,A8={},b7e=[],MT=Array.isArray,cU=b7e.slice,kh=Object.assign;function uU(t){t&&t.parentNode&&t.remove()}function S3(t,e,n){var r,i,o,a={};for(o in e)o=="key"?r=e[o]:o=="ref"&&typeof t!="function"?i=e[o]:a[o]=e[o];return arguments.length>2&&(a.children=arguments.length>3?cU.call(arguments,2):n),_T(t,a,r,i,null)}function _T(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++f7e,__i:-1,__u:0};return i==null&&mr.vnode!=null&&mr.vnode(o),o}function Wd(t){return t.children}function ST(t,e){this.props=t,this.context=e,this.__g=0}function _3(t,e){if(e==null)return t.__?_3(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?_3(t):null}function y7e(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=n.__e;break}return y7e(t)}}function d7e(t){(8&t.__g||!(t.__g|=8)||!s5.push(t)||LT++)&&u7e==mr.debounceRendering||((u7e=mr.debounceRendering)||queueMicrotask)(Vtt)}function Vtt(){for(var t,e,n,r,i,o,a,s,l=1;s5.length;)s5.length>l&&s5.sort(h7e),t=s5.shift(),l=s5.length,8&t.__g&&(n=void 0,i=(r=(e=t).__v).__e,o=[],a=[],(s=e.__P)&&((n=kh({},r)).__v=r.__v+1,mr.vnode&&mr.vnode(n),dU(s,n,r,e.__n,s.namespaceURI,32&r.__u?[i]:null,o,i??_3(r),!!(32&r.__u),a,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,v7e(o,n,a),n.__e!=i&&y7e(n)));LT=0}function x7e(t,e,n,r,i,o,a,s,l,c,u,d){var p,m,f,h,x,g,y,b=r&&r.__k||b7e,w=e.length;for(l=Ztt(n,e,b,l,w),p=0;p<w;p++)(f=n.__k[p])!=null&&(m=f.__i==-1?A8:b[f.__i]||A8,f.__i=p,g=dU(t,f,m,i,o,a,s,l,c,u,d),h=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&pU(m.ref,null,f),u.push(f.ref,f.__c||h,f)),x==null&&h!=null&&(x=h),(y=!!(4&f.__u))||m.__k===f.__k?l=w7e(f,l,t,y):typeof f.type=="function"&&g!==void 0?l=g:h&&(l=h.nextSibling),f.__u&=-7);return n.__e=x,l}function Ztt(t,e,n,r,i){var o,a,s,l,c,u=n.length,d=u,p=0;for(t.__k=new Array(i),o=0;o<i;o++)(a=e[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=t.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?_T(null,a,null,null,null):MT(a)?_T(Wd,{children:a},null,null,null):a.constructor==null&&a.__b>0?_T(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,s=null,(c=a.__i=Wtt(a,n,l,d))!=-1&&(d--,(s=n[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(i>u?p--:i<u&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):t.__k[o]=null;if(d)for(o=0;o<u;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=_3(s)),C7e(s,s));return r}function w7e(t,e,n,r){var i,o;if(typeof t.type=="function"){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,e=w7e(i[o],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=_3(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Wtt(t,e,n,r){var i,o,a,s=t.key,l=t.type,c=e[n],u=c!=null&&(2&c.__u)==0;if(c===null&&t.key==null||u&&s==c.key&&l==c.type)return n;if(r>(u?1:0)){for(i=n-1,o=n+1;i>=0||o<e.length;)if((c=e[a=i>=0?i--:o++])!=null&&(2&c.__u)==0&&s==c.key&&l==c.type)return a}return-1}function p7e(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n??""}function CT(t,e,n,r,i){var o;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||p7e(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||p7e(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(g7e,"$1")),(e=e.slice(2))[0].toLowerCase()!=e[0]&&(e=e.toLowerCase()),t.__l||(t.__l={}),t.__l[e+o]=n,n?r?n.l=r.l:(n.l=lU,t.addEventListener(e,o?aU:oU,o)):t.removeEventListener(e,o?aU:oU,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function m7e(t){return function(e){if(this.__l){var n=this.__l[e.type+t];if(e.u==null)e.u=lU++;else if(e.u<n.l)return;return n(mr.event?mr.event(e):e)}}}function dU(t,e,n,r,i,o,a,s,l,c,u){var d,p,m,f,h,x,g,y,b,w,v,k,_,L,S,C,T,M,A,$,N,F=e.type;if(e.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),n.__c.__z&&(s=e.__e=n.__e=(o=n.__c.__z)[0],n.__c.__z=null)),(d=mr.__b)&&d(e);e:if(typeof F=="function")try{if(y=e.props,b="prototype"in F&&F.prototype.render,w=(d=F.contextType)&&r[d.__c],v=d?w?w.props.value:d.__:r,n.__c?2&(p=e.__c=n.__c).__g&&(p.__g|=1,g=!0):(b?e.__c=p=new F(y,v):(e.__c=p=new ST(y,v),p.constructor=F,p.render=Xtt),w&&w.sub(p),p.props=y,p.state||(p.state={}),p.context=v,p.__n=r,m=!0,p.__g|=8,p.__h=[],p._sb=[]),b&&p.__s==null&&(p.__s=p.state),b&&F.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=kh({},p.__s)),kh(p.__s,F.getDerivedStateFromProps(y,p.__s))),f=p.props,h=p.state,p.__v=e,m)b&&F.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),b&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(b&&F.getDerivedStateFromProps==null&&y!==f&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(y,v),!(4&p.__g)&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(y,p.__s,v)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(p.props=y,p.state=p.__s,p.__g&=-9),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(D){D&&(D.__=e)}),k=0;k<p._sb.length;k++)p.__h.push(p._sb[k]);p._sb=[],p.__h.length&&a.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(y,p.__s,v),b&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(f,h,x)})}if(p.context=v,p.props=y,p.__P=t,p.__g&=-5,_=mr.__r,L=0,b){for(p.state=p.__s,p.__g&=-9,_&&_(e),d=p.render(p.props,p.state,p.context),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[]}else do p.__g&=-9,_&&_(e),d=p.render(p.props,p.state,p.context),p.state=p.__s;while(8&p.__g&&++L<25);p.state=p.__s,p.getChildContext!=null&&(r=kh({},r,p.getChildContext())),b&&!m&&p.getSnapshotBeforeUpdate!=null&&(x=p.getSnapshotBeforeUpdate(f,h)),C=d,d!=null&&d.type===Wd&&d.key==null&&(C=k7e(d.props.children)),s=x7e(t,MT(C)?C:[C],e,n,r,i,o,a,s,l,c,u),e.__u&=-161,p.__h.length&&a.push(p),g&&(p.__g&=-4)}catch(D){if(e.__v=null,l||o!=null)if(D.then){for(T=0,M=!1,e.__u|=l?160:128,e.__c.__z=[],A=0;A<o.length;A++)($=o[A])==null||M||($.nodeType==8&&$.data=="$s"?(T>0&&e.__c.__z.push($),T++,o[A]=null):$.nodeType==8&&$.data=="/$s"?(--T>0&&e.__c.__z.push($),M=T===0,s=o[A],o[A]=null):T>0&&(e.__c.__z.push($),o[A]=null));if(!M){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,e.__c.__z=[s]}e.__e=s}else{for(N=o.length;N--;)uU(o[N]);sU(e)}else e.__e=n.__e,e.__k=n.__k,D.then||sU(e);mr.__e(D,e,n)}else s=e.__e=Ktt(n.__e,e,n,r,i,o,a,l,c,u);return(d=mr.diffed)&&d(e),128&e.__u?void 0:s}function sU(t){t&&t.__c&&(t.__c.__g|=4),t&&t.__k&&t.__k.forEach(sU)}function v7e(t,e,n){for(var r=0;r<n.length;r++)pU(n[r],n[++r],n[++r]);mr.__c&&mr.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){mr.__e(o,i.__v)}})}function k7e(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:MT(t)?t.map(k7e):kh({},t)}function Ktt(t,e,n,r,i,o,a,s,l,c){var u,d,p,m,f,h,x,g,y=n.props,b=e.props,w=e.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){t=f,o[u]=null;break}}if(t==null){if(w==null)return c.createTextNode(b);t=c.createElementNS(i,w,b.is&&b),s&&(mr.__m&&mr.__m(e,o),s=!1),o=null}if(w==null)y===b||s&&t.data==b||(t.data=b);else{if(o=o&&cU.call(t.childNodes),y=n.props||A8,!s&&o!=null)for(y={},u=0;u<t.attributes.length;u++)y[(f=t.attributes[u]).name]=f.value;for(u in y)if(f=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")p=f;else if(!(u in b)){if(u=="value"&&"defaultValue"in b||u=="checked"&&"defaultChecked"in b)continue;CT(t,u,null,f,i)}}for(u in g=1&n.__u,b)f=b[u],u=="children"?m=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?h=f:u=="checked"?x=f:s&&typeof f!="function"||y[u]===f&&!g||CT(t,u,f,y[u],i);if(d)s||p&&(d.__html==p.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(p&&(t.innerHTML=""),x7e(w=="template"?t.content:t,MT(m)?m:[m],e,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&_3(n,0),s,l,c),o!=null)for(u=o.length;u--;)uU(o[u]);s||(u="value",w=="progress"&&h==null?t.removeAttribute("value"):h==null||h===t[u]&&(w!=="progress"||h)||CT(t,u,h,y[u],i),u="checked",x!=null&&x!=t[u]&&CT(t,u,x,y[u],i))}return t}function pU(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){mr.__e(i,n)}}function C7e(t,e,n){var r,i;if(mr.unmount&&mr.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||pU(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){mr.__e(o,e)}r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&C7e(r[i],e,n||typeof t.type!="function");n||uU(t.__e),t.__e&&t.__e.__l&&(t.__e.__l=null),t.__e=t.__c=t.__=null}function Xtt(t,e,n){return this.constructor(t,n)}function ET(t,e){var n,r,i,o;e==document&&(e=document.documentElement),mr.__&&mr.__(t,e),r=(n=!!(t&&32&t.__u))?null:e.__k,t=e.__k=S3(Wd,null,[t]),i=[],o=[],dU(e,t,r||A8,A8,e.namespaceURI,r?null:e.firstChild?cU.call(e.childNodes):null,i,r?r.__e:e.firstChild,n,o,e.ownerDocument),v7e(i,t,o)}function _7e(t,e){t.__u|=32,ET(t,e)}mr={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!(1&i.__g)){i.__g|=4;try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),a=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),a=8&i.__g),a)return void(i.__g|=2)}catch(s){t=s}}throw LT=0,t}},f7e=0,Gtt=function(t){return t!=null&&t.constructor==null},ST.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=kh({},this.state),typeof t=="function"&&(t=t(kh({},n),this.props)),t&&kh(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),d7e(this))},ST.prototype.forceUpdate=function(t){this.__v&&(this.__g|=4,t&&this.__h.push(t),d7e(this))},ST.prototype.render=Wd,s5=[],LT=0,h7e=function(t,e){return t.__v.__b-e.__v.__b},g7e=/(PointerCapture)$|Capture$/i,lU=0,oU=m7e(!1),aU=m7e(!0),Utt=0;var Ytt=0;function ut(t,e,n,r,i,o){e||(e={});var a,s,l=e;if("ref"in l&&typeof t!="function")for(s in l={},e)s=="ref"?a=e[s]:l[s]=e[s];var c={type:t,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ytt,__i:-1,__u:0,__source:i,__self:o};return mr.vnode&&mr.vnode(c),c}var Qtt=16,Jtt=16,ent={};function L3({name:t,remappedFrom:e,token:n,width:r,height:i,viewBox:o,label:a,alignCapitals:s=!1}){"use no memo";let l=`#${t.replace(/^#/,"")}`,{width:c,height:u,viewBox:d}=ent[t]??{width:Qtt,height:Jtt},p=r??c,m=i??u,f=o??d??`0 0 ${c} ${u}`,h=a!=null?{"aria-label":a,role:"img"}:{"aria-hidden":!0};return ut("svg",{"data-icon-name":e??t,"data-icon-token":n,"data-align-capitals":s,...h,viewBox:f,width:p,height:m,children:ut("use",{href:l})})}var S7e=t=>{if(t.length<2)return[t,""];let e=Math.ceil(t.length/2);return[t.slice(0,e),t.slice(e)]},tnt=t=>{if(t.length<4)return[t,""];let e=t.lastIndexOf(".")+1,n=t.length-e>10,r=e>=1&&!n?e:Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]},nnt=t=>{if(t.length<4)return[t,""];let e=t.lastIndexOf("/")+1,n=t.length-e>25,r=e>=1&&!n?e:Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]},rnt=(t,{splitIndex:e}={})=>{if(typeof e!="number"){let n=Math.ceil(t.length/2);return[t.slice(0,n),t.slice(n)]}return[t.slice(0,e),t.slice(e)]},int=(t,{splitOffset:e}={})=>{if(typeof e!="number"||e<=0||e>=t.length){let r=Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]}let n=t.length-e;return[t.slice(0,n),t.slice(n)]},ont=(t,{splitOffset:e}={})=>{if(typeof e!="number"||e<=0||e>=t.length){let r=Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]}let n=e;return[t.slice(0,n),t.slice(n)]};function ant({children:t,marker:e,variant:n="default"}){"use no memo";return ut("div",{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:ut("div",{"data-truncate-marker":!0,children:typeof e=="function"?e({children:t}):n==="fade"?ut("span",{"data-truncate-fade":!0}):e})})}function snt(t){"use no memo";let{mode:e,children:n}=t;return ut("div",{children:[ut("div",{"data-truncate-content":"visible",children:e==="fruncate"?ut("span",{children:n}):n}),ut("div",{"data-truncate-content":"overflow","aria-hidden":!0,children:e==="fruncate"?ut("span",{children:n}):n})]})}function L7e({children:t,mode:e="truncate",marker:n="\u2026",variant:r="default",...i}){"use no memo";let o=ut(snt,{mode:e,children:t},"content"),a=ut(ant,{marker:n,mode:e,variant:r},"marker");return ut("div",{"data-truncate-container":e,"data-truncate-variant":r,...i,children:ut("div",{"data-truncate-grid":!0,children:e==="truncate"?[o,a]:[a,o,ut("div",{"data-truncate-fill":!0},"fill")]})})}function $8({children:t,...e}){"use no memo";return ut(L7e,{mode:"truncate",...e,children:t})}function mU({children:t,...e}){"use no memo";return ut(L7e,{mode:"fruncate",...e,children:t})}function M7e({children:t,contents:e,priority:n="end",split:r="center",minimumLength:i=12,className:o,style:a,...s}){"use no memo";let l=null,c=null;if(Array.isArray(e)){if(e.length!==2)return console.error("MiddleTruncate: contents must be an array of two items"),null;l=ut($8,{...s,children:e[0]}),c=ut(mU,{...s,children:e[1]})}else{if(typeof t!="string")return console.error("MiddleTruncate: children must be a string"),null;if(t.length===0)return ut("div",{className:o,style:a});if(t.length<i)return n==="end"?ut(mU,{...s,className:o,style:a,children:t}):ut($8,{...s,className:o,style:a,children:t});let u=null,d=null,p=null;if(typeof r=="string")r==="center"?u=S7e:r==="extension"?u=tnt:r==="leaf-path"&&(u=nnt);else if(typeof r=="number")u=rnt,d=r;else if(Array.isArray(r)){let[w,v]=r;p=v,w==="last"?u=int:w==="first"&&(u=ont)}else typeof r=="function"&&(u=r);u??=S7e;let[m,f]=u(t,{priority:n,variant:s.variant,splitIndex:typeof d=="number"?d:void 0,splitOffset:typeof p=="number"?p:void 0}),h=m.length>=f.length,x=n==="equal"&&!h,g=n==="equal"&&h,y={},b={};x&&(y.marker=""),g&&(b.marker=""),l=ut($8,{...s,...y,children:m}),c=ut(mU,{...s,...b,children:f})}return ut("div",{"data-truncate-group-container":"middle",className:o,style:a,children:[ut("div",{"data-truncate-segment-priority":n==="start"||n==="equal"?"1":"2",children:l}),ut("div",{"data-truncate-segment-priority":n==="end"||n==="equal"?"1":"2",children:c})]})}var fU={endIndex:-1,startIndex:-1};function lnt(t,e,n){return Math.min(Math.max(t,e),n)}function E7e(t,e){return t<0||e<t?fU:{endIndex:e,startIndex:t}}function hU(t){return t.startIndex<0||t.endIndex<t.startIndex}function cnt(t,e){return hU(t)?0:(t.endIndex-t.startIndex+1)*e}function T7e(t,e,n){if(e<=0)return-1;let r=e*n;return t<=0?0:t>=r?e:Math.floor(t/n)}function unt(t,e,n){return e<=0||t<=0?-1:t>=e*n?e-1:Math.ceil(t/n)-1}function dnt(t){let e=new Map;return t.forEach((n,r)=>{if(n.kind!=="directory"||!n.isExpanded)return;let i=n.ancestorPaths.length,o=e.get(i);if(o==null){e.set(i,[r]);return}o.push(r)}),e}function pnt(t,e){let n=0,r=t.length-1,i=-1;for(;n<=r;){let o=Math.floor((n+r)/2),a=t[o];if(a==null)break;if(a<=e){i=o,n=o+1;continue}r=o-1}return i}function mnt(t){let e=new Map,n=[];for(let i=0;i<t.length;i+=1){let o=t[i];if(o==null)continue;let a=o.kind==="directory"&&o.isExpanded?[...o.ancestorPaths,o.path]:o.ancestorPaths,s=0;for(;s<n.length&&s<a.length&&n[s]===a[s];)s+=1;for(let l=n.length-1;l>=s;l-=1){let c=n[l];c!=null&&e.set(c,i-1)}n.length=s;for(let l=s;l<a.length;l+=1){let c=a[l];c!=null&&n.push(c)}}let r=t.length-1;for(let i of n)e.set(i,r);return e}function gU(t,e,n){if(t.length===0||e<=0)return[];let r=mnt(t),i=dnt(t),o=[];for(let a=0;a<t.length;a+=1){let s=i.get(a);if(s==null||s.length===0)break;let l=e+a*n,c=pnt(s,Math.min(t.length-1,Math.floor(l/n))),u=null;for(;c>=0;){let d=s[c],p=d==null?null:t[d]??null;if(p!=null&&(a===0||p.ancestorPaths[a-1]===o[a-1]?.path)){u=p;break}c-=1}if(u==null)break;o.push(u)}return o.map((a,s)=>{let l=s*n,c=(r.get(a.path)??t.length-1)+1;if(c>=t.length)return{row:a,top:l};let u=c*n-e;return{row:a,top:Math.min(l,u-n)}}).filter(a=>a.top+n>0)}function R7e(t,e){let n=e.totalRowCount??t.length,r=n*e.itemHeight,i=Math.max(0,e.viewportHeight),o=Math.max(0,Math.floor(e.overscan)),a=Math.max(0,r-i),s=lnt(e.scrollTop,0,a),l=e.stickyRows??gU(t,s,e.itemHeight),c=l.reduce((k,_)=>Math.max(k,_.top+e.itemHeight),0),u=Math.min(r,s+c),d=Math.max(0,i-c),p=Math.max(0,r-u),m=T7e(s,n,e.itemHeight),f=T7e(u,n,e.itemHeight),h=c<=0||m<0||m>=n?-1:m,x=h===-1?-1:Math.min(n-1,f-1),g=h===-1||x<h?0:x-h+1,y=d<=0||f>=n?fU:E7e(f,unt(u+d,n,e.itemHeight)),b=x+1,w=hU(y)?fU:E7e(Math.max(b,y.startIndex-o),Math.min(n-1,y.endIndex+o)),v=cnt(w,e.itemHeight);return{occlusion:{firstOccludedIndex:h,lastOccludedIndex:x,occludedCount:g},physical:{itemHeight:e.itemHeight,maxScrollTop:a,overscan:o,scrollTop:s,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:p,paneHeight:d,paneTop:u},sticky:{height:c,rows:l},visible:y,window:{endIndex:w.endIndex,height:v,offsetTop:hU(w)?0:w.startIndex*e.itemHeight,startIndex:w.startIndex}}}var A7e={added:"A",deleted:"D",ignored:null,modified:"M",renamed:"R",untracked:"U"},$7e={added:"Git status: added",deleted:"Git status: deleted",ignored:"Git status: ignored",modified:"Git status: modified",renamed:"Git status: renamed",untracked:"Git status: untracked"},I7e="Contains git status items";function bU(t){let{currentScrollTop:e,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:o}=t;if(n<0)return null;let a=Math.max(0,i),s=n*r,l=s+r;if(s<e+a){let c=Math.max(0,s-a);return c===e?null:c}if(l>e+o){let c=l-o;return c===e?null:c}return null}function N7e(t){let{currentScrollTop:e,focusedIndex:n,itemHeight:r,offset:i,topInset:o=0,totalHeight:a,viewportHeight:s}=t;if(i==="nearest")return bU({currentScrollTop:e,focusedIndex:n,itemHeight:r,topInset:o,viewportHeight:s});if(n<0)return null;let l=Math.max(0,o),c=n*r,u=Math.max(0,s-l),d=i==="center"?l+Math.max(0,(u-r)/2):l,p=Math.max(0,a-s),m=Math.max(0,Math.min(c-d,p));return m===e?null:m}function P7e(t){let{currentScrollTop:e,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:o,viewportHeight:a}=t;if(n<0)return null;let s=Math.max(0,i),l=n*r,c=l+r,u=e+s,d=e+a;if(l>=u&&c<=d)return null;let p=Math.max(0,o-a),m=Math.max(0,Math.min(l-s,p));return m===e?null:m}function l5(t){if(t==null||!t.isConnected||t===document.body||t===document.documentElement)return!1;t.focus({preventScroll:!0});let e=t.getRootNode();return e instanceof ShadowRoot?e.activeElement===t:document.activeElement===t}function I8(t){let e=t.getRootNode();if(e instanceof ShadowRoot){let r=e.activeElement;return r instanceof HTMLElement?r:null}let n=document.activeElement;return n instanceof HTMLElement&&t.contains(n)?n:null}function M3(t,e){if(t==null)return e;let n=t.getBoundingClientRect().height;return n>0?n:t.clientHeight>0?t.clientHeight:e}function yU(t,e){return t!=null&&t>0?t:e}function j7e(t){let e=t.borderBoxSize,n=Array.isArray(e)?e[0]:e;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:t.contentRect.height>0?t.contentRect.height:null}function xU(t,e,n,r,i=0){let o=bU({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,topInset:i,viewportHeight:r});return o==null?!1:(t.scrollTop=o,!0)}function O7e(t,e,n,r,i,o,a=0){let s=N7e({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,offset:o,topInset:a,totalHeight:i,viewportHeight:r});return s==null?!1:(t.scrollTop=s,!0)}function E3(t,e,n,r,i,o){let a=P7e({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,targetViewportOffset:o,totalHeight:i,viewportHeight:r});return a==null?!1:(t.scrollTop=a,!0)}function wU(t,e,n,r){return n.end<n.start?null:t<n.start?-e:t>n.end?r:null}function D7e(t){let{renamingPath:e,previousRenamingPath:n,hasRenderedInput:r}=t;return e==null?"reset":r?n===e?"ignore":"focus-input":"reveal-canonical"}function F7e({ariaLabel:t,isFlattened:e=!1,ref:n,value:r,onBlur:i,onInput:o}){return ut("input",{ref:n,"data-item-rename-input":!0,...e?{"data-item-flattened-rename-input":!0}:{},"aria-label":t,value:r,onBlur:i,onInput:o,onClick:a=>a.stopPropagation(),onMouseDown:a=>a.stopPropagation(),onPointerDown:a=>a.stopPropagation()})}function B7e(t){let{row:e,mode:n,targetPath:r,ariaLabel:i,domId:o,isParked:a,itemHeight:s,features:l,state:c,extraStyle:u}=t,d=n==="sticky",p=e.ancestorPaths.at(-1)??"",m={};return c.isFocusRinged&&(m["data-item-focused"]=!0),e.isSelected&&(m["data-item-selected"]=!0),c.isContextHovered&&(m["data-item-context-hover"]="true"),c.isDragTarget&&(m["data-item-drag-target"]=!0),c.isDragging&&(m["data-item-dragging"]=!0),c.effectiveGitStatus!=null&&(m["data-item-git-status"]=c.effectiveGitStatus),c.containsGitChange&&(m["data-item-contains-git-change"]="true"),{"aria-expanded":!d&&e.kind==="directory"?e.isExpanded:void 0,"aria-haspopup":l.contextMenuEnabled?"menu":void 0,"aria-label":i,"aria-level":d?void 0:e.level+1,"aria-posinset":d?void 0:e.posInSet+1,"aria-selected":d?void 0:e.isSelected?"true":"false","aria-setsize":d?void 0:e.setSize,"data-file-tree-sticky-path":d?r:void 0,"data-file-tree-sticky-row":d?"true":void 0,"data-item-context-menu-button-visibility":l.actionLaneEnabled?l.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":l.contextMenuEnabled?l.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":l.actionLaneEnabled?"true":void 0,"data-item-has-git-lane":l.gitLaneActive?"true":void 0,"data-item-parent-path":p.length>0?p:void 0,"data-item-parked":a?"true":void 0,"data-item-path":r,"data-item-type":e.kind==="directory"?"folder":"file","data-type":"item",id:d?void 0:o,role:d?void 0:"treeitem",style:{minHeight:`${s}px`,...u},tabIndex:!d&&e.isFocused?0:-1,...m}}function z7e(t){let{event:e,mode:n,isSearchOpen:r,isDirectory:i}=t,o=e.ctrlKey||e.metaKey,a=e.shiftKey||o,s=e.shiftKey?{additive:o,kind:"range"}:o?{kind:"toggle"}:{kind:"single"};return{closeSearch:r,revealCanonical:n==="sticky",selection:s,toggleDirectory:!a&&i}}var T3,_i,vU,q7e,kU=Object.is,N8=0,X7e=[],Vi=mr,H7e=Vi.__b,G7e=Vi.__r,U7e=Vi.diffed,V7e=Vi.__c,Z7e=Vi.unmount,W7e=Vi.__;function RT(t,e){Vi.__h&&Vi.__h(_i,t,N8||e),N8=0;var n=_i.__H||(_i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Hu(t){return N8=1,fnt(Y7e,t)}function fnt(t,e,n){var r=RT(T3++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Y7e(void 0,e),function(s){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,s);kU(l,c)||(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=_i,!_i.__f)){var i=function(s,l,c){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(p){return!!p.__c});if(u.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var d=r.__c.props!==s;return u.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,kU(m,p.__[0])||(d=!0)}}),o&&o.call(this,s,l,c)||d};_i.__f=!0;var o=_i.shouldComponentUpdate,a=_i.componentWillUpdate;_i.componentWillUpdate=function(s,l,c){if(4&this.__g){var u=o;o=void 0,i(s,l,c),o=u}a&&a.call(this,s,l,c)},_i.shouldComponentUpdate=i}return r.__N||r.__}function _U(t,e){var n=RT(T3++,3);!Vi.__s&&SU(n.__H,e)&&(n.__=t,n.u=e,_i.__H.__h.push(n))}function ll(t,e){var n=RT(T3++,4);!Vi.__s&&SU(n.__H,e)&&(n.__=t,n.u=e,_i.__h.push(n))}function bn(t){return N8=5,qm(function(){return{current:t}},[])}function qm(t,e){var n=RT(T3++,7);return SU(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function aa(t,e){return N8=8,qm(function(){return t},e)}function hnt(){for(var t;t=X7e.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(TT),t.__H.__h.forEach(CU),t.__H.__h=[]}catch(e){t.__H.__h=[],Vi.__e(e,t.__v)}}Vi.__b=function(t){_i=null,H7e&&H7e(t)},Vi.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),W7e&&W7e(t,e)},Vi.__r=function(t){G7e&&G7e(t),T3=0;var e=(_i=t.__c).__H;e&&(vU===_i?(e.__h=[],_i.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.forEach(TT),e.__h.forEach(CU),e.__h=[],T3=0)),vU=_i},Vi.diffed=function(t){U7e&&U7e(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(X7e.push(e)!==1&&q7e===Vi.requestAnimationFrame||((q7e=Vi.requestAnimationFrame)||gnt)(hnt)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),vU=_i=null},Vi.__c=function(t,e){e.some(function(n){try{n.__h.forEach(TT),n.__h=n.__h.filter(function(r){return!r.__||CU(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],Vi.__e(r,n.__v)}}),V7e&&V7e(t,e)},Vi.unmount=function(t){Z7e&&Z7e(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{TT(r)}catch(i){e=i}}),n.__H=void 0,e&&Vi.__e(e,n.__v))};var K7e=typeof requestAnimationFrame=="function";function gnt(t){var e,n=function(){clearTimeout(r),K7e&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);K7e&&(e=requestAnimationFrame(n))}function TT(t){var e=_i,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),_i=e}function CU(t){var e=_i;t.__c=t.__(),_i=e}function SU(t,e){return!t||t.length!==e.length||e.some(function(n,r){return!kU(n,t[r])})}function Y7e(t,e){return typeof e=="function"?e(t):e}function bnt(t,e=null,n=null){"use no memo";let r=t.flattenedSegments;return r==null||r.length===0?e??t.name:ut("span",{"data-item-flattened-subitems":!0,children:r.map((i,o)=>{let a=o===r.length-1;return ut(Wd,{children:[ut("span",{"data-item-flattened-subitem":i.path,"data-item-flattened-subitem-drag-target":n===i.path?"true":void 0,children:a&&e!=null?e:ut($8,{children:i.name})}),o<r.length-1?" / ":""]},i.path)})})}function A3(t){return t.isFlattened?t.flattenedSegments?.findLast(e=>e.isTerminal)?.path??t.path:t.path}function MU(t){let e=t.flattenedSegments;return e==null||e.length===0?t.name:e.map(n=>n.name).join(" / ")}function Q7e(t,e,n,r){return t.map((i,o)=>{let a=o*n,s=i.subtreeEndIndex+1;if(s>=r)return{row:i.row,top:a};let l=s*n-e;return{row:i.row,top:Math.min(a,l-n)}}).filter(i=>i.top+n>0)}function LU({controller:t,itemHeight:e,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:o}){let a=t.getVisibleCount(),s=i&&a>0?t.getStickyRowCandidates(r,e):[],l=s==null&&i&&a>0?t.getVisibleRows(0,a-1):[],c=R7e(l,{itemHeight:e,overscan:n,scrollTop:r,stickyRows:s==null?void 0:Q7e(s,r,e,a),totalRowCount:a,viewportHeight:o}),u=i&&r<=0&&a>0?t.getStickyRowCandidates(1,e):[],d=u!=null&&r<=0?Q7e(u,1,e,a):i&&r<=0&&l.length>0?gU(l,1,e):c.sticky.rows;return{overlayHeight:d.reduce((p,m)=>Math.max(p,m.top+e),0),overlayRows:d,snapshot:c,visibleRows:l}}var ynt=400,J7e=10,R3=40,e6e=18;function xnt(t,e,n){let r=t,i=document.elementFromPoint?.bind(document)??null,o=r.elementFromPoint?.(e,n)??i?.(e,n)??null;return t instanceof ShadowRoot&&(o==null||!t.contains(o))?wnt(t,e,n):o instanceof HTMLElement?o:null}function wnt(t,e,n){let r=Array.from(t.querySelectorAll('[data-type="item"], [data-item-flattened-subitem]'));for(let i=r.length-1;i>=0;i--){let o=r[i],a=o.getBoundingClientRect();if(e>=a.left&&e<=a.right&&n>=a.top&&n<=a.bottom)return o}return null}function t6e(t){let e=t?.closest?.('[data-type="item"]');if(!(e instanceof HTMLElement))return null;let n=e.dataset.itemPath??null;if(n==null)return null;let r=t?.closest?.("[data-item-flattened-subitem]"),i=r instanceof HTMLElement?r.getAttribute("data-item-flattened-subitem")??null:null;if(i!=null&&i.endsWith("/"))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:"directory"};if(e.dataset.itemType==="folder")return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"};let o=e.dataset.itemParentPath??null;return o==null||o.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:"root"}:{directoryPath:o,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"}}function n6e(t){let e=t.cloneNode(!0);return e.removeAttribute("id"),e.dataset.fileTreeDragPreview="true",e.setAttribute("aria-hidden","true"),e.tabIndex=-1,Object.assign(e.style,{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",left:"0px",margin:"0",pointerEvents:"none",position:"fixed",top:"0px",willChange:"transform",zIndex:"10000"}),e}function vnt(){return navigator.vendor!=="Apple Computer, Inc."}function knt(t,e){let n=t-e.top;if(n<R3){let i=Math.max(0,n);return-Math.ceil((R3-i)/R3*e6e)}let r=e.bottom-t;if(r<R3){let i=Math.max(0,r);return Math.ceil((R3-i)/R3*e6e)}return 0}function Cnt(t,e){if(t!=null){let n=A7e[t];return n==null?null:{text:n,title:$7e[t]}}return e?{icon:{name:"file-tree-icon-dot",width:6,height:6},title:I7e}:null}function _nt(t,e,n){if(e==null||e.size===0)return null;let r=[];for(let i=t.length-1;i>=0;i-=1){let o=t[i],a=n.get(o);if(a!=null){for(let s of r)n.set(s,a);return a?"ignored":null}if(e.has(o)){n.set(o,!0);for(let s of r)n.set(s,!0);return"ignored"}r.push(o)}for(let i of r)n.set(i,!1);return null}function r6e(t){return t!=null&&"toggle"in t}function d6e(t){return t.code==="Space"||t.key===" "||t.key==="Spacebar"}function Snt(t){return t.key.length===1&&/^[\p{L}\p{N}]$/u.test(t.key)&&!t.ctrlKey&&!t.metaKey&&!t.altKey}function Lnt(t){return t==null?"":`[data-item-section="spacing-item"][data-ancestor-path="${t.replaceAll("\\","\\\\").replaceAll('"','\\"')}"] { opacity: 1; }`}function p6e(t){return t.shiftKey&&t.key==="F10"||t.key==="ContextMenu"}function Mnt(t,e){return e&&p6e(t)||(t.ctrlKey||t.metaKey)&&d6e(t)?!0:t.key==="ArrowDown"||t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"}var Ent=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function i6e(t){for(let e of t.composedPath())if(e instanceof HTMLElement&&(e.dataset.fileTreeContextMenuRoot==="true"||e.dataset.type==="context-menu-anchor"||e.dataset.type===nT||e.getAttribute("slot")===gh))return!0;return!1}function Tnt(t){return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width,x:t.x,y:t.y}}function Rnt(t,e){return{bottom:e,height:0,left:t,right:t,top:e,width:0,x:t,y:e}}function Ant(t,e){if(t==null)return e.offsetTop;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top-r.top}function o6e(t,e,n){if(n==null){t.delete(e);return}t.set(e,n)}function a6e(t,e,n){if(t==null)return null;let r=e.get(t)??null;if(r!=null)return r;let i=n.get(t)??null;return i?.dataset.itemParked==="true"?null:i}function $nt(t){if(t==null)return[];let e=[];for(let n of t.querySelectorAll('button[data-file-tree-sticky-row="true"]')){if(!(n instanceof HTMLElement))continue;let r=n.dataset.fileTreeStickyPath;r!=null&&e.push(r)}return e}function Int(t,e){if(t==null||e==null)return null;for(let n of t.querySelectorAll('button[data-item-focused="true"][data-item-parked="true"]'))if(n instanceof HTMLElement&&n.dataset.itemPath===e)return n;return null}function Nnt(t,e,n,r,i,o,a){let s=Math.max(0,o-i),l=e?.getBoundingClientRect()??null,c=l==null||n==null?null:n.getBoundingClientRect().top-l.top,u=Int(t,r),d=l==null||u==null?null:u.getBoundingClientRect().top-l.top;return Math.max(0,Math.min(d??Math.max(c??0,s),Math.max(0,a-i)))}function s6e(t,e){return{kind:t.kind,name:MU(t),path:e}}function Pnt(t){return t==null?void 0:`${t}__tree`}function m6e(t,e,n){if(t!=null)return`${t}__focused-item-${encodeURIComponent(e)}${n?"__parked":""}`}function l6e(t){return t==="file-tree-icon-chevron"||t==="file-tree-icon-dot"||t==="file-tree-icon-file"||t==="file-tree-icon-lock"}function c6e(t,e){if(t==null)return null;if("text"in t)return ut("span",{title:t.title,children:t.text});let n=typeof t.icon=="string"?l6e(t.icon)?e(t.icon):{name:t.icon}:l6e(t.icon.name)?(()=>{let r=e(t.icon.name),{name:i,...o}=t.icon;return{...r,...o}})():t.icon;return ut("span",{title:t.title,children:ut(L3,{...n})})}function u6e(t){t!=null&&l5(t.querySelector(["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "))??t)}function jnt(t,e,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:o=null,gitDecoration:a=null,gitLaneActive:s=!1,renameInput:l=null,showDecorativeActionAffordance:c=!1}={}){let u=A3(t);return ut(Wd,{children:[t.depth>0?ut("div",{"data-item-section":"spacing",children:Array.from({length:t.depth}).map((d,p)=>ut("div",{"data-item-section":"spacing-item","data-ancestor-path":t.ancestorPaths[p]},p))}):null,ut("div",{"data-item-section":"icon",children:t.kind==="directory"?ut(L3,{...e("file-tree-icon-chevron")}):ut(L3,{...e("file-tree-icon-file",u)})}),ut("div",{"data-item-section":"content",children:t.isFlattened?bnt(t,l,o):l??ut(M7e,{minimumLength:5,split:"extension",children:t.name})}),i?ut("div",{"data-item-section":"decoration",children:r!=null?c6e(r,e):null}):null,s?ut("div",{"data-item-section":"git",children:c6e(a,e)}):null,n?ut("div",{"data-item-section":"action",children:c?ut("span",{"aria-hidden":"true","data-item-action-affordance":"decorative",children:ut(L3,{...e("file-tree-icon-ellipsis")})}):null}):null]})}function AT(t,e,n,r={}){let{controller:i,renameView:o,visualFocusPath:a,contextHoverPath:s,draggedPathSet:l,dragTarget:c,dragAndDropEnabled:u,shouldSuppressContextMenu:d,handleRowDragStart:p,handleRowDragEnd:m,handleRowTouchStart:f,instanceId:h,itemHeight:x,gitStatusByPath:g,ignoredGitDirectories:y,ignoredInheritanceCache:b,directoriesWithGitChanges:w,gitLaneActive:v,contextMenuEnabled:k,contextMenuTriggerMode:_,contextMenuButtonTriggerEnabled:L,contextMenuButtonVisibility:S,contextMenuRightClickEnabled:C,registerRenameInput:T,registerButton:M,resolveIcon:A,renderDecorationForRow:$,openContextMenuForRow:N,onRowClick:F,onKeyDown:D}=t,O=A3(e),{isParked:B=!1,mode:P="flow",style:U}=r,G=P==="sticky",j=g?.get(O)??null??_nt(e.ancestorPaths,y,b),V=e.kind==="directory"&&(w?.has(O)??!1),H=$(e,O),ne=Cnt(j,V),J=k&&L,W=H!=null||v||J,ie=J&&S==="always",Z=o.getPath()===O,le=Z?o.getValue():"",se=G||!Z?null:ut(F7e,{ref:T,ariaLabel:`Rename ${MU(e)}`,isFlattened:e.isFlattened,value:le,onBlur:()=>{o.commit()},onInput:be=>{o.setValue(be.currentTarget.value)}}),ge=jnt(e,A,{actionLaneEnabled:J,customDecoration:H,decorationLaneEnabled:W,dragTargetFlattenedSegmentPath:c?.flattenedSegmentPath??null,gitDecoration:ne,gitLaneActive:v,renameInput:se,showDecorativeActionAffordance:ie}),ce={...B7e({ariaLabel:MU(e),domId:e.isFocused?m6e(h,O,B):void 0,extraStyle:U,features:{actionLaneEnabled:J,contextMenuButtonVisibility:J?S:null,contextMenuEnabled:k,contextMenuTriggerMode:k?_:null,gitLaneActive:v},isParked:B,itemHeight:x,mode:P,row:e,state:{containsGitChange:V,effectiveGitStatus:j,isContextHovered:s===O,isDragTarget:c?.kind==="directory"&&c.directoryPath===O,isDragging:l?.has(O)===!0,isFocusRinged:e.isFocused&&a===O},targetPath:O}),key:n,onContextMenu:k||u?be=>{if(d()){be.preventDefault();return}k&&(be.preventDefault(),C&&(i.focusMountedPathFromInput(O),N(e,O,{anchorRect:Rnt(be.clientX,be.clientY),source:"right-click"})))}:void 0,onFocus:G?void 0:()=>{i.focusMountedPathFromInput(O)},onKeyDown:G?void 0:D,ref:be=>{M(O,be)}};return!G&&Z?ut("div",{...ce,children:ge}):ut("button",{...ce,type:"button",draggable:u&&!B,onDragEnd:u&&!B?m:void 0,onDragStart:u&&!B?be=>{p(be,e,O)}:void 0,onMouseDown:be=>{if(G){be.preventDefault();return}i.isSearchOpen()&&be.preventDefault()},onTouchStart:u&&!B?be=>{f(be,e,O)}:void 0,onClick:be=>{F(be,e,O,P)},children:ge})}function Ont(t,e,n){return e.end<e.start?[]:t.controller.getVisibleRows(e.start,e.end).filter(r=>!n.has(A3(r))).map((r,i)=>AT(t,r,e.start+i))}function EU({composition:t,controller:e,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:o,instanceId:a,itemHeight:s=hT,overscan:l=V4e,renamingEnabled:c=!1,renderRowDecoration:u,searchBlurBehavior:d="close",searchEnabled:p=!1,searchFakeFocus:m=!1,slotHost:f,stickyFolders:h=!1,initialViewportHeight:x=gT}){"use no memo";let g=bn(null),y=bn(null),b=bn(!1),w=bn(null),v=bn(null),k=bn(null),_=bn(null),L=bn(null),S=bn(new Map),C=bn(new Map),T=bn(()=>{}),M=bn(null),A=bn(0),$=bn(!1),N=bn(null);N.current!==e&&($.current=!1,N.current=e);let F=bn(!1),D=bn(null),O=bn(null),B=bn(!1),P=bn(null),U=bn(null),G=bn(null),j=bn(null),V=bn(null),H=bn(null),ne=bn(null),J=bn(null),W=bn(!1),ie=bn(null),Z=bn(null),le=bn(null),se=bn(null),ge=qm(()=>new Map,[]),[,ce]=Hu(0),[be,ke]=Hu(null),[me,Se]=Hu(null),[de,Le]=Hu(null),[Ne,Be]=Hu(null),[_e,xe]=Hu(0),[Ce,K]=Hu(null),Y=bn(Ce);Y.current=Ce;let ye=bn(null),Re=bn(null),Ke=bn(null),mt=bn(null),dt=bn(null),Ae=bn(!1),wt=()=>{Re.current=null,Ke.current=null,mt.current=null},Tt=(re,$e)=>{Re.current=re,Ke.current=null,mt.current=$e==null?null:{path:re,scrollTop:$e}},Ot=(re,$e)=>{Re.current=null,Ke.current={path:re,viewportOffset:$e},mt.current=null},zt=bn(d==="retain"&&e.isSearchOpen()),[Ve,Jt]=Hu(m);_U(()=>{m||Jt(!1)},[m]);let rn=bn(!1),Rn=aa(()=>{rn.current=!0,Jt(re=>re&&!1)},[]),[St,An]=Hu(()=>LU({controller:e,itemHeight:s,overscan:l,scrollTop:0,stickyFolders:h,viewportHeight:x})),[Xt,zn]=Hu(!1);_U(()=>{zn(!0)},[]);let Dt=t?.contextMenu?.enabled===!0||t?.contextMenu?.render!=null||t?.contextMenu?.onOpen!=null||t?.contextMenu?.onClose!=null,mn=t?.contextMenu?.triggerMode??(Dt?"right-click":"both"),yn=mn==="both"||mn==="button",In=t?.contextMenu?.buttonVisibility??"when-needed",er=mn==="both"||mn==="right-click";ll(()=>{let re=k.current;if(re==null)return;let $e=at=>{if(!(at instanceof CustomEvent))return;let yt=at.detail?.path??null;dt.current=yt,Se(yt),Be(yt==null?null:"pointer")},_t=at=>{at instanceof CustomEvent&&(Ae.current=at.detail?.disabled===!0)};return re.addEventListener("file-tree-debug-set-context-menu-trigger",$e),re.addEventListener("file-tree-debug-set-scroll-suppression",_t),()=>{re.removeEventListener("file-tree-debug-set-context-menu-trigger",$e),re.removeEventListener("file-tree-debug-set-scroll-suppression",_t)}},[]);let ae=aa((re,$e)=>{o6e(S.current,re,$e)},[]),st=aa((re,$e)=>{o6e(C.current,re,$e)},[]),Mt=aa(re=>{v.current=re},[]),Ye=aa(re=>a6e(re,C.current,S.current),[]),vt=n!=null||r!=null||i!=null,{resolveIcon:jn}=qm(()=>C8(o),[o]),Kn=e[rU](),un=Kn.getPath(),it=un!=null,ft=e.isSearchOpen(),En=e.getSearchValue(),jt=e.getFocusedPath(),Nt=e.getFocusedIndex(),mi=e.getScrollRequest(),Ei=e.isDragAndDropEnabled(),Ti=e.getDragSession(),Ua=qm(()=>Ti==null?null:new Set(Ti.draggedPaths),[Ti]),fl=Ti?.target??null,Ge=Ti?.primaryPath??null,dn=Pnt(a),{overlayHeight:pt,overlayRows:vs,snapshot:Gr,visibleRows:np}=St,Ri=Gr.physical.viewportHeight,Wi=qm(()=>({end:Gr.window.endIndex,start:Gr.window.startIndex}),[Gr.window.endIndex,Gr.window.startIndex]),co=vs,ks=Gr.sticky.rows,da=Gr.physical.totalHeight,Oo=Gr.sticky.height,Cs=qm(()=>new Set(ks.map(re=>A3(re.row))),[ks]),Th=Nt>=0&&Nt>=Wi.start&&Nt<=Wi.end,uo=aa((re,$e)=>u?.({item:s6e(re,$e),row:re})??null,[u]),pa=aa(re=>l5(re==null?null:S.current.get(re)??null)?!0:l5(k.current),[]),rp=aa(re=>{pa(e.focusNearestPath(re))},[e,pa]),tf=bn(rp);tf.current=rp;let ac=bn(!0),Rh=bn(()=>{}),Do=aa((re=!0)=>{let $e=Y.current;$e!=null&&(ac.current=ac.current&&re,K(null),t?.contextMenu?.onClose?.(),ac.current&&rp($e.path))},[t?.contextMenu,rp]);Rh.current=Do;let sc=aa(re=>{let $e=re==null?null:Ant(k.current,re);Le(_t=>_t===$e?_t:$e)},[]),Fo=aa((re,$e,_t)=>{let at=e.getItem($e);if(at==null)return;let yt=Ye($e);if(yt?.dataset.fileTreeStickyRow==="true"){let Gt=_.current;Tt($e,Gt?.scrollTop??null),F.current=!0,ke(ei=>ei===$e?ei:$e)}at.focus(),sc(yt),ac.current=!0,K({anchorRect:_t?.anchorRect??null,item:s6e(re,$e),path:$e,source:_t?.source??"keyboard"})},[e,Ye,sc]),nf=aa(re=>{if(c){if(e.isSearchOpen()){let $e=_.current,_t=M3($e,Ri);P.current=Nt<0||$e==null?null:Math.max(0,Math.min(Nt*s-$e.scrollTop,Math.max(0,_t-s))),B.current=!0}e.startRenaming(re)!==!1&&(Be("focus"),ce($e=>$e+1))}},[e,Nt,s,c,Ri]),rf=aa((re,{restoreTreeFocus:$e=!0,targetOffset:_t="live-overlay"}={})=>{let at=_.current;if(at==null)return!1;e.focusPath(re);let yt=e.getFocusedIndex();if(yt<0)return!1;let Gt=e.getVisibleRows(yt,yt)[0]??null;if(Gt==null)return!1;let ei=M3(at,Ri),pn=e.getVisibleCount()*s,Xn=_t==="sticky-parents"?Gt.ancestorPaths.length*s:LU({controller:e,itemHeight:s,overscan:l,scrollTop:at.scrollTop,stickyFolders:h,viewportHeight:ei}).snapshot.sticky.height;return F.current=!0,E3(at,yt,s,ei,pn,Xn),T.current(),ye.current=$e?re:null,!0},[e,s,l,Ri,h]),of=()=>b.current===!0||se.current!=null||W.current===!0,lc=re=>typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{re()}):window.setTimeout(re,16),Va=re=>{if(re!=null){if(typeof window.cancelAnimationFrame=="function"){window.cancelAnimationFrame(re);return}window.clearTimeout(re)}},fi=()=>{j.current!=null&&(clearTimeout(j.current),j.current=null),G.current=null},cu=()=>{H.current?.remove(),H.current=null},_s=()=>{Va(U.current),U.current=null,V.current=null},hl=re=>{let $e=k.current?.getRootNode();if($e instanceof ShadowRoot){$e.append(re);return}document.body.append(re)},Za=()=>{J.current?.(),J.current=null,se.current!=null&&(clearTimeout(se.current),se.current=null),W.current=!1,ie.current=null,le.current=null,Z.current!=null&&(Z.current.setAttribute("draggable","true"),Z.current.style.removeProperty("touch-action"),Z.current=null),cu(),fi(),_s(),ne.current=null},cc=(re,$e)=>{let _t=k.current?.getRootNode(),at=t6e(xnt(_t instanceof ShadowRoot?_t:document,re,$e));return e.setDragTarget(at),e.getDragSession()?.target??null},ip=re=>{let $e=e.getDragAndDropConfig()?.openOnDropDelay??800;if(re==null||re.kind!=="directory"||re.directoryPath==null||$e<=0){fi();return}let _t=e.getItem(re.directoryPath),at=r6e(_t)?_t:null;if(at==null||at.isExpanded()){fi();return}let yt=`${re.directoryPath}::${re.flattenedSegmentPath??""}`;G.current!==yt&&(fi(),G.current=yt,j.current=setTimeout(()=>{let Gt=e.getDragSession()?.target;Gt?.kind!=="directory"||Gt.directoryPath!==re.directoryPath||Gt.flattenedSegmentPath!==re.flattenedSegmentPath||at.expand()},$e))},Ah=()=>{U.current=null;let re=V.current,$e=_.current;if(re==null||$e==null||e.getDragSession()==null)return;let _t=$e.getBoundingClientRect(),at=knt(re.clientY,_t);if(at===0)return;let yt=Math.max(0,$e.scrollHeight-$e.clientHeight),Gt=Math.max(0,Math.min(yt,$e.scrollTop+at));Gt!==$e.scrollTop&&($e.scrollTop=Gt,T.current()),ip(cc(re.clientX,re.clientY)),U.current=lc(Ah)},C5=(re,$e)=>{V.current={clientX:re,clientY:$e},U.current??=lc(Ah)},_5=(re,$e,_t)=>{let at=re.currentTarget;if(at!=null){if(Za(),cu(),fi(),_s(),e.startDrag(_t)===!1){re.preventDefault();return}if(ne.current=$e,re.dataTransfer!=null&&(re.dataTransfer.effectAllowed="move",re.dataTransfer.dropEffect="move",re.dataTransfer.setData("text/plain",_t),vnt())){let yt=n6e(at),Gt=at.getBoundingClientRect();Object.assign(yt.style,{height:`${Gt.height}px`,opacity:"0.85",transform:"translate3d(-9999px, 0px, 0)",width:`${Gt.width}px`}),hl(yt),H.current=yt,re.dataTransfer.setDragImage(yt,Math.max(0,re.clientX-Gt.left),Math.max(0,re.clientY-Gt.top))}}},$h=()=>{cu(),fi(),_s(),ne.current=null,e.cancelDrag()},S5=(re,$e,_t)=>{if(se.current!=null||W.current)return;let at=re.touches[0],yt=re.currentTarget;if(at==null||yt==null)return;le.current={clientX:at.clientX,clientY:at.clientY},Z.current=yt,yt.setAttribute("draggable","false");let Gt=(Xn={})=>{let Tr=Xn.restoreNativeDraggable??!W.current;se.current!=null&&(clearTimeout(se.current),se.current=null),document.removeEventListener("touchmove",ei),document.removeEventListener("touchend",pn),document.removeEventListener("touchcancel",pn),J.current===Gt&&(J.current=null),Tr&&(yt.setAttribute("draggable","true"),Z.current===yt&&(Z.current=null),le.current=null)},ei=Xn=>{let Tr=Xn.touches[0],jr=le.current;if(Tr==null||jr==null)return;let Ai=Tr.clientX-jr.clientX,Ki=Tr.clientY-jr.clientY;Ai*Ai+Ki*Ki<=J7e*J7e||Gt()},pn=()=>{Gt()};document.addEventListener("touchmove",ei,{passive:!0}),document.addEventListener("touchend",pn),document.addEventListener("touchcancel",pn),J.current=Gt,se.current=setTimeout(()=>{if(Gt({restoreNativeDraggable:!1}),e.startDrag(_t)===!1){yt.setAttribute("draggable","true"),Z.current===yt&&(Z.current=null),le.current=null;return}W.current=!0,Z.current=yt,yt.setAttribute("draggable","false"),yt.style.setProperty("touch-action","none"),ne.current=$e;let Xn=yt.getBoundingClientRect(),Tr=n6e(yt);Object.assign(Tr.style,{height:`${Xn.height}px`,opacity:"0.85",transform:`translate3d(${Xn.left}px, ${Xn.top}px, 0)`,width:`${Xn.width}px`}),hl(Tr),H.current=Tr,ie.current={x:at.clientX-Xn.left,y:at.clientY-Xn.top};let jr=Wu=>{let Xi=Wu.touches[0];if(Xi==null)return;Wu.preventDefault();let bl=ie.current;bl!=null&&H.current!=null&&(H.current.style.transform=`translate3d(${Xi.clientX-bl.x}px, ${Xi.clientY-bl.y}px, 0)`),ip(cc(Xi.clientX,Xi.clientY)),C5(Xi.clientX,Xi.clientY)},Ai=Wu=>{let Xi=Wu.changedTouches[0];Xi!=null&&cc(Xi.clientX,Xi.clientY),e.completeDrag(),Za()},Ki=()=>{e.cancelDrag(),Za()};J.current=()=>{document.removeEventListener("touchmove",jr),document.removeEventListener("touchend",Ai),document.removeEventListener("touchcancel",Ki)},document.addEventListener("touchmove",jr,{passive:!1}),document.addEventListener("touchend",Ai),document.addEventListener("touchcancel",Ki)},ynt)},af=re=>{if(Ce!=null){if(re.key==="Escape"){Do(),re.preventDefault(),re.stopPropagation();return}Ent.has(re.key)&&(re.preventDefault(),re.stopPropagation());return}if(Kn.isActive()){if(re.key==="Escape")Kn.cancel();else if(re.key==="Enter")Kn.commit();else return;Be("focus"),ce(gi=>gi+1),re.preventDefault(),re.stopPropagation();return}if(c&&re.key==="F2"){nf(jt??void 0),re.preventDefault(),re.stopPropagation();return}if(ft){if(re.key==="Escape")B.current=!1,P.current=null,e.closeSearch();else if(re.key==="Enter"){let gi=e.getFocusedPath();gi!=null&&e.selectOnlyPath(gi);let Ku=_.current,Y8=M3(Ku,Ri);P.current=Nt<0||Ku==null?null:Math.max(0,Math.min(Nt*s-Ku.scrollTop,Math.max(0,Y8-s))),B.current=!0,e.closeSearch()}else if(re.key==="ArrowDown")e.focusNextSearchMatch();else if(re.key==="ArrowUp")e.focusPreviousSearchMatch();else return;Be("focus"),ce(gi=>gi+1),re.preventDefault(),re.stopPropagation();return}if(p&&Snt(re)){e.openSearch(re.key),ce(gi=>gi+1),re.preventDefault(),re.stopPropagation();return}let $e=Dt&&p6e(re),_t=Mnt(re,Dt),at=_t&&k.current!=null?I8(k.current):null,yt=_t?new Set($nt(k.current)):new Set,Gt=at?.dataset.fileTreeStickyPath??null,ei=at?.dataset.fileTreeStickyRow==="true"&&Gt!=null;if(ei&&Gt!==jt&&yt.has(Gt)){let gi=_.current;Tt(Gt,gi?.scrollTop??null),e.focusPath(Gt)}let pn=e.getFocusedPath(),Xn=e.getFocusedIndex(),Tr=e.getFocusedItem();if(Tr==null)return;let jr=r6e(Tr)?Tr:null,Ai=pn!=null&&(Cs.has(pn)||ei&&Gt===pn&&yt.has(pn)),Ki=re.key==="ArrowDown"||re.key==="ArrowUp"||re.key==="ArrowRight"&&jr!=null&&jr.isExpanded(),Wu=re.key==="ArrowLeft"&&Ai&&jr!=null&&jr.isExpanded(),Xi=_.current,bl=!0;if(re.shiftKey&&re.key==="ArrowDown")e.extendSelectionFromFocused(1);else if(re.shiftKey&&re.key==="ArrowUp")e.extendSelectionFromFocused(-1);else if($e&&pn!=null&&Xn>=0){let gi=e.getVisibleRows(Xn,Xn)[0]??null,Ku=a6e(pn,C.current,S.current);gi==null||Ku==null?bl=!1:Fo(gi,pn)}else if((re.ctrlKey||re.metaKey)&&d6e(re))e.toggleFocusedSelection();else if((re.ctrlKey||re.metaKey)&&re.key.toLowerCase()==="a")e.selectAllVisiblePaths();else switch(re.key){case"ArrowDown":e.focusNextItem();break;case"ArrowUp":e.focusPreviousItem();break;case"ArrowRight":jr==null||jr.isExpanded()?e.focusNextItem():jr.expand();break;case"ArrowLeft":jr!=null&&jr.isExpanded()?jr.collapse():e.focusParentItem();break;case"Home":e.focusFirstItem();break;case"End":e.focusLastItem();break;default:bl=!1}if(!bl)return;Be("focus");let qn=e.getFocusedPath(),Ls=qn!=null&&(Cs.has(qn)||yt.has(qn)),du=Ki&&qn!==pn,X8=$e&&ei&&Gt===pn&&qn===pn;if((Ai||X8)&&qn!=null&&(du&&Ls||X8))Tt(qn,Xi?.scrollTop??null),F.current=!0,ke(gi=>gi===qn?gi:qn);else{let gi=re.key==="ArrowUp"&&Ai&&qn!==pn;qn!=null&&(gi||Wu&&qn===pn)?(Ot(qn,Nnt(k.current,Xi,at,pn,s,Oo,Ri)),F.current=!0,ke(Ku=>Ku===qn?Ku:qn)):wt()}ce(gi=>gi+1),re.preventDefault(),re.stopPropagation()};ll(()=>{if(!(!p||!ft)){if(zt.current){zt.current=!1;return}l5(L.current)}},[ft,p]),ll(()=>{let re=v.current;switch(D7e({hasRenderedInput:re!=null,previousRenamingPath:O.current,renamingPath:un})){case"reset":O.current=null;return;case"reveal-canonical":un!=null&&rf(un,{restoreTreeFocus:!1,targetOffset:"live-overlay"});return;case"ignore":return;case"focus-input":re!=null&&(ye.current=null,O.current=un,l5(re),re.select());return}},[Wi.end,Wi.start,un,rf,Cs]),ll(()=>{let re=k.current;if(re==null)return;let $e=null,_t=()=>{$e!=null&&(clearTimeout($e),$e=null)},at=()=>{let ei=I8(re)?.dataset.itemPath??null;ke(pn=>pn===ei?pn:ei)},yt=()=>{_t(),F.current=!0,at()},Gt=ei=>{let pn=ei.relatedTarget;if(pn==null){_t(),$e=setTimeout(()=>{if($e=null,I8(re)!=null){at();return}F.current=!1,ke(null)},0);return}if(!(pn instanceof Node)||!re.contains(pn)){_t(),F.current=!1,ke(null);return}let Xn=pn instanceof HTMLElement?pn.dataset.itemPath??null:null;ke(Tr=>Tr===Xn?Tr:Xn)};return re.addEventListener("focusin",yt),re.addEventListener("focusout",Gt),()=>{_t(),re.removeEventListener("focusin",yt),re.removeEventListener("focusout",Gt)}},[]),ll(()=>{let re=k.current;re!=null&&(Gr.physical.scrollTop<=0?re.dataset.scrollAtTop="true":delete re.dataset.scrollAtTop)},[Gr.physical.scrollTop]),ll(()=>{let re=null,$e=_.current,_t=w.current,at=k.current;if($e==null)return;M.current=M3($e,x);let yt=()=>{let qn=e.getVisibleCount(),Ls=yU(M.current,x),du=Math.max(0,qn*s-Ls);$e.scrollTop>du&&($e.scrollTop=du),An(LU({controller:e,itemHeight:s,overscan:l,scrollTop:Math.min($e.scrollTop,du),stickyFolders:h,viewportHeight:Ls}))};if(!$.current){$.current=!0;let qn=e.getFocusedIndex();if(qn>=0){let Ls=yU(M.current,x),du=e.getVisibleRows(qn,qn)[0]??null;xU($e,qn,s,Ls,h&&du!=null?Math.max(0,Math.min(du.ancestorPaths.length*s,Math.max(0,Ls-s))):0)}}T.current=yt;let Gt=!1,ei=e.subscribe(()=>{Gt?ce(qn=>qn+1):Gt=!0,yt()}),pn=()=>{Ae.current!==!0&&(_t!=null&&(_t.dataset.isScrolling??=""),at!=null&&(at.dataset.isScrolling??=""),b.current=!0,re!=null&&clearTimeout(re),re=setTimeout(()=>{_t!=null&&delete _t.dataset.isScrolling,at!=null&&delete at.dataset.isScrolling,b.current=!1,xe(qn=>qn+1),re=null},50))},Xn=null,Tr=()=>{at!=null&&delete at.dataset.overlayReveal,Xn!=null&&(clearTimeout(Xn),Xn=null)},jr=()=>{at==null||Ae.current===!0||$e.scrollTop>0||(at.dataset.overlayReveal="true",Xn!=null&&clearTimeout(Xn),Xn=setTimeout(()=>{Tr()},200))},Ai=()=>{if(yt(),$e.scrollTop>0&&Tr(),Y.current!=null&&b.current&&Rh.current(),Ae.current===!0){b.current=!1;return}Se(qn=>qn==null?qn:null),pn()},Ki=()=>{pn(),jr()},Wu=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"," ","Spacebar"]),Xi=qn=>{Wu.has(qn.key)&&Ki()};$e.addEventListener("scroll",Ai,{passive:!0}),$e.addEventListener("wheel",Ki,{passive:!0}),$e.addEventListener("touchmove",Ki,{passive:!0}),$e.addEventListener("keydown",Xi);let bl=typeof ResizeObserver<"u"?new ResizeObserver(qn=>{M.current=(qn[0]==null?null:j7e(qn[0]))??M3($e,x),yt()}):null;return bl?.observe($e),()=>{T.current=()=>{},ei(),$e.removeEventListener("scroll",Ai),$e.removeEventListener("wheel",Ki),$e.removeEventListener("touchmove",Ki),$e.removeEventListener("keydown",Xi),re!=null&&clearTimeout(re),Xn!=null&&clearTimeout(Xn),_t!=null&&delete _t.dataset.isScrolling,at!=null&&(delete at.dataset.isScrolling,delete at.dataset.overlayReveal),b.current=!1,M.current=null,bl?.disconnect()}},[e,x,s,l,h]),ll(()=>{Dt||Ce==null||Do(!1)},[Do,Dt,Ce]);let Ih=qm(()=>Ce==null?null:`${Ce.path}::${Ce.source}`,[Ce]);ll(()=>{if(Ih==null){f?.clearSlotContent(gh);return}let re=Y.current;if(re==null)return;let $e=y.current??g.current;if($e==null)return;let _t={anchorElement:$e,anchorRect:re.anchorRect??Tnt($e.getBoundingClientRect()),close:yt=>{Rh.current(yt?.restoreFocus??!0)},restoreFocus:()=>{ac.current&&tf.current(Y.current?.path??null)}},at=t?.contextMenu?.render?.(re.item,_t)??null;return f?.setSlotContent(gh,at),t?.contextMenu?.onOpen?.(re.item,_t),u6e(at),queueMicrotask(()=>{at==null||!at.isConnected||document.activeElement===at&&u6e(at)}),()=>{f?.clearSlotContent(gh)}},[Ih,t?.contextMenu,f]),ll(()=>{Ce!=null&&e.getItem(Ce.path)==null&&Do()},[Do,Ce,e]),ll(()=>{if(Ce==null)return;let re=k.current?.getRootNode(),$e=re instanceof ShadowRoot?re.host:k.current,_t=yt=>{let Gt=yt.target;Gt instanceof Node&&(i6e(yt)||g.current?.contains(Gt)!==!0&&$e?.contains(Gt)!==!0&&Do())},at=yt=>{yt.key==="Escape"&&(yt.preventDefault(),yt.stopPropagation(),Do())};return document.addEventListener("mousedown",_t,!0),document.addEventListener("keydown",at,!0),()=>{document.removeEventListener("mousedown",_t,!0),document.removeEventListener("keydown",at,!0)}},[Do,Ce]),ll(()=>{let re=_.current,$e=k.current;if(re==null||$e==null){D.current=jt;return}let _t=jt==null?null:S.current.get(jt)??null,at=I8($e),yt=at?.dataset.itemPath??null,Gt=it&&v.current===at,ei=p&&L.current===at,pn=B.current&&!ft,Xn=P.current??0,Tr=ye.current,jr=Re.current,Ai=Ke.current,Ki=mt.current,Wu=at!=null,Xi=F.current||Wu,bl=D.current!==jt,qn=jr!=null&&jr===jt&&jt!=null,Ls=!1,du=!1;if(mi!=null&&mi.id!==A.current){A.current=mi.id;let mR=mi.visibleIndex,yV=e.getVisibleRows(mR,mR)[0]??null;if(yV!=null){let xve=h?Math.max(0,Math.min(yV.ancestorPaths.length*s,Math.max(0,Ri-s))):Oo;Ls=!0,du=O7e(re,mR,s,Ri,da,mi.offset,xve)}e.clearScrollRequest(mi.id)}let X8=!Ls&&pn&&E3(re,Nt,s,Ri,da,Xn),gi=!Ls&&Tr!=null&&Tr===jt&&E3(re,Nt,s,Ri,da,Oo),Ku=!Ls&&Ai!=null&&Ai.path===jt&&E3(re,Nt,s,Ri,da,Ai.viewportOffset),Y8=!Ls&&Ki!=null&&Ki.path===jt&&re.scrollTop!==Ki.scrollTop;if(Y8&&(re.scrollTop=Ki.scrollTop),(Y8||du||gi||Ku||X8||Xi&&bl&&Tr!==jt&&!qn&&xU(re,Nt,s,Ri,Oo))&&T.current(),Ls){D.current=jt;return}if(!Xi){D.current=jt;return}if(Gt){D.current=jt;return}if(ei&&!pn){D.current=jt;return}if(_t==null){pn&&Nt>=0&&(E3(re,Nt,s,Ri,da,Xn),T.current()),D.current=jt;return}(bl||pn||Tr===jt||jr===jt||Ai?.path===jt||Ki?.path===jt||yt==null||yt!==jt)&&(l5(_t),Tr===jt&&(ye.current=null),jr===jt&&(Re.current=null),Ai?.path===jt&&(Ke.current=null),Ki?.path===jt&&(mt.current=null),B.current=!1,P.current=null),D.current=jt},[e,Nt,jt,Th,s,it,ft,Wi,Ri,p,mi,h,Oo,da,np]);let L5=Nt>=0&&Nt>=Gr.visible.startIndex&&Nt<=Gr.visible.endIndex,op=jt!=null&&co.some(re=>A3(re.row)===jt),M5=L5||op,ap=yn&&F.current===!0&&M5?jt:null,Nh=Ne==="pointer"?me:null,Wa=Ce?.path??dt.current??Nh??ap??me,sf=Ce?.source==="right-click";ll(()=>{b.current&&Ce==null||sc(Ye(Wa))},[Ce,Ye,Wi,Ri,_e,co,Wa,sc,np]);let sp=aa(re=>{if(b.current||i6e(re))return;let $e=re.target;if(!($e instanceof HTMLElement)||$e.closest?.(`[data-type="${nT}"]`)!=null)return;let _t=$e.closest?.('[data-file-tree-sticky-row="true"]'),at=$e.closest?.('[data-type="item"]'),yt=_t instanceof HTMLElement?_t.dataset.fileTreeStickyPath??null:at instanceof HTMLElement?at.dataset.itemPath??null:null;yt!=null&&Be(Gt=>Gt==="pointer"?Gt:"pointer"),Se(Gt=>Gt===yt?Gt:yt)},[]),ue=aa(()=>{Se(null)},[]);ll(()=>{if(!Ei)return;let re=()=>{Za(),e.cancelDrag()};return window.addEventListener("dragend",re),()=>{window.removeEventListener("dragend",re),Za(),e.cancelDrag()}},[e,Ei]);let je=re=>{if(!Ei||e.getDragSession()==null||W.current)return;let $e=t6e(re.target instanceof HTMLElement?re.target:null);e.setDragTarget($e),ip(e.getDragSession()?.target??null),C5(re.clientX,re.clientY),re.dataTransfer!=null&&(re.dataTransfer.dropEffect="move"),re.preventDefault()},Lt=re=>{if(!Ei||e.getDragSession()==null||W.current)return;let $e=re.relatedTarget;$e instanceof Node&&k.current?.contains($e)===!0||(fi(),_s(),e.setDragTarget(null))},_n=re=>{!Ei||e.getDragSession()==null||W.current||(re.preventDefault(),cc(re.clientX,re.clientY),e.completeDrag(),cu(),fi(),_s(),ne.current=null)},xr=Gr.window.height,po=Gr.window.offsetTop,Ss=Math.min(0,Ri-xr),uu=Math.min(0,Ri-xr-Oo),lf=be===jt||B.current,uc=jt!=null&&lf&&!Th&&Nt>=0?np[Nt]??e.getVisibleRows(Nt,Nt)[0]??null:null,Zu=uc==null?null:wU(Nt,s,Wi,xr),gl=ne.current,E5=Ge!=null&&gl!=null&&gl.path===Ge&&gl.index>=Wi.start&&gl.index<=Wi.end,Fe=Ge!=null&&gl!=null&&gl.path===Ge&&!E5&&gl.path!==uc?.path?gl:null,tt=Fe==null?null:wU(Fe.index,s,Wi,xr),Me=Lnt((Nt>=0?np[Nt]??e.getVisibleRows(Nt,Nt)[0]??null:null)?.ancestorPaths.at(-1)??null),At=ft&&jt!=null?m6e(a,jt,!Th):void 0,$n=Ce?.path??(ft?jt:be),wr=Ce?.path??me,or=Ye(Wa),kt=Dt&&yn&&!sf&&!it&&or!=null&&de!=null&&Wa!=null,hi=Dt&&(kt||Ce!=null),ma=Ce?.anchorRect,Bo=ma==null&&or!=null&&de!=null&&(Ce!=null||kt)?de:null,G3=ma!=null?{left:`${ma.left}px`,position:"fixed",right:"auto",top:`${ma.top}px`}:Bo!=null?{top:`${Bo}px`}:void 0,Ze=sf?{opacity:"0"}:void 0,en=aa((re,$e,_t,at)=>{let yt=z7e({event:{ctrlKey:re.ctrlKey,metaKey:re.metaKey,shiftKey:re.shiftKey},isDirectory:$e.kind==="directory",isSearchOpen:ft,mode:at}),Gt=yt.toggleDirectory&&$e.kind==="directory",ei=Gt?e.resolveMountedDirectoryPathFromInput(_t):null;if(Gt&&ei==null)return;let pn=ei??_t;switch(yt.selection.kind){case"range":e.selectPathRange(pn,yt.selection.additive);break;case"toggle":e.togglePathSelectionFromInput(pn);break;case"single":e.selectOnlyMountedPathFromInput(pn);break}let Xn=re.currentTarget instanceof HTMLElement?re.currentTarget:null,Tr=$e.index>=Gr.visible.startIndex&&$e.index<=Gr.visible.endIndex,jr=at==="flow"&&Tr&&Xn!=null&&Xn.dataset.itemParked!=="true";e.focusMountedPathFromInput(pn),jr&&(F.current=!0,ke(Ai=>Ai===pn?Ai:pn),Be("focus")),Gt&&e.toggleMountedDirectoryFromInput(pn),yt.closeSearch&&e.closeSearch(),yt.revealCanonical&&rf(pn,{targetOffset:"sticky-parents"})},[e,ft,Gr.visible.endIndex,Gr.visible.startIndex,rf]),vr=()=>{if(b.current||!yn||Wa==null||or==null)return;let re=e.getItem(Wa);re!=null&&(sc(or),ac.current=!0,K({anchorRect:null,item:{kind:re.isDirectory()?"directory":"file",name:or.getAttribute("aria-label")??Wa,path:re.getPath()},path:re.getPath(),source:"button"}))},Ka={contextHoverPath:wr,contextMenuButtonTriggerEnabled:yn,contextMenuButtonVisibility:In,contextMenuEnabled:Dt,contextMenuRightClickEnabled:er,contextMenuTriggerMode:mn,controller:e,directoriesWithGitChanges:i,dragAndDropEnabled:Ei,draggedPathSet:Ua,dragTarget:fl,gitLaneActive:vt,gitStatusByPath:n,handleRowDragEnd:$h,handleRowDragStart:_5,handleRowTouchStart:S5,ignoredGitDirectories:r,ignoredInheritanceCache:ge,instanceId:a,itemHeight:s,onKeyDown:af,onRowClick:en,openContextMenuForRow:Fo,registerButton:ae,registerRenameInput:Mt,renameView:Kn,renderDecorationForRow:uo,resolveIcon:jn,shouldSuppressContextMenu:of,visualFocusPath:$n},K8={...Ka,registerButton:st};return ut("div",{ref:k,id:dn,"data-file-tree-context-menu-button-visibility":Dt&&yn?In:void 0,"data-file-tree-context-menu-trigger-mode":Dt?mn:void 0,"data-file-tree-has-context-menu-action-lane":Dt&&yn?"true":void 0,"data-file-tree-has-git-lane":vt?"true":void 0,"data-file-tree-virtualized-root":"true",onDragLeave:Ei?Lt:void 0,onDragOver:Ei?je:void 0,onDrop:Ei?_n:void 0,onKeyDown:af,onPointerLeave:Dt?ue:void 0,onPointerOver:Dt?sp:void 0,role:"tree",tabIndex:-1,style:{outline:"none",position:"relative"},children:[ut("style",{"data-file-tree-guide-style":"true",dangerouslySetInnerHTML:{__html:Me}}),ut("slot",{name:t5,"data-type":"header-slot"}),p?ut("div",{"data-file-tree-search-container":!0,"data-open":ft?"true":"false",children:ut("input",{ref:L,"aria-activedescendant":At,"aria-controls":dn,placeholder:"Search\u2026","data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":Ve?"true":void 0,value:En,onBlur:()=>{d==="retain"&&!rn.current||e.closeSearch()},onFocus:Rn,onPointerDown:Rn,onInput:re=>{Rn();let $e=re.currentTarget;e.setSearch($e.value)}})}):null,ut("div",{ref:_,"data-file-tree-virtualized-scroll":"true",children:[h&&Xt&&co.length>0?ut("div",{"aria-hidden":"true","data-file-tree-sticky-overlay":"true",children:ut("div",{"data-file-tree-sticky-overlay-content":"true",style:{height:`${pt}px`},children:co.map((re,$e)=>AT(K8,re.row,`sticky:${A3(re.row)}`,{mode:"sticky",style:{left:"0",position:"absolute",right:"0",top:`${re.top}px`,zIndex:`${co.length-$e}`}}))})}):null,ut("div",{ref:w,"data-file-tree-virtualized-list":"true",style:{height:`${da}px`},children:[ut("div",{"data-file-tree-virtualized-sticky-offset":"true","aria-hidden":"true",style:{height:`${po}px`}}),ut("div",{"data-file-tree-virtualized-sticky":"true",style:{height:`${xr}px`,top:`${Ss}px`,bottom:`${uu}px`},children:[Ont(Ka,Wi,Cs),uc!=null&&Zu!=null?AT(Ka,uc,`parked:${uc.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:Ge===uc.path?"none":void 0,position:"absolute",right:"0",top:`${Zu}px`}}):null,Fe!=null&&tt!=null?AT(Ka,Fe,`parked-drag:${Fe.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:"none",position:"absolute",right:"0",top:`${tt}px`}}):null]})]})]}),Dt?ut("div",{ref:g,"data-type":"context-menu-anchor","data-visible":hi?"true":"false",style:G3,children:[ut("button",{ref:y,type:"button","data-type":nT,"aria-label":"Options","aria-haspopup":"menu","aria-expanded":Ce!=null?"true":"false","data-visible":kt?"true":"false",onMouseDown:re=>{re.preventDefault()},onClick:re=>{if(re.preventDefault(),re.stopPropagation(),Ce!=null){Do();return}vr()},tabIndex:-1,style:Ze,children:ut(L3,{...jn("file-tree-icon-ellipsis")})}),Ce!=null?ut("slot",{name:gh}):null]}):null,Ce!=null?ut("div",{"data-type":"context-menu-wash","aria-hidden":"true",onMouseDownCapture:re=>{re.preventDefault(),Do()},onTouchStartCapture:re=>{re.preventDefault(),re.stopPropagation(),Do()},onTouchMoveCapture:re=>{re.preventDefault(),re.stopPropagation()},onWheelCapture:re=>{re.preventDefault(),re.stopPropagation()}}):null]})}var TU={hydrateRoot:(t,e)=>{_7e(S3(EU,e),t)},renderRoot:(t,e)=>{ET(S3(EU,e),t)},unmountRoot:t=>{ET(null,t)}};function P8(t,e){TU.renderRoot(t,e)}function f6e(t,e){TU.hydrateRoot(t,e)}function h6e(t){TU.unmountRoot(t)}var g6e=class{#e=new Map;#t=null;clearAll(){for(let t of this.#e.values())t.remove();this.#e.clear()}clearSlotContent(t){let e=this.#n(t);e!=null&&(e.remove(),this.#e.delete(t))}setHost(t){if(this.#t=t,t!=null){this.#i(t);for(let[e,n]of this.#e)this.#r(e,n)}}setSlotContent(t,e){let n=this.#n(t);if(n===e){e!=null&&(this.#e.set(t,e),this.#r(t,e));return}if(n?.remove(),e==null){this.#e.delete(t);return}this.#e.set(t,e),this.#r(t,e)}setSlotHtml(t,e){let n=e?.trim()??"";if(n.length===0){this.setSlotContent(t,null);return}let r=this.#n(t);if(r!=null&&r.innerHTML===n){this.#e.set(t,r),this.#r(t,r);return}let i=document.createElement("div");i.innerHTML=n,this.setSlotContent(t,i)}#n(t){let e=this.#e.get(t)??null;if(e!=null)return e;let n=this.#t;if(n==null)return null;for(let r of Array.from(n.children))if(r instanceof HTMLElement&&r.dataset.fileTreeManagedSlot===t)return r;return null}#r(t,e){e.slot=t,e.dataset.fileTreeManagedSlot=t,this.#t!=null&&e.parentNode!==this.#t&&this.#t.appendChild(e)}#i(t){for(let e of Array.from(t.children)){if(!(e instanceof HTMLElement))continue;let n=e.dataset.fileTreeManagedSlot;n==null||this.#e.has(n)||this.#e.set(n,e)}}};var b6e=0;function Dnt(t){return t!=null&&t.length>0?t:(b6e+=1,`pst_ft_${b6e}`)}function Fnt({initialVisibleRowCount:t,itemHeight:e}){return t==null?gT:Math.max(0,t)*(e??hT)}function y6e(t){if(typeof document>"u")return;let e=document.createElement("div");e.innerHTML=t;let n=e.querySelector("svg");return n instanceof SVGElement?n:void 0}function x6e(t){return t.querySelector("#file-tree-icon-chevron")instanceof SVGElement&&t.querySelector("#file-tree-icon-file")instanceof SVGElement&&t.querySelector("#file-tree-icon-dot")instanceof SVGElement&&t.querySelector("#file-tree-icon-lock")instanceof SVGElement}function w6e(t){return Array.from(t.children).filter(e=>e instanceof SVGElement)}var v6e=class{static LoadedCustomComponent=Y4e;#e;#t;#n;#r;#i;#o;#s;#c;#a;#g=new g6e;#f;#d;#p;#m;#b;#C;#w;#$;#I;#E=null;#u;#N=!1;#P=!1;constructor(t){let{composition:e,density:n,fileTreeSearchMode:r,gitStatus:i,id:o,initialSearchQuery:a,icons:s,itemHeight:l,onSearchChange:c,onSelectionChange:u,overscan:d,renderRowDecoration:p,renaming:m,search:f,searchBlurBehavior:h,searchFakeFocus:x,stickyFolders:g,unsafeCSS:y,initialVisibleRowCount:b,...w}=t;this.#e=e,this.#n=Dnt(o),this.#m=iU(i),this.#b=s,this.#C=y,this.#r=u,this.#i=p,this.#o=m!=null&&m!==!1,this.#s=h,this.#c=f===!0,this.#a=x===!0,this.#f=U4e(n,l),this.#d={itemHeight:this.#f.itemHeight,overscan:d,stickyFolders:g,initialVisibleRowCount:b},this.#t=new s7e({...w,fileTreeSearchMode:r,initialSearchQuery:a,onSearchChange:c,renaming:m}),this.#I=this.#t.getSelectionVersion(),this.#E=this.#r==null?null:this.subscribe(()=>{this.#j()})}unmount(){this.#u!=null&&(h6e(this.#u),delete this.#u.dataset.fileTreeVirtualizedWrapper,this.#u=void 0),this.#g.clearAll(),this.#g.setHost(null),this.#p!=null&&(delete this.#p.dataset.fileTreeVirtualized,this.#q(this.#p),this.#p=void 0)}cleanUp(){this.unmount(),this.#E?.(),this.#E=null,this.#t.destroy()}getFileTreeContainer(){return this.#p}getItem(t){return this.#t.getItem(t)}getFocusedItem(){return this.#t.getFocusedItem()}getFocusedPath(){return this.#t.getFocusedPath()}getSelectedPaths(){return this.#t.getSelectedPaths()}getComposition(){return this.#e}getItemHeight(){return this.#f.itemHeight}getDensityFactor(){return this.#f.factor}subscribe(t){let e=!1;return this.#t.subscribe(()=>{if(!e){e=!0;return}t()})}focusPath(t){this.#t.focusPath(t)}scrollToPath(t,e){this.#t.scrollToPath(t,e)}focusNearestPath(t){return this.#t.focusNearestPath(t)}add(t){this.#t.add(t)}batch(t){this.#t.batch(t)}move(t,e,n){this.#t.move(t,e,n)}onMutation(t,e){return this.#t.onMutation(t,e)}setSearch(t){this.#t.setSearch(t)}openSearch(t){this.#t.openSearch(t)}closeSearch(){this.#t.closeSearch()}isSearchOpen(){return this.#t.isSearchOpen()}getSearchValue(){return this.#t.getSearchValue()}getSearchMatchingPaths(){return this.#t.getSearchMatchingPaths()}focusNextSearchMatch(){this.#t.focusNextSearchMatch()}focusPreviousSearchMatch(){this.#t.focusPreviousSearchMatch()}startRenaming(t,e){return this.#t.startRenaming(t,e)}remove(t,e){this.#t.remove(t,e)}resetPaths(t,e){this.#t.resetPaths(t,e)}setComposition(t){this.#e=t;let e=this.#y();e!=null&&(this.#T(),P8(e.wrapper,this.#D()))}setGitStatus(t){this.#m=iU(t,this.#m);let e=this.#y();e!=null&&P8(e.wrapper,this.#D())}setIcons(t){this.#b=t;let e=this.#y();e!=null&&(this.#_(e.host,e.wrapper),P8(e.wrapper,this.#D()))}hydrate({fileTreeContainer:t}){let e=this.#F(t),n=this.#z(e);this.#T(),f6e(n,this.#D())}render({containerWrapper:t,fileTreeContainer:e}){let n=this.#F(e??this.#p,t),r=this.#z(n);this.#T(),P8(r,this.#D())}#Q(){return{initialViewportHeight:Fnt({initialVisibleRowCount:this.#d.initialVisibleRowCount,itemHeight:this.#d.itemHeight}),itemHeight:this.#d.itemHeight,overscan:this.#d.overscan,stickyFolders:this.#d.stickyFolders}}#D(){return{composition:this.#e,controller:this.#t,gitStatusByPath:this.#m?.statusByPath,ignoredGitDirectories:this.#m?.ignoredDirectoryPaths,directoriesWithGitChanges:this.#m?.directoriesWithChanges,icons:this.#b,instanceId:this.#n,renamingEnabled:this.#o,renderRowDecoration:this.#i,searchBlurBehavior:this.#s,searchEnabled:this.#c,searchFakeFocus:this.#a,slotHost:this.#g,...this.#Q()}}#y(){let t=this.#p,e=this.#u;return t==null||e==null?null:{host:t,wrapper:e}}#_(t,e){let n=t.shadowRoot;n!=null&&(this.#U(n),this.#V(n)),this.#Z(e)}#j(){let t=this.#r;if(t==null)return;let e=this.#t.getSelectionVersion();e!==this.#I&&(this.#I=e,t(this.#t.getSelectedPaths()))}#T(){let t=this.#e?.header?.render;if(t!=null){this.#g.setSlotContent(t5,t());return}this.#g.setSlotHtml(t5,this.#e?.header?.html??null)}#U(t){let e=w6e(t).find(r=>x6e(r)),n=y6e(v8(h3(this.#b).set));n!=null&&(e!=null&&e.outerHTML===n.outerHTML||(e!=null?e.replaceWith(n):t.prepend(n)))}#V(t){let e=w6e(t),n=e.find(a=>x6e(a)),r=e.filter(a=>a!==n),i=h3(this.#b).spriteSheet?.trim()??"";if(i.length===0){for(let a of r)a.remove();return}let o=y6e(i);if(o==null){for(let a of r)a.remove();return}if(!(r.length===1&&r[0].outerHTML===o.outerHTML)){for(let a of r)a.remove();t.appendChild(o)}}#Z(t){let e=h3(this.#b);e.colored&&y3e(e.set)?t.dataset.fileTreeColoredIcons="true":delete t.dataset.fileTreeColoredIcons}#x(t){let e=t.querySelector(`style[${RG}]`);if(this.#w==null&&e instanceof HTMLStyleElement&&(this.#w=e),this.#C==null||this.#C===""){this.#w?.remove(),this.#w=void 0,this.#$=void 0;return}this.#w?.parentNode===t&&this.#$===this.#C||(this.#w??=document.createElement("style"),this.#w.setAttribute(RG,""),this.#w.parentNode!==t&&t.appendChild(this.#w),this.#w.textContent=W4e(this.#C),this.#$=this.#C)}#z(t){if(this.#u!=null)return this.#u;let e=t.shadowRoot;if(e==null)throw new Error("FileTree requires a shadow root");let n=Array.from(e.children).filter(i=>i instanceof HTMLDivElement&&typeof i.dataset.fileTreeId=="string"&&i.dataset.fileTreeId.length>0),r=n.find(i=>i.dataset.fileTreeId===this.#n)??n[0];return r!=null&&(this.#n=r.dataset.fileTreeId??this.#n),this.#u=r??document.createElement("div"),this.#u.dataset.fileTreeId=this.#n,this.#u.dataset.fileTreeVirtualizedWrapper="true",this.#_(t,this.#u),this.#u.parentNode!==e&&e.appendChild(this.#u),this.#u}#F(t,e){let n=t??this.#p??document.createElement(hh);e!=null&&n.parentNode!==e&&e.appendChild(n);let r=n.shadowRoot??n.attachShadow({mode:"open"});return xT(n,r),this.#x(r),n.dataset.fileTreeVirtualized="true",n.style.display="flex",this.#M(n),this.#g.setHost(n),this.#p=n,n}#M(t){t.style.getPropertyValue("--trees-item-height")===""&&(t.style.setProperty("--trees-item-height",`${String(this.#f.itemHeight)}px`),this.#N=!0),t.style.getPropertyValue("--trees-density-override")===""&&(t.style.setProperty("--trees-density-override",String(this.#f.factor)),this.#P=!0)}#q(t){this.#N&&(t.style.removeProperty("--trees-item-height"),this.#N=!1),this.#P&&(t.style.removeProperty("--trees-density-override"),this.#P=!1)}};var Cn=R(ee(),1),ou=t=>({width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0}),c5=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(12),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M4 6l4 4 4-4"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},_6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M7 3H4.6A1.6 1.6 0 0 0 3 4.6v6.8A1.6 1.6 0 0 0 4.6 13h6.8a1.6 1.6 0 0 0 1.6-1.6V9"}),i=(0,Cn.jsx)("path",{d:"M9.5 3H13v3.5M13 3L8 8"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},S6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M4.6 5.2L2.2 8l2.4 2.8M11.4 5.2L13.8 8l-2.4 2.8M9 4.9L7 11.1"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,strokeWidth:1.45,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},L6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(14),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M3.5 8.5l3 3 6-7"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},M6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(12),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},E6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(17),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("circle",{cx:"8",cy:"8",r:"6.25"}),i=(0,Cn.jsx)("path",{d:"M8 4.75v3.75M8 11.1v.15"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},T6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M10 3.5L5.5 8l4.5 4.5"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},R6e=t=>{let e=(0,Ha.c)(6),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i,o;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M13 2.5v11"}),i=(0,Cn.jsx)("path",{d:"M2.8 5.2h5.4a2.3 2.3 0 0 1 0 4.6H4.2"}),o=(0,Cn.jsx)("path",{d:"M6 8l-1.9 1.8L6 11.6"}),e[1]=r,e[2]=i,e[3]=o):(r=e[1],i=e[2],o=e[3]);let a;return e[4]!==t?(a=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i,o]}),e[4]=t,e[5]=a):a=e[5],a},A6e=t=>{let e=(0,Ha.c)(4),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M5 1.8v4.6M3 4.6l2 1.9 2-1.9M5 14.2V9.6M3 11.4l2-1.9 2 1.9M9.4 6.4h4.4M9.4 9.6h3.2"}),e[1]=r):r=e[1];let i;return e[2]!==t?(i=(0,Cn.jsx)("svg",{...n,...t,children:r}),e[2]=t,e[3]=i):i=e[3],i},$6e=t=>{let e=(0,Ha.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,Cn.jsx)("rect",{x:"1.6",y:"2.1",width:"12.8",height:"11.8",rx:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.25"}),r=(0,Cn.jsx)("rect",{x:"3.2",y:"3.7",width:"4.4",height:"8.6",rx:"0.8",fill:"var(--acpmux-del)"}),i=(0,Cn.jsx)("rect",{x:"8.4",y:"3.7",width:"4.4",height:"8.6",rx:"0.8",fill:"var(--acpmux-add)"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16","aria-hidden":!0,...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o},I6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("rect",{x:"1.6",y:"5.4",width:"9.6",height:"9",rx:"2.2"}),i=(0,Cn.jsx)("path",{d:"M4.8 5.3V4a2.2 2.2 0 0 1 2.2-2.2h5.4A2.2 2.2 0 0 1 14.6 4v5.2a2.2 2.2 0 0 1-2.2 2.2h-1.2"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},N6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("path",{d:"M1.6 8s2.3-4.4 6.4-4.4S14.4 8 14.4 8s-2.3 4.4-6.4 4.4S1.6 8 1.6 8z"}),i=(0,Cn.jsx)("circle",{cx:"8",cy:"8",r:"2"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o},$T=t=>{let e=(0,Ha.c)(5),n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,Cn.jsx)("circle",{cx:"3.5",cy:"8",r:"1.1"}),r=(0,Cn.jsx)("circle",{cx:"8",cy:"8",r:"1.1"}),i=(0,Cn.jsx)("circle",{cx:"12.5",cy:"8",r:"1.1"}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":!0,...t,children:[n,r,i]}),e[3]=t,e[4]=o):o=e[4],o},P6e=t=>{let e=(0,Ha.c)(5),n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=ou(16),e[0]=n):n=e[0];let r,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Cn.jsx)("circle",{cx:"7",cy:"7",r:"4.6"}),i=(0,Cn.jsx)("path",{d:"M10.4 10.4l3.4 3.4"}),e[1]=r,e[2]=i):(r=e[1],i=e[2]);let o;return e[3]!==t?(o=(0,Cn.jsxs)("svg",{...n,...t,children:[r,i]}),e[3]=t,e[4]=o):o=e[4],o};var k6e="acpmux-file-icon-sprite";function Bnt(){if(typeof document>"u"||!document.body||document.getElementById(k6e))return;let t=document.createElement("div");t.id=k6e,t.hidden=!0,t.innerHTML=v8("complete"),document.body.prepend(t)}var znt=C8({set:"complete",colored:!0});function j6e(t){let e=(0,Ha.c)(19),{path:n}=t,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0],(0,C6e.useLayoutEffect)(Bnt,r);let i,o,a,s,l,c,u;if(e[1]!==n){let f=znt.resolveIcon("file-tree-icon-file",n).name;i=f.startsWith("file-tree-builtin-")?f:"file-tree-builtin-default",o="acpmux-file-icon",a=16,s=16,l="0 0 16 16",c=!0,u=i.slice(18),e[1]=n,e[2]=i,e[3]=o,e[4]=a,e[5]=s,e[6]=l,e[7]=c,e[8]=u}else i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];let d=`#${i}`,p;e[9]!==d?(p=(0,Cn.jsx)("use",{href:d}),e[9]=d,e[10]=p):p=e[10];let m;return e[11]!==o||e[12]!==a||e[13]!==s||e[14]!==l||e[15]!==c||e[16]!==u||e[17]!==p?(m=(0,Cn.jsx)("svg",{className:o,width:a,height:s,viewBox:l,"aria-hidden":c,"data-icon":u,children:p}),e[11]=o,e[12]=a,e[13]=s,e[14]=l,e[15]=c,e[16]=u,e[17]=p,e[18]=m):m=e[18],m}var au=R(Q(),1);var sa=R(Q(),1),ic=R(ee(),1),O6e=typeof window>"u"?sa.useEffect:sa.useLayoutEffect;function qnt(t,e,n){let r=t!=null?(0,ic.jsx)("div",{slot:t5,children:t}):null,i=e!=null&&n!=null?(0,ic.jsx)("div",{slot:gh,children:e(n.item,n.context)}):null;return r==null&&i==null?null:(0,ic.jsxs)(ic.Fragment,{children:[r,i]})}function Hnt(t,e){return typeof window>"u"&&e!=null?(0,ic.jsxs)(ic.Fragment,{children:[(0,ic.jsx)("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:e.shadowHtml}}),t]}):(0,ic.jsx)(ic.Fragment,{children:t})}function Gnt(t){let e=t.shadowRoot;return e?.querySelector("[data-file-tree-id]")instanceof HTMLElement||e?.querySelector("[data-file-tree-id]")instanceof SVGElement?!0:t.querySelector('template[shadowrootmode="open"]')instanceof HTMLTemplateElement}function Unt(t,e,n,r,i){let o={...t??{}};if(e!=null&&delete o.header,n){let a=t?.contextMenu,s=a?.onClose,l=a?.onOpen;o.contextMenu={...a??{},enabled:!0,onClose:()=>{s?.(),r()},onOpen:(c,u)=>{i(c,u),l?.(c,u)}},delete o.contextMenu.render}return o.header!=null||o.contextMenu!=null?o:void 0}function RU({header:t,id:e,model:n,preloadedData:r,renderContextMenu:i,...o}){let[a,s]=(0,sa.useState)(null),[l,c]=(0,sa.useState)(null),u=(0,sa.useRef)(n.getComposition()),d=(0,sa.useRef)(n);d.current!==n&&(d.current=n,u.current=n.getComposition());let p=i!=null,m=(0,sa.useCallback)(()=>{s(null)},[]),f=(0,sa.useCallback)((v,k)=>{s({context:k,item:v})},[]),h=u.current,x=(0,sa.useMemo)(()=>Unt(h,t,p,m,f),[h,m,f,p,t]),g=(0,sa.useCallback)(v=>{c(v)},[]);(0,sa.useEffect)(()=>{p||s(null)},[p]),O6e(()=>{n.setComposition(x)},[x,n]),O6e(()=>{if(l!=null)return r!=null&&Gnt(l)?n.hydrate({fileTreeContainer:l}):n.render({fileTreeContainer:l}),()=>{n.unmount(),n.setComposition(h)}},[h,l,n,r]);let y=Hnt(qnt(t,i,a),r),b=e??r?.id,w={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...o.style};return(0,ic.jsx)(hh,{...o,id:b,ref:g,style:w,suppressHydrationWarning:r!=null,children:y})}var $3=R(Q(),1);function AU(t){let[e]=(0,$3.useState)(()=>new v6e(t)),n=(0,$3.useRef)({timeout:null,model:e});return(0,$3.useEffect)(()=>{let{current:r}=n;return r.timeout!=null&&(clearTimeout(r.timeout),r.timeout=null),()=>{r.timeout=setTimeout(()=>r.model.cleanUp(),1)}},[]),{model:e}}var Vnt="cmux.experiments";function Znt(){try{let t=globalThis.localStorage?.getItem(Vnt),e=t?JSON.parse(t):void 0;return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}catch{return{}}}function D6e(t,e){return typeof e=="string"&&Object.hasOwn(t.arms,e)}function $U(t,e={}){let n=e.overrides??globalThis.cmuxExperiments??{};if(D6e(t,n[t.id]))return n[t.id];let r=e.stored??Znt();return D6e(t,r[t.id])?r[t.id]:t.defaultArm}var F6e={id:"diff-tree-disclosure",title:"Changes tree: folder open and close",description:"How the rows of a folder appear and leave when it opens or closes (click, or Left and Right). Watch the rows below the folder, the chevron, and a click that reverses a motion halfway.",arms:{a:{label:"Instant (today)",description:"No motion: the rows appear and leave in one frame."},b:{label:"Grow, fade, slide",description:"The rows below move with the appear and disappear springs; the children fade in and slide down 8 px inside the growing gap."},c:{label:"Siblings glide, children stagger",description:"The rows below glide on the move spring (FLIP); the children stay put and fade in one after another, 15 ms apart."},d:{label:"Drawer (Finder)",description:"The children slide out from under the folder row, clipped at its edge, with no fade; the rows below move with them."},e:{label:"Instant, highlight",description:"The layout changes in one frame; the new rows cross-fade in and carry a short tint. What every arm does under Reduce Motion."},f:{label:"Drawer, capped travel",description:"Arm d with a soft fade (0.4 to 1) and travel capped at the room below the folder, so a 100-file folder opens as fast as a 3-file one."}},defaultArm:"a"},B6e={w12:12,w20:20,w28:28},z6e={id:"diff-tree-name-fade",title:"Changes tree: fade at the end of a long name",description:"A clipped file or folder name fades out at the right edge (no ellipsis); hover or focus scrolls it once, like tab titles. The arms vary the fade's length.",arms:{w12:{label:"12 px",description:"A short fade: more of the name stays opaque."},w20:{label:"20 px (tabs)",description:"The tab title's fade (TabTunables titleFadeWidth)."},w28:{label:"28 px",description:"A long, soft fade."}},defaultArm:"w20"};var Hm={move:{response:.2,dampingFraction:.9},appear:{response:.18,dampingFraction:.9},disappear:{response:.15,dampingFraction:.9}},IU={hover:80,fadeIn:120,fadeOut:80,crossfade:100,highlight:1200};function q6e(t){for(let n=0;n<5*t.response+1;n+=.001)if(j8(t,n)>=.95)return n;return 5*t.response}function j8(t,e){if(e<=0)return 0;let n=2*Math.PI/Math.max(t.response,.001),r=Math.max(t.dampingFraction,0);if(r<1){let s=n*Math.sqrt(1-r*r);return 1-Math.exp(-r*n*e)*(Math.cos(s*e)+r*n/s*Math.sin(s*e))}if(r===1)return 1-Math.exp(-n*e)*(1+n*e);let i=n*Math.sqrt(r*r-1),o=-r*n+i,a=-r*n-i;return 1-(a*Math.exp(o*e)-o*Math.exp(a*e))/(a-o)}function NU(t){let n=0;for(let r=0;r<5*t.response+1;r+=.001)Math.abs(1-j8(t,r))>=.005&&(n=r);return n+.001}function H6e(t,e=24){let n=NU(t),r=[];for(let i=0;i<=e;i+=1){let o=i===e?1:j8(t,n*i/e);r.push(Math.round(o*1e4)/1e4)}return{durationMs:Math.round(n*1e3),progress:r}}var I3={kind:"spring",open:Hm.appear,close:Hm.disappear,drawer:!1,slidePx:0,fade:"none",staggerMs:0,capTravel:!1,tint:!1},Wnt={a:{...I3,kind:"none"},b:{...I3,slidePx:8,fade:"linear"},c:{...I3,open:Hm.move,close:Hm.move,fade:"stagger",staggerMs:15},d:{...I3,drawer:!0},e:{...I3,kind:"snap",tint:!0},f:{...I3,drawer:!0,fade:"soft",capTravel:!0}};function G6e(t,e){let n=Wnt[t];return!e||n.kind==="none"?n:{...n,kind:"snap",tint:!1}}function Knt(t){return Math.round(NU(t)*1e3)}function U6e(t,e){let n=t.open?1:0,r=e-t.start;return r>=t.duration?n:r<=0?t.q0:t.q0+(n-t.q0)*j8(t.spring,r/1e3)}function V6e(t,e,n,r){let i=e.open?n.open:n.close,o=t?U6e(t,r):e.open?0:1;return{...e,q0:o,start:r,spring:i,duration:Knt(i)}}function Z6e(t,e,n){return n.capTravel?Math.max(0,Math.min(t,Math.max(e,0))):t}var Xnt=t=>t.endsWith("/")?t:`${t}/`;function PU(t,e,n){return t===n.path?"self":t.startsWith(Xnt(n.path))?"descendant":e>n.top?"following":"before"}function D8(t,e,n,r){let i=0,o=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,s=1,l=0,c=[...e].sort((u,d)=>u.top-d.top);for(let u of c){let d=U6e(u,r),p=PU(t.path,t.top,u);if(p==="self")l+=u.open?-90*(1-d):90*d;else if(p==="following")i+=u.open?-u.height+d*u.travel:d*u.travel;else if(p==="descendant"){let m=D8({path:u.path,top:u.top,height:u.rowHeight},c.filter(x=>x!==u),n,r).y,f=u.top+u.rowHeight+m,h=Math.max(0,Math.round((t.top-u.top-u.rowHeight)/u.rowHeight));n.drawer&&(i+=-(1-d)*u.travel),n.slidePx&&(i+=-(1-d)*n.slidePx),o=Math.max(o,f),a=Math.min(a,f+d*u.travel),s*=Ynt(n,d,h,u.duration)}}return{y:i,clipTop:o,clipBottom:a,opacity:s,rotate:l}}function Ynt(t,e,n,r){switch(t.fade){case"none":return 1;case"linear":return e;case"soft":return .4+.6*e;case"stagger":{let i=Math.min(n,8)*(t.staggerMs/Math.max(r,1));return Math.max(0,Math.min(1,(e-i)/.5))}}}function W6e(t,e){let r=Math.max(e,...t.map(o=>o.start+o.duration))-e;if(r<=0)return[e];let i=Math.min(48,Math.max(2,Math.ceil(r/8.33)));return Array.from({length:i+1},(o,a)=>e+r*a/i)}var O8=t=>Math.round(t*100)/100;function Qnt(t,e,n){let r=e+t.y,i=Math.max(0,t.clipTop-r),o=Math.max(0,r+n-t.clipBottom);return i<=0&&o<=0?null:{top:Math.min(n,O8(i)),bottom:Math.min(n,O8(o))}}function K6e(t,e,n,r){let i=r.map(f=>D8(t,e,n,f)),o=i.some(f=>Math.abs(f.y)>.01),a=i.some(f=>f.opacity<.999),s=i.map(f=>Qnt(f,t.top,t.height)),l=s.some(Boolean),c=i.some(f=>Math.abs(f.rotate)>.01),u=r[r.length-1]-r[0],d=f=>u>0?(r[f]-r[0])/u:f/Math.max(1,r.length-1),p=o||a||l?i.map((f,h)=>{let x={offset:d(h)};if(o&&(x.transform=`translate3d(0, ${O8(f.y)}px, 0)`),a&&(x.opacity=O8(f.opacity)),l){let g=s[h];x.clipPath=g?`inset(${g.top}px -100vw ${g.bottom}px -100vw)`:"inset(0px -100vw 0px -100vw)"}return x}):null,m=c?i.map((f,h)=>({offset:d(h),rotate:`${O8(f.rotate)}deg`})):null;return{row:p,chevron:m}}function X6e(t,e){let n={keyframes:[{opacity:0},{opacity:1}],duration:IU.crossfade};return t.tint?{fade:n,tint:{keyframes:[{backgroundColor:`color-mix(in srgb, ${e} 22%, transparent)`,easing:"ease-out"},{backgroundColor:`color-mix(in srgb, ${e} 0%, transparent)`}],duration:IU.highlight}}:{fade:n}}var Jnt='[data-type="item"]:not([data-item-parked]):not([data-file-tree-sticky-row])',ert='[data-icon-name="file-tree-icon-chevron"]',trt=()=>globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1;function Q6e(t,e){if(e==="a")return()=>{};let n=null,r=null,i=null,o=[],a=[],s=null,l=[],c=0,u=0,d=()=>n?.querySelector('[data-file-tree-virtualized-list="true"]')??null,p=()=>n?.querySelector('[data-file-tree-virtualized-scroll="true"]')??null,m=()=>[...n?.querySelectorAll(Jnt)??[]].filter(S=>!s?.contains(S)),f=()=>{if(n)return!0;let S=t.querySelector("*");return S?.shadowRoot?(n=S.shadowRoot,r=new MutationObserver(L),r.observe(n,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-expanded","data-item-path"]}),!0):!1},h=S=>{let C=S.cloneNode(!0);for(let T of["role","id","tabindex"])C.removeAttribute(T);return C},x=(S,C)=>{let T=new Map;for(let M of C)T.set(M.path,{top:M.top,height:M.height,expanded:M.element.getAttribute("aria-expanded"),copy:h(M.element)});for(let M of a)T.set(M.path,{top:M.top,height:M.height,expanded:M.element.getAttribute("aria-expanded"),copy:M.element});i={time:performance.now(),height:Y6e(S),rows:T}},g=()=>{u||(u=requestAnimationFrame(()=>{u=0,f();let S=d();if(!S||o.length)return;let C=S.getBoundingClientRect().top;x(S,m().map(T=>{let M=T.getBoundingClientRect();return{element:T,path:T.dataset.itemPath??"",top:M.top-C,height:M.height}}))}))},y=()=>{for(let S of l)S.cancel();l=[]},b=()=>{for(let S of a)S.element.remove();a=[]},w=()=>{y(),b(),o=[],s?.remove(),s=null,g()},v=S=>(s?.isConnected||(s=document.createElement("div"),s.dataset.cmuxTreeGhosts="",s.setAttribute("aria-hidden","true"),s.style.cssText="position:absolute;inset:0;pointer-events:none;z-index:1",S.append(s)),s),k=(S,C)=>{let T=d();if(!T)return;performance.mark("cmux-motion:tree-plan-start"),y();let M=document.timeline.currentTime,A=T.getBoundingClientRect().top,$=m().map(H=>{let ne=H.getBoundingClientRect();return{element:H,path:H.dataset.itemPath??"",top:ne.top-A,height:ne.height}}),N=p(),F=N?N.getBoundingClientRect().bottom-A:Number.POSITIVE_INFINITY,D=new Map($.map(H=>[H.path,H]));if(C){let H=D.get(C.path),ne=i;if(H&&ne){let J=o.find(ge=>ge.path===C.path),W=o,ie=Math.abs(Y6e(T)-ne.height),Z=F-(H.top+H.height),le=V6e(J,{path:C.path,open:C.open,height:ie,travel:Z6e(ie,Z,S),top:H.top,rowHeight:H.height},S,M);o=[...o.filter(ge=>ge!==J),le];let se=[];for(let[ge,ce]of ne.rows){if(D.has(ge))continue;let be=PU(ge,ce.top,le);if(!(C.open?be==="following":be==="descendant"||be==="following")&&!a.some(Le=>Le.path===ge))continue;let me=a.find(Le=>Le.path===ge),Se=ce.top+D8({path:ge,top:ce.top,height:ce.height},W,S,M).y,de=D8({path:ge,top:Se,height:ce.height},o,S,M).y;se.push({path:ge,top:Se-de,height:ce.height,element:me?.element??ce.copy})}for(let ge of a)!se.includes(ge)&&!se.some(ce=>ce.element===ge.element)&&ge.element.remove();a=se}}if(o=o.map(H=>({...H,top:D.get(H.path)?.top??H.top})).filter(H=>M<H.start+H.duration),!o.length){w(),performance.measure("cmux-motion:tree-plan","cmux-motion:tree-plan-start");return}x(T,$);let O=W6e(o,M),P={duration:O[O.length-1]-M,easing:"linear",fill:"both"},U=a.length?v(T):null;for(let H of a)H.element.style.cssText+=`;position:absolute;left:0;right:0;top:${H.top}px;height:${H.height}px;margin:0`,H.element.parentNode!==U&&U?.append(H.element);let G=[...$.map(H=>({...H})),...a.map(H=>({element:H.element,path:H.path,top:H.top,height:H.height}))];for(let H of G){let ne=K6e(H,o,S,O);ne.row&&l.push(H.element.animate(ne.row,P));let J=ne.chevron&&H.element.querySelector(ert);J&&ne.chevron&&l.push(J.animate(ne.chevron,P))}let j=++c,V=l[0];V?.finished.then(()=>j===c&&w(),()=>{}),V||w(),performance.measure("cmux-motion:tree-plan","cmux-motion:tree-plan-start")},_=(S,C)=>{if(!C.open||!i)return;let T=getComputedStyle(t).getPropertyValue("--agent-accent").trim()||"#4c8dff",{fade:M,tint:A}=X6e(S,T);for(let $ of m()){let N=$.dataset.itemPath??"";i.rows.has(N)||!N.startsWith(C.path.endsWith("/")?C.path:`${C.path}/`)||(l.push($.animate(M.keyframes,{duration:M.duration,easing:"ease-out"})),A&&l.push($.animate(A.keyframes,{duration:A.duration})))}};function L(S){if(S.every(M=>s?.contains(M.target)||[...M.addedNodes,...M.removedNodes].every(A=>A===s)))return;let C=G6e(e,trt()),T=i?nrt(i,m()):void 0;if(T==="many")return w();if(T){C.kind==="snap"?(w(),_(C,T)):k(C,T);return}o.length?k(C):g()}return f(),g(),()=>{r?.disconnect(),w(),u&&cancelAnimationFrame(u)}}function nrt(t,e){let n=[];for(let r of e){let i=r.dataset.itemPath??"",o=t.rows.get(i)?.expanded,a=r.getAttribute("aria-expanded");o&&a&&o!==a&&n.push({path:i,open:a==="true"})}return n.length>1?"many":n[0]}var Y6e=t=>Number.parseFloat(t.style.height)||0;var F8={delayMs:600,pointsPerSecond:40,minimumScrollMs:400,holdMs:1200,minimumTravel:2};function J6e(t){let e=Math.max(0,t.span),n=Math.max(0,Math.min(t.visibleWidth,e)),r=Math.max(0,t.textWidth),i=e>0&&r>n+.5,o=Math.min(e,n+Math.max(0,t.trailingPadding)),a=Math.min(Math.max(0,t.fadeWidth),Math.max(o,1)*.5),s=Math.max(0,o-a),l=i?Math.ceil(Math.max(0,r-s)):0;return{truncated:i,fadeStart:s,fadeEnd:o,marqueeTravel:l}}function exe(t,e){return e||t<F8.minimumTravel?null:{delayMs:F8.delayMs,scrollMs:Math.max(F8.minimumScrollMs,t/F8.pointsPerSecond*1e3),holdMs:F8.holdMs,backMs:Math.round(q6e(Hm.move)*1e3)}}function txe(t,e){let n=e.scrollMs+e.holdMs+e.backMs,r=`${-t}px 0`;return{duration:n,keyframes:[{offset:0,translate:"0px 0",easing:"ease-in-out"},{offset:e.scrollMs/n,translate:r,easing:"linear"},{offset:(e.scrollMs+e.holdMs)/n,translate:r,easing:"ease-out"},{offset:1,translate:"0px 0"}]}}var nxe='[data-type="item"]',rxe='[data-item-section="content"]',jU=4,ixe="cmux-ambient:marquee",OU=()=>globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1;function oxe(t,e){let n=t.querySelector("*"),r=n?.shadowRoot;if(!n||!r)return()=>{};n.style.setProperty("--cmux-title-fade",`${e.fadeWidth}px`),n.style.setProperty("--cmux-title-lead",`${jU}px`);let i=0,o=null,a=null,s=null,l=()=>{i=0;let v=OU(),k=[...r.querySelectorAll(nxe)].flatMap(_=>{let L=_.querySelector(rxe),S=L?.firstElementChild;if(!L||!S)return[];let C=L.clientWidth-jU,T=J6e({textWidth:Math.max(S.getBoundingClientRect().width,L.scrollWidth-jU),span:C,visibleWidth:C,trailingPadding:0,fadeWidth:e.fadeWidth});return[{row:_,content:L,fade:T}]});for(let{row:_,content:L,fade:S}of k){S.truncated?(L.dataset.cmuxClipped="",L.dataset.cmuxTravel=String(S.marqueeTravel)):(delete L.dataset.cmuxClipped,delete L.dataset.cmuxTravel);let C=_.getAttribute("aria-label")??"";v&&S.truncated?_.title=C:_.title===C&&_.removeAttribute("title")}},c=()=>{i||(i=requestAnimationFrame(l))},u=v=>{if(!o)return;let{text:k,animation:_}=o;o=null;let L=v&&Number.parseFloat(getComputedStyle(k).translate)||0;if(_.cancel(),Math.abs(L)<=.5||OU())return;let{durationMs:S,progress:C}=H6e(Hm.disappear),T=C.map((M,A)=>({offset:A/(C.length-1),translate:`${Math.round(L*(1-M)*100)/100}px 0`}));k.animate(T,{duration:S,easing:"linear",id:ixe})},d=v=>{let k=v.dataset.itemPath??"";if(o?.row===v&&o.path===k)return;u(!0);let _=v.querySelector(rxe),L=_?.firstElementChild;if(!_||!L||_.dataset.cmuxClipped===void 0)return;let S=Number(_.dataset.cmuxTravel),C=exe(S,OU());if(!C)return;let{keyframes:T,duration:M}=txe(S,C);o={row:v,path:k,text:L,animation:L.animate(T,{duration:M,delay:C.delayMs,id:ixe})}},p=()=>a??s,m=()=>{let v=p();v?d(v):u(!0)},f=v=>v.composedPath().find(k=>k instanceof HTMLElement&&k.matches(nxe))??null,h=v=>{a=f(v),m()},x=()=>{a=null,m()},g=v=>{s=f(v),m()},y=()=>{s=null,m()},b=new MutationObserver(()=>{o&&(!o.row.isConnected||o.row.dataset.itemPath!==o.path)&&u(!1),c()});b.observe(r,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["data-item-path"]});let w=new ResizeObserver(c);return w.observe(n),r.addEventListener("pointerover",h),n.addEventListener("pointerleave",x),r.addEventListener("focusin",g),r.addEventListener("focusout",y),c(),()=>{b.disconnect(),w.disconnect(),r.removeEventListener("pointerover",h),n.removeEventListener("pointerleave",x),r.removeEventListener("focusin",g),r.removeEventListener("focusout",y),i&&cancelAnimationFrame(i),u(!1)}}var Gu=R(ee(),1);function axe({files:t,selected:e,onSelect:n}){let r=ve(),i=$U(F6e),o=B6e[$U(z6e)],a=(0,au.useCallback)(y=>{if(!y)return;let b=Q6e(y,i),w=oxe(y,{fadeWidth:o});return()=>{b(),w()}},[i,o]),s=(0,au.useMemo)(()=>new Map(t.map(y=>[y.displayPath,y])),[t]),l=(0,au.useRef)(s);l.current=s;let c=({item:y})=>{let b=l.current.get(y.path);if(!b||y.kind!=="file")return null;let w=[b.additions>0&&`+${b.additions}`,b.deletions>0&&`-${b.deletions}`].filter(Boolean).join(" ");return w?{text:w}:null},u=nu(y=>{let b=l.current.get(y[y.length-1]??"");b&&b.path!==e&&n(b.path)}),d=y=>{if(y.metaKey||y.ctrlKey||y.shiftKey||y.altKey||"key"in y&&y.key!=="Enter"&&y.key!==" ")return;let b=y.nativeEvent.composedPath().find(v=>v instanceof HTMLElement&&v.dataset.itemPath!==void 0),w=b&&l.current.get(b.dataset.itemPath);w&&w.path===e&&n(w.path)},[p,m]=(0,au.useState)(""),f=(0,au.useMemo)(()=>{let y=p.trim().toLowerCase();return t.map(b=>b.displayPath).filter(b=>!y||b.toLowerCase().includes(y))},[t,p]),h=t.find(y=>y.path===e)?.displayPath,{model:x}=AU({paths:f,flattenEmptyDirectories:!0,initialExpansion:"open",initialSelectedPaths:h?[h]:[],onSelectionChange:u,icons:{set:"complete",colored:!0},itemHeight:28,renderRowDecoration:c,unsafeCSS:Ore}),g=(0,au.useRef)(f);return(0,au.useEffect)(()=>{g.current.length===f.length&&g.current.every((y,b)=>y===f[b])||(g.current=f,x.resetPaths(f))},[x,f]),(0,Gu.jsxs)(Gu.Fragment,{children:[(0,Gu.jsxs)("label",{className:"acpmux-diff-filter",children:[(0,Gu.jsx)(P6e,{width:14,height:14}),(0,Gu.jsx)("input",{type:"search","aria-label":r("changes.filterFiles"),placeholder:r("changes.filterPlaceholder"),defaultValue:"",onInput:y=>m(y.currentTarget.value)})]}),f.length===0&&(0,Gu.jsx)("div",{className:"acpmux-diff-tree-empty",children:r("changes.noMatchingFiles")}),(0,Gu.jsx)("div",{className:"acpmux-diff-tree-motion",ref:a,children:(0,Gu.jsx)(RU,{model:x,className:"acpmux-diff-tree-host",onClick:d,onKeyDown:d})})]})}var sxe=R(qe(),1),IT=R(ee(),1);function Gm(t){let e=(0,sxe.c)(7),{additions:n,deletions:r}=t,i;e[0]!==n?(i=(0,IT.jsxs)("span",{className:"acpmux-diff-add",children:["+",n]}),e[0]=n,e[1]=i):i=e[1];let o;e[2]!==r?(o=(0,IT.jsxs)("span",{className:"acpmux-diff-del",children:["-",r]}),e[2]=r,e[3]=o):o=e[3];let a;return e[4]!==i||e[5]!==o?(a=(0,IT.jsxs)("span",{className:"acpmux-diff-counts",children:[i,o]}),e[4]=i,e[5]=o,e[6]=a):a=e[6],a}var lxe=R(qe(),1),cxe=R(Q(),1);var u5=R(ee(),1);function uxe(){let t=(0,lxe.c)(2),e=ve(),n;if(t[0]!==e){let r=[[["j","k"],e("diff.keys.files")],[["n","p"],e("diff.keys.changes")],[["esc"],e("diff.keys.back")]];n=(0,u5.jsx)("footer",{className:"acpmux-diff-keys","aria-label":e("diff.keys"),children:r.map(rrt)}),t[0]=e,t[1]=n}else n=t[1];return n}function rrt(t,e){let[n,r]=t;return(0,u5.jsxs)(cxe.default.Fragment,{children:[e>0&&(0,u5.jsx)("span",{className:"acpmux-diff-keys-dot","aria-hidden":"true",children:"\xB7"}),(0,u5.jsxs)("span",{className:"acpmux-diff-key",children:[n.map(irt),r]})]},r)}function irt(t){return(0,u5.jsx)(d3,{children:t},t)}var vxe=R(qe(),1);var mxe=R(qe(),1);var dxe=R(qe(),1),Um=R(Q(),1);var d5=R(ee(),1);function pxe(t){let e=(0,dxe.c)(51),{path:n,name:r,collapsed:i,onToggleCollapsed:o,onOpenInTab:a}=t,s=ve(),[l,c]=(0,Um.useState)(!1),u=(0,Um.useRef)(null),d=(0,Um.useRef)(null),p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={side:"below",align:"start"},e[0]=p):p=e[0];let m=Ys(u,d,l,p),f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f=U=>{c(!1),U&&u.current?.focus()},e[1]=f):f=e[1];let h=f,x,g;e[2]!==l?(x=()=>{l&&d.current?.querySelector('[role="menuitem"]')?.focus()},g=[l],e[2]=l,e[3]=x,e[4]=g):(x=e[3],g=e[4]),(0,Um.useLayoutEffect)(x,g);let y,b;e[5]!==l?(y=()=>{if(!l)return;let U=G=>{let j=G.target;!d.current?.contains(j)&&!u.current?.contains(j)&&c(!1)};return document.addEventListener("pointerdown",U,!0),()=>document.removeEventListener("pointerdown",U,!0)},b=[l],e[5]=l,e[6]=y,e[7]=b):(y=e[6],b=e[7]),(0,Um.useEffect)(y,b);let w;e[8]!==s?(w=s("changes.copyPath"),e[8]=s,e[9]=w):w=e[9];let v;e[10]!==n?(v=()=>ba(n),e[10]=n,e[11]=v):v=e[11];let k;e[12]!==w||e[13]!==v?(k={label:w,run:v},e[12]=w,e[13]=v,e[14]=k):k=e[14];let _;e[15]!==a||e[16]!==s?(_=a?[{label:s("changes.openInTab"),run:a}]:[],e[15]=a,e[16]=s,e[17]=_):_=e[17];let L;e[18]!==i||e[19]!==s?(L=s(i?"changes.expandFile":"changes.collapseFile"),e[18]=i,e[19]=s,e[20]=L):L=e[20];let S;e[21]!==o||e[22]!==L?(S={label:L,run:o},e[21]=o,e[22]=L,e[23]=S):S=e[23];let C;e[24]!==_||e[25]!==S||e[26]!==k?(C=[k,..._,S],e[24]=_,e[25]=S,e[26]=k,e[27]=C):C=e[27];let T=C,M;e[28]===Symbol.for("react.memo_cache_sentinel")?(M=U=>{let G=[...d.current?.querySelectorAll('[role="menuitem"]')??[]],j=G.indexOf(document.activeElement),V=H=>G[(H+G.length)%G.length]?.focus();U.key==="Escape"?(U.preventDefault(),U.stopPropagation(),h(!0)):U.key==="ArrowDown"||U.key==="ArrowUp"?(U.preventDefault(),V(j+(U.key==="ArrowDown"?1:-1))):U.key==="Home"||U.key==="End"?(U.preventDefault(),V(U.key==="Home"?0:G.length-1)):U.key==="Enter"||U.key===" "?(U.preventDefault(),G[j]?.click()):U.key==="Tab"&&h(!1)},e[28]=M):M=e[28];let A=M,$;e[29]!==r||e[30]!==s?($=s("changes.moreActionsFor",{name:r}),e[29]=r,e[30]=s,e[31]=$):$=e[31];let N;e[32]!==s?(N=s("changes.moreActions"),e[32]=s,e[33]=N):N=e[33];let F;e[34]!==l?(F=()=>l?h(!0):c(!0),e[34]=l,e[35]=F):F=e[35];let D;e[36]===Symbol.for("react.memo_cache_sentinel")?(D=(0,d5.jsx)($T,{}),e[36]=D):D=e[36];let O;e[37]!==l||e[38]!==$||e[39]!==N||e[40]!==F?(O=(0,d5.jsx)("button",{ref:u,type:"button",className:"acpmux-fh-btn","aria-label":$,"aria-haspopup":"menu","aria-expanded":l,title:N,onClick:F,children:D}),e[37]=l,e[38]=$,e[39]=N,e[40]=F,e[41]=O):O=e[41];let B;e[42]!==T||e[43]!==m||e[44]!==r||e[45]!==l||e[46]!==s?(B=l&&(0,d5.jsx)("div",{ref:d,style:m,role:"menu",tabIndex:-1,className:"acpmux-file-menu-list","aria-label":s("changes.actionsFor",{name:r}),onKeyDown:A,children:T.map(U=>(0,d5.jsx)("button",{type:"button",role:"menuitem",tabIndex:-1,className:"acpmux-file-menu-item",onClick:()=>{h(!1),Promise.resolve(U.run()).finally(()=>u.current?.focus())},children:U.label},U.label))}),e[42]=T,e[43]=m,e[44]=r,e[45]=l,e[46]=s,e[47]=B):B=e[47];let P;return e[48]!==O||e[49]!==B?(P=(0,d5.jsxs)("span",{className:"acpmux-file-menu",children:[O,B]}),e[48]=O,e[49]=B,e[50]=P):P=e[50],P}var oi=R(ee(),1);function fxe(t){let e=(0,mxe.c)(84),{file:n,edit:r,index:i,view:o,on:a}=t,s=ve(),l=n.displayPath.lastIndexOf("/"),c;e[0]!==r.hunks?(c=r.hunks.reduce(srt,0),e[0]=r.hunks,e[1]=c):c=e[1];let u=c,d;e[2]!==r.hunks?(d=r.hunks.reduce(ort,0),e[2]=r.hunks,e[3]=d):d=e[3];let p=d,m=o.viewed?"":void 0,f;e[4]!==n.displayPath?(f=(0,oi.jsx)(j6e,{path:n.displayPath}),e[4]=n.displayPath,e[5]=f):f=e[5];let h=n.path,x=!o.collapsed,g;e[6]!==n.path||e[7]!==a?(g=()=>a.toggleCollapsed(n.path),e[6]=n.path,e[7]=a,e[8]=g):g=e[8];let y;e[9]!==n.displayPath||e[10]!==l?(y=l>=0&&(0,oi.jsx)("span",{className:"acpmux-fh-dir",children:n.displayPath.slice(0,l+1)}),e[9]=n.displayPath,e[10]=l,e[11]=y):y=e[11];let b;e[12]!==n.displayPath||e[13]!==l?(b=n.displayPath.slice(l+1),e[12]=n.displayPath,e[13]=l,e[14]=b):b=e[14];let w;e[15]!==b?(w=(0,oi.jsx)("span",{children:b}),e[15]=b,e[16]=w):w=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=(0,oi.jsx)(c5,{className:"acpmux-fh-chevron",width:14,height:14}),e[17]=v):v=e[17];let k;e[18]!==n.path||e[19]!==w||e[20]!==x||e[21]!==g||e[22]!==y?(k=(0,oi.jsxs)("button",{type:"button",className:"acpmux-fh-name",title:h,"aria-expanded":x,onClick:g,children:[y,w,v]}),e[18]=n.path,e[19]=w,e[20]=x,e[21]=g,e[22]=y,e[23]=k):k=e[23];let _;e[24]!==n.created||e[25]!==i||e[26]!==s?(_=n.created&&i===0&&(0,oi.jsx)("span",{className:"acpmux-fh-badge",children:s("changes.badgeNew")}),e[24]=n.created,e[25]=i,e[26]=s,e[27]=_):_=e[27];let L;e[28]!==n.deleted||e[29]!==s?(L=n.deleted&&(0,oi.jsx)("span",{className:"acpmux-fh-badge",children:s("changes.badgeDeleted")}),e[28]=n.deleted,e[29]=s,e[30]=L):L=e[30];let S;e[31]!==n.edits.length||e[32]!==i?(S=n.edits.length>1&&(0,oi.jsx)("span",{className:"acpmux-fh-badge",children:`Edit ${i+1} of ${n.edits.length}`}),e[31]=n.edits.length,e[32]=i,e[33]=S):S=e[33];let C;e[34]!==n.outside||e[35]!==s?(C=n.outside&&(0,oi.jsx)("span",{className:"acpmux-fh-badge acpmux-fh-outside",title:s("turn.outside.title"),children:s("turn.outside")}),e[34]=n.outside,e[35]=s,e[36]=C):C=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=(0,oi.jsx)("span",{className:"acpmux-fh-spacer"}),e[37]=T):T=e[37];let M;e[38]!==u||e[39]!==p?(M=(0,oi.jsx)(Gm,{additions:u,deletions:p}),e[38]=u,e[39]=p,e[40]=M):M=e[40];let A=o.viewed?"changes.markNotViewed":"changes.markViewed",$;e[41]!==n.displayPath||e[42]!==s||e[43]!==A?($=s(A,{path:n.displayPath}),e[41]=n.displayPath,e[42]=s,e[43]=A,e[44]=$):$=e[44];let N;e[45]!==n.path||e[46]!==a?(N=()=>a.toggleViewed(n.path),e[45]=n.path,e[46]=a,e[47]=N):N=e[47];let F;e[48]===Symbol.for("react.memo_cache_sentinel")?(F=(0,oi.jsx)(N6e,{}),e[48]=F):F=e[48];let D;e[49]!==$||e[50]!==N||e[51]!==o.viewed?(D=(0,oi.jsx)("button",{type:"button",className:"acpmux-fh-btn","aria-label":$,"aria-pressed":o.viewed,onClick:N,children:F}),e[49]=$,e[50]=N,e[51]=o.viewed,e[52]=D):D=e[52];let O;e[53]!==n.deleted||e[54]!==n.displayPath||e[55]!==n.path||e[56]!==a||e[57]!==s?(O=!n.deleted&&(0,oi.jsxs)(oi.Fragment,{children:[(0,oi.jsx)("button",{type:"button",className:"acpmux-fh-btn","aria-label":s("changes.openPathInTab",{path:n.displayPath}),title:s("changes.openInTab"),onClick:()=>a.openFile(n.path,"tab"),children:(0,oi.jsx)(_6e,{})}),(0,oi.jsx)("button",{type:"button",className:"acpmux-fh-btn","aria-label":s("changes.openPathInEditor",{path:n.displayPath}),title:s("changes.openInEditor"),onClick:()=>a.openFile(n.path,"editor"),children:(0,oi.jsx)(S6e,{})})]}),e[53]=n.deleted,e[54]=n.displayPath,e[55]=n.path,e[56]=a,e[57]=s,e[58]=O):O=e[58];let B;e[59]!==n.path||e[60]!==a?(B=()=>a.toggleCollapsed(n.path),e[59]=n.path,e[60]=a,e[61]=B):B=e[61];let P;e[62]!==n.deleted||e[63]!==n.path||e[64]!==a?(P=n.deleted?void 0:()=>a.openFile(n.path,"tab"),e[62]=n.deleted,e[63]=n.path,e[64]=a,e[65]=P):P=e[65];let U;e[66]!==n.displayPath||e[67]!==n.path||e[68]!==B||e[69]!==P||e[70]!==o.collapsed?(U=(0,oi.jsx)(pxe,{path:n.path,name:n.displayPath,collapsed:o.collapsed,onToggleCollapsed:B,onOpenInTab:P}),e[66]=n.displayPath,e[67]=n.path,e[68]=B,e[69]=P,e[70]=o.collapsed,e[71]=U):U=e[71];let G;return e[72]!==k||e[73]!==_||e[74]!==L||e[75]!==S||e[76]!==C||e[77]!==M||e[78]!==D||e[79]!==O||e[80]!==U||e[81]!==m||e[82]!==f?(G=(0,oi.jsxs)("div",{className:"acpmux-file-header","data-viewed":m,children:[f,k,_,L,S,C,T,M,D,O,U]}),e[72]=k,e[73]=_,e[74]=L,e[75]=S,e[76]=C,e[77]=M,e[78]=D,e[79]=O,e[80]=U,e[81]=m,e[82]=f,e[83]=G):G=e[83],G}function ort(t,e){return t+e.lines.filter(art).length}function art(t){return t.type==="del"}function srt(t,e){return t+e.lines.filter(lrt).length}function lrt(t){return t.type==="add"}var Kd=R(ee(),1);function hxe({anchor:t,decision:e,onDecide:n,focusAfter:r}){let i=ve(),o=s=>{r.current=t.key,n(s)},a=s=>{s&&r.current===t.key&&(r.current=void 0,s.focus())};return e==="requested"?(0,Kd.jsx)("div",{className:"acpmux-hunk-actions","data-decision":e,children:(0,Kd.jsx)("output",{children:i("hunk.revertRequested")})}):e?(0,Kd.jsxs)("div",{className:"acpmux-hunk-actions","data-decision":e,children:[(0,Kd.jsx)("output",{children:i(e==="accepted"?"hunk.accepted":"hunk.rejected")}),(0,Kd.jsx)("button",{ref:a,type:"button",className:"acpmux-hunk-undo","aria-label":i("hunk.undoAt",{line:t.label}),onClick:()=>o(void 0),children:i("hunk.undo")})]}):(0,Kd.jsxs)("div",{className:"acpmux-hunk-actions",children:[(0,Kd.jsx)("button",{ref:a,type:"button",className:"acpmux-hunk-reject","aria-label":i("hunk.rejectAt",{line:t.label}),onClick:()=>o("rejected"),children:i("hunk.reject")}),(0,Kd.jsx)("button",{type:"button",className:"acpmux-hunk-accept","aria-label":i("hunk.acceptAt",{line:t.label}),onClick:()=>o("accepted"),children:i("hunk.accept")})]})}var gxe=t=>t.trim().split(/\s+|(?=[^\w\s])|(?<=[^\w\s])/).filter(Boolean);function crt(t,e){let n=gxe(t),r=gxe(e);if(n.length+r.length===0)return 1;let i=new Map;for(let a of n)i.set(a,(i.get(a)??0)+1);let o=0;for(let a of r){let s=i.get(a)??0;s>0&&(o+=1,i.set(a,s-1))}return 2*o/(n.length+r.length)}function urt(t){let e=[];for(let n of t.hunks){let r=[],i=[],o=()=>{for(let a=0;a<Math.min(r.length,i.length);a+=1)e.push([r[a],i[a]]);r=[],i=[]};for(let a of n.lines)(a.type==="context"||a.type==="del"&&i.length>0)&&o(),a.type==="del"?r.push(a.text):a.type==="add"&&i.push(a.text);o()}return e}function bxe(t){let e=urt(t);return e.length===0||e.filter(([r,i])=>crt(r,i)>=.5).length/e.length>=.6?"word-alt":"none"}function yxe(t,e,n,r){let i=t.lines.filter(c=>c.type!=="context"),o=i[i.length-1];if(!o)return;let a=i[0],s=a.newLine??a.oldLine,l=r&&s!==void 0?`${n.displayPath} line ${s}`:n.displayPath;return o.type==="add"?{side:"additions",lineNumber:o.newLine,metadata:{key:e,label:l,keys:t.reviewKeys??[e]}}:{side:"deletions",lineNumber:o.oldLine,metadata:{key:e,label:l,keys:t.reviewKeys??[e]}}}function xxe(t,e){return t.flatMap(n=>n.edits.flatMap((r,i)=>r.hunks.flatMap((o,a)=>{let s=T2(n,i,a);return(o.reviewKeys??[s]).flatMap(c=>e.get(c)==="rejected"?[{key:c,patch:kse(n,r,o)}]:[])})))}function wxe(t,e){let n=new Map(t);for(let[r,i]of e)n.get(r)==="requested"&&(i?n.set(r,i):n.delete(r));return n}var Ch=R(ee(),1),drt=()=>document.documentElement.dataset.theme==="light"?"light":"dark";function kxe(t){let e=(0,vxe.c)(49),{file:n,edit:r,index:i,layout:o,wrap:a,view:s,on:l,onPainted:c,review:u,focusAfter:d}=t,p=ve(),m;e[0]!==r||e[1]!==n?(m=E2(n,r),e[0]=r,e[1]=n,e[2]=m):m=e[2];let f=m,h;e[3]!==n.displayPath?(h=x0(br(n.displayPath)),e[3]=n.displayPath,e[4]=h):h=e[4];let x=h,g=x?br(n.displayPath):"text",y;if(e[5]!==x||e[6]!==f){let V=H7(f);y=x?V:G7(V,"text"),e[5]=x,e[6]=f,e[7]=y}else y=e[7];let b=y,w=nu(c),v;e[8]!==r?(v=bxe(r),e[8]=r,e[9]=v):v=e[9];let k=v,_=i2(k,g),L=u!==void 0,S;e[10]!==r.hunks||e[11]!==r.numbered||e[12]!==n||e[13]!==i||e[14]!==L?(S=L?r.hunks.flatMap((V,H)=>V.reviewKeys?.length===0?[]:yxe(V,T2(n,i,H),n,r.numbered)??[]):[],e[10]=r.hunks,e[11]=r.numbered,e[12]=n,e[13]=i,e[14]=L,e[15]=S):S=e[15];let C=S,T,M;e[16]===Symbol.for("react.memo_cache_sentinel")?(T={dark:pd,light:md},M=drt(),e[16]=T,e[17]=M):(T=e[16],M=e[17]);let A=a?"wrap":"scroll",$=!r.numbered,N;e[18]!==w||e[19]!==o||e[20]!==k||e[21]!==A||e[22]!==$?(N={theme:T,themeType:M,diffStyle:o,diffIndicators:"bars",hunkSeparators:"line-info",lineDiffType:k,overflow:A,disableLineNumbers:$,preferredHighlighter:"shiki-js",disableFileHeader:!0,unsafeCSS:Jb,onPostRender:w},e[18]=w,e[19]=o,e[20]=k,e[21]=A,e[22]=$,e[23]=N):N=e[23];let F=N,D;e[24]!==r||e[25]!==n||e[26]!==i||e[27]!==l||e[28]!==s?(D=(0,Ch.jsx)(fxe,{file:n,edit:r,index:i,view:s,on:l}),e[24]=r,e[25]=n,e[26]=i,e[27]=l,e[28]=s,e[29]=D):D=e[29];let O=D,B=!s.collapsed&&r.hunks.length>0,P=s.collapsed?"":void 0,U;e[30]!==r.hunks||e[31]!==n.binary||e[32]!==p||e[33]!==s.collapsed?(U=!s.collapsed&&r.hunks.length===0&&(0,Ch.jsx)("div",{className:"acpmux-diff-empty-edit",children:n.binary?p("changes.binaryNotShown"):p("changes.noLineChanges")}),e[30]=r.hunks,e[31]=n.binary,e[32]=p,e[33]=s.collapsed,e[34]=U):U=e[34];let G;e[35]!==C||e[36]!==b||e[37]!==d||e[38]!==F||e[39]!==u||e[40]!==B||e[41]!==_?(G=B&&(0,Ch.jsx)(e5.Provider,{value:_,children:(0,Ch.jsx)(w8,{className:"acpmux-diff-pierre",fileDiff:b,options:F,lineAnnotations:C,renderAnnotation:V=>{let H=V.metadata;return u&&d&&H?(0,Ch.jsx)(hxe,{anchor:H,decision:H.keys.length>0&&H.keys.every(ne=>u.decisions.get(ne)===u.decisions.get(H.keys[0]))?u.decisions.get(H.keys[0]):void 0,onDecide:ne=>H.keys.forEach(J=>u.decide(J,ne)),focusAfter:d}):null}})}),e[35]=C,e[36]=b,e[37]=d,e[38]=F,e[39]=u,e[40]=B,e[41]=_,e[42]=G):G=e[42];let j;return e[43]!==n.path||e[44]!==O||e[45]!==P||e[46]!==U||e[47]!==G?(j=(0,Ch.jsxs)("div",{className:"acpmux-diff-file","data-path":n.path,"data-collapsed":P,children:[O,U,G]}),e[43]=n.path,e[44]=O,e[45]=P,e[46]=U,e[47]=G,e[48]=j):j=e[48],j}var Cxe=R(qe(),1);var Xd=R(ee(),1);function _xe(t){let e=(0,Cxe.c)(25),{state:n,onRetry:r}=t,i=ve();if(n==="loading"){let p;e[0]!==i?(p=i("changes.loading"),e[0]=i,e[1]=p):p=e[1];let m;return e[2]!==p?(m=(0,Xd.jsx)("output",{className:"acpmux-changes-state",children:(0,Xd.jsx)("span",{className:"acpmux-changes-state-body",children:p})}),e[2]=p,e[3]=m):m=e[3],m}if(n==="empty"){let p;e[4]!==i?(p=i("changes.none"),e[4]=i,e[5]=p):p=e[5];let m;return e[6]!==p?(m=(0,Xd.jsx)("output",{className:"acpmux-changes-state",children:(0,Xd.jsx)("strong",{children:p})}),e[6]=p,e[7]=m):m=e[7],m}let o;e[8]!==i?(o=i("changes.loadFailed"),e[8]=i,e[9]=o):o=e[9];let a;e[10]!==o?(a=(0,Xd.jsx)("strong",{children:o}),e[10]=o,e[11]=a):a=e[11];let s;e[12]!==i?(s=i("changes.loadFailedHint"),e[12]=i,e[13]=s):s=e[13];let l;e[14]!==s?(l=(0,Xd.jsx)("span",{className:"acpmux-changes-state-body",children:s}),e[14]=s,e[15]=l):l=e[15];let c;e[16]!==i?(c=i("changes.retry"),e[16]=i,e[17]=c):c=e[17];let u;e[18]!==r||e[19]!==c?(u=(0,Xd.jsx)("button",{type:"button",className:"acpmux-changes-retry",onClick:r,children:c}),e[18]=r,e[19]=c,e[20]=u):u=e[20];let d;return e[21]!==a||e[22]!==l||e[23]!==u?(d=(0,Xd.jsxs)("div",{className:"acpmux-changes-state",role:"alert",children:[a,l,u]}),e[21]=a,e[22]=l,e[23]=u,e[24]=d):d=e[24],d}var DU="CMUX_PATCH";function prt(t){let e=t.previousPath??t.path,n=t.status==="added"||t.status==="untracked",r=t.status==="deleted",i=[`diff --git a/${e} b/${t.path}`];n&&i.push("new file mode 100644"),r&&i.push("deleted file mode 100644"),t.previousPath&&i.push(`rename from ${t.previousPath}`,`rename to ${t.path}`);let o=t.patch??"";return o!==""&&i.push(n?"--- /dev/null":`--- a/${e}`,r?"+++ /dev/null":`+++ b/${t.path}`),`${i.join(` `)} ${o===""||o.endsWith(` `)?o:`${o} -`}`}function Sxe(t){for(let e=0;e<t.length;e+=1){let n=t.charCodeAt(e);if(n<32||n===127||n===34||n===92)return!0}return!1}function Lxe(t){let e=t.files;if(e.length===0||(t.filesOmitted??0)>0)return;let n=i=>!!i.previousPath&&i.additions+i.deletions===0;if(e.some(i=>i.binary||i.patchTruncated||!i.patch&&!n(i))||e.some(i=>Sxe(i.path)||Sxe(i.previousPath??"")))return;let r=e.map(crt).join("");if(!r.split(` +`}`}function Sxe(t){for(let e=0;e<t.length;e+=1){let n=t.charCodeAt(e);if(n<32||n===127||n===34||n===92)return!0}return!1}function Lxe(t){let e=t.files;if(e.length===0||(t.filesOmitted??0)>0)return;let n=i=>!!i.previousPath&&i.additions+i.deletions===0;if(e.some(i=>i.binary||i.patchTruncated||!i.patch&&!n(i))||e.some(i=>Sxe(i.path)||Sxe(i.previousPath??"")))return;let r=e.map(prt).join("");if(!r.split(` `).includes(DU))return`git -C "$(git rev-parse --show-toplevel)" apply <<'${DU}' ${r}${DU} -`}var Mxe=R(qe(),1);var d5=R(ee(),1);function Exe(t){let e=(0,Mxe.c)(13),{branch:n,base:r}=t,i=we(),o;e[0]!==n?(o=(0,d5.jsx)("span",{className:"acpmux-branch-from",children:n}),e[0]=n,e[1]=o):o=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,d5.jsx)(M6e,{className:"acpmux-branch-arrow"}),e[2]=a):a=e[2];let s;e[3]!==i?(s=i("changes.comparedWith"),e[3]=i,e[4]=s):s=e[4];let l;e[5]!==s?(l=(0,d5.jsxs)("span",{className:"acpmux-hidden-label",children:[" ",s," "]}),e[5]=s,e[6]=l):l=e[6];let c;e[7]!==r?(c=(0,d5.jsx)("span",{className:"acpmux-branch-to",children:r}),e[7]=r,e[8]=c):c=e[8];let u;return e[9]!==o||e[10]!==l||e[11]!==c?(u=(0,d5.jsxs)("div",{className:"acpmux-branch-pill",children:[o,a,l,c]}),e[9]=o,e[10]=l,e[11]=c,e[12]=u):u=e[12],u}function Txe(t){let e=t&&typeof t=="object"?t:{},n=kh(e.branch),r=kh(e.base);return e.detached!==!0&&n&&r?{branch:n,base:r}:void 0}var Rxe=["lastTurn",null,"uncommitted","unstaged","staged",null,"committed","branch"],AT={lastTurn:"changes.scope.lastTurn",uncommitted:"changes.scope.uncommitted",unstaged:"changes.scope.unstaged",staged:"changes.scope.staged",committed:"changes.scope.committed",branch:"changes.scope.branch"},urt=new Set(["added","modified","deleted","renamed","untracked"]),p5=t=>typeof t=="number"&&Number.isFinite(t)&&t>0?t:0,kh=t=>typeof t=="string"&&t?t:void 0;function $T(t,e){if(!t||typeof t!="object"||!Array.isArray(t.files))return;let n=t,r=n.files.flatMap(i=>{let o=i,a=kh(o?.path);if(!o||!a)return[];let s=urt.has(o.status)?o.status:"modified";return[{path:a,previousPath:kh(o.previous_path),status:s,additions:p5(o.additions),deletions:p5(o.deletions),patch:kh(o.patch),binary:o.binary===!0,patchTruncated:o.patch_truncated===!0}]});return{scope:e,root:kh(n.root),head:kh(n.head),base:kh(n.base),files:r,additions:p5(n.additions),deletions:p5(n.deletions),untrackedSkipped:p5(n.untracked_skipped),totalFiles:p5(n.total_files),filesOmitted:p5(n.files_omitted)}}function drt(t){let e=[],n=[],r=0,i=0,o=0,a=0,s=(t??"").split(` -`);s.at(-1)===""&&s.pop();for(let l of s){let c=l.endsWith("\r")?l.slice(0,-1):l,u=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(c);if(u)n=[],e.push({lines:n}),r=Number(u[1]),o=u[2]===void 0?1:Number(u[2]),i=Number(u[3]),a=u[4]===void 0?1:Number(u[4]);else{if(o<=0&&a<=0)continue;c.startsWith("+")&&a>0?(n.push({type:"add",text:c.slice(1),newLine:i++}),a-=1):c.startsWith("-")&&o>0?(n.push({type:"del",text:c.slice(1),oldLine:r++}),o-=1):(c.startsWith(" ")||c==="")&&o>0&&a>0&&(n.push({type:"context",text:c.slice(1),oldLine:r++,newLine:i++}),o-=1,a-=1)}}return e}function IT(t){let e=t.root?.replace(/\/+$/,"");return t.files.map(n=>({path:e?`${e}/${n.path}`:n.path,displayPath:n.path,edits:[{toolId:t.scope,hunks:n.binary?[]:drt(n.patch),numbered:!0}],additions:n.additions,deletions:n.deletions,created:n.status==="added"||n.status==="untracked",deleted:n.status==="deleted",binary:n.binary,patchTruncated:n.patchTruncated}))}var Ixe=R(qe(),1);var Axe=R(qe(),1),Um=R(Q(),1);function $xe(){let t=(0,Axe.c)(14),[e,n]=(0,Um.useState)(!1),r=(0,Um.useRef)(null),i=(0,Um.useRef)(null),o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=y=>{n(!1),y&&r.current?.focus()},t[0]=o):o=t[0];let a=o,s,l;t[1]!==e?(s=()=>{e&&i.current?.querySelector('[role="menuitem"]:not([aria-disabled="true"])')?.focus()},l=[e],t[1]=e,t[2]=s,t[3]=l):(s=t[2],l=t[3]),(0,Um.useLayoutEffect)(s,l);let c,u;t[4]!==e?(c=()=>{if(!e)return;let y=b=>{let w=b.target;!i.current?.contains(w)&&!r.current?.contains(w)&&n(!1)};return document.addEventListener("pointerdown",y,!0),()=>document.removeEventListener("pointerdown",y,!0)},u=[e],t[4]=e,t[5]=c,t[6]=u):(c=t[5],u=t[6]),(0,Um.useEffect)(c,u);let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=y=>{let b=[...i.current?.querySelectorAll('[role="menuitem"]')??[]],w=b.indexOf(document.activeElement),v=k=>b[(k+b.length)%b.length]?.focus();y.key==="Escape"?(y.preventDefault(),y.stopPropagation(),a(!0)):y.key==="ArrowDown"||y.key==="ArrowUp"?(y.preventDefault(),v(w+(y.key==="ArrowDown"?1:-1))):y.key==="Home"||y.key==="End"?(y.preventDefault(),v(y.key==="Home"?0:b.length-1)):y.key==="Enter"||y.key===" "?(y.preventDefault(),b[w]?.click()):y.key==="Tab"&&a(!1)},t[7]=d):d=t[7];let p=d,m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=y=>{a(!1),Promise.resolve(y()).finally(()=>r.current?.focus())},t[8]=m):m=t[8];let f=m,h;t[9]!==e?(h=()=>e?a(!0):n(!0),t[9]=e,t[10]=h):h=t[10];let x=h,g;return t[11]!==e||t[12]!==x?(g={open:e,button:r,menu:i,onKeyDown:p,run:f,toggle:x},t[11]=e,t[12]=x,t[13]=g):g=t[13],g}var Ch=R(ee(),1);function Nxe(t){let e=(0,Ixe.c)(23),{rows:n}=t,r=we(),{open:i,button:o,menu:a,onKeyDown:s,run:l,toggle:c}=$xe(),u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={side:"below",align:"start"},e[0]=u):u=e[0];let d=Ys(o,a,i,u),p;e[1]!==r?(p=r("changes.options"),e[1]=r,e[2]=p):p=e[2];let m;e[3]!==r?(m=r("changes.options"),e[3]=r,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=(0,Ch.jsx)(TT,{}),e[5]=f):f=e[5];let h;e[6]!==o||e[7]!==i||e[8]!==p||e[9]!==m||e[10]!==c?(h=(0,Ch.jsx)("button",{ref:o,type:"button",className:"acpmux-diff-tool","data-tool":"options","aria-label":p,title:m,"aria-haspopup":"menu","aria-expanded":i,onClick:c,children:f}),e[6]=o,e[7]=i,e[8]=p,e[9]=m,e[10]=c,e[11]=h):h=e[11];let x;e[12]!==a||e[13]!==d||e[14]!==s||e[15]!==i||e[16]!==n||e[17]!==l||e[18]!==r?(x=i&&(0,Ch.jsx)("div",{ref:a,style:d,role:"menu",tabIndex:-1,className:"acpmux-file-menu-list","aria-label":r("changes.options"),onKeyDown:s,children:n.map((y,b)=>y?(0,Ch.jsx)("button",{type:"button",role:"menuitem",tabIndex:-1,className:"acpmux-file-menu-item","aria-disabled":y.disabled||void 0,onClick:()=>{y.disabled||l(y.run)},children:y.label},y.label):(0,Ch.jsx)("hr",{className:"acpmux-scope-separator"},`separator-${b}`))}),e[12]=a,e[13]=d,e[14]=s,e[15]=i,e[16]=n,e[17]=l,e[18]=r,e[19]=x):x=e[19];let g;return e[20]!==h||e[21]!==x?(g=(0,Ch.jsxs)("span",{className:"acpmux-file-menu",children:[h,x]}),e[20]=h,e[21]=x,e[22]=g):g=e[22],g}var Pxe=R(qe(),1),jxe=R(Q(),1);var I3=R(ee(),1);function Oxe(t){let e=(0,Pxe.c)(35),{files:n,review:r,onSent:i}=t,o=we(),[a,s]=(0,jxe.useState)(""),l,c,u,d,p;if(e[0]!==n||e[1]!==a||e[2]!==i||e[3]!==r||e[4]!==o){p=Symbol.for("react.early_return_sentinel");e:{let k=xxe(n,r.decisions);if(k.length===0){p=null;break e}l=()=>{r.requestRevert(k.map(mrt),Cse(k.map(prt),a)),s(""),i()},d="acpmux-revert-bar",c="acpmux-revert-count",u=k.length===1?o("revert.count.one"):o("revert.count.other",{n:k.length})}e[0]=n,e[1]=a,e[2]=i,e[3]=r,e[4]=o,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=p}else l=e[5],c=e[6],u=e[7],d=e[8],p=e[9];if(p!==Symbol.for("react.early_return_sentinel"))return p;let m;e[10]!==c||e[11]!==u?(m=(0,I3.jsx)("span",{className:c,children:u}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let f;e[13]!==o?(f=o("revert.noteLabel"),e[13]=o,e[14]=f):f=e[14];let h;e[15]!==o?(h=o("revert.notePlaceholder"),e[15]=o,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=k=>s(k.target.value),e[17]=x):x=e[17];let g;e[18]!==l?(g=k=>{k.key==="Enter"&&!k.nativeEvent.isComposing&&(k.preventDefault(),l())},e[18]=l,e[19]=g):g=e[19];let y;e[20]!==a||e[21]!==f||e[22]!==h||e[23]!==g?(y=(0,I3.jsx)("input",{"aria-label":f,placeholder:h,value:a,onChange:x,onKeyDown:g}),e[20]=a,e[21]=f,e[22]=h,e[23]=g,e[24]=y):y=e[24];let b;e[25]!==o?(b=o("revert.send"),e[25]=o,e[26]=b):b=e[26];let w;e[27]!==l||e[28]!==b?(w=(0,I3.jsx)("button",{type:"button",className:"acpmux-revert-send",onClick:l,children:b}),e[27]=l,e[28]=b,e[29]=w):w=e[29];let v;return e[30]!==y||e[31]!==w||e[32]!==d||e[33]!==m?(v=(0,I3.jsxs)("div",{className:d,children:[m,y,w]}),e[30]=y,e[31]=w,e[32]=d,e[33]=m,e[34]=v):v=e[34],v}function prt(t){return t.patch}function mrt(t){return t.key}var Dxe=R(qe(),1),Vm=R(Q(),1);var Uu=R(ee(),1);function Fxe(t){let e=(0,Dxe.c)(37),{scope:n,onScope:r,children:i}=t,o=we(),[a,s]=(0,Vm.useState)(!1),l=(0,Vm.useRef)(null),c=(0,Vm.useRef)(null),u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={side:"below",align:"start"},e[0]=u):u=e[0];let d=Ys(l,c,a,u),p;e[1]===Symbol.for("react.memo_cache_sentinel")?(p=$=>{s(!1),$&&l.current?.focus()},e[1]=p):p=e[1];let m=p,f,h;e[2]!==a?(f=()=>{a&&c.current?.querySelector('[aria-checked="true"]')?.focus()},h=[a],e[2]=a,e[3]=f,e[4]=h):(f=e[3],h=e[4]),(0,Vm.useLayoutEffect)(f,h);let x,g;e[5]!==a?(x=()=>{if(!a)return;let $=N=>{let F=N.target;!c.current?.contains(F)&&!l.current?.contains(F)&&s(!1)};return document.addEventListener("pointerdown",$,!0),()=>document.removeEventListener("pointerdown",$,!0)},g=[a],e[5]=a,e[6]=x,e[7]=g):(x=e[6],g=e[7]),(0,Vm.useEffect)(x,g);let y;e[8]===Symbol.for("react.memo_cache_sentinel")?(y=$=>{let N=[...c.current?.querySelectorAll('[role="menuitemradio"]')??[]],F=N.indexOf(document.activeElement),D=O=>N[(O+N.length)%N.length]?.focus();$.key==="Escape"?($.preventDefault(),$.stopPropagation(),m(!0)):$.key==="ArrowDown"||$.key==="ArrowUp"?($.preventDefault(),D(F+($.key==="ArrowDown"?1:-1))):$.key==="Home"||$.key==="End"?($.preventDefault(),D($.key==="Home"?0:N.length-1)):$.key==="Enter"||$.key===" "?($.preventDefault(),N[F]?.click()):$.key==="Tab"&&m(!1)},e[8]=y):y=e[8];let b=y,w;e[9]!==n||e[10]!==o?(w=o("changes.scopeButton",{scope:o(AT[n])}),e[9]=n,e[10]=o,e[11]=w):w=e[11];let v,k;e[12]!==a?(k=()=>a?m(!0):s(!0),v=$=>{a||$.key!=="ArrowDown"&&$.key!=="ArrowUp"||($.preventDefault(),s(!0))},e[12]=a,e[13]=v,e[14]=k):(v=e[13],k=e[14]);let _=AT[n],L;e[15]!==o||e[16]!==_?(L=o(_),e[15]=o,e[16]=_,e[17]=L):L=e[17];let S;e[18]!==L?(S=(0,Uu.jsx)("strong",{children:L}),e[18]=L,e[19]=S):S=e[19];let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=(0,Uu.jsx)(l5,{className:"acpmux-scope-chevron"}),e[20]=C):C=e[20];let T;e[21]!==i||e[22]!==a||e[23]!==v||e[24]!==S||e[25]!==w||e[26]!==k?(T=(0,Uu.jsxs)("button",{ref:l,type:"button",className:"acpmux-diff-scope","aria-label":w,"aria-haspopup":"menu","aria-expanded":a,onClick:k,onKeyDown:v,children:[S,C,i]}),e[21]=i,e[22]=a,e[23]=v,e[24]=S,e[25]=w,e[26]=k,e[27]=T):T=e[27];let M;e[28]!==d||e[29]!==r||e[30]!==a||e[31]!==n||e[32]!==o?(M=a&&(0,Uu.jsx)("div",{ref:c,style:d,role:"menu",tabIndex:-1,className:"acpmux-file-menu-list acpmux-scope-list","aria-label":o("changes.scopeMenu"),onKeyDown:b,children:Rxe.map(($,N)=>$===null?(0,Uu.jsx)("hr",{className:"acpmux-scope-separator"},`separator-${N}`):(0,Uu.jsxs)("button",{type:"button",role:"menuitemradio","aria-checked":$===n,tabIndex:-1,className:"acpmux-file-menu-item",onClick:()=>{m(!0),r($)},children:[(0,Uu.jsx)("span",{className:"acpmux-scope-label",children:o(AT[$])}),$===n&&(0,Uu.jsx)(L6e,{})]},$))}),e[28]=d,e[29]=r,e[30]=a,e[31]=n,e[32]=o,e[33]=M):M=e[33];let A;return e[34]!==T||e[35]!==M?(A=(0,Uu.jsxs)("span",{className:"acpmux-scope-menu",children:[T,M]}),e[34]=T,e[35]=M,e[36]=A):A=e[36],A}var Bxe=R(qe(),1);var Yd=R(ee(),1);function zxe(t){let e=(0,Bxe.c)(27),{skipped:n,onRefresh:r}=t,i=we(),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,Yd.jsx)(E6e,{className:"acpmux-changes-banner-icon"}),e[0]=o):o=e[0];let a;e[1]!==i?(a=i("changes.trackedOnly"),e[1]=i,e[2]=a):a=e[2];let s;e[3]!==a?(s=(0,Yd.jsx)("div",{className:"acpmux-changes-banner-title",children:a}),e[3]=a,e[4]=s):s=e[4];let l;e[5]!==n||e[6]!==i?(l=n===1?i("changes.skipped.one"):i("changes.skipped.other",{n:n.toLocaleString(document.documentElement.lang||"en")}),e[5]=n,e[6]=i,e[7]=l):l=e[7];let c;e[8]!==l?(c=(0,Yd.jsx)("div",{className:"acpmux-changes-banner-body",children:l}),e[8]=l,e[9]=c):c=e[9];let u;e[10]!==s||e[11]!==c?(u=(0,Yd.jsxs)("div",{className:"acpmux-changes-banner-text",role:"status",children:[s,c]}),e[10]=s,e[11]=c,e[12]=u):u=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,Yd.jsx)("span",{className:"acpmux-changes-banner-divider"}),e[13]=d):d=e[13];let p;e[14]!==i?(p=i("changes.copyCleanup"),e[14]=i,e[15]=p):p=e[15];let m;e[16]!==p?(m=(0,Yd.jsx)("button",{type:"button",className:"acpmux-changes-banner-action",onClick:frt,children:p}),e[16]=p,e[17]=m):m=e[17];let f;e[18]!==i?(f=i("changes.refresh"),e[18]=i,e[19]=f):f=e[19];let h;e[20]!==r||e[21]!==f?(h=(0,Yd.jsx)("button",{type:"button",className:"acpmux-changes-banner-refresh",onClick:r,children:f}),e[20]=r,e[21]=f,e[22]=h):h=e[22];let x;return e[23]!==h||e[24]!==u||e[25]!==m?(x=(0,Yd.jsxs)("div",{className:"acpmux-changes-banner",children:[o,u,d,m,h]}),e[23]=h,e[24]=u,e[25]=m,e[26]=x):x=e[26],x}function frt(){ba("git clean -nd")}var Uxe=R(qe(),1),Vxe=R(Q(),1);function FU(t,e,n){if(n===1){let r=t.findIndex(i=>i>e+1);return r===-1?void 0:r}for(let r=t.length-1;r>=0;r-=1)if(t[r]<e-1)return r}var qxe=t=>t?.getAttribute("data-line-type")?.startsWith("change-")===!0;function Hxe(t){let e=[];for(let n of t.querySelectorAll(".acpmux-diff-file diffs-container"))for(let r of n.shadowRoot?.querySelectorAll("[data-line][data-line-type]")??[]){if(!qxe(r))continue;let i=r.previousElementSibling;for(;i&&!i.hasAttribute("data-line")&&!i.hasAttribute("data-separator");)i=i.previousElementSibling;qxe(i)||e.push({row:r,top:r.getBoundingClientRect().top})}return e.sort((n,r)=>n.top-r.top),e.filter((n,r)=>r===0||n.top-e[r-1].top>1).map(({row:n})=>n)}function Gxe(t){let e=new Set;return[...t.querySelectorAll(".acpmux-diff-file")].filter(n=>{let r=n.dataset.path??"";return e.has(r)?!1:(e.add(r),!0)})}var BU="data-acpmux-current",grt=t=>t instanceof Element&&(t.closest("input, textarea, select, [contenteditable]:not([contenteditable='false'])")!==null||t.getAttribute("role")==="textbox");function Zxe(t,e,n,r){let i=(0,Uxe.c)(10),o;i[0]!==e||i[1]!==t.current||i[2]!==n||i[3]!==r?(o=()=>{let s=t.current;if(!s)return;let l,c=u=>{let d=e.current;if(!d||u.defaultPrevented||u.metaKey||u.ctrlKey||u.altKey||u.isComposing||grt(u.composedPath()[0]??u.target)||!["j","k","n","p"].includes(u.key))return;let p=u.key==="j"||u.key==="n"?1:-1,m=d.getBoundingClientRect();if(u.key==="j"||u.key==="k"){let w=Gxe(d),v=w.map(yrt),k=w.findIndex(S=>S.dataset.path===r()),L=k!==-1&&v[k]<m.top+d.clientHeight&&(v[k+1]??1/0)>m.top?w[k+p]&&k+p:FU(v,m.top,p);u.preventDefault(),L!==void 0&&n(w[L].dataset.path??"");return}let f=Hxe(d),h=m.top+d.clientHeight*.3,x=l?.isConnected?l.getBoundingClientRect().top:void 0,g=x!==void 0&&x>=m.top&&x<=m.top+d.clientHeight?x:p===1?m.top-2:h,y=FU(f.map(brt),g,p);if(u.preventDefault(),y===void 0)return;let b=f[y];l?.removeAttribute(BU),b.setAttribute(BU,""),l=b,d.scrollTop=d.scrollTop+(b.getBoundingClientRect().top-h)};return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c),l?.removeAttribute(BU)}},i[0]=e,i[1]=t.current,i[2]=n,i[3]=r,i[4]=o):o=i[4];let a;i[5]!==e||i[6]!==t||i[7]!==n||i[8]!==r?(a=[t,e,n,r],i[5]=e,i[6]=t,i[7]=n,i[8]=r,i[9]=a):a=i[9],(0,Vxe.useEffect)(o,a)}function brt(t){return t.getBoundingClientRect().top}function yrt(t){return t.getBoundingClientRect().top}var Wxe=R(qe(),1),m5=R(Q(),1);function Kxe(t,e){let n=(0,Wxe.c)(12),[r,i]=(0,m5.useState)(0),[o,a]=(0,m5.useState)(e);o!==e&&(a(e),i(vrt));let s=`${e}\0${r}`,[l,c]=(0,m5.useState)(),[u,d]=(0,m5.useState)(),p,m;n[0]!==s||n[1]!==e||n[2]!==t?(p=()=>{if(e==="lastTurn")return;let w=!0,v=_=>{w&&c({key:s,load:_})};return e==="branch"&&t?.status&&t.status().then(_=>{w&&d({key:s,branch:Txe(_)})},wrt),(t?t.diff(e):Promise.reject(new Error("No session host"))).then(_=>{let L=$T(_,e);v(L?{state:"loaded",changeSet:L}:{state:"error"})},_=>v({state:"error",message:_ instanceof Error?_.message:void 0})),()=>{w=!1}},m=[t,e,s],n[0]=s,n[1]=e,n[2]=t,n[3]=p,n[4]=m):(p=n[3],m=n[4]),(0,m5.useEffect)(p,m);let f;n[5]===Symbol.for("react.memo_cache_sentinel")?(f=()=>i(xrt),n[5]=f):f=n[5];let h=f,x;n[6]!==s||n[7]!==l?(x=l?.key===s?l.load:{state:"loading"},n[6]=s,n[7]=l,n[8]=x):x=n[8];let g=x,y=u?.key===s?u.branch:void 0,b;return n[9]!==y||n[10]!==g?(b={load:g,retry:h,branch:y},n[9]=y,n[10]=g,n[11]=b):b=n[11],b}function xrt(t){return t+1}function wrt(){}function vrt(t){return t+1}var yr=R(ee(),1),Yxe="cmux.acpmux.diffLayout",Qxe="cmux.acpmux.diffWrap",Jxe="cmux.acpmux.diffTree";function qU(t){try{return window.localStorage?.getItem(t)??null}catch{return null}}function zU(t,e){try{window.localStorage?.setItem(t,e)}catch{}}function e8e(t){let e=(0,Xxe.c)(95),{files:n,initialPath:r,onClose:i,source:o,onOpenFile:a,checkpointAction:s,checkpointReview:l,review:c,reviewFiles:u,turn:d}=t,p=we();o1();let[m,f]=(0,lo.useState)("lastTurn"),{load:h,retry:x,branch:g}=Kxe(o,m),y;e[0]!==h.changeSet||e[1]!==h.state?(y=h.state==="loaded"?IT(h.changeSet):[],e[0]=h.changeSet,e[1]=h.state,e[2]=y):y=e[2];let w=m==="lastTurn"?n:y,v=m==="lastTurn"||h.state==="loaded"&&w.length>0?void 0:h.state==="loaded"?"empty":h.state,[k,_]=(0,lo.useState)(Ert),[L,S]=(0,lo.useState)(Mrt),[C,T]=(0,lo.useState)(Lrt),[M,A]=(0,lo.useState)(Srt),[$,N]=(0,lo.useState)(_rt),[F,D]=(0,lo.useState)(r??w[0]?.path),O=(0,lo.useRef)(null),B=(0,lo.useRef)(null),P=(0,lo.useRef)(void 0),U=m==="lastTurn"?c:void 0,G=m==="lastTurn"?d?.note:void 0,j;e[3]!==w?(j=w.reduce(Crt,{additions:0,deletions:0}),e[3]=w,e[4]=j):j=e[4];let V=j,H;e[5]===Symbol.for("react.memo_cache_sentinel")?(H=it=>{D(it),[...O.current?.querySelectorAll(".acpmux-diff-file")??[]].find(En=>En.dataset.path===it)?.scrollIntoView?.({block:"start"})},e[5]=H):H=e[5];let ne=H,J=(0,lo.useRef)(r),W=()=>{J.current=void 0},ie;e[6]===Symbol.for("react.memo_cache_sentinel")?(ie=it=>{J.current=it,A(ft=>{if(!ft.has(it))return ft;let En=new Set(ft);return En.delete(it),En}),ne(it)},e[6]=ie):ie=e[6];let Z=nu(ie),ce,se;e[7]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>{let it=O.current;if(!it)return;let ft=()=>{J.current=void 0};for(let En of["wheel","pointerdown","keydown"])it.addEventListener(En,ft,{passive:!0});return()=>{for(let En of["wheel","pointerdown","keydown"])it.removeEventListener(En,ft)}},se=[],e[7]=ce,e[8]=se):(ce=e[7],se=e[8]),(0,lo.useEffect)(ce,se);let be;e[9]===Symbol.for("react.memo_cache_sentinel")?(be=()=>{J.current&&ne(J.current)},e[9]=be):be=e[9];let le=nu(be),ge,ke;e[10]!==r?(ge=()=>{B.current?.focus(),r&&ne(r)},ke=[r],e[10]=r,e[11]=ge,e[12]=ke):(ge=e[11],ke=e[12]),(0,lo.useEffect)(ge,ke);let me=(0,lo.useRef)(null),Se;e[13]!==F?(Se=()=>F,e[13]=F,e[14]=Se):Se=e[14];let de=nu(Se);Zxe(me,O,Z,de);let Le,Ne;e[15]!==i?(Le=()=>{let it=ft=>{let En=document.activeElement;ft.key!=="Escape"||ft.defaultPrevented||En instanceof HTMLInputElement||(!En||En===document.body||me.current?.contains(En))&&(ft.preventDefault(),i())};return window.addEventListener("keydown",it),()=>window.removeEventListener("keydown",it)},Ne=[i],e[15]=i,e[16]=Le,e[17]=Ne):(Le=e[16],Ne=e[17]),(0,lo.useEffect)(Le,Ne);let[Be,_e]=(0,lo.useState)(),xe=(0,lo.useRef)(0),Ce;e[18]!==a||e[19]!==p?(Ce=(it,ft)=>{let En=xe.current=xe.current+1;_e(void 0),(a?a(it,ft):Promise.reject(new Error(p("changes.openFailed")))).catch(It=>{En===xe.current&&_e(It instanceof Error&&It.message?It.message:p("changes.openFailed"))})},e[18]=a,e[19]=p,e[20]=Ce):Ce=e[20];let K=nu(Ce),Y;e[21]===Symbol.for("react.memo_cache_sentinel")?(Y=it=>{J.current=void 0,A(ft=>{let En=new Set(ft);return En.has(it)?En.delete(it):En.add(it),En})},e[21]=Y):Y=e[21];let ye;e[22]!==$?(ye=it=>{J.current=void 0;let ft=!$.has(it),En=Pt=>{let It=new Set(Pt);return ft?It.add(it):It.delete(it),It};N(En),A(En)},e[22]=$,e[23]=ye):ye=e[23];let Re;e[24]!==K||e[25]!==ye?(Re={openFile:K,toggleCollapsed:Y,toggleViewed:ye},e[24]=K,e[25]=ye,e[26]=Re):Re=e[26];let Ke=Re,mt;e[27]!==M||e[28]!==w?(mt=w.length>0&&w.every(it=>M.has(it.path)),e[27]=M,e[28]=w,e[29]=mt):mt=e[29];let dt=mt,Ae=it=>{if(W(),it==="collapse")A(dt?new Set:new Set(w.map(krt)));else if(it==="wrap")S(!L),zU(Qxe,L?"off":"on");else if(it==="split"){let ft=k==="split"?"unified":"split";_(ft),zU(Yxe,ft)}else T(!C),zU(Jxe,C?"off":"on")},xt;e[30]!==dt||e[31]!==p?(xt=p(dt?"changes.expandAllFiles":"changes.collapseAllFiles"),e[30]=dt,e[31]=p,e[32]=xt):xt=e[32];let Et;e[33]===Symbol.for("react.memo_cache_sentinel")?(Et=(0,yr.jsx)(A6e,{}),e[33]=Et):Et=e[33];let jt=[{id:"collapse",label:xt,icon:Et,pressed:dt},{id:"wrap",label:p("changes.wrapLines"),icon:(0,yr.jsx)(R6e,{}),pressed:L},{id:"split",label:p("changes.splitView"),icon:(0,yr.jsx)($6e,{}),pressed:k==="split"},{id:"tree",label:p("changes.fileTree"),icon:(0,yr.jsx)(I6e,{}),pressed:C}],Bt;e[34]!==h.changeSet||e[35]!==h.state||e[36]!==m?(Bt=m!=="lastTurn"&&h.state==="loaded"?Lxe(h.changeSet):void 0,e[34]=h.changeSet,e[35]=h.state,e[36]=m,e[37]=Bt):Bt=e[37];let Ve=Bt,Jt=m!=="lastTurn"&&h.state==="loaded"?h.changeSet.untrackedSkipped??0:0,rn;e[38]!==x?(rn=()=>{me.current?.querySelector(".acpmux-diff-scope")?.focus(),x()},e[38]=x,e[39]=rn):rn=e[39];let Rn=rn,_t;e[40]!==Ve?(_t=()=>Ve&&ba(Ve),e[40]=Ve,e[41]=_t):_t=e[41];let An=[{label:p("changes.refresh"),disabled:m==="lastTurn",run:x},{label:p(L?"changes.disableWrap":"changes.wordWrap"),run:()=>Ae("wrap")},{label:p(k==="split"?"changes.toUnified":"changes.toSplit"),run:()=>Ae("split")},{label:p(dt?"changes.expandAllDiffs":"changes.collapseAllDiffs"),disabled:w.length===0,run:()=>Ae("collapse")},null,{label:p("changes.copyApply"),disabled:!Ve,run:_t}],Xt;e[42]!==p?(Xt=p("changes.panel"),e[42]=p,e[43]=Xt):Xt=e[43];let zn;e[44]!==p?(zn=p("changes.back"),e[44]=p,e[45]=zn):zn=e[45];let Ot;e[46]!==p?(Ot=p("changes.back"),e[46]=p,e[47]=Ot):Ot=e[47];let mn;e[48]===Symbol.for("react.memo_cache_sentinel")?(mn=(0,yr.jsx)(T6e,{}),e[48]=mn):mn=e[48];let yn;e[49]!==i||e[50]!==zn||e[51]!==Ot?(yn=(0,yr.jsx)("button",{ref:B,type:"button",className:"acpmux-diff-back","aria-label":zn,title:Ot,onClick:i,children:mn}),e[49]=i,e[50]=zn,e[51]=Ot,e[52]=yn):yn=e[52];let In;e[53]!==w.length||e[54]!==V?(In=w.length>0&&(0,yr.jsx)(Hm,{additions:V.additions,deletions:V.deletions}),e[53]=w.length,e[54]=V,e[55]=In):In=e[55];let er;e[56]!==p?(er=p("changes.viewTools"),e[56]=p,e[57]=er):er=e[57];let ae;e[58]!==Be?(ae=Be&&(0,yr.jsx)("div",{className:"acpmux-diff-notice",role:"alert",children:Be}),e[58]=Be,e[59]=ae):ae=e[59];let st;e[60]!==g||e[61]!==Rn||e[62]!==Jt||e[63]!==G?(st=(g||Jt>0||G)&&(0,yr.jsxs)("div",{className:"acpmux-diff-notes",children:[G&&(0,yr.jsx)("output",{className:"acpmux-turn-note",children:G}),g&&(0,yr.jsx)(Exe,{branch:g.branch,base:g.base}),Jt>0&&(0,yr.jsx)(zxe,{skipped:Jt,onRefresh:Rn})]}),e[60]=g,e[61]=Rn,e[62]=Jt,e[63]=G,e[64]=st):st=e[64];let Lt;e[65]!==M||e[66]!==w||e[67]!==U||e[68]!==k||e[69]!==Ke||e[70]!==le||e[71]!==Rn||e[72]!==v||e[73]!==p||e[74]!==$||e[75]!==L?(Lt=v?(0,yr.jsx)(_xe,{state:v,onRetry:Rn}):w.length===0?(0,yr.jsx)("div",{className:"acpmux-muted",children:p("changes.noTurnChanges")}):w.flatMap(it=>it.edits.map((ft,En)=>(0,yr.jsx)(kxe,{file:it,edit:ft,index:En,layout:k,wrap:L,view:{collapsed:M.has(it.path),viewed:$.has(it.path)},on:Ke,onPainted:le,review:it.outside?void 0:U,focusAfter:P},`${it.path}\0${ft.toolId}\0${En}`))),e[65]=M,e[66]=w,e[67]=U,e[68]=k,e[69]=Ke,e[70]=le,e[71]=Rn,e[72]=v,e[73]=p,e[74]=$,e[75]=L,e[76]=Lt):Lt=e[76];let Ye;e[77]!==Lt?(Ye=(0,yr.jsx)("div",{ref:O,className:"acpmux-diff-body",children:Lt}),e[77]=Lt,e[78]=Ye):Ye=e[78];let wt;e[79]!==w||e[80]!==Z||e[81]!==F||e[82]!==C||e[83]!==p?(wt=C&&(0,yr.jsx)("nav",{className:"acpmux-diff-tree","aria-label":p("changes.changedFiles"),children:(0,yr.jsx)(axe,{files:w,selected:F,onSelect:Z})}),e[79]=w,e[80]=Z,e[81]=F,e[82]=C,e[83]=p,e[84]=wt):wt=e[84];let jn;e[85]!==Ye||e[86]!==wt?(jn=(0,yr.jsxs)("div",{className:"acpmux-diff-main",children:[Ye,wt]}),e[85]=Ye,e[86]=wt,e[87]=jn):jn=e[87];let Kn;e[88]!==w||e[89]!==U||e[90]!==u?(Kn=U&&(0,yr.jsx)(Oxe,{files:u??w,review:U,onSent:()=>B.current?.focus()}),e[88]=w,e[89]=U,e[90]=u,e[91]=Kn):Kn=e[91];let un;return e[92]!==w.length||e[93]!==v?(un=w.length>0&&!v&&(0,yr.jsx)(uxe,{}),e[92]=w.length,e[93]=v,e[94]=un):un=e[94],(0,yr.jsxs)("section",{ref:me,className:"acpmux-diff-panel","aria-label":Xt,children:[(0,yr.jsxs)("header",{className:"acpmux-diff-header",children:[yn,(0,yr.jsx)(Fxe,{scope:m,onScope:it=>{it!==m&&(W(),f(it),A(new Set),N(new Set),D(void 0),xe.current=xe.current+1,_e(void 0))},children:In}),(0,yr.jsxs)("div",{className:"acpmux-diff-tools",role:"toolbar","aria-label":er,children:[s,(0,yr.jsx)(Nxe,{rows:An}),jt.map(it=>(0,yr.jsx)("button",{type:"button",className:"acpmux-diff-tool","data-tool":it.id,"aria-label":it.label,title:it.label,"aria-pressed":it.pressed,onClick:()=>Ae(it.id),children:it.icon},it.id))]})]}),ae,st,l,jn,Kn,un]})}function krt(t){return t.path}function Crt(t,e){return{additions:t.additions+e.additions,deletions:t.deletions+e.deletions}}function _rt(){return new Set}function Srt(){return new Set}function Lrt(){return qU(Jxe)!=="off"}function Mrt(){return qU(Qxe)==="on"}function Ert(){return qU(Yxe)==="split"?"split":"unified"}var Wm=R(Q(),1);var m8e=R(qe(),1),f8e=R(Q(),1);var t8e={id:"cmux",version:1,grid:24,icons:{account:{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15 10C15 11.657 13.657 13 12 13C10.343 13 9 11.657 9 10C9 8.343 10.343 7 12 7C13.657 7 15 8.343 15 10Z",op:"stroke",w:1.5},{d:"M6.25 18.4C7.478 16.402 9.655 15.186 12 15.186C14.345 15.186 16.522 16.402 17.75 18.4",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15 10C15 11.657 13.657 13 12 13C10.343 13 9 11.657 9 10C9 8.343 10.343 7 12 7C13.657 7 15 8.343 15 10Z",op:"clearStroke",w:1.75},{d:"M6.25 18.4C7.478 16.402 9.655 15.186 12 15.186C14.345 15.186 16.522 16.402 17.75 18.4",op:"clearStroke",w:1.75}]},"account.passkey":{line:[{d:"M13.5 7.5C13.5 9.433 11.933 11 10 11C8.067 11 6.5 9.433 6.5 7.5C6.5 5.567 8.067 4 10 4C11.933 4 13.5 5.567 13.5 7.5Z",op:"stroke",w:1.5},{d:"M3.5 20L3.5 19.25C3.5 16.627 5.627 14.5 8.25 14.5L11.75 14.5C14.373 14.5 16.5 16.627 16.5 19.25L16.5 20",op:"stroke",w:1.5},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearFill"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearStroke",w:4.5},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearFill"},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearStroke",w:4.5},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"stroke",w:1.5},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"stroke",w:1.5}],solid:[{d:"M13.5 7.5C13.5 9.433 11.933 11 10 11C8.067 11 6.5 9.433 6.5 7.5C6.5 5.567 8.067 4 10 4C11.933 4 13.5 5.567 13.5 7.5Z",op:"fill"},{d:"M13.5 7.5C13.5 9.433 11.933 11 10 11C8.067 11 6.5 9.433 6.5 7.5C6.5 5.567 8.067 4 10 4C11.933 4 13.5 5.567 13.5 7.5Z",op:"stroke",w:1.5},{d:"M3.5 20L3.5 19.25C3.5 16.627 5.627 14.5 8.25 14.5L11.75 14.5C14.373 14.5 16.5 16.627 16.5 19.25L16.5 20Z",op:"fill"},{d:"M3.5 20L3.5 19.25C3.5 16.627 5.627 14.5 8.25 14.5L11.75 14.5C14.373 14.5 16.5 16.627 16.5 19.25L16.5 20Z",op:"stroke",w:1.5},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearFill"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearFill"},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"fill"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"stroke",w:2},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"stroke",w:2}]},"account.routed":{line:[{d:"M13 7.5C13 9.433 11.433 11 9.5 11C7.567 11 6 9.433 6 7.5C6 5.567 7.567 4 9.5 4C11.433 4 13 5.567 13 7.5Z",op:"stroke",w:1.5},{d:"M3 20L3 19.25C3 16.627 5.127 14.5 7.75 14.5L11.25 14.5C13.873 14.5 16 16.627 16 19.25L16 20",op:"stroke",w:1.5},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearFill"},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearStroke",w:4.5},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"stroke",w:1.5}],solid:[{d:"M13 7.5C13 9.433 11.433 11 9.5 11C7.567 11 6 9.433 6 7.5C6 5.567 7.567 4 9.5 4C11.433 4 13 5.567 13 7.5Z",op:"fill"},{d:"M13 7.5C13 9.433 11.433 11 9.5 11C7.567 11 6 9.433 6 7.5C6 5.567 7.567 4 9.5 4C11.433 4 13 5.567 13 7.5Z",op:"stroke",w:1.5},{d:"M3 20L3 19.25C3 16.627 5.127 14.5 7.75 14.5L11.25 14.5C13.873 14.5 16 16.627 16 19.25L16 20Z",op:"fill"},{d:"M3 20L3 19.25C3 16.627 5.127 14.5 7.75 14.5L11.25 14.5C13.873 14.5 16 16.627 16 19.25L16 20Z",op:"stroke",w:1.5},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearFill"},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"stroke",w:2}]},"account.signin":{line:[{d:"M14 4L17.5 4C18.881 4 20 5.119 20 6.5L20 17.5C20 18.881 18.881 20 17.5 20L14 20",op:"stroke",w:1.5},{d:"M4 12L15 12M11.5 8.5L15 12L11.5 15.5",op:"stroke",w:1.5}],solid:[{d:"M14 4L17.5 4C18.881 4 20 5.119 20 6.5L20 17.5C20 18.881 18.881 20 17.5 20L14 20",op:"stroke",w:2},{d:"M4 12L15 12M11.5 8.5L15 12L11.5 15.5",op:"stroke",w:2}]},"action.add":{line:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:1.5}],solid:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:2}]},"action.close":{line:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:2}]},"action.confirm":{line:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:1.5}],solid:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:2}]},"action.copy":{line:[{d:"M15.5 8.5L15.5 5.5C15.5 4.395 14.605 3.5 13.5 3.5L5.5 3.5C4.395 3.5 3.5 4.395 3.5 5.5L3.5 13.5C3.5 14.605 4.395 15.5 5.5 15.5L8.5 15.5",op:"stroke",w:1.5},{d:"M10.5 8.5L18.5 8.5C19.605 8.5 20.5 9.395 20.5 10.5L20.5 18.5C20.5 19.605 19.605 20.5 18.5 20.5L10.5 20.5C9.395 20.5 8.5 19.605 8.5 18.5L8.5 10.5C8.5 9.395 9.395 8.5 10.5 8.5Z",op:"stroke",w:1.5}],solid:[{d:"M15.5 8.5L15.5 5.5C15.5 4.395 14.605 3.5 13.5 3.5L5.5 3.5C4.395 3.5 3.5 4.395 3.5 5.5L3.5 13.5C3.5 14.605 4.395 15.5 5.5 15.5L8.5 15.5",op:"stroke",w:1.5},{d:"M10.5 8.5L18.5 8.5C19.605 8.5 20.5 9.395 20.5 10.5L20.5 18.5C20.5 19.605 19.605 20.5 18.5 20.5L10.5 20.5C9.395 20.5 8.5 19.605 8.5 18.5L8.5 10.5C8.5 9.395 9.395 8.5 10.5 8.5Z",op:"fill"},{d:"M10.5 8.5L18.5 8.5C19.605 8.5 20.5 9.395 20.5 10.5L20.5 18.5C20.5 19.605 19.605 20.5 18.5 20.5L10.5 20.5C9.395 20.5 8.5 19.605 8.5 18.5L8.5 10.5C8.5 9.395 9.395 8.5 10.5 8.5Z",op:"stroke",w:1.5}]},"action.delete":{line:[{d:"M4 7L20 7M9.5 7L9.5 5C9.5 4.172 10.172 3.5 11 3.5L13 3.5C13.828 3.5 14.5 4.172 14.5 5L14.5 7",op:"stroke",w:1.5},{d:"M6 7L6.85 19.1C6.903 19.889 7.559 20.502 8.35 20.5L15.65 20.5C16.441 20.502 17.097 19.889 17.15 19.1L18 7",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5M14 10.5L14 16.5",op:"stroke",w:1.5}],solid:[{d:"M6 7L6.85 19.1C6.903 19.889 7.559 20.502 8.35 20.5L15.65 20.5C16.441 20.502 17.097 19.889 17.15 19.1L18 7Z",op:"fill"},{d:"M6 7L6.85 19.1C6.903 19.889 7.559 20.502 8.35 20.5L15.65 20.5C16.441 20.502 17.097 19.889 17.15 19.1L18 7Z",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5M14 10.5L14 16.5",op:"clearStroke",w:1.75},{d:"M4 7L20 7M9.5 7L9.5 5C9.5 4.172 10.172 3.5 11 3.5L13 3.5C13.828 3.5 14.5 4.172 14.5 5L14.5 7",op:"stroke",w:1.5}]},"action.download":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 16M8.5 12.75L12 16.25L15.5 12.75",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 16M8.5 12.75L12 16.25L15.5 12.75",op:"clearStroke",w:1.75}]},"action.edit":{line:[{d:"M4.5 19.5L5.4 15.35L15.5 5.25C15.876 4.868 16.389 4.653 16.925 4.653C17.461 4.653 17.974 4.868 18.35 5.25L18.75 5.65C19.132 6.026 19.347 6.539 19.347 7.075C19.347 7.611 19.132 8.124 18.75 8.5L8.65 18.6Z",op:"stroke",w:1.5},{d:"M13.5 19.5L19.5 19.5",op:"stroke",w:1.5}],solid:[{d:"M4.5 19.5L5.4 15.35L15.5 5.25C15.876 4.868 16.389 4.653 16.925 4.653C17.461 4.653 17.974 4.868 18.35 5.25L18.75 5.65C19.132 6.026 19.347 6.539 19.347 7.075C19.347 7.611 19.132 8.124 18.75 8.5L8.65 18.6Z",op:"fill"},{d:"M4.5 19.5L5.4 15.35L15.5 5.25C15.876 4.868 16.389 4.653 16.925 4.653C17.461 4.653 17.974 4.868 18.35 5.25L18.75 5.65C19.132 6.026 19.347 6.539 19.347 7.075C19.347 7.611 19.132 8.124 18.75 8.5L8.65 18.6Z",op:"stroke",w:1.5},{d:"M13.5 19.5L19.5 19.5",op:"stroke",w:1.5}]},"action.go":{line:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:1.5}],solid:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:2}]},"action.hide":{line:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"fill"},{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M15.4 12C15.4 13.878 13.878 15.4 12 15.4C10.122 15.4 8.6 13.878 8.6 12C8.6 10.122 10.122 8.6 12 8.6C13.878 8.6 15.4 10.122 15.4 12Z",op:"clearStroke",w:1.75},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"action.more":{line:[{d:"M7.1 12C7.1 12.884 6.384 13.6 5.5 13.6C4.616 13.6 3.9 12.884 3.9 12C3.9 11.116 4.616 10.4 5.5 10.4C6.384 10.4 7.1 11.116 7.1 12Z",op:"fill"},{d:"M13.6 12C13.6 12.884 12.884 13.6 12 13.6C11.116 13.6 10.4 12.884 10.4 12C10.4 11.116 11.116 10.4 12 10.4C12.884 10.4 13.6 11.116 13.6 12Z",op:"fill"},{d:"M20.1 12C20.1 12.884 19.384 13.6 18.5 13.6C17.616 13.6 16.9 12.884 16.9 12C16.9 11.116 17.616 10.4 18.5 10.4C19.384 10.4 20.1 11.116 20.1 12Z",op:"fill"}],solid:[{d:"M7.5 12C7.5 13.105 6.605 14 5.5 14C4.395 14 3.5 13.105 3.5 12C3.5 10.895 4.395 10 5.5 10C6.605 10 7.5 10.895 7.5 12Z",op:"fill"},{d:"M14 12C14 13.105 13.105 14 12 14C10.895 14 10 13.105 10 12C10 10.895 10.895 10 12 10C13.105 10 14 10.895 14 12Z",op:"fill"},{d:"M20.5 12C20.5 13.105 19.605 14 18.5 14C17.395 14 16.5 13.105 16.5 12C16.5 10.895 17.395 10 18.5 10C19.605 10 20.5 10.895 20.5 12Z",op:"fill"}]},"action.pause":{line:[{d:"M7.326 5.25L8.885 5.25C9.458 5.25 9.923 5.715 9.923 6.288L9.923 17.712C9.923 18.285 9.458 18.75 8.885 18.75L7.326 18.75C6.753 18.75 6.288 18.285 6.288 17.712L6.288 6.288C6.288 5.715 6.753 5.25 7.326 5.25Z",op:"stroke",w:1.5},{d:"M15.115 5.25L16.674 5.25C17.247 5.25 17.712 5.715 17.712 6.288L17.712 17.712C17.712 18.285 17.247 18.75 16.674 18.75L15.115 18.75C14.542 18.75 14.077 18.285 14.077 17.712L14.077 6.288C14.077 5.715 14.542 5.25 15.115 5.25Z",op:"stroke",w:1.5}],solid:[{d:"M7.326 5.25L8.885 5.25C9.458 5.25 9.923 5.715 9.923 6.288L9.923 17.712C9.923 18.285 9.458 18.75 8.885 18.75L7.326 18.75C6.753 18.75 6.288 18.285 6.288 17.712L6.288 6.288C6.288 5.715 6.753 5.25 7.326 5.25Z",op:"fill"},{d:"M7.326 5.25L8.885 5.25C9.458 5.25 9.923 5.715 9.923 6.288L9.923 17.712C9.923 18.285 9.458 18.75 8.885 18.75L7.326 18.75C6.753 18.75 6.288 18.285 6.288 17.712L6.288 6.288C6.288 5.715 6.753 5.25 7.326 5.25Z",op:"stroke",w:1.5,cap:"butt"},{d:"M15.115 5.25L16.674 5.25C17.247 5.25 17.712 5.715 17.712 6.288L17.712 17.712C17.712 18.285 17.247 18.75 16.674 18.75L15.115 18.75C14.542 18.75 14.077 18.285 14.077 17.712L14.077 6.288C14.077 5.715 14.542 5.25 15.115 5.25Z",op:"fill"},{d:"M15.115 5.25L16.674 5.25C17.247 5.25 17.712 5.715 17.712 6.288L17.712 17.712C17.712 18.285 17.247 18.75 16.674 18.75L15.115 18.75C14.542 18.75 14.077 18.285 14.077 17.712L14.077 6.288C14.077 5.715 14.542 5.25 15.115 5.25Z",op:"stroke",w:1.5,cap:"butt"}]},"action.pin":{line:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}],solid:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"fill"},{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}]},"action.reload":{line:[{d:"M18.5 9.25C20.197 12.189 19.709 15.902 17.309 18.302C14.909 20.703 11.197 21.192 8.257 19.496C5.317 17.8 3.883 14.341 4.759 11.062C5.636 7.783 8.606 5.502 12 5.5",op:"stroke",w:1.5},{d:"M9.7 3.2L12 5.5L9.7 7.8",op:"stroke",w:1.5}],solid:[{d:"M18.5 9.25C20.197 12.189 19.709 15.902 17.309 18.302C14.909 20.703 11.197 21.192 8.257 19.496C5.317 17.8 3.883 14.341 4.759 11.062C5.636 7.783 8.606 5.502 12 5.5",op:"stroke",w:2},{d:"M9.7 3.2L12 5.5L9.7 7.8",op:"stroke",w:2}]},"action.remove":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8 12L16 12",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8 12L16 12",op:"clearStroke",w:1.75}]},"action.reset":{line:[{d:"M5.5 9.25C3.803 12.189 4.291 15.902 6.691 18.302C9.091 20.703 12.803 21.192 15.743 19.496C18.683 17.8 20.117 14.341 19.241 11.062C18.364 7.783 15.394 5.502 12 5.5",op:"stroke",w:1.5},{d:"M14.3 7.8L12 5.5L14.3 3.2",op:"stroke",w:1.5}],solid:[{d:"M5.5 9.25C3.803 12.189 4.291 15.902 6.691 18.302C9.091 20.703 12.803 21.192 15.743 19.496C18.683 17.8 20.117 14.341 19.241 11.062C18.364 7.783 15.394 5.502 12 5.5",op:"stroke",w:2},{d:"M14.3 7.8L12 5.5L14.3 3.2",op:"stroke",w:2}]},"action.restart":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15.68 10.12C16.644 11.785 16.37 13.89 15.011 15.252C13.652 16.614 11.548 16.893 9.881 15.933C8.214 14.972 7.4 13.012 7.896 11.153C8.393 9.294 10.076 8.001 12 8",op:"stroke",w:1.5},{d:"M10.23 6.23L12 8L10.23 9.77",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15.68 10.12C16.644 11.785 16.37 13.89 15.011 15.252C13.652 16.614 11.548 16.893 9.881 15.933C8.214 14.972 7.4 13.012 7.896 11.153C8.393 9.294 10.076 8.001 12 8",op:"clearStroke",w:1.6},{d:"M10.23 6.23L12 8L10.23 9.77",op:"clearStroke",w:1.6}]},"action.resume":{line:[{d:"M6.75 5.75L6.75 18.25C6.756 18.604 6.948 18.929 7.257 19.104C7.565 19.279 7.943 19.277 8.25 19.1L18.25 12.85C18.544 12.668 18.723 12.346 18.723 12C18.723 11.654 18.544 11.332 18.25 11.15L8.25 4.9C7.943 4.723 7.565 4.721 7.257 4.896C6.948 5.071 6.756 5.396 6.75 5.75Z",op:"stroke",w:1.5}],solid:[{d:"M6.75 5.75L6.75 18.25C6.756 18.604 6.948 18.929 7.257 19.104C7.565 19.279 7.943 19.277 8.25 19.1L18.25 12.85C18.544 12.668 18.723 12.346 18.723 12C18.723 11.654 18.544 11.332 18.25 11.15L8.25 4.9C7.943 4.723 7.565 4.721 7.257 4.896C6.948 5.071 6.756 5.396 6.75 5.75Z",op:"fill"},{d:"M6.75 5.75L6.75 18.25C6.756 18.604 6.948 18.929 7.257 19.104C7.565 19.279 7.943 19.277 8.25 19.1L18.25 12.85C18.544 12.668 18.723 12.346 18.723 12C18.723 11.654 18.544 11.332 18.25 11.15L8.25 4.9C7.943 4.723 7.565 4.721 7.257 4.896C6.948 5.071 6.756 5.396 6.75 5.75Z",op:"stroke",w:1.5}]},"action.review":{line:[{d:"M11 21L6.5 21C5.119 21 4 19.881 4 18.5L4 5.5C4 4.119 5.119 3 6.5 3L14.5 3C15.881 3 17 4.119 17 5.5L17 9",op:"stroke",w:1.5},{d:"M7.5 7.5L13.5 7.5M7.5 11L10.5 11",op:"stroke",w:1.5},{d:"M18.75 15.5C18.75 17.295 17.295 18.75 15.5 18.75C13.705 18.75 12.25 17.295 12.25 15.5C12.25 13.705 13.705 12.25 15.5 12.25C17.295 12.25 18.75 13.705 18.75 15.5Z",op:"stroke",w:1.5},{d:"M17.9 17.9L20.5 20.5",op:"stroke",w:1.5}],solid:[{d:"M6.5 3L14.5 3C15.881 3 17 4.119 17 5.5L17 21L6.5 21C5.119 21 4 19.881 4 18.5L4 5.5C4 4.119 5.119 3 6.5 3Z",op:"fill"},{d:"M6.5 3L14.5 3C15.881 3 17 4.119 17 5.5L17 21L6.5 21C5.119 21 4 19.881 4 18.5L4 5.5C4 4.119 5.119 3 6.5 3Z",op:"stroke",w:1.5},{d:"M7.5 7.5L13.5 7.5M7.5 11L10.5 11",op:"clearStroke",w:1.75},{d:"M21 15.5C21 18.538 18.538 21 15.5 21C12.462 21 10 18.538 10 15.5C10 12.462 12.462 10 15.5 10C18.538 10 21 12.462 21 15.5Z",op:"clearFill"},{d:"M18.75 15.5C18.75 17.295 17.295 18.75 15.5 18.75C13.705 18.75 12.25 17.295 12.25 15.5C12.25 13.705 13.705 12.25 15.5 12.25C17.295 12.25 18.75 13.705 18.75 15.5Z",op:"stroke",w:2,join:"miter"},{d:"M17.9 17.9L20.5 20.5",op:"stroke",w:2,join:"miter"}]},"action.show":{line:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"stroke",w:1.5}],solid:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"fill"},{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M15.4 12C15.4 13.878 13.878 15.4 12 15.4C10.122 15.4 8.6 13.878 8.6 12C8.6 10.122 10.122 8.6 12 8.6C13.878 8.6 15.4 10.122 15.4 12Z",op:"clearStroke",w:1.75}],cat:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M13.5 12C13.5 14.071 12.828 15.75 12 15.75C11.172 15.75 10.5 14.071 10.5 12C10.5 9.929 11.172 8.25 12 8.25C12.828 8.25 13.5 9.929 13.5 12Z",op:"stroke",w:1.5,accent:!0}]},"action.snooze":{line:[{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"stroke",w:1.5},{d:"M15.5 3.5L19 3.5L15.5 8L19 8",op:"stroke",w:1.5}],solid:[{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"fill"},{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"stroke",w:1.5},{d:"M15.5 3.5L19 3.5L15.5 8L19 8",op:"stroke",w:1.5}],cat:[{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"stroke",w:1.5},{d:"M15.5 3.5L19 3.5L15.5 8L19 8",op:"stroke",w:1.5,accent:!0}]},"action.stop":{line:[{d:"M7.846 5.25L16.154 5.25C17.588 5.25 18.75 6.412 18.75 7.846L18.75 16.154C18.75 17.588 17.588 18.75 16.154 18.75L7.846 18.75C6.412 18.75 5.25 17.588 5.25 16.154L5.25 7.846C5.25 6.412 6.412 5.25 7.846 5.25Z",op:"stroke",w:1.5}],solid:[{d:"M7.846 5.25L16.154 5.25C17.588 5.25 18.75 6.412 18.75 7.846L18.75 16.154C18.75 17.588 17.588 18.75 16.154 18.75L7.846 18.75C6.412 18.75 5.25 17.588 5.25 16.154L5.25 7.846C5.25 6.412 6.412 5.25 7.846 5.25Z",op:"fill"},{d:"M7.846 5.25L16.154 5.25C17.588 5.25 18.75 6.412 18.75 7.846L18.75 16.154C18.75 17.588 17.588 18.75 16.154 18.75L7.846 18.75C6.412 18.75 5.25 17.588 5.25 16.154L5.25 7.846C5.25 6.412 6.412 5.25 7.846 5.25Z",op:"stroke",w:1.5,cap:"butt"}]},"action.sync":{line:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:1.5},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:1.5},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:1.5},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:1.5}],solid:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:2},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:2},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:2},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:2}]},"action.undo":{line:[{d:"M9 13.75L4.5 9.25L9 4.75M4.5 9.25L14.5 9.25C17.261 9.25 19.5 11.489 19.5 14.25C19.5 17.011 17.261 19.25 14.5 19.25L12 19.25",op:"stroke",w:1.5}],solid:[{d:"M9 13.75L4.5 9.25L9 4.75M4.5 9.25L14.5 9.25C17.261 9.25 19.5 11.489 19.5 14.25C19.5 17.011 17.261 19.25 14.5 19.25L12 19.25",op:"stroke",w:2}]},"action.watching":{line:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"fill"},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"stroke",w:1.5}],solid:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"fill"},{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M15.4 12C15.4 13.878 13.878 15.4 12 15.4C10.122 15.4 8.6 13.878 8.6 12C8.6 10.122 10.122 8.6 12 8.6C13.878 8.6 15.4 10.122 15.4 12Z",op:"clearStroke",w:1.75}],cat:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M13.5 12C13.5 14.071 12.828 15.75 12 15.75C11.172 15.75 10.5 14.071 10.5 12C10.5 9.929 11.172 8.25 12 8.25C12.828 8.25 13.5 9.929 13.5 12Z",op:"fill",accent:!0},{d:"M13.5 12C13.5 14.071 12.828 15.75 12 15.75C11.172 15.75 10.5 14.071 10.5 12C10.5 9.929 11.172 8.25 12 8.25C12.828 8.25 13.5 9.929 13.5 12Z",op:"stroke",w:1.5,accent:!0}]},"agent.activity":{line:[{d:"M3.5 4L14.5 4M3.5 8.5L10.5 8.5M3.5 13L7.5 13",op:"stroke",w:1.5},{d:"M11 10.5L20.5 14.25L16.5 15.75L15 19.75Z",op:"stroke",w:1.5}],solid:[{d:"M3.5 4L14.5 4M3.5 8.5L10.5 8.5M3.5 13L7.5 13",op:"stroke",w:2},{d:"M11 10.5L20.5 14.25L16.5 15.75L15 19.75Z",op:"fill"},{d:"M11 10.5L20.5 14.25L16.5 15.75L15 19.75Z",op:"stroke",w:1.5}]},"agent.chat":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"clearStroke",w:1.75}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"agent.chat.empty":{line:[{d:"M5 6.5L19 6.5C20.381 6.5 21.5 7.619 21.5 9L21.5 15C21.5 16.381 20.381 17.5 19 17.5L5 17.5C3.619 17.5 2.5 16.381 2.5 15L2.5 9C2.5 7.619 3.619 6.5 5 6.5Z",op:"stroke",w:1.5},{d:"M6.5 12L12 12M17 14.5L17 9.5M15 11.5L17 9.5L19 11.5",op:"stroke",w:1.5}],solid:[{d:"M5 5.75L19 5.75C20.795 5.75 22.25 7.205 22.25 9L22.25 15C22.25 16.795 20.795 18.25 19 18.25L5 18.25C3.205 18.25 1.75 16.795 1.75 15L1.75 9C1.75 7.205 3.205 5.75 5 5.75Z",op:"fill"},{d:"M6.5 12L12 12M17 14.5L17 9.5M15 11.5L17 9.5L19 11.5",op:"clearStroke",w:1.75}],cat:[{d:"M5 6.5L19 6.5C20.381 6.5 21.5 7.619 21.5 9L21.5 15C21.5 16.381 20.381 17.5 19 17.5L5 17.5C3.619 17.5 2.5 16.381 2.5 15L2.5 9C2.5 7.619 3.619 6.5 5 6.5Z",op:"stroke",w:1.5},{d:"M6.5 12L12 12M17 14.5L17 9.5M15 11.5L17 9.5L19 11.5",op:"stroke",w:1.5},{d:"M5 6.5L5 3.5L8 6.5M19 6.5L19 3.5L16 6.5",op:"stroke",w:1.5,accent:!0}]},"agent.chat.list":{line:[{d:"M8.5 6L8.5 5.5C8.5 4.119 9.619 3 11 3L18.5 3C19.881 3 21 4.119 21 5.5L21 10.5C21 11.881 19.881 13 18.5 13L18 13",op:"stroke",w:1.5},{d:"M6.5 19.5L5.5 19.5C4.119 19.5 3 18.381 3 17L3 10.5C3 9.119 4.119 8 5.5 8L13.5 8C14.881 8 16 9.119 16 10.5L16 17C16 18.381 14.881 19.5 13.5 19.5L9.5 19.5L6.5 22Z",op:"stroke",w:1.5}],solid:[{d:"M8.5 6L8.5 5.5C8.5 4.119 9.619 3 11 3L18.5 3C19.881 3 21 4.119 21 5.5L21 10.5C21 11.881 19.881 13 18.5 13L18 13",op:"stroke",w:1.5},{d:"M6.5 19.5L5.5 19.5C4.119 19.5 3 18.381 3 17L3 10.5C3 9.119 4.119 8 5.5 8L13.5 8C14.881 8 16 9.119 16 10.5L16 17C16 18.381 14.881 19.5 13.5 19.5L9.5 19.5L6.5 22Z",op:"fill"},{d:"M6.5 19.5L5.5 19.5C4.119 19.5 3 18.381 3 17L3 10.5C3 9.119 4.119 8 5.5 8L13.5 8C14.881 8 16 9.119 16 10.5L16 17C16 18.381 14.881 19.5 13.5 19.5L9.5 19.5L6.5 22Z",op:"stroke",w:1.5}]},"agent.chat.new":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearFill"},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearStroke",w:1.5},{d:"M18 13.5L18 18.5M15.5 16L20.5 16",op:"stroke",w:1.5}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"clearStroke",w:1.75},{d:"M23 16C23 18.761 20.761 21 18 21C15.239 21 13 18.761 13 16C13 13.239 15.239 11 18 11C20.761 11 23 13.239 23 16Z",op:"clearFill"},{d:"M18 13.5L18 18.5M15.5 16L20.5 16",op:"stroke",w:2,join:"miter"}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearFill"},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearStroke",w:1.5},{d:"M18 13.5L18 18.5M15.5 16L20.5 16",op:"stroke",w:1.5},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"agent.fork":{line:[{d:"M12 21L12 16C12 13 6.5 12.5 6.5 9L6.5 4M12 16C12 13 17.5 12.5 17.5 9L17.5 4",op:"stroke",w:1.5},{d:"M3.5 7L6.5 4L9.5 7M14.5 7L17.5 4L20.5 7",op:"stroke",w:1.5}],solid:[{d:"M12 21L12 16C12 13 6.5 12.5 6.5 9L6.5 4M12 16C12 13 17.5 12.5 17.5 9L17.5 4",op:"stroke",w:2},{d:"M3.5 7L6.5 4L9.5 7M14.5 7L17.5 4L20.5 7",op:"stroke",w:2}]},"agent.handoff":{line:[{d:"M5 14L8.5 14C9.605 14 10.5 14.895 10.5 16L10.5 18.5C10.5 19.605 9.605 20.5 8.5 20.5L5 20.5C3.895 20.5 3 19.605 3 18.5L3 16C3 14.895 3.895 14 5 14Z",op:"stroke",w:1.5},{d:"M15.5 14L19 14C20.105 14 21 14.895 21 16L21 18.5C21 19.605 20.105 20.5 19 20.5L15.5 20.5C14.395 20.5 13.5 19.605 13.5 18.5L13.5 16C13.5 14.895 14.395 14 15.5 14Z",op:"stroke",w:1.5},{d:"M6.75 14C6.75 8 9.25 4.5 12.25 4.5C15.25 4.5 17.25 7 17.25 11.5M14.75 9L17.25 11.5L19.75 9",op:"stroke",w:1.5}],solid:[{d:"M5 13.25L8.5 13.25C10.019 13.25 11.25 14.481 11.25 16L11.25 18.5C11.25 20.019 10.019 21.25 8.5 21.25L5 21.25C3.481 21.25 2.25 20.019 2.25 18.5L2.25 16C2.25 14.481 3.481 13.25 5 13.25Z",op:"fill"},{d:"M15.5 14L19 14C20.105 14 21 14.895 21 16L21 18.5C21 19.605 20.105 20.5 19 20.5L15.5 20.5C14.395 20.5 13.5 19.605 13.5 18.5L13.5 16C13.5 14.895 14.395 14 15.5 14Z",op:"stroke",w:1.5},{d:"M6.75 14C6.75 8 9.25 4.5 12.25 4.5C15.25 4.5 17.25 7 17.25 11.5M14.75 9L17.25 11.5L19.75 9",op:"stroke",w:2}]},"agent.question":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M10 8.25C9.998 7.244 10.744 6.393 11.742 6.263C12.74 6.133 13.679 6.764 13.934 7.738C14.19 8.711 13.683 9.723 12.75 10.1C12.3 10.3 12 10.7 12 11.2L12 11.5",op:"stroke",w:1.5},{d:"M12.95 13.75C12.95 14.275 12.525 14.7 12 14.7C11.475 14.7 11.05 14.275 11.05 13.75C11.05 13.225 11.475 12.8 12 12.8C12.525 12.8 12.95 13.225 12.95 13.75Z",op:"fill"}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M10 8.25C9.998 7.244 10.744 6.393 11.742 6.263C12.74 6.133 13.679 6.764 13.934 7.738C14.19 8.711 13.683 9.723 12.75 10.1C12.3 10.3 12 10.7 12 11.2L12 11.5",op:"clearStroke",w:1.75},{d:"M13.05 13.75C13.05 14.33 12.58 14.8 12 14.8C11.42 14.8 10.95 14.33 10.95 13.75C10.95 13.17 11.42 12.7 12 12.7C12.58 12.7 13.05 13.17 13.05 13.75Z",op:"clearFill"}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M10 8.25C9.998 7.244 10.744 6.393 11.742 6.263C12.74 6.133 13.679 6.764 13.934 7.738C14.19 8.711 13.683 9.723 12.75 10.1C12.3 10.3 12 10.7 12 11.2L12 11.5",op:"stroke",w:1.5},{d:"M12.95 13.75C12.95 14.275 12.525 14.7 12 14.7C11.475 14.7 11.05 14.275 11.05 13.75C11.05 13.225 11.475 12.8 12 12.8C12.525 12.8 12.95 13.225 12.95 13.75Z",op:"fill"},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"agent.session":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M7.5 8.5L16.5 8.5M7.5 12L12.5 12",op:"stroke",w:1.5}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M7.5 8.5L16.5 8.5M7.5 12L12.5 12",op:"clearStroke",w:1.75}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M7.5 8.5L16.5 8.5M7.5 12L12.5 12",op:"stroke",w:1.5},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"app.cmux":{line:[{d:"M5.25 6.808L10.442 12L5.25 17.192M12.519 17.192L18.75 17.192",op:"stroke",w:1.5}],solid:[{d:"M5.25 6.808L10.442 12L5.25 17.192M12.519 17.192L18.75 17.192",op:"stroke",w:2}]},"app.dev":{line:[{d:"M9.5 3.5L14.5 3.5M10.25 3.5L10.25 8.75L4.9 17.6C4.594 18.206 4.616 18.927 4.96 19.513C5.303 20.099 5.921 20.471 6.6 20.5L17.4 20.5C18.079 20.471 18.697 20.099 19.04 19.513C19.384 18.927 19.406 18.206 19.1 17.6L13.75 8.75L13.75 3.5",op:"stroke",w:1.5},{d:"M7.25 14L16.75 14",op:"stroke",w:1.5}],solid:[{d:"M9.5 3.5L14.5 3.5M10.25 3.5L10.25 8.75L4.9 17.6C4.594 18.206 4.616 18.927 4.96 19.513C5.303 20.099 5.921 20.471 6.6 20.5L17.4 20.5C18.079 20.471 18.697 20.099 19.04 19.513C19.384 18.927 19.406 18.206 19.1 17.6L13.75 8.75L13.75 3.5Z",op:"fill"},{d:"M9.5 3.5L14.5 3.5M10.25 3.5L10.25 8.75L4.9 17.6C4.594 18.206 4.616 18.927 4.96 19.513C5.303 20.099 5.921 20.471 6.6 20.5L17.4 20.5C18.079 20.471 18.697 20.099 19.04 19.513C19.384 18.927 19.406 18.206 19.1 17.6L13.75 8.75L13.75 3.5Z",op:"stroke",w:1.5},{d:"M7.75 14L16.25 14",op:"clearStroke",w:1.75}]},"app.generic":{line:[{d:"M8.773 4.163L15.227 4.163C17.773 4.163 19.837 6.227 19.837 8.773L19.837 15.227C19.837 17.773 17.773 19.837 15.227 19.837L8.773 19.837C6.227 19.837 4.163 17.773 4.163 15.227L4.163 8.773C4.163 6.227 6.227 4.163 8.773 4.163Z",op:"stroke",w:1.5}],solid:[{d:"M8.773 4.163L15.227 4.163C17.773 4.163 19.837 6.227 19.837 8.773L19.837 15.227C19.837 17.773 17.773 19.837 15.227 19.837L8.773 19.837C6.227 19.837 4.163 17.773 4.163 15.227L4.163 8.773C4.163 6.227 6.227 4.163 8.773 4.163Z",op:"fill"},{d:"M8.773 4.163L15.227 4.163C17.773 4.163 19.837 6.227 19.837 8.773L19.837 15.227C19.837 17.773 17.773 19.837 15.227 19.837L8.773 19.837C6.227 19.837 4.163 17.773 4.163 15.227L4.163 8.773C4.163 6.227 6.227 4.163 8.773 4.163Z",op:"stroke",w:1.5}]},"app.open.external":{line:[{d:"M10.626 4.214L8.794 4.214C6.265 4.214 4.214 6.265 4.214 8.794L4.214 15.206C4.214 17.735 6.265 19.786 8.794 19.786L15.206 19.786C17.735 19.786 19.786 17.735 19.786 15.206L19.786 13.374",op:"stroke",w:1.5},{d:"M11.542 12.458L19.786 4.214M14.29 4.214L19.786 4.214L19.786 9.71",op:"stroke",w:1.5}],solid:[{d:"M10.626 4.214L8.794 4.214C6.265 4.214 4.214 6.265 4.214 8.794L4.214 15.206C4.214 17.735 6.265 19.786 8.794 19.786L15.206 19.786C17.735 19.786 19.786 17.735 19.786 15.206L19.786 13.374L10.626 4.214Z",op:"fill"},{d:"M10.626 4.214L8.794 4.214C6.265 4.214 4.214 6.265 4.214 8.794L4.214 15.206C4.214 17.735 6.265 19.786 8.794 19.786L15.206 19.786C17.735 19.786 19.786 17.735 19.786 15.206L19.786 13.374L10.626 4.214Z",op:"stroke",w:1.5},{d:"M11.542 12.458L19.786 4.214",op:"clearFill"},{d:"M11.542 12.458L19.786 4.214",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M11.542 12.458L19.786 4.214M14.29 4.214L19.786 4.214L19.786 9.71",op:"stroke",w:2}]},"app.permissions":{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M8.75 12L11 14.25L15.25 9.75",op:"stroke",w:1.5}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M8.75 12L11 14.25L15.25 9.75",op:"clearStroke",w:1.75}]},"app.placeholder":{line:[{d:"M8.749 4.104L15.252 4.104C17.817 4.104 19.897 6.184 19.897 8.749L19.897 15.252C19.897 17.817 17.817 19.897 15.252 19.897L8.749 19.897C6.184 19.897 4.104 17.817 4.104 15.252L4.104 8.749C4.104 6.184 6.184 4.104 8.749 4.104Z",op:"stroke",w:1.5,dash:[3.45,3.45],dashPhase:-1.725}],solid:[{d:"M8.749 4.104L15.252 4.104C17.817 4.104 19.897 6.184 19.897 8.749L19.897 15.252C19.897 17.817 17.817 19.897 15.252 19.897L8.749 19.897C6.184 19.897 4.104 17.817 4.104 15.252L4.104 8.749C4.104 6.184 6.184 4.104 8.749 4.104Z",op:"stroke",w:2,dash:[3.45,3.45],dashPhase:-1.725}]},"app.sample.githubprs":{line:[{d:"M9.25 6C9.25 7.243 8.243 8.25 7 8.25C5.757 8.25 4.75 7.243 4.75 6C4.75 4.757 5.757 3.75 7 3.75C8.243 3.75 9.25 4.757 9.25 6Z",op:"stroke",w:1.5},{d:"M9.25 18C9.25 19.243 8.243 20.25 7 20.25C5.757 20.25 4.75 19.243 4.75 18C4.75 16.757 5.757 15.75 7 15.75C8.243 15.75 9.25 16.757 9.25 18Z",op:"stroke",w:1.5},{d:"M19.25 18C19.25 19.243 18.243 20.25 17 20.25C15.757 20.25 14.75 19.243 14.75 18C14.75 16.757 15.757 15.75 17 15.75C18.243 15.75 19.25 16.757 19.25 18Z",op:"stroke",w:1.5},{d:"M7 8.25L7 15.75M17 15.75L17 10C17 8.343 15.657 7 14 7L10.75 7M12.75 5L10.75 7L12.75 9",op:"stroke",w:1.5}],solid:[{d:"M9.25 6C9.25 7.243 8.243 8.25 7 8.25C5.757 8.25 4.75 7.243 4.75 6C4.75 4.757 5.757 3.75 7 3.75C8.243 3.75 9.25 4.757 9.25 6Z",op:"fill"},{d:"M9.25 6C9.25 7.243 8.243 8.25 7 8.25C5.757 8.25 4.75 7.243 4.75 6C4.75 4.757 5.757 3.75 7 3.75C8.243 3.75 9.25 4.757 9.25 6Z",op:"stroke",w:2},{d:"M9.25 18C9.25 19.243 8.243 20.25 7 20.25C5.757 20.25 4.75 19.243 4.75 18C4.75 16.757 5.757 15.75 7 15.75C8.243 15.75 9.25 16.757 9.25 18Z",op:"fill"},{d:"M9.25 18C9.25 19.243 8.243 20.25 7 20.25C5.757 20.25 4.75 19.243 4.75 18C4.75 16.757 5.757 15.75 7 15.75C8.243 15.75 9.25 16.757 9.25 18Z",op:"stroke",w:2},{d:"M19.25 18C19.25 19.243 18.243 20.25 17 20.25C15.757 20.25 14.75 19.243 14.75 18C14.75 16.757 15.757 15.75 17 15.75C18.243 15.75 19.25 16.757 19.25 18Z",op:"fill"},{d:"M19.25 18C19.25 19.243 18.243 20.25 17 20.25C15.757 20.25 14.75 19.243 14.75 18C14.75 16.757 15.757 15.75 17 15.75C18.243 15.75 19.25 16.757 19.25 18Z",op:"stroke",w:2},{d:"M7 8.25L7 15.75M17 15.75L17 10C17 8.343 15.657 7 14 7L10.75 7M12.75 5L10.75 7L12.75 9",op:"stroke",w:2}]},"app.sample.runningagents":{line:[{d:"M12 4.5C16.142 4.5 19.5 7.858 19.5 12C19.5 16.142 16.142 19.5 12 19.5C7.858 19.5 4.5 16.142 4.5 12",op:"stroke",w:1.5},{d:"M13.75 12C13.75 12.966 12.966 13.75 12 13.75C11.034 13.75 10.25 12.966 10.25 12C10.25 11.034 11.034 10.25 12 10.25C12.966 10.25 13.75 11.034 13.75 12Z",op:"fill"}],solid:[{d:"M12 4.5C16.142 4.5 19.5 7.858 19.5 12C19.5 16.142 16.142 19.5 12 19.5C7.858 19.5 4.5 16.142 4.5 12",op:"stroke",w:2},{d:"M13.75 12C13.75 12.966 12.966 13.75 12 13.75C11.034 13.75 10.25 12.966 10.25 12C10.25 11.034 11.034 10.25 12 10.25C12.966 10.25 13.75 11.034 13.75 12Z",op:"fill"}]},"apps.stack":{line:[{d:"M7 7.5L13 7.5C14.933 7.5 16.5 9.067 16.5 11L16.5 17C16.5 18.933 14.933 20.5 13 20.5L7 20.5C5.067 20.5 3.5 18.933 3.5 17L3.5 11C3.5 9.067 5.067 7.5 7 7.5Z",op:"stroke",w:1.5},{d:"M7.5 4.5L16.5 4.5C18.433 4.5 20 6.067 20 8L20 17",op:"stroke",w:1.5}],solid:[{d:"M7 7.5L13 7.5C14.933 7.5 16.5 9.067 16.5 11L16.5 17C16.5 18.933 14.933 20.5 13 20.5L7 20.5C5.067 20.5 3.5 18.933 3.5 17L3.5 11C3.5 9.067 5.067 7.5 7 7.5Z",op:"fill"},{d:"M7 7.5L13 7.5C14.933 7.5 16.5 9.067 16.5 11L16.5 17C16.5 18.933 14.933 20.5 13 20.5L7 20.5C5.067 20.5 3.5 18.933 3.5 17L3.5 11C3.5 9.067 5.067 7.5 7 7.5Z",op:"stroke",w:1.5},{d:"M7.5 4.5L16.5 4.5C18.433 4.5 20 6.067 20 8L20 17",op:"stroke",w:2}]},automation:{line:[{d:"M19.18 16C17.37 19.136 13.679 20.665 10.181 19.727C6.684 18.79 4.252 15.621 4.252 12C4.252 8.379 6.684 5.21 10.181 4.273C13.679 3.335 17.37 4.864 19.18 8",op:"stroke",w:1.5},{d:"M19.85 4.82L19.18 8L16.09 7",op:"stroke",w:1.5},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"stroke",w:1.5}],solid:[{d:"M19.18 16C17.37 19.136 13.679 20.665 10.181 19.727C6.684 18.79 4.252 15.621 4.252 12C4.252 8.379 6.684 5.21 10.181 4.273C13.679 3.335 17.37 4.864 19.18 8",op:"stroke",w:2},{d:"M19.85 4.82L19.18 8L16.09 7",op:"stroke",w:2},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"fill"},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"stroke",w:2}],cat:[{d:"M19.18 16C17.37 19.136 13.679 20.665 10.181 19.727C6.684 18.79 4.252 15.621 4.252 12C4.252 8.379 6.684 5.21 10.181 4.273C13.679 3.335 17.37 4.864 19.18 8",op:"stroke",w:1.5},{d:"M19.85 4.82L19.18 8L16.09 7",op:"stroke",w:1.5},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"stroke",w:1.5},{d:"M19.18 16C19.53 17.9 21.08 19 22.28 18.2C23.08 17.65 22.83 16.6 21.93 16.45",op:"stroke",w:1.5,accent:!0}]},bookmark:{line:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}],solid:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"fill"},{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}]},"bookmark.active":{line:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"fill"},{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}],solid:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"fill"},{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}]},"bookmark.manager":{line:[{d:"M5.455 18.078L5.455 5.922C5.456 4.632 6.502 3.586 7.792 3.585L18.545 3.585L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"stroke",w:1.5},{d:"M18.545 15.74L7.792 15.74C6.501 15.741 5.455 16.787 5.455 18.078",op:"stroke",w:1.5},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"fill"},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"stroke",w:1.5}],solid:[{d:"M5.455 18.078L5.455 5.922C5.456 4.632 6.502 3.586 7.792 3.585L18.545 3.585L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"fill"},{d:"M5.455 18.078L5.455 5.922C5.456 4.632 6.502 3.586 7.792 3.585L18.545 3.585L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"stroke",w:1.5},{d:"M18.545 15.74L7.792 15.74C6.501 15.741 5.455 16.787 5.455 18.078",op:"clearStroke",w:1.75},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"clearFill"},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"clearStroke",w:1.75,cap:"butt"}],cat:[{d:"M5.455 18.078L5.455 7.792C5.456 6.502 6.502 5.456 7.792 5.455L18.545 5.455L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"stroke",w:1.5},{d:"M18.545 15.74L7.792 15.74C6.501 15.741 5.455 16.787 5.455 18.078",op:"stroke",w:1.5},{d:"M8.727 5.455L8.727 3.117L10.597 4.987M16.675 5.455L16.675 3.117L14.805 4.987",op:"stroke",w:1.5,accent:!0}]},"bookmarks.bar":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"stroke",w:1.5},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"fill"},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"clearStroke",w:1.75},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"clearFill"},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"clearStroke",w:1.75,cap:"butt"}]},"bookmarks.other":{line:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"fill"},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"fill"},{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"clearFill"},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"clearStroke",w:1.75,cap:"butt"}]},"brand.arxiv":{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5},{d:"M8.5 11.5L15.5 11.5M8.5 14.5L15.5 14.5M8.5 17.5L12.5 17.5",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75},{d:"M8.5 11.5L15.5 11.5M8.5 14.5L15.5 14.5M8.5 17.5L12.5 17.5",op:"clearStroke",w:1.75}]},"brand.github":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M10 9L7 12L10 15M14 9L17 12L14 15",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M10 9L7 12L10 15M14 9L17 12L14 15",op:"clearStroke",w:1.75}]},browser:{line:[{d:"M20.415 12C20.415 16.647 16.647 20.415 12 20.415C7.353 20.415 3.585 16.647 3.585 12C3.585 7.353 7.353 3.585 12 3.585C16.647 3.585 20.415 7.353 20.415 12Z",op:"stroke",w:1.5},{d:"M15.506 12C15.506 16.647 13.936 20.415 12 20.415C10.064 20.415 8.494 16.647 8.494 12C8.494 7.353 10.064 3.585 12 3.585C13.936 3.585 15.506 7.353 15.506 12Z",op:"stroke",w:1.5},{d:"M3.585 12L20.415 12",op:"stroke",w:1.5}],solid:[{d:"M21.116 12C21.116 17.035 17.035 21.116 12 21.116C6.965 21.116 2.884 17.035 2.884 12C2.884 6.965 6.965 2.884 12 2.884C17.035 2.884 21.116 6.965 21.116 12Z",op:"fill"},{d:"M15.506 12C15.506 16.906 13.936 20.883 12 20.883C10.064 20.883 8.494 16.906 8.494 12C8.494 7.094 10.064 3.117 12 3.117C13.936 3.117 15.506 7.094 15.506 12Z",op:"clearStroke",w:1.75},{d:"M2.65 12L21.35 12",op:"clearStroke",w:1.75}]},"browser.incognito":{line:[{d:"M6.5 10.5L8.1 5.4C8.185 5.13 8.38 4.908 8.637 4.79C8.894 4.671 9.19 4.668 9.45 4.78L12 5.75L14.55 4.78C14.81 4.668 15.106 4.671 15.363 4.79C15.62 4.908 15.815 5.13 15.9 5.4L17.5 10.5Z",op:"stroke",w:1.5},{d:"M3 10.5L21 10.5",op:"stroke",w:1.5},{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"stroke",w:1.5},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"stroke",w:1.5},{d:"M10.5 16.25C11.5 15.5 12.5 15.5 13.5 16.25",op:"stroke",w:1.5}],solid:[{d:"M6.5 10.5L8.1 5.4C8.185 5.13 8.38 4.908 8.637 4.79C8.894 4.671 9.19 4.668 9.45 4.78L12 5.75L14.55 4.78C14.81 4.668 15.106 4.671 15.363 4.79C15.62 4.908 15.815 5.13 15.9 5.4L17.5 10.5Z",op:"fill"},{d:"M6.5 10.5L8.1 5.4C8.185 5.13 8.38 4.908 8.637 4.79C8.894 4.671 9.19 4.668 9.45 4.78L12 5.75L14.55 4.78C14.81 4.668 15.106 4.671 15.363 4.79C15.62 4.908 15.815 5.13 15.9 5.4L17.5 10.5Z",op:"stroke",w:1.5},{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"fill"},{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"stroke",w:1.5},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"fill"},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"stroke",w:1.5},{d:"M3 10.5L21 10.5",op:"stroke",w:2},{d:"M10.5 16.25C11.5 15.5 12.5 15.5 13.5 16.25",op:"stroke",w:2}],cat:[{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"stroke",w:1.5},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"stroke",w:1.5},{d:"M10.5 16.25C11.5 15.5 12.5 15.5 13.5 16.25",op:"stroke",w:1.5},{d:"M4 11.5L4 5.5L8 9L16 9L20 5.5L20 11.5",op:"stroke",w:1.5,accent:!0}]},"browser.new":{line:[{d:"M20.361 12C20.361 16.618 16.618 20.361 12 20.361C7.382 20.361 3.639 16.618 3.639 12C3.639 7.382 7.382 3.639 12 3.639C16.618 3.639 20.361 7.382 20.361 12Z",op:"stroke",w:1.5},{d:"M15.484 12C15.484 16.618 13.924 20.361 12 20.361C10.076 20.361 8.516 16.618 8.516 12C8.516 7.382 10.076 3.639 12 3.639C13.924 3.639 15.484 7.382 15.484 12Z",op:"stroke",w:1.5},{d:"M3.639 12L20.361 12",op:"stroke",w:1.5},{d:"M21.987 17.574C21.987 20.011 20.011 21.987 17.574 21.987C15.137 21.987 13.161 20.011 13.161 17.574C13.161 15.137 15.137 13.161 17.574 13.161C20.011 13.161 21.987 15.137 21.987 17.574Z",op:"clearFill"},{d:"M17.574 15.252L17.574 19.897M15.252 17.574L19.897 17.574",op:"stroke",w:1.5}],solid:[{d:"M21.058 12C21.058 17.003 17.003 21.058 12 21.058C6.997 21.058 2.942 17.003 2.942 12C2.942 6.997 6.997 2.942 12 2.942C17.003 2.942 21.058 6.997 21.058 12Z",op:"fill"},{d:"M15.484 12C15.484 16.874 13.924 20.825 12 20.825C10.076 20.825 8.516 16.874 8.516 12C8.516 7.126 10.076 3.175 12 3.175C13.924 3.175 15.484 7.126 15.484 12Z",op:"clearStroke",w:1.75},{d:"M2.71 12L21.29 12",op:"clearStroke",w:1.75},{d:"M22.219 17.574C22.219 20.139 20.139 22.219 17.574 22.219C15.009 22.219 12.929 20.139 12.929 17.574C12.929 15.009 15.009 12.929 17.574 12.929C20.139 12.929 22.219 15.009 22.219 17.574Z",op:"clearFill"},{d:"M17.574 15.252L17.574 19.897M15.252 17.574L19.897 17.574",op:"stroke",w:2,join:"miter"}]},"browser.stop":{line:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:2}]},"browserprofile.badge":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5}],solid:[{d:"M21.25 12C21.25 17.109 17.109 21.25 12 21.25C6.891 21.25 2.75 17.109 2.75 12C2.75 6.891 6.891 2.75 12 2.75C17.109 2.75 21.25 6.891 21.25 12Z",op:"fill"}]},"browserprofile.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},cloud:{line:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5}],solid:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"fill"},{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5}],cat:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5},{d:"M8.5 7.5L8.5 4.5L10.5 6M15.75 7.5L15.75 4.5L13.75 6",op:"stroke",w:1.5,accent:!0}]},"cloud.synced":{line:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5},{d:"M9.5 13.5L11.25 15.25L14.75 11.5",op:"stroke",w:1.5}],solid:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"fill"},{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5},{d:"M9.5 13.5L11.25 15.25L14.75 11.5",op:"clearStroke",w:1.75}]},"cloud.workspace":{line:[{d:"M6.175 4.837L17.875 4.837C19.118 4.837 20.125 5.844 20.125 7.087L20.125 16.987C20.125 18.23 19.118 19.237 17.875 19.237L6.175 19.237C4.932 19.237 3.925 18.23 3.925 16.987L3.925 7.087C3.925 5.844 4.932 4.837 6.175 4.837Z",op:"stroke",w:1.5},{d:"M9.325 4.837L9.325 19.237",op:"stroke",w:1.5},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearFill"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearStroke",w:4.5},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"stroke",w:1.5}],solid:[{d:"M6.175 4.837L17.875 4.837C19.118 4.837 20.125 5.844 20.125 7.087L20.125 16.987C20.125 18.23 19.118 19.237 17.875 19.237L6.175 19.237C4.932 19.237 3.925 18.23 3.925 16.987L3.925 7.087C3.925 5.844 4.932 4.837 6.175 4.837Z",op:"fill"},{d:"M6.175 4.837L17.875 4.837C19.118 4.837 20.125 5.844 20.125 7.087L20.125 16.987C20.125 18.23 19.118 19.237 17.875 19.237L6.175 19.237C4.932 19.237 3.925 18.23 3.925 16.987L3.925 7.087C3.925 5.844 4.932 4.837 6.175 4.837Z",op:"stroke",w:1.5},{d:"M9.325 4.837L9.325 19.237",op:"clearFill"},{d:"M9.325 4.837L9.325 19.237",op:"clearStroke",w:1.75,cap:"butt",join:"miter"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearFill"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"fill"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"stroke",w:1.5}]},code:{line:[{d:"M8 7L3 12L8 17M16 7L21 12L16 17M13.5 5L10.5 19",op:"stroke",w:1.5}],solid:[{d:"M8 7L3 12L8 17M16 7L21 12L16 17M13.5 5L10.5 19",op:"stroke",w:2}]},"color.clear":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M6 6L18 18",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M5 5L19 19",op:"clearStroke",w:1.75}]},"color.swatch":{line:[{d:"M19.48 12C19.48 16.131 16.131 19.48 12 19.48C7.869 19.48 4.52 16.131 4.52 12C4.52 7.869 7.869 4.52 12 4.52C16.131 4.52 19.48 7.869 19.48 12Z",op:"fill"}],solid:[{d:"M17.376 12C17.376 14.969 14.969 17.376 12 17.376C9.031 17.376 6.624 14.969 6.624 12C6.624 9.031 9.031 6.624 12 6.624C14.969 6.624 17.376 9.031 17.376 12Z",op:"fill"},{d:"M20.181 12C20.181 16.518 16.518 20.181 12 20.181C7.482 20.181 3.819 16.518 3.819 12C3.819 7.482 7.482 3.819 12 3.819C16.518 3.819 20.181 7.482 20.181 12Z",op:"stroke",w:1.5}]},column:{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 4.752L9.282 19.248M14.718 4.752L14.718 19.248",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 4.752L9.282 19.248M14.718 4.752L14.718 19.248",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M9.282 5.658L9.282 19.248M14.718 5.658L14.718 19.248",op:"stroke",w:1.5},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"composer.add":{line:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:1.5}],solid:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:2}]},"composer.attach":{line:[{d:"M19.5 12L12.6 18.9C10.786 20.573 7.975 20.515 6.23 18.77C4.485 17.025 4.427 14.214 6.1 12.4L13.5 5C14.715 3.785 16.685 3.785 17.9 5C19.115 6.215 19.115 8.185 17.9 9.4L10.8 16.5C10.192 17.108 9.208 17.108 8.6 16.5C7.992 15.892 7.992 14.908 8.6 14.3L15.25 7.75",op:"stroke",w:1.5}],solid:[{d:"M19.5 12L12.6 18.9C10.786 20.573 7.975 20.515 6.23 18.77C4.485 17.025 4.427 14.214 6.1 12.4L13.5 5C14.715 3.785 16.685 3.785 17.9 5C19.115 6.215 19.115 8.185 17.9 9.4L10.8 16.5C10.192 17.108 9.208 17.108 8.6 16.5C7.992 15.892 7.992 14.908 8.6 14.3L15.25 7.75",op:"stroke",w:2}]},"composer.command":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M14.039 7.923L9.962 16.077",op:"stroke",w:1.5}],solid:[{d:"M6.565 3.62L17.436 3.62C19.062 3.62 20.381 4.939 20.381 6.565L20.381 17.436C20.381 19.062 19.062 20.381 17.436 20.381L6.565 20.381C4.939 20.381 3.62 19.062 3.62 17.436L3.62 6.565C3.62 4.939 4.939 3.62 6.565 3.62Z",op:"fill"},{d:"M14.039 7.923L9.962 16.077",op:"clearStroke",w:1.75}]},"composer.mention":{line:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:1.5},{d:"M15.5 12L15.5 13.25C15.5 14.631 16.619 15.75 18 15.75C19.381 15.75 20.5 14.631 20.5 13.25L20.5 12C20.506 8.051 17.791 4.618 13.947 3.714C10.102 2.809 6.142 4.672 4.386 8.209C2.631 11.746 3.542 16.027 6.587 18.542C9.632 21.056 14.008 21.143 17.15 18.75",op:"stroke",w:1.5}],solid:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:2},{d:"M15.5 12L15.5 13.25C15.5 14.631 16.619 15.75 18 15.75C19.381 15.75 20.5 14.631 20.5 13.25L20.5 12C20.506 8.051 17.791 4.618 13.947 3.714C10.102 2.809 6.142 4.672 4.386 8.209C2.631 11.746 3.542 16.027 6.587 18.542C9.632 21.056 14.008 21.143 17.15 18.75",op:"stroke",w:2}]},"composer.send":{line:[{d:"M12 19.5L12 4.5M6 10.5L12 4.5L18 10.5",op:"stroke",w:1.5}],solid:[{d:"M12 19.5L12 4.5M6 10.5L12 4.5L18 10.5",op:"stroke",w:2}]},"computeruse.click":{line:[{d:"M10 4.5L10 6.5M4.5 10L6.5 10M6.25 6.25L7.65 7.65M13.75 6.25L12.35 7.65",op:"stroke",w:1.5},{d:"M10 10L19.5 13.75L15.5 15.25L14 19.25Z",op:"stroke",w:1.5}],solid:[{d:"M10 4.5L10 6.5M4.5 10L6.5 10M6.25 6.25L7.65 7.65M13.75 6.25L12.35 7.65",op:"stroke",w:2},{d:"M10 10L19.5 13.75L15.5 15.25L14 19.25Z",op:"fill"},{d:"M10 10L19.5 13.75L15.5 15.25L14 19.25Z",op:"stroke",w:1.5}]},"computeruse.drag":{line:[{d:"M5.25 4C5.25 4.69 4.69 5.25 4 5.25C3.31 5.25 2.75 4.69 2.75 4C2.75 3.31 3.31 2.75 4 2.75C4.69 2.75 5.25 3.31 5.25 4Z",op:"fill"},{d:"M8.8 7.2C8.8 8.084 8.084 8.8 7.2 8.8C6.316 8.8 5.6 8.084 5.6 7.2C5.6 6.316 6.316 5.6 7.2 5.6C8.084 5.6 8.8 6.316 8.8 7.2Z",op:"fill"},{d:"M12.35 10.4C12.35 11.477 11.477 12.35 10.4 12.35C9.323 12.35 8.45 11.477 8.45 10.4C8.45 9.323 9.323 8.45 10.4 8.45C11.477 8.45 12.35 9.323 12.35 10.4Z",op:"fill"},{d:"M13.75 13.75L20.75 16.35L17.65 17.6L16.4 20.7Z",op:"stroke",w:1.5}],solid:[{d:"M5.25 4C5.25 4.69 4.69 5.25 4 5.25C3.31 5.25 2.75 4.69 2.75 4C2.75 3.31 3.31 2.75 4 2.75C4.69 2.75 5.25 3.31 5.25 4Z",op:"fill"},{d:"M8.8 7.2C8.8 8.084 8.084 8.8 7.2 8.8C6.316 8.8 5.6 8.084 5.6 7.2C5.6 6.316 6.316 5.6 7.2 5.6C8.084 5.6 8.8 6.316 8.8 7.2Z",op:"fill"},{d:"M12.35 10.4C12.35 11.477 11.477 12.35 10.4 12.35C9.323 12.35 8.45 11.477 8.45 10.4C8.45 9.323 9.323 8.45 10.4 8.45C11.477 8.45 12.35 9.323 12.35 10.4Z",op:"fill"},{d:"M13.75 13.75L20.75 16.35L17.65 17.6L16.4 20.7Z",op:"fill"},{d:"M13.75 13.75L20.75 16.35L17.65 17.6L16.4 20.7Z",op:"stroke",w:2}]},"computeruse.observe":{line:[{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"stroke",w:1.5},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:1.5}],solid:[{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"fill"},{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"stroke",w:1.5,cap:"butt"},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"clearStroke",w:1.75}],cat:[{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"stroke",w:1.5},{d:"M12 8.5C10.75 9.5 10.75 14.5 12 15.5C13.25 14.5 13.25 9.5 12 8.5Z",op:"stroke",w:1.5,accent:!0}]},"config.json":{line:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:1.5}],solid:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:2}]},"context.usage":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 12L12 6.75C14.477 6.753 16.616 8.487 17.13 10.91C17.644 13.334 16.394 15.787 14.131 16.795C11.868 17.804 9.208 17.093 7.75 15.09Z",op:"fill"}],solid:[{d:"M21.25 12C21.25 17.109 17.109 21.25 12 21.25C6.891 21.25 2.75 17.109 2.75 12C2.75 6.891 6.891 2.75 12 2.75C17.109 2.75 21.25 6.891 21.25 12Z",op:"fill"},{d:"M18.75 12C18.75 15.728 15.728 18.75 12 18.75C8.272 18.75 5.25 15.728 5.25 12C5.25 8.272 8.272 5.25 12 5.25C15.728 5.25 18.75 8.272 18.75 12Z",op:"clearStroke",w:1.5},{d:"M12 12L7.065 15.585C5.713 13.73 5.517 11.271 6.559 9.225C7.601 7.179 9.704 5.891 12.001 5.893Z",op:"clearFill"}]},"control.popup":{line:[{d:"M8.062 9.188L12 5.25L15.938 9.188M8.062 14.812L12 18.75L15.938 14.812",op:"stroke",w:1.5}],solid:[{d:"M8.062 9.188L12 5.25L15.938 9.188M8.062 14.812L12 18.75L15.938 14.812",op:"stroke",w:2}]},"credential.consent":{line:[{d:"M11.75 16C11.75 18.071 10.071 19.75 8 19.75C5.929 19.75 4.25 18.071 4.25 16C4.25 13.929 5.929 12.25 8 12.25C10.071 12.25 11.75 13.929 11.75 16Z",op:"stroke",w:1.5},{d:"M10.75 13.25L19.5 4.5M16.5 7.5L18.75 9.75M14.25 9.75L16 11.5",op:"stroke",w:1.5}],solid:[{d:"M12.5 16C12.5 18.485 10.485 20.5 8 20.5C5.515 20.5 3.5 18.485 3.5 16C3.5 13.515 5.515 11.5 8 11.5C10.485 11.5 12.5 13.515 12.5 16Z",op:"fill"},{d:"M9.25 16C9.25 16.69 8.69 17.25 8 17.25C7.31 17.25 6.75 16.69 6.75 16C6.75 15.31 7.31 14.75 8 14.75C8.69 14.75 9.25 15.31 9.25 16Z",op:"clearFill"},{d:"M10.75 13.25L19.5 4.5M16.5 7.5L18.75 9.75M14.25 9.75L16 11.5",op:"stroke",w:2,join:"miter"}]},"data.storage":{line:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"stroke",w:1.5},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"stroke",w:1.5}],solid:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"fill"},{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"clearStroke",w:1.75},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"clearStroke",w:1.75}]},database:{line:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"stroke",w:1.5},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"stroke",w:1.5}],solid:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"fill"},{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"clearStroke",w:1.75},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"clearStroke",w:1.75}]},"device.paired":{line:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"stroke",w:1.5},{d:"M21.25 18C21.25 20.623 19.123 22.75 16.5 22.75C13.877 22.75 11.75 20.623 11.75 18C11.75 15.377 13.877 13.25 16.5 13.25C19.123 13.25 21.25 15.377 21.25 18Z",op:"clearFill"},{d:"M14 18.25L15.75 20L19 16.5",op:"stroke",w:1.5}],solid:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"fill"},{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"clearStroke",w:1.75},{d:"M21.5 18C21.5 20.761 19.261 23 16.5 23C13.739 23 11.5 20.761 11.5 18C11.5 15.239 13.739 13 16.5 13C19.261 13 21.5 15.239 21.5 18Z",op:"clearFill"},{d:"M14 18.25L15.75 20L19 16.5",op:"stroke",w:2}]},"device.pairing":{line:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"stroke",w:1.5},{d:"M21.25 18C21.25 20.623 19.123 22.75 16.5 22.75C13.877 22.75 11.75 20.623 11.75 18C11.75 15.377 13.877 13.25 16.5 13.25C19.123 13.25 21.25 15.377 21.25 18Z",op:"clearFill"},{d:"M16.5 15.25C18.019 15.25 19.25 16.481 19.25 18C19.25 19.519 18.019 20.75 16.5 20.75C14.981 20.75 13.75 19.519 13.75 18",op:"stroke",w:1.5}],solid:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"fill"},{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"clearStroke",w:1.75},{d:"M21.5 18C21.5 20.761 19.261 23 16.5 23C13.739 23 11.5 20.761 11.5 18C11.5 15.239 13.739 13 16.5 13C19.261 13 21.5 15.239 21.5 18Z",op:"clearFill"},{d:"M16.5 15.25C18.019 15.25 19.25 16.481 19.25 18C19.25 19.519 18.019 20.75 16.5 20.75C14.981 20.75 13.75 19.519 13.75 18",op:"stroke",w:2}]},"device.phone":{line:[{d:"M9.25 2.75L14.75 2.75C16.269 2.75 17.5 3.981 17.5 5.5L17.5 18.5C17.5 20.019 16.269 21.25 14.75 21.25L9.25 21.25C7.731 21.25 6.5 20.019 6.5 18.5L6.5 5.5C6.5 3.981 7.731 2.75 9.25 2.75Z",op:"stroke",w:1.5},{d:"M10.75 5.5L13.25 5.5",op:"stroke",w:1.5}],solid:[{d:"M9.25 2.75L14.75 2.75C16.269 2.75 17.5 3.981 17.5 5.5L17.5 18.5C17.5 20.019 16.269 21.25 14.75 21.25L9.25 21.25C7.731 21.25 6.5 20.019 6.5 18.5L6.5 5.5C6.5 3.981 7.731 2.75 9.25 2.75Z",op:"fill"},{d:"M9.25 2.75L14.75 2.75C16.269 2.75 17.5 3.981 17.5 5.5L17.5 18.5C17.5 20.019 16.269 21.25 14.75 21.25L9.25 21.25C7.731 21.25 6.5 20.019 6.5 18.5L6.5 5.5C6.5 3.981 7.731 2.75 9.25 2.75Z",op:"stroke",w:1.5},{d:"M10.75 5.5L13.25 5.5",op:"clearStroke",w:1.75}]},"devices.paired":{line:[{d:"M6.5 4.25L16.5 4.25C17.605 4.25 18.5 5.145 18.5 6.25L18.5 12.25C18.5 13.355 17.605 14.25 16.5 14.25L6.5 14.25C5.395 14.25 4.5 13.355 4.5 12.25L4.5 6.25C4.5 5.145 5.395 4.25 6.5 4.25Z",op:"stroke",w:1.5},{d:"M2.5 17.75L13.5 17.75",op:"stroke",w:1.5},{d:"M16.75 8L20 8C21.795 8 23.25 9.455 23.25 11.25L23.25 18.25C23.25 20.045 21.795 21.5 20 21.5L16.75 21.5C14.955 21.5 13.5 20.045 13.5 18.25L13.5 11.25C13.5 9.455 14.955 8 16.75 8Z",op:"clearFill"},{d:"M17 9.75L19.75 9.75C20.716 9.75 21.5 10.534 21.5 11.5L21.5 18C21.5 18.966 20.716 19.75 19.75 19.75L17 19.75C16.034 19.75 15.25 18.966 15.25 18L15.25 11.5C15.25 10.534 16.034 9.75 17 9.75Z",op:"stroke",w:1.5}],solid:[{d:"M6.5 4.25L16.5 4.25C17.605 4.25 18.5 5.145 18.5 6.25L18.5 12.25C18.5 13.355 17.605 14.25 16.5 14.25L6.5 14.25C5.395 14.25 4.5 13.355 4.5 12.25L4.5 6.25C4.5 5.145 5.395 4.25 6.5 4.25Z",op:"fill"},{d:"M6.5 4.25L16.5 4.25C17.605 4.25 18.5 5.145 18.5 6.25L18.5 12.25C18.5 13.355 17.605 14.25 16.5 14.25L6.5 14.25C5.395 14.25 4.5 13.355 4.5 12.25L4.5 6.25C4.5 5.145 5.395 4.25 6.5 4.25Z",op:"stroke",w:1.5},{d:"M16.75 8L20 8C21.795 8 23.25 9.455 23.25 11.25L23.25 18.25C23.25 20.045 21.795 21.5 20 21.5L16.75 21.5C14.955 21.5 13.5 20.045 13.5 18.25L13.5 11.25C13.5 9.455 14.955 8 16.75 8Z",op:"clearFill"},{d:"M17 9.75L19.75 9.75C20.716 9.75 21.5 10.534 21.5 11.5L21.5 18C21.5 18.966 20.716 19.75 19.75 19.75L17 19.75C16.034 19.75 15.25 18.966 15.25 18L15.25 11.5C15.25 10.534 16.034 9.75 17 9.75Z",op:"fill"},{d:"M17 9.75L19.75 9.75C20.716 9.75 21.5 10.534 21.5 11.5L21.5 18C21.5 18.966 20.716 19.75 19.75 19.75L17 19.75C16.034 19.75 15.25 18.966 15.25 18L15.25 11.5C15.25 10.534 16.034 9.75 17 9.75Z",op:"stroke",w:1.5},{d:"M2.5 17.75L13.5 17.75",op:"stroke",w:2}]},"diff.collapse.all":{line:[{d:"M4 12L20 12M8.5 4L12 7.5L15.5 4M8.5 20L12 16.5L15.5 20",op:"stroke",w:1.5}],solid:[{d:"M4 12L20 12M8.5 4L12 7.5L15.5 4M8.5 20L12 16.5L15.5 20",op:"stroke",w:2}]},"diff.file":{line:[{d:"M7.39 3.702L16.61 3.702C17.883 3.702 18.915 4.734 18.915 6.007L18.915 17.993C18.915 19.266 17.883 20.298 16.61 20.298L7.39 20.298C6.117 20.298 5.085 19.266 5.085 17.993L5.085 6.007C5.085 4.734 6.117 3.702 7.39 3.702Z",op:"stroke",w:1.5},{d:"M12 6.468L12 12M9.234 9.234L14.766 9.234M9.234 16.149L14.766 16.149",op:"stroke",w:1.5}],solid:[{d:"M7.39 3.702L16.61 3.702C17.883 3.702 18.915 4.734 18.915 6.007L18.915 17.993C18.915 19.266 17.883 20.298 16.61 20.298L7.39 20.298C6.117 20.298 5.085 19.266 5.085 17.993L5.085 6.007C5.085 4.734 6.117 3.702 7.39 3.702Z",op:"fill"},{d:"M7.39 3.702L16.61 3.702C17.883 3.702 18.915 4.734 18.915 6.007L18.915 17.993C18.915 19.266 17.883 20.298 16.61 20.298L7.39 20.298C6.117 20.298 5.085 19.266 5.085 17.993L5.085 6.007C5.085 4.734 6.117 3.702 7.39 3.702Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M12 6.468L12 12M9.234 9.234L14.766 9.234M9.234 16.149L14.766 16.149",op:"clearStroke",w:1.75}]},"diff.filetree":{line:[{d:"M5 3L8 3C8.828 3 9.5 3.672 9.5 4.5L9.5 6.5C9.5 7.328 8.828 8 8 8L5 8C4.172 8 3.5 7.328 3.5 6.5L3.5 4.5C3.5 3.672 4.172 3 5 3Z",op:"stroke",w:1.5},{d:"M13.5 9L19 9C19.828 9 20.5 9.672 20.5 10.5L20.5 12.5C20.5 13.328 19.828 14 19 14L13.5 14C12.672 14 12 13.328 12 12.5L12 10.5C12 9.672 12.672 9 13.5 9Z",op:"stroke",w:1.5},{d:"M13.5 16L19 16C19.828 16 20.5 16.672 20.5 17.5L20.5 19.5C20.5 20.328 19.828 21 19 21L13.5 21C12.672 21 12 20.328 12 19.5L12 17.5C12 16.672 12.672 16 13.5 16Z",op:"stroke",w:1.5},{d:"M6.5 8L6.5 16.5C6.5 17.605 7.395 18.5 8.5 18.5L12 18.5M6.5 11.5L12 11.5",op:"stroke",w:1.5}],solid:[{d:"M4.75 2.25L8.25 2.25C9.355 2.25 10.25 3.145 10.25 4.25L10.25 6.75C10.25 7.855 9.355 8.75 8.25 8.75L4.75 8.75C3.645 8.75 2.75 7.855 2.75 6.75L2.75 4.25C2.75 3.145 3.645 2.25 4.75 2.25Z",op:"fill"},{d:"M13.25 8.25L19.25 8.25C20.355 8.25 21.25 9.145 21.25 10.25L21.25 12.75C21.25 13.855 20.355 14.75 19.25 14.75L13.25 14.75C12.145 14.75 11.25 13.855 11.25 12.75L11.25 10.25C11.25 9.145 12.145 8.25 13.25 8.25Z",op:"fill"},{d:"M13.25 15.25L19.25 15.25C20.355 15.25 21.25 16.145 21.25 17.25L21.25 19.75C21.25 20.855 20.355 21.75 19.25 21.75L13.25 21.75C12.145 21.75 11.25 20.855 11.25 19.75L11.25 17.25C11.25 16.145 12.145 15.25 13.25 15.25Z",op:"fill"},{d:"M6.5 8L6.5 16.5C6.5 17.605 7.395 18.5 8.5 18.5L12 18.5M6.5 11.5L12 11.5",op:"stroke",w:1.5}]},"diff.split":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12 4.752L12 19.248M6.564 9.282L9.282 9.282M6.564 12.906L9.282 12.906M14.718 9.282L17.436 9.282M14.718 14.718L17.436 14.718",op:"stroke",w:1.5}],solid:[{d:"M6.112 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.982C20.834 18.608 19.515 19.927 17.889 19.927L6.112 19.927C4.486 19.927 3.167 18.608 3.167 16.982L3.167 7.017C3.167 5.391 4.486 4.072 6.112 4.072Z",op:"fill"},{d:"M12 4.752L12 19.248M6.564 9.282L9.282 9.282M6.564 12.906L9.282 12.906M14.718 9.282L17.436 9.282M14.718 14.718L17.436 14.718",op:"clearStroke",w:1.75}]},"diff.viewed":{line:[{d:"M6.858 4.52L17.142 4.52C18.433 4.52 19.48 5.567 19.48 6.858L19.48 17.142C19.48 18.433 18.433 19.48 17.142 19.48L6.858 19.48C5.567 19.48 4.52 18.433 4.52 17.142L4.52 6.858C4.52 5.567 5.567 4.52 6.858 4.52Z",op:"stroke",w:1.5},{d:"M8.494 12.234L10.831 14.571L15.506 9.662",op:"stroke",w:1.5}],solid:[{d:"M6.858 3.819L17.143 3.819C18.821 3.819 20.182 5.18 20.182 6.858L20.182 17.143C20.182 18.821 18.821 20.182 17.143 20.182L6.858 20.182C5.18 20.182 3.819 18.821 3.819 17.143L3.819 6.858C3.819 5.18 5.18 3.819 6.858 3.819Z",op:"fill"},{d:"M8.494 12.234L10.831 14.571L15.506 9.662",op:"clearStroke",w:1.75}]},"disclosure.collapsed":{line:[{d:"M9.5 4.75L16.5 12L9.5 19.25",op:"stroke",w:1.5}],solid:[{d:"M9.5 4.75L16.5 12L9.5 19.25",op:"stroke",w:2}]},"disclosure.expanded":{line:[{d:"M5.25 8.625L12 15.375L18.75 8.625",op:"stroke",w:1.5}],solid:[{d:"M5.25 8.625L12 15.375L18.75 8.625",op:"stroke",w:2}]},extension:{line:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"fill"},{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5}],cat:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5},{d:"M5.5 8.25L5.5 4.75L8.25 7.25M13.75 8.25L13.75 4.75L11 7.25",op:"stroke",w:1.5,accent:!0}]},"extension.crashed":{line:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5},{d:"M10.5 8L8.75 12.5L11.75 14.75L9.5 21.5",op:"clearStroke",w:2.75}],solid:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"fill"},{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5},{d:"M10.5 8L8.75 12.5L11.75 14.75L9.5 21.5",op:"clearStroke",w:2.75}]},"feed.choice":{line:[{d:"M8.5 7.5C8.5 8.881 7.381 10 6 10C4.619 10 3.5 8.881 3.5 7.5C3.5 6.119 4.619 5 6 5C7.381 5 8.5 6.119 8.5 7.5Z",op:"stroke",w:1.5},{d:"M8.5 16.5C8.5 17.881 7.381 19 6 19C4.619 19 3.5 17.881 3.5 16.5C3.5 15.119 4.619 14 6 14C7.381 14 8.5 15.119 8.5 16.5Z",op:"stroke",w:1.5},{d:"M7 7.5C7 8.052 6.552 8.5 6 8.5C5.448 8.5 5 8.052 5 7.5C5 6.948 5.448 6.5 6 6.5C6.552 6.5 7 6.948 7 7.5Z",op:"fill"},{d:"M11 7.5L20 7.5M11 16.5L20 16.5",op:"stroke",w:1.5}],solid:[{d:"M9.25 7.5C9.25 9.295 7.795 10.75 6 10.75C4.205 10.75 2.75 9.295 2.75 7.5C2.75 5.705 4.205 4.25 6 4.25C7.795 4.25 9.25 5.705 9.25 7.5Z",op:"fill"},{d:"M8.5 16.5C8.5 17.881 7.381 19 6 19C4.619 19 3.5 17.881 3.5 16.5C3.5 15.119 4.619 14 6 14C7.381 14 8.5 15.119 8.5 16.5Z",op:"stroke",w:1.5},{d:"M11 7.5L20 7.5M11 16.5L20 16.5",op:"stroke",w:2}]},"feed.custom":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M12 8.376L12 15.624M8.829 10.188L15.171 13.812M15.171 10.188L8.829 13.812",op:"stroke",w:1.5}],solid:[{d:"M6.565 3.62L17.436 3.62C19.062 3.62 20.381 4.939 20.381 6.565L20.381 17.436C20.381 19.062 19.062 20.381 17.436 20.381L6.565 20.381C4.939 20.381 3.62 19.062 3.62 17.436L3.62 6.565C3.62 4.939 4.939 3.62 6.565 3.62Z",op:"fill"},{d:"M12 8.376L12 15.624M8.829 10.188L15.171 13.812M15.171 10.188L8.829 13.812",op:"clearStroke",w:1.75}]},"feed.input":{line:[{d:"M5 6.5L19 6.5C20.381 6.5 21.5 7.619 21.5 9L21.5 15C21.5 16.381 20.381 17.5 19 17.5L5 17.5C3.619 17.5 2.5 16.381 2.5 15L2.5 9C2.5 7.619 3.619 6.5 5 6.5Z",op:"stroke",w:1.5},{d:"M6.5 12L11 12M14.5 9.5L14.5 14.5",op:"stroke",w:1.5}],solid:[{d:"M5 5.75L19 5.75C20.795 5.75 22.25 7.205 22.25 9L22.25 15C22.25 16.795 20.795 18.25 19 18.25L5 18.25C3.205 18.25 1.75 16.795 1.75 15L1.75 9C1.75 7.205 3.205 5.75 5 5.75Z",op:"fill"},{d:"M6.5 12L11 12M14.5 9.5L14.5 14.5",op:"clearStroke",w:1.75}]},"field.clear":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"clearStroke",w:1.75}]},file:{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75}]},"file.new":{line:[{d:"M12.75 3L6.75 3C5.369 3 4.25 4.119 4.25 5.5L4.25 18.5C4.25 19.881 5.369 21 6.75 21L15.75 21C17.131 21 18.25 19.881 18.25 18.5L18.25 8.5Z",op:"stroke",w:1.5},{d:"M12.75 3L12.75 6.5C12.75 7.605 13.645 8.5 14.75 8.5L18.25 8.5",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M22 18C22 20.623 19.873 22.75 17.25 22.75C14.627 22.75 12.5 20.623 12.5 18C12.5 15.377 14.627 13.25 17.25 13.25C19.873 13.25 22 15.377 22 18Z",op:"clearFill"},{d:"M22 18C22 20.623 19.873 22.75 17.25 22.75C14.627 22.75 12.5 20.623 12.5 18C12.5 15.377 14.627 13.25 17.25 13.25C19.873 13.25 22 15.377 22 18Z",op:"clearStroke",w:1.5},{d:"M17.25 15.5L17.25 20.5M14.75 18L19.75 18",op:"stroke",w:1.5}],solid:[{d:"M12.75 3L6.75 3C5.369 3 4.25 4.119 4.25 5.5L4.25 18.5C4.25 19.881 5.369 21 6.75 21L15.75 21C17.131 21 18.25 19.881 18.25 18.5L18.25 8.5Z",op:"fill"},{d:"M12.75 3L6.75 3C5.369 3 4.25 4.119 4.25 5.5L4.25 18.5C4.25 19.881 5.369 21 6.75 21L15.75 21C17.131 21 18.25 19.881 18.25 18.5L18.25 8.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M12.75 3L12.75 6.5C12.75 7.605 13.645 8.5 14.75 8.5L18.25 8.5",op:"clearStroke",w:1.75},{d:"M22.25 18C22.25 20.761 20.011 23 17.25 23C14.489 23 12.25 20.761 12.25 18C12.25 15.239 14.489 13 17.25 13C20.011 13 22.25 15.239 22.25 18Z",op:"clearFill"},{d:"M17.25 15.5L17.25 20.5M14.75 18L19.75 18",op:"stroke",w:2,join:"miter"}]},"file.text":{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5},{d:"M8.5 12.5L15.5 12.5M8.5 16L13.5 16",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75},{d:"M8.5 12.5L15.5 12.5M8.5 16L13.5 16",op:"clearStroke",w:1.75}]},"file.type":{line:[{d:"M14.582 3.549L8.948 3.549C7.652 3.55 6.602 4.6 6.601 5.896L6.601 18.103C6.601 19.399 7.652 20.45 8.948 20.451L17.399 20.451C18.696 20.451 19.747 19.4 19.747 18.103L19.747 8.713Z",op:"stroke",w:1.5},{d:"M14.582 3.549L14.582 6.836C14.582 7.873 15.423 8.714 16.46 8.714L19.747 8.714",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M5.193 11.53L13.643 11.53C14.94 11.53 15.991 12.581 15.991 13.878L15.991 17.164C15.991 18.461 14.94 19.512 13.643 19.512L5.193 19.512C3.896 19.512 2.845 18.461 2.845 17.164L2.845 13.878C2.845 12.581 3.896 11.53 5.193 11.53Z",op:"clearFill"},{d:"M5.193 11.53L13.643 11.53C14.94 11.53 15.991 12.581 15.991 13.878L15.991 17.164C15.991 18.461 14.94 19.512 13.643 19.512L5.193 19.512C3.896 19.512 2.845 18.461 2.845 17.164L2.845 13.878C2.845 12.581 3.896 11.53 5.193 11.53Z",op:"clearStroke",w:1.5},{d:"M5.662 12.939L13.173 12.939C13.951 12.939 14.582 13.57 14.582 14.348L14.582 16.695C14.582 17.473 13.951 18.104 13.173 18.104L5.662 18.104C4.884 18.104 4.253 17.473 4.253 16.695L4.253 14.348C4.253 13.57 4.884 12.939 5.662 12.939Z",op:"stroke",w:1.5}],solid:[{d:"M14.582 3.549L8.948 3.549C7.652 3.55 6.602 4.6 6.601 5.896L6.601 18.103C6.601 19.399 7.652 20.45 8.948 20.451L17.399 20.451C18.696 20.451 19.747 19.4 19.747 18.103L19.747 8.713Z",op:"fill"},{d:"M14.582 3.549L8.948 3.549C7.652 3.55 6.602 4.6 6.601 5.896L6.601 18.103C6.601 19.399 7.652 20.45 8.948 20.451L17.399 20.451C18.696 20.451 19.747 19.4 19.747 18.103L19.747 8.713Z",op:"stroke",w:1.5,cap:"butt"},{d:"M14.582 3.549L14.582 6.836C14.582 7.873 15.423 8.714 16.46 8.714L19.747 8.714",op:"clearStroke",w:1.75},{d:"M5.193 11.53L13.643 11.53C14.94 11.53 15.991 12.581 15.991 13.878L15.991 17.164C15.991 18.461 14.94 19.512 13.643 19.512L5.193 19.512C3.896 19.512 2.845 18.461 2.845 17.164L2.845 13.878C2.845 12.581 3.896 11.53 5.193 11.53Z",op:"clearFill"},{d:"M5.662 12.939L13.173 12.939C13.951 12.939 14.582 13.57 14.582 14.348L14.582 16.695C14.582 17.473 13.951 18.104 13.173 18.104L5.662 18.104C4.884 18.104 4.253 17.473 4.253 16.695L4.253 14.348C4.253 13.57 4.884 12.939 5.662 12.939Z",op:"fill"}]},filter:{line:[{d:"M4 7L20 7M7 12L17 12M10 17L14 17",op:"stroke",w:1.5}],solid:[{d:"M4 7L20 7M7 12L17 12M10 17L14 17",op:"stroke",w:2}]},folder:{line:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"fill"},{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5}],cat:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M12 7.25L12 4.25L14.5 7M19.75 7.5L19.75 4.25L17.25 7",op:"stroke",w:1.5,accent:!0}]},"git.branch":{line:[{d:"M7 3.5L7 16.25M17 8.75C17 13.75 7 12.25 7 16.25",op:"stroke",w:1.5},{d:"M9.25 18.5C9.25 19.743 8.243 20.75 7 20.75C5.757 20.75 4.75 19.743 4.75 18.5C4.75 17.257 5.757 16.25 7 16.25C8.243 16.25 9.25 17.257 9.25 18.5Z",op:"stroke",w:1.5},{d:"M19.25 6.5C19.25 7.743 18.243 8.75 17 8.75C15.757 8.75 14.75 7.743 14.75 6.5C14.75 5.257 15.757 4.25 17 4.25C18.243 4.25 19.25 5.257 19.25 6.5Z",op:"stroke",w:1.5}],solid:[{d:"M7 3.5L7 16.25M17 8.75C17 13.75 7 12.25 7 16.25",op:"stroke",w:2},{d:"M9.5 18.5C9.5 19.881 8.381 21 7 21C5.619 21 4.5 19.881 4.5 18.5C4.5 17.119 5.619 16 7 16C8.381 16 9.5 17.119 9.5 18.5Z",op:"fill"},{d:"M19.5 6.5C19.5 7.881 18.381 9 17 9C15.619 9 14.5 7.881 14.5 6.5C14.5 5.119 15.619 4 17 4C18.381 4 19.5 5.119 19.5 6.5Z",op:"fill"}]},"git.pullrequest":{line:[{d:"M6.5 8L6.5 16M17.5 16L17.5 9.5C17.5 7.843 16.157 6.5 14.5 6.5L11.5 6.5M13.5 4L11 6.5L13.5 9",op:"stroke",w:1.5},{d:"M8.75 5.5C8.75 6.743 7.743 7.75 6.5 7.75C5.257 7.75 4.25 6.743 4.25 5.5C4.25 4.257 5.257 3.25 6.5 3.25C7.743 3.25 8.75 4.257 8.75 5.5Z",op:"stroke",w:1.5},{d:"M8.75 18.5C8.75 19.743 7.743 20.75 6.5 20.75C5.257 20.75 4.25 19.743 4.25 18.5C4.25 17.257 5.257 16.25 6.5 16.25C7.743 16.25 8.75 17.257 8.75 18.5Z",op:"stroke",w:1.5},{d:"M19.75 18.5C19.75 19.743 18.743 20.75 17.5 20.75C16.257 20.75 15.25 19.743 15.25 18.5C15.25 17.257 16.257 16.25 17.5 16.25C18.743 16.25 19.75 17.257 19.75 18.5Z",op:"stroke",w:1.5}],solid:[{d:"M6.5 8L6.5 16M17.5 16L17.5 9.5C17.5 7.843 16.157 6.5 14.5 6.5L11.5 6.5M13.5 4L11 6.5L13.5 9",op:"stroke",w:2},{d:"M9 5.5C9 6.881 7.881 8 6.5 8C5.119 8 4 6.881 4 5.5C4 4.119 5.119 3 6.5 3C7.881 3 9 4.119 9 5.5Z",op:"fill"},{d:"M9 18.5C9 19.881 7.881 21 6.5 21C5.119 21 4 19.881 4 18.5C4 17.119 5.119 16 6.5 16C7.881 16 9 17.119 9 18.5Z",op:"fill"},{d:"M20 18.5C20 19.881 18.881 21 17.5 21C16.119 21 15 19.881 15 18.5C15 17.119 16.119 16 17.5 16C18.881 16 20 17.119 20 18.5Z",op:"fill"}]},"git.worktree":{line:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M8.5 10.75L8.5 18.25M15.5 13.25C15.5 16.75 8.5 15.25 8.5 18.25",op:"stroke",w:1.5},{d:"M17.25 11.5C17.25 12.466 16.466 13.25 15.5 13.25C14.534 13.25 13.75 12.466 13.75 11.5C13.75 10.534 14.534 9.75 15.5 9.75C16.466 9.75 17.25 10.534 17.25 11.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"fill"},{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.5 10.75L8.5 18.25M15.5 13.25C15.5 16.75 8.5 15.25 8.5 18.25",op:"clearStroke",w:1.75},{d:"M17.25 11.5C17.25 12.466 16.466 13.25 15.5 13.25C14.534 13.25 13.75 12.466 13.75 11.5C13.75 10.534 14.534 9.75 15.5 9.75C16.466 9.75 17.25 10.534 17.25 11.5Z",op:"clearStroke",w:1.75}]},grant:{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M12 3L12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5}]},"group.collapsed.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},"group.new":{line:[{d:"M3.603 6.885C3.604 5.597 4.647 4.554 5.935 4.553L9.107 4.553C9.548 4.553 9.963 4.76 10.227 5.113L11.533 6.886L18.064 6.886C19.352 6.886 20.396 7.93 20.397 9.218L20.397 17.149C20.397 18.437 19.352 19.482 18.064 19.482L5.935 19.482C5.316 19.482 4.723 19.236 4.286 18.798C3.848 18.36 3.603 17.767 3.603 17.148Z",op:"stroke",w:1.5},{d:"M22.03 17.615C22.03 20.063 20.046 22.047 17.598 22.047C15.15 22.047 13.166 20.063 13.166 17.615C13.166 15.167 15.15 13.183 17.598 13.183C20.046 13.183 22.03 15.167 22.03 17.615Z",op:"clearFill"},{d:"M17.598 15.282L17.598 19.947M15.265 17.615L19.93 17.615",op:"stroke",w:1.5}],solid:[{d:"M3.603 6.885C3.604 5.597 4.647 4.554 5.935 4.553L9.107 4.553C9.548 4.553 9.963 4.76 10.227 5.113L11.533 6.886L18.064 6.886C19.352 6.886 20.396 7.93 20.397 9.218L20.397 17.149C20.397 18.437 19.352 19.482 18.064 19.482L5.935 19.482C5.316 19.482 4.723 19.236 4.286 18.798C3.848 18.36 3.603 17.767 3.603 17.148Z",op:"fill"},{d:"M3.603 6.885C3.604 5.597 4.647 4.554 5.935 4.553L9.107 4.553C9.548 4.553 9.963 4.76 10.227 5.113L11.533 6.886L18.064 6.886C19.352 6.886 20.396 7.93 20.397 9.218L20.397 17.149C20.397 18.437 19.352 19.482 18.064 19.482L5.935 19.482C5.316 19.482 4.723 19.236 4.286 18.798C3.848 18.36 3.603 17.767 3.603 17.148Z",op:"stroke",w:1.5},{d:"M22.263 17.615C22.263 20.191 20.174 22.28 17.598 22.28C15.022 22.28 12.933 20.191 12.933 17.615C12.933 15.039 15.022 12.95 17.598 12.95C20.174 12.95 22.263 15.039 22.263 17.615Z",op:"clearFill"},{d:"M17.598 15.282L17.598 19.947M15.265 17.615L19.93 17.615",op:"stroke",w:2,join:"miter"}]},history:{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 12L15 14",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 12L15 14",op:"clearStroke",w:1.75}]},"history.recent":{line:[{d:"M5.07 8C6.88 4.864 10.571 3.335 14.069 4.273C17.566 5.21 19.998 8.379 19.998 12C19.998 15.621 17.566 18.79 14.069 19.727C10.571 20.665 6.88 19.136 5.07 16",op:"stroke",w:1.5},{d:"M8.21 7.16L5.07 8L4.23 4.86",op:"stroke",w:1.5},{d:"M12 8L12 12L14.75 13.75",op:"stroke",w:1.5}],solid:[{d:"M5.07 8C6.88 4.864 10.571 3.335 14.069 4.273C17.566 5.21 19.998 8.379 19.998 12C19.998 15.621 17.566 18.79 14.069 19.727C10.571 20.665 6.88 19.136 5.07 16",op:"stroke",w:2},{d:"M8.21 7.16L5.07 8L4.23 4.86",op:"stroke",w:2},{d:"M12 8L12 12L14.75 13.75",op:"stroke",w:2}]},home:{line:[{d:"M3 11.75L12 4.25L21 11.75",op:"stroke",w:1.5},{d:"M5 10.25L5 18.5C5 19.328 5.672 20 6.5 20L17.5 20C18.328 20 19 19.328 19 18.5L19 10.25",op:"stroke",w:1.5},{d:"M10 20L10 15L14 15L14 20",op:"stroke",w:1.5}],solid:[{d:"M5 10.25L12 4.4L19 10.25L19 18.5C19 19.328 18.328 20 17.5 20L6.5 20C5.672 20 5 19.328 5 18.5Z",op:"fill"},{d:"M5 10.25L12 4.4L19 10.25L19 18.5C19 19.328 18.328 20 17.5 20L6.5 20C5.672 20 5 19.328 5 18.5Z",op:"stroke",w:1.5},{d:"M10 21L10 15L14 15L14 21",op:"clearFill"},{d:"M10 21L10 15L14 15L14 21",op:"clearStroke",w:1.75},{d:"M3 11.75L12 4.25L21 11.75",op:"stroke",w:1.5}]},"icon.clear":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5,dash:[2.67,4.006],dashPhase:1.335}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:2,dash:[2.67,4.006],dashPhase:1.335}]},"icon.missing":{line:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:1.5,dash:[3.639,3.639],dashPhase:-1.82},{d:"M9.944 9.944C9.943 8.916 10.7 8.045 11.718 7.904C12.736 7.763 13.702 8.394 13.981 9.384C14.26 10.373 13.765 11.416 12.823 11.827C12.32 12.056 12 12.512 12 13.061L12 13.372",op:"stroke",w:1.5},{d:"M12.914 16.113C12.914 16.618 12.505 17.027 12 17.027C11.495 17.027 11.086 16.618 11.086 16.113C11.086 15.608 11.495 15.199 12 15.199C12.505 15.199 12.914 15.608 12.914 16.113Z",op:"fill"}],solid:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:2,dash:[3.639,3.639],dashPhase:-1.82},{d:"M9.944 9.944C9.943 8.916 10.7 8.045 11.718 7.904C12.736 7.763 13.702 8.394 13.981 9.384C14.26 10.373 13.765 11.416 12.823 11.827C12.32 12.056 12 12.512 12 13.061L12 13.372",op:"stroke",w:2},{d:"M13.051 16.113C13.051 16.693 12.58 17.164 12 17.164C11.42 17.164 10.949 16.693 10.949 16.113C10.949 15.533 11.42 15.062 12 15.062C12.58 15.062 13.051 15.533 13.051 16.113Z",op:"fill"}],cat:[{d:"M6.516 5.602L17.484 5.602C18.746 5.602 19.769 6.625 19.769 7.887L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 7.887C4.231 6.625 5.254 5.602 6.516 5.602Z",op:"stroke",w:1.5,dash:[3.468,3.468],dashPhase:-1.734},{d:"M9.944 10.857C9.943 9.829 10.7 8.958 11.718 8.817C12.736 8.676 13.702 9.307 13.981 10.297C14.26 11.286 13.765 12.329 12.823 12.74C12.32 12.969 12 13.425 12 13.974L12 14.285",op:"stroke",w:1.5},{d:"M12.914 16.799C12.914 17.304 12.505 17.713 12 17.713C11.495 17.713 11.086 17.304 11.086 16.799C11.086 16.294 11.495 15.885 12 15.885C12.505 15.885 12.914 16.294 12.914 16.799Z",op:"fill"},{d:"M6.059 5.602L6.059 3.317L7.887 5.145M17.941 5.602L17.941 3.317L16.113 5.145",op:"stroke",w:1.5,accent:!0}]},inbox:{line:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"stroke",w:1.5},{d:"M8.28 8.315L15.72 8.315M7.582 10.872L16.417 10.872",op:"stroke",w:1.5}],solid:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"fill"},{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5,cap:"butt"},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"clearStroke",w:1.75},{d:"M8.28 8.315L15.72 8.315M7.582 10.872L16.417 10.872",op:"clearStroke",w:1.75}]},"inbox.empty":{line:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"stroke",w:1.5}],solid:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"fill"},{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5,cap:"butt"},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"clearStroke",w:1.75}],cat:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"stroke",w:1.5},{d:"M9.675 7.85L12.93 7.85L9.675 11.105L12.93 11.105",op:"stroke",w:1.5,accent:!0}]},integration:{line:[{d:"M4.5 9C4.5 7.895 5.395 7 6.5 7L8.5 7C8.5 5.757 9.507 4.75 10.75 4.75C11.993 4.75 13 5.757 13 7L15 7C16.105 7 17 7.895 17 9L17 11C18.243 11 19.25 12.007 19.25 13.25C19.25 14.493 18.243 15.5 17 15.5L17 17.5C17 18.605 16.105 19.5 15 19.5L6.5 19.5C5.395 19.5 4.5 18.605 4.5 17.5Z",op:"stroke",w:1.5}],solid:[{d:"M4.5 9C4.5 7.895 5.395 7 6.5 7L8.5 7C8.5 5.757 9.507 4.75 10.75 4.75C11.993 4.75 13 5.757 13 7L15 7C16.105 7 17 7.895 17 9L17 11C18.243 11 19.25 12.007 19.25 13.25C19.25 14.493 18.243 15.5 17 15.5L17 17.5C17 18.605 16.105 19.5 15 19.5L6.5 19.5C5.395 19.5 4.5 18.605 4.5 17.5Z",op:"fill"},{d:"M4.5 9C4.5 7.895 5.395 7 6.5 7L8.5 7C8.5 5.757 9.507 4.75 10.75 4.75C11.993 4.75 13 5.757 13 7L15 7C16.105 7 17 7.895 17 9L17 11C18.243 11 19.25 12.007 19.25 13.25C19.25 14.493 18.243 15.5 17 15.5L17 17.5C17 18.605 16.105 19.5 15 19.5L6.5 19.5C5.395 19.5 4.5 18.605 4.5 17.5Z",op:"stroke",w:1.5}]},keyboard:{line:[{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"stroke",w:1.5},{d:"M6.5 10L6.51 10M10 10L10.01 10M14 10L14.01 10M17.5 10L17.51 10M8.5 14L15.5 14",op:"stroke",w:1.5}],solid:[{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"fill"},{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"stroke",w:1.5},{d:"M6.5 10L6.51 10M10 10L10.01 10M14 10L14.01 10M17.5 10L17.51 10M8.5 14L15.5 14",op:"clearStroke",w:1.75}],cat:[{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"stroke",w:1.5},{d:"M6.5 10L6.51 10M10 10L10.01 10M14 10L14.01 10M17.5 10L17.51 10M8.5 14L15.5 14",op:"stroke",w:1.5},{d:"M12.5 6L12.5 3.5L14.5 5.5M19 6L19 3.5L17 5.5",op:"stroke",w:1.5,accent:!0}]},"keyboard.hotkey":{line:[{d:"M9 9L15 9L15 15L9 15ZM9 9L7 9C5.895 9 5 8.105 5 7C5 5.895 5.895 5 7 5C8.105 5 9 5.895 9 7ZM15 9L15 7C15 5.895 15.895 5 17 5C18.105 5 19 5.895 19 7C19 8.105 18.105 9 17 9ZM15 15L17 15C18.105 15 19 15.895 19 17C19 18.105 18.105 19 17 19C15.895 19 15 18.105 15 17ZM9 15L9 17C9 18.105 8.105 19 7 19C5.895 19 5 18.105 5 17C5 15.895 5.895 15 7 15Z",op:"stroke",w:1.5}],solid:[{d:"M9 9L15 9L15 15L9 15ZM9 9L7 9C5.895 9 5 8.105 5 7C5 5.895 5.895 5 7 5C8.105 5 9 5.895 9 7ZM15 9L15 7C15 5.895 15.895 5 17 5C18.105 5 19 5.895 19 7C19 8.105 18.105 9 17 9ZM15 15L17 15C18.105 15 19 15.895 19 17C19 18.105 18.105 19 17 19C15.895 19 15 18.105 15 17ZM9 15L9 17C9 18.105 8.105 19 7 19C5.895 19 5 18.105 5 17C5 15.895 5.895 15 7 15Z",op:"stroke",w:2}]},link:{line:[{d:"M10.5 13.5C11.158 14.172 12.059 14.551 13 14.551C13.941 14.551 14.842 14.172 15.5 13.5L18.5 10.5C19.881 9.119 19.881 6.881 18.5 5.5C17.119 4.119 14.881 4.119 13.5 5.5L12.5 6.5M13.5 10.5C12.842 9.828 11.941 9.449 11 9.449C10.059 9.449 9.158 9.828 8.5 10.5L5.5 13.5C4.119 14.881 4.119 17.119 5.5 18.5C6.881 19.881 9.119 19.881 10.5 18.5L11.5 17.5",op:"stroke",w:1.5}],solid:[{d:"M10.5 13.5C11.158 14.172 12.059 14.551 13 14.551C13.941 14.551 14.842 14.172 15.5 13.5L18.5 10.5C19.881 9.119 19.881 6.881 18.5 5.5C17.119 4.119 14.881 4.119 13.5 5.5L12.5 6.5M13.5 10.5C12.842 9.828 11.941 9.449 11 9.449C10.059 9.449 9.158 9.828 8.5 10.5L5.5 13.5C4.119 14.881 4.119 17.119 5.5 18.5C6.881 19.881 9.119 19.881 10.5 18.5L11.5 17.5",op:"stroke",w:2}]},"link.external":{line:[{d:"M5.25 18.75L18.75 5.25M7.5 5.25L18.75 5.25L18.75 16.5",op:"stroke",w:1.5}],solid:[{d:"M5.25 18.75L18.75 5.25M7.5 5.25L18.75 5.25L18.75 16.5",op:"stroke",w:2}]},"link.open.newtab":{line:[{d:"M11.067 4.536L6.868 4.536C5.58 4.537 4.537 5.58 4.536 6.868L4.536 17.131C4.536 18.419 5.58 19.463 6.868 19.464L17.131 19.464C18.419 19.464 19.464 18.419 19.464 17.131L19.464 12.933",op:"stroke",w:1.5},{d:"M12.466 11.533L19.464 4.536M14.332 4.536L19.464 4.536L19.464 9.667",op:"stroke",w:1.5}],solid:[{d:"M6.402 4.069L17.597 4.069C18.885 4.069 19.93 5.114 19.93 6.402L19.93 17.597C19.93 18.885 18.885 19.93 17.597 19.93L6.402 19.93C5.114 19.93 4.069 18.885 4.069 17.597L4.069 6.402C4.069 5.114 5.114 4.069 6.402 4.069Z",op:"fill"},{d:"M6.402 4.069L17.597 4.069C18.885 4.069 19.93 5.114 19.93 6.402L19.93 17.597C19.93 18.885 18.885 19.93 17.597 19.93L6.402 19.93C5.114 19.93 4.069 18.885 4.069 17.597L4.069 6.402C4.069 5.114 5.114 4.069 6.402 4.069Z",op:"stroke",w:1.5},{d:"M9.667 14.332L14.332 9.667M10.6 9.667L14.332 9.667L14.332 13.399",op:"clearStroke",w:1.75}]},"link.web":{line:[{d:"M20.424 12C20.424 16.652 16.652 20.424 12 20.424C7.348 20.424 3.576 16.652 3.576 12C3.576 7.348 7.348 3.576 12 3.576C16.652 3.576 20.424 7.348 20.424 12Z",op:"stroke",w:1.5},{d:"M15.51 12C15.51 16.652 13.939 20.424 12 20.424C10.061 20.424 8.49 16.652 8.49 12C8.49 7.348 10.061 3.576 12 3.576C13.939 3.576 15.51 7.348 15.51 12Z",op:"stroke",w:1.5},{d:"M3.576 12L20.424 12",op:"stroke",w:1.5}],solid:[{d:"M21.126 12C21.126 17.04 17.04 21.126 12 21.126C6.96 21.126 2.874 17.04 2.874 12C2.874 6.96 6.96 2.874 12 2.874C17.04 2.874 21.126 6.96 21.126 12Z",op:"fill"},{d:"M15.51 12C15.51 16.911 13.939 20.892 12 20.892C10.061 20.892 8.49 16.911 8.49 12C8.49 7.089 10.061 3.108 12 3.108C13.939 3.108 15.51 7.089 15.51 12Z",op:"clearStroke",w:1.75},{d:"M2.64 12L21.36 12",op:"clearStroke",w:1.75}]},"list.bullet.item":{line:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:1.5}],solid:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"fill"},{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:1.5}]},location:{line:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}],solid:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"fill"},{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}]},machine:{line:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5}],solid:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"fill"},{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:2}]},"machine.local":{line:[{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"stroke",w:1.5},{d:"M2.5 18.5L21.5 18.5",op:"stroke",w:1.5}],solid:[{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"fill"},{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"stroke",w:1.5},{d:"M2.5 18.5L21.5 18.5",op:"stroke",w:2}],cat:[{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"stroke",w:1.5},{d:"M2.5 18.5L21.5 18.5",op:"stroke",w:1.5},{d:"M6.5 5L6.5 2.75L8.25 4.5M12.5 5L12.5 2.75L10.75 4.5",op:"stroke",w:1.5,accent:!0}]},"machine.mac":{line:[{d:"M5.5 6.25L18.5 6.25C19.881 6.25 21 7.369 21 8.75L21 12.25C21 13.631 19.881 14.75 18.5 14.75L5.5 14.75C4.119 14.75 3 13.631 3 12.25L3 8.75C3 7.369 4.119 6.25 5.5 6.25Z",op:"stroke",w:1.5},{d:"M6.5 17.75L17.5 17.75",op:"stroke",w:1.5},{d:"M7.75 10.5C7.75 11.052 7.302 11.5 6.75 11.5C6.198 11.5 5.75 11.052 5.75 10.5C5.75 9.948 6.198 9.5 6.75 9.5C7.302 9.5 7.75 9.948 7.75 10.5Z",op:"fill"}],solid:[{d:"M5.5 6.25L18.5 6.25C19.881 6.25 21 7.369 21 8.75L21 12.25C21 13.631 19.881 14.75 18.5 14.75L5.5 14.75C4.119 14.75 3 13.631 3 12.25L3 8.75C3 7.369 4.119 6.25 5.5 6.25Z",op:"fill"},{d:"M5.5 6.25L18.5 6.25C19.881 6.25 21 7.369 21 8.75L21 12.25C21 13.631 19.881 14.75 18.5 14.75L5.5 14.75C4.119 14.75 3 13.631 3 12.25L3 8.75C3 7.369 4.119 6.25 5.5 6.25Z",op:"stroke",w:1.5},{d:"M7.85 10.5C7.85 11.108 7.358 11.6 6.75 11.6C6.142 11.6 5.65 11.108 5.65 10.5C5.65 9.892 6.142 9.4 6.75 9.4C7.358 9.4 7.85 9.892 7.85 10.5Z",op:"clearFill"},{d:"M6.5 17.75L17.5 17.75",op:"stroke",w:2}]},"machine.remote":{line:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.4 7.725C8.4 8.222 7.997 8.625 7.5 8.625C7.003 8.625 6.6 8.222 6.6 7.725C6.6 7.228 7.003 6.825 7.5 6.825C7.997 6.825 8.4 7.228 8.4 7.725Z",op:"fill"},{d:"M8.4 16.275C8.4 16.772 7.997 17.175 7.5 17.175C7.003 17.175 6.6 16.772 6.6 16.275C6.6 15.778 7.003 15.375 7.5 15.375C7.997 15.375 8.4 15.778 8.4 16.275Z",op:"fill"}],solid:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"fill"},{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"fill"},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.535 7.725C8.535 8.297 8.072 8.76 7.5 8.76C6.928 8.76 6.465 8.297 6.465 7.725C6.465 7.153 6.928 6.69 7.5 6.69C8.072 6.69 8.535 7.153 8.535 7.725Z",op:"clearFill"},{d:"M8.535 16.275C8.535 16.847 8.072 17.31 7.5 17.31C6.928 17.31 6.465 16.847 6.465 16.275C6.465 15.703 6.928 15.24 7.5 15.24C8.072 15.24 8.535 15.703 8.535 16.275Z",op:"clearFill"}]},"mobile.pair":{line:[{d:"M5.75 3.5L9.75 3.5C10.993 3.5 12 4.507 12 5.75L12 18.25C12 19.493 10.993 20.5 9.75 20.5L5.75 20.5C4.507 20.5 3.5 19.493 3.5 18.25L3.5 5.75C3.5 4.507 4.507 3.5 5.75 3.5Z",op:"stroke",w:1.5},{d:"M15.25 9.25C16.71 10.793 16.71 13.207 15.25 14.75M18.25 6.75C21.109 9.666 21.109 14.334 18.25 17.25",op:"stroke",w:1.5}],solid:[{d:"M5.75 3.5L9.75 3.5C10.993 3.5 12 4.507 12 5.75L12 18.25C12 19.493 10.993 20.5 9.75 20.5L5.75 20.5C4.507 20.5 3.5 19.493 3.5 18.25L3.5 5.75C3.5 4.507 4.507 3.5 5.75 3.5Z",op:"fill"},{d:"M5.75 3.5L9.75 3.5C10.993 3.5 12 4.507 12 5.75L12 18.25C12 19.493 10.993 20.5 9.75 20.5L5.75 20.5C4.507 20.5 3.5 19.493 3.5 18.25L3.5 5.75C3.5 4.507 4.507 3.5 5.75 3.5Z",op:"stroke",w:1.5},{d:"M15.25 9.25C16.71 10.793 16.71 13.207 15.25 14.75M18.25 6.75C21.109 9.666 21.109 14.334 18.25 17.25",op:"stroke",w:2}]},"mobile.pair.qr":{line:[{d:"M5.532 4.146L8.766 4.146C9.531 4.146 10.152 4.767 10.152 5.532L10.152 8.766C10.152 9.531 9.531 10.152 8.766 10.152L5.532 10.152C4.767 10.152 4.146 9.531 4.146 8.766L4.146 5.532C4.146 4.767 4.767 4.146 5.532 4.146Z",op:"stroke",w:1.5},{d:"M8.165 7.149C8.165 7.71 7.71 8.165 7.149 8.165C6.588 8.165 6.133 7.71 6.133 7.149C6.133 6.588 6.588 6.133 7.149 6.133C7.71 6.133 8.165 6.588 8.165 7.149Z",op:"fill"},{d:"M15.234 4.146L18.468 4.146C19.233 4.146 19.854 4.767 19.854 5.532L19.854 8.766C19.854 9.531 19.233 10.152 18.468 10.152L15.234 10.152C14.469 10.152 13.848 9.531 13.848 8.766L13.848 5.532C13.848 4.767 14.469 4.146 15.234 4.146Z",op:"stroke",w:1.5},{d:"M17.867 7.149C17.867 7.71 17.412 8.165 16.851 8.165C16.29 8.165 15.835 7.71 15.835 7.149C15.835 6.588 16.29 6.133 16.851 6.133C17.412 6.133 17.867 6.588 17.867 7.149Z",op:"fill"},{d:"M5.532 13.848L8.766 13.848C9.531 13.848 10.152 14.469 10.152 15.234L10.152 18.468C10.152 19.233 9.531 19.854 8.766 19.854L5.532 19.854C4.767 19.854 4.146 19.233 4.146 18.468L4.146 15.234C4.146 14.469 4.767 13.848 5.532 13.848Z",op:"stroke",w:1.5},{d:"M8.165 16.851C8.165 17.412 7.71 17.867 7.149 17.867C6.588 17.867 6.133 17.412 6.133 16.851C6.133 16.29 6.588 15.835 7.149 15.835C7.71 15.835 8.165 16.29 8.165 16.851Z",op:"fill"},{d:"M13.848 13.386L15.234 13.386C15.489 13.386 15.696 13.593 15.696 13.848L15.696 15.234C15.696 15.489 15.489 15.696 15.234 15.696L13.848 15.696C13.593 15.696 13.386 15.489 13.386 15.234L13.386 13.848C13.386 13.593 13.593 13.386 13.848 13.386Z",op:"fill"},{d:"M17.775 13.386L19.161 13.386C19.416 13.386 19.623 13.593 19.623 13.848L19.623 15.234C19.623 15.489 19.416 15.696 19.161 15.696L17.775 15.696C17.52 15.696 17.313 15.489 17.313 15.234L17.313 13.848C17.313 13.593 17.52 13.386 17.775 13.386Z",op:"fill"},{d:"M13.848 17.313L15.234 17.313C15.489 17.313 15.696 17.52 15.696 17.775L15.696 19.161C15.696 19.416 15.489 19.623 15.234 19.623L13.848 19.623C13.593 19.623 13.386 19.416 13.386 19.161L13.386 17.775C13.386 17.52 13.593 17.313 13.848 17.313Z",op:"fill"},{d:"M17.775 17.313L19.161 17.313C19.416 17.313 19.623 17.52 19.623 17.775L19.623 19.161C19.623 19.416 19.416 19.623 19.161 19.623L17.775 19.623C17.52 19.623 17.313 19.416 17.313 19.161L17.313 17.775C17.313 17.52 17.52 17.313 17.775 17.313Z",op:"fill"},{d:"M15.927 15.465L17.313 15.465C17.568 15.465 17.775 15.672 17.775 15.927L17.775 17.313C17.775 17.568 17.568 17.775 17.313 17.775L15.927 17.775C15.672 17.775 15.465 17.568 15.465 17.313L15.465 15.927C15.465 15.672 15.672 15.465 15.927 15.465Z",op:"fill"}],solid:[{d:"M5.532 4.146L8.766 4.146C9.531 4.146 10.152 4.767 10.152 5.532L10.152 8.766C10.152 9.531 9.531 10.152 8.766 10.152L5.532 10.152C4.767 10.152 4.146 9.531 4.146 8.766L4.146 5.532C4.146 4.767 4.767 4.146 5.532 4.146Z",op:"fill"},{d:"M5.532 4.146L8.766 4.146C9.531 4.146 10.152 4.767 10.152 5.532L10.152 8.766C10.152 9.531 9.531 10.152 8.766 10.152L5.532 10.152C4.767 10.152 4.146 9.531 4.146 8.766L4.146 5.532C4.146 4.767 4.767 4.146 5.532 4.146Z",op:"stroke",w:1.5},{d:"M15.234 4.146L18.468 4.146C19.233 4.146 19.854 4.767 19.854 5.532L19.854 8.766C19.854 9.531 19.233 10.152 18.468 10.152L15.234 10.152C14.469 10.152 13.848 9.531 13.848 8.766L13.848 5.532C13.848 4.767 14.469 4.146 15.234 4.146Z",op:"fill"},{d:"M15.234 4.146L18.468 4.146C19.233 4.146 19.854 4.767 19.854 5.532L19.854 8.766C19.854 9.531 19.233 10.152 18.468 10.152L15.234 10.152C14.469 10.152 13.848 9.531 13.848 8.766L13.848 5.532C13.848 4.767 14.469 4.146 15.234 4.146Z",op:"stroke",w:1.5},{d:"M5.532 13.848L8.766 13.848C9.531 13.848 10.152 14.469 10.152 15.234L10.152 18.468C10.152 19.233 9.531 19.854 8.766 19.854L5.532 19.854C4.767 19.854 4.146 19.233 4.146 18.468L4.146 15.234C4.146 14.469 4.767 13.848 5.532 13.848Z",op:"fill"},{d:"M5.532 13.848L8.766 13.848C9.531 13.848 10.152 14.469 10.152 15.234L10.152 18.468C10.152 19.233 9.531 19.854 8.766 19.854L5.532 19.854C4.767 19.854 4.146 19.233 4.146 18.468L4.146 15.234C4.146 14.469 4.767 13.848 5.532 13.848Z",op:"stroke",w:1.5},{d:"M8.304 7.149C8.304 7.787 7.787 8.304 7.149 8.304C6.511 8.304 5.994 7.787 5.994 7.149C5.994 6.511 6.511 5.994 7.149 5.994C7.787 5.994 8.304 6.511 8.304 7.149Z",op:"clearFill"},{d:"M18.006 7.149C18.006 7.787 17.489 8.304 16.851 8.304C16.213 8.304 15.696 7.787 15.696 7.149C15.696 6.511 16.213 5.994 16.851 5.994C17.489 5.994 18.006 6.511 18.006 7.149Z",op:"clearFill"},{d:"M8.304 16.851C8.304 17.489 7.787 18.006 7.149 18.006C6.511 18.006 5.994 17.489 5.994 16.851C5.994 16.213 6.511 15.696 7.149 15.696C7.787 15.696 8.304 16.213 8.304 16.851Z",op:"clearFill"},{d:"M13.848 13.386L15.234 13.386C15.489 13.386 15.696 13.593 15.696 13.848L15.696 15.234C15.696 15.489 15.489 15.696 15.234 15.696L13.848 15.696C13.593 15.696 13.386 15.489 13.386 15.234L13.386 13.848C13.386 13.593 13.593 13.386 13.848 13.386Z",op:"fill"},{d:"M17.775 13.386L19.161 13.386C19.416 13.386 19.623 13.593 19.623 13.848L19.623 15.234C19.623 15.489 19.416 15.696 19.161 15.696L17.775 15.696C17.52 15.696 17.313 15.489 17.313 15.234L17.313 13.848C17.313 13.593 17.52 13.386 17.775 13.386Z",op:"fill"},{d:"M13.848 17.313L15.234 17.313C15.489 17.313 15.696 17.52 15.696 17.775L15.696 19.161C15.696 19.416 15.489 19.623 15.234 19.623L13.848 19.623C13.593 19.623 13.386 19.416 13.386 19.161L13.386 17.775C13.386 17.52 13.593 17.313 13.848 17.313Z",op:"fill"},{d:"M17.775 17.313L19.161 17.313C19.416 17.313 19.623 17.52 19.623 17.775L19.623 19.161C19.623 19.416 19.416 19.623 19.161 19.623L17.775 19.623C17.52 19.623 17.313 19.416 17.313 19.161L17.313 17.775C17.313 17.52 17.52 17.313 17.775 17.313Z",op:"fill"},{d:"M15.927 15.465L17.313 15.465C17.568 15.465 17.775 15.672 17.775 15.927L17.775 17.313C17.775 17.568 17.568 17.775 17.313 17.775L15.927 17.775C15.672 17.775 15.465 17.568 15.465 17.313L15.465 15.927C15.465 15.672 15.672 15.465 15.927 15.465Z",op:"fill"}]},"mode.build":{line:[{d:"M13.763 4.727L19.773 10.737C20.261 11.226 20.261 12.017 19.773 12.505L18.005 14.273C17.517 14.761 16.726 14.761 16.237 14.273L10.227 8.263C9.739 7.774 9.739 6.983 10.227 6.495L11.995 4.727C12.483 4.239 13.274 4.239 13.763 4.727Z",op:"stroke",w:1.5},{d:"M4.5 19.5L12.75 11.25",op:"stroke",w:1.5}],solid:[{d:"M14.293 4.197L20.303 10.207C21.084 10.988 21.084 12.254 20.303 13.036L18.536 14.803C17.754 15.584 16.488 15.584 15.707 14.803L9.697 8.793C8.916 8.012 8.916 6.746 9.697 5.964L11.464 4.197C12.246 3.416 13.512 3.416 14.293 4.197Z",op:"fill"},{d:"M4.5 19.5L12.75 11.25",op:"stroke",w:2.25,join:"miter"}]},"mode.plan":{line:[{d:"M8.5 5L7 5C5.895 5 5 5.895 5 7L5 19C5 20.105 5.895 21 7 21L17 21C18.105 21 19 20.105 19 19L19 7C19 5.895 18.105 5 17 5L15.5 5",op:"stroke",w:1.5},{d:"M9.75 3L14.25 3C14.94 3 15.5 3.56 15.5 4.25L15.5 5.75C15.5 6.44 14.94 7 14.25 7L9.75 7C9.06 7 8.5 6.44 8.5 5.75L8.5 4.25C8.5 3.56 9.06 3 9.75 3Z",op:"stroke",w:1.5},{d:"M8.75 11.5L9.75 12.5L11.75 10.5M14 11.5L15.5 11.5M8.75 16L15.25 16",op:"stroke",w:1.5}],solid:[{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"fill"},{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.75 11.5L9.75 12.5L11.75 10.5M14 11.5L15.5 11.5M8.75 16L15.25 16",op:"clearStroke",w:1.75},{d:"M8.5 7.5L15.5 7.5",op:"clearStroke",w:2.5},{d:"M9.75 2.75L14.25 2.75C14.94 2.75 15.5 3.31 15.5 4L15.5 5.25C15.5 5.94 14.94 6.5 14.25 6.5L9.75 6.5C9.06 6.5 8.5 5.94 8.5 5.25L8.5 4C8.5 3.31 9.06 2.75 9.75 2.75Z",op:"fill"}]},"nav.back":{line:[{d:"M19.5 12L4.5 12M10.5 6L4.5 12L10.5 18",op:"stroke",w:1.5}],solid:[{d:"M19.5 12L4.5 12M10.5 6L4.5 12L10.5 18",op:"stroke",w:2}]},"nav.forward":{line:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:1.5}],solid:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:2}]},"nav.previous":{line:[{d:"M15.375 5.25L8.625 12L15.375 18.75",op:"stroke",w:1.5}],solid:[{d:"M15.375 5.25L8.625 12L15.375 18.75",op:"stroke",w:2}]},"nav.previous.match":{line:[{d:"M5.25 15.375L12 8.625L18.75 15.375",op:"stroke",w:1.5}],solid:[{d:"M5.25 15.375L12 8.625L18.75 15.375",op:"stroke",w:2}]},network:{line:[{d:"M10.5 3.5L13.5 3.5C14.328 3.5 15 4.172 15 5L15 7C15 7.828 14.328 8.5 13.5 8.5L10.5 8.5C9.672 8.5 9 7.828 9 7L9 5C9 4.172 9.672 3.5 10.5 3.5Z",op:"stroke",w:1.5},{d:"M5 15.5L8 15.5C8.828 15.5 9.5 16.172 9.5 17L9.5 19C9.5 19.828 8.828 20.5 8 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 17C3.5 16.172 4.172 15.5 5 15.5Z",op:"stroke",w:1.5},{d:"M16 15.5L19 15.5C19.828 15.5 20.5 16.172 20.5 17L20.5 19C20.5 19.828 19.828 20.5 19 20.5L16 20.5C15.172 20.5 14.5 19.828 14.5 19L14.5 17C14.5 16.172 15.172 15.5 16 15.5Z",op:"stroke",w:1.5},{d:"M12 8.5L12 12M6.5 15.5L6.5 13.5C6.5 12.672 7.172 12 8 12L16 12C16.828 12 17.5 12.672 17.5 13.5L17.5 15.5",op:"stroke",w:1.5}],solid:[{d:"M10.5 3.5L13.5 3.5C14.328 3.5 15 4.172 15 5L15 7C15 7.828 14.328 8.5 13.5 8.5L10.5 8.5C9.672 8.5 9 7.828 9 7L9 5C9 4.172 9.672 3.5 10.5 3.5Z",op:"fill"},{d:"M10.5 3.5L13.5 3.5C14.328 3.5 15 4.172 15 5L15 7C15 7.828 14.328 8.5 13.5 8.5L10.5 8.5C9.672 8.5 9 7.828 9 7L9 5C9 4.172 9.672 3.5 10.5 3.5Z",op:"stroke",w:1.5},{d:"M5 15.5L8 15.5C8.828 15.5 9.5 16.172 9.5 17L9.5 19C9.5 19.828 8.828 20.5 8 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 17C3.5 16.172 4.172 15.5 5 15.5Z",op:"fill"},{d:"M5 15.5L8 15.5C8.828 15.5 9.5 16.172 9.5 17L9.5 19C9.5 19.828 8.828 20.5 8 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 17C3.5 16.172 4.172 15.5 5 15.5Z",op:"stroke",w:1.5},{d:"M16 15.5L19 15.5C19.828 15.5 20.5 16.172 20.5 17L20.5 19C20.5 19.828 19.828 20.5 19 20.5L16 20.5C15.172 20.5 14.5 19.828 14.5 19L14.5 17C14.5 16.172 15.172 15.5 16 15.5Z",op:"fill"},{d:"M16 15.5L19 15.5C19.828 15.5 20.5 16.172 20.5 17L20.5 19C20.5 19.828 19.828 20.5 19 20.5L16 20.5C15.172 20.5 14.5 19.828 14.5 19L14.5 17C14.5 16.172 15.172 15.5 16 15.5Z",op:"stroke",w:1.5},{d:"M12 8.5L12 12M6.5 15.5L6.5 13.5C6.5 12.672 7.172 12 8 12L16 12C16.828 12 17.5 12.672 17.5 13.5L17.5 15.5",op:"stroke",w:2}]},notification:{line:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}],solid:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"fill"},{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}]},"overflow.more":{line:[{d:"M5.25 5.25L12 12L5.25 18.75M12 5.25L18.75 12L12 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L12 12L5.25 18.75M12 5.25L18.75 12L12 18.75",op:"stroke",w:2}]},package:{line:[{d:"M12 3L20 7.5L20 16.5L12 21L4 16.5L4 7.5Z",op:"stroke",w:1.5},{d:"M4 7.5L12 12L20 7.5M12 12L12 21M8 5.25L16 9.75",op:"stroke",w:1.5}],solid:[{d:"M12 3L20 7.5L20 16.5L12 21L4 16.5L4 7.5Z",op:"fill"},{d:"M12 3L20 7.5L20 16.5L12 21L4 16.5L4 7.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M4 7.5L12 12L20 7.5M12 12L12 21M8 5.25L16 9.75",op:"clearStroke",w:1.75}],cat:[{d:"M12 5L20 9L20 17L12 21L4 17L4 9Z",op:"stroke",w:1.5},{d:"M4 9L12 13L20 9M12 13L12 21",op:"stroke",w:1.5},{d:"M5.5 8.25L5.5 4.75L8.5 6.75M18.5 8.25L18.5 4.75L15.5 6.75",op:"stroke",w:1.5,accent:!0}]},"pane.split.down":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 12.68L17.21 12.68C17.71 12.68 18.116 13.086 18.116 13.586L18.116 16.304C18.116 16.804 17.71 17.21 17.21 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 13.586C5.885 13.086 6.291 12.68 6.791 12.68Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M6.112 5.432L17.889 5.432C18.765 5.432 19.475 6.142 19.475 7.018L19.475 10.188C19.475 11.064 18.765 11.774 17.889 11.774L6.112 11.774C5.236 11.774 4.526 11.064 4.526 10.188L4.526 7.018C4.526 6.142 5.236 5.432 6.112 5.432Z",op:"clearFill"}]},"pane.split.left":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 6.791L9.509 6.791C10.009 6.791 10.415 7.197 10.415 7.697L10.415 16.304C10.415 16.804 10.009 17.21 9.509 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 7.697C5.885 7.197 6.291 6.791 6.791 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M13.36 5.432L17.889 5.432C18.765 5.432 19.475 6.142 19.475 7.018L19.475 16.983C19.475 17.859 18.765 18.569 17.889 18.569L13.36 18.569C12.484 18.569 11.774 17.859 11.774 16.983L11.774 7.018C11.774 6.142 12.484 5.432 13.36 5.432Z",op:"clearFill"}]},"pane.split.right":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M14.491 6.791L17.209 6.791C17.709 6.791 18.115 7.197 18.115 7.697L18.115 16.304C18.115 16.804 17.709 17.21 17.209 17.21L14.491 17.21C13.991 17.21 13.585 16.804 13.585 16.304L13.585 7.697C13.585 7.197 13.991 6.791 14.491 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M6.112 5.432L10.641 5.432C11.517 5.432 12.227 6.142 12.227 7.018L12.227 16.983C12.227 17.859 11.517 18.569 10.641 18.569L6.112 18.569C5.236 18.569 4.526 17.859 4.526 16.983L4.526 7.018C4.526 6.142 5.236 5.432 6.112 5.432Z",op:"clearFill"}]},"pane.split.up":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 6.791L17.21 6.791C17.71 6.791 18.116 7.197 18.116 7.697L18.116 10.415C18.116 10.915 17.71 11.321 17.21 11.321L6.791 11.321C6.291 11.321 5.885 10.915 5.885 10.415L5.885 7.697C5.885 7.197 6.291 6.791 6.791 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M6.112 12.226L17.889 12.226C18.765 12.226 19.475 12.936 19.475 13.812L19.475 16.982C19.475 17.858 18.765 18.568 17.889 18.568L6.112 18.568C5.236 18.568 4.526 17.858 4.526 16.982L4.526 13.812C4.526 12.936 5.236 12.226 6.112 12.226Z",op:"clearFill"}]},"permission.consent":{line:[{d:"M13.75 8C13.75 10.071 12.071 11.75 10 11.75C7.929 11.75 6.25 10.071 6.25 8C6.25 5.929 7.929 4.25 10 4.25C12.071 4.25 13.75 5.929 13.75 8Z",op:"stroke",w:1.5},{d:"M3.5 20.5C3.509 18.02 4.929 15.76 7.16 14.677C9.391 13.593 12.045 13.874 14 15.4",op:"stroke",w:1.5},{d:"M15 18L17 20L21 15.5",op:"stroke",w:1.5}],solid:[{d:"M14.5 8C14.5 10.485 12.485 12.5 10 12.5C7.515 12.5 5.5 10.485 5.5 8C5.5 5.515 7.515 3.5 10 3.5C12.485 3.5 14.5 5.515 14.5 8Z",op:"fill"},{d:"M2.75 20.5C2.744 17.717 4.332 15.176 6.836 13.961C9.34 12.747 12.318 13.073 14.5 14.8L14.5 20.5Z",op:"fill"},{d:"M15 18L17 20L21 15.5",op:"stroke",w:2}]},"permission.mode":{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M12 8L12 12.5",op:"stroke",w:1.5},{d:"M12.95 15.75C12.95 16.275 12.525 16.7 12 16.7C11.475 16.7 11.05 16.275 11.05 15.75C11.05 15.225 11.475 14.8 12 14.8C12.525 14.8 12.95 15.225 12.95 15.75Z",op:"fill"}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M12 8L12 12.5",op:"clearStroke",w:1.75},{d:"M13.05 15.75C13.05 16.33 12.58 16.8 12 16.8C11.42 16.8 10.95 16.33 10.95 15.75C10.95 15.17 11.42 14.7 12 14.7C12.58 14.7 13.05 15.17 13.05 15.75Z",op:"clearFill"}]},placeholder:{line:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:1.5,dash:[3.639,3.639],dashPhase:-1.82}],solid:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:2,dash:[3.639,3.639],dashPhase:-1.82}]},"policy.reject":{line:[{d:"M8.554 3.729L15.447 3.729L20.271 8.554L20.271 15.447L15.446 20.271L8.553 20.271L3.729 15.446L3.729 8.553Z",op:"stroke",w:1.5},{d:"M8.324 12L15.676 12",op:"stroke",w:1.5}],solid:[{d:"M8.554 3.729L15.447 3.729L20.271 8.554L20.271 15.447L15.446 20.271L8.553 20.271L3.729 15.446L3.729 8.553Z",op:"fill"},{d:"M8.554 3.729L15.447 3.729L20.271 8.554L20.271 15.447L15.446 20.271L8.553 20.271L3.729 15.446L3.729 8.553Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.324 12L15.676 12",op:"clearStroke",w:1.75}]},"profile.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},search:{line:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M14.75 14.75L20 20",op:"stroke",w:1.5}],solid:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:2},{d:"M14.75 14.75L20 20",op:"stroke",w:2}],cat:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M14.75 14.75L20 20",op:"stroke",w:1.5},{d:"M6.75 6L6.75 3L8.5 4.5M14.25 6L14.25 3L12.5 4.5",op:"stroke",w:1.5,accent:!0}]},"search.files":{line:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M14.75 14.75L20 20",op:"stroke",w:1.5}],solid:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:2},{d:"M14.75 14.75L20 20",op:"stroke",w:2}]},"security.dangerous":{line:[{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"fill"},{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"stroke",w:1.5},{d:"M12 9.681L12 13.377",op:"clearStroke",w:1.75},{d:"M13.016 16.38C13.016 16.941 12.561 17.396 12 17.396C11.439 17.396 10.984 16.941 10.984 16.38C10.984 15.819 11.439 15.364 12 15.364C12.561 15.364 13.016 15.819 13.016 16.38Z",op:"clearFill"}],solid:[{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"fill"},{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"stroke",w:1.5},{d:"M12 9.681L12 13.377",op:"clearStroke",w:1.75},{d:"M13.016 16.38C13.016 16.941 12.561 17.396 12 17.396C11.439 17.396 10.984 16.941 10.984 16.38C10.984 15.819 11.439 15.364 12 15.364C12.561 15.364 13.016 15.819 13.016 16.38Z",op:"clearFill"}]},"security.insecure":{line:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:1.5}],solid:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"fill"},{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:2},{d:"M12 14.25L12 16.75",op:"clearStroke",w:1.75}]},"security.lock":{line:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C8 5.291 9.791 3.5 12 3.5C14.209 3.5 16 5.291 16 7.5L16 10.5",op:"stroke",w:1.5}],solid:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"fill"},{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C8 5.291 9.791 3.5 12 3.5C14.209 3.5 16 5.291 16 7.5L16 10.5",op:"stroke",w:2},{d:"M12 14.25L12 16.75",op:"clearStroke",w:1.75}]},"server.health":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M7.017 12.453L9.509 12.453L10.868 9.282L13.133 15.624L14.492 12.453L16.984 12.453",op:"stroke",w:1.5}],solid:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"fill"},{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M7.017 12.453L9.509 12.453L10.868 9.282L13.133 15.624L14.492 12.453L16.984 12.453",op:"clearStroke",w:1.75}]},settings:{line:[{d:"M10.1 5.78L10.48 3.38L13.52 3.38L13.9 5.78L15.05 6.26L17.02 4.83L19.17 6.98L17.74 8.95L18.22 10.1L20.62 10.48L20.62 13.52L18.22 13.9L17.74 15.05L19.17 17.02L17.02 19.17L15.05 17.74L13.9 18.22L13.52 20.62L10.48 20.62L10.1 18.22L8.95 17.74L6.98 19.17L4.83 17.02L6.26 15.05L5.78 13.9L3.38 13.52L3.38 10.48L5.78 10.1L6.26 8.95L4.83 6.98L6.98 4.83L8.95 6.26Z",op:"stroke",w:1.5},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:1.5}],solid:[{d:"M10.1 5.78L10.48 3.38L13.52 3.38L13.9 5.78L15.05 6.26L17.02 4.83L19.17 6.98L17.74 8.95L18.22 10.1L20.62 10.48L20.62 13.52L18.22 13.9L17.74 15.05L19.17 17.02L17.02 19.17L15.05 17.74L13.9 18.22L13.52 20.62L10.48 20.62L10.1 18.22L8.95 17.74L6.98 19.17L4.83 17.02L6.26 15.05L5.78 13.9L3.38 13.52L3.38 10.48L5.78 10.1L6.26 8.95L4.83 6.98L6.98 4.83L8.95 6.26Z",op:"fill"},{d:"M10.1 5.78L10.48 3.38L13.52 3.38L13.9 5.78L15.05 6.26L17.02 4.83L19.17 6.98L17.74 8.95L18.22 10.1L20.62 10.48L20.62 13.52L18.22 13.9L17.74 15.05L19.17 17.02L17.02 19.17L15.05 17.74L13.9 18.22L13.52 20.62L10.48 20.62L10.1 18.22L8.95 17.74L6.98 19.17L4.83 17.02L6.26 15.05L5.78 13.9L3.38 13.52L3.38 10.48L5.78 10.1L6.26 8.95L4.83 6.98L6.98 4.83L8.95 6.26Z",op:"stroke",w:1.5},{d:"M15.25 12C15.25 13.795 13.795 15.25 12 15.25C10.205 15.25 8.75 13.795 8.75 12C8.75 10.205 10.205 8.75 12 8.75C13.795 8.75 15.25 10.205 15.25 12Z",op:"clearFill"}]},"site.info":{line:[{d:"M4 8L12.5 8M17.5 8L20 8M4 16L6.5 16M11.5 16L20 16",op:"stroke",w:1.5},{d:"M17.5 8C17.5 9.381 16.381 10.5 15 10.5C13.619 10.5 12.5 9.381 12.5 8C12.5 6.619 13.619 5.5 15 5.5C16.381 5.5 17.5 6.619 17.5 8Z",op:"stroke",w:1.5},{d:"M11.5 16C11.5 17.381 10.381 18.5 9 18.5C7.619 18.5 6.5 17.381 6.5 16C6.5 14.619 7.619 13.5 9 13.5C10.381 13.5 11.5 14.619 11.5 16Z",op:"stroke",w:1.5}],solid:[{d:"M17.5 8C17.5 9.381 16.381 10.5 15 10.5C13.619 10.5 12.5 9.381 12.5 8C12.5 6.619 13.619 5.5 15 5.5C16.381 5.5 17.5 6.619 17.5 8Z",op:"fill"},{d:"M17.5 8C17.5 9.381 16.381 10.5 15 10.5C13.619 10.5 12.5 9.381 12.5 8C12.5 6.619 13.619 5.5 15 5.5C16.381 5.5 17.5 6.619 17.5 8Z",op:"stroke",w:1.5},{d:"M11.5 16C11.5 17.381 10.381 18.5 9 18.5C7.619 18.5 6.5 17.381 6.5 16C6.5 14.619 7.619 13.5 9 13.5C10.381 13.5 11.5 14.619 11.5 16Z",op:"fill"},{d:"M11.5 16C11.5 17.381 10.381 18.5 9 18.5C7.619 18.5 6.5 17.381 6.5 16C6.5 14.619 7.619 13.5 9 13.5C10.381 13.5 11.5 14.619 11.5 16Z",op:"stroke",w:1.5},{d:"M4 8L12.5 8M17.5 8L20 8M4 16L6.5 16M11.5 16L20 16",op:"stroke",w:2}]},"site.permission.automaticdownloads":{line:[{d:"M12 3.5L12 14M7.75 9.75L12 14L16.25 9.75",op:"stroke",w:1.5},{d:"M4 14.5L4 17.5C4 18.881 5.119 20 6.5 20L17.5 20C18.881 20 20 18.881 20 17.5L20 14.5",op:"stroke",w:1.5}],solid:[{d:"M12 3.5L12 14M7.75 9.75L12 14L16.25 9.75",op:"stroke",w:2},{d:"M4 14.5L4 17.5C4 18.881 5.119 20 6.5 20L17.5 20C18.881 20 20 18.881 20 17.5L20 14.5",op:"stroke",w:2}]},"site.permission.autopictureinpicture":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12.453 12L16.53 12C17.03 12 17.436 12.406 17.436 12.906L17.436 15.624C17.436 16.124 17.03 16.53 16.53 16.53L12.453 16.53C11.953 16.53 11.547 16.124 11.547 15.624L11.547 12.906C11.547 12.406 11.953 12 12.453 12Z",op:"fill"},{d:"M12.453 12L16.53 12C17.03 12 17.436 12.406 17.436 12.906L17.436 15.624C17.436 16.124 17.03 16.53 16.53 16.53L12.453 16.53C11.953 16.53 11.547 16.124 11.547 15.624L11.547 12.906C11.547 12.406 11.953 12 12.453 12Z",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12.226 11.321L16.756 11.321C17.507 11.321 18.115 11.929 18.115 12.68L18.115 15.851C18.115 16.602 17.507 17.21 16.756 17.21L12.226 17.21C11.475 17.21 10.867 16.602 10.867 15.851L10.867 12.68C10.867 11.929 11.475 11.321 12.226 11.321Z",op:"clearStroke",w:1.75},{d:"M12.453 12L16.53 12C17.03 12 17.436 12.406 17.436 12.906L17.436 15.624C17.436 16.124 17.03 16.53 16.53 16.53L12.453 16.53C11.953 16.53 11.547 16.124 11.547 15.624L11.547 12.906C11.547 12.406 11.953 12 12.453 12Z",op:"fill"}]},"site.permission.backgroundsync":{line:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:1.5},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:1.5},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:1.5},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:1.5}],solid:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:2},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:2},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:2},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:2}]},"site.permission.bluetooth":{line:[{d:"M13.75 12C13.75 12.966 12.966 13.75 12 13.75C11.034 13.75 10.25 12.966 10.25 12C10.25 11.034 11.034 10.25 12 10.25C12.966 10.25 13.75 11.034 13.75 12Z",op:"fill"},{d:"M15.18 8.82C16.935 10.577 16.935 13.423 15.18 15.18M8.82 15.18C7.065 13.423 7.065 10.577 8.82 8.82M18.32 6.7C20.89 9.766 20.89 14.234 18.32 17.3M5.68 17.3C3.11 14.234 3.11 9.766 5.68 6.7",op:"stroke",w:1.5}],solid:[{d:"M15.18 8.82C16.935 10.577 16.935 13.423 15.18 15.18M8.82 15.18C7.065 13.423 7.065 10.577 8.82 8.82M18.32 6.7C20.89 9.766 20.89 14.234 18.32 17.3M5.68 17.3C3.11 14.234 3.11 9.766 5.68 6.7",op:"stroke",w:2},{d:"M14.25 12C14.25 13.243 13.243 14.25 12 14.25C10.757 14.25 9.75 13.243 9.75 12C9.75 10.757 10.757 9.75 12 9.75C13.243 9.75 14.25 10.757 14.25 12Z",op:"fill"}]},"site.permission.camera":{line:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5}],solid:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"fill"},{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"fill"},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5}]},"site.permission.camera.blocked":{line:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"fill"},{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"fill"},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.clipboard":{line:[{d:"M8.5 5L7 5C5.895 5 5 5.895 5 7L5 19C5 20.105 5.895 21 7 21L17 21C18.105 21 19 20.105 19 19L19 7C19 5.895 18.105 5 17 5L15.5 5",op:"stroke",w:1.5},{d:"M9.75 3L14.25 3C14.94 3 15.5 3.56 15.5 4.25L15.5 5.75C15.5 6.44 14.94 7 14.25 7L9.75 7C9.06 7 8.5 6.44 8.5 5.75L8.5 4.25C8.5 3.56 9.06 3 9.75 3Z",op:"stroke",w:1.5},{d:"M9 12L15 12M9 15.5L13 15.5",op:"stroke",w:1.5}],solid:[{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"fill"},{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"stroke",w:1.5},{d:"M9 12L15 12M9 15.5L13 15.5",op:"clearStroke",w:1.75},{d:"M8.5 7.5L15.5 7.5",op:"clearStroke",w:2.5},{d:"M9.75 2.75L14.25 2.75C14.94 2.75 15.5 3.31 15.5 4L15.5 5.25C15.5 5.94 14.94 6.5 14.25 6.5L9.75 6.5C9.06 6.5 8.5 5.94 8.5 5.25L8.5 4C8.5 3.31 9.06 2.75 9.75 2.75Z",op:"fill"}]},"site.permission.fileediting":{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5},{d:"M8.75 17.75L9.35 15.4L14 10.75C14.456 10.294 15.194 10.294 15.65 10.75C16.106 11.206 16.106 11.944 15.65 12.4L11 17.1Z",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75},{d:"M8.75 17.75L9.35 15.4L14 10.75C14.456 10.294 15.194 10.294 15.65 10.75C16.106 11.206 16.106 11.944 15.65 12.4L11 17.1Z",op:"clearStroke",w:1.75}]},"site.permission.hid":{line:[{d:"M7.5 6.5L16.5 6.5C18.985 6.5 21 8.515 21 11L21 15.25C21.008 16.453 20.234 17.522 19.088 17.888C17.943 18.255 16.692 17.834 16 16.85L15 15.5L9 15.5L8 16.85C7.308 17.834 6.057 18.255 4.912 17.888C3.766 17.522 2.992 16.453 3 15.25L3 11C3 8.515 5.015 6.5 7.5 6.5Z",op:"stroke",w:1.5},{d:"M7.5 9.5L7.5 13M5.75 11.25L9.25 11.25",op:"stroke",w:1.5},{d:"M16.6 10.25C16.6 10.858 16.108 11.35 15.5 11.35C14.892 11.35 14.4 10.858 14.4 10.25C14.4 9.642 14.892 9.15 15.5 9.15C16.108 9.15 16.6 9.642 16.6 10.25Z",op:"fill"},{d:"M18.85 12.5C18.85 13.108 18.358 13.6 17.75 13.6C17.142 13.6 16.65 13.108 16.65 12.5C16.65 11.892 17.142 11.4 17.75 11.4C18.358 11.4 18.85 11.892 18.85 12.5Z",op:"fill"}],solid:[{d:"M7.5 6.5L16.5 6.5C18.985 6.5 21 8.515 21 11L21 15.25C21.008 16.453 20.234 17.522 19.088 17.888C17.943 18.255 16.692 17.834 16 16.85L15 15.5L9 15.5L8 16.85C7.308 17.834 6.057 18.255 4.912 17.888C3.766 17.522 2.992 16.453 3 15.25L3 11C3 8.515 5.015 6.5 7.5 6.5Z",op:"fill"},{d:"M7.5 6.5L16.5 6.5C18.985 6.5 21 8.515 21 11L21 15.25C21.008 16.453 20.234 17.522 19.088 17.888C17.943 18.255 16.692 17.834 16 16.85L15 15.5L9 15.5L8 16.85C7.308 17.834 6.057 18.255 4.912 17.888C3.766 17.522 2.992 16.453 3 15.25L3 11C3 8.515 5.015 6.5 7.5 6.5Z",op:"stroke",w:1.5},{d:"M7.5 9.5L7.5 13M5.75 11.25L9.25 11.25",op:"clearStroke",w:1.75},{d:"M16.7 10.25C16.7 10.913 16.163 11.45 15.5 11.45C14.837 11.45 14.3 10.913 14.3 10.25C14.3 9.587 14.837 9.05 15.5 9.05C16.163 9.05 16.7 9.587 16.7 10.25Z",op:"clearFill"},{d:"M18.95 12.5C18.95 13.163 18.413 13.7 17.75 13.7C17.087 13.7 16.55 13.163 16.55 12.5C16.55 11.837 17.087 11.3 17.75 11.3C18.413 11.3 18.95 11.837 18.95 12.5Z",op:"clearFill"}]},"site.permission.images":{line:[{d:"M6.007 5.085L17.993 5.085C19.266 5.085 20.298 6.117 20.298 7.39L20.298 16.61C20.298 17.883 19.266 18.915 17.993 18.915L6.007 18.915C4.734 18.915 3.702 17.883 3.702 16.61L3.702 7.39C3.702 6.117 4.734 5.085 6.007 5.085Z",op:"stroke",w:1.5},{d:"M4.163 17.071L8.773 12.461L12.922 16.61L15.227 14.305L19.837 18.915",op:"stroke",w:1.5},{d:"M16.841 9.234C16.841 10.125 16.118 10.848 15.227 10.848C14.336 10.848 13.613 10.125 13.613 9.234C13.613 8.343 14.336 7.62 15.227 7.62C16.118 7.62 16.841 8.343 16.841 9.234Z",op:"stroke",w:1.5}],solid:[{d:"M6.007 5.085L17.993 5.085C19.266 5.085 20.298 6.117 20.298 7.39L20.298 16.61C20.298 17.883 19.266 18.915 17.993 18.915L6.007 18.915C4.734 18.915 3.702 17.883 3.702 16.61L3.702 7.39C3.702 6.117 4.734 5.085 6.007 5.085Z",op:"fill"},{d:"M6.007 5.085L17.993 5.085C19.266 5.085 20.298 6.117 20.298 7.39L20.298 16.61C20.298 17.883 19.266 18.915 17.993 18.915L6.007 18.915C4.734 18.915 3.702 17.883 3.702 16.61L3.702 7.39C3.702 6.117 4.734 5.085 6.007 5.085Z",op:"stroke",w:1.5},{d:"M4.163 17.071L8.773 12.461L12.922 16.61L15.227 14.305L19.837 18.915",op:"clearStroke",w:1.75},{d:"M16.841 9.234C16.841 10.125 16.118 10.848 15.227 10.848C14.336 10.848 13.613 10.125 13.613 9.234C13.613 8.343 14.336 7.62 15.227 7.62C16.118 7.62 16.841 8.343 16.841 9.234Z",op:"clearStroke",w:1.75}]},"site.permission.insecurecontent.blocked":{line:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"fill"},{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:2},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.javascript":{line:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:1.5}],solid:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:2}]},"site.permission.localfonts":{line:[{d:"M3.5 19L8.75 5L14 19M5.5 14L12 14",op:"stroke",w:1.5},{d:"M20.5 16.25C20.5 17.769 19.269 19 17.75 19C16.231 19 15 17.769 15 16.25C15 14.731 16.231 13.5 17.75 13.5C19.269 13.5 20.5 14.731 20.5 16.25Z",op:"stroke",w:1.5},{d:"M20.5 13.5L20.5 19",op:"stroke",w:1.5}],solid:[{d:"M3.5 19L8.75 5L14 19M5.5 14L12 14",op:"stroke",w:2},{d:"M20.5 16.25C20.5 17.769 19.269 19 17.75 19C16.231 19 15 17.769 15 16.25C15 14.731 16.231 13.5 17.75 13.5C19.269 13.5 20.5 14.731 20.5 16.25Z",op:"stroke",w:2},{d:"M20.5 13.5L20.5 19",op:"stroke",w:2}]},"site.permission.location":{line:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}],solid:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"fill"},{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}]},"site.permission.location.blocked":{line:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"fill"},{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.microphone":{line:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5}],solid:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"fill"},{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5}]},"site.permission.microphone.blocked":{line:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"fill"},{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.midi":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 13.359L9.282 19.248M14.718 13.359L14.718 19.248",op:"stroke",w:1.5},{d:"M8.602 4.752L9.962 4.752C10.337 4.752 10.641 5.056 10.641 5.431L10.641 12.68C10.641 13.055 10.337 13.359 9.962 13.359L8.602 13.359C8.227 13.359 7.923 13.055 7.923 12.68L7.923 5.431C7.923 5.056 8.227 4.752 8.602 4.752Z",op:"fill"},{d:"M8.602 4.752L9.962 4.752C10.337 4.752 10.641 5.056 10.641 5.431L10.641 12.68C10.641 13.055 10.337 13.359 9.962 13.359L8.602 13.359C8.227 13.359 7.923 13.055 7.923 12.68L7.923 5.431C7.923 5.056 8.227 4.752 8.602 4.752Z",op:"stroke",w:1.5},{d:"M14.038 4.752L15.398 4.752C15.773 4.752 16.077 5.056 16.077 5.431L16.077 12.68C16.077 13.055 15.773 13.359 15.398 13.359L14.038 13.359C13.663 13.359 13.359 13.055 13.359 12.68L13.359 5.431C13.359 5.056 13.663 4.752 14.038 4.752Z",op:"fill"},{d:"M14.038 4.752L15.398 4.752C15.773 4.752 16.077 5.056 16.077 5.431L16.077 12.68C16.077 13.055 15.773 13.359 15.398 13.359L14.038 13.359C13.663 13.359 13.359 13.055 13.359 12.68L13.359 5.431C13.359 5.056 13.663 4.752 14.038 4.752Z",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 13.359L9.282 19.248M14.718 13.359L14.718 19.248",op:"clearStroke",w:1.75},{d:"M7.244 4.752L7.244 12.68C7.244 13.18 7.65 13.586 8.15 13.586L10.415 13.586C10.915 13.586 11.321 13.18 11.321 12.68L11.321 4.752M12.68 4.752L12.68 12.68C12.68 13.18 13.086 13.586 13.586 13.586L15.851 13.586C16.351 13.586 16.757 13.18 16.757 12.68L16.757 4.752",op:"clearStroke",w:1.75}]},"site.permission.notifications":{line:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}],solid:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"fill"},{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}]},"site.permission.notifications.blocked":{line:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"fill"},{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.popups":{line:[{d:"M5.5 8L14 8C15.381 8 16.5 9.119 16.5 10.5L16.5 17.5C16.5 18.881 15.381 20 14 20L5.5 20C4.119 20 3 18.881 3 17.5L3 10.5C3 9.119 4.119 8 5.5 8Z",op:"stroke",w:1.5},{d:"M14 2L19 2C20.933 2 22.5 3.567 22.5 5.5L22.5 9.5C22.5 11.433 20.933 13 19 13L14 13C12.067 13 10.5 11.433 10.5 9.5L10.5 5.5C10.5 3.567 12.067 2 14 2Z",op:"clearFill"},{d:"M14 3.5L19 3.5C20.105 3.5 21 4.395 21 5.5L21 9.5C21 10.605 20.105 11.5 19 11.5L14 11.5C12.895 11.5 12 10.605 12 9.5L12 5.5C12 4.395 12.895 3.5 14 3.5Z",op:"stroke",w:1.5}],solid:[{d:"M5.5 8L14 8C15.381 8 16.5 9.119 16.5 10.5L16.5 17.5C16.5 18.881 15.381 20 14 20L5.5 20C4.119 20 3 18.881 3 17.5L3 10.5C3 9.119 4.119 8 5.5 8Z",op:"fill"},{d:"M5.5 8L14 8C15.381 8 16.5 9.119 16.5 10.5L16.5 17.5C16.5 18.881 15.381 20 14 20L5.5 20C4.119 20 3 18.881 3 17.5L3 10.5C3 9.119 4.119 8 5.5 8Z",op:"stroke",w:1.5},{d:"M14 2L19 2C20.933 2 22.5 3.567 22.5 5.5L22.5 9.5C22.5 11.433 20.933 13 19 13L14 13C12.067 13 10.5 11.433 10.5 9.5L10.5 5.5C10.5 3.567 12.067 2 14 2Z",op:"clearFill"},{d:"M14 3.5L19 3.5C20.105 3.5 21 4.395 21 5.5L21 9.5C21 10.605 20.105 11.5 19 11.5L14 11.5C12.895 11.5 12 10.605 12 9.5L12 5.5C12 4.395 12.895 3.5 14 3.5Z",op:"fill"}]},"site.permission.sensors":{line:[{d:"M10 3.5L14 3.5C15.105 3.5 16 4.395 16 5.5L16 18.5C16 19.605 15.105 20.5 14 20.5L10 20.5C8.895 20.5 8 19.605 8 18.5L8 5.5C8 4.395 8.895 3.5 10 3.5Z",op:"stroke",w:1.5},{d:"M5 8.5C3.324 10.532 3.324 13.468 5 15.5M19 8.5C20.676 10.532 20.676 13.468 19 15.5",op:"stroke",w:1.5}],solid:[{d:"M10 3.5L14 3.5C15.105 3.5 16 4.395 16 5.5L16 18.5C16 19.605 15.105 20.5 14 20.5L10 20.5C8.895 20.5 8 19.605 8 18.5L8 5.5C8 4.395 8.895 3.5 10 3.5Z",op:"fill"},{d:"M10 3.5L14 3.5C15.105 3.5 16 4.395 16 5.5L16 18.5C16 19.605 15.105 20.5 14 20.5L10 20.5C8.895 20.5 8 19.605 8 18.5L8 5.5C8 4.395 8.895 3.5 10 3.5Z",op:"stroke",w:1.5},{d:"M5 8.5C3.324 10.532 3.324 13.468 5 15.5M19 8.5C20.676 10.532 20.676 13.468 19 15.5",op:"stroke",w:1.5},{d:"M11 17.75L13 17.75",op:"clearStroke",w:1.75}]},"site.permission.serial":{line:[{d:"M3.9 7L20.1 7C20.41 6.999 20.702 7.142 20.892 7.387C21.082 7.632 21.147 7.95 21.07 8.25L19.17 15.75C18.938 16.769 18.035 17.494 16.99 17.5L7.01 17.5C5.965 17.494 5.062 16.769 4.83 15.75L2.93 8.25C2.853 7.95 2.918 7.632 3.108 7.387C3.298 7.142 3.59 6.999 3.9 7Z",op:"stroke",w:1.5},{d:"M9.45 10.5C9.45 11.163 8.913 11.7 8.25 11.7C7.587 11.7 7.05 11.163 7.05 10.5C7.05 9.837 7.587 9.3 8.25 9.3C8.913 9.3 9.45 9.837 9.45 10.5Z",op:"fill"},{d:"M13.2 10.5C13.2 11.163 12.663 11.7 12 11.7C11.337 11.7 10.8 11.163 10.8 10.5C10.8 9.837 11.337 9.3 12 9.3C12.663 9.3 13.2 9.837 13.2 10.5Z",op:"fill"},{d:"M16.95 10.5C16.95 11.163 16.413 11.7 15.75 11.7C15.087 11.7 14.55 11.163 14.55 10.5C14.55 9.837 15.087 9.3 15.75 9.3C16.413 9.3 16.95 9.837 16.95 10.5Z",op:"fill"},{d:"M11.3 14C11.3 14.663 10.763 15.2 10.1 15.2C9.437 15.2 8.9 14.663 8.9 14C8.9 13.337 9.437 12.8 10.1 12.8C10.763 12.8 11.3 13.337 11.3 14Z",op:"fill"},{d:"M15.1 14C15.1 14.663 14.563 15.2 13.9 15.2C13.237 15.2 12.7 14.663 12.7 14C12.7 13.337 13.237 12.8 13.9 12.8C14.563 12.8 15.1 13.337 15.1 14Z",op:"fill"}],solid:[{d:"M3.9 7L20.1 7C20.41 6.999 20.702 7.142 20.892 7.387C21.082 7.632 21.147 7.95 21.07 8.25L19.17 15.75C18.938 16.769 18.035 17.494 16.99 17.5L7.01 17.5C5.965 17.494 5.062 16.769 4.83 15.75L2.93 8.25C2.853 7.95 2.918 7.632 3.108 7.387C3.298 7.142 3.59 6.999 3.9 7Z",op:"fill"},{d:"M3.9 7L20.1 7C20.41 6.999 20.702 7.142 20.892 7.387C21.082 7.632 21.147 7.95 21.07 8.25L19.17 15.75C18.938 16.769 18.035 17.494 16.99 17.5L7.01 17.5C5.965 17.494 5.062 16.769 4.83 15.75L2.93 8.25C2.853 7.95 2.918 7.632 3.108 7.387C3.298 7.142 3.59 6.999 3.9 7Z",op:"stroke",w:1.5},{d:"M9.5 10.5C9.5 11.19 8.94 11.75 8.25 11.75C7.56 11.75 7 11.19 7 10.5C7 9.81 7.56 9.25 8.25 9.25C8.94 9.25 9.5 9.81 9.5 10.5Z",op:"clearFill"},{d:"M13.25 10.5C13.25 11.19 12.69 11.75 12 11.75C11.31 11.75 10.75 11.19 10.75 10.5C10.75 9.81 11.31 9.25 12 9.25C12.69 9.25 13.25 9.81 13.25 10.5Z",op:"clearFill"},{d:"M17 10.5C17 11.19 16.44 11.75 15.75 11.75C15.06 11.75 14.5 11.19 14.5 10.5C14.5 9.81 15.06 9.25 15.75 9.25C16.44 9.25 17 9.81 17 10.5Z",op:"clearFill"},{d:"M11.35 14C11.35 14.69 10.79 15.25 10.1 15.25C9.41 15.25 8.85 14.69 8.85 14C8.85 13.31 9.41 12.75 10.1 12.75C10.79 12.75 11.35 13.31 11.35 14Z",op:"clearFill"},{d:"M15.15 14C15.15 14.69 14.59 15.25 13.9 15.25C13.21 15.25 12.65 14.69 12.65 14C12.65 13.31 13.21 12.75 13.9 12.75C14.59 12.75 15.15 13.31 15.15 14Z",op:"clearFill"}]},"site.permission.sound":{line:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5}],solid:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"fill"},{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5}]},"site.permission.sound.blocked":{line:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"fill"},{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.thirdpartysignin":{line:[{d:"M13.25 8C13.25 10.071 11.571 11.75 9.5 11.75C7.429 11.75 5.75 10.071 5.75 8C5.75 5.929 7.429 4.25 9.5 4.25C11.571 4.25 13.25 5.929 13.25 8Z",op:"stroke",w:1.5},{d:"M3 20.5C3.009 18.02 4.429 15.76 6.66 14.677C8.891 13.593 11.545 13.874 13.5 15.4",op:"stroke",w:1.5},{d:"M17 17.25C17 18.493 15.993 19.5 14.75 19.5C13.507 19.5 12.5 18.493 12.5 17.25C12.5 16.007 13.507 15 14.75 15C15.993 15 17 16.007 17 17.25Z",op:"stroke",w:1.5},{d:"M17 17.25L20.75 17.25M19.5 17.25L19.5 19.25",op:"stroke",w:1.5}],solid:[{d:"M13.25 8C13.25 10.071 11.571 11.75 9.5 11.75C7.429 11.75 5.75 10.071 5.75 8C5.75 5.929 7.429 4.25 9.5 4.25C11.571 4.25 13.25 5.929 13.25 8Z",op:"fill"},{d:"M13.25 8C13.25 10.071 11.571 11.75 9.5 11.75C7.429 11.75 5.75 10.071 5.75 8C5.75 5.929 7.429 4.25 9.5 4.25C11.571 4.25 13.25 5.929 13.25 8Z",op:"stroke",w:1.5},{d:"M2.25 20.5C2.253 18.085 3.458 15.829 5.465 14.485C7.471 13.141 10.015 12.884 12.25 13.8",op:"fill"},{d:"M2.25 20.5C2.253 18.085 3.458 15.829 5.465 14.485C7.471 13.141 10.015 12.884 12.25 13.8",op:"stroke",w:1.5},{d:"M17 17.25C17 18.493 15.993 19.5 14.75 19.5C13.507 19.5 12.5 18.493 12.5 17.25C12.5 16.007 13.507 15 14.75 15C15.993 15 17 16.007 17 17.25Z",op:"stroke",w:1.5},{d:"M17 17.25L20.75 17.25M19.5 17.25L19.5 19.25",op:"stroke",w:1.5}]},"site.permission.usb":{line:[{d:"M9.5 3L14.5 3C15.052 3 15.5 3.448 15.5 4L15.5 7.5C15.5 8.052 15.052 8.5 14.5 8.5L9.5 8.5C8.948 8.5 8.5 8.052 8.5 7.5L8.5 4C8.5 3.448 8.948 3 9.5 3Z",op:"stroke",w:1.5},{d:"M10.75 5.5L11.25 5.5M12.75 5.5L13.25 5.5",op:"stroke",w:1.5},{d:"M6.5 8.5L17.5 8.5L17.5 13.5C17.5 15.157 16.157 16.5 14.5 16.5L9.5 16.5C7.843 16.5 6.5 15.157 6.5 13.5Z",op:"stroke",w:1.5},{d:"M12 16.5L12 21",op:"stroke",w:1.5}],solid:[{d:"M9.5 3L14.5 3C15.052 3 15.5 3.448 15.5 4L15.5 7.5C15.5 8.052 15.052 8.5 14.5 8.5L9.5 8.5C8.948 8.5 8.5 8.052 8.5 7.5L8.5 4C8.5 3.448 8.948 3 9.5 3Z",op:"fill"},{d:"M9.5 3L14.5 3C15.052 3 15.5 3.448 15.5 4L15.5 7.5C15.5 8.052 15.052 8.5 14.5 8.5L9.5 8.5C8.948 8.5 8.5 8.052 8.5 7.5L8.5 4C8.5 3.448 8.948 3 9.5 3Z",op:"stroke",w:1.5},{d:"M6.5 8.5L17.5 8.5L17.5 13.5C17.5 15.157 16.157 16.5 14.5 16.5L9.5 16.5C7.843 16.5 6.5 15.157 6.5 13.5Z",op:"fill"},{d:"M6.5 8.5L17.5 8.5L17.5 13.5C17.5 15.157 16.157 16.5 14.5 16.5L9.5 16.5C7.843 16.5 6.5 15.157 6.5 13.5Z",op:"stroke",w:1.5},{d:"M12 16.5L12 21",op:"stroke",w:1.5},{d:"M10.75 5.5L11.25 5.5M12.75 5.5L13.25 5.5",op:"clearStroke",w:1.75}]},"site.permission.windowmanagement":{line:[{d:"M4 5L9.25 5C10.078 5 10.75 5.672 10.75 6.5L10.75 11C10.75 11.828 10.078 12.5 9.25 12.5L4 12.5C3.172 12.5 2.5 11.828 2.5 11L2.5 6.5C2.5 5.672 3.172 5 4 5Z",op:"stroke",w:1.5},{d:"M14.75 5L20 5C20.828 5 21.5 5.672 21.5 6.5L21.5 11C21.5 11.828 20.828 12.5 20 12.5L14.75 12.5C13.922 12.5 13.25 11.828 13.25 11L13.25 6.5C13.25 5.672 13.922 5 14.75 5Z",op:"stroke",w:1.5},{d:"M7 12.5L7 15L17 15L17 12.5M12 15L12 18.5M8.5 18.5L15.5 18.5",op:"stroke",w:1.5}],solid:[{d:"M4 5L9.25 5C10.078 5 10.75 5.672 10.75 6.5L10.75 11C10.75 11.828 10.078 12.5 9.25 12.5L4 12.5C3.172 12.5 2.5 11.828 2.5 11L2.5 6.5C2.5 5.672 3.172 5 4 5Z",op:"fill"},{d:"M4 5L9.25 5C10.078 5 10.75 5.672 10.75 6.5L10.75 11C10.75 11.828 10.078 12.5 9.25 12.5L4 12.5C3.172 12.5 2.5 11.828 2.5 11L2.5 6.5C2.5 5.672 3.172 5 4 5Z",op:"stroke",w:1.5},{d:"M14.75 5L20 5C20.828 5 21.5 5.672 21.5 6.5L21.5 11C21.5 11.828 20.828 12.5 20 12.5L14.75 12.5C13.922 12.5 13.25 11.828 13.25 11L13.25 6.5C13.25 5.672 13.922 5 14.75 5Z",op:"fill"},{d:"M14.75 5L20 5C20.828 5 21.5 5.672 21.5 6.5L21.5 11C21.5 11.828 20.828 12.5 20 12.5L14.75 12.5C13.922 12.5 13.25 11.828 13.25 11L13.25 6.5C13.25 5.672 13.922 5 14.75 5Z",op:"stroke",w:1.5},{d:"M7 12.5L7 15L17 15L17 12.5M12 15L12 18.5M8.5 18.5L15.5 18.5",op:"stroke",w:1.5}]},space:{line:[{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"stroke",w:1.5},{d:"M2.75 7.5L2.75 16.5M21.25 7.5L21.25 16.5",op:"stroke",w:1.5}],solid:[{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"fill"},{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"stroke",w:1.5},{d:"M2.75 7.5L2.75 16.5M21.25 7.5L21.25 16.5",op:"stroke",w:2}],cat:[{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"stroke",w:1.5},{d:"M2.75 7.5L2.75 16.5M21.25 7.5L21.25 16.5",op:"stroke",w:1.5},{d:"M8.5 4.5L8.5 2.25L10.25 4M15.5 4.5L15.5 2.25L13.75 4",op:"stroke",w:1.5,accent:!0}]},"state.changed":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8.75 15.25L9.35 12.9L14 8.25C14.456 7.794 15.194 7.794 15.65 8.25C16.106 8.706 16.106 9.444 15.65 9.9L11 14.6Z",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8.75 15.25L9.35 12.9L14 8.25C14.456 7.794 15.194 7.794 15.65 8.25C16.106 8.706 16.106 9.444 15.65 9.9L11 14.6Z",op:"clearStroke",w:1.6}]},"state.idle":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2}],cat:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M10.048 9.614L13.952 9.614L10.048 14.386L13.952 14.386",op:"stroke",w:1.5,accent:!0}]},"state.off":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M6.794 6.794L17.206 17.206",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M5.926 5.926L18.073 18.073",op:"clearStroke",w:1.75}]},"state.pinned":{line:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}],solid:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"fill"},{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}]},"state.selected":{line:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:1.5}],solid:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:2}]},"status.attention":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M14.82 12C14.82 13.557 13.557 14.82 12 14.82C10.443 14.82 9.18 13.557 9.18 12C9.18 10.443 10.443 9.18 12 9.18C13.557 9.18 14.82 10.443 14.82 12Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M16.555 12C16.555 14.516 14.516 16.555 12 16.555C9.484 16.555 7.445 14.516 7.445 12C7.445 9.484 9.484 7.445 12 7.445C14.516 7.445 16.555 9.484 16.555 12Z",op:"clearStroke",w:2}]},"status.complete":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}]},"status.critical":{line:[{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"fill"},{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"stroke",w:1.5},{d:"M12 7.95L12 12.45",op:"clearStroke",w:1.75},{d:"M12.99 15.6C12.99 16.147 12.547 16.59 12 16.59C11.453 16.59 11.01 16.147 11.01 15.6C11.01 15.053 11.453 14.61 12 14.61C12.547 14.61 12.99 15.053 12.99 15.6Z",op:"clearFill"}],solid:[{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"fill"},{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"stroke",w:1.5},{d:"M12 7.95L12 12.45",op:"clearStroke",w:1.75},{d:"M12.99 15.6C12.99 16.147 12.547 16.59 12 16.59C11.453 16.59 11.01 16.147 11.01 15.6C11.01 15.053 11.453 14.61 12 14.61C12.547 14.61 12.99 15.053 12.99 15.6Z",op:"clearFill"}]},"status.disconnected":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096L12 12.434",op:"stroke",w:1.5},{d:"M12.868 15.471C12.868 15.95 12.479 16.339 12 16.339C11.521 16.339 11.132 15.95 11.132 15.471C11.132 14.992 11.521 14.603 12 14.603C12.479 14.603 12.868 14.992 12.868 15.471Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096L12 12.434",op:"clearStroke",w:1.75},{d:"M12.954 15.471C12.954 15.998 12.527 16.425 12 16.425C11.473 16.425 11.046 15.998 11.046 15.471C11.046 14.944 11.473 14.517 12 14.517C12.527 14.517 12.954 14.944 12.954 15.471Z",op:"clearFill"}]},"status.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},"status.error":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"clearStroke",w:1.75}]},"status.info":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 11.132L12 15.904",op:"stroke",w:1.5},{d:"M12.868 8.312C12.868 8.791 12.479 9.18 12 9.18C11.521 9.18 11.132 8.791 11.132 8.312C11.132 7.833 11.521 7.444 12 7.444C12.479 7.444 12.868 7.833 12.868 8.312Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 11.132L12 15.904",op:"clearStroke",w:1.75},{d:"M12.954 8.312C12.954 8.839 12.527 9.266 12 9.266C11.473 9.266 11.046 8.839 11.046 8.312C11.046 7.785 11.473 7.358 12 7.358C12.527 7.358 12.954 7.785 12.954 8.312Z",op:"clearFill"}]},"status.inprogress":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096C14.156 8.096 15.904 9.844 15.904 12.001C15.904 14.157 14.156 15.905 12 15.905Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2},{d:"M12 7.662C14.396 7.662 16.338 9.604 16.338 12C16.338 14.396 14.396 16.338 12 16.338Z",op:"fill"}]},"status.needsinput":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M14.82 12C14.82 13.557 13.557 14.82 12 14.82C10.443 14.82 9.18 13.557 9.18 12C9.18 10.443 10.443 9.18 12 9.18C13.557 9.18 14.82 10.443 14.82 12Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M16.555 12C16.555 14.516 14.516 16.555 12 16.555C9.484 16.555 7.445 14.516 7.445 12C7.445 9.484 9.484 7.445 12 7.445C14.516 7.445 16.555 9.484 16.555 12Z",op:"clearStroke",w:2}]},"status.progress":{line:[{d:"M17.854 12C17.854 15.513 15.007 18.36 11.494 18.36C7.981 18.36 5.134 15.513 5.134 12C5.134 8.487 7.981 5.64 11.494 5.64C15.007 5.64 17.854 8.487 17.854 12Z",op:"stroke",w:1.5},{d:"M11.494 5.64C14.25 5.639 16.694 7.413 17.546 10.035C18.397 12.656 17.464 15.528 15.233 17.147C13.002 18.766 9.983 18.764 7.754 17.142",op:"stroke",w:3.5}],solid:[{d:"M17.854 12C17.854 15.513 15.007 18.36 11.494 18.36C7.981 18.36 5.134 15.513 5.134 12C5.134 8.487 7.981 5.64 11.494 5.64C15.007 5.64 17.854 8.487 17.854 12Z",op:"stroke",w:2},{d:"M11.494 5.64C14.25 5.639 16.694 7.413 17.546 10.035C18.397 12.656 17.464 15.528 15.233 17.147C13.002 18.766 9.983 18.764 7.754 17.142",op:"stroke",w:4}]},"status.running":{line:[{d:"M12 4.625C16.073 4.625 19.375 7.927 19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12",op:"stroke",w:1.5}],solid:[{d:"M12 4.625C16.073 4.625 19.375 7.927 19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12",op:"stroke",w:2}]},"status.success":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}]},"status.warning":{line:[{d:"M10.27 4.75C10.628 4.133 11.287 3.754 12 3.754C12.713 3.754 13.372 4.133 13.73 4.75L20.8 17C21.157 17.618 21.157 18.38 20.801 18.999C20.444 19.618 19.784 19.999 19.07 20L4.93 20C4.216 19.999 3.556 19.618 3.199 18.999C2.843 18.38 2.843 17.618 3.2 17Z",op:"stroke",w:1.5},{d:"M12 9.5L12 13.5",op:"stroke",w:1.5},{d:"M13 16.75C13 17.302 12.552 17.75 12 17.75C11.448 17.75 11 17.302 11 16.75C11 16.198 11.448 15.75 12 15.75C12.552 15.75 13 16.198 13 16.75Z",op:"fill"}],solid:[{d:"M10.27 4.75C10.628 4.133 11.287 3.754 12 3.754C12.713 3.754 13.372 4.133 13.73 4.75L20.8 17C21.157 17.618 21.157 18.38 20.801 18.999C20.444 19.618 19.784 19.999 19.07 20L4.93 20C4.216 19.999 3.556 19.618 3.199 18.999C2.843 18.38 2.843 17.618 3.2 17Z",op:"fill"},{d:"M10.27 4.75C10.628 4.133 11.287 3.754 12 3.754C12.713 3.754 13.372 4.133 13.73 4.75L20.8 17C21.157 17.618 21.157 18.38 20.801 18.999C20.444 19.618 19.784 19.999 19.07 20L4.93 20C4.216 19.999 3.556 19.618 3.199 18.999C2.843 18.38 2.843 17.618 3.2 17Z",op:"stroke",w:1.5},{d:"M12 9.5L12 13.5",op:"clearStroke",w:1.75},{d:"M13.1 16.75C13.1 17.358 12.608 17.85 12 17.85C11.392 17.85 10.9 17.358 10.9 16.75C10.9 16.142 11.392 15.65 12 15.65C12.608 15.65 13.1 16.142 13.1 16.75Z",op:"clearFill"}]},store:{line:[{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"stroke",w:1.5},{d:"M8.75 10.5L8.75 7.25C8.75 5.455 10.205 4 12 4C13.795 4 15.25 5.455 15.25 7.25L15.25 10.5",op:"stroke",w:1.5}],solid:[{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"fill"},{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"stroke",w:1.5},{d:"M8.75 8.5L8.75 10.5M15.25 8.5L15.25 10.5",op:"clearStroke",w:1.75},{d:"M8.75 8L8.75 7.25C8.75 5.455 10.205 4 12 4C13.795 4 15.25 5.455 15.25 7.25L15.25 8",op:"stroke",w:2}],cat:[{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"stroke",w:1.5},{d:"M8.75 10.5L8.75 7.25C8.75 5.455 10.205 4 12 4C13.795 4 15.25 5.455 15.25 7.25L15.25 10.5",op:"stroke",w:1.5},{d:"M9.75 14.75L9.76 14.75M12 16.25L12.01 16.25M14.25 14.75L14.26 14.75",op:"stroke",w:1.5,accent:!0}]},"system.requirement":{line:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5}],solid:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"fill"},{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5}],cat:[{d:"M5.903 5.434L18.097 5.434C19.392 5.434 20.442 6.484 20.442 7.779L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 7.779C3.558 6.484 4.608 5.434 5.903 5.434Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5},{d:"M12.469 5.434L12.469 3.089L14.345 4.965M18.566 5.434L18.566 3.089L16.69 4.965",op:"stroke",w:1.5,accent:!0}]},"tab.close":{line:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:2}]},"tab.new":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M12 8.829L12 15.171M8.829 12L15.171 12",op:"stroke",w:1.5}],solid:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"fill"},{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M12 8.829L12 15.171M8.829 12L15.171 12",op:"clearStroke",w:1.75}]},"tabgroup.save":{line:[{d:"M6 20.5L6 5.5C6 4.395 6.895 3.5 8 3.5L16 3.5C17.105 3.5 18 4.395 18 5.5L18 20.5L12 16Z",op:"stroke",w:1.5}],solid:[{d:"M6 20.5L6 5.5C6 4.395 6.895 3.5 8 3.5L16 3.5C17.105 3.5 18 4.395 18 5.5L18 20.5L12 16Z",op:"fill"},{d:"M6 20.5L6 5.5C6 4.395 6.895 3.5 8 3.5L16 3.5C17.105 3.5 18 4.395 18 5.5L18 20.5L12 16Z",op:"stroke",w:1.5}],cat:[{d:"M6 20.5L6 6.5C6 5.395 6.895 4.5 8 4.5L16 4.5C17.105 4.5 18 5.395 18 6.5L18 20.5L12 16Z",op:"stroke",w:1.5},{d:"M7.5 4.5L7.5 2L9.25 3.75M16.5 4.5L16.5 2L14.75 3.75",op:"stroke",w:1.5,accent:!0}]},"task.ai":{line:[{d:"M12 4.01C12.627 8.71 15.29 11.373 19.99 12C15.29 12.627 12.627 15.29 12 19.99C11.373 15.29 8.71 12.627 4.01 12C8.71 11.373 11.373 8.71 12 4.01Z",op:"stroke",w:1.5}],solid:[{d:"M12 4.01C12.627 8.71 15.29 11.373 19.99 12C15.29 12.627 12.627 15.29 12 19.99C11.373 15.29 8.71 12.627 4.01 12C8.71 11.373 11.373 8.71 12 4.01Z",op:"fill"},{d:"M12 4.01C12.627 8.71 15.29 11.373 19.99 12C15.29 12.627 12.627 15.29 12 19.99C11.373 15.29 8.71 12.627 4.01 12C8.71 11.373 11.373 8.71 12 4.01Z",op:"stroke",w:1.5}]},"task.status.backlog":{line:[{d:"M19.252 12C19.252 16.005 16.005 19.252 12 19.252C7.995 19.252 4.748 16.005 4.748 12C4.748 7.995 7.995 4.748 12 4.748C16.005 4.748 19.252 7.995 19.252 12Z",op:"stroke",w:1.75,dash:[0,3.798]}],solid:[{d:"M19.252 12C19.252 16.005 16.005 19.252 12 19.252C7.995 19.252 4.748 16.005 4.748 12C4.748 7.995 7.995 4.748 12 4.748C16.005 4.748 19.252 7.995 19.252 12Z",op:"stroke",w:2.5,dash:[0,3.798]}]},"task.status.canceled":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"stroke",w:1.5}],solid:[{d:"M20.026 12C20.026 16.433 16.433 20.026 12 20.026C7.567 20.026 3.974 16.433 3.974 12C3.974 7.567 7.567 3.974 12 3.974C16.433 3.974 20.026 7.567 20.026 12Z",op:"fill"},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"clearStroke",w:1.75}]},"task.status.done":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"stroke",w:1.5}],solid:[{d:"M20.026 12C20.026 16.433 16.433 20.026 12 20.026C7.567 20.026 3.974 16.433 3.974 12C3.974 7.567 7.567 3.974 12 3.974C16.433 3.974 20.026 7.567 20.026 12Z",op:"fill"},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}]},"task.status.started":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096C14.156 8.096 15.904 9.844 15.904 12.001C15.904 14.157 14.156 15.905 12 15.905Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2},{d:"M12 7.662C14.396 7.662 16.338 9.604 16.338 12C16.338 14.396 14.396 16.338 12 16.338Z",op:"fill"}]},"task.status.todo":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2}]},"task.status.triage":{line:[{d:"M12.004 4.626C16.079 4.626 19.382 7.929 19.382 12.004C19.382 16.079 16.079 19.382 12.004 19.382C7.929 19.382 4.626 16.079 4.626 12.004C4.626 7.929 7.929 4.626 12.004 4.626Z",op:"stroke",w:1.302,dash:[2.778,3.016]}],solid:[{d:"M12.004 4.626C16.079 4.626 19.382 7.929 19.382 12.004C19.382 16.079 16.079 19.382 12.004 19.382C7.929 19.382 4.626 16.079 4.626 12.004C4.626 7.929 7.929 4.626 12.004 4.626Z",op:"stroke",w:1.736,dash:[2.778,3.016]}]},team:{line:[{d:"M12.25 7.75C12.25 9.545 10.795 11 9 11C7.205 11 5.75 9.545 5.75 7.75C5.75 5.955 7.205 4.5 9 4.5C10.795 4.5 12.25 5.955 12.25 7.75Z",op:"stroke",w:1.5},{d:"M2.75 20L2.75 19.5C2.75 17.015 4.765 15 7.25 15L10.75 15C13.235 15 15.25 17.015 15.25 19.5L15.25 20",op:"stroke",w:1.5},{d:"M15.25 4.75C16.522 5.129 17.393 6.298 17.393 7.625C17.393 8.952 16.522 10.121 15.25 10.5",op:"stroke",w:1.5},{d:"M17.75 15.25C19.762 15.503 21.266 17.222 21.25 19.25L21.25 20",op:"stroke",w:1.5}],solid:[{d:"M12.25 7.75C12.25 9.545 10.795 11 9 11C7.205 11 5.75 9.545 5.75 7.75C5.75 5.955 7.205 4.5 9 4.5C10.795 4.5 12.25 5.955 12.25 7.75Z",op:"fill"},{d:"M12.25 7.75C12.25 9.545 10.795 11 9 11C7.205 11 5.75 9.545 5.75 7.75C5.75 5.955 7.205 4.5 9 4.5C10.795 4.5 12.25 5.955 12.25 7.75Z",op:"stroke",w:1.5},{d:"M2.75 20L2.75 19.5C2.75 17.015 4.765 15 7.25 15L10.75 15C13.235 15 15.25 17.015 15.25 19.5L15.25 20Z",op:"fill"},{d:"M2.75 20L2.75 19.5C2.75 17.015 4.765 15 7.25 15L10.75 15C13.235 15 15.25 17.015 15.25 19.5L15.25 20Z",op:"stroke",w:1.5},{d:"M15.25 4.75C16.522 5.129 17.393 6.298 17.393 7.625C17.393 8.952 16.522 10.121 15.25 10.5",op:"stroke",w:2},{d:"M17.75 15.25C19.762 15.503 21.266 17.222 21.25 19.25L21.25 20",op:"stroke",w:2}]},terminal:{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"stroke",w:1.5}],solid:[{d:"M6.112 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.982C20.834 18.608 19.515 19.927 17.889 19.927L6.112 19.927C4.486 19.927 3.167 18.608 3.167 16.982L3.167 7.017C3.167 5.391 4.486 4.072 6.112 4.072Z",op:"fill"},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M12.453 14.718L15.624 14.718C16.375 14.718 16.983 14.11 16.983 13.359L16.983 12.453",op:"stroke",w:1.5,accent:!0}]},"terminal.copymode":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M14.718 8.829L14.718 15.171M13.359 8.829L16.077 8.829M13.359 15.171L16.077 15.171",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"clearStroke",w:1.75},{d:"M14.718 8.829L14.718 15.171M13.359 8.829L16.077 8.829M13.359 15.171L16.077 15.171",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M7.47 9.735L10.188 12.453L7.47 15.171M14.718 9.282L14.718 15.624M13.359 9.282L16.077 9.282M13.359 15.624L16.077 15.624",op:"stroke",w:1.5},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"terminal.dead":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M13.133 11.321L16.304 14.492M16.303 11.321L13.132 14.492",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"clearStroke",w:1.75},{d:"M13.133 11.321L16.304 14.492M16.303 11.321L13.132 14.492",op:"clearStroke",w:1.75}]},"terminal.new":{line:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M7.445 9.289L10.178 12.022L7.445 14.755",op:"stroke",w:1.5},{d:"M21.793 17.488C21.793 19.878 19.856 21.815 17.466 21.815C15.076 21.815 13.139 19.878 13.139 17.488C13.139 15.098 15.076 13.161 17.466 13.161C19.856 13.161 21.793 15.098 21.793 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:1.5}],solid:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"fill"},{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M7.445 9.289L10.178 12.022L7.445 14.755",op:"clearStroke",w:1.75},{d:"M22.021 17.488C22.021 20.004 19.982 22.043 17.466 22.043C14.95 22.043 12.911 20.004 12.911 17.488C12.911 14.972 14.95 12.933 17.466 12.933C19.982 12.933 22.021 14.972 22.021 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:2,join:"miter"}],cat:[{d:"M6.078 5.645L17.922 5.645C19.18 5.645 20.199 6.664 20.199 7.922L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.922C3.801 6.664 4.82 5.645 6.078 5.645Z",op:"stroke",w:1.5},{d:"M7.445 9.745L10.178 12.478L7.445 15.211",op:"stroke",w:1.5},{d:"M21.793 17.488C21.793 19.878 19.856 21.815 17.466 21.815C15.076 21.815 13.139 19.878 13.139 17.488C13.139 15.098 15.076 13.161 17.466 13.161C19.856 13.161 21.793 15.098 21.793 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:1.5},{d:"M5.623 5.645L5.623 3.368L7.445 5.19M11.544 5.645L11.544 3.368L9.722 5.19",op:"stroke",w:1.5,accent:!0}]},"text.description":{line:[{d:"M4 6L20 6M4 10L15 10M4 14L20 14M4 18L13 18",op:"stroke",w:1.5}],solid:[{d:"M4 6L20 6M4 10L15 10M4 14L20 14M4 18L13 18",op:"stroke",w:2}]},"text.wrap":{line:[{d:"M4 5L20 5M4 11L16.5 11C18.157 11 19.5 12.343 19.5 14C19.5 15.657 18.157 17 16.5 17L13 17M15 15L13 17L15 19M4 17L9 17",op:"stroke",w:1.5}],solid:[{d:"M4 5L20 5M4 11L16.5 11C18.157 11 19.5 12.343 19.5 14C19.5 15.657 18.157 17 16.5 17L13 17M15 15L13 17L15 19M4 17L9 17",op:"stroke",w:2}]},theme:{line:[{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15",op:"stroke",w:1.5},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"stroke",w:1.5}],solid:[{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15Z",op:"fill"},{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15Z",op:"stroke",w:1.5},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"fill"},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"stroke",w:1.5}],cat:[{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15",op:"stroke",w:1.5},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"stroke",w:1.5},{d:"M4 9.75C4 7.541 5.791 5.75 8 5.75",op:"stroke",w:1.5,accent:!0}]},"theme.badge":{line:[{d:"M18.75 12C18.75 15.728 15.728 18.75 12 18.75C8.272 18.75 5.25 15.728 5.25 12C5.25 8.272 8.272 5.25 12 5.25C15.728 5.25 18.75 8.272 18.75 12Z",op:"stroke",w:1.5},{d:"M12 5.25L12 18.75C8.272 18.75 5.25 15.728 5.25 12C5.25 8.272 8.272 5.25 12 5.25Z",op:"fill"}],solid:[{d:"M19.594 12C19.594 16.194 16.194 19.594 12 19.594C7.806 19.594 4.406 16.194 4.406 12C4.406 7.806 7.806 4.406 12 4.406C16.194 4.406 19.594 7.806 19.594 12Z",op:"fill"}]},"tool.edit":{line:[{d:"M15.5 4.5L19.5 8.5L9 19L5 19L5 15Z",op:"stroke",w:1.5},{d:"M13.25 6.75L17.25 10.75",op:"stroke",w:1.5}],solid:[{d:"M15.5 4.5L19.5 8.5L9 19L5 19L5 15Z",op:"fill"},{d:"M15.5 4.5L19.5 8.5L9 19L5 19L5 15Z",op:"stroke",w:1.5,cap:"butt"},{d:"M13.25 6.75L17.25 10.75",op:"clearStroke",w:1.75}]},"tool.group":{line:[{d:"M5.949 10.138L18.051 10.138C19.337 10.138 20.379 11.18 20.379 12.466L20.379 17.586C20.379 18.872 19.337 19.914 18.051 19.914L5.949 19.914C4.663 19.914 3.621 18.872 3.621 17.586L3.621 12.466C3.621 11.18 4.663 10.138 5.949 10.138Z",op:"stroke",w:1.5},{d:"M5.948 7.112L18.051 7.112M8.276 4.086L15.724 4.086",op:"stroke",w:1.5}],solid:[{d:"M5.949 9.44L18.052 9.44C19.723 9.44 21.078 10.795 21.078 12.466L21.078 17.586C21.078 19.257 19.723 20.612 18.052 20.612L5.949 20.612C4.278 20.612 2.923 19.257 2.923 17.586L2.923 12.466C2.923 10.795 4.278 9.44 5.949 9.44Z",op:"fill"},{d:"M5.948 7.112L18.051 7.112M8.276 4.086L15.724 4.086",op:"stroke",w:2}]},"tool.read":{line:[{d:"M12 6.5C10 5 7 4.5 3.5 5L3.5 18.5C7 18 10 18.5 12 20C14 18.5 17 18 20.5 18.5L20.5 5C17 4.5 14 5 12 6.5Z",op:"stroke",w:1.5},{d:"M12 6.5L12 20",op:"stroke",w:1.5}],solid:[{d:"M12 6.5C10 5 7 4.5 3.5 5L3.5 18.5C7 18 10 18.5 12 20C14 18.5 17 18 20.5 18.5L20.5 5C17 4.5 14 5 12 6.5Z",op:"fill"},{d:"M12 6.5C10 5 7 4.5 3.5 5L3.5 18.5C7 18 10 18.5 12 20C14 18.5 17 18 20.5 18.5L20.5 5C17 4.5 14 5 12 6.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M12 6.5L12 20",op:"clearStroke",w:1.75}]},"tool.search":{line:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M15 15L20 20",op:"stroke",w:1.5}],solid:[{d:"M17.25 10.5C17.25 14.228 14.228 17.25 10.5 17.25C6.772 17.25 3.75 14.228 3.75 10.5C3.75 6.772 6.772 3.75 10.5 3.75C14.228 3.75 17.25 6.772 17.25 10.5Z",op:"fill"},{d:"M15 15L20 20",op:"stroke",w:2.5}]},"tool.shell":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"stroke",w:1.5}],solid:[{d:"M6.112 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.982C20.834 18.608 19.515 19.927 17.889 19.927L6.112 19.927C4.486 19.927 3.167 18.608 3.167 16.982L3.167 7.017C3.167 5.391 4.486 4.072 6.112 4.072Z",op:"fill"},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M12.453 14.718L15.624 14.718C16.375 14.718 16.983 14.11 16.983 13.359L16.983 12.453",op:"stroke",w:1.5,accent:!0}]},"tool.web":{line:[{d:"M20.424 12C20.424 16.652 16.652 20.424 12 20.424C7.348 20.424 3.576 16.652 3.576 12C3.576 7.348 7.348 3.576 12 3.576C16.652 3.576 20.424 7.348 20.424 12Z",op:"stroke",w:1.5},{d:"M15.51 12C15.51 16.652 13.939 20.424 12 20.424C10.061 20.424 8.49 16.652 8.49 12C8.49 7.348 10.061 3.576 12 3.576C13.939 3.576 15.51 7.348 15.51 12Z",op:"stroke",w:1.5},{d:"M3.576 12L20.424 12",op:"stroke",w:1.5}],solid:[{d:"M21.126 12C21.126 17.04 17.04 21.126 12 21.126C6.96 21.126 2.874 17.04 2.874 12C2.874 6.96 6.96 2.874 12 2.874C17.04 2.874 21.126 6.96 21.126 12Z",op:"fill"},{d:"M15.51 12C15.51 16.911 13.939 20.892 12 20.892C10.061 20.892 8.49 16.911 8.49 12C8.49 7.089 10.061 3.108 12 3.108C13.939 3.108 15.51 7.089 15.51 12Z",op:"clearStroke",w:1.75},{d:"M2.64 12L21.36 12",op:"clearStroke",w:1.75}]},tools:{line:[{d:"M20.25 8.75L17.25 11.5L14 11L13.5 7.75L16.25 4.75C14.579 4.219 12.751 4.652 11.496 5.876C10.241 7.1 9.762 8.916 10.25 10.6L4.6 16.25C3.772 17.078 3.772 18.422 4.6 19.25C5.428 20.078 6.772 20.078 7.6 19.25L13.4 13.75C14.996 14.566 16.916 14.415 18.363 13.358C19.811 12.301 20.541 10.519 20.25 8.75Z",op:"stroke",w:1.5}],solid:[{d:"M20.25 8.75L17.25 11.5L14 11L13.5 7.75L16.25 4.75C14.579 4.219 12.751 4.652 11.496 5.876C10.241 7.1 9.762 8.916 10.25 10.6L4.6 16.25C3.772 17.078 3.772 18.422 4.6 19.25C5.428 20.078 6.772 20.078 7.6 19.25L13.4 13.75C14.996 14.566 16.916 14.415 18.363 13.358C19.811 12.301 20.541 10.519 20.25 8.75Z",op:"fill"},{d:"M20.25 8.75L17.25 11.5L14 11L13.5 7.75L16.25 4.75C14.579 4.219 12.751 4.652 11.496 5.876C10.241 7.1 9.762 8.916 10.25 10.6L4.6 16.25C3.772 17.078 3.772 18.422 4.6 19.25C5.428 20.078 6.772 20.078 7.6 19.25L13.4 13.75C14.996 14.566 16.916 14.415 18.363 13.358C19.811 12.301 20.541 10.519 20.25 8.75Z",op:"stroke",w:1.5}]},"trust.invalid":{line:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"stroke",w:1.5}],solid:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"fill"},{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"clearStroke",w:1.75}]},"trust.source":{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M10 11.5L14 11.5C14.552 11.5 15 11.948 15 12.5L15 15C15 15.552 14.552 16 14 16L10 16C9.448 16 9 15.552 9 15L9 12.5C9 11.948 9.448 11.5 10 11.5Z",op:"stroke",w:1.5},{d:"M10.25 11.5L10.25 10C10.25 9.034 11.034 8.25 12 8.25C12.966 8.25 13.75 9.034 13.75 10L13.75 11.5",op:"stroke",w:1.5}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M10.25 11.5L10.25 10C10.25 9.034 11.034 8.25 12 8.25C12.966 8.25 13.75 9.034 13.75 10L13.75 11.5",op:"clearStroke",w:1.75},{d:"M9.75 10.75L14.25 10.75C15.078 10.75 15.75 11.422 15.75 12.25L15.75 15.25C15.75 16.078 15.078 16.75 14.25 16.75L9.75 16.75C8.922 16.75 8.25 16.078 8.25 15.25L8.25 12.25C8.25 11.422 8.922 10.75 9.75 10.75Z",op:"clearFill"},{d:"M10.25 12L13.75 12C14.164 12 14.5 12.336 14.5 12.75L14.5 14.75C14.5 15.164 14.164 15.5 13.75 15.5L10.25 15.5C9.836 15.5 9.5 15.164 9.5 14.75L9.5 12.75C9.5 12.336 9.836 12 10.25 12Z",op:"fill"}]},"trust.verified":{line:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5},{d:"M8.25 12.25L10.75 14.75L15.75 9.5",op:"stroke",w:1.5}],solid:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"fill"},{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.25 12.25L10.75 14.75L15.75 9.5",op:"clearStroke",w:1.75}]},"tunable.agentActivity":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.4 10.5C9.4 11.135 8.885 11.65 8.25 11.65C7.615 11.65 7.1 11.135 7.1 10.5C7.1 9.865 7.615 9.35 8.25 9.35C8.885 9.35 9.4 9.865 9.4 10.5Z",op:"fill"},{d:"M13.15 10.5C13.15 11.135 12.635 11.65 12 11.65C11.365 11.65 10.85 11.135 10.85 10.5C10.85 9.865 11.365 9.35 12 9.35C12.635 9.35 13.15 9.865 13.15 10.5Z",op:"fill"},{d:"M16.9 10.5C16.9 11.135 16.385 11.65 15.75 11.65C15.115 11.65 14.6 11.135 14.6 10.5C14.6 9.865 15.115 9.35 15.75 9.35C16.385 9.35 16.9 9.865 16.9 10.5Z",op:"fill"}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 10.5C9.5 11.19 8.94 11.75 8.25 11.75C7.56 11.75 7 11.19 7 10.5C7 9.81 7.56 9.25 8.25 9.25C8.94 9.25 9.5 9.81 9.5 10.5Z",op:"clearFill"},{d:"M13.25 10.5C13.25 11.19 12.69 11.75 12 11.75C11.31 11.75 10.75 11.19 10.75 10.5C10.75 9.81 11.31 9.25 12 9.25C12.69 9.25 13.25 9.81 13.25 10.5Z",op:"clearFill"},{d:"M17 10.5C17 11.19 16.44 11.75 15.75 11.75C15.06 11.75 14.5 11.19 14.5 10.5C14.5 9.81 15.06 9.25 15.75 9.25C16.44 9.25 17 9.81 17 10.5Z",op:"clearFill"}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.4 10.5C9.4 11.135 8.885 11.65 8.25 11.65C7.615 11.65 7.1 11.135 7.1 10.5C7.1 9.865 7.615 9.35 8.25 9.35C8.885 9.35 9.4 9.865 9.4 10.5Z",op:"fill"},{d:"M13.15 10.5C13.15 11.135 12.635 11.65 12 11.65C11.365 11.65 10.85 11.135 10.85 10.5C10.85 9.865 11.365 9.35 12 9.35C12.635 9.35 13.15 9.865 13.15 10.5Z",op:"fill"},{d:"M16.9 10.5C16.9 11.135 16.385 11.65 15.75 11.65C15.115 11.65 14.6 11.135 14.6 10.5C14.6 9.865 15.115 9.35 15.75 9.35C16.385 9.35 16.9 9.865 16.9 10.5Z",op:"fill"},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"tunable.apps":{line:[{d:"M6 3.5L8 3.5C9.381 3.5 10.5 4.619 10.5 6L10.5 8C10.5 9.381 9.381 10.5 8 10.5L6 10.5C4.619 10.5 3.5 9.381 3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5Z",op:"stroke",w:1.5},{d:"M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8C20.5 9.381 19.381 10.5 18 10.5L16 10.5C14.619 10.5 13.5 9.381 13.5 8L13.5 6C13.5 4.619 14.619 3.5 16 3.5Z",op:"stroke",w:1.5},{d:"M6 13.5L8 13.5C9.381 13.5 10.5 14.619 10.5 16L10.5 18C10.5 19.381 9.381 20.5 8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16C3.5 14.619 4.619 13.5 6 13.5Z",op:"stroke",w:1.5},{d:"M17 14L17 20M14 17L20 17",op:"stroke",w:1.5}],solid:[{d:"M6 3.5L8 3.5C9.381 3.5 10.5 4.619 10.5 6L10.5 8C10.5 9.381 9.381 10.5 8 10.5L6 10.5C4.619 10.5 3.5 9.381 3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5Z",op:"fill"},{d:"M6 3.5L8 3.5C9.381 3.5 10.5 4.619 10.5 6L10.5 8C10.5 9.381 9.381 10.5 8 10.5L6 10.5C4.619 10.5 3.5 9.381 3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5Z",op:"stroke",w:1.5},{d:"M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8C20.5 9.381 19.381 10.5 18 10.5L16 10.5C14.619 10.5 13.5 9.381 13.5 8L13.5 6C13.5 4.619 14.619 3.5 16 3.5Z",op:"fill"},{d:"M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8C20.5 9.381 19.381 10.5 18 10.5L16 10.5C14.619 10.5 13.5 9.381 13.5 8L13.5 6C13.5 4.619 14.619 3.5 16 3.5Z",op:"stroke",w:1.5},{d:"M6 13.5L8 13.5C9.381 13.5 10.5 14.619 10.5 16L10.5 18C10.5 19.381 9.381 20.5 8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16C3.5 14.619 4.619 13.5 6 13.5Z",op:"fill"},{d:"M6 13.5L8 13.5C9.381 13.5 10.5 14.619 10.5 16L10.5 18C10.5 19.381 9.381 20.5 8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16C3.5 14.619 4.619 13.5 6 13.5Z",op:"stroke",w:1.5},{d:"M17 14L17 20M14 17L20 17",op:"stroke",w:2}]},"tunable.dropOverlay":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.924 7.697L16.077 7.697C16.703 7.697 17.21 8.204 17.21 8.83L17.21 15.171C17.21 15.797 16.703 16.304 16.077 16.304L7.924 16.304C7.298 16.304 6.791 15.797 6.791 15.171L6.791 8.83C6.791 8.204 7.298 7.697 7.924 7.697Z",op:"stroke",w:1.5,dash:[3.009,3.009],dashPhase:-1.504}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.924 7.697L16.077 7.697C16.703 7.697 17.21 8.204 17.21 8.83L17.21 15.171C17.21 15.797 16.703 16.304 16.077 16.304L7.924 16.304C7.298 16.304 6.791 15.797 6.791 15.171L6.791 8.83C6.791 8.204 7.298 7.697 7.924 7.697Z",op:"clearStroke",w:1.6,dash:[3.009,3.009],dashPhase:-1.504}]},"tunable.fades":{line:[{d:"M5.25 4L5.25 4C5.94 4 6.5 4.56 6.5 5.25L6.5 18.75C6.5 19.44 5.94 20 5.25 20L5.25 20C4.56 20 4 19.44 4 18.75L4 5.25C4 4.56 4.56 4 5.25 4Z",op:"fill"},{d:"M9.75 4L9.75 4C10.44 4 11 4.56 11 5.25L11 18.75C11 19.44 10.44 20 9.75 20L9.75 20C9.06 20 8.5 19.44 8.5 18.75L8.5 5.25C8.5 4.56 9.06 4 9.75 4Z",op:"fill",alpha:.7},{d:"M14.25 4L14.25 4C14.94 4 15.5 4.56 15.5 5.25L15.5 18.75C15.5 19.44 14.94 20 14.25 20L14.25 20C13.56 20 13 19.44 13 18.75L13 5.25C13 4.56 13.56 4 14.25 4Z",op:"fill",alpha:.45},{d:"M18.75 4L18.75 4C19.44 4 20 4.56 20 5.25L20 18.75C20 19.44 19.44 20 18.75 20L18.75 20C18.06 20 17.5 19.44 17.5 18.75L17.5 5.25C17.5 4.56 18.06 4 18.75 4Z",op:"fill",alpha:.22}],solid:[{d:"M5 3.5L5.5 3.5C6.328 3.5 7 4.172 7 5L7 19C7 19.828 6.328 20.5 5.5 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 5C3.5 4.172 4.172 3.5 5 3.5Z",op:"fill"},{d:"M9.5 3.5L10 3.5C10.828 3.5 11.5 4.172 11.5 5L11.5 19C11.5 19.828 10.828 20.5 10 20.5L9.5 20.5C8.672 20.5 8 19.828 8 19L8 5C8 4.172 8.672 3.5 9.5 3.5Z",op:"fill",alpha:.7},{d:"M14 3.5L14.5 3.5C15.328 3.5 16 4.172 16 5L16 19C16 19.828 15.328 20.5 14.5 20.5L14 20.5C13.172 20.5 12.5 19.828 12.5 19L12.5 5C12.5 4.172 13.172 3.5 14 3.5Z",op:"fill",alpha:.45},{d:"M18.5 3.5L19 3.5C19.828 3.5 20.5 4.172 20.5 5L20.5 19C20.5 19.828 19.828 20.5 19 20.5L18.5 20.5C17.672 20.5 17 19.828 17 19L17 5C17 4.172 17.672 3.5 18.5 3.5Z",op:"fill",alpha:.22}]},"tunable.feed":{line:[{d:"M5 11C9.418 11 13 14.582 13 19M5 4.5C13.008 4.5 19.5 10.992 19.5 19",op:"stroke",w:1.5},{d:"M7.75 18C7.75 18.966 6.966 19.75 6 19.75C5.034 19.75 4.25 18.966 4.25 18C4.25 17.034 5.034 16.25 6 16.25C6.966 16.25 7.75 17.034 7.75 18Z",op:"fill"}],solid:[{d:"M5 11C9.418 11 13 14.582 13 19M5 4.5C13.008 4.5 19.5 10.992 19.5 19",op:"stroke",w:2},{d:"M8.25 18C8.25 19.243 7.243 20.25 6 20.25C4.757 20.25 3.75 19.243 3.75 18C3.75 16.757 4.757 15.75 6 15.75C7.243 15.75 8.25 16.757 8.25 18Z",op:"fill"}]},"tunable.focus":{line:[{d:"M3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5L8 3.5M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8M20.5 16L20.5 18C20.5 19.381 19.381 20.5 18 20.5L16 20.5M8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16",op:"stroke",w:1.5},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:1.5}],solid:[{d:"M3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5L8 3.5M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8M20.5 16L20.5 18C20.5 19.381 19.381 20.5 18 20.5L16 20.5M8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16",op:"stroke",w:2},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"fill"},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:2}]},"tunable.glass":{line:[{d:"M7.887 4.231L16.113 4.231C18.132 4.231 19.769 5.868 19.769 7.887L19.769 16.113C19.769 18.132 18.132 19.769 16.113 19.769L7.887 19.769C5.868 19.769 4.231 18.132 4.231 16.113L4.231 7.887C4.231 5.868 5.868 4.231 7.887 4.231Z",op:"stroke",w:1.5},{d:"M7.887 12L12 7.887M7.887 15.199L9.258 13.828",op:"stroke",w:1.5}],solid:[{d:"M7.887 4.231L16.113 4.231C18.132 4.231 19.769 5.868 19.769 7.887L19.769 16.113C19.769 18.132 18.132 19.769 16.113 19.769L7.887 19.769C5.868 19.769 4.231 18.132 4.231 16.113L4.231 7.887C4.231 5.868 5.868 4.231 7.887 4.231Z",op:"fill"},{d:"M7.887 4.231L16.113 4.231C18.132 4.231 19.769 5.868 19.769 7.887L19.769 16.113C19.769 18.132 18.132 19.769 16.113 19.769L7.887 19.769C5.868 19.769 4.231 18.132 4.231 16.113L4.231 7.887C4.231 5.868 5.868 4.231 7.887 4.231Z",op:"stroke",w:1.5},{d:"M7.887 12L12 7.887M7.887 15.199L9.258 13.828",op:"clearStroke",w:1.75}]},"tunable.hover":{line:[{d:"M5.5 3.5L13.5 3.5C14.605 3.5 15.5 4.395 15.5 5.5L15.5 13.5C15.5 14.605 14.605 15.5 13.5 15.5L5.5 15.5C4.395 15.5 3.5 14.605 3.5 13.5L3.5 5.5C3.5 4.395 4.395 3.5 5.5 3.5Z",op:"stroke",w:1.5,dash:[2.785,2.785],dashPhase:-1.393},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearFill"},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearStroke",w:4.5},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"stroke",w:1.5}],solid:[{d:"M5.5 3.5L13.5 3.5C14.605 3.5 15.5 4.395 15.5 5.5L15.5 13.5C15.5 14.605 14.605 15.5 13.5 15.5L5.5 15.5C4.395 15.5 3.5 14.605 3.5 13.5L3.5 5.5C3.5 4.395 4.395 3.5 5.5 3.5Z",op:"stroke",w:2,dash:[2.785,2.785],dashPhase:-1.393},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearFill"},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearStroke",w:5},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"fill"},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"stroke",w:1.5}]},"tunable.palette":{line:[{d:"M9 9L9 6.5C9 5.119 7.881 4 6.5 4C5.119 4 4 5.119 4 6.5C4 7.881 5.119 9 6.5 9L17.5 9C18.881 9 20 7.881 20 6.5C20 5.119 18.881 4 17.5 4C16.119 4 15 5.119 15 6.5L15 17.5C15 18.881 16.119 20 17.5 20C18.881 20 20 18.881 20 17.5C20 16.119 18.881 15 17.5 15L6.5 15C5.119 15 4 16.119 4 17.5C4 18.881 5.119 20 6.5 20C7.881 20 9 18.881 9 17.5Z",op:"stroke",w:1.5}],solid:[{d:"M9 9L9 6.5C9 5.119 7.881 4 6.5 4C5.119 4 4 5.119 4 6.5C4 7.881 5.119 9 6.5 9L17.5 9C18.881 9 20 7.881 20 6.5C20 5.119 18.881 4 17.5 4C16.119 4 15 5.119 15 6.5L15 17.5C15 18.881 16.119 20 17.5 20C18.881 20 20 18.881 20 17.5C20 16.119 18.881 15 17.5 15L6.5 15C5.119 15 4 16.119 4 17.5C4 18.881 5.119 20 6.5 20C7.881 20 9 18.881 9 17.5Z",op:"stroke",w:2}]},"tunable.panes":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12 4.752L12 19.248M12 12L20.154 12",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12 4.752L12 19.248M12 12L20.154 12",op:"clearStroke",w:1.75}]},"tunable.server":{line:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.4 7.725C8.4 8.222 7.997 8.625 7.5 8.625C7.003 8.625 6.6 8.222 6.6 7.725C6.6 7.228 7.003 6.825 7.5 6.825C7.997 6.825 8.4 7.228 8.4 7.725Z",op:"fill"},{d:"M8.4 16.275C8.4 16.772 7.997 17.175 7.5 17.175C7.003 17.175 6.6 16.772 6.6 16.275C6.6 15.778 7.003 15.375 7.5 15.375C7.997 15.375 8.4 15.778 8.4 16.275Z",op:"fill"}],solid:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"fill"},{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"fill"},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.535 7.725C8.535 8.297 8.072 8.76 7.5 8.76C6.928 8.76 6.465 8.297 6.465 7.725C6.465 7.153 6.928 6.69 7.5 6.69C8.072 6.69 8.535 7.153 8.535 7.725Z",op:"clearFill"},{d:"M8.535 16.275C8.535 16.847 8.072 17.31 7.5 17.31C6.928 17.31 6.465 16.847 6.465 16.275C6.465 15.703 6.928 15.24 7.5 15.24C8.072 15.24 8.535 15.703 8.535 16.275Z",op:"clearFill"}]},"tunable.settingsWindow":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"stroke",w:1.5},{d:"M9.735 12L14.265 12C15.516 12 16.53 13.014 16.53 14.265L16.53 14.265C16.53 15.516 15.516 16.53 14.265 16.53L9.735 16.53C8.484 16.53 7.47 15.516 7.47 14.265L7.47 14.265C7.47 13.014 8.484 12 9.735 12Z",op:"stroke",w:1.5},{d:"M15.398 14.265C15.398 14.891 14.891 15.398 14.265 15.398C13.639 15.398 13.132 14.891 13.132 14.265C13.132 13.639 13.639 13.132 14.265 13.132C14.891 13.132 15.398 13.639 15.398 14.265Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"clearStroke",w:1.75},{d:"M9.735 12L14.265 12C15.516 12 16.53 13.014 16.53 14.265L16.53 14.265C16.53 15.516 15.516 16.53 14.265 16.53L9.735 16.53C8.484 16.53 7.47 15.516 7.47 14.265L7.47 14.265C7.47 13.014 8.484 12 9.735 12Z",op:"clearStroke",w:1.75},{d:"M15.488 14.265C15.488 14.94 14.94 15.488 14.265 15.488C13.59 15.488 13.042 14.94 13.042 14.265C13.042 13.59 13.59 13.042 14.265 13.042C14.94 13.042 15.488 13.59 15.488 14.265Z",op:"clearFill"}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M3.846 9.735L20.154 9.735",op:"stroke",w:1.5},{d:"M9.735 12.453L14.265 12.453C15.516 12.453 16.53 13.467 16.53 14.718L16.53 14.718C16.53 15.969 15.516 16.983 14.265 16.983L9.735 16.983C8.484 16.983 7.47 15.969 7.47 14.718L7.47 14.718C7.47 13.467 8.484 12.453 9.735 12.453Z",op:"stroke",w:1.5},{d:"M15.398 14.718C15.398 15.344 14.891 15.851 14.265 15.851C13.639 15.851 13.132 15.344 13.132 14.718C13.132 14.092 13.639 13.585 14.265 13.585C14.891 13.585 15.398 14.092 15.398 14.718Z",op:"fill"},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"tunable.shape":{line:[{d:"M5.5 9.5L12.5 9.5C13.605 9.5 14.5 10.395 14.5 11.5L14.5 18.5C14.5 19.605 13.605 20.5 12.5 20.5L5.5 20.5C4.395 20.5 3.5 19.605 3.5 18.5L3.5 11.5C3.5 10.395 4.395 9.5 5.5 9.5Z",op:"stroke",w:1.5},{d:"M22.25 9C22.25 13.004 19.004 16.25 15 16.25C10.996 16.25 7.75 13.004 7.75 9C7.75 4.996 10.996 1.75 15 1.75C19.004 1.75 22.25 4.996 22.25 9Z",op:"clearFill"},{d:"M20.5 9C20.5 12.038 18.038 14.5 15 14.5C11.962 14.5 9.5 12.038 9.5 9C9.5 5.962 11.962 3.5 15 3.5C18.038 3.5 20.5 5.962 20.5 9Z",op:"stroke",w:1.5}],solid:[{d:"M5.5 9.5L12.5 9.5C13.605 9.5 14.5 10.395 14.5 11.5L14.5 18.5C14.5 19.605 13.605 20.5 12.5 20.5L5.5 20.5C4.395 20.5 3.5 19.605 3.5 18.5L3.5 11.5C3.5 10.395 4.395 9.5 5.5 9.5Z",op:"fill"},{d:"M5.5 9.5L12.5 9.5C13.605 9.5 14.5 10.395 14.5 11.5L14.5 18.5C14.5 19.605 13.605 20.5 12.5 20.5L5.5 20.5C4.395 20.5 3.5 19.605 3.5 18.5L3.5 11.5C3.5 10.395 4.395 9.5 5.5 9.5Z",op:"stroke",w:1.5},{d:"M22.5 9C22.5 13.142 19.142 16.5 15 16.5C10.858 16.5 7.5 13.142 7.5 9C7.5 4.858 10.858 1.5 15 1.5C19.142 1.5 22.5 4.858 22.5 9Z",op:"clearFill"},{d:"M20.5 9C20.5 12.038 18.038 14.5 15 14.5C11.962 14.5 9.5 12.038 9.5 9C9.5 5.962 11.962 3.5 15 3.5C18.038 3.5 20.5 5.962 20.5 9Z",op:"fill"},{d:"M20.5 9C20.5 12.038 18.038 14.5 15 14.5C11.962 14.5 9.5 12.038 9.5 9C9.5 5.962 11.962 3.5 15 3.5C18.038 3.5 20.5 5.962 20.5 9Z",op:"stroke",w:1.5}]},"tunable.sidebar":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 6.791L8.603 6.791C9.103 6.791 9.509 7.197 9.509 7.697L9.509 16.304C9.509 16.804 9.103 17.21 8.603 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 7.697C5.885 7.197 6.291 6.791 6.791 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12.453 5.432L17.888 5.432C18.764 5.432 19.474 6.142 19.474 7.018L19.474 16.983C19.474 17.859 18.764 18.569 17.888 18.569L12.453 18.569C11.577 18.569 10.867 17.859 10.867 16.983L10.867 7.018C10.867 6.142 11.577 5.432 12.453 5.432Z",op:"clearFill"}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M6.791 7.697L8.603 7.697C9.103 7.697 9.509 8.103 9.509 8.603L9.509 16.304C9.509 16.804 9.103 17.21 8.603 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 8.603C5.885 8.103 6.291 7.697 6.791 7.697Z",op:"fill"},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"tunable.springs":{line:[{d:"M4.85 18L4.68 17.97L4.51 17.87L4.34 17.71L4.19 17.48L4.04 17.2L3.9 16.85L3.79 16.46L3.69 16.01L3.61 15.53L3.55 15L3.51 14.44L3.5 13.85L3.51 13.25L3.55 12.63L3.62 12L3.71 11.37L3.83 10.75L3.98 10.15L4.15 9.56L4.34 9L4.56 8.47L4.8 7.99L5.06 7.54L5.33 7.15L5.63 6.8L5.93 6.52L6.25 6.29L6.57 6.13L6.9 6.03L7.24 6L7.57 6.03L7.9 6.13L8.22 6.29L8.54 6.52L8.85 6.8L9.14 7.15L9.42 7.54L9.67 7.99L9.91 8.47L10.13 9L10.33 9.56L10.5 10.15L10.64 10.75L10.76 11.37L10.85 12L10.92 12.63L10.96 13.25L10.97 13.85L10.96 14.44L10.93 15L10.87 15.53L10.79 16.01L10.69 16.46L10.57 16.85L10.43 17.2L10.29 17.48L10.13 17.71L9.96 17.87L9.79 17.97L9.62 18L9.44 17.97L9.27 17.87L9.11 17.71L8.95 17.48L8.8 17.2L8.67 16.85L8.55 16.46L8.45 16.01L8.37 15.53L8.31 15L8.28 14.44L8.26 13.85L8.28 13.25L8.32 12.63L8.38 12L8.48 11.37L8.59 10.75L8.74 10.15L8.91 9.56L9.11 9L9.32 8.47L9.56 7.99L9.82 7.54L10.1 7.15L10.39 6.8L10.7 6.52L11.01 6.29L11.34 6.13L11.67 6.03L12 6L12.33 6.03L12.66 6.13L12.99 6.29L13.3 6.52L13.61 6.8L13.9 7.15L14.18 7.54L14.44 7.99L14.68 8.47L14.89 9L15.09 9.56L15.26 10.15L15.41 10.75L15.52 11.37L15.62 12L15.68 12.63L15.72 13.25L15.74 13.85L15.72 14.44L15.69 15L15.63 15.53L15.55 16.01L15.45 16.46L15.33 16.85L15.2 17.2L15.05 17.48L14.89 17.71L14.73 17.87L14.56 17.97L14.38 18L14.21 17.97L14.04 17.87L13.87 17.71L13.71 17.48L13.57 17.2L13.43 16.85L13.31 16.46L13.21 16.01L13.13 15.53L13.07 15L13.04 14.44L13.03 13.85L13.04 13.25L13.08 12.63L13.15 12L13.24 11.37L13.36 10.75L13.5 10.15L13.67 9.56L13.87 9L14.09 8.47L14.33 7.99L14.58 7.54L14.86 7.15L15.15 6.8L15.46 6.52L15.78 6.29L16.1 6.13L16.43 6.03L16.76 6L17.1 6.03L17.43 6.13L17.75 6.29L18.07 6.52L18.37 6.8L18.67 7.15L18.94 7.54L19.2 7.99L19.44 8.47L19.66 9L19.85 9.56L20.02 10.15L20.17 10.75L20.29 11.37L20.38 12L20.45 12.63L20.49 13.25L20.5 13.85L20.49 14.44L20.45 15L20.39 15.53L20.31 16.01L20.21 16.46L20.1 16.85L19.96 17.2L19.81 17.48L19.66 17.71L19.49 17.87L19.32 17.97L19.15 18",op:"stroke",w:1.5}],solid:[{d:"M4.85 18L4.68 17.97L4.51 17.87L4.34 17.71L4.19 17.48L4.04 17.2L3.9 16.85L3.79 16.46L3.69 16.01L3.61 15.53L3.55 15L3.51 14.44L3.5 13.85L3.51 13.25L3.55 12.63L3.62 12L3.71 11.37L3.83 10.75L3.98 10.15L4.15 9.56L4.34 9L4.56 8.47L4.8 7.99L5.06 7.54L5.33 7.15L5.63 6.8L5.93 6.52L6.25 6.29L6.57 6.13L6.9 6.03L7.24 6L7.57 6.03L7.9 6.13L8.22 6.29L8.54 6.52L8.85 6.8L9.14 7.15L9.42 7.54L9.67 7.99L9.91 8.47L10.13 9L10.33 9.56L10.5 10.15L10.64 10.75L10.76 11.37L10.85 12L10.92 12.63L10.96 13.25L10.97 13.85L10.96 14.44L10.93 15L10.87 15.53L10.79 16.01L10.69 16.46L10.57 16.85L10.43 17.2L10.29 17.48L10.13 17.71L9.96 17.87L9.79 17.97L9.62 18L9.44 17.97L9.27 17.87L9.11 17.71L8.95 17.48L8.8 17.2L8.67 16.85L8.55 16.46L8.45 16.01L8.37 15.53L8.31 15L8.28 14.44L8.26 13.85L8.28 13.25L8.32 12.63L8.38 12L8.48 11.37L8.59 10.75L8.74 10.15L8.91 9.56L9.11 9L9.32 8.47L9.56 7.99L9.82 7.54L10.1 7.15L10.39 6.8L10.7 6.52L11.01 6.29L11.34 6.13L11.67 6.03L12 6L12.33 6.03L12.66 6.13L12.99 6.29L13.3 6.52L13.61 6.8L13.9 7.15L14.18 7.54L14.44 7.99L14.68 8.47L14.89 9L15.09 9.56L15.26 10.15L15.41 10.75L15.52 11.37L15.62 12L15.68 12.63L15.72 13.25L15.74 13.85L15.72 14.44L15.69 15L15.63 15.53L15.55 16.01L15.45 16.46L15.33 16.85L15.2 17.2L15.05 17.48L14.89 17.71L14.73 17.87L14.56 17.97L14.38 18L14.21 17.97L14.04 17.87L13.87 17.71L13.71 17.48L13.57 17.2L13.43 16.85L13.31 16.46L13.21 16.01L13.13 15.53L13.07 15L13.04 14.44L13.03 13.85L13.04 13.25L13.08 12.63L13.15 12L13.24 11.37L13.36 10.75L13.5 10.15L13.67 9.56L13.87 9L14.09 8.47L14.33 7.99L14.58 7.54L14.86 7.15L15.15 6.8L15.46 6.52L15.78 6.29L16.1 6.13L16.43 6.03L16.76 6L17.1 6.03L17.43 6.13L17.75 6.29L18.07 6.52L18.37 6.8L18.67 7.15L18.94 7.54L19.2 7.99L19.44 8.47L19.66 9L19.85 9.56L20.02 10.15L20.17 10.75L20.29 11.37L20.38 12L20.45 12.63L20.49 13.25L20.5 13.85L20.49 14.44L20.45 15L20.39 15.53L20.31 16.01L20.21 16.46L20.1 16.85L19.96 17.2L19.81 17.48L19.66 17.71L19.49 17.87L19.32 17.97L19.15 18",op:"stroke",w:2}],cat:[{d:"M4.85 18L4.68 17.97L4.51 17.87L4.34 17.71L4.19 17.48L4.04 17.2L3.9 16.85L3.79 16.46L3.69 16.01L3.61 15.53L3.55 15L3.51 14.44L3.5 13.85L3.51 13.25L3.55 12.63L3.62 12L3.71 11.37L3.83 10.75L3.98 10.15L4.15 9.56L4.34 9L4.56 8.47L4.8 7.99L5.06 7.54L5.33 7.15L5.63 6.8L5.93 6.52L6.25 6.29L6.57 6.13L6.9 6.03L7.24 6L7.57 6.03L7.9 6.13L8.22 6.29L8.54 6.52L8.85 6.8L9.14 7.15L9.42 7.54L9.67 7.99L9.91 8.47L10.13 9L10.33 9.56L10.5 10.15L10.64 10.75L10.76 11.37L10.85 12L10.92 12.63L10.96 13.25L10.97 13.85L10.96 14.44L10.93 15L10.87 15.53L10.79 16.01L10.69 16.46L10.57 16.85L10.43 17.2L10.29 17.48L10.13 17.71L9.96 17.87L9.79 17.97L9.62 18L9.44 17.97L9.27 17.87L9.11 17.71L8.95 17.48L8.8 17.2L8.67 16.85L8.55 16.46L8.45 16.01L8.37 15.53L8.31 15L8.28 14.44L8.26 13.85L8.28 13.25L8.32 12.63L8.38 12L8.48 11.37L8.59 10.75L8.74 10.15L8.91 9.56L9.11 9L9.32 8.47L9.56 7.99L9.82 7.54L10.1 7.15L10.39 6.8L10.7 6.52L11.01 6.29L11.34 6.13L11.67 6.03L12 6L12.33 6.03L12.66 6.13L12.99 6.29L13.3 6.52L13.61 6.8L13.9 7.15L14.18 7.54L14.44 7.99L14.68 8.47L14.89 9L15.09 9.56L15.26 10.15L15.41 10.75L15.52 11.37L15.62 12L15.68 12.63L15.72 13.25L15.74 13.85L15.72 14.44L15.69 15L15.63 15.53L15.55 16.01L15.45 16.46L15.33 16.85L15.2 17.2L15.05 17.48L14.89 17.71L14.73 17.87L14.56 17.97L14.38 18L14.21 17.97L14.04 17.87L13.87 17.71L13.71 17.48L13.57 17.2L13.43 16.85L13.31 16.46L13.21 16.01L13.13 15.53L13.07 15L13.04 14.44L13.03 13.85L13.04 13.25L13.08 12.63L13.15 12L13.24 11.37L13.36 10.75L13.5 10.15L13.67 9.56L13.87 9L14.09 8.47L14.33 7.99L14.58 7.54L14.86 7.15L15.15 6.8L15.46 6.52L15.78 6.29L16.1 6.13L16.43 6.03L16.76 6L17.1 6.03L17.43 6.13L17.75 6.29L18.07 6.52L18.37 6.8L18.67 7.15L18.94 7.54L19.2 7.99L19.44 8.47L19.66 9L19.85 9.56L20.02 10.15L20.17 10.75L20.29 11.37L20.38 12L20.45 12.63L20.49 13.25L20.5 13.85L20.49 14.44L20.45 15L20.39 15.53L20.31 16.01L20.21 16.46L20.1 16.85L19.96 17.2L19.81 17.48L19.66 17.71L19.49 17.87L19.32 17.97L19.15 18",op:"stroke",w:1.5},{d:"M20.5 18C21.25 19.5 20.75 21 19 21",op:"stroke",w:1.5,accent:!0}]},"tunable.status":{line:[{d:"M12 7.5L12 3.5",op:"stroke",w:1.5},{d:"M15.18 8.82L18.01 5.99",op:"stroke",w:1.5,alpha:.88},{d:"M16.5 12L20.5 12",op:"stroke",w:1.5,alpha:.76},{d:"M15.18 15.18L18.01 18.01",op:"stroke",w:1.5,alpha:.64},{d:"M12 16.5L12 20.5",op:"stroke",w:1.5,alpha:.52},{d:"M8.82 15.18L5.99 18.01",op:"stroke",w:1.5,alpha:.4},{d:"M7.5 12L3.5 12",op:"stroke",w:1.5,alpha:.3},{d:"M8.82 8.82L5.99 5.99",op:"stroke",w:1.5,alpha:.2}],solid:[{d:"M12 7.5L12 3.5",op:"stroke",w:2},{d:"M15.18 8.82L18.01 5.99",op:"stroke",w:2,alpha:.88},{d:"M16.5 12L20.5 12",op:"stroke",w:2,alpha:.76},{d:"M15.18 15.18L18.01 18.01",op:"stroke",w:2,alpha:.64},{d:"M12 16.5L12 20.5",op:"stroke",w:2,alpha:.52},{d:"M8.82 15.18L5.99 18.01",op:"stroke",w:2,alpha:.4},{d:"M7.5 12L3.5 12",op:"stroke",w:2,alpha:.3},{d:"M8.82 8.82L5.99 5.99",op:"stroke",w:2,alpha:.2}]},"tunable.tabDrag":{line:[{d:"M3 11.5L3 6C3 4.619 4.119 3.5 5.5 3.5L12.5 3.5C13.881 3.5 15 4.619 15 6L15 11.5Z",op:"stroke",w:1.5},{d:"M9 11.5L9 16C9 17.105 9.895 18 11 18L20.5 18M17 15L20 18L17 21",op:"stroke",w:1.5}],solid:[{d:"M3 11.5L3 6C3 4.619 4.119 3.5 5.5 3.5L12.5 3.5C13.881 3.5 15 4.619 15 6L15 11.5Z",op:"fill"},{d:"M3 11.5L3 6C3 4.619 4.119 3.5 5.5 3.5L12.5 3.5C13.881 3.5 15 4.619 15 6L15 11.5Z",op:"stroke",w:1.5},{d:"M9 11.5L9 16C9 17.105 9.895 18 11 18L20.5 18M17 15L20 18L17 21",op:"stroke",w:2}]},"tunable.tabs":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282M10.188 4.752L10.188 9.282",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282M10.188 4.752L10.188 9.282",op:"clearStroke",w:1.75}]},"tunable.tasks":{line:[{d:"M4 5.5L5.5 7L8.5 4M4 12L5.5 13.5L8.5 10.5M11.5 6L20 6M11.5 12.5L20 12.5M11.5 18.5L20 18.5",op:"stroke",w:1.5},{d:"M8 18.25C8 19.216 7.216 20 6.25 20C5.284 20 4.5 19.216 4.5 18.25C4.5 17.284 5.284 16.5 6.25 16.5C7.216 16.5 8 17.284 8 18.25Z",op:"stroke",w:1.5}],solid:[{d:"M4 5.5L5.5 7L8.5 4M4 12L5.5 13.5L8.5 10.5M11.5 6L20 6M11.5 12.5L20 12.5M11.5 18.5L20 18.5",op:"stroke",w:2},{d:"M8 18.25C8 19.216 7.216 20 6.25 20C5.284 20 4.5 19.216 4.5 18.25C4.5 17.284 5.284 16.5 6.25 16.5C7.216 16.5 8 17.284 8 18.25Z",op:"stroke",w:2}]},"unread.badge":{line:[{d:"M8 7L16 7C18.761 7 21 9.239 21 12L21 12C21 14.761 18.761 17 16 17L8 17C5.239 17 3 14.761 3 12L3 12C3 9.239 5.239 7 8 7Z",op:"stroke",w:1.5}],solid:[{d:"M8 6.25L16 6.25C19.176 6.25 21.75 8.824 21.75 12L21.75 12C21.75 15.176 19.176 17.75 16 17.75L8 17.75C4.824 17.75 2.25 15.176 2.25 12L2.25 12C2.25 8.824 4.824 6.25 8 6.25Z",op:"fill"}]},"unread.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},"view.grid":{line:[{d:"M5.916 4.512L9.192 4.512C9.967 4.512 10.596 5.141 10.596 5.916L10.596 9.192C10.596 9.967 9.967 10.596 9.192 10.596L5.916 10.596C5.141 10.596 4.512 9.967 4.512 9.192L4.512 5.916C4.512 5.141 5.141 4.512 5.916 4.512Z",op:"stroke",w:1.5},{d:"M14.808 4.512L18.084 4.512C18.859 4.512 19.488 5.141 19.488 5.916L19.488 9.192C19.488 9.967 18.859 10.596 18.084 10.596L14.808 10.596C14.033 10.596 13.404 9.967 13.404 9.192L13.404 5.916C13.404 5.141 14.033 4.512 14.808 4.512Z",op:"stroke",w:1.5},{d:"M5.916 13.404L9.192 13.404C9.967 13.404 10.596 14.033 10.596 14.808L10.596 18.084C10.596 18.859 9.967 19.488 9.192 19.488L5.916 19.488C5.141 19.488 4.512 18.859 4.512 18.084L4.512 14.808C4.512 14.033 5.141 13.404 5.916 13.404Z",op:"stroke",w:1.5},{d:"M14.808 13.404L18.084 13.404C18.859 13.404 19.488 14.033 19.488 14.808L19.488 18.084C19.488 18.859 18.859 19.488 18.084 19.488L14.808 19.488C14.033 19.488 13.404 18.859 13.404 18.084L13.404 14.808C13.404 14.033 14.033 13.404 14.808 13.404Z",op:"stroke",w:1.5}],solid:[{d:"M5.916 4.512L9.192 4.512C9.967 4.512 10.596 5.141 10.596 5.916L10.596 9.192C10.596 9.967 9.967 10.596 9.192 10.596L5.916 10.596C5.141 10.596 4.512 9.967 4.512 9.192L4.512 5.916C4.512 5.141 5.141 4.512 5.916 4.512Z",op:"fill"},{d:"M5.916 4.512L9.192 4.512C9.967 4.512 10.596 5.141 10.596 5.916L10.596 9.192C10.596 9.967 9.967 10.596 9.192 10.596L5.916 10.596C5.141 10.596 4.512 9.967 4.512 9.192L4.512 5.916C4.512 5.141 5.141 4.512 5.916 4.512Z",op:"stroke",w:1.5,cap:"butt"},{d:"M14.808 4.512L18.084 4.512C18.859 4.512 19.488 5.141 19.488 5.916L19.488 9.192C19.488 9.967 18.859 10.596 18.084 10.596L14.808 10.596C14.033 10.596 13.404 9.967 13.404 9.192L13.404 5.916C13.404 5.141 14.033 4.512 14.808 4.512Z",op:"fill"},{d:"M14.808 4.512L18.084 4.512C18.859 4.512 19.488 5.141 19.488 5.916L19.488 9.192C19.488 9.967 18.859 10.596 18.084 10.596L14.808 10.596C14.033 10.596 13.404 9.967 13.404 9.192L13.404 5.916C13.404 5.141 14.033 4.512 14.808 4.512Z",op:"stroke",w:1.5,cap:"butt"},{d:"M5.916 13.404L9.192 13.404C9.967 13.404 10.596 14.033 10.596 14.808L10.596 18.084C10.596 18.859 9.967 19.488 9.192 19.488L5.916 19.488C5.141 19.488 4.512 18.859 4.512 18.084L4.512 14.808C4.512 14.033 5.141 13.404 5.916 13.404Z",op:"fill"},{d:"M5.916 13.404L9.192 13.404C9.967 13.404 10.596 14.033 10.596 14.808L10.596 18.084C10.596 18.859 9.967 19.488 9.192 19.488L5.916 19.488C5.141 19.488 4.512 18.859 4.512 18.084L4.512 14.808C4.512 14.033 5.141 13.404 5.916 13.404Z",op:"stroke",w:1.5,cap:"butt"},{d:"M14.808 13.404L18.084 13.404C18.859 13.404 19.488 14.033 19.488 14.808L19.488 18.084C19.488 18.859 18.859 19.488 18.084 19.488L14.808 19.488C14.033 19.488 13.404 18.859 13.404 18.084L13.404 14.808C13.404 14.033 14.033 13.404 14.808 13.404Z",op:"fill"},{d:"M14.808 13.404L18.084 13.404C18.859 13.404 19.488 14.033 19.488 14.808L19.488 18.084C19.488 18.859 18.859 19.488 18.084 19.488L14.808 19.488C14.033 19.488 13.404 18.859 13.404 18.084L13.404 14.808C13.404 14.033 14.033 13.404 14.808 13.404Z",op:"stroke",w:1.5,cap:"butt"}],cat:[{d:"M5.916 5.448L9.192 5.448C9.967 5.448 10.596 6.077 10.596 6.852L10.596 10.128C10.596 10.903 9.967 11.532 9.192 11.532L5.916 11.532C5.141 11.532 4.512 10.903 4.512 10.128L4.512 6.852C4.512 6.077 5.141 5.448 5.916 5.448Z",op:"stroke",w:1.5},{d:"M14.808 5.448L18.084 5.448C18.859 5.448 19.488 6.077 19.488 6.852L19.488 10.128C19.488 10.903 18.859 11.532 18.084 11.532L14.808 11.532C14.033 11.532 13.404 10.903 13.404 10.128L13.404 6.852C13.404 6.077 14.033 5.448 14.808 5.448Z",op:"stroke",w:1.5},{d:"M5.916 13.872L9.192 13.872C9.967 13.872 10.596 14.501 10.596 15.276L10.596 18.552C10.596 19.327 9.967 19.956 9.192 19.956L5.916 19.956C5.141 19.956 4.512 19.327 4.512 18.552L4.512 15.276C4.512 14.501 5.141 13.872 5.916 13.872Z",op:"stroke",w:1.5},{d:"M14.808 13.872L18.084 13.872C18.859 13.872 19.488 14.501 19.488 15.276L19.488 18.552C19.488 19.327 18.859 19.956 18.084 19.956L14.808 19.956C14.033 19.956 13.404 19.327 13.404 18.552L13.404 15.276C13.404 14.501 14.033 13.872 14.808 13.872Z",op:"stroke",w:1.5},{d:"M14.34 5.448L14.34 3.108L15.978 4.746M18.552 5.448L18.552 3.108L16.914 4.746",op:"stroke",w:1.5,accent:!0}]},"view.list":{line:[{d:"M9.5 6L20 6M9.5 12L20 12M9.5 18L20 18",op:"stroke",w:1.5},{d:"M6.5 6C6.5 6.828 5.828 7.5 5 7.5C4.172 7.5 3.5 6.828 3.5 6C3.5 5.172 4.172 4.5 5 4.5C5.828 4.5 6.5 5.172 6.5 6Z",op:"fill"},{d:"M6.5 12C6.5 12.828 5.828 13.5 5 13.5C4.172 13.5 3.5 12.828 3.5 12C3.5 11.172 4.172 10.5 5 10.5C5.828 10.5 6.5 11.172 6.5 12Z",op:"fill"},{d:"M6.5 18C6.5 18.828 5.828 19.5 5 19.5C4.172 19.5 3.5 18.828 3.5 18C3.5 17.172 4.172 16.5 5 16.5C5.828 16.5 6.5 17.172 6.5 18Z",op:"fill"}],solid:[{d:"M9.5 6L20 6M9.5 12L20 12M9.5 18L20 18",op:"stroke",w:2},{d:"M6.9 6C6.9 7.049 6.049 7.9 5 7.9C3.951 7.9 3.1 7.049 3.1 6C3.1 4.951 3.951 4.1 5 4.1C6.049 4.1 6.9 4.951 6.9 6Z",op:"fill"},{d:"M6.9 12C6.9 13.049 6.049 13.9 5 13.9C3.951 13.9 3.1 13.049 3.1 12C3.1 10.951 3.951 10.1 5 10.1C6.049 10.1 6.9 10.951 6.9 12Z",op:"fill"},{d:"M6.9 18C6.9 19.049 6.049 19.9 5 19.9C3.951 19.9 3.1 19.049 3.1 18C3.1 16.951 3.951 16.1 5 16.1C6.049 16.1 6.9 16.951 6.9 18Z",op:"fill"}]},workspace:{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 4.752L9.282 19.248",op:"stroke",w:1.5}],solid:[{d:"M8.602 4.072L8.602 19.928L6.111 19.928C4.485 19.927 3.167 18.609 3.167 16.983L3.167 7.017C3.167 5.391 4.485 4.073 6.111 4.072Z",op:"fill"},{d:"M9.962 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.983C20.834 18.609 19.515 19.928 17.889 19.928L9.962 19.928Z",op:"fill"}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M9.282 5.658L9.282 19.248",op:"stroke",w:1.5},{d:"M12 5.658L12 3.393L13.812 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"workspace.new":{line:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M9.267 4.734L9.267 19.31",op:"stroke",w:1.5},{d:"M21.793 17.488C21.793 19.878 19.856 21.815 17.466 21.815C15.076 21.815 13.139 19.878 13.139 17.488C13.139 15.098 15.076 13.161 17.466 13.161C19.856 13.161 21.793 15.098 21.793 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:1.5}],solid:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"fill"},{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M9.267 4.734L9.267 19.31",op:"clearStroke",w:1.75},{d:"M22.021 17.488C22.021 20.004 19.982 22.043 17.466 22.043C14.95 22.043 12.911 20.004 12.911 17.488C12.911 14.972 14.95 12.933 17.466 12.933C19.982 12.933 22.021 14.972 22.021 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:2}]}}};var n8e=t8e,r8e="icon.missing";function HU(t,e,n,r){let i=Object.hasOwn(t.icons,e)?t.icons[e]:void 0;return i?n==="line"&&r==="cat"&&i.cat?i.cat:i[n]:null}var Zm=R(ee(),1),Rrt="var(--agent-accent, currentColor)",i8e={x:-24,y:-24,width:72,height:72},o8e=t=>({strokeWidth:t.w??1.5,strokeLinecap:t.cap??"round",strokeLinejoin:t.join??"round",strokeDasharray:t.dash?.join(" "),strokeDashoffset:t.dashPhase});function a8e(t,e){let n=t.accent?Rrt:"currentColor";switch(t.op){case"fill":return(0,Zm.jsx)("path",{d:t.d,fill:n,opacity:t.alpha},e);case"stroke":return(0,Zm.jsx)("path",{d:t.d,fill:"none",stroke:n,opacity:t.alpha,...o8e(t)},e);case"clearFill":return(0,Zm.jsx)("path",{d:t.d,fill:"black"},e);case"clearStroke":return(0,Zm.jsx)("path",{d:t.d,fill:"none",stroke:"black",...o8e(t)},e)}}var s8e=t=>t.op==="clearFill"||t.op==="clearStroke";function l8e(t,e){let n=[],r=0;for(let i=0;i<t.length;i+=1){if(!s8e(t[i])){n.push(a8e(t[i],i));continue}let o=[];for(;i<t.length&&s8e(t[i]);)o.push(a8e(t[i],i)),i+=1;i-=1;let a=`${e}-m${r}`;r+=1,n=[(0,Zm.jsxs)("mask",{id:a,maskUnits:"userSpaceOnUse",...i8e,children:[(0,Zm.jsx)("rect",{...i8e,fill:"white"}),o]},`${a}-mask`),(0,Zm.jsx)("g",{mask:`url(#${a})`,children:n},`${a}-group`)]}return n}var c8e="2.5 2.5 19 19";function u8e(t){return Math.max(12,Math.round(1.2*t))}var Art=R(qe(),1),NT=R(Q(),1);var Irt=R(ee(),1),$rt=(0,NT.createContext)({pack:n8e,accent:"none"});function d8e(){return(0,NT.useContext)($rt)}var PT=R(ee(),1),Prt=[{d:"M5 5L19 5L19 19L5 19Z",op:"stroke",w:1.5,dash:[2,2]}],p8e=new Set;function la(t){let e=(0,m8e.c)(39),{name:n,selected:r,size:i,row:o,title:a,className:s}=t,l=r===void 0?!1:r,c=i===void 0?16:i,u=o===void 0?!1:o,{pack:d,accent:p}=d8e(),m=(0,f8e.useId)(),f;if(e[0]!==m){let $;e[2]===Symbol.for("react.memo_cache_sentinel")?($=/[^\w-]/g,e[2]=$):$=e[2],f=m.replace($,""),e[0]=m,e[1]=f}else f=e[1];let h=f,x=l?"solid":"line",g,y,b,w,v,k,_,L,S,C,T,M;if(e[3]!==p||e[4]!==s||e[5]!==h||e[6]!==n||e[7]!==d||e[8]!==u||e[9]!==c||e[10]!==x||e[11]!==a){let $=HU(d,n,x,p);$||(p8e.has(n)||(p8e.add(n),console.warn(`cmux icon "${n}" is not in pack ${d.id}`)),$=HU(d,r8e,x,p)??Prt);let N=Math.max(12,c);S=u?c8e:"0 0 24 24",C=N,T=N,M=u?"visible":void 0,g=s,y=n,b=a?"img":void 0,w=a?void 0:!0,v=a,k="false",e[24]!==a?(_=a&&(0,PT.jsx)("title",{children:a}),e[24]=a,e[25]=_):_=e[25],L=l8e($,`cmux-icon-${h}`),e[3]=p,e[4]=s,e[5]=h,e[6]=n,e[7]=d,e[8]=u,e[9]=c,e[10]=x,e[11]=a,e[12]=g,e[13]=y,e[14]=b,e[15]=w,e[16]=v,e[17]=k,e[18]=_,e[19]=L,e[20]=S,e[21]=C,e[22]=T,e[23]=M}else g=e[12],y=e[13],b=e[14],w=e[15],v=e[16],k=e[17],_=e[18],L=e[19],S=e[20],C=e[21],T=e[22],M=e[23];let A;return e[26]!==g||e[27]!==y||e[28]!==b||e[29]!==w||e[30]!==v||e[31]!==k||e[32]!==_||e[33]!==L||e[34]!==S||e[35]!==C||e[36]!==T||e[37]!==M?(A=(0,PT.jsxs)("svg",{viewBox:S,width:C,height:T,overflow:M,className:g,"data-icon":y,role:b,"aria-hidden":w,"aria-label":v,focusable:k,children:[_,L]}),e[26]=g,e[27]=y,e[28]=b,e[29]=w,e[30]=v,e[31]=k,e[32]=_,e[33]=L,e[34]=S,e[35]=C,e[36]=T,e[37]=M,e[38]=A):A=e[38],A}var jrt=/https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/(\d+)/g,Ort=/(?:--title[= ]|-t )(?:"((?:[^"\\]|\\.)*)"|'([^']*)'|(\S+))/,g8e=String.raw`(?:https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/|#)?(\d+)`,Drt=new RegExp(String.raw`\bgh\s+pr\s+merge\s+${g8e}|\bgh-merge-green\s+([\w.-]+\/[\w.-]+)?#(\d+)`),Frt=new RegExp(String.raw`\bgh\s+pr\s+close\s+${g8e}`),Brt=/https?:\/\/[^\s"'<>)]+/,zrt=t=>t.flatMap(e=>e.kind==="activity"?(e.items??[]).flatMap(n=>n.tool??[]):[]),h8e=t=>t.status==="completed"&&(t.exitCode??0)===0;function qrt(t){let e=new Map;for(let n of t){let r=n.command??"";if(/\bgh\s+pr\s+create\b/.test(r)&&h8e(n)){let l=Ort.exec(r);for(let[c,u,d]of(n.output??"").matchAll(jrt))e.has(c)||e.set(c,{url:c,repo:u,number:Number(d),title:l?(l[1]??l[2]??l[3])?.replace(/\\(.)/g,"$1"):void 0,state:"open"});continue}let i=Drt.exec(r),o=i??Frt.exec(r);if(!o||!h8e(n))continue;let a=o[1]??o[3],s=Number(o[2]??o[4]);for(let l of e.values())l.number===s&&(!a||a===l.repo)&&(l.state=i?"merged":"closed")}return[...e.values()]}function Hrt(t){return t.filter(e=>e.kind==="think"&&e.title.trim()!=="").map(e=>({id:e.id,title:e.title,state:e.status==="completed"?"done":e.status==="failed"?"failed":"running"}))}function Grt(t){try{let e=JSON.parse(t.inputSummary??"");return e&&typeof e=="object"?e:{}}catch{return{}}}var GU=t=>typeof t=="string"&&t.trim()?t.trim():void 0;function Urt(t){return t.filter(e=>/^(ScheduleWakeup|CronCreate)\b/.test(e.title)&&e.status!=="failed").map(e=>{let n=Grt(e);return{id:e.id,text:GU(n.reason)??GU(n.prompt)??e.title,cron:GU(n.cron)}})}function Vrt(t){let e=new Map;for(let n of t){if(n.kind!=="fetch")continue;let r=`${n.title} ${n.inputSummary??""}`,i=Brt.exec(r)?.[0],o=i?i.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,""):n.title,a=i??o;e.has(a)||e.set(a,{url:i,label:o})}return[...e.values()]}function b8e(t){let e=zrt(t);return{scheduled:Urt(e),pullRequests:qrt(e),outputs:Sd(t),subagents:Hrt(e),sources:Vrt(e)}}var _8e=R(qe(),1);var y8e=R(qe(),1);var N3=R(ee(),1),x8e=4;function w8e(t){let e=(0,y8e.c)(24),{subagents:n}=t,r=we(),i;e[0]!==n?(i=x=>n.filter(g=>g.state===x).length,e[0]=n,e[1]=i):i=e[1];let o=i,a;e[2]!==o||e[3]!==r?(a=o("running")>0&&r("summary.subagents.running",{n:o("running")}),e[2]=o,e[3]=r,e[4]=a):a=e[4];let s;e[5]!==o||e[6]!==r?(s=o("failed")>0&&r("summary.subagents.failed",{n:o("failed")}),e[5]=o,e[6]=r,e[7]=s):s=e[7];let l;e[8]!==o||e[9]!==r?(l=o("done")>0&&r("summary.subagents.done",{n:o("done")}),e[8]=o,e[9]=r,e[10]=l):l=e[10];let c;e[11]!==a||e[12]!==s||e[13]!==l?(c=[a,s,l].filter(Boolean),e[11]=a,e[12]=s,e[13]=l,e[14]=c):c=e[14];let u=c,d;e[15]!==n?(d=n.slice(0,x8e).map(Zrt),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==d?(p=(0,N3.jsx)("span",{className:"acpmux-summary-stack","aria-hidden":"true",children:d}),e[17]=d,e[18]=p):p=e[18];let m=u.join(" \xB7 "),f;e[19]!==m?(f=(0,N3.jsx)("span",{className:"acpmux-summary-text",children:m}),e[19]=m,e[20]=f):f=e[20];let h;return e[21]!==p||e[22]!==f?(h=(0,N3.jsxs)("li",{className:"acpmux-summary-row acpmux-summary-subagents",children:[p,f]}),e[21]=p,e[22]=f,e[23]=h):h=e[23],h}function Zrt(t,e){return(0,N3.jsx)("span",{className:"acpmux-summary-dot","data-state":t.state,"data-tone":e%x8e,title:t.title},t.id)}var k8e=R(qe(),1),C8e=R(Q(),1);var Qd=R(ee(),1),v8e=5;function B8(t){let e=(0,k8e.c)(31),{title:n,items:r,row:i,fixed:o}=t,a=o===void 0?!1:o,s=we(),[l,c]=(0,C8e.useState)(!1);if(r.length===0){if(!a)return null;let g;e[0]!==n?(g=(0,Qd.jsx)("h3",{className:"acpmux-summary-title",children:n}),e[0]=n,e[1]=g):g=e[1];let y;e[2]!==s?(y=s("summary.none"),e[2]=s,e[3]=y):y=e[3];let b;e[4]!==y?(b=(0,Qd.jsx)("ul",{className:"acpmux-summary-list",children:(0,Qd.jsx)("li",{className:"acpmux-summary-row acpmux-summary-none",children:y})}),e[4]=y,e[5]=b):b=e[5];let w;return e[6]!==g||e[7]!==b||e[8]!==n?(w=(0,Qd.jsxs)("section",{className:"acpmux-summary-section","aria-label":n,children:[g,b]}),e[6]=g,e[7]=b,e[8]=n,e[9]=w):w=e[9],w}let u;e[10]!==l||e[11]!==r?(u=l?r:r.slice(0,v8e),e[10]=l,e[11]=r,e[12]=u):u=e[12];let d=u,p;e[13]!==n?(p=(0,Qd.jsx)("h3",{className:"acpmux-summary-title",children:n}),e[13]=n,e[14]=p):p=e[14];let m;if(e[15]!==i||e[16]!==d){let g;e[18]!==i?(g=y=>i(y),e[18]=i,e[19]=g):g=e[19],m=d.map(g),e[15]=i,e[16]=d,e[17]=m}else m=e[17];let f;e[20]!==m?(f=(0,Qd.jsx)("ul",{className:"acpmux-summary-list",children:m}),e[20]=m,e[21]=f):f=e[21];let h;e[22]!==l||e[23]!==r.length||e[24]!==s?(h=r.length>v8e&&(0,Qd.jsx)("button",{type:"button",className:"acpmux-summary-more",onClick:()=>c(!l),children:l?s("summary.showFewer"):s("summary.viewAll",{n:r.length})}),e[22]=l,e[23]=r.length,e[24]=s,e[25]=h):h=e[25];let x;return e[26]!==p||e[27]!==f||e[28]!==h||e[29]!==n?(x=(0,Qd.jsxs)("section",{className:"acpmux-summary-section","aria-label":n,children:[p,f,h]}),e[26]=p,e[27]=f,e[28]=h,e[29]=n,e[30]=x):x=e[30],x}var Wn=R(ee(),1),z8=u8e(12);function S8e(t){let e=(0,_8e.c)(49),{summary:n,onOpenOutput:r,onFollow:i}=t,o=we(),a;e[0]!==o?(a=o("summary.outputs"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==r?(s=_=>(0,Wn.jsx)("li",{children:(0,Wn.jsxs)("button",{type:"button",className:"acpmux-summary-row acpmux-summary-link",title:_.path,disabled:!r,onClick:()=>r?.(_.path),children:[(0,Wn.jsx)(la,{name:_.created?"file.new":"file.text",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.displayPath}),(0,Wn.jsx)(Hm,{additions:_.additions,deletions:_.deletions})]})},_.path),e[2]=r,e[3]=s):s=e[3];let l;e[4]!==n.outputs||e[5]!==a||e[6]!==s?(l=(0,Wn.jsx)(B8,{title:a,fixed:!0,items:n.outputs,row:s}),e[4]=n.outputs,e[5]=a,e[6]=s,e[7]=l):l=e[7];let c;e[8]!==o?(c=o("summary.subagents"),e[8]=o,e[9]=c):c=e[9];let u;e[10]!==o?(u=o("summary.subagents"),e[10]=o,e[11]=u):u=e[11];let d;e[12]!==u?(d=(0,Wn.jsx)("h3",{className:"acpmux-summary-title",children:u}),e[12]=u,e[13]=d):d=e[13];let p;e[14]!==n.subagents||e[15]!==o?(p=(0,Wn.jsx)("ul",{className:"acpmux-summary-list",children:n.subagents.length>0?(0,Wn.jsx)(w8e,{subagents:n.subagents}):(0,Wn.jsx)("li",{className:"acpmux-summary-row acpmux-summary-none",children:o("summary.none")})}),e[14]=n.subagents,e[15]=o,e[16]=p):p=e[16];let m;e[17]!==c||e[18]!==d||e[19]!==p?(m=(0,Wn.jsxs)("section",{className:"acpmux-summary-section","aria-label":c,children:[d,p]}),e[17]=c,e[18]=d,e[19]=p,e[20]=m):m=e[20];let f;e[21]!==o?(f=o("summary.sources"),e[21]=o,e[22]=f):f=e[22];let h;e[23]!==i?(h=_=>(0,Wn.jsx)("li",{children:_.url?(0,Wn.jsxs)("a",{className:"acpmux-summary-row acpmux-summary-link",href:_.url,title:_.url,onClick:i,children:[(0,Wn.jsx)(la,{name:"link.web",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.label})]}):(0,Wn.jsxs)("span",{className:"acpmux-summary-row",children:[(0,Wn.jsx)(la,{name:"search.files",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.label})]})},_.url??_.label),e[23]=i,e[24]=h):h=e[24];let x;e[25]!==n.sources||e[26]!==h||e[27]!==f?(x=(0,Wn.jsx)(B8,{title:f,fixed:!0,items:n.sources,row:h}),e[25]=n.sources,e[26]=h,e[27]=f,e[28]=x):x=e[28];let g;e[29]!==o?(g=o("summary.pullRequests"),e[29]=o,e[30]=g):g=e[30];let y;e[31]!==i||e[32]!==o?(y=_=>(0,Wn.jsx)("li",{children:(0,Wn.jsxs)("a",{className:"acpmux-summary-row acpmux-summary-link",href:_.url,onClick:i,"data-state":_.state,title:`${_.repo}#${_.number}${_.state==="open"?"":` \xB7 ${o(`summary.pr.${_.state}`)}`}`,children:[(0,Wn.jsx)(la,{name:"git.pullrequest",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.title??`${_.repo}#${_.number}`}),(0,Wn.jsxs)("span",{className:"acpmux-summary-meta",children:["#",_.number]})]})},_.url),e[31]=i,e[32]=o,e[33]=y):y=e[33];let b;e[34]!==n.pullRequests||e[35]!==g||e[36]!==y?(b=(0,Wn.jsx)(B8,{title:g,items:n.pullRequests,row:y}),e[34]=n.pullRequests,e[35]=g,e[36]=y,e[37]=b):b=e[37];let w;e[38]!==o?(w=o("summary.scheduled"),e[38]=o,e[39]=w):w=e[39];let v;e[40]!==n.scheduled||e[41]!==w?(v=(0,Wn.jsx)(B8,{title:w,items:n.scheduled,row:Wrt}),e[40]=n.scheduled,e[41]=w,e[42]=v):v=e[42];let k;return e[43]!==x||e[44]!==b||e[45]!==v||e[46]!==l||e[47]!==m?(k=(0,Wn.jsxs)(Wn.Fragment,{children:[l,m,x,b,v]}),e[43]=x,e[44]=b,e[45]=v,e[46]=l,e[47]=m,e[48]=k):k=e[48],k}function Wrt(t){return(0,Wn.jsxs)("li",{className:"acpmux-summary-row",children:[(0,Wn.jsx)(la,{name:"task.status.started",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",title:t.text,children:t.text}),t.cron&&(0,Wn.jsx)("span",{className:"acpmux-summary-meta",children:t.cron})]},t.id)}var f5=R(ee(),1);function L8e({rows:t,onOpenOutput:e}){let n=we(),[r,i]=(0,Wm.useState)(!1),o=(0,Wm.useRef)(null),a=(0,Wm.useMemo)(()=>r?b8e(t):void 0,[r,t]);(0,Wm.useEffect)(()=>{if(!r)return;let l=c=>{let u=c.target;u instanceof Node&&(o.current?.contains(u)||u.closest?.(".acpmux-summary-popover")||i(!1))};return document.addEventListener("pointerdown",l,!0),()=>document.removeEventListener("pointerdown",l,!0)},[r]);let s=n("summary.open");return(0,Wm.useEffect)(()=>Xs(s,()=>i(!0)),[s,i]),(0,f5.jsxs)("span",{className:"acpmux-summary",children:[(0,f5.jsx)("button",{ref:o,type:"button",className:"acpmux-summary-button","aria-label":s,title:s,"aria-haspopup":"dialog","aria-expanded":r,onClick:()=>i(l=>!l),children:(0,f5.jsx)(la,{name:"view.list",size:15})}),a?(0,f5.jsx)(oy,{open:r,onOpenChange:i,anchor:o.current,label:s,className:"acpmux-summary-popover",finalFocus:o,children:(0,f5.jsx)(S8e,{summary:a,onFollow:()=>i(!1),onOpenOutput:e&&(l=>{i(!1),e(l)})})}):null]})}function T8e(t){if(t===null)return{state:"missing"};let e=t&&typeof t=="object"?t:{};if(e.unsupported===!0)return{state:"unsupported"};let n=typeof e.checkpoint_id=="string"?e.checkpoint_id:void 0,r=$T(e.diff,"lastTurn");return!n||!r?{state:"error"}:e.complete!==!0?{state:"incomplete",checkpointId:n}:{state:"loaded",checkpointId:n,changeSet:r}}function M8e(t){let e=new Map;for(let n of t.lines){if(n.type==="context")continue;let r=n.type+"\0"+n.text;e.set(r,(e.get(r)??0)+1)}return e}function Krt(t,e){return t.size!==e.size?!1:[...t].every(([n,r])=>e.get(n)===r)}function E8e(t){return new Set(t.lines.flatMap(e=>{if(e.type==="context")return[];let n=e.type==="add"?e.newLine:e.oldLine;return n===void 0?[]:[n]}))}function Xrt(t,e,n){if(!n||t.patchTruncated)return[];let r=M8e(e);if(r.size===0)return[];let i=E8e(e),o=n.edits.flatMap((l,c)=>l.hunks.map((u,d)=>({key:E2(n,c,d),changed:M8e(u),lines:E8e(u)}))),a=new Set;for(let[l,c]of r){let u=o.filter(d=>(d.changed.get(l)??0)>=c&&(i.size===0||d.lines.size===0||[...i].some(p=>d.lines.has(p))));if(u.length!==1)return[];a.add(u[0].key)}let s=new Map;for(let l of o.filter(c=>a.has(c.key)))for(let[c,u]of l.changed)s.set(c,(s.get(c)??0)+u);return Krt(r,s)?[...a]:[]}function Yrt(t,e){let n=e.filter(i=>R8e(t,[i])),r=n.length===1?n[0]:void 0;return{...t,edits:t.edits.map(i=>({...i,hunks:i.hunks.map(o=>({...o,reviewKeys:Xrt(t,o,r)}))}))}}function R8e(t,e){return e.some(n=>n.path===t.path||n.path.endsWith(`/${t.displayPath}`))}function UU(t,e,n,r){let i=o=>({files:e,source:"tools",note:o});switch(n.state){case"unsupported":case"loading":return i();case"missing":return i(t("turn.checkpoint.missing"));case"error":return i(t("turn.checkpoint.failed"));case"incomplete":return i(t("turn.checkpoint.incomplete"));case"loaded":return r?i(t("turn.checkpoint.pending")):{files:IT(n.changeSet).map(a=>{let s=Yrt(a,e);return{...s,edits:s.edits.map(l=>({...l,toolId:`checkpoint:${n.checkpointId}`})),...R8e(a,e)?{}:{outside:!0}}}),source:"checkpoint"}}}function jT(t,e){let r=(e?.state==="loaded"?UU(VI(jb()),[...t],e,!1):void 0)?.files??t;return{files:r,additions:r.reduce((i,o)=>i+o.additions,0),deletions:r.reduce((i,o)=>i+o.deletions,0),outside:r.some(i=>i.outside)}}var A8e=R(Q(),1),OT=(0,A8e.createContext)(void 0);var Jd=R(Q(),1);function $8e(t,e){let[n,r]=(0,Jd.useState)({map:new Map}),i=(0,Jd.useRef)(e);i.current=e;let o=(0,Jd.useRef)(new Map);(0,Jd.useEffect)(()=>{o.current=new Map,r(c=>c.map.size?{sessionId:e,map:new Map}:c)},[e]);let a=(0,Jd.useCallback)(c=>{if(!t)return;let u=o.current.get(c);if(u&&u!=="error")return;let d=i.current,p=m=>{i.current===d&&(o.current.set(c,m.state),r(f=>({sessionId:d,map:new Map(f.map).set(c,m)})))};p({state:"loading"}),t({rowId:c}).then(m=>p(T8e(m)),m=>p({state:"error",message:m instanceof Error?m.message:void 0}))},[t]),s=n.sessionId===e?n.map:void 0,l=(0,Jd.useCallback)(c=>t?s?.get(c):{state:"unsupported"},[t,s]);return{request:a,get:l}}var su=R(Q(),1);var P3=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Myanmar}、。,.!?「」『』()]/u,F8e=t=>/^[^\s.,;:!?)\]}'"’”]/u.test(t)&&!P3.test(t[0]??""),B8e=t=>/[^\s([{<"'‘“/\\@#-]$/u.test(t)&&!P3.test(t.at(-1)??""),I8e=/[\p{L}\p{N}]/u;function z8e(t,e=""){let n=Math.min(t.selectionStart,t.selectionEnd),r=Math.max(t.selectionStart,t.selectionEnd),i=t.value.slice(0,n),o=t.value.slice(r);return{start:n,length:0,written:i+o,replaced:t.value.slice(n,r),handed:e,seen:e,tail:0,continues:!!e&&!!N8e(e)&&i.endsWith(N8e(e)),leadingSpace:B8e(i),trailingSpace:F8e(o)}}function q8e(t,e,n){let r=n.state==="starting"||n.state==="listening"||n.state==="finalizing",i=!e;if(e)t.value!==e.written&&(e=Jrt(e,t.value)??eit(e,t));else{if(!r||n.cancelled)return null;e=z8e(t)}let{rest:o,glued:a}=Qrt(n.text,e),s=a?o:o.replace(/^\s+/u,""),l={selectionStart:t.selectionStart,selectionEnd:t.selectionEnd};if(n.cancelled||!r&&!s&&e.length===0){if(e.length===0&&!e.replaced)return{value:t.value,...l,anchor:null,placed:!1};let y=e.written.slice(0,e.start)+e.replaced+e.written.slice(e.start+e.length),b=e.start+e.length,w=v=>v<=e.start?v:v>=b?v+e.replaced.length-e.length:e.start+e.replaced.length;return{value:y,selectionStart:w(t.selectionStart),selectionEnd:w(t.selectionEnd),anchor:null,placed:!1}}let c=F8e(s)||/^\s/u.test(o)&&P3.test(s[0]??""),u=s&&!a&&e.leadingSpace&&c?" ":"",d=s&&e.trailingSpace&&B8e(s)?" ":"",p=u+s+d,m=e.written.slice(0,e.start)+p+e.written.slice(e.start+e.length),f=e.start+e.length,h=i||t.selectionStart===t.selectionEnd&&t.selectionStart===f-e.tail,x=y=>y>=f?y+p.length-e.length:y,g=e.start+u.length+s.length;return{value:m,selectionStart:h?g:x(t.selectionStart),selectionEnd:h?g:x(t.selectionEnd),anchor:r?{...e,length:p.length,written:m,seen:n.text,tail:d.length}:null,placed:s.length>0}}var N8e=t=>/[\p{L}\p{N}]+$/u.exec(t)?.[0]??"",P8e=t=>t.trim().split(/\s+/u).filter(Boolean),Km=t=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"");function Qrt(t,e){let n=e.handed;if(!n)return{rest:t,glued:!1};if(t.startsWith(n)){let l=t.slice(n.length),c=n.at(-1)??"",u=l[0]??"";return I8e.test(c)&&I8e.test(u)&&!P3.test(c)&&!P3.test(u)?e.continues?{rest:l,glued:!0}:{rest:l.replace(/^[\p{L}\p{N}]+/u,""),glued:!1}:{rest:l,glued:!1}}if(P3.test(n)&&!/\s/u.test(n.trim())){let l=j8e(t),c=O8e(j8e(n),l,(u,d)=>u===d);return{rest:c<0?"":l.slice(c+1).join(""),glued:!1}}let r=P8e(n),i=P8e(t),o=Km(r.join("")),a="";for(let l=0;l<i.length&&o;l+=1){if(a+=Km(i[l]),a===o){let c=l+1;for(let u=r.length-1;u>=0&&!Km(r[u])&&c<i.length&&!Km(i[c]);u-=1)c+=1;return D8e(i.slice(c))}if(!o.startsWith(a))break}let s=Km(r.at(-1)??"")?O8e(r,i,(l,c)=>Km(l)===Km(c)):-1;return D8e(s<0?[]:i.slice(s+1))}var j8e=t=>Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),e=>e.segment);function O8e(t,e,n){let r=t.at(-1),i=t.at(-2);if(r===void 0)return-1;let o=c=>c.flatMap((u,d)=>d>0&&i!==void 0&&n(u,r)&&n(c[d-1],i)?[d]:[]),a=o(t),s=o(e),l=-1;if(s.length>0)s.length===a.length&&(l=s.at(-1));else{let c=p=>p.flatMap((m,f)=>n(m,r)?[f]:[]),u=c(t),d=c(e);u.length===1&&d.length===1&&(l=d[0])}return l<0||Km(e.slice(0,l+1).join("")).length*2<Km(t.join("")).length?-1:l}function D8e(t){let e=t.join(" ");return{rest:e&&" "+e,glued:!1}}function Jrt(t,e){if(t.length===0)return null;let n=t.written.slice(t.start,t.start+t.length),r=t.written.slice(0,t.start),i=t.written.slice(t.start+t.length);return e.startsWith(r+n)?{...t,written:e}:e.endsWith(n+i)?{...t,start:e.length-n.length-i.length,written:e}:null}function eit(t,e){let n=t.written.slice(0,t.start),r=t.written.slice(t.start+t.length),i=e.value,o=i.length>=n.length+r.length&&i.startsWith(n)&&i.endsWith(r),a=o?i.length-r.length:e.selectionStart;return o&&t.tail&&i[a-1]===" "&&(a-=1),z8e({value:i,selectionStart:a,selectionEnd:a},t.seen)}var VU=new Set;function H8e(t){nit(t.level,_h(t.state));for(let e of VU)e(t)}var G8e=!1;function U8e(t){G8e=t?.dictation?.autoSend===!0}var tit=5,ZU=Array(tit).fill(0),h5={samples:ZU,listeners:new Set};function nit(t,e){if(!(!e&&h5.samples===ZU)){h5.samples=e?[...h5.samples.slice(1),t]:ZU;for(let n of h5.listeners)n()}}var V8e=t=>(h5.listeners.add(t),()=>{h5.listeners.delete(t)}),Z8e=()=>h5.samples,_h=t=>t==="starting"||t==="listening"||t==="finalizing";function W8e(t,e){let n=we(),[r,i]=(0,su.useState)("idle"),[o,a]=(0,su.useState)(null),s=(0,su.useRef)(null),l=(0,su.useRef)([]),c=(0,su.useRef)(!1);(0,su.useEffect)(()=>{let p=!1,m=null,f=b=>{let w=t.current;if(!w||m&&m.state===b.state&&m.text===b.text&&!b.cancelled)return;m=_h(b.state)?b:null,b.state==="starting"&&document.hasFocus()&&!w.focused()&&w.focus();let v=q8e(w.text(),s.current,b);v&&(s.current=v.anchor,w.writeText(v.value,v.selectionStart,v.selectionEnd),b.state==="idle"&&!b.cancelled&&G8e&&v.placed&&setTimeout(()=>w.element()?.closest("form")?.requestSubmit(),0))},h=b=>{if(c.current=!1,i(b.state),b.state==="failed"||b.state==="denied"?a(b):b.state==="starting"&&a(null),!p)f(b);else{let w=l.current,v=w.at(-1);v&&_h(v.state)&&v.state===b.state&&!b.cancelled?w[w.length-1]=b:w.push(b)}},x=b=>{let w=t.current?.element();return!!w&&b.target instanceof Node&&w.contains(b.target)},g=b=>{x(b)&&(p=!0)},y=b=>{if(!x(b))return;p=!1;let w=l.current;l.current=[];for(let v of w)f(v)};return document.addEventListener("compositionstart",g,!0),document.addEventListener("compositionend",y,!0),VU.add(h),()=>{VU.delete(h),document.removeEventListener("compositionstart",g,!0),document.removeEventListener("compositionend",y,!0)}},[t]);let u=_h(r);(0,su.useEffect)(()=>{if(!u)return;let p=m=>{m.key!=="Escape"||m.isComposing||m.keyCode===229||(m.preventDefault(),m.stopPropagation(),e("dictation.cancel").catch(()=>{}))};return document.addEventListener("keydown",p,!0),()=>document.removeEventListener("keydown",p,!0)},[u,e]);let d=(0,su.useRef)(r);return d.current=r,(0,su.useEffect)(()=>()=>{(_h(d.current)||c.current)&&e("dictation.cancel").catch(()=>{})},[e]),{state:r,notice:o,toggle(){u||t.current?.focus(),c.current=!0,e("dictation.toggle").catch(p=>{c.current=!1,a({state:"failed",text:"",level:0,cancelled:!1,message:p instanceof Error&&p.message&&!(p instanceof Ic&&p.code==="native.not_connected")?p.message:n("dictation.unavailable")})})},cancel(){e("dictation.cancel").catch(()=>{})},openSettings(){o?.permission&&e("dictation.openSettings",{permission:o.permission}).catch(()=>{})},dismiss(){a(null)}}}var J8e=R(qe(),1);var K8e=R(qe(),1),X8e=R(Q(),1);var WU=R(ee(),1);function Y8e(){let t=(0,K8e.c)(4),e=(0,X8e.useSyncExternalStore)(V8e,Z8e),n;t[0]!==e?(n=e.map(rit),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=(0,WU.jsx)("span",{className:"acpmux-mic-meter","aria-hidden":"true",children:n}),t[2]=n,t[3]=r):r=t[3],r}function rit(t,e){return(0,WU.jsx)("span",{style:{transform:`scaleY(${Math.max(.18,Math.min(1,t*1.4))})`}},e)}var DT=R(Q(),1),ll={searchChats:"agentPane.searchChats",newAgentChat:"palette.newAgentChat",toggleDictation:"palette.toggleDictation",permissionAllowOnce:"agentPane.permission.allowOnce",permissionAllowChat:"agentPane.permission.allowChat",permissionDeny:"agentPane.permission.deny",permissionRetry:"agentPane.permission.retry",permissionRevoke:"agentPane.permission.revoke",permissionRefresh:"agentPane.permission.refresh",permissionExpand:"agentPane.permission.expand",copyTabLink:"palette.copySurfaceLink"};function Q8e(t){return!t||typeof t!="object"||Array.isArray(t)?{}:Object.fromEntries(Object.entries(t).filter(e=>typeof e[1]=="string"&&e[1]!==""))}var lu=(t,e)=>e?`${t} (${e})`:t,FT=(0,DT.createContext)({}),Ga=t=>(0,DT.useContext)(FT)[t];var BT=R(ee(),1);function e9e(t){let e=(0,J8e.c)(11),{dictation:n}=t,r=we(),{state:i}=n,o=i==="listening"||i==="finalizing",a=_h(i)?r("dictation.stop"):r("dictation.start"),s=Ga(ll.toggleDictation),l="button",c="acpmux-mic",u;e[0]!==i?(u=_h(i),e[0]=i,e[1]=u):u=e[1];let d=lu(a,s),p;e[2]!==o?(p=o?(0,BT.jsx)(Y8e,{}):(0,BT.jsx)(qde,{}),e[2]=o,e[3]=p):p=e[3];let m;return e[4]!==n.toggle||e[5]!==a||e[6]!==i||e[7]!==u||e[8]!==d||e[9]!==p?(m=(0,BT.jsx)("button",{type:l,className:c,"data-state":i,"aria-label":a,"aria-pressed":u,title:d,onMouseDown:iit,onClick:n.toggle,children:p}),e[4]=n.toggle,e[5]=a,e[6]=i,e[7]=u,e[8]=d,e[9]=p,e[10]=m):m=e[10],m}function iit(t){return t.preventDefault()}var t9e=R(qe(),1);var j3=R(ee(),1);function n9e(t){let e=(0,t9e.c)(20),{dictation:n}=t,r=we(),i=n.notice;if(!i?.message)return null;let o;e[0]!==i.message?(o=(0,j3.jsx)("span",{children:i.message}),e[0]=i.message,e[1]=o):o=e[1];let a;e[2]!==n.openSettings||e[3]!==i.permission||e[4]!==i.settingsLabel||e[5]!==i.state||e[6]!==r?(a=i.state==="denied"&&i.permission&&(0,j3.jsx)("button",{type:"button",className:"acpmux-dictation-settings",onClick:n.openSettings,children:i.settingsLabel??r("dictation.openSettings")}),e[2]=n.openSettings,e[3]=i.permission,e[4]=i.settingsLabel,e[5]=i.state,e[6]=r,e[7]=a):a=e[7];let s;e[8]!==r?(s=r("dictation.dismiss"),e[8]=r,e[9]=s):s=e[9];let l;e[10]!==r?(l=r("dictation.dismiss"),e[10]=r,e[11]=l):l=e[11];let c;e[12]!==n.dismiss||e[13]!==s||e[14]!==l?(c=(0,j3.jsx)("button",{type:"button",className:"acpmux-dictation-dismiss","aria-label":s,title:l,onClick:n.dismiss,children:"\xD7"}),e[12]=n.dismiss,e[13]=s,e[14]=l,e[15]=c):c=e[15];let u;return e[16]!==o||e[17]!==a||e[18]!==c?(u=(0,j3.jsxs)("div",{className:"acpmux-dictation-notice",role:"alert",children:[o,a,c]}),e[16]=o,e[17]=a,e[18]=c,e[19]=u):u=e[19],u}var KU=R(qe(),1),Xm=R(Q(),1);var zT=class t{static rateWindowMs=600;static gapFactor=1.25;static minLagMs=50;static maxLagMs=350;static correctMs=250;static minCharsPerSecond=40;static maxBacklogMs=900;static catchUpMs=250;static finishMs=180;static stallMs=600;static maxFrameMs=100;shown;received;lastFrame;clock=0;lastArrival;arrivals=[];gaps=[];smoothedRate=0;drainUntil;reduceMotion;constructor(e={}){this.shown=e.initial?.length??0,this.received=this.shown,this.reduceMotion=e.reduceMotion??!1}get settled(){return Math.floor(this.shown)>=this.received}flush(){this.shown=this.received}advance(e,n,r){let i=this.lastFrame===void 0?0:Math.min(t.maxFrameMs,Math.max(0,n-this.lastFrame));this.lastFrame=n,this.clock+=i;let o=this.clock;return e.length>this.received&&this.arrived(o,e.length-this.received),this.received=e.length,this.reduceMotion||this.shown>=e.length?(this.shown=e.length,e.length):(i>0&&(this.shown=Math.min(e.length,this.shown+this.charsPerSecond(o,i,r)*i/1e3)),t.cut(e,Math.floor(this.shown)))}arrived(e,n){this.lastArrival!==void 0&&(this.gaps.push(e-this.lastArrival),this.gaps.length>32&&this.gaps.shift()),this.lastArrival=e,this.arrivals.push([e,n])}lagMs(){if(this.gaps.length<3)return 120;let e=[...this.gaps].sort((r,i)=>r-i),n=e[Math.min(e.length-1,Math.round((e.length-1)*.9))];return Math.min(t.maxLagMs,Math.max(t.minLagMs,n*t.gapFactor))}rate(e){for(;this.arrivals.length&&this.arrivals[0][0]<e-t.rateWindowMs;)this.arrivals.shift();let r=this.arrivals.reduce((i,[,o])=>i+o,0)/t.rateWindowMs*1e3;return this.smoothedRate=this.smoothedRate===0?r:this.smoothedRate*.9+r*.1,Math.max(this.smoothedRate,t.minCharsPerSecond)}charsPerSecond(e,n,r){let i=this.received-this.shown,o=this.rate(e),a=this.lastArrival===void 0||e-this.lastArrival>t.stallMs,s=r||a?t.finishMs:i>o*t.maxBacklogMs/1e3?t.catchUpMs:0;if(s){this.drainUntil??=e-n+s;let c=Math.max(n,this.drainUntil-e+n);return Math.max(o,i/c*1e3)}this.drainUntil=void 0;let l=o*this.lagMs()/1e3;return Math.max(t.minCharsPerSecond,o+(i-l)/t.correctMs*1e3)}static cut(e,n){if(n<=0||n>=e.length)return Math.max(0,Math.min(n,e.length));let r=e.charCodeAt(n-1);return r>=55296&&r<=56319?n+1:n}};var r9e=R(qe(),1),i9e=R(Q(),1);var O3=R(ee(),1),qT=class extends i9e.Component{state={source:this.props.source,failed:!1};static getDerivedStateFromProps(e,n){return e.source===n.source?null:{source:e.source,failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?(0,O3.jsx)(oit,{source:this.props.source}):this.props.children}};function oit(t){let e=(0,r9e.c)(9),{source:n}=t,r=we(),i;e[0]!==r?(i=r("message.renderFailed"),e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o=(0,O3.jsx)("p",{className:"cv-unrendered__note",children:i}),e[2]=i,e[3]=o):o=e[3];let a;e[4]!==n?(a=(0,O3.jsx)("pre",{className:"cv-unrendered__source",children:n}),e[4]=n,e[5]=a):a=e[5];let s;return e[6]!==o||e[7]!==a?(s=(0,O3.jsxs)("div",{className:"cv-md selectable cv-unrendered",role:"note",children:[o,a]}),e[6]=o,e[7]=a,e[8]=s):s=e[8],s}var GT=R(ee(),1),HT={request:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)},ait=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,sit=160,lit=1e3/60;function cit(t,e){let n=(0,Xm.useRef)(null),r=(0,Xm.useRef)(null);r.current??=ait(),n.current??=new zT({initial:t,reduceMotion:r.current});let[i,o]=(0,Xm.useState)(()=>({length:t.length,fresh:[],now:0,settled:!0})),a=(0,Xm.useRef)({text:t,streaming:e,shown:i});a.current={text:t,streaming:e,shown:i};let s=(0,Xm.useRef)(0);return(0,Xm.useLayoutEffect)(()=>{let l=n.current;if(l.settled&&i.length>=t.length&&!i.fresh.length){i.settled||o({...i,settled:!0});return}let c=0,u,d=p=>{if(u!==void 0&&p-u<lit-1){c=HT.request(d);return}u=p,typeof document<"u"&&document.visibilityState==="hidden"&&l.flush();let m=a.current.shown,f=l.advance(a.current.text,p,!a.current.streaming),h=m.fresh.filter(g=>p-g.born<sit);f>m.length&&!r.current&&h.push({id:s.current+=1,count:f-m.length,born:p});let x={length:f,fresh:h,now:p,settled:l.settled};a.current.shown=x,o(x),(!l.settled||h.length)&&(c=HT.request(d))};return c=HT.request(d),()=>HT.cancel(c)},[t,e]),{visible:t.slice(0,Math.min(i.length,t.length)),fresh:i.fresh,now:i.now,settled:i.settled&&i.length>=t.length}}function o9e(t){let e=(0,KU.c)(6),{text:n,streaming:r}=t,i;e[0]!==r||e[1]!==n?(i=(0,GT.jsx)(uit,{text:n,streaming:r}),e[0]=r,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==i||e[4]!==n?(o=(0,GT.jsx)(qT,{source:n,children:i}),e[3]=i,e[4]=n,e[5]=o):o=e[5],o}function uit(t){let e=(0,KU.c)(6),{text:n,streaming:r}=t,{visible:i,fresh:o,now:a,settled:s}=cit(n,r),l;return e[0]!==o||e[1]!==a||e[2]!==s||e[3]!==r||e[4]!==i?(l=(0,GT.jsx)(Jae,{streaming:r,fresh:o,now:a,waiting:s,children:i}),e[0]=o,e[1]=a,e[2]=s,e[3]=r,e[4]=i,e[5]=l):l=e[5],l}var XT=R(qe(),1),YT=R(Q(),1);var f9e=R(qe(),1),Ym=R(Q(),1);function s9e(t){if(t.command)return fit(t.command);let e=dit(t.inputSummary);if(e&&/^send ?message$/i.test(t.title.trim())&&typeof e.to=="string"){let r=e.message??e.summary??e.content,i=typeof r=="string"?r:r===void 0?"":JSON.stringify(r,null,2);return{channel:"agent",to:e.to,text:q8(i)}}let n=t.diffs??[];if(n.length===1){let r=n[0],i=l9e(r.path),o=r.oldText??"";if(i&&r.newText.startsWith(o))return{channel:"mailbox",to:i,text:q8(r.newText.slice(o.length))}}}function dit(t){if(t)try{let e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}catch{return}}function l9e(t){return/(?:^|\/)coordinator-inbox\/([\w-]+)\.jsonl$/.exec(t)?.[1]}var pit=new Set(["cd","pushd","export","set","true",":","wait"]),mit=new Set(["echo","printf","cat"]);function fit(t){let e=yit(t),n=wit(xit(t)).map(({text:r,pipesNext:i})=>{let{words:o,redirects:a}=vit(r),s=o.findIndex(l=>!/^\w+=/.test(l));return{words:s<0?[]:o.slice(s),redirects:a,pipesNext:i}});for(let[r,i]of n.entries()){let o=n[r-1]?.pipesNext?u9e(n[r-1].words):void 0,a=hit(i.words,i.redirects,e??o);if(!a)continue;return a.text&&n.every((l,c)=>{if(c===r)return!0;let u=l.words[0]?.split("/").pop()??"";return pit.has(u)||mit.has(u)&&c===r-1&&l.pipesNext})?a:void 0}}function hit(t,e,n){let r=t[0]?.split("/").pop();if(r==="tell-coordinator")return git(t.slice(1),n);if((r==="cmux"||r==="cmux-debug-cli.sh")&&t[1]==="send")return bit(t.slice(2));let o=(r==="tee"?t.slice(1).filter(s=>!s.startsWith("-")):e).map(l9e).find(Boolean),a=q8(n??u9e(t)??"");return o&&a?{channel:"mailbox",to:o,text:a}:void 0}function a9e(t,e,n){let r=t[e];if(r===n)return[t[e+1],2];if(r.startsWith(`${n}=`))return[r.slice(n.length+1),1]}function git(t,e){let n={channel:"coordinator",to:"coordinator",text:""},r=0;for(;r<t.length;r+=2){let o=t[r];if(o==="-h"||o==="--help")return;if(o==="--to")n.to=t[r+1]??n.to;else if(o==="--from")n.from=t[r+1];else if(o!=="--re")break}let i=t.slice(r).join(" ");return n.text=q8(i==="-"||!i?e??"":i),n}function bit(t){if(t.includes("--help")||t.includes("-h"))return;let e,n,r=[];for(let i=0;i<t.length;){let o=a9e(t,i,"--workspace"),a=a9e(t,i,"--surface");o?e=o[0]:a?n=a[0]:t[i].startsWith("--")||r.push(t[i]),i+=(o??a)?.[1]??1}return{channel:"terminal",to:n??e,text:q8(r.join(" "))}}var c9e=/<<-?\s*(['"]?)(\w+)\1[^\n]*\n/;function yit(t){let e=c9e.exec(t);if(!e)return;let n=t.slice(e.index+e[0].length),r=new RegExp(`^\\s*${e[2]}\\s*$`,"m").exec(n);return r?n.slice(0,r.index):n}function xit(t){let e=c9e.exec(t);if(!e)return t;let n=t.slice(e.index+e[0].length),r=new RegExp(`^\\s*${e[2]}\\s*$`,"m").exec(n);return t.slice(0,e.index+e[0].length)+(r?n.slice(r.index+r[0].length):"")}function wit(t){let e=[],n="",r;for(let i=0;i<t.length;i++){let o=t[i];if(r){n+=o,o===r?r=void 0:o==="\\"&&r==='"'&&i+1<t.length&&(n+=t[++i]);continue}if(o==="\\"){n+=o+(t[++i]??"");continue}(o==="'"||o==='"')&&(r=o);let a=o==="&"&&(t[i-1]===">"||t[i+1]===">");if(o===";"||o===` +`}var Mxe=R(qe(),1);var p5=R(ee(),1);function Exe(t){let e=(0,Mxe.c)(13),{branch:n,base:r}=t,i=ve(),o;e[0]!==n?(o=(0,p5.jsx)("span",{className:"acpmux-branch-from",children:n}),e[0]=n,e[1]=o):o=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,p5.jsx)(M6e,{className:"acpmux-branch-arrow"}),e[2]=a):a=e[2];let s;e[3]!==i?(s=i("changes.comparedWith"),e[3]=i,e[4]=s):s=e[4];let l;e[5]!==s?(l=(0,p5.jsxs)("span",{className:"acpmux-hidden-label",children:[" ",s," "]}),e[5]=s,e[6]=l):l=e[6];let c;e[7]!==r?(c=(0,p5.jsx)("span",{className:"acpmux-branch-to",children:r}),e[7]=r,e[8]=c):c=e[8];let u;return e[9]!==o||e[10]!==l||e[11]!==c?(u=(0,p5.jsxs)("div",{className:"acpmux-branch-pill",children:[o,a,l,c]}),e[9]=o,e[10]=l,e[11]=c,e[12]=u):u=e[12],u}function Txe(t){let e=t&&typeof t=="object"?t:{},n=_h(e.branch),r=_h(e.base);return e.detached!==!0&&n&&r?{branch:n,base:r}:void 0}var Rxe=["lastTurn",null,"uncommitted","unstaged","staged",null,"committed","branch"],NT={lastTurn:"changes.scope.lastTurn",uncommitted:"changes.scope.uncommitted",unstaged:"changes.scope.unstaged",staged:"changes.scope.staged",committed:"changes.scope.committed",branch:"changes.scope.branch"},mrt=new Set(["added","modified","deleted","renamed","untracked"]),m5=t=>typeof t=="number"&&Number.isFinite(t)&&t>0?t:0,_h=t=>typeof t=="string"&&t?t:void 0;function PT(t,e){if(!t||typeof t!="object"||!Array.isArray(t.files))return;let n=t,r=n.files.flatMap(i=>{let o=i,a=_h(o?.path);if(!o||!a)return[];let s=mrt.has(o.status)?o.status:"modified";return[{path:a,previousPath:_h(o.previous_path),status:s,additions:m5(o.additions),deletions:m5(o.deletions),patch:_h(o.patch),binary:o.binary===!0,patchTruncated:o.patch_truncated===!0}]});return{scope:e,root:_h(n.root),head:_h(n.head),base:_h(n.base),files:r,additions:m5(n.additions),deletions:m5(n.deletions),untrackedSkipped:m5(n.untracked_skipped),totalFiles:m5(n.total_files),filesOmitted:m5(n.files_omitted)}}function frt(t){let e=[],n=[],r=0,i=0,o=0,a=0,s=(t??"").split(` +`);s.at(-1)===""&&s.pop();for(let l of s){let c=l.endsWith("\r")?l.slice(0,-1):l,u=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/.exec(c);if(u)n=[],e.push({lines:n}),r=Number(u[1]),o=u[2]===void 0?1:Number(u[2]),i=Number(u[3]),a=u[4]===void 0?1:Number(u[4]);else{if(o<=0&&a<=0)continue;c.startsWith("+")&&a>0?(n.push({type:"add",text:c.slice(1),newLine:i++}),a-=1):c.startsWith("-")&&o>0?(n.push({type:"del",text:c.slice(1),oldLine:r++}),o-=1):(c.startsWith(" ")||c==="")&&o>0&&a>0&&(n.push({type:"context",text:c.slice(1),oldLine:r++,newLine:i++}),o-=1,a-=1)}}return e}function jT(t){let e=t.root?.replace(/\/+$/,"");return t.files.map(n=>({path:e?`${e}/${n.path}`:n.path,displayPath:n.path,edits:[{toolId:t.scope,hunks:n.binary?[]:frt(n.patch),numbered:!0}],additions:n.additions,deletions:n.deletions,created:n.status==="added"||n.status==="untracked",deleted:n.status==="deleted",binary:n.binary,patchTruncated:n.patchTruncated}))}var Ixe=R(qe(),1);var Axe=R(qe(),1),Vm=R(Q(),1);function $xe(){let t=(0,Axe.c)(14),[e,n]=(0,Vm.useState)(!1),r=(0,Vm.useRef)(null),i=(0,Vm.useRef)(null),o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=y=>{n(!1),y&&r.current?.focus()},t[0]=o):o=t[0];let a=o,s,l;t[1]!==e?(s=()=>{e&&i.current?.querySelector('[role="menuitem"]:not([aria-disabled="true"])')?.focus()},l=[e],t[1]=e,t[2]=s,t[3]=l):(s=t[2],l=t[3]),(0,Vm.useLayoutEffect)(s,l);let c,u;t[4]!==e?(c=()=>{if(!e)return;let y=b=>{let w=b.target;!i.current?.contains(w)&&!r.current?.contains(w)&&n(!1)};return document.addEventListener("pointerdown",y,!0),()=>document.removeEventListener("pointerdown",y,!0)},u=[e],t[4]=e,t[5]=c,t[6]=u):(c=t[5],u=t[6]),(0,Vm.useEffect)(c,u);let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=y=>{let b=[...i.current?.querySelectorAll('[role="menuitem"]')??[]],w=b.indexOf(document.activeElement),v=k=>b[(k+b.length)%b.length]?.focus();y.key==="Escape"?(y.preventDefault(),y.stopPropagation(),a(!0)):y.key==="ArrowDown"||y.key==="ArrowUp"?(y.preventDefault(),v(w+(y.key==="ArrowDown"?1:-1))):y.key==="Home"||y.key==="End"?(y.preventDefault(),v(y.key==="Home"?0:b.length-1)):y.key==="Enter"||y.key===" "?(y.preventDefault(),b[w]?.click()):y.key==="Tab"&&a(!1)},t[7]=d):d=t[7];let p=d,m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=y=>{a(!1),Promise.resolve(y()).finally(()=>r.current?.focus())},t[8]=m):m=t[8];let f=m,h;t[9]!==e?(h=()=>e?a(!0):n(!0),t[9]=e,t[10]=h):h=t[10];let x=h,g;return t[11]!==e||t[12]!==x?(g={open:e,button:r,menu:i,onKeyDown:p,run:f,toggle:x},t[11]=e,t[12]=x,t[13]=g):g=t[13],g}var Sh=R(ee(),1);function Nxe(t){let e=(0,Ixe.c)(23),{rows:n}=t,r=ve(),{open:i,button:o,menu:a,onKeyDown:s,run:l,toggle:c}=$xe(),u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={side:"below",align:"start"},e[0]=u):u=e[0];let d=Ys(o,a,i,u),p;e[1]!==r?(p=r("changes.options"),e[1]=r,e[2]=p):p=e[2];let m;e[3]!==r?(m=r("changes.options"),e[3]=r,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=(0,Sh.jsx)($T,{}),e[5]=f):f=e[5];let h;e[6]!==o||e[7]!==i||e[8]!==p||e[9]!==m||e[10]!==c?(h=(0,Sh.jsx)("button",{ref:o,type:"button",className:"acpmux-diff-tool","data-tool":"options","aria-label":p,title:m,"aria-haspopup":"menu","aria-expanded":i,onClick:c,children:f}),e[6]=o,e[7]=i,e[8]=p,e[9]=m,e[10]=c,e[11]=h):h=e[11];let x;e[12]!==a||e[13]!==d||e[14]!==s||e[15]!==i||e[16]!==n||e[17]!==l||e[18]!==r?(x=i&&(0,Sh.jsx)("div",{ref:a,style:d,role:"menu",tabIndex:-1,className:"acpmux-file-menu-list","aria-label":r("changes.options"),onKeyDown:s,children:n.map((y,b)=>y?(0,Sh.jsx)("button",{type:"button",role:"menuitem",tabIndex:-1,className:"acpmux-file-menu-item","aria-disabled":y.disabled||void 0,onClick:()=>{y.disabled||l(y.run)},children:y.label},y.label):(0,Sh.jsx)("hr",{className:"acpmux-scope-separator"},`separator-${b}`))}),e[12]=a,e[13]=d,e[14]=s,e[15]=i,e[16]=n,e[17]=l,e[18]=r,e[19]=x):x=e[19];let g;return e[20]!==h||e[21]!==x?(g=(0,Sh.jsxs)("span",{className:"acpmux-file-menu",children:[h,x]}),e[20]=h,e[21]=x,e[22]=g):g=e[22],g}var Pxe=R(qe(),1),jxe=R(Q(),1);var N3=R(ee(),1);function Oxe(t){let e=(0,Pxe.c)(35),{files:n,review:r,onSent:i}=t,o=ve(),[a,s]=(0,jxe.useState)(""),l,c,u,d,p;if(e[0]!==n||e[1]!==a||e[2]!==i||e[3]!==r||e[4]!==o){p=Symbol.for("react.early_return_sentinel");e:{let k=xxe(n,r.decisions);if(k.length===0){p=null;break e}l=()=>{r.requestRevert(k.map(grt),Cse(k.map(hrt),a)),s(""),i()},d="acpmux-revert-bar",c="acpmux-revert-count",u=k.length===1?o("revert.count.one"):o("revert.count.other",{n:k.length})}e[0]=n,e[1]=a,e[2]=i,e[3]=r,e[4]=o,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=p}else l=e[5],c=e[6],u=e[7],d=e[8],p=e[9];if(p!==Symbol.for("react.early_return_sentinel"))return p;let m;e[10]!==c||e[11]!==u?(m=(0,N3.jsx)("span",{className:c,children:u}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let f;e[13]!==o?(f=o("revert.noteLabel"),e[13]=o,e[14]=f):f=e[14];let h;e[15]!==o?(h=o("revert.notePlaceholder"),e[15]=o,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=k=>s(k.target.value),e[17]=x):x=e[17];let g;e[18]!==l?(g=k=>{k.key==="Enter"&&!k.nativeEvent.isComposing&&(k.preventDefault(),l())},e[18]=l,e[19]=g):g=e[19];let y;e[20]!==a||e[21]!==f||e[22]!==h||e[23]!==g?(y=(0,N3.jsx)("input",{"aria-label":f,placeholder:h,value:a,onChange:x,onKeyDown:g}),e[20]=a,e[21]=f,e[22]=h,e[23]=g,e[24]=y):y=e[24];let b;e[25]!==o?(b=o("revert.send"),e[25]=o,e[26]=b):b=e[26];let w;e[27]!==l||e[28]!==b?(w=(0,N3.jsx)("button",{type:"button",className:"acpmux-revert-send",onClick:l,children:b}),e[27]=l,e[28]=b,e[29]=w):w=e[29];let v;return e[30]!==y||e[31]!==w||e[32]!==d||e[33]!==m?(v=(0,N3.jsxs)("div",{className:d,children:[m,y,w]}),e[30]=y,e[31]=w,e[32]=d,e[33]=m,e[34]=v):v=e[34],v}function hrt(t){return t.patch}function grt(t){return t.key}var Dxe=R(qe(),1),Zm=R(Q(),1);var Uu=R(ee(),1);function Fxe(t){let e=(0,Dxe.c)(37),{scope:n,onScope:r,children:i}=t,o=ve(),[a,s]=(0,Zm.useState)(!1),l=(0,Zm.useRef)(null),c=(0,Zm.useRef)(null),u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={side:"below",align:"start"},e[0]=u):u=e[0];let d=Ys(l,c,a,u),p;e[1]===Symbol.for("react.memo_cache_sentinel")?(p=$=>{s(!1),$&&l.current?.focus()},e[1]=p):p=e[1];let m=p,f,h;e[2]!==a?(f=()=>{a&&c.current?.querySelector('[aria-checked="true"]')?.focus()},h=[a],e[2]=a,e[3]=f,e[4]=h):(f=e[3],h=e[4]),(0,Zm.useLayoutEffect)(f,h);let x,g;e[5]!==a?(x=()=>{if(!a)return;let $=N=>{let F=N.target;!c.current?.contains(F)&&!l.current?.contains(F)&&s(!1)};return document.addEventListener("pointerdown",$,!0),()=>document.removeEventListener("pointerdown",$,!0)},g=[a],e[5]=a,e[6]=x,e[7]=g):(x=e[6],g=e[7]),(0,Zm.useEffect)(x,g);let y;e[8]===Symbol.for("react.memo_cache_sentinel")?(y=$=>{let N=[...c.current?.querySelectorAll('[role="menuitemradio"]')??[]],F=N.indexOf(document.activeElement),D=O=>N[(O+N.length)%N.length]?.focus();$.key==="Escape"?($.preventDefault(),$.stopPropagation(),m(!0)):$.key==="ArrowDown"||$.key==="ArrowUp"?($.preventDefault(),D(F+($.key==="ArrowDown"?1:-1))):$.key==="Home"||$.key==="End"?($.preventDefault(),D($.key==="Home"?0:N.length-1)):$.key==="Enter"||$.key===" "?($.preventDefault(),N[F]?.click()):$.key==="Tab"&&m(!1)},e[8]=y):y=e[8];let b=y,w;e[9]!==n||e[10]!==o?(w=o("changes.scopeButton",{scope:o(NT[n])}),e[9]=n,e[10]=o,e[11]=w):w=e[11];let v,k;e[12]!==a?(k=()=>a?m(!0):s(!0),v=$=>{a||$.key!=="ArrowDown"&&$.key!=="ArrowUp"||($.preventDefault(),s(!0))},e[12]=a,e[13]=v,e[14]=k):(v=e[13],k=e[14]);let _=NT[n],L;e[15]!==o||e[16]!==_?(L=o(_),e[15]=o,e[16]=_,e[17]=L):L=e[17];let S;e[18]!==L?(S=(0,Uu.jsx)("strong",{children:L}),e[18]=L,e[19]=S):S=e[19];let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=(0,Uu.jsx)(c5,{className:"acpmux-scope-chevron"}),e[20]=C):C=e[20];let T;e[21]!==i||e[22]!==a||e[23]!==v||e[24]!==S||e[25]!==w||e[26]!==k?(T=(0,Uu.jsxs)("button",{ref:l,type:"button",className:"acpmux-diff-scope","aria-label":w,"aria-haspopup":"menu","aria-expanded":a,onClick:k,onKeyDown:v,children:[S,C,i]}),e[21]=i,e[22]=a,e[23]=v,e[24]=S,e[25]=w,e[26]=k,e[27]=T):T=e[27];let M;e[28]!==d||e[29]!==r||e[30]!==a||e[31]!==n||e[32]!==o?(M=a&&(0,Uu.jsx)("div",{ref:c,style:d,role:"menu",tabIndex:-1,className:"acpmux-file-menu-list acpmux-scope-list","aria-label":o("changes.scopeMenu"),onKeyDown:b,children:Rxe.map(($,N)=>$===null?(0,Uu.jsx)("hr",{className:"acpmux-scope-separator"},`separator-${N}`):(0,Uu.jsxs)("button",{type:"button",role:"menuitemradio","aria-checked":$===n,tabIndex:-1,className:"acpmux-file-menu-item",onClick:()=>{m(!0),r($)},children:[(0,Uu.jsx)("span",{className:"acpmux-scope-label",children:o(NT[$])}),$===n&&(0,Uu.jsx)(L6e,{})]},$))}),e[28]=d,e[29]=r,e[30]=a,e[31]=n,e[32]=o,e[33]=M):M=e[33];let A;return e[34]!==T||e[35]!==M?(A=(0,Uu.jsxs)("span",{className:"acpmux-scope-menu",children:[T,M]}),e[34]=T,e[35]=M,e[36]=A):A=e[36],A}var Bxe=R(qe(),1);var Yd=R(ee(),1);function zxe(t){let e=(0,Bxe.c)(27),{skipped:n,onRefresh:r}=t,i=ve(),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,Yd.jsx)(E6e,{className:"acpmux-changes-banner-icon"}),e[0]=o):o=e[0];let a;e[1]!==i?(a=i("changes.trackedOnly"),e[1]=i,e[2]=a):a=e[2];let s;e[3]!==a?(s=(0,Yd.jsx)("div",{className:"acpmux-changes-banner-title",children:a}),e[3]=a,e[4]=s):s=e[4];let l;e[5]!==n||e[6]!==i?(l=n===1?i("changes.skipped.one"):i("changes.skipped.other",{n:n.toLocaleString(document.documentElement.lang||"en")}),e[5]=n,e[6]=i,e[7]=l):l=e[7];let c;e[8]!==l?(c=(0,Yd.jsx)("div",{className:"acpmux-changes-banner-body",children:l}),e[8]=l,e[9]=c):c=e[9];let u;e[10]!==s||e[11]!==c?(u=(0,Yd.jsxs)("div",{className:"acpmux-changes-banner-text",role:"status",children:[s,c]}),e[10]=s,e[11]=c,e[12]=u):u=e[12];let d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,Yd.jsx)("span",{className:"acpmux-changes-banner-divider"}),e[13]=d):d=e[13];let p;e[14]!==i?(p=i("changes.copyCleanup"),e[14]=i,e[15]=p):p=e[15];let m;e[16]!==p?(m=(0,Yd.jsx)("button",{type:"button",className:"acpmux-changes-banner-action",onClick:brt,children:p}),e[16]=p,e[17]=m):m=e[17];let f;e[18]!==i?(f=i("changes.refresh"),e[18]=i,e[19]=f):f=e[19];let h;e[20]!==r||e[21]!==f?(h=(0,Yd.jsx)("button",{type:"button",className:"acpmux-changes-banner-refresh",onClick:r,children:f}),e[20]=r,e[21]=f,e[22]=h):h=e[22];let x;return e[23]!==h||e[24]!==u||e[25]!==m?(x=(0,Yd.jsxs)("div",{className:"acpmux-changes-banner",children:[o,u,d,m,h]}),e[23]=h,e[24]=u,e[25]=m,e[26]=x):x=e[26],x}function brt(){ba("git clean -nd")}var Uxe=R(qe(),1),Vxe=R(Q(),1);function FU(t,e,n){if(n===1){let r=t.findIndex(i=>i>e+1);return r===-1?void 0:r}for(let r=t.length-1;r>=0;r-=1)if(t[r]<e-1)return r}var qxe=t=>t?.getAttribute("data-line-type")?.startsWith("change-")===!0;function Hxe(t){let e=[];for(let n of t.querySelectorAll(".acpmux-diff-file diffs-container"))for(let r of n.shadowRoot?.querySelectorAll("[data-line][data-line-type]")??[]){if(!qxe(r))continue;let i=r.previousElementSibling;for(;i&&!i.hasAttribute("data-line")&&!i.hasAttribute("data-separator");)i=i.previousElementSibling;qxe(i)||e.push({row:r,top:r.getBoundingClientRect().top})}return e.sort((n,r)=>n.top-r.top),e.filter((n,r)=>r===0||n.top-e[r-1].top>1).map(({row:n})=>n)}function Gxe(t){let e=new Set;return[...t.querySelectorAll(".acpmux-diff-file")].filter(n=>{let r=n.dataset.path??"";return e.has(r)?!1:(e.add(r),!0)})}var BU="data-acpmux-current",xrt=t=>t instanceof Element&&(t.closest("input, textarea, select, [contenteditable]:not([contenteditable='false'])")!==null||t.getAttribute("role")==="textbox");function Zxe(t,e,n,r){let i=(0,Uxe.c)(10),o;i[0]!==e||i[1]!==t.current||i[2]!==n||i[3]!==r?(o=()=>{let s=t.current;if(!s)return;let l,c=u=>{let d=e.current;if(!d||u.defaultPrevented||u.metaKey||u.ctrlKey||u.altKey||u.isComposing||xrt(u.composedPath()[0]??u.target)||!["j","k","n","p"].includes(u.key))return;let p=u.key==="j"||u.key==="n"?1:-1,m=d.getBoundingClientRect();if(u.key==="j"||u.key==="k"){let w=Gxe(d),v=w.map(vrt),k=w.findIndex(S=>S.dataset.path===r()),L=k!==-1&&v[k]<m.top+d.clientHeight&&(v[k+1]??1/0)>m.top?w[k+p]&&k+p:FU(v,m.top,p);u.preventDefault(),L!==void 0&&n(w[L].dataset.path??"");return}let f=Hxe(d),h=m.top+d.clientHeight*.3,x=l?.isConnected?l.getBoundingClientRect().top:void 0,g=x!==void 0&&x>=m.top&&x<=m.top+d.clientHeight?x:p===1?m.top-2:h,y=FU(f.map(wrt),g,p);if(u.preventDefault(),y===void 0)return;let b=f[y];l?.removeAttribute(BU),b.setAttribute(BU,""),l=b,d.scrollTop=d.scrollTop+(b.getBoundingClientRect().top-h)};return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c),l?.removeAttribute(BU)}},i[0]=e,i[1]=t.current,i[2]=n,i[3]=r,i[4]=o):o=i[4];let a;i[5]!==e||i[6]!==t||i[7]!==n||i[8]!==r?(a=[t,e,n,r],i[5]=e,i[6]=t,i[7]=n,i[8]=r,i[9]=a):a=i[9],(0,Vxe.useEffect)(o,a)}function wrt(t){return t.getBoundingClientRect().top}function vrt(t){return t.getBoundingClientRect().top}var Wxe=R(qe(),1),f5=R(Q(),1);function Kxe(t,e){let n=(0,Wxe.c)(12),[r,i]=(0,f5.useState)(0),[o,a]=(0,f5.useState)(e);o!==e&&(a(e),i(_rt));let s=`${e}\0${r}`,[l,c]=(0,f5.useState)(),[u,d]=(0,f5.useState)(),p,m;n[0]!==s||n[1]!==e||n[2]!==t?(p=()=>{if(e==="lastTurn")return;let w=!0,v=_=>{w&&c({key:s,load:_})};return e==="branch"&&t?.status&&t.status().then(_=>{w&&d({key:s,branch:Txe(_)})},Crt),(t?t.diff(e):Promise.reject(new Error("No session host"))).then(_=>{let L=PT(_,e);v(L?{state:"loaded",changeSet:L}:{state:"error"})},_=>v({state:"error",message:_ instanceof Error?_.message:void 0})),()=>{w=!1}},m=[t,e,s],n[0]=s,n[1]=e,n[2]=t,n[3]=p,n[4]=m):(p=n[3],m=n[4]),(0,f5.useEffect)(p,m);let f;n[5]===Symbol.for("react.memo_cache_sentinel")?(f=()=>i(krt),n[5]=f):f=n[5];let h=f,x;n[6]!==s||n[7]!==l?(x=l?.key===s?l.load:{state:"loading"},n[6]=s,n[7]=l,n[8]=x):x=n[8];let g=x,y=u?.key===s?u.branch:void 0,b;return n[9]!==y||n[10]!==g?(b={load:g,retry:h,branch:y},n[9]=y,n[10]=g,n[11]=b):b=n[11],b}function krt(t){return t+1}function Crt(){}function _rt(t){return t+1}var yr=R(ee(),1),Yxe="cmux.acpmux.diffLayout",Qxe="cmux.acpmux.diffWrap",Jxe="cmux.acpmux.diffTree";function qU(t){try{return window.localStorage?.getItem(t)??null}catch{return null}}function zU(t,e){try{window.localStorage?.setItem(t,e)}catch{}}function e8e(t){let e=(0,Xxe.c)(95),{files:n,initialPath:r,onClose:i,source:o,onOpenFile:a,checkpointAction:s,checkpointReview:l,review:c,reviewFiles:u,turn:d}=t,p=ve();a1();let[m,f]=(0,lo.useState)("lastTurn"),{load:h,retry:x,branch:g}=Kxe(o,m),y;e[0]!==h.changeSet||e[1]!==h.state?(y=h.state==="loaded"?jT(h.changeSet):[],e[0]=h.changeSet,e[1]=h.state,e[2]=y):y=e[2];let w=m==="lastTurn"?n:y,v=m==="lastTurn"||h.state==="loaded"&&w.length>0?void 0:h.state==="loaded"?"empty":h.state,[k,_]=(0,lo.useState)(Art),[L,S]=(0,lo.useState)(Rrt),[C,T]=(0,lo.useState)(Trt),[M,A]=(0,lo.useState)(Ert),[$,N]=(0,lo.useState)(Mrt),[F,D]=(0,lo.useState)(r??w[0]?.path),O=(0,lo.useRef)(null),B=(0,lo.useRef)(null),P=(0,lo.useRef)(void 0),U=m==="lastTurn"?c:void 0,G=m==="lastTurn"?d?.note:void 0,j;e[3]!==w?(j=w.reduce(Lrt,{additions:0,deletions:0}),e[3]=w,e[4]=j):j=e[4];let V=j,H;e[5]===Symbol.for("react.memo_cache_sentinel")?(H=it=>{D(it),[...O.current?.querySelectorAll(".acpmux-diff-file")??[]].find(En=>En.dataset.path===it)?.scrollIntoView?.({block:"start"})},e[5]=H):H=e[5];let ne=H,J=(0,lo.useRef)(r),W=()=>{J.current=void 0},ie;e[6]===Symbol.for("react.memo_cache_sentinel")?(ie=it=>{J.current=it,A(ft=>{if(!ft.has(it))return ft;let En=new Set(ft);return En.delete(it),En}),ne(it)},e[6]=ie):ie=e[6];let Z=nu(ie),le,se;e[7]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{let it=O.current;if(!it)return;let ft=()=>{J.current=void 0};for(let En of["wheel","pointerdown","keydown"])it.addEventListener(En,ft,{passive:!0});return()=>{for(let En of["wheel","pointerdown","keydown"])it.removeEventListener(En,ft)}},se=[],e[7]=le,e[8]=se):(le=e[7],se=e[8]),(0,lo.useEffect)(le,se);let ge;e[9]===Symbol.for("react.memo_cache_sentinel")?(ge=()=>{J.current&&ne(J.current)},e[9]=ge):ge=e[9];let ce=nu(ge),be,ke;e[10]!==r?(be=()=>{B.current?.focus(),r&&ne(r)},ke=[r],e[10]=r,e[11]=be,e[12]=ke):(be=e[11],ke=e[12]),(0,lo.useEffect)(be,ke);let me=(0,lo.useRef)(null),Se;e[13]!==F?(Se=()=>F,e[13]=F,e[14]=Se):Se=e[14];let de=nu(Se);Zxe(me,O,Z,de);let Le,Ne;e[15]!==i?(Le=()=>{let it=ft=>{let En=document.activeElement;ft.key!=="Escape"||ft.defaultPrevented||En instanceof HTMLInputElement||(!En||En===document.body||me.current?.contains(En))&&(ft.preventDefault(),i())};return window.addEventListener("keydown",it),()=>window.removeEventListener("keydown",it)},Ne=[i],e[15]=i,e[16]=Le,e[17]=Ne):(Le=e[16],Ne=e[17]),(0,lo.useEffect)(Le,Ne);let[Be,_e]=(0,lo.useState)(),xe=(0,lo.useRef)(0),Ce;e[18]!==a||e[19]!==p?(Ce=(it,ft)=>{let En=xe.current=xe.current+1;_e(void 0),(a?a(it,ft):Promise.reject(new Error(p("changes.openFailed")))).catch(Nt=>{En===xe.current&&_e(Nt instanceof Error&&Nt.message?Nt.message:p("changes.openFailed"))})},e[18]=a,e[19]=p,e[20]=Ce):Ce=e[20];let K=nu(Ce),Y;e[21]===Symbol.for("react.memo_cache_sentinel")?(Y=it=>{J.current=void 0,A(ft=>{let En=new Set(ft);return En.has(it)?En.delete(it):En.add(it),En})},e[21]=Y):Y=e[21];let ye;e[22]!==$?(ye=it=>{J.current=void 0;let ft=!$.has(it),En=jt=>{let Nt=new Set(jt);return ft?Nt.add(it):Nt.delete(it),Nt};N(En),A(En)},e[22]=$,e[23]=ye):ye=e[23];let Re;e[24]!==K||e[25]!==ye?(Re={openFile:K,toggleCollapsed:Y,toggleViewed:ye},e[24]=K,e[25]=ye,e[26]=Re):Re=e[26];let Ke=Re,mt;e[27]!==M||e[28]!==w?(mt=w.length>0&&w.every(it=>M.has(it.path)),e[27]=M,e[28]=w,e[29]=mt):mt=e[29];let dt=mt,Ae=it=>{if(W(),it==="collapse")A(dt?new Set:new Set(w.map(Srt)));else if(it==="wrap")S(!L),zU(Qxe,L?"off":"on");else if(it==="split"){let ft=k==="split"?"unified":"split";_(ft),zU(Yxe,ft)}else T(!C),zU(Jxe,C?"off":"on")},wt;e[30]!==dt||e[31]!==p?(wt=p(dt?"changes.expandAllFiles":"changes.collapseAllFiles"),e[30]=dt,e[31]=p,e[32]=wt):wt=e[32];let Tt;e[33]===Symbol.for("react.memo_cache_sentinel")?(Tt=(0,yr.jsx)(A6e,{}),e[33]=Tt):Tt=e[33];let Ot=[{id:"collapse",label:wt,icon:Tt,pressed:dt},{id:"wrap",label:p("changes.wrapLines"),icon:(0,yr.jsx)(R6e,{}),pressed:L},{id:"split",label:p("changes.splitView"),icon:(0,yr.jsx)($6e,{}),pressed:k==="split"},{id:"tree",label:p("changes.fileTree"),icon:(0,yr.jsx)(I6e,{}),pressed:C}],zt;e[34]!==h.changeSet||e[35]!==h.state||e[36]!==m?(zt=m!=="lastTurn"&&h.state==="loaded"?Lxe(h.changeSet):void 0,e[34]=h.changeSet,e[35]=h.state,e[36]=m,e[37]=zt):zt=e[37];let Ve=zt,Jt=m!=="lastTurn"&&h.state==="loaded"?h.changeSet.untrackedSkipped??0:0,rn;e[38]!==x?(rn=()=>{me.current?.querySelector(".acpmux-diff-scope")?.focus(),x()},e[38]=x,e[39]=rn):rn=e[39];let Rn=rn,St;e[40]!==Ve?(St=()=>Ve&&ba(Ve),e[40]=Ve,e[41]=St):St=e[41];let An=[{label:p("changes.refresh"),disabled:m==="lastTurn",run:x},{label:p(L?"changes.disableWrap":"changes.wordWrap"),run:()=>Ae("wrap")},{label:p(k==="split"?"changes.toUnified":"changes.toSplit"),run:()=>Ae("split")},{label:p(dt?"changes.expandAllDiffs":"changes.collapseAllDiffs"),disabled:w.length===0,run:()=>Ae("collapse")},null,{label:p("changes.copyApply"),disabled:!Ve,run:St}],Xt;e[42]!==p?(Xt=p("changes.panel"),e[42]=p,e[43]=Xt):Xt=e[43];let zn;e[44]!==p?(zn=p("changes.back"),e[44]=p,e[45]=zn):zn=e[45];let Dt;e[46]!==p?(Dt=p("changes.back"),e[46]=p,e[47]=Dt):Dt=e[47];let mn;e[48]===Symbol.for("react.memo_cache_sentinel")?(mn=(0,yr.jsx)(T6e,{}),e[48]=mn):mn=e[48];let yn;e[49]!==i||e[50]!==zn||e[51]!==Dt?(yn=(0,yr.jsx)("button",{ref:B,type:"button",className:"acpmux-diff-back","aria-label":zn,title:Dt,onClick:i,children:mn}),e[49]=i,e[50]=zn,e[51]=Dt,e[52]=yn):yn=e[52];let In;e[53]!==w.length||e[54]!==V?(In=w.length>0&&(0,yr.jsx)(Gm,{additions:V.additions,deletions:V.deletions}),e[53]=w.length,e[54]=V,e[55]=In):In=e[55];let er;e[56]!==p?(er=p("changes.viewTools"),e[56]=p,e[57]=er):er=e[57];let ae;e[58]!==Be?(ae=Be&&(0,yr.jsx)("div",{className:"acpmux-diff-notice",role:"alert",children:Be}),e[58]=Be,e[59]=ae):ae=e[59];let st;e[60]!==g||e[61]!==Rn||e[62]!==Jt||e[63]!==G?(st=(g||Jt>0||G)&&(0,yr.jsxs)("div",{className:"acpmux-diff-notes",children:[G&&(0,yr.jsx)("output",{className:"acpmux-turn-note",children:G}),g&&(0,yr.jsx)(Exe,{branch:g.branch,base:g.base}),Jt>0&&(0,yr.jsx)(zxe,{skipped:Jt,onRefresh:Rn})]}),e[60]=g,e[61]=Rn,e[62]=Jt,e[63]=G,e[64]=st):st=e[64];let Mt;e[65]!==M||e[66]!==w||e[67]!==U||e[68]!==k||e[69]!==Ke||e[70]!==ce||e[71]!==Rn||e[72]!==v||e[73]!==p||e[74]!==$||e[75]!==L?(Mt=v?(0,yr.jsx)(_xe,{state:v,onRetry:Rn}):w.length===0?(0,yr.jsx)("div",{className:"acpmux-muted",children:p("changes.noTurnChanges")}):w.flatMap(it=>it.edits.map((ft,En)=>(0,yr.jsx)(kxe,{file:it,edit:ft,index:En,layout:k,wrap:L,view:{collapsed:M.has(it.path),viewed:$.has(it.path)},on:Ke,onPainted:ce,review:it.outside?void 0:U,focusAfter:P},`${it.path}\0${ft.toolId}\0${En}`))),e[65]=M,e[66]=w,e[67]=U,e[68]=k,e[69]=Ke,e[70]=ce,e[71]=Rn,e[72]=v,e[73]=p,e[74]=$,e[75]=L,e[76]=Mt):Mt=e[76];let Ye;e[77]!==Mt?(Ye=(0,yr.jsx)("div",{ref:O,className:"acpmux-diff-body",children:Mt}),e[77]=Mt,e[78]=Ye):Ye=e[78];let vt;e[79]!==w||e[80]!==Z||e[81]!==F||e[82]!==C||e[83]!==p?(vt=C&&(0,yr.jsx)("nav",{className:"acpmux-diff-tree","aria-label":p("changes.changedFiles"),children:(0,yr.jsx)(axe,{files:w,selected:F,onSelect:Z})}),e[79]=w,e[80]=Z,e[81]=F,e[82]=C,e[83]=p,e[84]=vt):vt=e[84];let jn;e[85]!==Ye||e[86]!==vt?(jn=(0,yr.jsxs)("div",{className:"acpmux-diff-main",children:[Ye,vt]}),e[85]=Ye,e[86]=vt,e[87]=jn):jn=e[87];let Kn;e[88]!==w||e[89]!==U||e[90]!==u?(Kn=U&&(0,yr.jsx)(Oxe,{files:u??w,review:U,onSent:()=>B.current?.focus()}),e[88]=w,e[89]=U,e[90]=u,e[91]=Kn):Kn=e[91];let un;return e[92]!==w.length||e[93]!==v?(un=w.length>0&&!v&&(0,yr.jsx)(uxe,{}),e[92]=w.length,e[93]=v,e[94]=un):un=e[94],(0,yr.jsxs)("section",{ref:me,className:"acpmux-diff-panel","aria-label":Xt,children:[(0,yr.jsxs)("header",{className:"acpmux-diff-header",children:[yn,(0,yr.jsx)(Fxe,{scope:m,onScope:it=>{it!==m&&(W(),f(it),A(new Set),N(new Set),D(void 0),xe.current=xe.current+1,_e(void 0))},children:In}),(0,yr.jsxs)("div",{className:"acpmux-diff-tools",role:"toolbar","aria-label":er,children:[s,(0,yr.jsx)(Nxe,{rows:An}),Ot.map(it=>(0,yr.jsx)("button",{type:"button",className:"acpmux-diff-tool","data-tool":it.id,"aria-label":it.label,title:it.label,"aria-pressed":it.pressed,onClick:()=>Ae(it.id),children:it.icon},it.id))]})]}),ae,st,l,jn,Kn,un]})}function Srt(t){return t.path}function Lrt(t,e){return{additions:t.additions+e.additions,deletions:t.deletions+e.deletions}}function Mrt(){return new Set}function Ert(){return new Set}function Trt(){return qU(Jxe)!=="off"}function Rrt(){return qU(Qxe)==="on"}function Art(){return qU(Yxe)==="split"?"split":"unified"}var Km=R(Q(),1);var m8e=R(qe(),1),f8e=R(Q(),1);var t8e={id:"cmux",version:1,grid:24,icons:{account:{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15 10C15 11.657 13.657 13 12 13C10.343 13 9 11.657 9 10C9 8.343 10.343 7 12 7C13.657 7 15 8.343 15 10Z",op:"stroke",w:1.5},{d:"M6.25 18.4C7.478 16.402 9.655 15.186 12 15.186C14.345 15.186 16.522 16.402 17.75 18.4",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15 10C15 11.657 13.657 13 12 13C10.343 13 9 11.657 9 10C9 8.343 10.343 7 12 7C13.657 7 15 8.343 15 10Z",op:"clearStroke",w:1.75},{d:"M6.25 18.4C7.478 16.402 9.655 15.186 12 15.186C14.345 15.186 16.522 16.402 17.75 18.4",op:"clearStroke",w:1.75}]},"account.passkey":{line:[{d:"M13.5 7.5C13.5 9.433 11.933 11 10 11C8.067 11 6.5 9.433 6.5 7.5C6.5 5.567 8.067 4 10 4C11.933 4 13.5 5.567 13.5 7.5Z",op:"stroke",w:1.5},{d:"M3.5 20L3.5 19.25C3.5 16.627 5.627 14.5 8.25 14.5L11.75 14.5C14.373 14.5 16.5 16.627 16.5 19.25L16.5 20",op:"stroke",w:1.5},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearFill"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearStroke",w:4.5},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearFill"},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearStroke",w:4.5},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"stroke",w:1.5},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"stroke",w:1.5}],solid:[{d:"M13.5 7.5C13.5 9.433 11.933 11 10 11C8.067 11 6.5 9.433 6.5 7.5C6.5 5.567 8.067 4 10 4C11.933 4 13.5 5.567 13.5 7.5Z",op:"fill"},{d:"M13.5 7.5C13.5 9.433 11.933 11 10 11C8.067 11 6.5 9.433 6.5 7.5C6.5 5.567 8.067 4 10 4C11.933 4 13.5 5.567 13.5 7.5Z",op:"stroke",w:1.5},{d:"M3.5 20L3.5 19.25C3.5 16.627 5.627 14.5 8.25 14.5L11.75 14.5C14.373 14.5 16.5 16.627 16.5 19.25L16.5 20Z",op:"fill"},{d:"M3.5 20L3.5 19.25C3.5 16.627 5.627 14.5 8.25 14.5L11.75 14.5C14.373 14.5 16.5 16.627 16.5 19.25L16.5 20Z",op:"stroke",w:1.5},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearFill"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearFill"},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"fill"},{d:"M20 13.5C20 14.743 18.993 15.75 17.75 15.75C16.507 15.75 15.5 14.743 15.5 13.5C15.5 12.257 16.507 11.25 17.75 11.25C18.993 11.25 20 12.257 20 13.5Z",op:"stroke",w:2},{d:"M17.75 15.75L17.75 20.75M17.75 18.5L19.5 18.5",op:"stroke",w:2}]},"account.routed":{line:[{d:"M13 7.5C13 9.433 11.433 11 9.5 11C7.567 11 6 9.433 6 7.5C6 5.567 7.567 4 9.5 4C11.433 4 13 5.567 13 7.5Z",op:"stroke",w:1.5},{d:"M3 20L3 19.25C3 16.627 5.127 14.5 7.75 14.5L11.25 14.5C13.873 14.5 16 16.627 16 19.25L16 20",op:"stroke",w:1.5},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearFill"},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearStroke",w:4.5},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"stroke",w:1.5}],solid:[{d:"M13 7.5C13 9.433 11.433 11 9.5 11C7.567 11 6 9.433 6 7.5C6 5.567 7.567 4 9.5 4C11.433 4 13 5.567 13 7.5Z",op:"fill"},{d:"M13 7.5C13 9.433 11.433 11 9.5 11C7.567 11 6 9.433 6 7.5C6 5.567 7.567 4 9.5 4C11.433 4 13 5.567 13 7.5Z",op:"stroke",w:1.5},{d:"M3 20L3 19.25C3 16.627 5.127 14.5 7.75 14.5L11.25 14.5C13.873 14.5 16 16.627 16 19.25L16 20Z",op:"fill"},{d:"M3 20L3 19.25C3 16.627 5.127 14.5 7.75 14.5L11.25 14.5C13.873 14.5 16 16.627 16 19.25L16 20Z",op:"stroke",w:1.5},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearFill"},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M15 21L15 19.25C15 18.007 16.007 17 17.25 17L20.75 17M18.75 15L20.75 17L18.75 19",op:"stroke",w:2}]},"account.signin":{line:[{d:"M14 4L17.5 4C18.881 4 20 5.119 20 6.5L20 17.5C20 18.881 18.881 20 17.5 20L14 20",op:"stroke",w:1.5},{d:"M4 12L15 12M11.5 8.5L15 12L11.5 15.5",op:"stroke",w:1.5}],solid:[{d:"M14 4L17.5 4C18.881 4 20 5.119 20 6.5L20 17.5C20 18.881 18.881 20 17.5 20L14 20",op:"stroke",w:2},{d:"M4 12L15 12M11.5 8.5L15 12L11.5 15.5",op:"stroke",w:2}]},"action.add":{line:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:1.5}],solid:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:2}]},"action.close":{line:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:2}]},"action.confirm":{line:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:1.5}],solid:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:2}]},"action.copy":{line:[{d:"M15.5 8.5L15.5 5.5C15.5 4.395 14.605 3.5 13.5 3.5L5.5 3.5C4.395 3.5 3.5 4.395 3.5 5.5L3.5 13.5C3.5 14.605 4.395 15.5 5.5 15.5L8.5 15.5",op:"stroke",w:1.5},{d:"M10.5 8.5L18.5 8.5C19.605 8.5 20.5 9.395 20.5 10.5L20.5 18.5C20.5 19.605 19.605 20.5 18.5 20.5L10.5 20.5C9.395 20.5 8.5 19.605 8.5 18.5L8.5 10.5C8.5 9.395 9.395 8.5 10.5 8.5Z",op:"stroke",w:1.5}],solid:[{d:"M15.5 8.5L15.5 5.5C15.5 4.395 14.605 3.5 13.5 3.5L5.5 3.5C4.395 3.5 3.5 4.395 3.5 5.5L3.5 13.5C3.5 14.605 4.395 15.5 5.5 15.5L8.5 15.5",op:"stroke",w:1.5},{d:"M10.5 8.5L18.5 8.5C19.605 8.5 20.5 9.395 20.5 10.5L20.5 18.5C20.5 19.605 19.605 20.5 18.5 20.5L10.5 20.5C9.395 20.5 8.5 19.605 8.5 18.5L8.5 10.5C8.5 9.395 9.395 8.5 10.5 8.5Z",op:"fill"},{d:"M10.5 8.5L18.5 8.5C19.605 8.5 20.5 9.395 20.5 10.5L20.5 18.5C20.5 19.605 19.605 20.5 18.5 20.5L10.5 20.5C9.395 20.5 8.5 19.605 8.5 18.5L8.5 10.5C8.5 9.395 9.395 8.5 10.5 8.5Z",op:"stroke",w:1.5}]},"action.delete":{line:[{d:"M4 7L20 7M9.5 7L9.5 5C9.5 4.172 10.172 3.5 11 3.5L13 3.5C13.828 3.5 14.5 4.172 14.5 5L14.5 7",op:"stroke",w:1.5},{d:"M6 7L6.85 19.1C6.903 19.889 7.559 20.502 8.35 20.5L15.65 20.5C16.441 20.502 17.097 19.889 17.15 19.1L18 7",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5M14 10.5L14 16.5",op:"stroke",w:1.5}],solid:[{d:"M6 7L6.85 19.1C6.903 19.889 7.559 20.502 8.35 20.5L15.65 20.5C16.441 20.502 17.097 19.889 17.15 19.1L18 7Z",op:"fill"},{d:"M6 7L6.85 19.1C6.903 19.889 7.559 20.502 8.35 20.5L15.65 20.5C16.441 20.502 17.097 19.889 17.15 19.1L18 7Z",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5M14 10.5L14 16.5",op:"clearStroke",w:1.75},{d:"M4 7L20 7M9.5 7L9.5 5C9.5 4.172 10.172 3.5 11 3.5L13 3.5C13.828 3.5 14.5 4.172 14.5 5L14.5 7",op:"stroke",w:1.5}]},"action.download":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 16M8.5 12.75L12 16.25L15.5 12.75",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 16M8.5 12.75L12 16.25L15.5 12.75",op:"clearStroke",w:1.75}]},"action.edit":{line:[{d:"M4.5 19.5L5.4 15.35L15.5 5.25C15.876 4.868 16.389 4.653 16.925 4.653C17.461 4.653 17.974 4.868 18.35 5.25L18.75 5.65C19.132 6.026 19.347 6.539 19.347 7.075C19.347 7.611 19.132 8.124 18.75 8.5L8.65 18.6Z",op:"stroke",w:1.5},{d:"M13.5 19.5L19.5 19.5",op:"stroke",w:1.5}],solid:[{d:"M4.5 19.5L5.4 15.35L15.5 5.25C15.876 4.868 16.389 4.653 16.925 4.653C17.461 4.653 17.974 4.868 18.35 5.25L18.75 5.65C19.132 6.026 19.347 6.539 19.347 7.075C19.347 7.611 19.132 8.124 18.75 8.5L8.65 18.6Z",op:"fill"},{d:"M4.5 19.5L5.4 15.35L15.5 5.25C15.876 4.868 16.389 4.653 16.925 4.653C17.461 4.653 17.974 4.868 18.35 5.25L18.75 5.65C19.132 6.026 19.347 6.539 19.347 7.075C19.347 7.611 19.132 8.124 18.75 8.5L8.65 18.6Z",op:"stroke",w:1.5},{d:"M13.5 19.5L19.5 19.5",op:"stroke",w:1.5}]},"action.go":{line:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:1.5}],solid:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:2}]},"action.hide":{line:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"fill"},{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M15.4 12C15.4 13.878 13.878 15.4 12 15.4C10.122 15.4 8.6 13.878 8.6 12C8.6 10.122 10.122 8.6 12 8.6C13.878 8.6 15.4 10.122 15.4 12Z",op:"clearStroke",w:1.75},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"action.more":{line:[{d:"M7.1 12C7.1 12.884 6.384 13.6 5.5 13.6C4.616 13.6 3.9 12.884 3.9 12C3.9 11.116 4.616 10.4 5.5 10.4C6.384 10.4 7.1 11.116 7.1 12Z",op:"fill"},{d:"M13.6 12C13.6 12.884 12.884 13.6 12 13.6C11.116 13.6 10.4 12.884 10.4 12C10.4 11.116 11.116 10.4 12 10.4C12.884 10.4 13.6 11.116 13.6 12Z",op:"fill"},{d:"M20.1 12C20.1 12.884 19.384 13.6 18.5 13.6C17.616 13.6 16.9 12.884 16.9 12C16.9 11.116 17.616 10.4 18.5 10.4C19.384 10.4 20.1 11.116 20.1 12Z",op:"fill"}],solid:[{d:"M7.5 12C7.5 13.105 6.605 14 5.5 14C4.395 14 3.5 13.105 3.5 12C3.5 10.895 4.395 10 5.5 10C6.605 10 7.5 10.895 7.5 12Z",op:"fill"},{d:"M14 12C14 13.105 13.105 14 12 14C10.895 14 10 13.105 10 12C10 10.895 10.895 10 12 10C13.105 10 14 10.895 14 12Z",op:"fill"},{d:"M20.5 12C20.5 13.105 19.605 14 18.5 14C17.395 14 16.5 13.105 16.5 12C16.5 10.895 17.395 10 18.5 10C19.605 10 20.5 10.895 20.5 12Z",op:"fill"}]},"action.pause":{line:[{d:"M7.326 5.25L8.885 5.25C9.458 5.25 9.923 5.715 9.923 6.288L9.923 17.712C9.923 18.285 9.458 18.75 8.885 18.75L7.326 18.75C6.753 18.75 6.288 18.285 6.288 17.712L6.288 6.288C6.288 5.715 6.753 5.25 7.326 5.25Z",op:"stroke",w:1.5},{d:"M15.115 5.25L16.674 5.25C17.247 5.25 17.712 5.715 17.712 6.288L17.712 17.712C17.712 18.285 17.247 18.75 16.674 18.75L15.115 18.75C14.542 18.75 14.077 18.285 14.077 17.712L14.077 6.288C14.077 5.715 14.542 5.25 15.115 5.25Z",op:"stroke",w:1.5}],solid:[{d:"M7.326 5.25L8.885 5.25C9.458 5.25 9.923 5.715 9.923 6.288L9.923 17.712C9.923 18.285 9.458 18.75 8.885 18.75L7.326 18.75C6.753 18.75 6.288 18.285 6.288 17.712L6.288 6.288C6.288 5.715 6.753 5.25 7.326 5.25Z",op:"fill"},{d:"M7.326 5.25L8.885 5.25C9.458 5.25 9.923 5.715 9.923 6.288L9.923 17.712C9.923 18.285 9.458 18.75 8.885 18.75L7.326 18.75C6.753 18.75 6.288 18.285 6.288 17.712L6.288 6.288C6.288 5.715 6.753 5.25 7.326 5.25Z",op:"stroke",w:1.5,cap:"butt"},{d:"M15.115 5.25L16.674 5.25C17.247 5.25 17.712 5.715 17.712 6.288L17.712 17.712C17.712 18.285 17.247 18.75 16.674 18.75L15.115 18.75C14.542 18.75 14.077 18.285 14.077 17.712L14.077 6.288C14.077 5.715 14.542 5.25 15.115 5.25Z",op:"fill"},{d:"M15.115 5.25L16.674 5.25C17.247 5.25 17.712 5.715 17.712 6.288L17.712 17.712C17.712 18.285 17.247 18.75 16.674 18.75L15.115 18.75C14.542 18.75 14.077 18.285 14.077 17.712L14.077 6.288C14.077 5.715 14.542 5.25 15.115 5.25Z",op:"stroke",w:1.5,cap:"butt"}]},"action.pin":{line:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}],solid:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"fill"},{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}]},"action.reload":{line:[{d:"M18.5 9.25C20.197 12.189 19.709 15.902 17.309 18.302C14.909 20.703 11.197 21.192 8.257 19.496C5.317 17.8 3.883 14.341 4.759 11.062C5.636 7.783 8.606 5.502 12 5.5",op:"stroke",w:1.5},{d:"M9.7 3.2L12 5.5L9.7 7.8",op:"stroke",w:1.5}],solid:[{d:"M18.5 9.25C20.197 12.189 19.709 15.902 17.309 18.302C14.909 20.703 11.197 21.192 8.257 19.496C5.317 17.8 3.883 14.341 4.759 11.062C5.636 7.783 8.606 5.502 12 5.5",op:"stroke",w:2},{d:"M9.7 3.2L12 5.5L9.7 7.8",op:"stroke",w:2}]},"action.remove":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8 12L16 12",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8 12L16 12",op:"clearStroke",w:1.75}]},"action.reset":{line:[{d:"M5.5 9.25C3.803 12.189 4.291 15.902 6.691 18.302C9.091 20.703 12.803 21.192 15.743 19.496C18.683 17.8 20.117 14.341 19.241 11.062C18.364 7.783 15.394 5.502 12 5.5",op:"stroke",w:1.5},{d:"M14.3 7.8L12 5.5L14.3 3.2",op:"stroke",w:1.5}],solid:[{d:"M5.5 9.25C3.803 12.189 4.291 15.902 6.691 18.302C9.091 20.703 12.803 21.192 15.743 19.496C18.683 17.8 20.117 14.341 19.241 11.062C18.364 7.783 15.394 5.502 12 5.5",op:"stroke",w:2},{d:"M14.3 7.8L12 5.5L14.3 3.2",op:"stroke",w:2}]},"action.restart":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15.68 10.12C16.644 11.785 16.37 13.89 15.011 15.252C13.652 16.614 11.548 16.893 9.881 15.933C8.214 14.972 7.4 13.012 7.896 11.153C8.393 9.294 10.076 8.001 12 8",op:"stroke",w:1.5},{d:"M10.23 6.23L12 8L10.23 9.77",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M15.68 10.12C16.644 11.785 16.37 13.89 15.011 15.252C13.652 16.614 11.548 16.893 9.881 15.933C8.214 14.972 7.4 13.012 7.896 11.153C8.393 9.294 10.076 8.001 12 8",op:"clearStroke",w:1.6},{d:"M10.23 6.23L12 8L10.23 9.77",op:"clearStroke",w:1.6}]},"action.resume":{line:[{d:"M6.75 5.75L6.75 18.25C6.756 18.604 6.948 18.929 7.257 19.104C7.565 19.279 7.943 19.277 8.25 19.1L18.25 12.85C18.544 12.668 18.723 12.346 18.723 12C18.723 11.654 18.544 11.332 18.25 11.15L8.25 4.9C7.943 4.723 7.565 4.721 7.257 4.896C6.948 5.071 6.756 5.396 6.75 5.75Z",op:"stroke",w:1.5}],solid:[{d:"M6.75 5.75L6.75 18.25C6.756 18.604 6.948 18.929 7.257 19.104C7.565 19.279 7.943 19.277 8.25 19.1L18.25 12.85C18.544 12.668 18.723 12.346 18.723 12C18.723 11.654 18.544 11.332 18.25 11.15L8.25 4.9C7.943 4.723 7.565 4.721 7.257 4.896C6.948 5.071 6.756 5.396 6.75 5.75Z",op:"fill"},{d:"M6.75 5.75L6.75 18.25C6.756 18.604 6.948 18.929 7.257 19.104C7.565 19.279 7.943 19.277 8.25 19.1L18.25 12.85C18.544 12.668 18.723 12.346 18.723 12C18.723 11.654 18.544 11.332 18.25 11.15L8.25 4.9C7.943 4.723 7.565 4.721 7.257 4.896C6.948 5.071 6.756 5.396 6.75 5.75Z",op:"stroke",w:1.5}]},"action.review":{line:[{d:"M11 21L6.5 21C5.119 21 4 19.881 4 18.5L4 5.5C4 4.119 5.119 3 6.5 3L14.5 3C15.881 3 17 4.119 17 5.5L17 9",op:"stroke",w:1.5},{d:"M7.5 7.5L13.5 7.5M7.5 11L10.5 11",op:"stroke",w:1.5},{d:"M18.75 15.5C18.75 17.295 17.295 18.75 15.5 18.75C13.705 18.75 12.25 17.295 12.25 15.5C12.25 13.705 13.705 12.25 15.5 12.25C17.295 12.25 18.75 13.705 18.75 15.5Z",op:"stroke",w:1.5},{d:"M17.9 17.9L20.5 20.5",op:"stroke",w:1.5}],solid:[{d:"M6.5 3L14.5 3C15.881 3 17 4.119 17 5.5L17 21L6.5 21C5.119 21 4 19.881 4 18.5L4 5.5C4 4.119 5.119 3 6.5 3Z",op:"fill"},{d:"M6.5 3L14.5 3C15.881 3 17 4.119 17 5.5L17 21L6.5 21C5.119 21 4 19.881 4 18.5L4 5.5C4 4.119 5.119 3 6.5 3Z",op:"stroke",w:1.5},{d:"M7.5 7.5L13.5 7.5M7.5 11L10.5 11",op:"clearStroke",w:1.75},{d:"M21 15.5C21 18.538 18.538 21 15.5 21C12.462 21 10 18.538 10 15.5C10 12.462 12.462 10 15.5 10C18.538 10 21 12.462 21 15.5Z",op:"clearFill"},{d:"M18.75 15.5C18.75 17.295 17.295 18.75 15.5 18.75C13.705 18.75 12.25 17.295 12.25 15.5C12.25 13.705 13.705 12.25 15.5 12.25C17.295 12.25 18.75 13.705 18.75 15.5Z",op:"stroke",w:2,join:"miter"},{d:"M17.9 17.9L20.5 20.5",op:"stroke",w:2,join:"miter"}]},"action.show":{line:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"stroke",w:1.5}],solid:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"fill"},{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M15.4 12C15.4 13.878 13.878 15.4 12 15.4C10.122 15.4 8.6 13.878 8.6 12C8.6 10.122 10.122 8.6 12 8.6C13.878 8.6 15.4 10.122 15.4 12Z",op:"clearStroke",w:1.75}],cat:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M13.5 12C13.5 14.071 12.828 15.75 12 15.75C11.172 15.75 10.5 14.071 10.5 12C10.5 9.929 11.172 8.25 12 8.25C12.828 8.25 13.5 9.929 13.5 12Z",op:"stroke",w:1.5,accent:!0}]},"action.snooze":{line:[{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"stroke",w:1.5},{d:"M15.5 3.5L19 3.5L15.5 8L19 8",op:"stroke",w:1.5}],solid:[{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"fill"},{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"stroke",w:1.5},{d:"M15.5 3.5L19 3.5L15.5 8L19 8",op:"stroke",w:1.5}],cat:[{d:"M20 14.25C19.023 18.025 15.466 20.545 11.581 20.216C7.695 19.887 4.613 16.805 4.284 12.919C3.955 9.034 6.475 5.477 10.25 4.5C7.558 7.192 7.558 11.558 10.25 14.25C12.942 16.942 17.308 16.942 20 14.25Z",op:"stroke",w:1.5},{d:"M15.5 3.5L19 3.5L15.5 8L19 8",op:"stroke",w:1.5,accent:!0}]},"action.stop":{line:[{d:"M7.846 5.25L16.154 5.25C17.588 5.25 18.75 6.412 18.75 7.846L18.75 16.154C18.75 17.588 17.588 18.75 16.154 18.75L7.846 18.75C6.412 18.75 5.25 17.588 5.25 16.154L5.25 7.846C5.25 6.412 6.412 5.25 7.846 5.25Z",op:"stroke",w:1.5}],solid:[{d:"M7.846 5.25L16.154 5.25C17.588 5.25 18.75 6.412 18.75 7.846L18.75 16.154C18.75 17.588 17.588 18.75 16.154 18.75L7.846 18.75C6.412 18.75 5.25 17.588 5.25 16.154L5.25 7.846C5.25 6.412 6.412 5.25 7.846 5.25Z",op:"fill"},{d:"M7.846 5.25L16.154 5.25C17.588 5.25 18.75 6.412 18.75 7.846L18.75 16.154C18.75 17.588 17.588 18.75 16.154 18.75L7.846 18.75C6.412 18.75 5.25 17.588 5.25 16.154L5.25 7.846C5.25 6.412 6.412 5.25 7.846 5.25Z",op:"stroke",w:1.5,cap:"butt"}]},"action.sync":{line:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:1.5},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:1.5},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:1.5},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:1.5}],solid:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:2},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:2},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:2},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:2}]},"action.undo":{line:[{d:"M9 13.75L4.5 9.25L9 4.75M4.5 9.25L14.5 9.25C17.261 9.25 19.5 11.489 19.5 14.25C19.5 17.011 17.261 19.25 14.5 19.25L12 19.25",op:"stroke",w:1.5}],solid:[{d:"M9 13.75L4.5 9.25L9 4.75M4.5 9.25L14.5 9.25C17.261 9.25 19.5 11.489 19.5 14.25C19.5 17.011 17.261 19.25 14.5 19.25L12 19.25",op:"stroke",w:2}]},"action.watching":{line:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"fill"},{d:"M14.75 12C14.75 13.519 13.519 14.75 12 14.75C10.481 14.75 9.25 13.519 9.25 12C9.25 10.481 10.481 9.25 12 9.25C13.519 9.25 14.75 10.481 14.75 12Z",op:"stroke",w:1.5}],solid:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"fill"},{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M15.4 12C15.4 13.878 13.878 15.4 12 15.4C10.122 15.4 8.6 13.878 8.6 12C8.6 10.122 10.122 8.6 12 8.6C13.878 8.6 15.4 10.122 15.4 12Z",op:"clearStroke",w:1.75}],cat:[{d:"M2.75 12C5 7.75 8.25 5.75 12 5.75C15.75 5.75 19 7.75 21.25 12C19 16.25 15.75 18.25 12 18.25C8.25 18.25 5 16.25 2.75 12Z",op:"stroke",w:1.5},{d:"M13.5 12C13.5 14.071 12.828 15.75 12 15.75C11.172 15.75 10.5 14.071 10.5 12C10.5 9.929 11.172 8.25 12 8.25C12.828 8.25 13.5 9.929 13.5 12Z",op:"fill",accent:!0},{d:"M13.5 12C13.5 14.071 12.828 15.75 12 15.75C11.172 15.75 10.5 14.071 10.5 12C10.5 9.929 11.172 8.25 12 8.25C12.828 8.25 13.5 9.929 13.5 12Z",op:"stroke",w:1.5,accent:!0}]},"agent.activity":{line:[{d:"M3.5 4L14.5 4M3.5 8.5L10.5 8.5M3.5 13L7.5 13",op:"stroke",w:1.5},{d:"M11 10.5L20.5 14.25L16.5 15.75L15 19.75Z",op:"stroke",w:1.5}],solid:[{d:"M3.5 4L14.5 4M3.5 8.5L10.5 8.5M3.5 13L7.5 13",op:"stroke",w:2},{d:"M11 10.5L20.5 14.25L16.5 15.75L15 19.75Z",op:"fill"},{d:"M11 10.5L20.5 14.25L16.5 15.75L15 19.75Z",op:"stroke",w:1.5}]},"agent.chat":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"clearStroke",w:1.75}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"agent.chat.empty":{line:[{d:"M5 6.5L19 6.5C20.381 6.5 21.5 7.619 21.5 9L21.5 15C21.5 16.381 20.381 17.5 19 17.5L5 17.5C3.619 17.5 2.5 16.381 2.5 15L2.5 9C2.5 7.619 3.619 6.5 5 6.5Z",op:"stroke",w:1.5},{d:"M6.5 12L12 12M17 14.5L17 9.5M15 11.5L17 9.5L19 11.5",op:"stroke",w:1.5}],solid:[{d:"M5 5.75L19 5.75C20.795 5.75 22.25 7.205 22.25 9L22.25 15C22.25 16.795 20.795 18.25 19 18.25L5 18.25C3.205 18.25 1.75 16.795 1.75 15L1.75 9C1.75 7.205 3.205 5.75 5 5.75Z",op:"fill"},{d:"M6.5 12L12 12M17 14.5L17 9.5M15 11.5L17 9.5L19 11.5",op:"clearStroke",w:1.75}],cat:[{d:"M5 6.5L19 6.5C20.381 6.5 21.5 7.619 21.5 9L21.5 15C21.5 16.381 20.381 17.5 19 17.5L5 17.5C3.619 17.5 2.5 16.381 2.5 15L2.5 9C2.5 7.619 3.619 6.5 5 6.5Z",op:"stroke",w:1.5},{d:"M6.5 12L12 12M17 14.5L17 9.5M15 11.5L17 9.5L19 11.5",op:"stroke",w:1.5},{d:"M5 6.5L5 3.5L8 6.5M19 6.5L19 3.5L16 6.5",op:"stroke",w:1.5,accent:!0}]},"agent.chat.list":{line:[{d:"M8.5 6L8.5 5.5C8.5 4.119 9.619 3 11 3L18.5 3C19.881 3 21 4.119 21 5.5L21 10.5C21 11.881 19.881 13 18.5 13L18 13",op:"stroke",w:1.5},{d:"M6.5 19.5L5.5 19.5C4.119 19.5 3 18.381 3 17L3 10.5C3 9.119 4.119 8 5.5 8L13.5 8C14.881 8 16 9.119 16 10.5L16 17C16 18.381 14.881 19.5 13.5 19.5L9.5 19.5L6.5 22Z",op:"stroke",w:1.5}],solid:[{d:"M8.5 6L8.5 5.5C8.5 4.119 9.619 3 11 3L18.5 3C19.881 3 21 4.119 21 5.5L21 10.5C21 11.881 19.881 13 18.5 13L18 13",op:"stroke",w:1.5},{d:"M6.5 19.5L5.5 19.5C4.119 19.5 3 18.381 3 17L3 10.5C3 9.119 4.119 8 5.5 8L13.5 8C14.881 8 16 9.119 16 10.5L16 17C16 18.381 14.881 19.5 13.5 19.5L9.5 19.5L6.5 22Z",op:"fill"},{d:"M6.5 19.5L5.5 19.5C4.119 19.5 3 18.381 3 17L3 10.5C3 9.119 4.119 8 5.5 8L13.5 8C14.881 8 16 9.119 16 10.5L16 17C16 18.381 14.881 19.5 13.5 19.5L9.5 19.5L6.5 22Z",op:"stroke",w:1.5}]},"agent.chat.new":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearFill"},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearStroke",w:1.5},{d:"M18 13.5L18 18.5M15.5 16L20.5 16",op:"stroke",w:1.5}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"clearStroke",w:1.75},{d:"M23 16C23 18.761 20.761 21 18 21C15.239 21 13 18.761 13 16C13 13.239 15.239 11 18 11C20.761 11 23 13.239 23 16Z",op:"clearFill"},{d:"M18 13.5L18 18.5M15.5 16L20.5 16",op:"stroke",w:2,join:"miter"}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 9L9.5 10.5M14.5 9L14.5 10.5",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearFill"},{d:"M22.75 16C22.75 18.623 20.623 20.75 18 20.75C15.377 20.75 13.25 18.623 13.25 16C13.25 13.377 15.377 11.25 18 11.25C20.623 11.25 22.75 13.377 22.75 16Z",op:"clearStroke",w:1.5},{d:"M18 13.5L18 18.5M15.5 16L20.5 16",op:"stroke",w:1.5},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"agent.fork":{line:[{d:"M12 21L12 16C12 13 6.5 12.5 6.5 9L6.5 4M12 16C12 13 17.5 12.5 17.5 9L17.5 4",op:"stroke",w:1.5},{d:"M3.5 7L6.5 4L9.5 7M14.5 7L17.5 4L20.5 7",op:"stroke",w:1.5}],solid:[{d:"M12 21L12 16C12 13 6.5 12.5 6.5 9L6.5 4M12 16C12 13 17.5 12.5 17.5 9L17.5 4",op:"stroke",w:2},{d:"M3.5 7L6.5 4L9.5 7M14.5 7L17.5 4L20.5 7",op:"stroke",w:2}]},"agent.handoff":{line:[{d:"M5 14L8.5 14C9.605 14 10.5 14.895 10.5 16L10.5 18.5C10.5 19.605 9.605 20.5 8.5 20.5L5 20.5C3.895 20.5 3 19.605 3 18.5L3 16C3 14.895 3.895 14 5 14Z",op:"stroke",w:1.5},{d:"M15.5 14L19 14C20.105 14 21 14.895 21 16L21 18.5C21 19.605 20.105 20.5 19 20.5L15.5 20.5C14.395 20.5 13.5 19.605 13.5 18.5L13.5 16C13.5 14.895 14.395 14 15.5 14Z",op:"stroke",w:1.5},{d:"M6.75 14C6.75 8 9.25 4.5 12.25 4.5C15.25 4.5 17.25 7 17.25 11.5M14.75 9L17.25 11.5L19.75 9",op:"stroke",w:1.5}],solid:[{d:"M5 13.25L8.5 13.25C10.019 13.25 11.25 14.481 11.25 16L11.25 18.5C11.25 20.019 10.019 21.25 8.5 21.25L5 21.25C3.481 21.25 2.25 20.019 2.25 18.5L2.25 16C2.25 14.481 3.481 13.25 5 13.25Z",op:"fill"},{d:"M15.5 14L19 14C20.105 14 21 14.895 21 16L21 18.5C21 19.605 20.105 20.5 19 20.5L15.5 20.5C14.395 20.5 13.5 19.605 13.5 18.5L13.5 16C13.5 14.895 14.395 14 15.5 14Z",op:"stroke",w:1.5},{d:"M6.75 14C6.75 8 9.25 4.5 12.25 4.5C15.25 4.5 17.25 7 17.25 11.5M14.75 9L17.25 11.5L19.75 9",op:"stroke",w:2}]},"agent.question":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M10 8.25C9.998 7.244 10.744 6.393 11.742 6.263C12.74 6.133 13.679 6.764 13.934 7.738C14.19 8.711 13.683 9.723 12.75 10.1C12.3 10.3 12 10.7 12 11.2L12 11.5",op:"stroke",w:1.5},{d:"M12.95 13.75C12.95 14.275 12.525 14.7 12 14.7C11.475 14.7 11.05 14.275 11.05 13.75C11.05 13.225 11.475 12.8 12 12.8C12.525 12.8 12.95 13.225 12.95 13.75Z",op:"fill"}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M10 8.25C9.998 7.244 10.744 6.393 11.742 6.263C12.74 6.133 13.679 6.764 13.934 7.738C14.19 8.711 13.683 9.723 12.75 10.1C12.3 10.3 12 10.7 12 11.2L12 11.5",op:"clearStroke",w:1.75},{d:"M13.05 13.75C13.05 14.33 12.58 14.8 12 14.8C11.42 14.8 10.95 14.33 10.95 13.75C10.95 13.17 11.42 12.7 12 12.7C12.58 12.7 13.05 13.17 13.05 13.75Z",op:"clearFill"}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M10 8.25C9.998 7.244 10.744 6.393 11.742 6.263C12.74 6.133 13.679 6.764 13.934 7.738C14.19 8.711 13.683 9.723 12.75 10.1C12.3 10.3 12 10.7 12 11.2L12 11.5",op:"stroke",w:1.5},{d:"M12.95 13.75C12.95 14.275 12.525 14.7 12 14.7C11.475 14.7 11.05 14.275 11.05 13.75C11.05 13.225 11.475 12.8 12 12.8C12.525 12.8 12.95 13.225 12.95 13.75Z",op:"fill"},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"agent.session":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M7.5 8.5L16.5 8.5M7.5 12L12.5 12",op:"stroke",w:1.5}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M7.5 8.5L16.5 8.5M7.5 12L12.5 12",op:"clearStroke",w:1.75}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M7.5 8.5L16.5 8.5M7.5 12L12.5 12",op:"stroke",w:1.5},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"app.cmux":{line:[{d:"M5.25 6.808L10.442 12L5.25 17.192M12.519 17.192L18.75 17.192",op:"stroke",w:1.5}],solid:[{d:"M5.25 6.808L10.442 12L5.25 17.192M12.519 17.192L18.75 17.192",op:"stroke",w:2}]},"app.dev":{line:[{d:"M9.5 3.5L14.5 3.5M10.25 3.5L10.25 8.75L4.9 17.6C4.594 18.206 4.616 18.927 4.96 19.513C5.303 20.099 5.921 20.471 6.6 20.5L17.4 20.5C18.079 20.471 18.697 20.099 19.04 19.513C19.384 18.927 19.406 18.206 19.1 17.6L13.75 8.75L13.75 3.5",op:"stroke",w:1.5},{d:"M7.25 14L16.75 14",op:"stroke",w:1.5}],solid:[{d:"M9.5 3.5L14.5 3.5M10.25 3.5L10.25 8.75L4.9 17.6C4.594 18.206 4.616 18.927 4.96 19.513C5.303 20.099 5.921 20.471 6.6 20.5L17.4 20.5C18.079 20.471 18.697 20.099 19.04 19.513C19.384 18.927 19.406 18.206 19.1 17.6L13.75 8.75L13.75 3.5Z",op:"fill"},{d:"M9.5 3.5L14.5 3.5M10.25 3.5L10.25 8.75L4.9 17.6C4.594 18.206 4.616 18.927 4.96 19.513C5.303 20.099 5.921 20.471 6.6 20.5L17.4 20.5C18.079 20.471 18.697 20.099 19.04 19.513C19.384 18.927 19.406 18.206 19.1 17.6L13.75 8.75L13.75 3.5Z",op:"stroke",w:1.5},{d:"M7.75 14L16.25 14",op:"clearStroke",w:1.75}]},"app.generic":{line:[{d:"M8.773 4.163L15.227 4.163C17.773 4.163 19.837 6.227 19.837 8.773L19.837 15.227C19.837 17.773 17.773 19.837 15.227 19.837L8.773 19.837C6.227 19.837 4.163 17.773 4.163 15.227L4.163 8.773C4.163 6.227 6.227 4.163 8.773 4.163Z",op:"stroke",w:1.5}],solid:[{d:"M8.773 4.163L15.227 4.163C17.773 4.163 19.837 6.227 19.837 8.773L19.837 15.227C19.837 17.773 17.773 19.837 15.227 19.837L8.773 19.837C6.227 19.837 4.163 17.773 4.163 15.227L4.163 8.773C4.163 6.227 6.227 4.163 8.773 4.163Z",op:"fill"},{d:"M8.773 4.163L15.227 4.163C17.773 4.163 19.837 6.227 19.837 8.773L19.837 15.227C19.837 17.773 17.773 19.837 15.227 19.837L8.773 19.837C6.227 19.837 4.163 17.773 4.163 15.227L4.163 8.773C4.163 6.227 6.227 4.163 8.773 4.163Z",op:"stroke",w:1.5}]},"app.open.external":{line:[{d:"M10.626 4.214L8.794 4.214C6.265 4.214 4.214 6.265 4.214 8.794L4.214 15.206C4.214 17.735 6.265 19.786 8.794 19.786L15.206 19.786C17.735 19.786 19.786 17.735 19.786 15.206L19.786 13.374",op:"stroke",w:1.5},{d:"M11.542 12.458L19.786 4.214M14.29 4.214L19.786 4.214L19.786 9.71",op:"stroke",w:1.5}],solid:[{d:"M10.626 4.214L8.794 4.214C6.265 4.214 4.214 6.265 4.214 8.794L4.214 15.206C4.214 17.735 6.265 19.786 8.794 19.786L15.206 19.786C17.735 19.786 19.786 17.735 19.786 15.206L19.786 13.374L10.626 4.214Z",op:"fill"},{d:"M10.626 4.214L8.794 4.214C6.265 4.214 4.214 6.265 4.214 8.794L4.214 15.206C4.214 17.735 6.265 19.786 8.794 19.786L15.206 19.786C17.735 19.786 19.786 17.735 19.786 15.206L19.786 13.374L10.626 4.214Z",op:"stroke",w:1.5},{d:"M11.542 12.458L19.786 4.214",op:"clearFill"},{d:"M11.542 12.458L19.786 4.214",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M11.542 12.458L19.786 4.214M14.29 4.214L19.786 4.214L19.786 9.71",op:"stroke",w:2}]},"app.permissions":{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M8.75 12L11 14.25L15.25 9.75",op:"stroke",w:1.5}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M8.75 12L11 14.25L15.25 9.75",op:"clearStroke",w:1.75}]},"app.placeholder":{line:[{d:"M8.749 4.104L15.252 4.104C17.817 4.104 19.897 6.184 19.897 8.749L19.897 15.252C19.897 17.817 17.817 19.897 15.252 19.897L8.749 19.897C6.184 19.897 4.104 17.817 4.104 15.252L4.104 8.749C4.104 6.184 6.184 4.104 8.749 4.104Z",op:"stroke",w:1.5,dash:[3.45,3.45],dashPhase:-1.725}],solid:[{d:"M8.749 4.104L15.252 4.104C17.817 4.104 19.897 6.184 19.897 8.749L19.897 15.252C19.897 17.817 17.817 19.897 15.252 19.897L8.749 19.897C6.184 19.897 4.104 17.817 4.104 15.252L4.104 8.749C4.104 6.184 6.184 4.104 8.749 4.104Z",op:"stroke",w:2,dash:[3.45,3.45],dashPhase:-1.725}]},"app.sample.githubprs":{line:[{d:"M9.25 6C9.25 7.243 8.243 8.25 7 8.25C5.757 8.25 4.75 7.243 4.75 6C4.75 4.757 5.757 3.75 7 3.75C8.243 3.75 9.25 4.757 9.25 6Z",op:"stroke",w:1.5},{d:"M9.25 18C9.25 19.243 8.243 20.25 7 20.25C5.757 20.25 4.75 19.243 4.75 18C4.75 16.757 5.757 15.75 7 15.75C8.243 15.75 9.25 16.757 9.25 18Z",op:"stroke",w:1.5},{d:"M19.25 18C19.25 19.243 18.243 20.25 17 20.25C15.757 20.25 14.75 19.243 14.75 18C14.75 16.757 15.757 15.75 17 15.75C18.243 15.75 19.25 16.757 19.25 18Z",op:"stroke",w:1.5},{d:"M7 8.25L7 15.75M17 15.75L17 10C17 8.343 15.657 7 14 7L10.75 7M12.75 5L10.75 7L12.75 9",op:"stroke",w:1.5}],solid:[{d:"M9.25 6C9.25 7.243 8.243 8.25 7 8.25C5.757 8.25 4.75 7.243 4.75 6C4.75 4.757 5.757 3.75 7 3.75C8.243 3.75 9.25 4.757 9.25 6Z",op:"fill"},{d:"M9.25 6C9.25 7.243 8.243 8.25 7 8.25C5.757 8.25 4.75 7.243 4.75 6C4.75 4.757 5.757 3.75 7 3.75C8.243 3.75 9.25 4.757 9.25 6Z",op:"stroke",w:2},{d:"M9.25 18C9.25 19.243 8.243 20.25 7 20.25C5.757 20.25 4.75 19.243 4.75 18C4.75 16.757 5.757 15.75 7 15.75C8.243 15.75 9.25 16.757 9.25 18Z",op:"fill"},{d:"M9.25 18C9.25 19.243 8.243 20.25 7 20.25C5.757 20.25 4.75 19.243 4.75 18C4.75 16.757 5.757 15.75 7 15.75C8.243 15.75 9.25 16.757 9.25 18Z",op:"stroke",w:2},{d:"M19.25 18C19.25 19.243 18.243 20.25 17 20.25C15.757 20.25 14.75 19.243 14.75 18C14.75 16.757 15.757 15.75 17 15.75C18.243 15.75 19.25 16.757 19.25 18Z",op:"fill"},{d:"M19.25 18C19.25 19.243 18.243 20.25 17 20.25C15.757 20.25 14.75 19.243 14.75 18C14.75 16.757 15.757 15.75 17 15.75C18.243 15.75 19.25 16.757 19.25 18Z",op:"stroke",w:2},{d:"M7 8.25L7 15.75M17 15.75L17 10C17 8.343 15.657 7 14 7L10.75 7M12.75 5L10.75 7L12.75 9",op:"stroke",w:2}]},"app.sample.runningagents":{line:[{d:"M12 4.5C16.142 4.5 19.5 7.858 19.5 12C19.5 16.142 16.142 19.5 12 19.5C7.858 19.5 4.5 16.142 4.5 12",op:"stroke",w:1.5},{d:"M13.75 12C13.75 12.966 12.966 13.75 12 13.75C11.034 13.75 10.25 12.966 10.25 12C10.25 11.034 11.034 10.25 12 10.25C12.966 10.25 13.75 11.034 13.75 12Z",op:"fill"}],solid:[{d:"M12 4.5C16.142 4.5 19.5 7.858 19.5 12C19.5 16.142 16.142 19.5 12 19.5C7.858 19.5 4.5 16.142 4.5 12",op:"stroke",w:2},{d:"M13.75 12C13.75 12.966 12.966 13.75 12 13.75C11.034 13.75 10.25 12.966 10.25 12C10.25 11.034 11.034 10.25 12 10.25C12.966 10.25 13.75 11.034 13.75 12Z",op:"fill"}]},"apps.stack":{line:[{d:"M7 7.5L13 7.5C14.933 7.5 16.5 9.067 16.5 11L16.5 17C16.5 18.933 14.933 20.5 13 20.5L7 20.5C5.067 20.5 3.5 18.933 3.5 17L3.5 11C3.5 9.067 5.067 7.5 7 7.5Z",op:"stroke",w:1.5},{d:"M7.5 4.5L16.5 4.5C18.433 4.5 20 6.067 20 8L20 17",op:"stroke",w:1.5}],solid:[{d:"M7 7.5L13 7.5C14.933 7.5 16.5 9.067 16.5 11L16.5 17C16.5 18.933 14.933 20.5 13 20.5L7 20.5C5.067 20.5 3.5 18.933 3.5 17L3.5 11C3.5 9.067 5.067 7.5 7 7.5Z",op:"fill"},{d:"M7 7.5L13 7.5C14.933 7.5 16.5 9.067 16.5 11L16.5 17C16.5 18.933 14.933 20.5 13 20.5L7 20.5C5.067 20.5 3.5 18.933 3.5 17L3.5 11C3.5 9.067 5.067 7.5 7 7.5Z",op:"stroke",w:1.5},{d:"M7.5 4.5L16.5 4.5C18.433 4.5 20 6.067 20 8L20 17",op:"stroke",w:2}]},automation:{line:[{d:"M19.18 16C17.37 19.136 13.679 20.665 10.181 19.727C6.684 18.79 4.252 15.621 4.252 12C4.252 8.379 6.684 5.21 10.181 4.273C13.679 3.335 17.37 4.864 19.18 8",op:"stroke",w:1.5},{d:"M19.85 4.82L19.18 8L16.09 7",op:"stroke",w:1.5},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"stroke",w:1.5}],solid:[{d:"M19.18 16C17.37 19.136 13.679 20.665 10.181 19.727C6.684 18.79 4.252 15.621 4.252 12C4.252 8.379 6.684 5.21 10.181 4.273C13.679 3.335 17.37 4.864 19.18 8",op:"stroke",w:2},{d:"M19.85 4.82L19.18 8L16.09 7",op:"stroke",w:2},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"fill"},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"stroke",w:2}],cat:[{d:"M19.18 16C17.37 19.136 13.679 20.665 10.181 19.727C6.684 18.79 4.252 15.621 4.252 12C4.252 8.379 6.684 5.21 10.181 4.273C13.679 3.335 17.37 4.864 19.18 8",op:"stroke",w:1.5},{d:"M19.85 4.82L19.18 8L16.09 7",op:"stroke",w:1.5},{d:"M10.75 9.25L10.75 14.75L15 12Z",op:"stroke",w:1.5},{d:"M19.18 16C19.53 17.9 21.08 19 22.28 18.2C23.08 17.65 22.83 16.6 21.93 16.45",op:"stroke",w:1.5,accent:!0}]},bookmark:{line:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}],solid:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"fill"},{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}]},"bookmark.active":{line:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"fill"},{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}],solid:[{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"fill"},{d:"M12 3.15L14.59 8.84L20.8 9.54L16.18 13.76L17.44 19.88L12 16.8L6.56 19.88L7.82 13.76L3.2 9.54L9.41 8.84Z",op:"stroke",w:1.5}]},"bookmark.manager":{line:[{d:"M5.455 18.078L5.455 5.922C5.456 4.632 6.502 3.586 7.792 3.585L18.545 3.585L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"stroke",w:1.5},{d:"M18.545 15.74L7.792 15.74C6.501 15.741 5.455 16.787 5.455 18.078",op:"stroke",w:1.5},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"fill"},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"stroke",w:1.5}],solid:[{d:"M5.455 18.078L5.455 5.922C5.456 4.632 6.502 3.586 7.792 3.585L18.545 3.585L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"fill"},{d:"M5.455 18.078L5.455 5.922C5.456 4.632 6.502 3.586 7.792 3.585L18.545 3.585L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"stroke",w:1.5},{d:"M18.545 15.74L7.792 15.74C6.501 15.741 5.455 16.787 5.455 18.078",op:"clearStroke",w:1.75},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"clearFill"},{d:"M10.13 3.585L10.13 9.663L12 8.354L13.87 9.663L13.87 3.585Z",op:"clearStroke",w:1.75,cap:"butt"}],cat:[{d:"M5.455 18.078L5.455 7.792C5.456 6.502 6.502 5.456 7.792 5.455L18.545 5.455L18.545 20.415L7.792 20.415C6.502 20.414 5.456 19.368 5.455 18.078Z",op:"stroke",w:1.5},{d:"M18.545 15.74L7.792 15.74C6.501 15.741 5.455 16.787 5.455 18.078",op:"stroke",w:1.5},{d:"M8.727 5.455L8.727 3.117L10.597 4.987M16.675 5.455L16.675 3.117L14.805 4.987",op:"stroke",w:1.5,accent:!0}]},"bookmarks.bar":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"stroke",w:1.5},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"fill"},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"clearStroke",w:1.75},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"clearFill"},{d:"M7.244 9.282L7.244 14.718L9.056 13.45L10.868 14.718L10.868 9.282Z",op:"clearStroke",w:1.75,cap:"butt"}]},"bookmarks.other":{line:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"fill"},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"fill"},{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"clearFill"},{d:"M10 10.5L10 16.5L12 15.1L14 16.5L14 10.5Z",op:"clearStroke",w:1.75,cap:"butt"}]},"brand.arxiv":{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5},{d:"M8.5 11.5L15.5 11.5M8.5 14.5L15.5 14.5M8.5 17.5L12.5 17.5",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75},{d:"M8.5 11.5L15.5 11.5M8.5 14.5L15.5 14.5M8.5 17.5L12.5 17.5",op:"clearStroke",w:1.75}]},"brand.github":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M10 9L7 12L10 15M14 9L17 12L14 15",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M10 9L7 12L10 15M14 9L17 12L14 15",op:"clearStroke",w:1.75}]},browser:{line:[{d:"M20.415 12C20.415 16.647 16.647 20.415 12 20.415C7.353 20.415 3.585 16.647 3.585 12C3.585 7.353 7.353 3.585 12 3.585C16.647 3.585 20.415 7.353 20.415 12Z",op:"stroke",w:1.5},{d:"M15.506 12C15.506 16.647 13.936 20.415 12 20.415C10.064 20.415 8.494 16.647 8.494 12C8.494 7.353 10.064 3.585 12 3.585C13.936 3.585 15.506 7.353 15.506 12Z",op:"stroke",w:1.5},{d:"M3.585 12L20.415 12",op:"stroke",w:1.5}],solid:[{d:"M21.116 12C21.116 17.035 17.035 21.116 12 21.116C6.965 21.116 2.884 17.035 2.884 12C2.884 6.965 6.965 2.884 12 2.884C17.035 2.884 21.116 6.965 21.116 12Z",op:"fill"},{d:"M15.506 12C15.506 16.906 13.936 20.883 12 20.883C10.064 20.883 8.494 16.906 8.494 12C8.494 7.094 10.064 3.117 12 3.117C13.936 3.117 15.506 7.094 15.506 12Z",op:"clearStroke",w:1.75},{d:"M2.65 12L21.35 12",op:"clearStroke",w:1.75}]},"browser.incognito":{line:[{d:"M6.5 10.5L8.1 5.4C8.185 5.13 8.38 4.908 8.637 4.79C8.894 4.671 9.19 4.668 9.45 4.78L12 5.75L14.55 4.78C14.81 4.668 15.106 4.671 15.363 4.79C15.62 4.908 15.815 5.13 15.9 5.4L17.5 10.5Z",op:"stroke",w:1.5},{d:"M3 10.5L21 10.5",op:"stroke",w:1.5},{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"stroke",w:1.5},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"stroke",w:1.5},{d:"M10.5 16.25C11.5 15.5 12.5 15.5 13.5 16.25",op:"stroke",w:1.5}],solid:[{d:"M6.5 10.5L8.1 5.4C8.185 5.13 8.38 4.908 8.637 4.79C8.894 4.671 9.19 4.668 9.45 4.78L12 5.75L14.55 4.78C14.81 4.668 15.106 4.671 15.363 4.79C15.62 4.908 15.815 5.13 15.9 5.4L17.5 10.5Z",op:"fill"},{d:"M6.5 10.5L8.1 5.4C8.185 5.13 8.38 4.908 8.637 4.79C8.894 4.671 9.19 4.668 9.45 4.78L12 5.75L14.55 4.78C14.81 4.668 15.106 4.671 15.363 4.79C15.62 4.908 15.815 5.13 15.9 5.4L17.5 10.5Z",op:"stroke",w:1.5},{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"fill"},{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"stroke",w:1.5},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"fill"},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"stroke",w:1.5},{d:"M3 10.5L21 10.5",op:"stroke",w:2},{d:"M10.5 16.25C11.5 15.5 12.5 15.5 13.5 16.25",op:"stroke",w:2}],cat:[{d:"M10.5 16.25C10.5 17.907 9.157 19.25 7.5 19.25C5.843 19.25 4.5 17.907 4.5 16.25C4.5 14.593 5.843 13.25 7.5 13.25C9.157 13.25 10.5 14.593 10.5 16.25Z",op:"stroke",w:1.5},{d:"M19.5 16.25C19.5 17.907 18.157 19.25 16.5 19.25C14.843 19.25 13.5 17.907 13.5 16.25C13.5 14.593 14.843 13.25 16.5 13.25C18.157 13.25 19.5 14.593 19.5 16.25Z",op:"stroke",w:1.5},{d:"M10.5 16.25C11.5 15.5 12.5 15.5 13.5 16.25",op:"stroke",w:1.5},{d:"M4 11.5L4 5.5L8 9L16 9L20 5.5L20 11.5",op:"stroke",w:1.5,accent:!0}]},"browser.new":{line:[{d:"M20.361 12C20.361 16.618 16.618 20.361 12 20.361C7.382 20.361 3.639 16.618 3.639 12C3.639 7.382 7.382 3.639 12 3.639C16.618 3.639 20.361 7.382 20.361 12Z",op:"stroke",w:1.5},{d:"M15.484 12C15.484 16.618 13.924 20.361 12 20.361C10.076 20.361 8.516 16.618 8.516 12C8.516 7.382 10.076 3.639 12 3.639C13.924 3.639 15.484 7.382 15.484 12Z",op:"stroke",w:1.5},{d:"M3.639 12L20.361 12",op:"stroke",w:1.5},{d:"M21.987 17.574C21.987 20.011 20.011 21.987 17.574 21.987C15.137 21.987 13.161 20.011 13.161 17.574C13.161 15.137 15.137 13.161 17.574 13.161C20.011 13.161 21.987 15.137 21.987 17.574Z",op:"clearFill"},{d:"M17.574 15.252L17.574 19.897M15.252 17.574L19.897 17.574",op:"stroke",w:1.5}],solid:[{d:"M21.058 12C21.058 17.003 17.003 21.058 12 21.058C6.997 21.058 2.942 17.003 2.942 12C2.942 6.997 6.997 2.942 12 2.942C17.003 2.942 21.058 6.997 21.058 12Z",op:"fill"},{d:"M15.484 12C15.484 16.874 13.924 20.825 12 20.825C10.076 20.825 8.516 16.874 8.516 12C8.516 7.126 10.076 3.175 12 3.175C13.924 3.175 15.484 7.126 15.484 12Z",op:"clearStroke",w:1.75},{d:"M2.71 12L21.29 12",op:"clearStroke",w:1.75},{d:"M22.219 17.574C22.219 20.139 20.139 22.219 17.574 22.219C15.009 22.219 12.929 20.139 12.929 17.574C12.929 15.009 15.009 12.929 17.574 12.929C20.139 12.929 22.219 15.009 22.219 17.574Z",op:"clearFill"},{d:"M17.574 15.252L17.574 19.897M15.252 17.574L19.897 17.574",op:"stroke",w:2,join:"miter"}]},"browser.stop":{line:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:2}]},"browserprofile.badge":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5}],solid:[{d:"M21.25 12C21.25 17.109 17.109 21.25 12 21.25C6.891 21.25 2.75 17.109 2.75 12C2.75 6.891 6.891 2.75 12 2.75C17.109 2.75 21.25 6.891 21.25 12Z",op:"fill"}]},"browserprofile.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},cloud:{line:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5}],solid:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"fill"},{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5}],cat:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5},{d:"M8.5 7.5L8.5 4.5L10.5 6M15.75 7.5L15.75 4.5L13.75 6",op:"stroke",w:1.5,accent:!0}]},"cloud.synced":{line:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5},{d:"M9.5 13.5L11.25 15.25L14.75 11.5",op:"stroke",w:1.5}],solid:[{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"fill"},{d:"M7 18.5L17 18.5C19.081 18.485 20.802 16.876 20.959 14.801C21.115 12.726 19.655 10.878 17.6 10.55C17.319 7.971 15.275 5.939 12.695 5.674C10.114 5.409 7.699 6.982 6.9 9.45C4.401 9.478 2.397 11.526 2.425 14.025C2.453 16.524 4.501 18.528 7 18.5Z",op:"stroke",w:1.5},{d:"M9.5 13.5L11.25 15.25L14.75 11.5",op:"clearStroke",w:1.75}]},"cloud.workspace":{line:[{d:"M6.175 4.837L17.875 4.837C19.118 4.837 20.125 5.844 20.125 7.087L20.125 16.987C20.125 18.23 19.118 19.237 17.875 19.237L6.175 19.237C4.932 19.237 3.925 18.23 3.925 16.987L3.925 7.087C3.925 5.844 4.932 4.837 6.175 4.837Z",op:"stroke",w:1.5},{d:"M9.325 4.837L9.325 19.237",op:"stroke",w:1.5},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearFill"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearStroke",w:4.5},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"stroke",w:1.5}],solid:[{d:"M6.175 4.837L17.875 4.837C19.118 4.837 20.125 5.844 20.125 7.087L20.125 16.987C20.125 18.23 19.118 19.237 17.875 19.237L6.175 19.237C4.932 19.237 3.925 18.23 3.925 16.987L3.925 7.087C3.925 5.844 4.932 4.837 6.175 4.837Z",op:"fill"},{d:"M6.175 4.837L17.875 4.837C19.118 4.837 20.125 5.844 20.125 7.087L20.125 16.987C20.125 18.23 19.118 19.237 17.875 19.237L6.175 19.237C4.932 19.237 3.925 18.23 3.925 16.987L3.925 7.087C3.925 5.844 4.932 4.837 6.175 4.837Z",op:"stroke",w:1.5},{d:"M9.325 4.837L9.325 19.237",op:"clearFill"},{d:"M9.325 4.837L9.325 19.237",op:"clearStroke",w:1.75,cap:"butt",join:"miter"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearFill"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"clearStroke",w:5,cap:"butt",join:"miter"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"fill"},{d:"M14.275 19.913L18.775 19.913C19.676 19.925 20.432 19.237 20.503 18.338C20.575 17.44 19.937 16.641 19.045 16.511C18.912 15.423 18.043 14.573 16.953 14.466C15.862 14.358 14.843 15.021 14.5 16.061C13.489 16.08 12.663 16.874 12.604 17.883C12.545 18.892 13.273 19.777 14.275 19.913Z",op:"stroke",w:1.5}]},code:{line:[{d:"M8 7L3 12L8 17M16 7L21 12L16 17M13.5 5L10.5 19",op:"stroke",w:1.5}],solid:[{d:"M8 7L3 12L8 17M16 7L21 12L16 17M13.5 5L10.5 19",op:"stroke",w:2}]},"color.clear":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M6 6L18 18",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M5 5L19 19",op:"clearStroke",w:1.75}]},"color.swatch":{line:[{d:"M19.48 12C19.48 16.131 16.131 19.48 12 19.48C7.869 19.48 4.52 16.131 4.52 12C4.52 7.869 7.869 4.52 12 4.52C16.131 4.52 19.48 7.869 19.48 12Z",op:"fill"}],solid:[{d:"M17.376 12C17.376 14.969 14.969 17.376 12 17.376C9.031 17.376 6.624 14.969 6.624 12C6.624 9.031 9.031 6.624 12 6.624C14.969 6.624 17.376 9.031 17.376 12Z",op:"fill"},{d:"M20.181 12C20.181 16.518 16.518 20.181 12 20.181C7.482 20.181 3.819 16.518 3.819 12C3.819 7.482 7.482 3.819 12 3.819C16.518 3.819 20.181 7.482 20.181 12Z",op:"stroke",w:1.5}]},column:{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 4.752L9.282 19.248M14.718 4.752L14.718 19.248",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 4.752L9.282 19.248M14.718 4.752L14.718 19.248",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M9.282 5.658L9.282 19.248M14.718 5.658L14.718 19.248",op:"stroke",w:1.5},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"composer.add":{line:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:1.5}],solid:[{d:"M12 5L12 19M5 12L19 12",op:"stroke",w:2}]},"composer.attach":{line:[{d:"M19.5 12L12.6 18.9C10.786 20.573 7.975 20.515 6.23 18.77C4.485 17.025 4.427 14.214 6.1 12.4L13.5 5C14.715 3.785 16.685 3.785 17.9 5C19.115 6.215 19.115 8.185 17.9 9.4L10.8 16.5C10.192 17.108 9.208 17.108 8.6 16.5C7.992 15.892 7.992 14.908 8.6 14.3L15.25 7.75",op:"stroke",w:1.5}],solid:[{d:"M19.5 12L12.6 18.9C10.786 20.573 7.975 20.515 6.23 18.77C4.485 17.025 4.427 14.214 6.1 12.4L13.5 5C14.715 3.785 16.685 3.785 17.9 5C19.115 6.215 19.115 8.185 17.9 9.4L10.8 16.5C10.192 17.108 9.208 17.108 8.6 16.5C7.992 15.892 7.992 14.908 8.6 14.3L15.25 7.75",op:"stroke",w:2}]},"composer.command":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M14.039 7.923L9.962 16.077",op:"stroke",w:1.5}],solid:[{d:"M6.565 3.62L17.436 3.62C19.062 3.62 20.381 4.939 20.381 6.565L20.381 17.436C20.381 19.062 19.062 20.381 17.436 20.381L6.565 20.381C4.939 20.381 3.62 19.062 3.62 17.436L3.62 6.565C3.62 4.939 4.939 3.62 6.565 3.62Z",op:"fill"},{d:"M14.039 7.923L9.962 16.077",op:"clearStroke",w:1.75}]},"composer.mention":{line:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:1.5},{d:"M15.5 12L15.5 13.25C15.5 14.631 16.619 15.75 18 15.75C19.381 15.75 20.5 14.631 20.5 13.25L20.5 12C20.506 8.051 17.791 4.618 13.947 3.714C10.102 2.809 6.142 4.672 4.386 8.209C2.631 11.746 3.542 16.027 6.587 18.542C9.632 21.056 14.008 21.143 17.15 18.75",op:"stroke",w:1.5}],solid:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:2},{d:"M15.5 12L15.5 13.25C15.5 14.631 16.619 15.75 18 15.75C19.381 15.75 20.5 14.631 20.5 13.25L20.5 12C20.506 8.051 17.791 4.618 13.947 3.714C10.102 2.809 6.142 4.672 4.386 8.209C2.631 11.746 3.542 16.027 6.587 18.542C9.632 21.056 14.008 21.143 17.15 18.75",op:"stroke",w:2}]},"composer.send":{line:[{d:"M12 19.5L12 4.5M6 10.5L12 4.5L18 10.5",op:"stroke",w:1.5}],solid:[{d:"M12 19.5L12 4.5M6 10.5L12 4.5L18 10.5",op:"stroke",w:2}]},"computeruse.click":{line:[{d:"M10 4.5L10 6.5M4.5 10L6.5 10M6.25 6.25L7.65 7.65M13.75 6.25L12.35 7.65",op:"stroke",w:1.5},{d:"M10 10L19.5 13.75L15.5 15.25L14 19.25Z",op:"stroke",w:1.5}],solid:[{d:"M10 4.5L10 6.5M4.5 10L6.5 10M6.25 6.25L7.65 7.65M13.75 6.25L12.35 7.65",op:"stroke",w:2},{d:"M10 10L19.5 13.75L15.5 15.25L14 19.25Z",op:"fill"},{d:"M10 10L19.5 13.75L15.5 15.25L14 19.25Z",op:"stroke",w:1.5}]},"computeruse.drag":{line:[{d:"M5.25 4C5.25 4.69 4.69 5.25 4 5.25C3.31 5.25 2.75 4.69 2.75 4C2.75 3.31 3.31 2.75 4 2.75C4.69 2.75 5.25 3.31 5.25 4Z",op:"fill"},{d:"M8.8 7.2C8.8 8.084 8.084 8.8 7.2 8.8C6.316 8.8 5.6 8.084 5.6 7.2C5.6 6.316 6.316 5.6 7.2 5.6C8.084 5.6 8.8 6.316 8.8 7.2Z",op:"fill"},{d:"M12.35 10.4C12.35 11.477 11.477 12.35 10.4 12.35C9.323 12.35 8.45 11.477 8.45 10.4C8.45 9.323 9.323 8.45 10.4 8.45C11.477 8.45 12.35 9.323 12.35 10.4Z",op:"fill"},{d:"M13.75 13.75L20.75 16.35L17.65 17.6L16.4 20.7Z",op:"stroke",w:1.5}],solid:[{d:"M5.25 4C5.25 4.69 4.69 5.25 4 5.25C3.31 5.25 2.75 4.69 2.75 4C2.75 3.31 3.31 2.75 4 2.75C4.69 2.75 5.25 3.31 5.25 4Z",op:"fill"},{d:"M8.8 7.2C8.8 8.084 8.084 8.8 7.2 8.8C6.316 8.8 5.6 8.084 5.6 7.2C5.6 6.316 6.316 5.6 7.2 5.6C8.084 5.6 8.8 6.316 8.8 7.2Z",op:"fill"},{d:"M12.35 10.4C12.35 11.477 11.477 12.35 10.4 12.35C9.323 12.35 8.45 11.477 8.45 10.4C8.45 9.323 9.323 8.45 10.4 8.45C11.477 8.45 12.35 9.323 12.35 10.4Z",op:"fill"},{d:"M13.75 13.75L20.75 16.35L17.65 17.6L16.4 20.7Z",op:"fill"},{d:"M13.75 13.75L20.75 16.35L17.65 17.6L16.4 20.7Z",op:"stroke",w:2}]},"computeruse.observe":{line:[{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"stroke",w:1.5},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:1.5}],solid:[{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"fill"},{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"stroke",w:1.5,cap:"butt"},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"clearStroke",w:1.75}],cat:[{d:"M2.5 12C2.5 12 6 5.5 12 5.5C18 5.5 21.5 12 21.5 12C21.5 12 18 18.5 12 18.5C6 18.5 2.5 12 2.5 12Z",op:"stroke",w:1.5},{d:"M12 8.5C10.75 9.5 10.75 14.5 12 15.5C13.25 14.5 13.25 9.5 12 8.5Z",op:"stroke",w:1.5,accent:!0}]},"config.json":{line:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:1.5}],solid:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:2}]},"context.usage":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 12L12 6.75C14.477 6.753 16.616 8.487 17.13 10.91C17.644 13.334 16.394 15.787 14.131 16.795C11.868 17.804 9.208 17.093 7.75 15.09Z",op:"fill"}],solid:[{d:"M21.25 12C21.25 17.109 17.109 21.25 12 21.25C6.891 21.25 2.75 17.109 2.75 12C2.75 6.891 6.891 2.75 12 2.75C17.109 2.75 21.25 6.891 21.25 12Z",op:"fill"},{d:"M18.75 12C18.75 15.728 15.728 18.75 12 18.75C8.272 18.75 5.25 15.728 5.25 12C5.25 8.272 8.272 5.25 12 5.25C15.728 5.25 18.75 8.272 18.75 12Z",op:"clearStroke",w:1.5},{d:"M12 12L7.065 15.585C5.713 13.73 5.517 11.271 6.559 9.225C7.601 7.179 9.704 5.891 12.001 5.893Z",op:"clearFill"}]},"control.popup":{line:[{d:"M8.062 9.188L12 5.25L15.938 9.188M8.062 14.812L12 18.75L15.938 14.812",op:"stroke",w:1.5}],solid:[{d:"M8.062 9.188L12 5.25L15.938 9.188M8.062 14.812L12 18.75L15.938 14.812",op:"stroke",w:2}]},"credential.consent":{line:[{d:"M11.75 16C11.75 18.071 10.071 19.75 8 19.75C5.929 19.75 4.25 18.071 4.25 16C4.25 13.929 5.929 12.25 8 12.25C10.071 12.25 11.75 13.929 11.75 16Z",op:"stroke",w:1.5},{d:"M10.75 13.25L19.5 4.5M16.5 7.5L18.75 9.75M14.25 9.75L16 11.5",op:"stroke",w:1.5}],solid:[{d:"M12.5 16C12.5 18.485 10.485 20.5 8 20.5C5.515 20.5 3.5 18.485 3.5 16C3.5 13.515 5.515 11.5 8 11.5C10.485 11.5 12.5 13.515 12.5 16Z",op:"fill"},{d:"M9.25 16C9.25 16.69 8.69 17.25 8 17.25C7.31 17.25 6.75 16.69 6.75 16C6.75 15.31 7.31 14.75 8 14.75C8.69 14.75 9.25 15.31 9.25 16Z",op:"clearFill"},{d:"M10.75 13.25L19.5 4.5M16.5 7.5L18.75 9.75M14.25 9.75L16 11.5",op:"stroke",w:2,join:"miter"}]},"data.storage":{line:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"stroke",w:1.5},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"stroke",w:1.5}],solid:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"fill"},{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"clearStroke",w:1.75},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"clearStroke",w:1.75}]},database:{line:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"stroke",w:1.5},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"stroke",w:1.5}],solid:[{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"fill"},{d:"M4.5 6.5C4.5 4.98 7.86 3.75 12 3.75C16.14 3.75 19.5 4.98 19.5 6.5L19.5 17.5C19.5 19.02 16.14 20.25 12 20.25C7.86 20.25 4.5 19.02 4.5 17.5Z",op:"stroke",w:1.5},{d:"M4.5 6.5C4.5 8.02 7.86 9.25 12 9.25C16.14 9.25 19.5 8.02 19.5 6.5",op:"clearStroke",w:1.75},{d:"M4.5 12C4.5 13.52 7.86 14.75 12 14.75C16.14 14.75 19.5 13.52 19.5 12",op:"clearStroke",w:1.75}]},"device.paired":{line:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"stroke",w:1.5},{d:"M21.25 18C21.25 20.623 19.123 22.75 16.5 22.75C13.877 22.75 11.75 20.623 11.75 18C11.75 15.377 13.877 13.25 16.5 13.25C19.123 13.25 21.25 15.377 21.25 18Z",op:"clearFill"},{d:"M14 18.25L15.75 20L19 16.5",op:"stroke",w:1.5}],solid:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"fill"},{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"clearStroke",w:1.75},{d:"M21.5 18C21.5 20.761 19.261 23 16.5 23C13.739 23 11.5 20.761 11.5 18C11.5 15.239 13.739 13 16.5 13C19.261 13 21.5 15.239 21.5 18Z",op:"clearFill"},{d:"M14 18.25L15.75 20L19 16.5",op:"stroke",w:2}]},"device.pairing":{line:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"stroke",w:1.5},{d:"M21.25 18C21.25 20.623 19.123 22.75 16.5 22.75C13.877 22.75 11.75 20.623 11.75 18C11.75 15.377 13.877 13.25 16.5 13.25C19.123 13.25 21.25 15.377 21.25 18Z",op:"clearFill"},{d:"M16.5 15.25C18.019 15.25 19.25 16.481 19.25 18C19.25 19.519 18.019 20.75 16.5 20.75C14.981 20.75 13.75 19.519 13.75 18",op:"stroke",w:1.5}],solid:[{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"fill"},{d:"M7.75 2.75L13.25 2.75C14.769 2.75 16 3.981 16 5.5L16 18.5C16 20.019 14.769 21.25 13.25 21.25L7.75 21.25C6.231 21.25 5 20.019 5 18.5L5 5.5C5 3.981 6.231 2.75 7.75 2.75Z",op:"stroke",w:1.5},{d:"M9.25 5.5L11.75 5.5",op:"clearStroke",w:1.75},{d:"M21.5 18C21.5 20.761 19.261 23 16.5 23C13.739 23 11.5 20.761 11.5 18C11.5 15.239 13.739 13 16.5 13C19.261 13 21.5 15.239 21.5 18Z",op:"clearFill"},{d:"M16.5 15.25C18.019 15.25 19.25 16.481 19.25 18C19.25 19.519 18.019 20.75 16.5 20.75C14.981 20.75 13.75 19.519 13.75 18",op:"stroke",w:2}]},"device.phone":{line:[{d:"M9.25 2.75L14.75 2.75C16.269 2.75 17.5 3.981 17.5 5.5L17.5 18.5C17.5 20.019 16.269 21.25 14.75 21.25L9.25 21.25C7.731 21.25 6.5 20.019 6.5 18.5L6.5 5.5C6.5 3.981 7.731 2.75 9.25 2.75Z",op:"stroke",w:1.5},{d:"M10.75 5.5L13.25 5.5",op:"stroke",w:1.5}],solid:[{d:"M9.25 2.75L14.75 2.75C16.269 2.75 17.5 3.981 17.5 5.5L17.5 18.5C17.5 20.019 16.269 21.25 14.75 21.25L9.25 21.25C7.731 21.25 6.5 20.019 6.5 18.5L6.5 5.5C6.5 3.981 7.731 2.75 9.25 2.75Z",op:"fill"},{d:"M9.25 2.75L14.75 2.75C16.269 2.75 17.5 3.981 17.5 5.5L17.5 18.5C17.5 20.019 16.269 21.25 14.75 21.25L9.25 21.25C7.731 21.25 6.5 20.019 6.5 18.5L6.5 5.5C6.5 3.981 7.731 2.75 9.25 2.75Z",op:"stroke",w:1.5},{d:"M10.75 5.5L13.25 5.5",op:"clearStroke",w:1.75}]},"devices.paired":{line:[{d:"M6.5 4.25L16.5 4.25C17.605 4.25 18.5 5.145 18.5 6.25L18.5 12.25C18.5 13.355 17.605 14.25 16.5 14.25L6.5 14.25C5.395 14.25 4.5 13.355 4.5 12.25L4.5 6.25C4.5 5.145 5.395 4.25 6.5 4.25Z",op:"stroke",w:1.5},{d:"M2.5 17.75L13.5 17.75",op:"stroke",w:1.5},{d:"M16.75 8L20 8C21.795 8 23.25 9.455 23.25 11.25L23.25 18.25C23.25 20.045 21.795 21.5 20 21.5L16.75 21.5C14.955 21.5 13.5 20.045 13.5 18.25L13.5 11.25C13.5 9.455 14.955 8 16.75 8Z",op:"clearFill"},{d:"M17 9.75L19.75 9.75C20.716 9.75 21.5 10.534 21.5 11.5L21.5 18C21.5 18.966 20.716 19.75 19.75 19.75L17 19.75C16.034 19.75 15.25 18.966 15.25 18L15.25 11.5C15.25 10.534 16.034 9.75 17 9.75Z",op:"stroke",w:1.5}],solid:[{d:"M6.5 4.25L16.5 4.25C17.605 4.25 18.5 5.145 18.5 6.25L18.5 12.25C18.5 13.355 17.605 14.25 16.5 14.25L6.5 14.25C5.395 14.25 4.5 13.355 4.5 12.25L4.5 6.25C4.5 5.145 5.395 4.25 6.5 4.25Z",op:"fill"},{d:"M6.5 4.25L16.5 4.25C17.605 4.25 18.5 5.145 18.5 6.25L18.5 12.25C18.5 13.355 17.605 14.25 16.5 14.25L6.5 14.25C5.395 14.25 4.5 13.355 4.5 12.25L4.5 6.25C4.5 5.145 5.395 4.25 6.5 4.25Z",op:"stroke",w:1.5},{d:"M16.75 8L20 8C21.795 8 23.25 9.455 23.25 11.25L23.25 18.25C23.25 20.045 21.795 21.5 20 21.5L16.75 21.5C14.955 21.5 13.5 20.045 13.5 18.25L13.5 11.25C13.5 9.455 14.955 8 16.75 8Z",op:"clearFill"},{d:"M17 9.75L19.75 9.75C20.716 9.75 21.5 10.534 21.5 11.5L21.5 18C21.5 18.966 20.716 19.75 19.75 19.75L17 19.75C16.034 19.75 15.25 18.966 15.25 18L15.25 11.5C15.25 10.534 16.034 9.75 17 9.75Z",op:"fill"},{d:"M17 9.75L19.75 9.75C20.716 9.75 21.5 10.534 21.5 11.5L21.5 18C21.5 18.966 20.716 19.75 19.75 19.75L17 19.75C16.034 19.75 15.25 18.966 15.25 18L15.25 11.5C15.25 10.534 16.034 9.75 17 9.75Z",op:"stroke",w:1.5},{d:"M2.5 17.75L13.5 17.75",op:"stroke",w:2}]},"diff.collapse.all":{line:[{d:"M4 12L20 12M8.5 4L12 7.5L15.5 4M8.5 20L12 16.5L15.5 20",op:"stroke",w:1.5}],solid:[{d:"M4 12L20 12M8.5 4L12 7.5L15.5 4M8.5 20L12 16.5L15.5 20",op:"stroke",w:2}]},"diff.file":{line:[{d:"M7.39 3.702L16.61 3.702C17.883 3.702 18.915 4.734 18.915 6.007L18.915 17.993C18.915 19.266 17.883 20.298 16.61 20.298L7.39 20.298C6.117 20.298 5.085 19.266 5.085 17.993L5.085 6.007C5.085 4.734 6.117 3.702 7.39 3.702Z",op:"stroke",w:1.5},{d:"M12 6.468L12 12M9.234 9.234L14.766 9.234M9.234 16.149L14.766 16.149",op:"stroke",w:1.5}],solid:[{d:"M7.39 3.702L16.61 3.702C17.883 3.702 18.915 4.734 18.915 6.007L18.915 17.993C18.915 19.266 17.883 20.298 16.61 20.298L7.39 20.298C6.117 20.298 5.085 19.266 5.085 17.993L5.085 6.007C5.085 4.734 6.117 3.702 7.39 3.702Z",op:"fill"},{d:"M7.39 3.702L16.61 3.702C17.883 3.702 18.915 4.734 18.915 6.007L18.915 17.993C18.915 19.266 17.883 20.298 16.61 20.298L7.39 20.298C6.117 20.298 5.085 19.266 5.085 17.993L5.085 6.007C5.085 4.734 6.117 3.702 7.39 3.702Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M12 6.468L12 12M9.234 9.234L14.766 9.234M9.234 16.149L14.766 16.149",op:"clearStroke",w:1.75}]},"diff.filetree":{line:[{d:"M5 3L8 3C8.828 3 9.5 3.672 9.5 4.5L9.5 6.5C9.5 7.328 8.828 8 8 8L5 8C4.172 8 3.5 7.328 3.5 6.5L3.5 4.5C3.5 3.672 4.172 3 5 3Z",op:"stroke",w:1.5},{d:"M13.5 9L19 9C19.828 9 20.5 9.672 20.5 10.5L20.5 12.5C20.5 13.328 19.828 14 19 14L13.5 14C12.672 14 12 13.328 12 12.5L12 10.5C12 9.672 12.672 9 13.5 9Z",op:"stroke",w:1.5},{d:"M13.5 16L19 16C19.828 16 20.5 16.672 20.5 17.5L20.5 19.5C20.5 20.328 19.828 21 19 21L13.5 21C12.672 21 12 20.328 12 19.5L12 17.5C12 16.672 12.672 16 13.5 16Z",op:"stroke",w:1.5},{d:"M6.5 8L6.5 16.5C6.5 17.605 7.395 18.5 8.5 18.5L12 18.5M6.5 11.5L12 11.5",op:"stroke",w:1.5}],solid:[{d:"M4.75 2.25L8.25 2.25C9.355 2.25 10.25 3.145 10.25 4.25L10.25 6.75C10.25 7.855 9.355 8.75 8.25 8.75L4.75 8.75C3.645 8.75 2.75 7.855 2.75 6.75L2.75 4.25C2.75 3.145 3.645 2.25 4.75 2.25Z",op:"fill"},{d:"M13.25 8.25L19.25 8.25C20.355 8.25 21.25 9.145 21.25 10.25L21.25 12.75C21.25 13.855 20.355 14.75 19.25 14.75L13.25 14.75C12.145 14.75 11.25 13.855 11.25 12.75L11.25 10.25C11.25 9.145 12.145 8.25 13.25 8.25Z",op:"fill"},{d:"M13.25 15.25L19.25 15.25C20.355 15.25 21.25 16.145 21.25 17.25L21.25 19.75C21.25 20.855 20.355 21.75 19.25 21.75L13.25 21.75C12.145 21.75 11.25 20.855 11.25 19.75L11.25 17.25C11.25 16.145 12.145 15.25 13.25 15.25Z",op:"fill"},{d:"M6.5 8L6.5 16.5C6.5 17.605 7.395 18.5 8.5 18.5L12 18.5M6.5 11.5L12 11.5",op:"stroke",w:1.5}]},"diff.split":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12 4.752L12 19.248M6.564 9.282L9.282 9.282M6.564 12.906L9.282 12.906M14.718 9.282L17.436 9.282M14.718 14.718L17.436 14.718",op:"stroke",w:1.5}],solid:[{d:"M6.112 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.982C20.834 18.608 19.515 19.927 17.889 19.927L6.112 19.927C4.486 19.927 3.167 18.608 3.167 16.982L3.167 7.017C3.167 5.391 4.486 4.072 6.112 4.072Z",op:"fill"},{d:"M12 4.752L12 19.248M6.564 9.282L9.282 9.282M6.564 12.906L9.282 12.906M14.718 9.282L17.436 9.282M14.718 14.718L17.436 14.718",op:"clearStroke",w:1.75}]},"diff.viewed":{line:[{d:"M6.858 4.52L17.142 4.52C18.433 4.52 19.48 5.567 19.48 6.858L19.48 17.142C19.48 18.433 18.433 19.48 17.142 19.48L6.858 19.48C5.567 19.48 4.52 18.433 4.52 17.142L4.52 6.858C4.52 5.567 5.567 4.52 6.858 4.52Z",op:"stroke",w:1.5},{d:"M8.494 12.234L10.831 14.571L15.506 9.662",op:"stroke",w:1.5}],solid:[{d:"M6.858 3.819L17.143 3.819C18.821 3.819 20.182 5.18 20.182 6.858L20.182 17.143C20.182 18.821 18.821 20.182 17.143 20.182L6.858 20.182C5.18 20.182 3.819 18.821 3.819 17.143L3.819 6.858C3.819 5.18 5.18 3.819 6.858 3.819Z",op:"fill"},{d:"M8.494 12.234L10.831 14.571L15.506 9.662",op:"clearStroke",w:1.75}]},"disclosure.collapsed":{line:[{d:"M9.5 4.75L16.5 12L9.5 19.25",op:"stroke",w:1.5}],solid:[{d:"M9.5 4.75L16.5 12L9.5 19.25",op:"stroke",w:2}]},"disclosure.expanded":{line:[{d:"M5.25 8.625L12 15.375L18.75 8.625",op:"stroke",w:1.5}],solid:[{d:"M5.25 8.625L12 15.375L18.75 8.625",op:"stroke",w:2}]},extension:{line:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"fill"},{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5}],cat:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5},{d:"M5.5 8.25L5.5 4.75L8.25 7.25M13.75 8.25L13.75 4.75L11 7.25",op:"stroke",w:1.5,accent:!0}]},"extension.crashed":{line:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5},{d:"M10.5 8L8.75 12.5L11.75 14.75L9.5 21.5",op:"clearStroke",w:2.75}],solid:[{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"fill"},{d:"M3 10.75C3 9.369 4.119 8.25 5.5 8.25L8 8.25C7.206 7.527 6.938 6.39 7.325 5.389C7.713 4.387 8.676 3.727 9.75 3.727C10.824 3.727 11.787 4.387 12.175 5.389C12.562 6.39 12.294 7.527 11.5 8.25L13.75 8.25C15.131 8.25 16.25 9.369 16.25 10.75L16.25 13.25C16.973 12.456 18.11 12.188 19.111 12.575C20.113 12.963 20.773 13.926 20.773 15C20.773 16.074 20.113 17.037 19.111 17.425C18.11 17.812 16.973 17.544 16.25 16.75L16.25 18.5C16.25 19.881 15.131 21 13.75 21L5.5 21C4.119 21 3 19.881 3 18.5Z",op:"stroke",w:1.5},{d:"M10.5 8L8.75 12.5L11.75 14.75L9.5 21.5",op:"clearStroke",w:2.75}]},"feed.choice":{line:[{d:"M8.5 7.5C8.5 8.881 7.381 10 6 10C4.619 10 3.5 8.881 3.5 7.5C3.5 6.119 4.619 5 6 5C7.381 5 8.5 6.119 8.5 7.5Z",op:"stroke",w:1.5},{d:"M8.5 16.5C8.5 17.881 7.381 19 6 19C4.619 19 3.5 17.881 3.5 16.5C3.5 15.119 4.619 14 6 14C7.381 14 8.5 15.119 8.5 16.5Z",op:"stroke",w:1.5},{d:"M7 7.5C7 8.052 6.552 8.5 6 8.5C5.448 8.5 5 8.052 5 7.5C5 6.948 5.448 6.5 6 6.5C6.552 6.5 7 6.948 7 7.5Z",op:"fill"},{d:"M11 7.5L20 7.5M11 16.5L20 16.5",op:"stroke",w:1.5}],solid:[{d:"M9.25 7.5C9.25 9.295 7.795 10.75 6 10.75C4.205 10.75 2.75 9.295 2.75 7.5C2.75 5.705 4.205 4.25 6 4.25C7.795 4.25 9.25 5.705 9.25 7.5Z",op:"fill"},{d:"M8.5 16.5C8.5 17.881 7.381 19 6 19C4.619 19 3.5 17.881 3.5 16.5C3.5 15.119 4.619 14 6 14C7.381 14 8.5 15.119 8.5 16.5Z",op:"stroke",w:1.5},{d:"M11 7.5L20 7.5M11 16.5L20 16.5",op:"stroke",w:2}]},"feed.custom":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M12 8.376L12 15.624M8.829 10.188L15.171 13.812M15.171 10.188L8.829 13.812",op:"stroke",w:1.5}],solid:[{d:"M6.565 3.62L17.436 3.62C19.062 3.62 20.381 4.939 20.381 6.565L20.381 17.436C20.381 19.062 19.062 20.381 17.436 20.381L6.565 20.381C4.939 20.381 3.62 19.062 3.62 17.436L3.62 6.565C3.62 4.939 4.939 3.62 6.565 3.62Z",op:"fill"},{d:"M12 8.376L12 15.624M8.829 10.188L15.171 13.812M15.171 10.188L8.829 13.812",op:"clearStroke",w:1.75}]},"feed.input":{line:[{d:"M5 6.5L19 6.5C20.381 6.5 21.5 7.619 21.5 9L21.5 15C21.5 16.381 20.381 17.5 19 17.5L5 17.5C3.619 17.5 2.5 16.381 2.5 15L2.5 9C2.5 7.619 3.619 6.5 5 6.5Z",op:"stroke",w:1.5},{d:"M6.5 12L11 12M14.5 9.5L14.5 14.5",op:"stroke",w:1.5}],solid:[{d:"M5 5.75L19 5.75C20.795 5.75 22.25 7.205 22.25 9L22.25 15C22.25 16.795 20.795 18.25 19 18.25L5 18.25C3.205 18.25 1.75 16.795 1.75 15L1.75 9C1.75 7.205 3.205 5.75 5 5.75Z",op:"fill"},{d:"M6.5 12L11 12M14.5 9.5L14.5 14.5",op:"clearStroke",w:1.75}]},"field.clear":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"clearStroke",w:1.75}]},file:{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75}]},"file.new":{line:[{d:"M12.75 3L6.75 3C5.369 3 4.25 4.119 4.25 5.5L4.25 18.5C4.25 19.881 5.369 21 6.75 21L15.75 21C17.131 21 18.25 19.881 18.25 18.5L18.25 8.5Z",op:"stroke",w:1.5},{d:"M12.75 3L12.75 6.5C12.75 7.605 13.645 8.5 14.75 8.5L18.25 8.5",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M22 18C22 20.623 19.873 22.75 17.25 22.75C14.627 22.75 12.5 20.623 12.5 18C12.5 15.377 14.627 13.25 17.25 13.25C19.873 13.25 22 15.377 22 18Z",op:"clearFill"},{d:"M22 18C22 20.623 19.873 22.75 17.25 22.75C14.627 22.75 12.5 20.623 12.5 18C12.5 15.377 14.627 13.25 17.25 13.25C19.873 13.25 22 15.377 22 18Z",op:"clearStroke",w:1.5},{d:"M17.25 15.5L17.25 20.5M14.75 18L19.75 18",op:"stroke",w:1.5}],solid:[{d:"M12.75 3L6.75 3C5.369 3 4.25 4.119 4.25 5.5L4.25 18.5C4.25 19.881 5.369 21 6.75 21L15.75 21C17.131 21 18.25 19.881 18.25 18.5L18.25 8.5Z",op:"fill"},{d:"M12.75 3L6.75 3C5.369 3 4.25 4.119 4.25 5.5L4.25 18.5C4.25 19.881 5.369 21 6.75 21L15.75 21C17.131 21 18.25 19.881 18.25 18.5L18.25 8.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M12.75 3L12.75 6.5C12.75 7.605 13.645 8.5 14.75 8.5L18.25 8.5",op:"clearStroke",w:1.75},{d:"M22.25 18C22.25 20.761 20.011 23 17.25 23C14.489 23 12.25 20.761 12.25 18C12.25 15.239 14.489 13 17.25 13C20.011 13 22.25 15.239 22.25 18Z",op:"clearFill"},{d:"M17.25 15.5L17.25 20.5M14.75 18L19.75 18",op:"stroke",w:2,join:"miter"}]},"file.text":{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5},{d:"M8.5 12.5L15.5 12.5M8.5 16L13.5 16",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75},{d:"M8.5 12.5L15.5 12.5M8.5 16L13.5 16",op:"clearStroke",w:1.75}]},"file.type":{line:[{d:"M14.582 3.549L8.948 3.549C7.652 3.55 6.602 4.6 6.601 5.896L6.601 18.103C6.601 19.399 7.652 20.45 8.948 20.451L17.399 20.451C18.696 20.451 19.747 19.4 19.747 18.103L19.747 8.713Z",op:"stroke",w:1.5},{d:"M14.582 3.549L14.582 6.836C14.582 7.873 15.423 8.714 16.46 8.714L19.747 8.714",op:"stroke",w:1.5},{d:"M0 0L24 0L24 24L0 24Z",op:"clearStroke",w:1.5},{d:"M5.193 11.53L13.643 11.53C14.94 11.53 15.991 12.581 15.991 13.878L15.991 17.164C15.991 18.461 14.94 19.512 13.643 19.512L5.193 19.512C3.896 19.512 2.845 18.461 2.845 17.164L2.845 13.878C2.845 12.581 3.896 11.53 5.193 11.53Z",op:"clearFill"},{d:"M5.193 11.53L13.643 11.53C14.94 11.53 15.991 12.581 15.991 13.878L15.991 17.164C15.991 18.461 14.94 19.512 13.643 19.512L5.193 19.512C3.896 19.512 2.845 18.461 2.845 17.164L2.845 13.878C2.845 12.581 3.896 11.53 5.193 11.53Z",op:"clearStroke",w:1.5},{d:"M5.662 12.939L13.173 12.939C13.951 12.939 14.582 13.57 14.582 14.348L14.582 16.695C14.582 17.473 13.951 18.104 13.173 18.104L5.662 18.104C4.884 18.104 4.253 17.473 4.253 16.695L4.253 14.348C4.253 13.57 4.884 12.939 5.662 12.939Z",op:"stroke",w:1.5}],solid:[{d:"M14.582 3.549L8.948 3.549C7.652 3.55 6.602 4.6 6.601 5.896L6.601 18.103C6.601 19.399 7.652 20.45 8.948 20.451L17.399 20.451C18.696 20.451 19.747 19.4 19.747 18.103L19.747 8.713Z",op:"fill"},{d:"M14.582 3.549L8.948 3.549C7.652 3.55 6.602 4.6 6.601 5.896L6.601 18.103C6.601 19.399 7.652 20.45 8.948 20.451L17.399 20.451C18.696 20.451 19.747 19.4 19.747 18.103L19.747 8.713Z",op:"stroke",w:1.5,cap:"butt"},{d:"M14.582 3.549L14.582 6.836C14.582 7.873 15.423 8.714 16.46 8.714L19.747 8.714",op:"clearStroke",w:1.75},{d:"M5.193 11.53L13.643 11.53C14.94 11.53 15.991 12.581 15.991 13.878L15.991 17.164C15.991 18.461 14.94 19.512 13.643 19.512L5.193 19.512C3.896 19.512 2.845 18.461 2.845 17.164L2.845 13.878C2.845 12.581 3.896 11.53 5.193 11.53Z",op:"clearFill"},{d:"M5.662 12.939L13.173 12.939C13.951 12.939 14.582 13.57 14.582 14.348L14.582 16.695C14.582 17.473 13.951 18.104 13.173 18.104L5.662 18.104C4.884 18.104 4.253 17.473 4.253 16.695L4.253 14.348C4.253 13.57 4.884 12.939 5.662 12.939Z",op:"fill"}]},filter:{line:[{d:"M4 7L20 7M7 12L17 12M10 17L14 17",op:"stroke",w:1.5}],solid:[{d:"M4 7L20 7M7 12L17 12M10 17L14 17",op:"stroke",w:2}]},folder:{line:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"fill"},{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5}],cat:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M12 7.25L12 4.25L14.5 7M19.75 7.5L19.75 4.25L17.25 7",op:"stroke",w:1.5,accent:!0}]},"git.branch":{line:[{d:"M7 3.5L7 16.25M17 8.75C17 13.75 7 12.25 7 16.25",op:"stroke",w:1.5},{d:"M9.25 18.5C9.25 19.743 8.243 20.75 7 20.75C5.757 20.75 4.75 19.743 4.75 18.5C4.75 17.257 5.757 16.25 7 16.25C8.243 16.25 9.25 17.257 9.25 18.5Z",op:"stroke",w:1.5},{d:"M19.25 6.5C19.25 7.743 18.243 8.75 17 8.75C15.757 8.75 14.75 7.743 14.75 6.5C14.75 5.257 15.757 4.25 17 4.25C18.243 4.25 19.25 5.257 19.25 6.5Z",op:"stroke",w:1.5}],solid:[{d:"M7 3.5L7 16.25M17 8.75C17 13.75 7 12.25 7 16.25",op:"stroke",w:2},{d:"M9.5 18.5C9.5 19.881 8.381 21 7 21C5.619 21 4.5 19.881 4.5 18.5C4.5 17.119 5.619 16 7 16C8.381 16 9.5 17.119 9.5 18.5Z",op:"fill"},{d:"M19.5 6.5C19.5 7.881 18.381 9 17 9C15.619 9 14.5 7.881 14.5 6.5C14.5 5.119 15.619 4 17 4C18.381 4 19.5 5.119 19.5 6.5Z",op:"fill"}]},"git.pullrequest":{line:[{d:"M6.5 8L6.5 16M17.5 16L17.5 9.5C17.5 7.843 16.157 6.5 14.5 6.5L11.5 6.5M13.5 4L11 6.5L13.5 9",op:"stroke",w:1.5},{d:"M8.75 5.5C8.75 6.743 7.743 7.75 6.5 7.75C5.257 7.75 4.25 6.743 4.25 5.5C4.25 4.257 5.257 3.25 6.5 3.25C7.743 3.25 8.75 4.257 8.75 5.5Z",op:"stroke",w:1.5},{d:"M8.75 18.5C8.75 19.743 7.743 20.75 6.5 20.75C5.257 20.75 4.25 19.743 4.25 18.5C4.25 17.257 5.257 16.25 6.5 16.25C7.743 16.25 8.75 17.257 8.75 18.5Z",op:"stroke",w:1.5},{d:"M19.75 18.5C19.75 19.743 18.743 20.75 17.5 20.75C16.257 20.75 15.25 19.743 15.25 18.5C15.25 17.257 16.257 16.25 17.5 16.25C18.743 16.25 19.75 17.257 19.75 18.5Z",op:"stroke",w:1.5}],solid:[{d:"M6.5 8L6.5 16M17.5 16L17.5 9.5C17.5 7.843 16.157 6.5 14.5 6.5L11.5 6.5M13.5 4L11 6.5L13.5 9",op:"stroke",w:2},{d:"M9 5.5C9 6.881 7.881 8 6.5 8C5.119 8 4 6.881 4 5.5C4 4.119 5.119 3 6.5 3C7.881 3 9 4.119 9 5.5Z",op:"fill"},{d:"M9 18.5C9 19.881 7.881 21 6.5 21C5.119 21 4 19.881 4 18.5C4 17.119 5.119 16 6.5 16C7.881 16 9 17.119 9 18.5Z",op:"fill"},{d:"M20 18.5C20 19.881 18.881 21 17.5 21C16.119 21 15 19.881 15 18.5C15 17.119 16.119 16 17.5 16C18.881 16 20 17.119 20 18.5Z",op:"fill"}]},"git.worktree":{line:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5},{d:"M8.5 10.75L8.5 18.25M15.5 13.25C15.5 16.75 8.5 15.25 8.5 18.25",op:"stroke",w:1.5},{d:"M17.25 11.5C17.25 12.466 16.466 13.25 15.5 13.25C14.534 13.25 13.75 12.466 13.75 11.5C13.75 10.534 14.534 9.75 15.5 9.75C16.466 9.75 17.25 10.534 17.25 11.5Z",op:"stroke",w:1.5}],solid:[{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"fill"},{d:"M3 7.5C3 6.119 4.119 5 5.5 5L9.25 5L11.25 7.25L18.5 7.25C19.881 7.25 21 8.369 21 9.75L21 17.5C21 18.881 19.881 20 18.5 20L5.5 20C4.119 20 3 18.881 3 17.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.5 10.75L8.5 18.25M15.5 13.25C15.5 16.75 8.5 15.25 8.5 18.25",op:"clearStroke",w:1.75},{d:"M17.25 11.5C17.25 12.466 16.466 13.25 15.5 13.25C14.534 13.25 13.75 12.466 13.75 11.5C13.75 10.534 14.534 9.75 15.5 9.75C16.466 9.75 17.25 10.534 17.25 11.5Z",op:"clearStroke",w:1.75}]},grant:{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M12 3L12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5}]},"group.collapsed.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},"group.new":{line:[{d:"M3.603 6.885C3.604 5.597 4.647 4.554 5.935 4.553L9.107 4.553C9.548 4.553 9.963 4.76 10.227 5.113L11.533 6.886L18.064 6.886C19.352 6.886 20.396 7.93 20.397 9.218L20.397 17.149C20.397 18.437 19.352 19.482 18.064 19.482L5.935 19.482C5.316 19.482 4.723 19.236 4.286 18.798C3.848 18.36 3.603 17.767 3.603 17.148Z",op:"stroke",w:1.5},{d:"M22.03 17.615C22.03 20.063 20.046 22.047 17.598 22.047C15.15 22.047 13.166 20.063 13.166 17.615C13.166 15.167 15.15 13.183 17.598 13.183C20.046 13.183 22.03 15.167 22.03 17.615Z",op:"clearFill"},{d:"M17.598 15.282L17.598 19.947M15.265 17.615L19.93 17.615",op:"stroke",w:1.5}],solid:[{d:"M3.603 6.885C3.604 5.597 4.647 4.554 5.935 4.553L9.107 4.553C9.548 4.553 9.963 4.76 10.227 5.113L11.533 6.886L18.064 6.886C19.352 6.886 20.396 7.93 20.397 9.218L20.397 17.149C20.397 18.437 19.352 19.482 18.064 19.482L5.935 19.482C5.316 19.482 4.723 19.236 4.286 18.798C3.848 18.36 3.603 17.767 3.603 17.148Z",op:"fill"},{d:"M3.603 6.885C3.604 5.597 4.647 4.554 5.935 4.553L9.107 4.553C9.548 4.553 9.963 4.76 10.227 5.113L11.533 6.886L18.064 6.886C19.352 6.886 20.396 7.93 20.397 9.218L20.397 17.149C20.397 18.437 19.352 19.482 18.064 19.482L5.935 19.482C5.316 19.482 4.723 19.236 4.286 18.798C3.848 18.36 3.603 17.767 3.603 17.148Z",op:"stroke",w:1.5},{d:"M22.263 17.615C22.263 20.191 20.174 22.28 17.598 22.28C15.022 22.28 12.933 20.191 12.933 17.615C12.933 15.039 15.022 12.95 17.598 12.95C20.174 12.95 22.263 15.039 22.263 17.615Z",op:"clearFill"},{d:"M17.598 15.282L17.598 19.947M15.265 17.615L19.93 17.615",op:"stroke",w:2,join:"miter"}]},history:{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 12L15 14",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M12 7.5L12 12L15 14",op:"clearStroke",w:1.75}]},"history.recent":{line:[{d:"M5.07 8C6.88 4.864 10.571 3.335 14.069 4.273C17.566 5.21 19.998 8.379 19.998 12C19.998 15.621 17.566 18.79 14.069 19.727C10.571 20.665 6.88 19.136 5.07 16",op:"stroke",w:1.5},{d:"M8.21 7.16L5.07 8L4.23 4.86",op:"stroke",w:1.5},{d:"M12 8L12 12L14.75 13.75",op:"stroke",w:1.5}],solid:[{d:"M5.07 8C6.88 4.864 10.571 3.335 14.069 4.273C17.566 5.21 19.998 8.379 19.998 12C19.998 15.621 17.566 18.79 14.069 19.727C10.571 20.665 6.88 19.136 5.07 16",op:"stroke",w:2},{d:"M8.21 7.16L5.07 8L4.23 4.86",op:"stroke",w:2},{d:"M12 8L12 12L14.75 13.75",op:"stroke",w:2}]},home:{line:[{d:"M3 11.75L12 4.25L21 11.75",op:"stroke",w:1.5},{d:"M5 10.25L5 18.5C5 19.328 5.672 20 6.5 20L17.5 20C18.328 20 19 19.328 19 18.5L19 10.25",op:"stroke",w:1.5},{d:"M10 20L10 15L14 15L14 20",op:"stroke",w:1.5}],solid:[{d:"M5 10.25L12 4.4L19 10.25L19 18.5C19 19.328 18.328 20 17.5 20L6.5 20C5.672 20 5 19.328 5 18.5Z",op:"fill"},{d:"M5 10.25L12 4.4L19 10.25L19 18.5C19 19.328 18.328 20 17.5 20L6.5 20C5.672 20 5 19.328 5 18.5Z",op:"stroke",w:1.5},{d:"M10 21L10 15L14 15L14 21",op:"clearFill"},{d:"M10 21L10 15L14 15L14 21",op:"clearStroke",w:1.75},{d:"M3 11.75L12 4.25L21 11.75",op:"stroke",w:1.5}]},"icon.clear":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5,dash:[2.67,4.006],dashPhase:1.335}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:2,dash:[2.67,4.006],dashPhase:1.335}]},"icon.missing":{line:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:1.5,dash:[3.639,3.639],dashPhase:-1.82},{d:"M9.944 9.944C9.943 8.916 10.7 8.045 11.718 7.904C12.736 7.763 13.702 8.394 13.981 9.384C14.26 10.373 13.765 11.416 12.823 11.827C12.32 12.056 12 12.512 12 13.061L12 13.372",op:"stroke",w:1.5},{d:"M12.914 16.113C12.914 16.618 12.505 17.027 12 17.027C11.495 17.027 11.086 16.618 11.086 16.113C11.086 15.608 11.495 15.199 12 15.199C12.505 15.199 12.914 15.608 12.914 16.113Z",op:"fill"}],solid:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:2,dash:[3.639,3.639],dashPhase:-1.82},{d:"M9.944 9.944C9.943 8.916 10.7 8.045 11.718 7.904C12.736 7.763 13.702 8.394 13.981 9.384C14.26 10.373 13.765 11.416 12.823 11.827C12.32 12.056 12 12.512 12 13.061L12 13.372",op:"stroke",w:2},{d:"M13.051 16.113C13.051 16.693 12.58 17.164 12 17.164C11.42 17.164 10.949 16.693 10.949 16.113C10.949 15.533 11.42 15.062 12 15.062C12.58 15.062 13.051 15.533 13.051 16.113Z",op:"fill"}],cat:[{d:"M6.516 5.602L17.484 5.602C18.746 5.602 19.769 6.625 19.769 7.887L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 7.887C4.231 6.625 5.254 5.602 6.516 5.602Z",op:"stroke",w:1.5,dash:[3.468,3.468],dashPhase:-1.734},{d:"M9.944 10.857C9.943 9.829 10.7 8.958 11.718 8.817C12.736 8.676 13.702 9.307 13.981 10.297C14.26 11.286 13.765 12.329 12.823 12.74C12.32 12.969 12 13.425 12 13.974L12 14.285",op:"stroke",w:1.5},{d:"M12.914 16.799C12.914 17.304 12.505 17.713 12 17.713C11.495 17.713 11.086 17.304 11.086 16.799C11.086 16.294 11.495 15.885 12 15.885C12.505 15.885 12.914 16.294 12.914 16.799Z",op:"fill"},{d:"M6.059 5.602L6.059 3.317L7.887 5.145M17.941 5.602L17.941 3.317L16.113 5.145",op:"stroke",w:1.5,accent:!0}]},inbox:{line:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"stroke",w:1.5},{d:"M8.28 8.315L15.72 8.315M7.582 10.872L16.417 10.872",op:"stroke",w:1.5}],solid:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"fill"},{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5,cap:"butt"},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"clearStroke",w:1.75},{d:"M8.28 8.315L15.72 8.315M7.582 10.872L16.417 10.872",op:"clearStroke",w:1.75}]},"inbox.empty":{line:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"stroke",w:1.5}],solid:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"fill"},{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5,cap:"butt"},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"clearStroke",w:1.75}],cat:[{d:"M6.652 5.06L17.347 5.06L20.37 13.197L20.37 17.615C20.37 18.899 19.329 19.94 18.045 19.94L5.955 19.94C4.671 19.94 3.63 18.899 3.63 17.615L3.63 13.198Z",op:"stroke",w:1.5},{d:"M3.63 13.197L8.047 13.197L9.442 15.522L14.557 15.522L15.952 13.197L20.37 13.197",op:"stroke",w:1.5},{d:"M9.675 7.85L12.93 7.85L9.675 11.105L12.93 11.105",op:"stroke",w:1.5,accent:!0}]},integration:{line:[{d:"M4.5 9C4.5 7.895 5.395 7 6.5 7L8.5 7C8.5 5.757 9.507 4.75 10.75 4.75C11.993 4.75 13 5.757 13 7L15 7C16.105 7 17 7.895 17 9L17 11C18.243 11 19.25 12.007 19.25 13.25C19.25 14.493 18.243 15.5 17 15.5L17 17.5C17 18.605 16.105 19.5 15 19.5L6.5 19.5C5.395 19.5 4.5 18.605 4.5 17.5Z",op:"stroke",w:1.5}],solid:[{d:"M4.5 9C4.5 7.895 5.395 7 6.5 7L8.5 7C8.5 5.757 9.507 4.75 10.75 4.75C11.993 4.75 13 5.757 13 7L15 7C16.105 7 17 7.895 17 9L17 11C18.243 11 19.25 12.007 19.25 13.25C19.25 14.493 18.243 15.5 17 15.5L17 17.5C17 18.605 16.105 19.5 15 19.5L6.5 19.5C5.395 19.5 4.5 18.605 4.5 17.5Z",op:"fill"},{d:"M4.5 9C4.5 7.895 5.395 7 6.5 7L8.5 7C8.5 5.757 9.507 4.75 10.75 4.75C11.993 4.75 13 5.757 13 7L15 7C16.105 7 17 7.895 17 9L17 11C18.243 11 19.25 12.007 19.25 13.25C19.25 14.493 18.243 15.5 17 15.5L17 17.5C17 18.605 16.105 19.5 15 19.5L6.5 19.5C5.395 19.5 4.5 18.605 4.5 17.5Z",op:"stroke",w:1.5}]},keyboard:{line:[{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"stroke",w:1.5},{d:"M6.5 10L6.51 10M10 10L10.01 10M14 10L14.01 10M17.5 10L17.51 10M8.5 14L15.5 14",op:"stroke",w:1.5}],solid:[{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"fill"},{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"stroke",w:1.5},{d:"M6.5 10L6.51 10M10 10L10.01 10M14 10L14.01 10M17.5 10L17.51 10M8.5 14L15.5 14",op:"clearStroke",w:1.75}],cat:[{d:"M5 6L19 6C20.381 6 21.5 7.119 21.5 8.5L21.5 15.5C21.5 16.881 20.381 18 19 18L5 18C3.619 18 2.5 16.881 2.5 15.5L2.5 8.5C2.5 7.119 3.619 6 5 6Z",op:"stroke",w:1.5},{d:"M6.5 10L6.51 10M10 10L10.01 10M14 10L14.01 10M17.5 10L17.51 10M8.5 14L15.5 14",op:"stroke",w:1.5},{d:"M12.5 6L12.5 3.5L14.5 5.5M19 6L19 3.5L17 5.5",op:"stroke",w:1.5,accent:!0}]},"keyboard.hotkey":{line:[{d:"M9 9L15 9L15 15L9 15ZM9 9L7 9C5.895 9 5 8.105 5 7C5 5.895 5.895 5 7 5C8.105 5 9 5.895 9 7ZM15 9L15 7C15 5.895 15.895 5 17 5C18.105 5 19 5.895 19 7C19 8.105 18.105 9 17 9ZM15 15L17 15C18.105 15 19 15.895 19 17C19 18.105 18.105 19 17 19C15.895 19 15 18.105 15 17ZM9 15L9 17C9 18.105 8.105 19 7 19C5.895 19 5 18.105 5 17C5 15.895 5.895 15 7 15Z",op:"stroke",w:1.5}],solid:[{d:"M9 9L15 9L15 15L9 15ZM9 9L7 9C5.895 9 5 8.105 5 7C5 5.895 5.895 5 7 5C8.105 5 9 5.895 9 7ZM15 9L15 7C15 5.895 15.895 5 17 5C18.105 5 19 5.895 19 7C19 8.105 18.105 9 17 9ZM15 15L17 15C18.105 15 19 15.895 19 17C19 18.105 18.105 19 17 19C15.895 19 15 18.105 15 17ZM9 15L9 17C9 18.105 8.105 19 7 19C5.895 19 5 18.105 5 17C5 15.895 5.895 15 7 15Z",op:"stroke",w:2}]},link:{line:[{d:"M10.5 13.5C11.158 14.172 12.059 14.551 13 14.551C13.941 14.551 14.842 14.172 15.5 13.5L18.5 10.5C19.881 9.119 19.881 6.881 18.5 5.5C17.119 4.119 14.881 4.119 13.5 5.5L12.5 6.5M13.5 10.5C12.842 9.828 11.941 9.449 11 9.449C10.059 9.449 9.158 9.828 8.5 10.5L5.5 13.5C4.119 14.881 4.119 17.119 5.5 18.5C6.881 19.881 9.119 19.881 10.5 18.5L11.5 17.5",op:"stroke",w:1.5}],solid:[{d:"M10.5 13.5C11.158 14.172 12.059 14.551 13 14.551C13.941 14.551 14.842 14.172 15.5 13.5L18.5 10.5C19.881 9.119 19.881 6.881 18.5 5.5C17.119 4.119 14.881 4.119 13.5 5.5L12.5 6.5M13.5 10.5C12.842 9.828 11.941 9.449 11 9.449C10.059 9.449 9.158 9.828 8.5 10.5L5.5 13.5C4.119 14.881 4.119 17.119 5.5 18.5C6.881 19.881 9.119 19.881 10.5 18.5L11.5 17.5",op:"stroke",w:2}]},"link.external":{line:[{d:"M5.25 18.75L18.75 5.25M7.5 5.25L18.75 5.25L18.75 16.5",op:"stroke",w:1.5}],solid:[{d:"M5.25 18.75L18.75 5.25M7.5 5.25L18.75 5.25L18.75 16.5",op:"stroke",w:2}]},"link.open.newtab":{line:[{d:"M11.067 4.536L6.868 4.536C5.58 4.537 4.537 5.58 4.536 6.868L4.536 17.131C4.536 18.419 5.58 19.463 6.868 19.464L17.131 19.464C18.419 19.464 19.464 18.419 19.464 17.131L19.464 12.933",op:"stroke",w:1.5},{d:"M12.466 11.533L19.464 4.536M14.332 4.536L19.464 4.536L19.464 9.667",op:"stroke",w:1.5}],solid:[{d:"M6.402 4.069L17.597 4.069C18.885 4.069 19.93 5.114 19.93 6.402L19.93 17.597C19.93 18.885 18.885 19.93 17.597 19.93L6.402 19.93C5.114 19.93 4.069 18.885 4.069 17.597L4.069 6.402C4.069 5.114 5.114 4.069 6.402 4.069Z",op:"fill"},{d:"M6.402 4.069L17.597 4.069C18.885 4.069 19.93 5.114 19.93 6.402L19.93 17.597C19.93 18.885 18.885 19.93 17.597 19.93L6.402 19.93C5.114 19.93 4.069 18.885 4.069 17.597L4.069 6.402C4.069 5.114 5.114 4.069 6.402 4.069Z",op:"stroke",w:1.5},{d:"M9.667 14.332L14.332 9.667M10.6 9.667L14.332 9.667L14.332 13.399",op:"clearStroke",w:1.75}]},"link.web":{line:[{d:"M20.424 12C20.424 16.652 16.652 20.424 12 20.424C7.348 20.424 3.576 16.652 3.576 12C3.576 7.348 7.348 3.576 12 3.576C16.652 3.576 20.424 7.348 20.424 12Z",op:"stroke",w:1.5},{d:"M15.51 12C15.51 16.652 13.939 20.424 12 20.424C10.061 20.424 8.49 16.652 8.49 12C8.49 7.348 10.061 3.576 12 3.576C13.939 3.576 15.51 7.348 15.51 12Z",op:"stroke",w:1.5},{d:"M3.576 12L20.424 12",op:"stroke",w:1.5}],solid:[{d:"M21.126 12C21.126 17.04 17.04 21.126 12 21.126C6.96 21.126 2.874 17.04 2.874 12C2.874 6.96 6.96 2.874 12 2.874C17.04 2.874 21.126 6.96 21.126 12Z",op:"fill"},{d:"M15.51 12C15.51 16.911 13.939 20.892 12 20.892C10.061 20.892 8.49 16.911 8.49 12C8.49 7.089 10.061 3.108 12 3.108C13.939 3.108 15.51 7.089 15.51 12Z",op:"clearStroke",w:1.75},{d:"M2.64 12L21.36 12",op:"clearStroke",w:1.75}]},"list.bullet.item":{line:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:1.5}],solid:[{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"fill"},{d:"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z",op:"stroke",w:1.5}]},location:{line:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}],solid:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"fill"},{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}]},machine:{line:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5}],solid:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"fill"},{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:2}]},"machine.local":{line:[{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"stroke",w:1.5},{d:"M2.5 18.5L21.5 18.5",op:"stroke",w:1.5}],solid:[{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"fill"},{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"stroke",w:1.5},{d:"M2.5 18.5L21.5 18.5",op:"stroke",w:2}],cat:[{d:"M6.5 5L17.5 5C18.605 5 19.5 5.895 19.5 7L19.5 13.5C19.5 14.605 18.605 15.5 17.5 15.5L6.5 15.5C5.395 15.5 4.5 14.605 4.5 13.5L4.5 7C4.5 5.895 5.395 5 6.5 5Z",op:"stroke",w:1.5},{d:"M2.5 18.5L21.5 18.5",op:"stroke",w:1.5},{d:"M6.5 5L6.5 2.75L8.25 4.5M12.5 5L12.5 2.75L10.75 4.5",op:"stroke",w:1.5,accent:!0}]},"machine.mac":{line:[{d:"M5.5 6.25L18.5 6.25C19.881 6.25 21 7.369 21 8.75L21 12.25C21 13.631 19.881 14.75 18.5 14.75L5.5 14.75C4.119 14.75 3 13.631 3 12.25L3 8.75C3 7.369 4.119 6.25 5.5 6.25Z",op:"stroke",w:1.5},{d:"M6.5 17.75L17.5 17.75",op:"stroke",w:1.5},{d:"M7.75 10.5C7.75 11.052 7.302 11.5 6.75 11.5C6.198 11.5 5.75 11.052 5.75 10.5C5.75 9.948 6.198 9.5 6.75 9.5C7.302 9.5 7.75 9.948 7.75 10.5Z",op:"fill"}],solid:[{d:"M5.5 6.25L18.5 6.25C19.881 6.25 21 7.369 21 8.75L21 12.25C21 13.631 19.881 14.75 18.5 14.75L5.5 14.75C4.119 14.75 3 13.631 3 12.25L3 8.75C3 7.369 4.119 6.25 5.5 6.25Z",op:"fill"},{d:"M5.5 6.25L18.5 6.25C19.881 6.25 21 7.369 21 8.75L21 12.25C21 13.631 19.881 14.75 18.5 14.75L5.5 14.75C4.119 14.75 3 13.631 3 12.25L3 8.75C3 7.369 4.119 6.25 5.5 6.25Z",op:"stroke",w:1.5},{d:"M7.85 10.5C7.85 11.108 7.358 11.6 6.75 11.6C6.142 11.6 5.65 11.108 5.65 10.5C5.65 9.892 6.142 9.4 6.75 9.4C7.358 9.4 7.85 9.892 7.85 10.5Z",op:"clearFill"},{d:"M6.5 17.75L17.5 17.75",op:"stroke",w:2}]},"machine.remote":{line:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.4 7.725C8.4 8.222 7.997 8.625 7.5 8.625C7.003 8.625 6.6 8.222 6.6 7.725C6.6 7.228 7.003 6.825 7.5 6.825C7.997 6.825 8.4 7.228 8.4 7.725Z",op:"fill"},{d:"M8.4 16.275C8.4 16.772 7.997 17.175 7.5 17.175C7.003 17.175 6.6 16.772 6.6 16.275C6.6 15.778 7.003 15.375 7.5 15.375C7.997 15.375 8.4 15.778 8.4 16.275Z",op:"fill"}],solid:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"fill"},{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"fill"},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.535 7.725C8.535 8.297 8.072 8.76 7.5 8.76C6.928 8.76 6.465 8.297 6.465 7.725C6.465 7.153 6.928 6.69 7.5 6.69C8.072 6.69 8.535 7.153 8.535 7.725Z",op:"clearFill"},{d:"M8.535 16.275C8.535 16.847 8.072 17.31 7.5 17.31C6.928 17.31 6.465 16.847 6.465 16.275C6.465 15.703 6.928 15.24 7.5 15.24C8.072 15.24 8.535 15.703 8.535 16.275Z",op:"clearFill"}]},"mobile.pair":{line:[{d:"M5.75 3.5L9.75 3.5C10.993 3.5 12 4.507 12 5.75L12 18.25C12 19.493 10.993 20.5 9.75 20.5L5.75 20.5C4.507 20.5 3.5 19.493 3.5 18.25L3.5 5.75C3.5 4.507 4.507 3.5 5.75 3.5Z",op:"stroke",w:1.5},{d:"M15.25 9.25C16.71 10.793 16.71 13.207 15.25 14.75M18.25 6.75C21.109 9.666 21.109 14.334 18.25 17.25",op:"stroke",w:1.5}],solid:[{d:"M5.75 3.5L9.75 3.5C10.993 3.5 12 4.507 12 5.75L12 18.25C12 19.493 10.993 20.5 9.75 20.5L5.75 20.5C4.507 20.5 3.5 19.493 3.5 18.25L3.5 5.75C3.5 4.507 4.507 3.5 5.75 3.5Z",op:"fill"},{d:"M5.75 3.5L9.75 3.5C10.993 3.5 12 4.507 12 5.75L12 18.25C12 19.493 10.993 20.5 9.75 20.5L5.75 20.5C4.507 20.5 3.5 19.493 3.5 18.25L3.5 5.75C3.5 4.507 4.507 3.5 5.75 3.5Z",op:"stroke",w:1.5},{d:"M15.25 9.25C16.71 10.793 16.71 13.207 15.25 14.75M18.25 6.75C21.109 9.666 21.109 14.334 18.25 17.25",op:"stroke",w:2}]},"mobile.pair.qr":{line:[{d:"M5.532 4.146L8.766 4.146C9.531 4.146 10.152 4.767 10.152 5.532L10.152 8.766C10.152 9.531 9.531 10.152 8.766 10.152L5.532 10.152C4.767 10.152 4.146 9.531 4.146 8.766L4.146 5.532C4.146 4.767 4.767 4.146 5.532 4.146Z",op:"stroke",w:1.5},{d:"M8.165 7.149C8.165 7.71 7.71 8.165 7.149 8.165C6.588 8.165 6.133 7.71 6.133 7.149C6.133 6.588 6.588 6.133 7.149 6.133C7.71 6.133 8.165 6.588 8.165 7.149Z",op:"fill"},{d:"M15.234 4.146L18.468 4.146C19.233 4.146 19.854 4.767 19.854 5.532L19.854 8.766C19.854 9.531 19.233 10.152 18.468 10.152L15.234 10.152C14.469 10.152 13.848 9.531 13.848 8.766L13.848 5.532C13.848 4.767 14.469 4.146 15.234 4.146Z",op:"stroke",w:1.5},{d:"M17.867 7.149C17.867 7.71 17.412 8.165 16.851 8.165C16.29 8.165 15.835 7.71 15.835 7.149C15.835 6.588 16.29 6.133 16.851 6.133C17.412 6.133 17.867 6.588 17.867 7.149Z",op:"fill"},{d:"M5.532 13.848L8.766 13.848C9.531 13.848 10.152 14.469 10.152 15.234L10.152 18.468C10.152 19.233 9.531 19.854 8.766 19.854L5.532 19.854C4.767 19.854 4.146 19.233 4.146 18.468L4.146 15.234C4.146 14.469 4.767 13.848 5.532 13.848Z",op:"stroke",w:1.5},{d:"M8.165 16.851C8.165 17.412 7.71 17.867 7.149 17.867C6.588 17.867 6.133 17.412 6.133 16.851C6.133 16.29 6.588 15.835 7.149 15.835C7.71 15.835 8.165 16.29 8.165 16.851Z",op:"fill"},{d:"M13.848 13.386L15.234 13.386C15.489 13.386 15.696 13.593 15.696 13.848L15.696 15.234C15.696 15.489 15.489 15.696 15.234 15.696L13.848 15.696C13.593 15.696 13.386 15.489 13.386 15.234L13.386 13.848C13.386 13.593 13.593 13.386 13.848 13.386Z",op:"fill"},{d:"M17.775 13.386L19.161 13.386C19.416 13.386 19.623 13.593 19.623 13.848L19.623 15.234C19.623 15.489 19.416 15.696 19.161 15.696L17.775 15.696C17.52 15.696 17.313 15.489 17.313 15.234L17.313 13.848C17.313 13.593 17.52 13.386 17.775 13.386Z",op:"fill"},{d:"M13.848 17.313L15.234 17.313C15.489 17.313 15.696 17.52 15.696 17.775L15.696 19.161C15.696 19.416 15.489 19.623 15.234 19.623L13.848 19.623C13.593 19.623 13.386 19.416 13.386 19.161L13.386 17.775C13.386 17.52 13.593 17.313 13.848 17.313Z",op:"fill"},{d:"M17.775 17.313L19.161 17.313C19.416 17.313 19.623 17.52 19.623 17.775L19.623 19.161C19.623 19.416 19.416 19.623 19.161 19.623L17.775 19.623C17.52 19.623 17.313 19.416 17.313 19.161L17.313 17.775C17.313 17.52 17.52 17.313 17.775 17.313Z",op:"fill"},{d:"M15.927 15.465L17.313 15.465C17.568 15.465 17.775 15.672 17.775 15.927L17.775 17.313C17.775 17.568 17.568 17.775 17.313 17.775L15.927 17.775C15.672 17.775 15.465 17.568 15.465 17.313L15.465 15.927C15.465 15.672 15.672 15.465 15.927 15.465Z",op:"fill"}],solid:[{d:"M5.532 4.146L8.766 4.146C9.531 4.146 10.152 4.767 10.152 5.532L10.152 8.766C10.152 9.531 9.531 10.152 8.766 10.152L5.532 10.152C4.767 10.152 4.146 9.531 4.146 8.766L4.146 5.532C4.146 4.767 4.767 4.146 5.532 4.146Z",op:"fill"},{d:"M5.532 4.146L8.766 4.146C9.531 4.146 10.152 4.767 10.152 5.532L10.152 8.766C10.152 9.531 9.531 10.152 8.766 10.152L5.532 10.152C4.767 10.152 4.146 9.531 4.146 8.766L4.146 5.532C4.146 4.767 4.767 4.146 5.532 4.146Z",op:"stroke",w:1.5},{d:"M15.234 4.146L18.468 4.146C19.233 4.146 19.854 4.767 19.854 5.532L19.854 8.766C19.854 9.531 19.233 10.152 18.468 10.152L15.234 10.152C14.469 10.152 13.848 9.531 13.848 8.766L13.848 5.532C13.848 4.767 14.469 4.146 15.234 4.146Z",op:"fill"},{d:"M15.234 4.146L18.468 4.146C19.233 4.146 19.854 4.767 19.854 5.532L19.854 8.766C19.854 9.531 19.233 10.152 18.468 10.152L15.234 10.152C14.469 10.152 13.848 9.531 13.848 8.766L13.848 5.532C13.848 4.767 14.469 4.146 15.234 4.146Z",op:"stroke",w:1.5},{d:"M5.532 13.848L8.766 13.848C9.531 13.848 10.152 14.469 10.152 15.234L10.152 18.468C10.152 19.233 9.531 19.854 8.766 19.854L5.532 19.854C4.767 19.854 4.146 19.233 4.146 18.468L4.146 15.234C4.146 14.469 4.767 13.848 5.532 13.848Z",op:"fill"},{d:"M5.532 13.848L8.766 13.848C9.531 13.848 10.152 14.469 10.152 15.234L10.152 18.468C10.152 19.233 9.531 19.854 8.766 19.854L5.532 19.854C4.767 19.854 4.146 19.233 4.146 18.468L4.146 15.234C4.146 14.469 4.767 13.848 5.532 13.848Z",op:"stroke",w:1.5},{d:"M8.304 7.149C8.304 7.787 7.787 8.304 7.149 8.304C6.511 8.304 5.994 7.787 5.994 7.149C5.994 6.511 6.511 5.994 7.149 5.994C7.787 5.994 8.304 6.511 8.304 7.149Z",op:"clearFill"},{d:"M18.006 7.149C18.006 7.787 17.489 8.304 16.851 8.304C16.213 8.304 15.696 7.787 15.696 7.149C15.696 6.511 16.213 5.994 16.851 5.994C17.489 5.994 18.006 6.511 18.006 7.149Z",op:"clearFill"},{d:"M8.304 16.851C8.304 17.489 7.787 18.006 7.149 18.006C6.511 18.006 5.994 17.489 5.994 16.851C5.994 16.213 6.511 15.696 7.149 15.696C7.787 15.696 8.304 16.213 8.304 16.851Z",op:"clearFill"},{d:"M13.848 13.386L15.234 13.386C15.489 13.386 15.696 13.593 15.696 13.848L15.696 15.234C15.696 15.489 15.489 15.696 15.234 15.696L13.848 15.696C13.593 15.696 13.386 15.489 13.386 15.234L13.386 13.848C13.386 13.593 13.593 13.386 13.848 13.386Z",op:"fill"},{d:"M17.775 13.386L19.161 13.386C19.416 13.386 19.623 13.593 19.623 13.848L19.623 15.234C19.623 15.489 19.416 15.696 19.161 15.696L17.775 15.696C17.52 15.696 17.313 15.489 17.313 15.234L17.313 13.848C17.313 13.593 17.52 13.386 17.775 13.386Z",op:"fill"},{d:"M13.848 17.313L15.234 17.313C15.489 17.313 15.696 17.52 15.696 17.775L15.696 19.161C15.696 19.416 15.489 19.623 15.234 19.623L13.848 19.623C13.593 19.623 13.386 19.416 13.386 19.161L13.386 17.775C13.386 17.52 13.593 17.313 13.848 17.313Z",op:"fill"},{d:"M17.775 17.313L19.161 17.313C19.416 17.313 19.623 17.52 19.623 17.775L19.623 19.161C19.623 19.416 19.416 19.623 19.161 19.623L17.775 19.623C17.52 19.623 17.313 19.416 17.313 19.161L17.313 17.775C17.313 17.52 17.52 17.313 17.775 17.313Z",op:"fill"},{d:"M15.927 15.465L17.313 15.465C17.568 15.465 17.775 15.672 17.775 15.927L17.775 17.313C17.775 17.568 17.568 17.775 17.313 17.775L15.927 17.775C15.672 17.775 15.465 17.568 15.465 17.313L15.465 15.927C15.465 15.672 15.672 15.465 15.927 15.465Z",op:"fill"}]},"mode.build":{line:[{d:"M13.763 4.727L19.773 10.737C20.261 11.226 20.261 12.017 19.773 12.505L18.005 14.273C17.517 14.761 16.726 14.761 16.237 14.273L10.227 8.263C9.739 7.774 9.739 6.983 10.227 6.495L11.995 4.727C12.483 4.239 13.274 4.239 13.763 4.727Z",op:"stroke",w:1.5},{d:"M4.5 19.5L12.75 11.25",op:"stroke",w:1.5}],solid:[{d:"M14.293 4.197L20.303 10.207C21.084 10.988 21.084 12.254 20.303 13.036L18.536 14.803C17.754 15.584 16.488 15.584 15.707 14.803L9.697 8.793C8.916 8.012 8.916 6.746 9.697 5.964L11.464 4.197C12.246 3.416 13.512 3.416 14.293 4.197Z",op:"fill"},{d:"M4.5 19.5L12.75 11.25",op:"stroke",w:2.25,join:"miter"}]},"mode.plan":{line:[{d:"M8.5 5L7 5C5.895 5 5 5.895 5 7L5 19C5 20.105 5.895 21 7 21L17 21C18.105 21 19 20.105 19 19L19 7C19 5.895 18.105 5 17 5L15.5 5",op:"stroke",w:1.5},{d:"M9.75 3L14.25 3C14.94 3 15.5 3.56 15.5 4.25L15.5 5.75C15.5 6.44 14.94 7 14.25 7L9.75 7C9.06 7 8.5 6.44 8.5 5.75L8.5 4.25C8.5 3.56 9.06 3 9.75 3Z",op:"stroke",w:1.5},{d:"M8.75 11.5L9.75 12.5L11.75 10.5M14 11.5L15.5 11.5M8.75 16L15.25 16",op:"stroke",w:1.5}],solid:[{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"fill"},{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.75 11.5L9.75 12.5L11.75 10.5M14 11.5L15.5 11.5M8.75 16L15.25 16",op:"clearStroke",w:1.75},{d:"M8.5 7.5L15.5 7.5",op:"clearStroke",w:2.5},{d:"M9.75 2.75L14.25 2.75C14.94 2.75 15.5 3.31 15.5 4L15.5 5.25C15.5 5.94 14.94 6.5 14.25 6.5L9.75 6.5C9.06 6.5 8.5 5.94 8.5 5.25L8.5 4C8.5 3.31 9.06 2.75 9.75 2.75Z",op:"fill"}]},"nav.back":{line:[{d:"M19.5 12L4.5 12M10.5 6L4.5 12L10.5 18",op:"stroke",w:1.5}],solid:[{d:"M19.5 12L4.5 12M10.5 6L4.5 12L10.5 18",op:"stroke",w:2}]},"nav.forward":{line:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:1.5}],solid:[{d:"M4.5 12L19.5 12M13.5 6L19.5 12L13.5 18",op:"stroke",w:2}]},"nav.previous":{line:[{d:"M15.375 5.25L8.625 12L15.375 18.75",op:"stroke",w:1.5}],solid:[{d:"M15.375 5.25L8.625 12L15.375 18.75",op:"stroke",w:2}]},"nav.previous.match":{line:[{d:"M5.25 15.375L12 8.625L18.75 15.375",op:"stroke",w:1.5}],solid:[{d:"M5.25 15.375L12 8.625L18.75 15.375",op:"stroke",w:2}]},network:{line:[{d:"M10.5 3.5L13.5 3.5C14.328 3.5 15 4.172 15 5L15 7C15 7.828 14.328 8.5 13.5 8.5L10.5 8.5C9.672 8.5 9 7.828 9 7L9 5C9 4.172 9.672 3.5 10.5 3.5Z",op:"stroke",w:1.5},{d:"M5 15.5L8 15.5C8.828 15.5 9.5 16.172 9.5 17L9.5 19C9.5 19.828 8.828 20.5 8 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 17C3.5 16.172 4.172 15.5 5 15.5Z",op:"stroke",w:1.5},{d:"M16 15.5L19 15.5C19.828 15.5 20.5 16.172 20.5 17L20.5 19C20.5 19.828 19.828 20.5 19 20.5L16 20.5C15.172 20.5 14.5 19.828 14.5 19L14.5 17C14.5 16.172 15.172 15.5 16 15.5Z",op:"stroke",w:1.5},{d:"M12 8.5L12 12M6.5 15.5L6.5 13.5C6.5 12.672 7.172 12 8 12L16 12C16.828 12 17.5 12.672 17.5 13.5L17.5 15.5",op:"stroke",w:1.5}],solid:[{d:"M10.5 3.5L13.5 3.5C14.328 3.5 15 4.172 15 5L15 7C15 7.828 14.328 8.5 13.5 8.5L10.5 8.5C9.672 8.5 9 7.828 9 7L9 5C9 4.172 9.672 3.5 10.5 3.5Z",op:"fill"},{d:"M10.5 3.5L13.5 3.5C14.328 3.5 15 4.172 15 5L15 7C15 7.828 14.328 8.5 13.5 8.5L10.5 8.5C9.672 8.5 9 7.828 9 7L9 5C9 4.172 9.672 3.5 10.5 3.5Z",op:"stroke",w:1.5},{d:"M5 15.5L8 15.5C8.828 15.5 9.5 16.172 9.5 17L9.5 19C9.5 19.828 8.828 20.5 8 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 17C3.5 16.172 4.172 15.5 5 15.5Z",op:"fill"},{d:"M5 15.5L8 15.5C8.828 15.5 9.5 16.172 9.5 17L9.5 19C9.5 19.828 8.828 20.5 8 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 17C3.5 16.172 4.172 15.5 5 15.5Z",op:"stroke",w:1.5},{d:"M16 15.5L19 15.5C19.828 15.5 20.5 16.172 20.5 17L20.5 19C20.5 19.828 19.828 20.5 19 20.5L16 20.5C15.172 20.5 14.5 19.828 14.5 19L14.5 17C14.5 16.172 15.172 15.5 16 15.5Z",op:"fill"},{d:"M16 15.5L19 15.5C19.828 15.5 20.5 16.172 20.5 17L20.5 19C20.5 19.828 19.828 20.5 19 20.5L16 20.5C15.172 20.5 14.5 19.828 14.5 19L14.5 17C14.5 16.172 15.172 15.5 16 15.5Z",op:"stroke",w:1.5},{d:"M12 8.5L12 12M6.5 15.5L6.5 13.5C6.5 12.672 7.172 12 8 12L16 12C16.828 12 17.5 12.672 17.5 13.5L17.5 15.5",op:"stroke",w:2}]},notification:{line:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}],solid:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"fill"},{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}]},"overflow.more":{line:[{d:"M5.25 5.25L12 12L5.25 18.75M12 5.25L18.75 12L12 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L12 12L5.25 18.75M12 5.25L18.75 12L12 18.75",op:"stroke",w:2}]},package:{line:[{d:"M12 3L20 7.5L20 16.5L12 21L4 16.5L4 7.5Z",op:"stroke",w:1.5},{d:"M4 7.5L12 12L20 7.5M12 12L12 21M8 5.25L16 9.75",op:"stroke",w:1.5}],solid:[{d:"M12 3L20 7.5L20 16.5L12 21L4 16.5L4 7.5Z",op:"fill"},{d:"M12 3L20 7.5L20 16.5L12 21L4 16.5L4 7.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M4 7.5L12 12L20 7.5M12 12L12 21M8 5.25L16 9.75",op:"clearStroke",w:1.75}],cat:[{d:"M12 5L20 9L20 17L12 21L4 17L4 9Z",op:"stroke",w:1.5},{d:"M4 9L12 13L20 9M12 13L12 21",op:"stroke",w:1.5},{d:"M5.5 8.25L5.5 4.75L8.5 6.75M18.5 8.25L18.5 4.75L15.5 6.75",op:"stroke",w:1.5,accent:!0}]},"pane.split.down":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 12.68L17.21 12.68C17.71 12.68 18.116 13.086 18.116 13.586L18.116 16.304C18.116 16.804 17.71 17.21 17.21 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 13.586C5.885 13.086 6.291 12.68 6.791 12.68Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M6.112 5.432L17.889 5.432C18.765 5.432 19.475 6.142 19.475 7.018L19.475 10.188C19.475 11.064 18.765 11.774 17.889 11.774L6.112 11.774C5.236 11.774 4.526 11.064 4.526 10.188L4.526 7.018C4.526 6.142 5.236 5.432 6.112 5.432Z",op:"clearFill"}]},"pane.split.left":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 6.791L9.509 6.791C10.009 6.791 10.415 7.197 10.415 7.697L10.415 16.304C10.415 16.804 10.009 17.21 9.509 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 7.697C5.885 7.197 6.291 6.791 6.791 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M13.36 5.432L17.889 5.432C18.765 5.432 19.475 6.142 19.475 7.018L19.475 16.983C19.475 17.859 18.765 18.569 17.889 18.569L13.36 18.569C12.484 18.569 11.774 17.859 11.774 16.983L11.774 7.018C11.774 6.142 12.484 5.432 13.36 5.432Z",op:"clearFill"}]},"pane.split.right":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M14.491 6.791L17.209 6.791C17.709 6.791 18.115 7.197 18.115 7.697L18.115 16.304C18.115 16.804 17.709 17.21 17.209 17.21L14.491 17.21C13.991 17.21 13.585 16.804 13.585 16.304L13.585 7.697C13.585 7.197 13.991 6.791 14.491 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M6.112 5.432L10.641 5.432C11.517 5.432 12.227 6.142 12.227 7.018L12.227 16.983C12.227 17.859 11.517 18.569 10.641 18.569L6.112 18.569C5.236 18.569 4.526 17.859 4.526 16.983L4.526 7.018C4.526 6.142 5.236 5.432 6.112 5.432Z",op:"clearFill"}]},"pane.split.up":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 6.791L17.21 6.791C17.71 6.791 18.116 7.197 18.116 7.697L18.116 10.415C18.116 10.915 17.71 11.321 17.21 11.321L6.791 11.321C6.291 11.321 5.885 10.915 5.885 10.415L5.885 7.697C5.885 7.197 6.291 6.791 6.791 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5,cap:"butt",join:"miter"},{d:"M6.112 12.226L17.889 12.226C18.765 12.226 19.475 12.936 19.475 13.812L19.475 16.982C19.475 17.858 18.765 18.568 17.889 18.568L6.112 18.568C5.236 18.568 4.526 17.858 4.526 16.982L4.526 13.812C4.526 12.936 5.236 12.226 6.112 12.226Z",op:"clearFill"}]},"permission.consent":{line:[{d:"M13.75 8C13.75 10.071 12.071 11.75 10 11.75C7.929 11.75 6.25 10.071 6.25 8C6.25 5.929 7.929 4.25 10 4.25C12.071 4.25 13.75 5.929 13.75 8Z",op:"stroke",w:1.5},{d:"M3.5 20.5C3.509 18.02 4.929 15.76 7.16 14.677C9.391 13.593 12.045 13.874 14 15.4",op:"stroke",w:1.5},{d:"M15 18L17 20L21 15.5",op:"stroke",w:1.5}],solid:[{d:"M14.5 8C14.5 10.485 12.485 12.5 10 12.5C7.515 12.5 5.5 10.485 5.5 8C5.5 5.515 7.515 3.5 10 3.5C12.485 3.5 14.5 5.515 14.5 8Z",op:"fill"},{d:"M2.75 20.5C2.744 17.717 4.332 15.176 6.836 13.961C9.34 12.747 12.318 13.073 14.5 14.8L14.5 20.5Z",op:"fill"},{d:"M15 18L17 20L21 15.5",op:"stroke",w:2}]},"permission.mode":{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M12 8L12 12.5",op:"stroke",w:1.5},{d:"M12.95 15.75C12.95 16.275 12.525 16.7 12 16.7C11.475 16.7 11.05 16.275 11.05 15.75C11.05 15.225 11.475 14.8 12 14.8C12.525 14.8 12.95 15.225 12.95 15.75Z",op:"fill"}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M12 8L12 12.5",op:"clearStroke",w:1.75},{d:"M13.05 15.75C13.05 16.33 12.58 16.8 12 16.8C11.42 16.8 10.95 16.33 10.95 15.75C10.95 15.17 11.42 14.7 12 14.7C12.58 14.7 13.05 15.17 13.05 15.75Z",op:"clearFill"}]},placeholder:{line:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:1.5,dash:[3.639,3.639],dashPhase:-1.82}],solid:[{d:"M6.516 4.231L17.484 4.231C18.746 4.231 19.769 5.254 19.769 6.516L19.769 17.484C19.769 18.746 18.746 19.769 17.484 19.769L6.516 19.769C5.254 19.769 4.231 18.746 4.231 17.484L4.231 6.516C4.231 5.254 5.254 4.231 6.516 4.231Z",op:"stroke",w:2,dash:[3.639,3.639],dashPhase:-1.82}]},"policy.reject":{line:[{d:"M8.554 3.729L15.447 3.729L20.271 8.554L20.271 15.447L15.446 20.271L8.553 20.271L3.729 15.446L3.729 8.553Z",op:"stroke",w:1.5},{d:"M8.324 12L15.676 12",op:"stroke",w:1.5}],solid:[{d:"M8.554 3.729L15.447 3.729L20.271 8.554L20.271 15.447L15.446 20.271L8.553 20.271L3.729 15.446L3.729 8.553Z",op:"fill"},{d:"M8.554 3.729L15.447 3.729L20.271 8.554L20.271 15.447L15.446 20.271L8.553 20.271L3.729 15.446L3.729 8.553Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.324 12L15.676 12",op:"clearStroke",w:1.75}]},"profile.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},search:{line:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M14.75 14.75L20 20",op:"stroke",w:1.5}],solid:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:2},{d:"M14.75 14.75L20 20",op:"stroke",w:2}],cat:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M14.75 14.75L20 20",op:"stroke",w:1.5},{d:"M6.75 6L6.75 3L8.5 4.5M14.25 6L14.25 3L12.5 4.5",op:"stroke",w:1.5,accent:!0}]},"search.files":{line:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M14.75 14.75L20 20",op:"stroke",w:1.5}],solid:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:2},{d:"M14.75 14.75L20 20",op:"stroke",w:2}]},"security.dangerous":{line:[{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"fill"},{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"stroke",w:1.5},{d:"M12 9.681L12 13.377",op:"clearStroke",w:1.75},{d:"M13.016 16.38C13.016 16.941 12.561 17.396 12 17.396C11.439 17.396 10.984 16.941 10.984 16.38C10.984 15.819 11.439 15.364 12 15.364C12.561 15.364 13.016 15.819 13.016 16.38Z",op:"clearFill"}],solid:[{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"fill"},{d:"M10.401 5.292C10.732 4.722 11.341 4.371 11.999 4.371C12.658 4.371 13.267 4.722 13.598 5.292L20.131 16.611C20.461 17.183 20.461 17.887 20.131 18.458C19.802 19.03 19.192 19.382 18.532 19.383L5.467 19.383C4.807 19.382 4.197 19.03 3.868 18.458C3.538 17.887 3.538 17.183 3.868 16.611Z",op:"stroke",w:1.5},{d:"M12 9.681L12 13.377",op:"clearStroke",w:1.75},{d:"M13.016 16.38C13.016 16.941 12.561 17.396 12 17.396C11.439 17.396 10.984 16.941 10.984 16.38C10.984 15.819 11.439 15.364 12 15.364C12.561 15.364 13.016 15.819 13.016 16.38Z",op:"clearFill"}]},"security.insecure":{line:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:1.5}],solid:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"fill"},{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:2},{d:"M12 14.25L12 16.75",op:"clearStroke",w:1.75}]},"security.lock":{line:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C8 5.291 9.791 3.5 12 3.5C14.209 3.5 16 5.291 16 7.5L16 10.5",op:"stroke",w:1.5}],solid:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"fill"},{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C8 5.291 9.791 3.5 12 3.5C14.209 3.5 16 5.291 16 7.5L16 10.5",op:"stroke",w:2},{d:"M12 14.25L12 16.75",op:"clearStroke",w:1.75}]},"server.health":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M7.017 12.453L9.509 12.453L10.868 9.282L13.133 15.624L14.492 12.453L16.984 12.453",op:"stroke",w:1.5}],solid:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"fill"},{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M7.017 12.453L9.509 12.453L10.868 9.282L13.133 15.624L14.492 12.453L16.984 12.453",op:"clearStroke",w:1.75}]},settings:{line:[{d:"M10.1 5.78L10.48 3.38L13.52 3.38L13.9 5.78L15.05 6.26L17.02 4.83L19.17 6.98L17.74 8.95L18.22 10.1L20.62 10.48L20.62 13.52L18.22 13.9L17.74 15.05L19.17 17.02L17.02 19.17L15.05 17.74L13.9 18.22L13.52 20.62L10.48 20.62L10.1 18.22L8.95 17.74L6.98 19.17L4.83 17.02L6.26 15.05L5.78 13.9L3.38 13.52L3.38 10.48L5.78 10.1L6.26 8.95L4.83 6.98L6.98 4.83L8.95 6.26Z",op:"stroke",w:1.5},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:1.5}],solid:[{d:"M10.1 5.78L10.48 3.38L13.52 3.38L13.9 5.78L15.05 6.26L17.02 4.83L19.17 6.98L17.74 8.95L18.22 10.1L20.62 10.48L20.62 13.52L18.22 13.9L17.74 15.05L19.17 17.02L17.02 19.17L15.05 17.74L13.9 18.22L13.52 20.62L10.48 20.62L10.1 18.22L8.95 17.74L6.98 19.17L4.83 17.02L6.26 15.05L5.78 13.9L3.38 13.52L3.38 10.48L5.78 10.1L6.26 8.95L4.83 6.98L6.98 4.83L8.95 6.26Z",op:"fill"},{d:"M10.1 5.78L10.48 3.38L13.52 3.38L13.9 5.78L15.05 6.26L17.02 4.83L19.17 6.98L17.74 8.95L18.22 10.1L20.62 10.48L20.62 13.52L18.22 13.9L17.74 15.05L19.17 17.02L17.02 19.17L15.05 17.74L13.9 18.22L13.52 20.62L10.48 20.62L10.1 18.22L8.95 17.74L6.98 19.17L4.83 17.02L6.26 15.05L5.78 13.9L3.38 13.52L3.38 10.48L5.78 10.1L6.26 8.95L4.83 6.98L6.98 4.83L8.95 6.26Z",op:"stroke",w:1.5},{d:"M15.25 12C15.25 13.795 13.795 15.25 12 15.25C10.205 15.25 8.75 13.795 8.75 12C8.75 10.205 10.205 8.75 12 8.75C13.795 8.75 15.25 10.205 15.25 12Z",op:"clearFill"}]},"site.info":{line:[{d:"M4 8L12.5 8M17.5 8L20 8M4 16L6.5 16M11.5 16L20 16",op:"stroke",w:1.5},{d:"M17.5 8C17.5 9.381 16.381 10.5 15 10.5C13.619 10.5 12.5 9.381 12.5 8C12.5 6.619 13.619 5.5 15 5.5C16.381 5.5 17.5 6.619 17.5 8Z",op:"stroke",w:1.5},{d:"M11.5 16C11.5 17.381 10.381 18.5 9 18.5C7.619 18.5 6.5 17.381 6.5 16C6.5 14.619 7.619 13.5 9 13.5C10.381 13.5 11.5 14.619 11.5 16Z",op:"stroke",w:1.5}],solid:[{d:"M17.5 8C17.5 9.381 16.381 10.5 15 10.5C13.619 10.5 12.5 9.381 12.5 8C12.5 6.619 13.619 5.5 15 5.5C16.381 5.5 17.5 6.619 17.5 8Z",op:"fill"},{d:"M17.5 8C17.5 9.381 16.381 10.5 15 10.5C13.619 10.5 12.5 9.381 12.5 8C12.5 6.619 13.619 5.5 15 5.5C16.381 5.5 17.5 6.619 17.5 8Z",op:"stroke",w:1.5},{d:"M11.5 16C11.5 17.381 10.381 18.5 9 18.5C7.619 18.5 6.5 17.381 6.5 16C6.5 14.619 7.619 13.5 9 13.5C10.381 13.5 11.5 14.619 11.5 16Z",op:"fill"},{d:"M11.5 16C11.5 17.381 10.381 18.5 9 18.5C7.619 18.5 6.5 17.381 6.5 16C6.5 14.619 7.619 13.5 9 13.5C10.381 13.5 11.5 14.619 11.5 16Z",op:"stroke",w:1.5},{d:"M4 8L12.5 8M17.5 8L20 8M4 16L6.5 16M11.5 16L20 16",op:"stroke",w:2}]},"site.permission.automaticdownloads":{line:[{d:"M12 3.5L12 14M7.75 9.75L12 14L16.25 9.75",op:"stroke",w:1.5},{d:"M4 14.5L4 17.5C4 18.881 5.119 20 6.5 20L17.5 20C18.881 20 20 18.881 20 17.5L20 14.5",op:"stroke",w:1.5}],solid:[{d:"M12 3.5L12 14M7.75 9.75L12 14L16.25 9.75",op:"stroke",w:2},{d:"M4 14.5L4 17.5C4 18.881 5.119 20 6.5 20L17.5 20C18.881 20 20 18.881 20 17.5L20 14.5",op:"stroke",w:2}]},"site.permission.autopictureinpicture":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12.453 12L16.53 12C17.03 12 17.436 12.406 17.436 12.906L17.436 15.624C17.436 16.124 17.03 16.53 16.53 16.53L12.453 16.53C11.953 16.53 11.547 16.124 11.547 15.624L11.547 12.906C11.547 12.406 11.953 12 12.453 12Z",op:"fill"},{d:"M12.453 12L16.53 12C17.03 12 17.436 12.406 17.436 12.906L17.436 15.624C17.436 16.124 17.03 16.53 16.53 16.53L12.453 16.53C11.953 16.53 11.547 16.124 11.547 15.624L11.547 12.906C11.547 12.406 11.953 12 12.453 12Z",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12.226 11.321L16.756 11.321C17.507 11.321 18.115 11.929 18.115 12.68L18.115 15.851C18.115 16.602 17.507 17.21 16.756 17.21L12.226 17.21C11.475 17.21 10.867 16.602 10.867 15.851L10.867 12.68C10.867 11.929 11.475 11.321 12.226 11.321Z",op:"clearStroke",w:1.75},{d:"M12.453 12L16.53 12C17.03 12 17.436 12.406 17.436 12.906L17.436 15.624C17.436 16.124 17.03 16.53 16.53 16.53L12.453 16.53C11.953 16.53 11.547 16.124 11.547 15.624L11.547 12.906C11.547 12.406 11.953 12 12.453 12Z",op:"fill"}]},"site.permission.backgroundsync":{line:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:1.5},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:1.5},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:1.5},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:1.5}],solid:[{d:"M4.95 9.43C6.027 6.464 8.845 4.489 12 4.489C15.155 4.489 17.973 6.464 19.05 9.43",op:"stroke",w:2},{d:"M20.32 6.72L19.05 9.43L16.33 8.17",op:"stroke",w:2},{d:"M19.05 14.57C17.973 17.536 15.155 19.511 12 19.511C8.845 19.511 6.027 17.536 4.95 14.57",op:"stroke",w:2},{d:"M3.68 17.28L4.95 14.57L7.67 15.83",op:"stroke",w:2}]},"site.permission.bluetooth":{line:[{d:"M13.75 12C13.75 12.966 12.966 13.75 12 13.75C11.034 13.75 10.25 12.966 10.25 12C10.25 11.034 11.034 10.25 12 10.25C12.966 10.25 13.75 11.034 13.75 12Z",op:"fill"},{d:"M15.18 8.82C16.935 10.577 16.935 13.423 15.18 15.18M8.82 15.18C7.065 13.423 7.065 10.577 8.82 8.82M18.32 6.7C20.89 9.766 20.89 14.234 18.32 17.3M5.68 17.3C3.11 14.234 3.11 9.766 5.68 6.7",op:"stroke",w:1.5}],solid:[{d:"M15.18 8.82C16.935 10.577 16.935 13.423 15.18 15.18M8.82 15.18C7.065 13.423 7.065 10.577 8.82 8.82M18.32 6.7C20.89 9.766 20.89 14.234 18.32 17.3M5.68 17.3C3.11 14.234 3.11 9.766 5.68 6.7",op:"stroke",w:2},{d:"M14.25 12C14.25 13.243 13.243 14.25 12 14.25C10.757 14.25 9.75 13.243 9.75 12C9.75 10.757 10.757 9.75 12 9.75C13.243 9.75 14.25 10.757 14.25 12Z",op:"fill"}]},"site.permission.camera":{line:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5}],solid:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"fill"},{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"fill"},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5}]},"site.permission.camera.blocked":{line:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"fill"},{d:"M5.25 6.5L13 6.5C14.381 6.5 15.5 7.619 15.5 9L15.5 15C15.5 16.381 14.381 17.5 13 17.5L5.25 17.5C3.869 17.5 2.75 16.381 2.75 15L2.75 9C2.75 7.619 3.869 6.5 5.25 6.5Z",op:"stroke",w:1.5},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"fill"},{d:"M15.5 10.25L19.9 7.5C20.13 7.378 20.407 7.385 20.632 7.518C20.856 7.65 20.995 7.89 21 8.15L21 15.85C20.995 16.11 20.856 16.35 20.632 16.482C20.407 16.615 20.13 16.622 19.9 16.5L15.5 13.75Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.clipboard":{line:[{d:"M8.5 5L7 5C5.895 5 5 5.895 5 7L5 19C5 20.105 5.895 21 7 21L17 21C18.105 21 19 20.105 19 19L19 7C19 5.895 18.105 5 17 5L15.5 5",op:"stroke",w:1.5},{d:"M9.75 3L14.25 3C14.94 3 15.5 3.56 15.5 4.25L15.5 5.75C15.5 6.44 14.94 7 14.25 7L9.75 7C9.06 7 8.5 6.44 8.5 5.75L8.5 4.25C8.5 3.56 9.06 3 9.75 3Z",op:"stroke",w:1.5},{d:"M9 12L15 12M9 15.5L13 15.5",op:"stroke",w:1.5}],solid:[{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"fill"},{d:"M7 5L17 5C18.105 5 19 5.895 19 7L19 19C19 20.105 18.105 21 17 21L7 21C5.895 21 5 20.105 5 19L5 7C5 5.895 5.895 5 7 5Z",op:"stroke",w:1.5},{d:"M9 12L15 12M9 15.5L13 15.5",op:"clearStroke",w:1.75},{d:"M8.5 7.5L15.5 7.5",op:"clearStroke",w:2.5},{d:"M9.75 2.75L14.25 2.75C14.94 2.75 15.5 3.31 15.5 4L15.5 5.25C15.5 5.94 14.94 6.5 14.25 6.5L9.75 6.5C9.06 6.5 8.5 5.94 8.5 5.25L8.5 4C8.5 3.31 9.06 2.75 9.75 2.75Z",op:"fill"}]},"site.permission.fileediting":{line:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"stroke",w:1.5},{d:"M8.75 17.75L9.35 15.4L14 10.75C14.456 10.294 15.194 10.294 15.65 10.75C16.106 11.206 16.106 11.944 15.65 12.4L11 17.1Z",op:"stroke",w:1.5}],solid:[{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"fill"},{d:"M13.5 3L7.5 3C6.119 3 5 4.119 5 5.5L5 18.5C5 19.881 6.119 21 7.5 21L16.5 21C17.881 21 19 19.881 19 18.5L19 8.5Z",op:"stroke",w:1.5},{d:"M13.5 3L13.5 6.5C13.5 7.605 14.395 8.5 15.5 8.5L19 8.5",op:"clearStroke",w:1.75},{d:"M8.75 17.75L9.35 15.4L14 10.75C14.456 10.294 15.194 10.294 15.65 10.75C16.106 11.206 16.106 11.944 15.65 12.4L11 17.1Z",op:"clearStroke",w:1.75}]},"site.permission.hid":{line:[{d:"M7.5 6.5L16.5 6.5C18.985 6.5 21 8.515 21 11L21 15.25C21.008 16.453 20.234 17.522 19.088 17.888C17.943 18.255 16.692 17.834 16 16.85L15 15.5L9 15.5L8 16.85C7.308 17.834 6.057 18.255 4.912 17.888C3.766 17.522 2.992 16.453 3 15.25L3 11C3 8.515 5.015 6.5 7.5 6.5Z",op:"stroke",w:1.5},{d:"M7.5 9.5L7.5 13M5.75 11.25L9.25 11.25",op:"stroke",w:1.5},{d:"M16.6 10.25C16.6 10.858 16.108 11.35 15.5 11.35C14.892 11.35 14.4 10.858 14.4 10.25C14.4 9.642 14.892 9.15 15.5 9.15C16.108 9.15 16.6 9.642 16.6 10.25Z",op:"fill"},{d:"M18.85 12.5C18.85 13.108 18.358 13.6 17.75 13.6C17.142 13.6 16.65 13.108 16.65 12.5C16.65 11.892 17.142 11.4 17.75 11.4C18.358 11.4 18.85 11.892 18.85 12.5Z",op:"fill"}],solid:[{d:"M7.5 6.5L16.5 6.5C18.985 6.5 21 8.515 21 11L21 15.25C21.008 16.453 20.234 17.522 19.088 17.888C17.943 18.255 16.692 17.834 16 16.85L15 15.5L9 15.5L8 16.85C7.308 17.834 6.057 18.255 4.912 17.888C3.766 17.522 2.992 16.453 3 15.25L3 11C3 8.515 5.015 6.5 7.5 6.5Z",op:"fill"},{d:"M7.5 6.5L16.5 6.5C18.985 6.5 21 8.515 21 11L21 15.25C21.008 16.453 20.234 17.522 19.088 17.888C17.943 18.255 16.692 17.834 16 16.85L15 15.5L9 15.5L8 16.85C7.308 17.834 6.057 18.255 4.912 17.888C3.766 17.522 2.992 16.453 3 15.25L3 11C3 8.515 5.015 6.5 7.5 6.5Z",op:"stroke",w:1.5},{d:"M7.5 9.5L7.5 13M5.75 11.25L9.25 11.25",op:"clearStroke",w:1.75},{d:"M16.7 10.25C16.7 10.913 16.163 11.45 15.5 11.45C14.837 11.45 14.3 10.913 14.3 10.25C14.3 9.587 14.837 9.05 15.5 9.05C16.163 9.05 16.7 9.587 16.7 10.25Z",op:"clearFill"},{d:"M18.95 12.5C18.95 13.163 18.413 13.7 17.75 13.7C17.087 13.7 16.55 13.163 16.55 12.5C16.55 11.837 17.087 11.3 17.75 11.3C18.413 11.3 18.95 11.837 18.95 12.5Z",op:"clearFill"}]},"site.permission.images":{line:[{d:"M6.007 5.085L17.993 5.085C19.266 5.085 20.298 6.117 20.298 7.39L20.298 16.61C20.298 17.883 19.266 18.915 17.993 18.915L6.007 18.915C4.734 18.915 3.702 17.883 3.702 16.61L3.702 7.39C3.702 6.117 4.734 5.085 6.007 5.085Z",op:"stroke",w:1.5},{d:"M4.163 17.071L8.773 12.461L12.922 16.61L15.227 14.305L19.837 18.915",op:"stroke",w:1.5},{d:"M16.841 9.234C16.841 10.125 16.118 10.848 15.227 10.848C14.336 10.848 13.613 10.125 13.613 9.234C13.613 8.343 14.336 7.62 15.227 7.62C16.118 7.62 16.841 8.343 16.841 9.234Z",op:"stroke",w:1.5}],solid:[{d:"M6.007 5.085L17.993 5.085C19.266 5.085 20.298 6.117 20.298 7.39L20.298 16.61C20.298 17.883 19.266 18.915 17.993 18.915L6.007 18.915C4.734 18.915 3.702 17.883 3.702 16.61L3.702 7.39C3.702 6.117 4.734 5.085 6.007 5.085Z",op:"fill"},{d:"M6.007 5.085L17.993 5.085C19.266 5.085 20.298 6.117 20.298 7.39L20.298 16.61C20.298 17.883 19.266 18.915 17.993 18.915L6.007 18.915C4.734 18.915 3.702 17.883 3.702 16.61L3.702 7.39C3.702 6.117 4.734 5.085 6.007 5.085Z",op:"stroke",w:1.5},{d:"M4.163 17.071L8.773 12.461L12.922 16.61L15.227 14.305L19.837 18.915",op:"clearStroke",w:1.75},{d:"M16.841 9.234C16.841 10.125 16.118 10.848 15.227 10.848C14.336 10.848 13.613 10.125 13.613 9.234C13.613 8.343 14.336 7.62 15.227 7.62C16.118 7.62 16.841 8.343 16.841 9.234Z",op:"clearStroke",w:1.75}]},"site.permission.insecurecontent.blocked":{line:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"fill"},{d:"M7.5 10.5L16.5 10.5C17.881 10.5 19 11.619 19 13L19 18C19 19.381 17.881 20.5 16.5 20.5L7.5 20.5C6.119 20.5 5 19.381 5 18L5 13C5 11.619 6.119 10.5 7.5 10.5Z",op:"stroke",w:1.5},{d:"M8 10.5L8 7.5C7.997 5.634 9.284 4.014 11.102 3.596C12.921 3.177 14.787 4.071 15.6 5.75",op:"stroke",w:2},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.javascript":{line:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:1.5}],solid:[{d:"M9 4L8 4C6.895 4 6 4.895 6 6L6 9.5C6 10.881 4.881 12 3.5 12C4.881 12 6 13.119 6 14.5L6 18C6 19.105 6.895 20 8 20L9 20M15 4L16 4C17.105 4 18 4.895 18 6L18 9.5C18 10.881 19.119 12 20.5 12C19.119 12 18 13.119 18 14.5L18 18C18 19.105 17.105 20 16 20L15 20",op:"stroke",w:2}]},"site.permission.localfonts":{line:[{d:"M3.5 19L8.75 5L14 19M5.5 14L12 14",op:"stroke",w:1.5},{d:"M20.5 16.25C20.5 17.769 19.269 19 17.75 19C16.231 19 15 17.769 15 16.25C15 14.731 16.231 13.5 17.75 13.5C19.269 13.5 20.5 14.731 20.5 16.25Z",op:"stroke",w:1.5},{d:"M20.5 13.5L20.5 19",op:"stroke",w:1.5}],solid:[{d:"M3.5 19L8.75 5L14 19M5.5 14L12 14",op:"stroke",w:2},{d:"M20.5 16.25C20.5 17.769 19.269 19 17.75 19C16.231 19 15 17.769 15 16.25C15 14.731 16.231 13.5 17.75 13.5C19.269 13.5 20.5 14.731 20.5 16.25Z",op:"stroke",w:2},{d:"M20.5 13.5L20.5 19",op:"stroke",w:2}]},"site.permission.location":{line:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}],solid:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"fill"},{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5}]},"site.permission.location.blocked":{line:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"fill"},{d:"M20.25 3.75L3.75 10.75L11.25 12.75L13.25 20.25Z",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.microphone":{line:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5}],solid:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"fill"},{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5}]},"site.permission.microphone.blocked":{line:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"fill"},{d:"M12 3L12 3C13.657 3 15 4.343 15 6L15 11.5C15 13.157 13.657 14.5 12 14.5L12 14.5C10.343 14.5 9 13.157 9 11.5L9 6C9 4.343 10.343 3 12 3Z",op:"stroke",w:1.5},{d:"M5.5 11.5C5.5 15.09 8.41 18 12 18C15.59 18 18.5 15.09 18.5 11.5M12 18L12 21",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.midi":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 13.359L9.282 19.248M14.718 13.359L14.718 19.248",op:"stroke",w:1.5},{d:"M8.602 4.752L9.962 4.752C10.337 4.752 10.641 5.056 10.641 5.431L10.641 12.68C10.641 13.055 10.337 13.359 9.962 13.359L8.602 13.359C8.227 13.359 7.923 13.055 7.923 12.68L7.923 5.431C7.923 5.056 8.227 4.752 8.602 4.752Z",op:"fill"},{d:"M8.602 4.752L9.962 4.752C10.337 4.752 10.641 5.056 10.641 5.431L10.641 12.68C10.641 13.055 10.337 13.359 9.962 13.359L8.602 13.359C8.227 13.359 7.923 13.055 7.923 12.68L7.923 5.431C7.923 5.056 8.227 4.752 8.602 4.752Z",op:"stroke",w:1.5},{d:"M14.038 4.752L15.398 4.752C15.773 4.752 16.077 5.056 16.077 5.431L16.077 12.68C16.077 13.055 15.773 13.359 15.398 13.359L14.038 13.359C13.663 13.359 13.359 13.055 13.359 12.68L13.359 5.431C13.359 5.056 13.663 4.752 14.038 4.752Z",op:"fill"},{d:"M14.038 4.752L15.398 4.752C15.773 4.752 16.077 5.056 16.077 5.431L16.077 12.68C16.077 13.055 15.773 13.359 15.398 13.359L14.038 13.359C13.663 13.359 13.359 13.055 13.359 12.68L13.359 5.431C13.359 5.056 13.663 4.752 14.038 4.752Z",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 13.359L9.282 19.248M14.718 13.359L14.718 19.248",op:"clearStroke",w:1.75},{d:"M7.244 4.752L7.244 12.68C7.244 13.18 7.65 13.586 8.15 13.586L10.415 13.586C10.915 13.586 11.321 13.18 11.321 12.68L11.321 4.752M12.68 4.752L12.68 12.68C12.68 13.18 13.086 13.586 13.586 13.586L15.851 13.586C16.351 13.586 16.757 13.18 16.757 12.68L16.757 4.752",op:"clearStroke",w:1.75}]},"site.permission.notifications":{line:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}],solid:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"fill"},{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5}]},"site.permission.notifications.blocked":{line:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"fill"},{d:"M12 3C8.686 3 6 5.686 6 9L6 13.5L4.5 16.75L19.5 16.75L18 13.5L18 9C18 5.686 15.314 3 12 3Z",op:"stroke",w:1.5},{d:"M10.25 19.25C10.25 20.216 11.034 21 12 21C12.966 21 13.75 20.216 13.75 19.25",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.popups":{line:[{d:"M5.5 8L14 8C15.381 8 16.5 9.119 16.5 10.5L16.5 17.5C16.5 18.881 15.381 20 14 20L5.5 20C4.119 20 3 18.881 3 17.5L3 10.5C3 9.119 4.119 8 5.5 8Z",op:"stroke",w:1.5},{d:"M14 2L19 2C20.933 2 22.5 3.567 22.5 5.5L22.5 9.5C22.5 11.433 20.933 13 19 13L14 13C12.067 13 10.5 11.433 10.5 9.5L10.5 5.5C10.5 3.567 12.067 2 14 2Z",op:"clearFill"},{d:"M14 3.5L19 3.5C20.105 3.5 21 4.395 21 5.5L21 9.5C21 10.605 20.105 11.5 19 11.5L14 11.5C12.895 11.5 12 10.605 12 9.5L12 5.5C12 4.395 12.895 3.5 14 3.5Z",op:"stroke",w:1.5}],solid:[{d:"M5.5 8L14 8C15.381 8 16.5 9.119 16.5 10.5L16.5 17.5C16.5 18.881 15.381 20 14 20L5.5 20C4.119 20 3 18.881 3 17.5L3 10.5C3 9.119 4.119 8 5.5 8Z",op:"fill"},{d:"M5.5 8L14 8C15.381 8 16.5 9.119 16.5 10.5L16.5 17.5C16.5 18.881 15.381 20 14 20L5.5 20C4.119 20 3 18.881 3 17.5L3 10.5C3 9.119 4.119 8 5.5 8Z",op:"stroke",w:1.5},{d:"M14 2L19 2C20.933 2 22.5 3.567 22.5 5.5L22.5 9.5C22.5 11.433 20.933 13 19 13L14 13C12.067 13 10.5 11.433 10.5 9.5L10.5 5.5C10.5 3.567 12.067 2 14 2Z",op:"clearFill"},{d:"M14 3.5L19 3.5C20.105 3.5 21 4.395 21 5.5L21 9.5C21 10.605 20.105 11.5 19 11.5L14 11.5C12.895 11.5 12 10.605 12 9.5L12 5.5C12 4.395 12.895 3.5 14 3.5Z",op:"fill"}]},"site.permission.sensors":{line:[{d:"M10 3.5L14 3.5C15.105 3.5 16 4.395 16 5.5L16 18.5C16 19.605 15.105 20.5 14 20.5L10 20.5C8.895 20.5 8 19.605 8 18.5L8 5.5C8 4.395 8.895 3.5 10 3.5Z",op:"stroke",w:1.5},{d:"M5 8.5C3.324 10.532 3.324 13.468 5 15.5M19 8.5C20.676 10.532 20.676 13.468 19 15.5",op:"stroke",w:1.5}],solid:[{d:"M10 3.5L14 3.5C15.105 3.5 16 4.395 16 5.5L16 18.5C16 19.605 15.105 20.5 14 20.5L10 20.5C8.895 20.5 8 19.605 8 18.5L8 5.5C8 4.395 8.895 3.5 10 3.5Z",op:"fill"},{d:"M10 3.5L14 3.5C15.105 3.5 16 4.395 16 5.5L16 18.5C16 19.605 15.105 20.5 14 20.5L10 20.5C8.895 20.5 8 19.605 8 18.5L8 5.5C8 4.395 8.895 3.5 10 3.5Z",op:"stroke",w:1.5},{d:"M5 8.5C3.324 10.532 3.324 13.468 5 15.5M19 8.5C20.676 10.532 20.676 13.468 19 15.5",op:"stroke",w:1.5},{d:"M11 17.75L13 17.75",op:"clearStroke",w:1.75}]},"site.permission.serial":{line:[{d:"M3.9 7L20.1 7C20.41 6.999 20.702 7.142 20.892 7.387C21.082 7.632 21.147 7.95 21.07 8.25L19.17 15.75C18.938 16.769 18.035 17.494 16.99 17.5L7.01 17.5C5.965 17.494 5.062 16.769 4.83 15.75L2.93 8.25C2.853 7.95 2.918 7.632 3.108 7.387C3.298 7.142 3.59 6.999 3.9 7Z",op:"stroke",w:1.5},{d:"M9.45 10.5C9.45 11.163 8.913 11.7 8.25 11.7C7.587 11.7 7.05 11.163 7.05 10.5C7.05 9.837 7.587 9.3 8.25 9.3C8.913 9.3 9.45 9.837 9.45 10.5Z",op:"fill"},{d:"M13.2 10.5C13.2 11.163 12.663 11.7 12 11.7C11.337 11.7 10.8 11.163 10.8 10.5C10.8 9.837 11.337 9.3 12 9.3C12.663 9.3 13.2 9.837 13.2 10.5Z",op:"fill"},{d:"M16.95 10.5C16.95 11.163 16.413 11.7 15.75 11.7C15.087 11.7 14.55 11.163 14.55 10.5C14.55 9.837 15.087 9.3 15.75 9.3C16.413 9.3 16.95 9.837 16.95 10.5Z",op:"fill"},{d:"M11.3 14C11.3 14.663 10.763 15.2 10.1 15.2C9.437 15.2 8.9 14.663 8.9 14C8.9 13.337 9.437 12.8 10.1 12.8C10.763 12.8 11.3 13.337 11.3 14Z",op:"fill"},{d:"M15.1 14C15.1 14.663 14.563 15.2 13.9 15.2C13.237 15.2 12.7 14.663 12.7 14C12.7 13.337 13.237 12.8 13.9 12.8C14.563 12.8 15.1 13.337 15.1 14Z",op:"fill"}],solid:[{d:"M3.9 7L20.1 7C20.41 6.999 20.702 7.142 20.892 7.387C21.082 7.632 21.147 7.95 21.07 8.25L19.17 15.75C18.938 16.769 18.035 17.494 16.99 17.5L7.01 17.5C5.965 17.494 5.062 16.769 4.83 15.75L2.93 8.25C2.853 7.95 2.918 7.632 3.108 7.387C3.298 7.142 3.59 6.999 3.9 7Z",op:"fill"},{d:"M3.9 7L20.1 7C20.41 6.999 20.702 7.142 20.892 7.387C21.082 7.632 21.147 7.95 21.07 8.25L19.17 15.75C18.938 16.769 18.035 17.494 16.99 17.5L7.01 17.5C5.965 17.494 5.062 16.769 4.83 15.75L2.93 8.25C2.853 7.95 2.918 7.632 3.108 7.387C3.298 7.142 3.59 6.999 3.9 7Z",op:"stroke",w:1.5},{d:"M9.5 10.5C9.5 11.19 8.94 11.75 8.25 11.75C7.56 11.75 7 11.19 7 10.5C7 9.81 7.56 9.25 8.25 9.25C8.94 9.25 9.5 9.81 9.5 10.5Z",op:"clearFill"},{d:"M13.25 10.5C13.25 11.19 12.69 11.75 12 11.75C11.31 11.75 10.75 11.19 10.75 10.5C10.75 9.81 11.31 9.25 12 9.25C12.69 9.25 13.25 9.81 13.25 10.5Z",op:"clearFill"},{d:"M17 10.5C17 11.19 16.44 11.75 15.75 11.75C15.06 11.75 14.5 11.19 14.5 10.5C14.5 9.81 15.06 9.25 15.75 9.25C16.44 9.25 17 9.81 17 10.5Z",op:"clearFill"},{d:"M11.35 14C11.35 14.69 10.79 15.25 10.1 15.25C9.41 15.25 8.85 14.69 8.85 14C8.85 13.31 9.41 12.75 10.1 12.75C10.79 12.75 11.35 13.31 11.35 14Z",op:"clearFill"},{d:"M15.15 14C15.15 14.69 14.59 15.25 13.9 15.25C13.21 15.25 12.65 14.69 12.65 14C12.65 13.31 13.21 12.75 13.9 12.75C14.59 12.75 15.15 13.31 15.15 14Z",op:"clearFill"}]},"site.permission.sound":{line:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5}],solid:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"fill"},{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5}]},"site.permission.sound.blocked":{line:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"stroke",w:1.5}],solid:[{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"fill"},{d:"M4 9.25L4 14.75C4 15.164 4.336 15.5 4.75 15.5L7.5 15.5L11.75 19.25L11.75 4.75L7.5 8.5L4.75 8.5C4.336 8.5 4 8.836 4 9.25Z",op:"stroke",w:1.5},{d:"M14.83 9.17C15.581 9.92 16.003 10.938 16.003 12C16.003 13.062 15.581 14.08 14.83 14.83M17.48 6.52C20.506 9.547 20.506 14.453 17.48 17.48",op:"stroke",w:1.5},{d:"M2.94 5.06L18.94 21.06",op:"clearStroke",w:1.75},{d:"M4 4L20 20",op:"fill"},{d:"M4 4L20 20",op:"stroke",w:2,join:"miter"}]},"site.permission.thirdpartysignin":{line:[{d:"M13.25 8C13.25 10.071 11.571 11.75 9.5 11.75C7.429 11.75 5.75 10.071 5.75 8C5.75 5.929 7.429 4.25 9.5 4.25C11.571 4.25 13.25 5.929 13.25 8Z",op:"stroke",w:1.5},{d:"M3 20.5C3.009 18.02 4.429 15.76 6.66 14.677C8.891 13.593 11.545 13.874 13.5 15.4",op:"stroke",w:1.5},{d:"M17 17.25C17 18.493 15.993 19.5 14.75 19.5C13.507 19.5 12.5 18.493 12.5 17.25C12.5 16.007 13.507 15 14.75 15C15.993 15 17 16.007 17 17.25Z",op:"stroke",w:1.5},{d:"M17 17.25L20.75 17.25M19.5 17.25L19.5 19.25",op:"stroke",w:1.5}],solid:[{d:"M13.25 8C13.25 10.071 11.571 11.75 9.5 11.75C7.429 11.75 5.75 10.071 5.75 8C5.75 5.929 7.429 4.25 9.5 4.25C11.571 4.25 13.25 5.929 13.25 8Z",op:"fill"},{d:"M13.25 8C13.25 10.071 11.571 11.75 9.5 11.75C7.429 11.75 5.75 10.071 5.75 8C5.75 5.929 7.429 4.25 9.5 4.25C11.571 4.25 13.25 5.929 13.25 8Z",op:"stroke",w:1.5},{d:"M2.25 20.5C2.253 18.085 3.458 15.829 5.465 14.485C7.471 13.141 10.015 12.884 12.25 13.8",op:"fill"},{d:"M2.25 20.5C2.253 18.085 3.458 15.829 5.465 14.485C7.471 13.141 10.015 12.884 12.25 13.8",op:"stroke",w:1.5},{d:"M17 17.25C17 18.493 15.993 19.5 14.75 19.5C13.507 19.5 12.5 18.493 12.5 17.25C12.5 16.007 13.507 15 14.75 15C15.993 15 17 16.007 17 17.25Z",op:"stroke",w:1.5},{d:"M17 17.25L20.75 17.25M19.5 17.25L19.5 19.25",op:"stroke",w:1.5}]},"site.permission.usb":{line:[{d:"M9.5 3L14.5 3C15.052 3 15.5 3.448 15.5 4L15.5 7.5C15.5 8.052 15.052 8.5 14.5 8.5L9.5 8.5C8.948 8.5 8.5 8.052 8.5 7.5L8.5 4C8.5 3.448 8.948 3 9.5 3Z",op:"stroke",w:1.5},{d:"M10.75 5.5L11.25 5.5M12.75 5.5L13.25 5.5",op:"stroke",w:1.5},{d:"M6.5 8.5L17.5 8.5L17.5 13.5C17.5 15.157 16.157 16.5 14.5 16.5L9.5 16.5C7.843 16.5 6.5 15.157 6.5 13.5Z",op:"stroke",w:1.5},{d:"M12 16.5L12 21",op:"stroke",w:1.5}],solid:[{d:"M9.5 3L14.5 3C15.052 3 15.5 3.448 15.5 4L15.5 7.5C15.5 8.052 15.052 8.5 14.5 8.5L9.5 8.5C8.948 8.5 8.5 8.052 8.5 7.5L8.5 4C8.5 3.448 8.948 3 9.5 3Z",op:"fill"},{d:"M9.5 3L14.5 3C15.052 3 15.5 3.448 15.5 4L15.5 7.5C15.5 8.052 15.052 8.5 14.5 8.5L9.5 8.5C8.948 8.5 8.5 8.052 8.5 7.5L8.5 4C8.5 3.448 8.948 3 9.5 3Z",op:"stroke",w:1.5},{d:"M6.5 8.5L17.5 8.5L17.5 13.5C17.5 15.157 16.157 16.5 14.5 16.5L9.5 16.5C7.843 16.5 6.5 15.157 6.5 13.5Z",op:"fill"},{d:"M6.5 8.5L17.5 8.5L17.5 13.5C17.5 15.157 16.157 16.5 14.5 16.5L9.5 16.5C7.843 16.5 6.5 15.157 6.5 13.5Z",op:"stroke",w:1.5},{d:"M12 16.5L12 21",op:"stroke",w:1.5},{d:"M10.75 5.5L11.25 5.5M12.75 5.5L13.25 5.5",op:"clearStroke",w:1.75}]},"site.permission.windowmanagement":{line:[{d:"M4 5L9.25 5C10.078 5 10.75 5.672 10.75 6.5L10.75 11C10.75 11.828 10.078 12.5 9.25 12.5L4 12.5C3.172 12.5 2.5 11.828 2.5 11L2.5 6.5C2.5 5.672 3.172 5 4 5Z",op:"stroke",w:1.5},{d:"M14.75 5L20 5C20.828 5 21.5 5.672 21.5 6.5L21.5 11C21.5 11.828 20.828 12.5 20 12.5L14.75 12.5C13.922 12.5 13.25 11.828 13.25 11L13.25 6.5C13.25 5.672 13.922 5 14.75 5Z",op:"stroke",w:1.5},{d:"M7 12.5L7 15L17 15L17 12.5M12 15L12 18.5M8.5 18.5L15.5 18.5",op:"stroke",w:1.5}],solid:[{d:"M4 5L9.25 5C10.078 5 10.75 5.672 10.75 6.5L10.75 11C10.75 11.828 10.078 12.5 9.25 12.5L4 12.5C3.172 12.5 2.5 11.828 2.5 11L2.5 6.5C2.5 5.672 3.172 5 4 5Z",op:"fill"},{d:"M4 5L9.25 5C10.078 5 10.75 5.672 10.75 6.5L10.75 11C10.75 11.828 10.078 12.5 9.25 12.5L4 12.5C3.172 12.5 2.5 11.828 2.5 11L2.5 6.5C2.5 5.672 3.172 5 4 5Z",op:"stroke",w:1.5},{d:"M14.75 5L20 5C20.828 5 21.5 5.672 21.5 6.5L21.5 11C21.5 11.828 20.828 12.5 20 12.5L14.75 12.5C13.922 12.5 13.25 11.828 13.25 11L13.25 6.5C13.25 5.672 13.922 5 14.75 5Z",op:"fill"},{d:"M14.75 5L20 5C20.828 5 21.5 5.672 21.5 6.5L21.5 11C21.5 11.828 20.828 12.5 20 12.5L14.75 12.5C13.922 12.5 13.25 11.828 13.25 11L13.25 6.5C13.25 5.672 13.922 5 14.75 5Z",op:"stroke",w:1.5},{d:"M7 12.5L7 15L17 15L17 12.5M12 15L12 18.5M8.5 18.5L15.5 18.5",op:"stroke",w:1.5}]},space:{line:[{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"stroke",w:1.5},{d:"M2.75 7.5L2.75 16.5M21.25 7.5L21.25 16.5",op:"stroke",w:1.5}],solid:[{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"fill"},{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"stroke",w:1.5},{d:"M2.75 7.5L2.75 16.5M21.25 7.5L21.25 16.5",op:"stroke",w:2}],cat:[{d:"M8.5 4.5L15.5 4.5C16.881 4.5 18 5.619 18 7L18 17C18 18.381 16.881 19.5 15.5 19.5L8.5 19.5C7.119 19.5 6 18.381 6 17L6 7C6 5.619 7.119 4.5 8.5 4.5Z",op:"stroke",w:1.5},{d:"M2.75 7.5L2.75 16.5M21.25 7.5L21.25 16.5",op:"stroke",w:1.5},{d:"M8.5 4.5L8.5 2.25L10.25 4M15.5 4.5L15.5 2.25L13.75 4",op:"stroke",w:1.5,accent:!0}]},"state.changed":{line:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8.75 15.25L9.35 12.9L14 8.25C14.456 7.794 15.194 7.794 15.65 8.25C16.106 8.706 16.106 9.444 15.65 9.9L11 14.6Z",op:"stroke",w:1.5}],solid:[{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"fill"},{d:"M20.5 12C20.5 16.694 16.694 20.5 12 20.5C7.306 20.5 3.5 16.694 3.5 12C3.5 7.306 7.306 3.5 12 3.5C16.694 3.5 20.5 7.306 20.5 12Z",op:"stroke",w:1.5},{d:"M8.75 15.25L9.35 12.9L14 8.25C14.456 7.794 15.194 7.794 15.65 8.25C16.106 8.706 16.106 9.444 15.65 9.9L11 14.6Z",op:"clearStroke",w:1.6}]},"state.idle":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2}],cat:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M10.048 9.614L13.952 9.614L10.048 14.386L13.952 14.386",op:"stroke",w:1.5,accent:!0}]},"state.off":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M6.794 6.794L17.206 17.206",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M5.926 5.926L18.073 18.073",op:"clearStroke",w:1.75}]},"state.pinned":{line:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}],solid:[{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"fill"},{d:"M9 3.5L15 3.5C15.69 3.5 16.25 4.06 16.25 4.75C16.25 5.44 15.69 6 15 6L14.5 6L14.5 10L17.5 12.5L17.5 15L6.5 15L6.5 12.5L9.5 10L9.5 6L9 6C8.31 6 7.75 5.44 7.75 4.75C7.75 4.06 8.31 3.5 9 3.5Z",op:"stroke",w:1.5},{d:"M12 15L12 20.5",op:"stroke",w:1.5}]},"state.selected":{line:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:1.5}],solid:[{d:"M5.25 12.169L9.638 16.557L18.75 7.444",op:"stroke",w:2}]},"status.attention":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M14.82 12C14.82 13.557 13.557 14.82 12 14.82C10.443 14.82 9.18 13.557 9.18 12C9.18 10.443 10.443 9.18 12 9.18C13.557 9.18 14.82 10.443 14.82 12Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M16.555 12C16.555 14.516 14.516 16.555 12 16.555C9.484 16.555 7.445 14.516 7.445 12C7.445 9.484 9.484 7.445 12 7.445C14.516 7.445 16.555 9.484 16.555 12Z",op:"clearStroke",w:2}]},"status.complete":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}]},"status.critical":{line:[{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"fill"},{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"stroke",w:1.5},{d:"M12 7.95L12 12.45",op:"clearStroke",w:1.75},{d:"M12.99 15.6C12.99 16.147 12.547 16.59 12 16.59C11.453 16.59 11.01 16.147 11.01 15.6C11.01 15.053 11.453 14.61 12 14.61C12.547 14.61 12.99 15.053 12.99 15.6Z",op:"clearFill"}],solid:[{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"fill"},{d:"M8.625 3.9L15.375 3.9L20.1 8.625L20.1 15.375L15.375 20.1L8.625 20.1L3.9 15.375L3.9 8.625Z",op:"stroke",w:1.5},{d:"M12 7.95L12 12.45",op:"clearStroke",w:1.75},{d:"M12.99 15.6C12.99 16.147 12.547 16.59 12 16.59C11.453 16.59 11.01 16.147 11.01 15.6C11.01 15.053 11.453 14.61 12 14.61C12.547 14.61 12.99 15.053 12.99 15.6Z",op:"clearFill"}]},"status.disconnected":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096L12 12.434",op:"stroke",w:1.5},{d:"M12.868 15.471C12.868 15.95 12.479 16.339 12 16.339C11.521 16.339 11.132 15.95 11.132 15.471C11.132 14.992 11.521 14.603 12 14.603C12.479 14.603 12.868 14.992 12.868 15.471Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096L12 12.434",op:"clearStroke",w:1.75},{d:"M12.954 15.471C12.954 15.998 12.527 16.425 12 16.425C11.473 16.425 11.046 15.998 11.046 15.471C11.046 14.944 11.473 14.517 12 14.517C12.527 14.517 12.954 14.944 12.954 15.471Z",op:"clearFill"}]},"status.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},"status.error":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"clearStroke",w:1.75}]},"status.info":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 11.132L12 15.904",op:"stroke",w:1.5},{d:"M12.868 8.312C12.868 8.791 12.479 9.18 12 9.18C11.521 9.18 11.132 8.791 11.132 8.312C11.132 7.833 11.521 7.444 12 7.444C12.479 7.444 12.868 7.833 12.868 8.312Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 11.132L12 15.904",op:"clearStroke",w:1.75},{d:"M12.954 8.312C12.954 8.839 12.527 9.266 12 9.266C11.473 9.266 11.046 8.839 11.046 8.312C11.046 7.785 11.473 7.358 12 7.358C12.527 7.358 12.954 7.785 12.954 8.312Z",op:"clearFill"}]},"status.inprogress":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096C14.156 8.096 15.904 9.844 15.904 12.001C15.904 14.157 14.156 15.905 12 15.905Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2},{d:"M12 7.662C14.396 7.662 16.338 9.604 16.338 12C16.338 14.396 14.396 16.338 12 16.338Z",op:"fill"}]},"status.needsinput":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M14.82 12C14.82 13.557 13.557 14.82 12 14.82C10.443 14.82 9.18 13.557 9.18 12C9.18 10.443 10.443 9.18 12 9.18C13.557 9.18 14.82 10.443 14.82 12Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M16.555 12C16.555 14.516 14.516 16.555 12 16.555C9.484 16.555 7.445 14.516 7.445 12C7.445 9.484 9.484 7.445 12 7.445C14.516 7.445 16.555 9.484 16.555 12Z",op:"clearStroke",w:2}]},"status.progress":{line:[{d:"M17.854 12C17.854 15.513 15.007 18.36 11.494 18.36C7.981 18.36 5.134 15.513 5.134 12C5.134 8.487 7.981 5.64 11.494 5.64C15.007 5.64 17.854 8.487 17.854 12Z",op:"stroke",w:1.5},{d:"M11.494 5.64C14.25 5.639 16.694 7.413 17.546 10.035C18.397 12.656 17.464 15.528 15.233 17.147C13.002 18.766 9.983 18.764 7.754 17.142",op:"stroke",w:3.5}],solid:[{d:"M17.854 12C17.854 15.513 15.007 18.36 11.494 18.36C7.981 18.36 5.134 15.513 5.134 12C5.134 8.487 7.981 5.64 11.494 5.64C15.007 5.64 17.854 8.487 17.854 12Z",op:"stroke",w:2},{d:"M11.494 5.64C14.25 5.639 16.694 7.413 17.546 10.035C18.397 12.656 17.464 15.528 15.233 17.147C13.002 18.766 9.983 18.764 7.754 17.142",op:"stroke",w:4}]},"status.running":{line:[{d:"M12 4.625C16.073 4.625 19.375 7.927 19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12",op:"stroke",w:1.5}],solid:[{d:"M12 4.625C16.073 4.625 19.375 7.927 19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12",op:"stroke",w:2}]},"status.success":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"fill"},{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}]},"status.warning":{line:[{d:"M10.27 4.75C10.628 4.133 11.287 3.754 12 3.754C12.713 3.754 13.372 4.133 13.73 4.75L20.8 17C21.157 17.618 21.157 18.38 20.801 18.999C20.444 19.618 19.784 19.999 19.07 20L4.93 20C4.216 19.999 3.556 19.618 3.199 18.999C2.843 18.38 2.843 17.618 3.2 17Z",op:"stroke",w:1.5},{d:"M12 9.5L12 13.5",op:"stroke",w:1.5},{d:"M13 16.75C13 17.302 12.552 17.75 12 17.75C11.448 17.75 11 17.302 11 16.75C11 16.198 11.448 15.75 12 15.75C12.552 15.75 13 16.198 13 16.75Z",op:"fill"}],solid:[{d:"M10.27 4.75C10.628 4.133 11.287 3.754 12 3.754C12.713 3.754 13.372 4.133 13.73 4.75L20.8 17C21.157 17.618 21.157 18.38 20.801 18.999C20.444 19.618 19.784 19.999 19.07 20L4.93 20C4.216 19.999 3.556 19.618 3.199 18.999C2.843 18.38 2.843 17.618 3.2 17Z",op:"fill"},{d:"M10.27 4.75C10.628 4.133 11.287 3.754 12 3.754C12.713 3.754 13.372 4.133 13.73 4.75L20.8 17C21.157 17.618 21.157 18.38 20.801 18.999C20.444 19.618 19.784 19.999 19.07 20L4.93 20C4.216 19.999 3.556 19.618 3.199 18.999C2.843 18.38 2.843 17.618 3.2 17Z",op:"stroke",w:1.5},{d:"M12 9.5L12 13.5",op:"clearStroke",w:1.75},{d:"M13.1 16.75C13.1 17.358 12.608 17.85 12 17.85C11.392 17.85 10.9 17.358 10.9 16.75C10.9 16.142 11.392 15.65 12 15.65C12.608 15.65 13.1 16.142 13.1 16.75Z",op:"clearFill"}]},store:{line:[{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"stroke",w:1.5},{d:"M8.75 10.5L8.75 7.25C8.75 5.455 10.205 4 12 4C13.795 4 15.25 5.455 15.25 7.25L15.25 10.5",op:"stroke",w:1.5}],solid:[{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"fill"},{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"stroke",w:1.5},{d:"M8.75 8.5L8.75 10.5M15.25 8.5L15.25 10.5",op:"clearStroke",w:1.75},{d:"M8.75 8L8.75 7.25C8.75 5.455 10.205 4 12 4C13.795 4 15.25 5.455 15.25 7.25L15.25 8",op:"stroke",w:2}],cat:[{d:"M4.5 8L19.5 8L19.5 18C19.5 19.381 18.381 20.5 17 20.5L7 20.5C5.619 20.5 4.5 19.381 4.5 18Z",op:"stroke",w:1.5},{d:"M8.75 10.5L8.75 7.25C8.75 5.455 10.205 4 12 4C13.795 4 15.25 5.455 15.25 7.25L15.25 10.5",op:"stroke",w:1.5},{d:"M9.75 14.75L9.76 14.75M12 16.25L12.01 16.25M14.25 14.75L14.26 14.75",op:"stroke",w:1.5,accent:!0}]},"system.requirement":{line:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5}],solid:[{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"fill"},{d:"M5.903 4.496L18.097 4.496C19.392 4.496 20.442 5.546 20.442 6.841L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 6.841C3.558 5.546 4.608 4.496 5.903 4.496Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5}],cat:[{d:"M5.903 5.434L18.097 5.434C19.392 5.434 20.442 6.484 20.442 7.779L20.442 13.876C20.442 15.171 19.392 16.221 18.097 16.221L5.903 16.221C4.608 16.221 3.558 15.171 3.558 13.876L3.558 7.779C3.558 6.484 4.608 5.434 5.903 5.434Z",op:"stroke",w:1.5},{d:"M12 16.221L12 19.504M8.717 19.504L15.283 19.504",op:"stroke",w:1.5},{d:"M12.469 5.434L12.469 3.089L14.345 4.965M18.566 5.434L18.566 3.089L16.69 4.965",op:"stroke",w:1.5,accent:!0}]},"tab.close":{line:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:1.5}],solid:[{d:"M5.25 5.25L18.75 18.75M18.75 5.25L5.25 18.75",op:"stroke",w:2}]},"tab.new":{line:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M12 8.829L12 15.171M8.829 12L15.171 12",op:"stroke",w:1.5}],solid:[{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"fill"},{d:"M6.564 4.299L17.436 4.299C18.687 4.299 19.701 5.313 19.701 6.564L19.701 17.436C19.701 18.687 18.687 19.701 17.436 19.701L6.564 19.701C5.313 19.701 4.299 18.687 4.299 17.436L4.299 6.564C4.299 5.313 5.313 4.299 6.564 4.299Z",op:"stroke",w:1.5},{d:"M12 8.829L12 15.171M8.829 12L15.171 12",op:"clearStroke",w:1.75}]},"tabgroup.save":{line:[{d:"M6 20.5L6 5.5C6 4.395 6.895 3.5 8 3.5L16 3.5C17.105 3.5 18 4.395 18 5.5L18 20.5L12 16Z",op:"stroke",w:1.5}],solid:[{d:"M6 20.5L6 5.5C6 4.395 6.895 3.5 8 3.5L16 3.5C17.105 3.5 18 4.395 18 5.5L18 20.5L12 16Z",op:"fill"},{d:"M6 20.5L6 5.5C6 4.395 6.895 3.5 8 3.5L16 3.5C17.105 3.5 18 4.395 18 5.5L18 20.5L12 16Z",op:"stroke",w:1.5}],cat:[{d:"M6 20.5L6 6.5C6 5.395 6.895 4.5 8 4.5L16 4.5C17.105 4.5 18 5.395 18 6.5L18 20.5L12 16Z",op:"stroke",w:1.5},{d:"M7.5 4.5L7.5 2L9.25 3.75M16.5 4.5L16.5 2L14.75 3.75",op:"stroke",w:1.5,accent:!0}]},"task.ai":{line:[{d:"M12 4.01C12.627 8.71 15.29 11.373 19.99 12C15.29 12.627 12.627 15.29 12 19.99C11.373 15.29 8.71 12.627 4.01 12C8.71 11.373 11.373 8.71 12 4.01Z",op:"stroke",w:1.5}],solid:[{d:"M12 4.01C12.627 8.71 15.29 11.373 19.99 12C15.29 12.627 12.627 15.29 12 19.99C11.373 15.29 8.71 12.627 4.01 12C8.71 11.373 11.373 8.71 12 4.01Z",op:"fill"},{d:"M12 4.01C12.627 8.71 15.29 11.373 19.99 12C15.29 12.627 12.627 15.29 12 19.99C11.373 15.29 8.71 12.627 4.01 12C8.71 11.373 11.373 8.71 12 4.01Z",op:"stroke",w:1.5}]},"task.status.backlog":{line:[{d:"M19.252 12C19.252 16.005 16.005 19.252 12 19.252C7.995 19.252 4.748 16.005 4.748 12C4.748 7.995 7.995 4.748 12 4.748C16.005 4.748 19.252 7.995 19.252 12Z",op:"stroke",w:1.75,dash:[0,3.798]}],solid:[{d:"M19.252 12C19.252 16.005 16.005 19.252 12 19.252C7.995 19.252 4.748 16.005 4.748 12C4.748 7.995 7.995 4.748 12 4.748C16.005 4.748 19.252 7.995 19.252 12Z",op:"stroke",w:2.5,dash:[0,3.798]}]},"task.status.canceled":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"stroke",w:1.5}],solid:[{d:"M20.026 12C20.026 16.433 16.433 20.026 12 20.026C7.567 20.026 3.974 16.433 3.974 12C3.974 7.567 7.567 3.974 12 3.974C16.433 3.974 20.026 7.567 20.026 12Z",op:"fill"},{d:"M9.614 9.614L14.386 14.386M14.386 9.614L9.614 14.386",op:"clearStroke",w:1.75}]},"task.status.done":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"stroke",w:1.5}],solid:[{d:"M20.026 12C20.026 16.433 16.433 20.026 12 20.026C7.567 20.026 3.974 16.433 3.974 12C3.974 7.567 7.567 3.974 12 3.974C16.433 3.974 20.026 7.567 20.026 12Z",op:"fill"},{d:"M8.746 12.217L10.915 14.386L15.254 9.831",op:"clearStroke",w:1.75}]},"task.status.started":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5},{d:"M12 8.096C14.156 8.096 15.904 9.844 15.904 12.001C15.904 14.157 14.156 15.905 12 15.905Z",op:"fill"}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2},{d:"M12 7.662C14.396 7.662 16.338 9.604 16.338 12C16.338 14.396 14.396 16.338 12 16.338Z",op:"fill"}]},"task.status.todo":{line:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:1.5}],solid:[{d:"M19.375 12C19.375 16.073 16.073 19.375 12 19.375C7.927 19.375 4.625 16.073 4.625 12C4.625 7.927 7.927 4.625 12 4.625C16.073 4.625 19.375 7.927 19.375 12Z",op:"stroke",w:2}]},"task.status.triage":{line:[{d:"M12.004 4.626C16.079 4.626 19.382 7.929 19.382 12.004C19.382 16.079 16.079 19.382 12.004 19.382C7.929 19.382 4.626 16.079 4.626 12.004C4.626 7.929 7.929 4.626 12.004 4.626Z",op:"stroke",w:1.302,dash:[2.778,3.016]}],solid:[{d:"M12.004 4.626C16.079 4.626 19.382 7.929 19.382 12.004C19.382 16.079 16.079 19.382 12.004 19.382C7.929 19.382 4.626 16.079 4.626 12.004C4.626 7.929 7.929 4.626 12.004 4.626Z",op:"stroke",w:1.736,dash:[2.778,3.016]}]},team:{line:[{d:"M12.25 7.75C12.25 9.545 10.795 11 9 11C7.205 11 5.75 9.545 5.75 7.75C5.75 5.955 7.205 4.5 9 4.5C10.795 4.5 12.25 5.955 12.25 7.75Z",op:"stroke",w:1.5},{d:"M2.75 20L2.75 19.5C2.75 17.015 4.765 15 7.25 15L10.75 15C13.235 15 15.25 17.015 15.25 19.5L15.25 20",op:"stroke",w:1.5},{d:"M15.25 4.75C16.522 5.129 17.393 6.298 17.393 7.625C17.393 8.952 16.522 10.121 15.25 10.5",op:"stroke",w:1.5},{d:"M17.75 15.25C19.762 15.503 21.266 17.222 21.25 19.25L21.25 20",op:"stroke",w:1.5}],solid:[{d:"M12.25 7.75C12.25 9.545 10.795 11 9 11C7.205 11 5.75 9.545 5.75 7.75C5.75 5.955 7.205 4.5 9 4.5C10.795 4.5 12.25 5.955 12.25 7.75Z",op:"fill"},{d:"M12.25 7.75C12.25 9.545 10.795 11 9 11C7.205 11 5.75 9.545 5.75 7.75C5.75 5.955 7.205 4.5 9 4.5C10.795 4.5 12.25 5.955 12.25 7.75Z",op:"stroke",w:1.5},{d:"M2.75 20L2.75 19.5C2.75 17.015 4.765 15 7.25 15L10.75 15C13.235 15 15.25 17.015 15.25 19.5L15.25 20Z",op:"fill"},{d:"M2.75 20L2.75 19.5C2.75 17.015 4.765 15 7.25 15L10.75 15C13.235 15 15.25 17.015 15.25 19.5L15.25 20Z",op:"stroke",w:1.5},{d:"M15.25 4.75C16.522 5.129 17.393 6.298 17.393 7.625C17.393 8.952 16.522 10.121 15.25 10.5",op:"stroke",w:2},{d:"M17.75 15.25C19.762 15.503 21.266 17.222 21.25 19.25L21.25 20",op:"stroke",w:2}]},terminal:{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"stroke",w:1.5}],solid:[{d:"M6.112 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.982C20.834 18.608 19.515 19.927 17.889 19.927L6.112 19.927C4.486 19.927 3.167 18.608 3.167 16.982L3.167 7.017C3.167 5.391 4.486 4.072 6.112 4.072Z",op:"fill"},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M12.453 14.718L15.624 14.718C16.375 14.718 16.983 14.11 16.983 13.359L16.983 12.453",op:"stroke",w:1.5,accent:!0}]},"terminal.copymode":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M14.718 8.829L14.718 15.171M13.359 8.829L16.077 8.829M13.359 15.171L16.077 15.171",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"clearStroke",w:1.75},{d:"M14.718 8.829L14.718 15.171M13.359 8.829L16.077 8.829M13.359 15.171L16.077 15.171",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M7.47 9.735L10.188 12.453L7.47 15.171M14.718 9.282L14.718 15.624M13.359 9.282L16.077 9.282M13.359 15.624L16.077 15.624",op:"stroke",w:1.5},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"terminal.dead":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M13.133 11.321L16.304 14.492M16.303 11.321L13.132 14.492",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"clearStroke",w:1.75},{d:"M13.133 11.321L16.304 14.492M16.303 11.321L13.132 14.492",op:"clearStroke",w:1.75}]},"terminal.new":{line:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M7.445 9.289L10.178 12.022L7.445 14.755",op:"stroke",w:1.5},{d:"M21.793 17.488C21.793 19.878 19.856 21.815 17.466 21.815C15.076 21.815 13.139 19.878 13.139 17.488C13.139 15.098 15.076 13.161 17.466 13.161C19.856 13.161 21.793 15.098 21.793 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:1.5}],solid:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"fill"},{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M7.445 9.289L10.178 12.022L7.445 14.755",op:"clearStroke",w:1.75},{d:"M22.021 17.488C22.021 20.004 19.982 22.043 17.466 22.043C14.95 22.043 12.911 20.004 12.911 17.488C12.911 14.972 14.95 12.933 17.466 12.933C19.982 12.933 22.021 14.972 22.021 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:2,join:"miter"}],cat:[{d:"M6.078 5.645L17.922 5.645C19.18 5.645 20.199 6.664 20.199 7.922L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.922C3.801 6.664 4.82 5.645 6.078 5.645Z",op:"stroke",w:1.5},{d:"M7.445 9.745L10.178 12.478L7.445 15.211",op:"stroke",w:1.5},{d:"M21.793 17.488C21.793 19.878 19.856 21.815 17.466 21.815C15.076 21.815 13.139 19.878 13.139 17.488C13.139 15.098 15.076 13.161 17.466 13.161C19.856 13.161 21.793 15.098 21.793 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:1.5},{d:"M5.623 5.645L5.623 3.368L7.445 5.19M11.544 5.645L11.544 3.368L9.722 5.19",op:"stroke",w:1.5,accent:!0}]},"text.description":{line:[{d:"M4 6L20 6M4 10L15 10M4 14L20 14M4 18L13 18",op:"stroke",w:1.5}],solid:[{d:"M4 6L20 6M4 10L15 10M4 14L20 14M4 18L13 18",op:"stroke",w:2}]},"text.wrap":{line:[{d:"M4 5L20 5M4 11L16.5 11C18.157 11 19.5 12.343 19.5 14C19.5 15.657 18.157 17 16.5 17L13 17M15 15L13 17L15 19M4 17L9 17",op:"stroke",w:1.5}],solid:[{d:"M4 5L20 5M4 11L16.5 11C18.157 11 19.5 12.343 19.5 14C19.5 15.657 18.157 17 16.5 17L13 17M15 15L13 17L15 19M4 17L9 17",op:"stroke",w:2}]},theme:{line:[{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15",op:"stroke",w:1.5},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"stroke",w:1.5}],solid:[{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15Z",op:"fill"},{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15Z",op:"stroke",w:1.5},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"fill"},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"stroke",w:1.5}],cat:[{d:"M10.25 12.5L18 4.75C18.699 4.118 19.772 4.144 20.439 4.811C21.106 5.478 21.132 6.551 20.5 7.25L12.75 15",op:"stroke",w:1.5},{d:"M9.75 13C8.877 12.773 7.949 12.951 7.222 13.485C6.495 14.018 6.046 14.85 6 15.75C6 17.35 5.1 18.5 3 19C6 20.5 10.25 19.75 11.75 17.5C12.259 16.66 12.324 15.625 11.925 14.728C11.527 13.831 10.714 13.185 9.75 13Z",op:"stroke",w:1.5},{d:"M4 9.75C4 7.541 5.791 5.75 8 5.75",op:"stroke",w:1.5,accent:!0}]},"theme.badge":{line:[{d:"M18.75 12C18.75 15.728 15.728 18.75 12 18.75C8.272 18.75 5.25 15.728 5.25 12C5.25 8.272 8.272 5.25 12 5.25C15.728 5.25 18.75 8.272 18.75 12Z",op:"stroke",w:1.5},{d:"M12 5.25L12 18.75C8.272 18.75 5.25 15.728 5.25 12C5.25 8.272 8.272 5.25 12 5.25Z",op:"fill"}],solid:[{d:"M19.594 12C19.594 16.194 16.194 19.594 12 19.594C7.806 19.594 4.406 16.194 4.406 12C4.406 7.806 7.806 4.406 12 4.406C16.194 4.406 19.594 7.806 19.594 12Z",op:"fill"}]},"tool.edit":{line:[{d:"M15.5 4.5L19.5 8.5L9 19L5 19L5 15Z",op:"stroke",w:1.5},{d:"M13.25 6.75L17.25 10.75",op:"stroke",w:1.5}],solid:[{d:"M15.5 4.5L19.5 8.5L9 19L5 19L5 15Z",op:"fill"},{d:"M15.5 4.5L19.5 8.5L9 19L5 19L5 15Z",op:"stroke",w:1.5,cap:"butt"},{d:"M13.25 6.75L17.25 10.75",op:"clearStroke",w:1.75}]},"tool.group":{line:[{d:"M5.949 10.138L18.051 10.138C19.337 10.138 20.379 11.18 20.379 12.466L20.379 17.586C20.379 18.872 19.337 19.914 18.051 19.914L5.949 19.914C4.663 19.914 3.621 18.872 3.621 17.586L3.621 12.466C3.621 11.18 4.663 10.138 5.949 10.138Z",op:"stroke",w:1.5},{d:"M5.948 7.112L18.051 7.112M8.276 4.086L15.724 4.086",op:"stroke",w:1.5}],solid:[{d:"M5.949 9.44L18.052 9.44C19.723 9.44 21.078 10.795 21.078 12.466L21.078 17.586C21.078 19.257 19.723 20.612 18.052 20.612L5.949 20.612C4.278 20.612 2.923 19.257 2.923 17.586L2.923 12.466C2.923 10.795 4.278 9.44 5.949 9.44Z",op:"fill"},{d:"M5.948 7.112L18.051 7.112M8.276 4.086L15.724 4.086",op:"stroke",w:2}]},"tool.read":{line:[{d:"M12 6.5C10 5 7 4.5 3.5 5L3.5 18.5C7 18 10 18.5 12 20C14 18.5 17 18 20.5 18.5L20.5 5C17 4.5 14 5 12 6.5Z",op:"stroke",w:1.5},{d:"M12 6.5L12 20",op:"stroke",w:1.5}],solid:[{d:"M12 6.5C10 5 7 4.5 3.5 5L3.5 18.5C7 18 10 18.5 12 20C14 18.5 17 18 20.5 18.5L20.5 5C17 4.5 14 5 12 6.5Z",op:"fill"},{d:"M12 6.5C10 5 7 4.5 3.5 5L3.5 18.5C7 18 10 18.5 12 20C14 18.5 17 18 20.5 18.5L20.5 5C17 4.5 14 5 12 6.5Z",op:"stroke",w:1.5,cap:"butt"},{d:"M12 6.5L12 20",op:"clearStroke",w:1.75}]},"tool.search":{line:[{d:"M16.5 10.5C16.5 13.814 13.814 16.5 10.5 16.5C7.186 16.5 4.5 13.814 4.5 10.5C4.5 7.186 7.186 4.5 10.5 4.5C13.814 4.5 16.5 7.186 16.5 10.5Z",op:"stroke",w:1.5},{d:"M15 15L20 20",op:"stroke",w:1.5}],solid:[{d:"M17.25 10.5C17.25 14.228 14.228 17.25 10.5 17.25C6.772 17.25 3.75 14.228 3.75 10.5C3.75 6.772 6.772 3.75 10.5 3.75C14.228 3.75 17.25 6.772 17.25 10.5Z",op:"fill"},{d:"M15 15L20 20",op:"stroke",w:2.5}]},"tool.shell":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"stroke",w:1.5}],solid:[{d:"M6.112 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.982C20.834 18.608 19.515 19.927 17.889 19.927L6.112 19.927C4.486 19.927 3.167 18.608 3.167 16.982L3.167 7.017C3.167 5.391 4.486 4.072 6.112 4.072Z",op:"fill"},{d:"M7.47 9.282L10.188 12L7.47 14.718M12.453 14.718L16.53 14.718",op:"clearStroke",w:1.75}],cat:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.47 9.282L10.188 12L7.47 14.718",op:"stroke",w:1.5},{d:"M12.453 14.718L15.624 14.718C16.375 14.718 16.983 14.11 16.983 13.359L16.983 12.453",op:"stroke",w:1.5,accent:!0}]},"tool.web":{line:[{d:"M20.424 12C20.424 16.652 16.652 20.424 12 20.424C7.348 20.424 3.576 16.652 3.576 12C3.576 7.348 7.348 3.576 12 3.576C16.652 3.576 20.424 7.348 20.424 12Z",op:"stroke",w:1.5},{d:"M15.51 12C15.51 16.652 13.939 20.424 12 20.424C10.061 20.424 8.49 16.652 8.49 12C8.49 7.348 10.061 3.576 12 3.576C13.939 3.576 15.51 7.348 15.51 12Z",op:"stroke",w:1.5},{d:"M3.576 12L20.424 12",op:"stroke",w:1.5}],solid:[{d:"M21.126 12C21.126 17.04 17.04 21.126 12 21.126C6.96 21.126 2.874 17.04 2.874 12C2.874 6.96 6.96 2.874 12 2.874C17.04 2.874 21.126 6.96 21.126 12Z",op:"fill"},{d:"M15.51 12C15.51 16.911 13.939 20.892 12 20.892C10.061 20.892 8.49 16.911 8.49 12C8.49 7.089 10.061 3.108 12 3.108C13.939 3.108 15.51 7.089 15.51 12Z",op:"clearStroke",w:1.75},{d:"M2.64 12L21.36 12",op:"clearStroke",w:1.75}]},tools:{line:[{d:"M20.25 8.75L17.25 11.5L14 11L13.5 7.75L16.25 4.75C14.579 4.219 12.751 4.652 11.496 5.876C10.241 7.1 9.762 8.916 10.25 10.6L4.6 16.25C3.772 17.078 3.772 18.422 4.6 19.25C5.428 20.078 6.772 20.078 7.6 19.25L13.4 13.75C14.996 14.566 16.916 14.415 18.363 13.358C19.811 12.301 20.541 10.519 20.25 8.75Z",op:"stroke",w:1.5}],solid:[{d:"M20.25 8.75L17.25 11.5L14 11L13.5 7.75L16.25 4.75C14.579 4.219 12.751 4.652 11.496 5.876C10.241 7.1 9.762 8.916 10.25 10.6L4.6 16.25C3.772 17.078 3.772 18.422 4.6 19.25C5.428 20.078 6.772 20.078 7.6 19.25L13.4 13.75C14.996 14.566 16.916 14.415 18.363 13.358C19.811 12.301 20.541 10.519 20.25 8.75Z",op:"fill"},{d:"M20.25 8.75L17.25 11.5L14 11L13.5 7.75L16.25 4.75C14.579 4.219 12.751 4.652 11.496 5.876C10.241 7.1 9.762 8.916 10.25 10.6L4.6 16.25C3.772 17.078 3.772 18.422 4.6 19.25C5.428 20.078 6.772 20.078 7.6 19.25L13.4 13.75C14.996 14.566 16.916 14.415 18.363 13.358C19.811 12.301 20.541 10.519 20.25 8.75Z",op:"stroke",w:1.5}]},"trust.invalid":{line:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"stroke",w:1.5}],solid:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"fill"},{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M9.25 9.25L14.75 14.75M14.75 9.25L9.25 14.75",op:"clearStroke",w:1.75}]},"trust.source":{line:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5},{d:"M10 11.5L14 11.5C14.552 11.5 15 11.948 15 12.5L15 15C15 15.552 14.552 16 14 16L10 16C9.448 16 9 15.552 9 15L9 12.5C9 11.948 9.448 11.5 10 11.5Z",op:"stroke",w:1.5},{d:"M10.25 11.5L10.25 10C10.25 9.034 11.034 8.25 12 8.25C12.966 8.25 13.75 9.034 13.75 10L13.75 11.5",op:"stroke",w:1.5}],solid:[{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"fill"},{d:"M12 3L19.5 5.75L19.5 11C19.5 15.75 16.25 19.25 12 21C7.75 19.25 4.5 15.75 4.5 11L4.5 5.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M10.25 11.5L10.25 10C10.25 9.034 11.034 8.25 12 8.25C12.966 8.25 13.75 9.034 13.75 10L13.75 11.5",op:"clearStroke",w:1.75},{d:"M9.75 10.75L14.25 10.75C15.078 10.75 15.75 11.422 15.75 12.25L15.75 15.25C15.75 16.078 15.078 16.75 14.25 16.75L9.75 16.75C8.922 16.75 8.25 16.078 8.25 15.25L8.25 12.25C8.25 11.422 8.922 10.75 9.75 10.75Z",op:"clearFill"},{d:"M10.25 12L13.75 12C14.164 12 14.5 12.336 14.5 12.75L14.5 14.75C14.5 15.164 14.164 15.5 13.75 15.5L10.25 15.5C9.836 15.5 9.5 15.164 9.5 14.75L9.5 12.75C9.5 12.336 9.836 12 10.25 12Z",op:"fill"}]},"trust.verified":{line:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5},{d:"M8.25 12.25L10.75 14.75L15.75 9.5",op:"stroke",w:1.5}],solid:[{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"fill"},{d:"M12 2.5L14.25 4.75L17.5 4.25L18 7.5L21 9L19.5 12L21 15L18 16.5L17.5 19.75L14.25 19.25L12 21.5L9.75 19.25L6.5 19.75L6 16.5L3 15L4.5 12L3 9L6 7.5L6.5 4.25L9.75 4.75Z",op:"stroke",w:1.5,cap:"butt"},{d:"M8.25 12.25L10.75 14.75L15.75 9.5",op:"clearStroke",w:1.75}]},"tunable.agentActivity":{line:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.4 10.5C9.4 11.135 8.885 11.65 8.25 11.65C7.615 11.65 7.1 11.135 7.1 10.5C7.1 9.865 7.615 9.35 8.25 9.35C8.885 9.35 9.4 9.865 9.4 10.5Z",op:"fill"},{d:"M13.15 10.5C13.15 11.135 12.635 11.65 12 11.65C11.365 11.65 10.85 11.135 10.85 10.5C10.85 9.865 11.365 9.35 12 9.35C12.635 9.35 13.15 9.865 13.15 10.5Z",op:"fill"},{d:"M16.9 10.5C16.9 11.135 16.385 11.65 15.75 11.65C15.115 11.65 14.6 11.135 14.6 10.5C14.6 9.865 15.115 9.35 15.75 9.35C16.385 9.35 16.9 9.865 16.9 10.5Z",op:"fill"}],solid:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"fill"},{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.5 10.5C9.5 11.19 8.94 11.75 8.25 11.75C7.56 11.75 7 11.19 7 10.5C7 9.81 7.56 9.25 8.25 9.25C8.94 9.25 9.5 9.81 9.5 10.5Z",op:"clearFill"},{d:"M13.25 10.5C13.25 11.19 12.69 11.75 12 11.75C11.31 11.75 10.75 11.19 10.75 10.5C10.75 9.81 11.31 9.25 12 9.25C12.69 9.25 13.25 9.81 13.25 10.5Z",op:"clearFill"},{d:"M17 10.5C17 11.19 16.44 11.75 15.75 11.75C15.06 11.75 14.5 11.19 14.5 10.5C14.5 9.81 15.06 9.25 15.75 9.25C16.44 9.25 17 9.81 17 10.5Z",op:"clearFill"}],cat:[{d:"M8 16.5L6.5 16.5C4.843 16.5 3.5 15.157 3.5 13.5L3.5 7.5C3.5 5.843 4.843 4.5 6.5 4.5L17.5 4.5C19.157 4.5 20.5 5.843 20.5 7.5L20.5 13.5C20.5 15.157 19.157 16.5 17.5 16.5L12 16.5L8 19.5Z",op:"stroke",w:1.5},{d:"M9.4 10.5C9.4 11.135 8.885 11.65 8.25 11.65C7.615 11.65 7.1 11.135 7.1 10.5C7.1 9.865 7.615 9.35 8.25 9.35C8.885 9.35 9.4 9.865 9.4 10.5Z",op:"fill"},{d:"M13.15 10.5C13.15 11.135 12.635 11.65 12 11.65C11.365 11.65 10.85 11.135 10.85 10.5C10.85 9.865 11.365 9.35 12 9.35C12.635 9.35 13.15 9.865 13.15 10.5Z",op:"fill"},{d:"M16.9 10.5C16.9 11.135 16.385 11.65 15.75 11.65C15.115 11.65 14.6 11.135 14.6 10.5C14.6 9.865 15.115 9.35 15.75 9.35C16.385 9.35 16.9 9.865 16.9 10.5Z",op:"fill"},{d:"M6 4.5L6 1.5L9 4.5M18 4.5L18 1.5L15 4.5",op:"stroke",w:1.5,accent:!0}]},"tunable.apps":{line:[{d:"M6 3.5L8 3.5C9.381 3.5 10.5 4.619 10.5 6L10.5 8C10.5 9.381 9.381 10.5 8 10.5L6 10.5C4.619 10.5 3.5 9.381 3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5Z",op:"stroke",w:1.5},{d:"M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8C20.5 9.381 19.381 10.5 18 10.5L16 10.5C14.619 10.5 13.5 9.381 13.5 8L13.5 6C13.5 4.619 14.619 3.5 16 3.5Z",op:"stroke",w:1.5},{d:"M6 13.5L8 13.5C9.381 13.5 10.5 14.619 10.5 16L10.5 18C10.5 19.381 9.381 20.5 8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16C3.5 14.619 4.619 13.5 6 13.5Z",op:"stroke",w:1.5},{d:"M17 14L17 20M14 17L20 17",op:"stroke",w:1.5}],solid:[{d:"M6 3.5L8 3.5C9.381 3.5 10.5 4.619 10.5 6L10.5 8C10.5 9.381 9.381 10.5 8 10.5L6 10.5C4.619 10.5 3.5 9.381 3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5Z",op:"fill"},{d:"M6 3.5L8 3.5C9.381 3.5 10.5 4.619 10.5 6L10.5 8C10.5 9.381 9.381 10.5 8 10.5L6 10.5C4.619 10.5 3.5 9.381 3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5Z",op:"stroke",w:1.5},{d:"M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8C20.5 9.381 19.381 10.5 18 10.5L16 10.5C14.619 10.5 13.5 9.381 13.5 8L13.5 6C13.5 4.619 14.619 3.5 16 3.5Z",op:"fill"},{d:"M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8C20.5 9.381 19.381 10.5 18 10.5L16 10.5C14.619 10.5 13.5 9.381 13.5 8L13.5 6C13.5 4.619 14.619 3.5 16 3.5Z",op:"stroke",w:1.5},{d:"M6 13.5L8 13.5C9.381 13.5 10.5 14.619 10.5 16L10.5 18C10.5 19.381 9.381 20.5 8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16C3.5 14.619 4.619 13.5 6 13.5Z",op:"fill"},{d:"M6 13.5L8 13.5C9.381 13.5 10.5 14.619 10.5 16L10.5 18C10.5 19.381 9.381 20.5 8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16C3.5 14.619 4.619 13.5 6 13.5Z",op:"stroke",w:1.5},{d:"M17 14L17 20M14 17L20 17",op:"stroke",w:2}]},"tunable.dropOverlay":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.924 7.697L16.077 7.697C16.703 7.697 17.21 8.204 17.21 8.83L17.21 15.171C17.21 15.797 16.703 16.304 16.077 16.304L7.924 16.304C7.298 16.304 6.791 15.797 6.791 15.171L6.791 8.83C6.791 8.204 7.298 7.697 7.924 7.697Z",op:"stroke",w:1.5,dash:[3.009,3.009],dashPhase:-1.504}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M7.924 7.697L16.077 7.697C16.703 7.697 17.21 8.204 17.21 8.83L17.21 15.171C17.21 15.797 16.703 16.304 16.077 16.304L7.924 16.304C7.298 16.304 6.791 15.797 6.791 15.171L6.791 8.83C6.791 8.204 7.298 7.697 7.924 7.697Z",op:"clearStroke",w:1.6,dash:[3.009,3.009],dashPhase:-1.504}]},"tunable.fades":{line:[{d:"M5.25 4L5.25 4C5.94 4 6.5 4.56 6.5 5.25L6.5 18.75C6.5 19.44 5.94 20 5.25 20L5.25 20C4.56 20 4 19.44 4 18.75L4 5.25C4 4.56 4.56 4 5.25 4Z",op:"fill"},{d:"M9.75 4L9.75 4C10.44 4 11 4.56 11 5.25L11 18.75C11 19.44 10.44 20 9.75 20L9.75 20C9.06 20 8.5 19.44 8.5 18.75L8.5 5.25C8.5 4.56 9.06 4 9.75 4Z",op:"fill",alpha:.7},{d:"M14.25 4L14.25 4C14.94 4 15.5 4.56 15.5 5.25L15.5 18.75C15.5 19.44 14.94 20 14.25 20L14.25 20C13.56 20 13 19.44 13 18.75L13 5.25C13 4.56 13.56 4 14.25 4Z",op:"fill",alpha:.45},{d:"M18.75 4L18.75 4C19.44 4 20 4.56 20 5.25L20 18.75C20 19.44 19.44 20 18.75 20L18.75 20C18.06 20 17.5 19.44 17.5 18.75L17.5 5.25C17.5 4.56 18.06 4 18.75 4Z",op:"fill",alpha:.22}],solid:[{d:"M5 3.5L5.5 3.5C6.328 3.5 7 4.172 7 5L7 19C7 19.828 6.328 20.5 5.5 20.5L5 20.5C4.172 20.5 3.5 19.828 3.5 19L3.5 5C3.5 4.172 4.172 3.5 5 3.5Z",op:"fill"},{d:"M9.5 3.5L10 3.5C10.828 3.5 11.5 4.172 11.5 5L11.5 19C11.5 19.828 10.828 20.5 10 20.5L9.5 20.5C8.672 20.5 8 19.828 8 19L8 5C8 4.172 8.672 3.5 9.5 3.5Z",op:"fill",alpha:.7},{d:"M14 3.5L14.5 3.5C15.328 3.5 16 4.172 16 5L16 19C16 19.828 15.328 20.5 14.5 20.5L14 20.5C13.172 20.5 12.5 19.828 12.5 19L12.5 5C12.5 4.172 13.172 3.5 14 3.5Z",op:"fill",alpha:.45},{d:"M18.5 3.5L19 3.5C19.828 3.5 20.5 4.172 20.5 5L20.5 19C20.5 19.828 19.828 20.5 19 20.5L18.5 20.5C17.672 20.5 17 19.828 17 19L17 5C17 4.172 17.672 3.5 18.5 3.5Z",op:"fill",alpha:.22}]},"tunable.feed":{line:[{d:"M5 11C9.418 11 13 14.582 13 19M5 4.5C13.008 4.5 19.5 10.992 19.5 19",op:"stroke",w:1.5},{d:"M7.75 18C7.75 18.966 6.966 19.75 6 19.75C5.034 19.75 4.25 18.966 4.25 18C4.25 17.034 5.034 16.25 6 16.25C6.966 16.25 7.75 17.034 7.75 18Z",op:"fill"}],solid:[{d:"M5 11C9.418 11 13 14.582 13 19M5 4.5C13.008 4.5 19.5 10.992 19.5 19",op:"stroke",w:2},{d:"M8.25 18C8.25 19.243 7.243 20.25 6 20.25C4.757 20.25 3.75 19.243 3.75 18C3.75 16.757 4.757 15.75 6 15.75C7.243 15.75 8.25 16.757 8.25 18Z",op:"fill"}]},"tunable.focus":{line:[{d:"M3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5L8 3.5M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8M20.5 16L20.5 18C20.5 19.381 19.381 20.5 18 20.5L16 20.5M8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16",op:"stroke",w:1.5},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:1.5}],solid:[{d:"M3.5 8L3.5 6C3.5 4.619 4.619 3.5 6 3.5L8 3.5M16 3.5L18 3.5C19.381 3.5 20.5 4.619 20.5 6L20.5 8M20.5 16L20.5 18C20.5 19.381 19.381 20.5 18 20.5L16 20.5M8 20.5L6 20.5C4.619 20.5 3.5 19.381 3.5 18L3.5 16",op:"stroke",w:2},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"fill"},{d:"M15 12C15 13.657 13.657 15 12 15C10.343 15 9 13.657 9 12C9 10.343 10.343 9 12 9C13.657 9 15 10.343 15 12Z",op:"stroke",w:2}]},"tunable.glass":{line:[{d:"M7.887 4.231L16.113 4.231C18.132 4.231 19.769 5.868 19.769 7.887L19.769 16.113C19.769 18.132 18.132 19.769 16.113 19.769L7.887 19.769C5.868 19.769 4.231 18.132 4.231 16.113L4.231 7.887C4.231 5.868 5.868 4.231 7.887 4.231Z",op:"stroke",w:1.5},{d:"M7.887 12L12 7.887M7.887 15.199L9.258 13.828",op:"stroke",w:1.5}],solid:[{d:"M7.887 4.231L16.113 4.231C18.132 4.231 19.769 5.868 19.769 7.887L19.769 16.113C19.769 18.132 18.132 19.769 16.113 19.769L7.887 19.769C5.868 19.769 4.231 18.132 4.231 16.113L4.231 7.887C4.231 5.868 5.868 4.231 7.887 4.231Z",op:"fill"},{d:"M7.887 4.231L16.113 4.231C18.132 4.231 19.769 5.868 19.769 7.887L19.769 16.113C19.769 18.132 18.132 19.769 16.113 19.769L7.887 19.769C5.868 19.769 4.231 18.132 4.231 16.113L4.231 7.887C4.231 5.868 5.868 4.231 7.887 4.231Z",op:"stroke",w:1.5},{d:"M7.887 12L12 7.887M7.887 15.199L9.258 13.828",op:"clearStroke",w:1.75}]},"tunable.hover":{line:[{d:"M5.5 3.5L13.5 3.5C14.605 3.5 15.5 4.395 15.5 5.5L15.5 13.5C15.5 14.605 14.605 15.5 13.5 15.5L5.5 15.5C4.395 15.5 3.5 14.605 3.5 13.5L3.5 5.5C3.5 4.395 4.395 3.5 5.5 3.5Z",op:"stroke",w:1.5,dash:[2.785,2.785],dashPhase:-1.393},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearFill"},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearStroke",w:4.5},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"stroke",w:1.5}],solid:[{d:"M5.5 3.5L13.5 3.5C14.605 3.5 15.5 4.395 15.5 5.5L15.5 13.5C15.5 14.605 14.605 15.5 13.5 15.5L5.5 15.5C4.395 15.5 3.5 14.605 3.5 13.5L3.5 5.5C3.5 4.395 4.395 3.5 5.5 3.5Z",op:"stroke",w:2,dash:[2.785,2.785],dashPhase:-1.393},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearFill"},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"clearStroke",w:5},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"fill"},{d:"M11 11L20.5 14.75L16.5 16.25L15 20.25Z",op:"stroke",w:1.5}]},"tunable.palette":{line:[{d:"M9 9L9 6.5C9 5.119 7.881 4 6.5 4C5.119 4 4 5.119 4 6.5C4 7.881 5.119 9 6.5 9L17.5 9C18.881 9 20 7.881 20 6.5C20 5.119 18.881 4 17.5 4C16.119 4 15 5.119 15 6.5L15 17.5C15 18.881 16.119 20 17.5 20C18.881 20 20 18.881 20 17.5C20 16.119 18.881 15 17.5 15L6.5 15C5.119 15 4 16.119 4 17.5C4 18.881 5.119 20 6.5 20C7.881 20 9 18.881 9 17.5Z",op:"stroke",w:1.5}],solid:[{d:"M9 9L9 6.5C9 5.119 7.881 4 6.5 4C5.119 4 4 5.119 4 6.5C4 7.881 5.119 9 6.5 9L17.5 9C18.881 9 20 7.881 20 6.5C20 5.119 18.881 4 17.5 4C16.119 4 15 5.119 15 6.5L15 17.5C15 18.881 16.119 20 17.5 20C18.881 20 20 18.881 20 17.5C20 16.119 18.881 15 17.5 15L6.5 15C5.119 15 4 16.119 4 17.5C4 18.881 5.119 20 6.5 20C7.881 20 9 18.881 9 17.5Z",op:"stroke",w:2}]},"tunable.panes":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12 4.752L12 19.248M12 12L20.154 12",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12 4.752L12 19.248M12 12L20.154 12",op:"clearStroke",w:1.75}]},"tunable.server":{line:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.4 7.725C8.4 8.222 7.997 8.625 7.5 8.625C7.003 8.625 6.6 8.222 6.6 7.725C6.6 7.228 7.003 6.825 7.5 6.825C7.997 6.825 8.4 7.228 8.4 7.725Z",op:"fill"},{d:"M8.4 16.275C8.4 16.772 7.997 17.175 7.5 17.175C7.003 17.175 6.6 16.772 6.6 16.275C6.6 15.778 7.003 15.375 7.5 15.375C7.997 15.375 8.4 15.778 8.4 16.275Z",op:"fill"}],solid:[{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"fill"},{d:"M5.925 4.35L18.075 4.35C19.193 4.35 20.1 5.257 20.1 6.375L20.1 9.075C20.1 10.193 19.193 11.1 18.075 11.1L5.925 11.1C4.807 11.1 3.9 10.193 3.9 9.075L3.9 6.375C3.9 5.257 4.807 4.35 5.925 4.35Z",op:"stroke",w:1.5},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"fill"},{d:"M5.925 12.9L18.075 12.9C19.193 12.9 20.1 13.807 20.1 14.925L20.1 17.625C20.1 18.743 19.193 19.65 18.075 19.65L5.925 19.65C4.807 19.65 3.9 18.743 3.9 17.625L3.9 14.925C3.9 13.807 4.807 12.9 5.925 12.9Z",op:"stroke",w:1.5},{d:"M8.535 7.725C8.535 8.297 8.072 8.76 7.5 8.76C6.928 8.76 6.465 8.297 6.465 7.725C6.465 7.153 6.928 6.69 7.5 6.69C8.072 6.69 8.535 7.153 8.535 7.725Z",op:"clearFill"},{d:"M8.535 16.275C8.535 16.847 8.072 17.31 7.5 17.31C6.928 17.31 6.465 16.847 6.465 16.275C6.465 15.703 6.928 15.24 7.5 15.24C8.072 15.24 8.535 15.703 8.535 16.275Z",op:"clearFill"}]},"tunable.settingsWindow":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"stroke",w:1.5},{d:"M9.735 12L14.265 12C15.516 12 16.53 13.014 16.53 14.265L16.53 14.265C16.53 15.516 15.516 16.53 14.265 16.53L9.735 16.53C8.484 16.53 7.47 15.516 7.47 14.265L7.47 14.265C7.47 13.014 8.484 12 9.735 12Z",op:"stroke",w:1.5},{d:"M15.398 14.265C15.398 14.891 14.891 15.398 14.265 15.398C13.639 15.398 13.132 14.891 13.132 14.265C13.132 13.639 13.639 13.132 14.265 13.132C14.891 13.132 15.398 13.639 15.398 14.265Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282",op:"clearStroke",w:1.75},{d:"M9.735 12L14.265 12C15.516 12 16.53 13.014 16.53 14.265L16.53 14.265C16.53 15.516 15.516 16.53 14.265 16.53L9.735 16.53C8.484 16.53 7.47 15.516 7.47 14.265L7.47 14.265C7.47 13.014 8.484 12 9.735 12Z",op:"clearStroke",w:1.75},{d:"M15.488 14.265C15.488 14.94 14.94 15.488 14.265 15.488C13.59 15.488 13.042 14.94 13.042 14.265C13.042 13.59 13.59 13.042 14.265 13.042C14.94 13.042 15.488 13.59 15.488 14.265Z",op:"clearFill"}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M3.846 9.735L20.154 9.735",op:"stroke",w:1.5},{d:"M9.735 12.453L14.265 12.453C15.516 12.453 16.53 13.467 16.53 14.718L16.53 14.718C16.53 15.969 15.516 16.983 14.265 16.983L9.735 16.983C8.484 16.983 7.47 15.969 7.47 14.718L7.47 14.718C7.47 13.467 8.484 12.453 9.735 12.453Z",op:"stroke",w:1.5},{d:"M15.398 14.718C15.398 15.344 14.891 15.851 14.265 15.851C13.639 15.851 13.132 15.344 13.132 14.718C13.132 14.092 13.639 13.585 14.265 13.585C14.891 13.585 15.398 14.092 15.398 14.718Z",op:"fill"},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"tunable.shape":{line:[{d:"M5.5 9.5L12.5 9.5C13.605 9.5 14.5 10.395 14.5 11.5L14.5 18.5C14.5 19.605 13.605 20.5 12.5 20.5L5.5 20.5C4.395 20.5 3.5 19.605 3.5 18.5L3.5 11.5C3.5 10.395 4.395 9.5 5.5 9.5Z",op:"stroke",w:1.5},{d:"M22.25 9C22.25 13.004 19.004 16.25 15 16.25C10.996 16.25 7.75 13.004 7.75 9C7.75 4.996 10.996 1.75 15 1.75C19.004 1.75 22.25 4.996 22.25 9Z",op:"clearFill"},{d:"M20.5 9C20.5 12.038 18.038 14.5 15 14.5C11.962 14.5 9.5 12.038 9.5 9C9.5 5.962 11.962 3.5 15 3.5C18.038 3.5 20.5 5.962 20.5 9Z",op:"stroke",w:1.5}],solid:[{d:"M5.5 9.5L12.5 9.5C13.605 9.5 14.5 10.395 14.5 11.5L14.5 18.5C14.5 19.605 13.605 20.5 12.5 20.5L5.5 20.5C4.395 20.5 3.5 19.605 3.5 18.5L3.5 11.5C3.5 10.395 4.395 9.5 5.5 9.5Z",op:"fill"},{d:"M5.5 9.5L12.5 9.5C13.605 9.5 14.5 10.395 14.5 11.5L14.5 18.5C14.5 19.605 13.605 20.5 12.5 20.5L5.5 20.5C4.395 20.5 3.5 19.605 3.5 18.5L3.5 11.5C3.5 10.395 4.395 9.5 5.5 9.5Z",op:"stroke",w:1.5},{d:"M22.5 9C22.5 13.142 19.142 16.5 15 16.5C10.858 16.5 7.5 13.142 7.5 9C7.5 4.858 10.858 1.5 15 1.5C19.142 1.5 22.5 4.858 22.5 9Z",op:"clearFill"},{d:"M20.5 9C20.5 12.038 18.038 14.5 15 14.5C11.962 14.5 9.5 12.038 9.5 9C9.5 5.962 11.962 3.5 15 3.5C18.038 3.5 20.5 5.962 20.5 9Z",op:"fill"},{d:"M20.5 9C20.5 12.038 18.038 14.5 15 14.5C11.962 14.5 9.5 12.038 9.5 9C9.5 5.962 11.962 3.5 15 3.5C18.038 3.5 20.5 5.962 20.5 9Z",op:"stroke",w:1.5}]},"tunable.sidebar":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M6.791 6.791L8.603 6.791C9.103 6.791 9.509 7.197 9.509 7.697L9.509 16.304C9.509 16.804 9.103 17.21 8.603 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 7.697C5.885 7.197 6.291 6.791 6.791 6.791Z",op:"fill"}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M12.453 5.432L17.888 5.432C18.764 5.432 19.474 6.142 19.474 7.018L19.474 16.983C19.474 17.859 18.764 18.569 17.888 18.569L12.453 18.569C11.577 18.569 10.867 17.859 10.867 16.983L10.867 7.018C10.867 6.142 11.577 5.432 12.453 5.432Z",op:"clearFill"}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M6.791 7.697L8.603 7.697C9.103 7.697 9.509 8.103 9.509 8.603L9.509 16.304C9.509 16.804 9.103 17.21 8.603 17.21L6.791 17.21C6.291 17.21 5.885 16.804 5.885 16.304L5.885 8.603C5.885 8.103 6.291 7.697 6.791 7.697Z",op:"fill"},{d:"M12.453 5.658L12.453 3.393L14.265 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"tunable.springs":{line:[{d:"M4.85 18L4.68 17.97L4.51 17.87L4.34 17.71L4.19 17.48L4.04 17.2L3.9 16.85L3.79 16.46L3.69 16.01L3.61 15.53L3.55 15L3.51 14.44L3.5 13.85L3.51 13.25L3.55 12.63L3.62 12L3.71 11.37L3.83 10.75L3.98 10.15L4.15 9.56L4.34 9L4.56 8.47L4.8 7.99L5.06 7.54L5.33 7.15L5.63 6.8L5.93 6.52L6.25 6.29L6.57 6.13L6.9 6.03L7.24 6L7.57 6.03L7.9 6.13L8.22 6.29L8.54 6.52L8.85 6.8L9.14 7.15L9.42 7.54L9.67 7.99L9.91 8.47L10.13 9L10.33 9.56L10.5 10.15L10.64 10.75L10.76 11.37L10.85 12L10.92 12.63L10.96 13.25L10.97 13.85L10.96 14.44L10.93 15L10.87 15.53L10.79 16.01L10.69 16.46L10.57 16.85L10.43 17.2L10.29 17.48L10.13 17.71L9.96 17.87L9.79 17.97L9.62 18L9.44 17.97L9.27 17.87L9.11 17.71L8.95 17.48L8.8 17.2L8.67 16.85L8.55 16.46L8.45 16.01L8.37 15.53L8.31 15L8.28 14.44L8.26 13.85L8.28 13.25L8.32 12.63L8.38 12L8.48 11.37L8.59 10.75L8.74 10.15L8.91 9.56L9.11 9L9.32 8.47L9.56 7.99L9.82 7.54L10.1 7.15L10.39 6.8L10.7 6.52L11.01 6.29L11.34 6.13L11.67 6.03L12 6L12.33 6.03L12.66 6.13L12.99 6.29L13.3 6.52L13.61 6.8L13.9 7.15L14.18 7.54L14.44 7.99L14.68 8.47L14.89 9L15.09 9.56L15.26 10.15L15.41 10.75L15.52 11.37L15.62 12L15.68 12.63L15.72 13.25L15.74 13.85L15.72 14.44L15.69 15L15.63 15.53L15.55 16.01L15.45 16.46L15.33 16.85L15.2 17.2L15.05 17.48L14.89 17.71L14.73 17.87L14.56 17.97L14.38 18L14.21 17.97L14.04 17.87L13.87 17.71L13.71 17.48L13.57 17.2L13.43 16.85L13.31 16.46L13.21 16.01L13.13 15.53L13.07 15L13.04 14.44L13.03 13.85L13.04 13.25L13.08 12.63L13.15 12L13.24 11.37L13.36 10.75L13.5 10.15L13.67 9.56L13.87 9L14.09 8.47L14.33 7.99L14.58 7.54L14.86 7.15L15.15 6.8L15.46 6.52L15.78 6.29L16.1 6.13L16.43 6.03L16.76 6L17.1 6.03L17.43 6.13L17.75 6.29L18.07 6.52L18.37 6.8L18.67 7.15L18.94 7.54L19.2 7.99L19.44 8.47L19.66 9L19.85 9.56L20.02 10.15L20.17 10.75L20.29 11.37L20.38 12L20.45 12.63L20.49 13.25L20.5 13.85L20.49 14.44L20.45 15L20.39 15.53L20.31 16.01L20.21 16.46L20.1 16.85L19.96 17.2L19.81 17.48L19.66 17.71L19.49 17.87L19.32 17.97L19.15 18",op:"stroke",w:1.5}],solid:[{d:"M4.85 18L4.68 17.97L4.51 17.87L4.34 17.71L4.19 17.48L4.04 17.2L3.9 16.85L3.79 16.46L3.69 16.01L3.61 15.53L3.55 15L3.51 14.44L3.5 13.85L3.51 13.25L3.55 12.63L3.62 12L3.71 11.37L3.83 10.75L3.98 10.15L4.15 9.56L4.34 9L4.56 8.47L4.8 7.99L5.06 7.54L5.33 7.15L5.63 6.8L5.93 6.52L6.25 6.29L6.57 6.13L6.9 6.03L7.24 6L7.57 6.03L7.9 6.13L8.22 6.29L8.54 6.52L8.85 6.8L9.14 7.15L9.42 7.54L9.67 7.99L9.91 8.47L10.13 9L10.33 9.56L10.5 10.15L10.64 10.75L10.76 11.37L10.85 12L10.92 12.63L10.96 13.25L10.97 13.85L10.96 14.44L10.93 15L10.87 15.53L10.79 16.01L10.69 16.46L10.57 16.85L10.43 17.2L10.29 17.48L10.13 17.71L9.96 17.87L9.79 17.97L9.62 18L9.44 17.97L9.27 17.87L9.11 17.71L8.95 17.48L8.8 17.2L8.67 16.85L8.55 16.46L8.45 16.01L8.37 15.53L8.31 15L8.28 14.44L8.26 13.85L8.28 13.25L8.32 12.63L8.38 12L8.48 11.37L8.59 10.75L8.74 10.15L8.91 9.56L9.11 9L9.32 8.47L9.56 7.99L9.82 7.54L10.1 7.15L10.39 6.8L10.7 6.52L11.01 6.29L11.34 6.13L11.67 6.03L12 6L12.33 6.03L12.66 6.13L12.99 6.29L13.3 6.52L13.61 6.8L13.9 7.15L14.18 7.54L14.44 7.99L14.68 8.47L14.89 9L15.09 9.56L15.26 10.15L15.41 10.75L15.52 11.37L15.62 12L15.68 12.63L15.72 13.25L15.74 13.85L15.72 14.44L15.69 15L15.63 15.53L15.55 16.01L15.45 16.46L15.33 16.85L15.2 17.2L15.05 17.48L14.89 17.71L14.73 17.87L14.56 17.97L14.38 18L14.21 17.97L14.04 17.87L13.87 17.71L13.71 17.48L13.57 17.2L13.43 16.85L13.31 16.46L13.21 16.01L13.13 15.53L13.07 15L13.04 14.44L13.03 13.85L13.04 13.25L13.08 12.63L13.15 12L13.24 11.37L13.36 10.75L13.5 10.15L13.67 9.56L13.87 9L14.09 8.47L14.33 7.99L14.58 7.54L14.86 7.15L15.15 6.8L15.46 6.52L15.78 6.29L16.1 6.13L16.43 6.03L16.76 6L17.1 6.03L17.43 6.13L17.75 6.29L18.07 6.52L18.37 6.8L18.67 7.15L18.94 7.54L19.2 7.99L19.44 8.47L19.66 9L19.85 9.56L20.02 10.15L20.17 10.75L20.29 11.37L20.38 12L20.45 12.63L20.49 13.25L20.5 13.85L20.49 14.44L20.45 15L20.39 15.53L20.31 16.01L20.21 16.46L20.1 16.85L19.96 17.2L19.81 17.48L19.66 17.71L19.49 17.87L19.32 17.97L19.15 18",op:"stroke",w:2}],cat:[{d:"M4.85 18L4.68 17.97L4.51 17.87L4.34 17.71L4.19 17.48L4.04 17.2L3.9 16.85L3.79 16.46L3.69 16.01L3.61 15.53L3.55 15L3.51 14.44L3.5 13.85L3.51 13.25L3.55 12.63L3.62 12L3.71 11.37L3.83 10.75L3.98 10.15L4.15 9.56L4.34 9L4.56 8.47L4.8 7.99L5.06 7.54L5.33 7.15L5.63 6.8L5.93 6.52L6.25 6.29L6.57 6.13L6.9 6.03L7.24 6L7.57 6.03L7.9 6.13L8.22 6.29L8.54 6.52L8.85 6.8L9.14 7.15L9.42 7.54L9.67 7.99L9.91 8.47L10.13 9L10.33 9.56L10.5 10.15L10.64 10.75L10.76 11.37L10.85 12L10.92 12.63L10.96 13.25L10.97 13.85L10.96 14.44L10.93 15L10.87 15.53L10.79 16.01L10.69 16.46L10.57 16.85L10.43 17.2L10.29 17.48L10.13 17.71L9.96 17.87L9.79 17.97L9.62 18L9.44 17.97L9.27 17.87L9.11 17.71L8.95 17.48L8.8 17.2L8.67 16.85L8.55 16.46L8.45 16.01L8.37 15.53L8.31 15L8.28 14.44L8.26 13.85L8.28 13.25L8.32 12.63L8.38 12L8.48 11.37L8.59 10.75L8.74 10.15L8.91 9.56L9.11 9L9.32 8.47L9.56 7.99L9.82 7.54L10.1 7.15L10.39 6.8L10.7 6.52L11.01 6.29L11.34 6.13L11.67 6.03L12 6L12.33 6.03L12.66 6.13L12.99 6.29L13.3 6.52L13.61 6.8L13.9 7.15L14.18 7.54L14.44 7.99L14.68 8.47L14.89 9L15.09 9.56L15.26 10.15L15.41 10.75L15.52 11.37L15.62 12L15.68 12.63L15.72 13.25L15.74 13.85L15.72 14.44L15.69 15L15.63 15.53L15.55 16.01L15.45 16.46L15.33 16.85L15.2 17.2L15.05 17.48L14.89 17.71L14.73 17.87L14.56 17.97L14.38 18L14.21 17.97L14.04 17.87L13.87 17.71L13.71 17.48L13.57 17.2L13.43 16.85L13.31 16.46L13.21 16.01L13.13 15.53L13.07 15L13.04 14.44L13.03 13.85L13.04 13.25L13.08 12.63L13.15 12L13.24 11.37L13.36 10.75L13.5 10.15L13.67 9.56L13.87 9L14.09 8.47L14.33 7.99L14.58 7.54L14.86 7.15L15.15 6.8L15.46 6.52L15.78 6.29L16.1 6.13L16.43 6.03L16.76 6L17.1 6.03L17.43 6.13L17.75 6.29L18.07 6.52L18.37 6.8L18.67 7.15L18.94 7.54L19.2 7.99L19.44 8.47L19.66 9L19.85 9.56L20.02 10.15L20.17 10.75L20.29 11.37L20.38 12L20.45 12.63L20.49 13.25L20.5 13.85L20.49 14.44L20.45 15L20.39 15.53L20.31 16.01L20.21 16.46L20.1 16.85L19.96 17.2L19.81 17.48L19.66 17.71L19.49 17.87L19.32 17.97L19.15 18",op:"stroke",w:1.5},{d:"M20.5 18C21.25 19.5 20.75 21 19 21",op:"stroke",w:1.5,accent:!0}]},"tunable.status":{line:[{d:"M12 7.5L12 3.5",op:"stroke",w:1.5},{d:"M15.18 8.82L18.01 5.99",op:"stroke",w:1.5,alpha:.88},{d:"M16.5 12L20.5 12",op:"stroke",w:1.5,alpha:.76},{d:"M15.18 15.18L18.01 18.01",op:"stroke",w:1.5,alpha:.64},{d:"M12 16.5L12 20.5",op:"stroke",w:1.5,alpha:.52},{d:"M8.82 15.18L5.99 18.01",op:"stroke",w:1.5,alpha:.4},{d:"M7.5 12L3.5 12",op:"stroke",w:1.5,alpha:.3},{d:"M8.82 8.82L5.99 5.99",op:"stroke",w:1.5,alpha:.2}],solid:[{d:"M12 7.5L12 3.5",op:"stroke",w:2},{d:"M15.18 8.82L18.01 5.99",op:"stroke",w:2,alpha:.88},{d:"M16.5 12L20.5 12",op:"stroke",w:2,alpha:.76},{d:"M15.18 15.18L18.01 18.01",op:"stroke",w:2,alpha:.64},{d:"M12 16.5L12 20.5",op:"stroke",w:2,alpha:.52},{d:"M8.82 15.18L5.99 18.01",op:"stroke",w:2,alpha:.4},{d:"M7.5 12L3.5 12",op:"stroke",w:2,alpha:.3},{d:"M8.82 8.82L5.99 5.99",op:"stroke",w:2,alpha:.2}]},"tunable.tabDrag":{line:[{d:"M3 11.5L3 6C3 4.619 4.119 3.5 5.5 3.5L12.5 3.5C13.881 3.5 15 4.619 15 6L15 11.5Z",op:"stroke",w:1.5},{d:"M9 11.5L9 16C9 17.105 9.895 18 11 18L20.5 18M17 15L20 18L17 21",op:"stroke",w:1.5}],solid:[{d:"M3 11.5L3 6C3 4.619 4.119 3.5 5.5 3.5L12.5 3.5C13.881 3.5 15 4.619 15 6L15 11.5Z",op:"fill"},{d:"M3 11.5L3 6C3 4.619 4.119 3.5 5.5 3.5L12.5 3.5C13.881 3.5 15 4.619 15 6L15 11.5Z",op:"stroke",w:1.5},{d:"M9 11.5L9 16C9 17.105 9.895 18 11 18L20.5 18M17 15L20 18L17 21",op:"stroke",w:2}]},"tunable.tabs":{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282M10.188 4.752L10.188 9.282",op:"stroke",w:1.5}],solid:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"fill"},{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M3.846 9.282L20.154 9.282M10.188 4.752L10.188 9.282",op:"clearStroke",w:1.75}]},"tunable.tasks":{line:[{d:"M4 5.5L5.5 7L8.5 4M4 12L5.5 13.5L8.5 10.5M11.5 6L20 6M11.5 12.5L20 12.5M11.5 18.5L20 18.5",op:"stroke",w:1.5},{d:"M8 18.25C8 19.216 7.216 20 6.25 20C5.284 20 4.5 19.216 4.5 18.25C4.5 17.284 5.284 16.5 6.25 16.5C7.216 16.5 8 17.284 8 18.25Z",op:"stroke",w:1.5}],solid:[{d:"M4 5.5L5.5 7L8.5 4M4 12L5.5 13.5L8.5 10.5M11.5 6L20 6M11.5 12.5L20 12.5M11.5 18.5L20 18.5",op:"stroke",w:2},{d:"M8 18.25C8 19.216 7.216 20 6.25 20C5.284 20 4.5 19.216 4.5 18.25C4.5 17.284 5.284 16.5 6.25 16.5C7.216 16.5 8 17.284 8 18.25Z",op:"stroke",w:2}]},"unread.badge":{line:[{d:"M8 7L16 7C18.761 7 21 9.239 21 12L21 12C21 14.761 18.761 17 16 17L8 17C5.239 17 3 14.761 3 12L3 12C3 9.239 5.239 7 8 7Z",op:"stroke",w:1.5}],solid:[{d:"M8 6.25L16 6.25C19.176 6.25 21.75 8.824 21.75 12L21.75 12C21.75 15.176 19.176 17.75 16 17.75L8 17.75C4.824 17.75 2.25 15.176 2.25 12L2.25 12C2.25 8.824 4.824 6.25 8 6.25Z",op:"fill"}]},"unread.dot":{line:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"}],solid:[{d:"M16.5 12C16.5 14.485 14.485 16.5 12 16.5C9.515 16.5 7.5 14.485 7.5 12C7.5 9.515 9.515 7.5 12 7.5C14.485 7.5 16.5 9.515 16.5 12Z",op:"fill"},{d:"M20 12C20 16.418 16.418 20 12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12Z",op:"stroke",w:1.5}]},"view.grid":{line:[{d:"M5.916 4.512L9.192 4.512C9.967 4.512 10.596 5.141 10.596 5.916L10.596 9.192C10.596 9.967 9.967 10.596 9.192 10.596L5.916 10.596C5.141 10.596 4.512 9.967 4.512 9.192L4.512 5.916C4.512 5.141 5.141 4.512 5.916 4.512Z",op:"stroke",w:1.5},{d:"M14.808 4.512L18.084 4.512C18.859 4.512 19.488 5.141 19.488 5.916L19.488 9.192C19.488 9.967 18.859 10.596 18.084 10.596L14.808 10.596C14.033 10.596 13.404 9.967 13.404 9.192L13.404 5.916C13.404 5.141 14.033 4.512 14.808 4.512Z",op:"stroke",w:1.5},{d:"M5.916 13.404L9.192 13.404C9.967 13.404 10.596 14.033 10.596 14.808L10.596 18.084C10.596 18.859 9.967 19.488 9.192 19.488L5.916 19.488C5.141 19.488 4.512 18.859 4.512 18.084L4.512 14.808C4.512 14.033 5.141 13.404 5.916 13.404Z",op:"stroke",w:1.5},{d:"M14.808 13.404L18.084 13.404C18.859 13.404 19.488 14.033 19.488 14.808L19.488 18.084C19.488 18.859 18.859 19.488 18.084 19.488L14.808 19.488C14.033 19.488 13.404 18.859 13.404 18.084L13.404 14.808C13.404 14.033 14.033 13.404 14.808 13.404Z",op:"stroke",w:1.5}],solid:[{d:"M5.916 4.512L9.192 4.512C9.967 4.512 10.596 5.141 10.596 5.916L10.596 9.192C10.596 9.967 9.967 10.596 9.192 10.596L5.916 10.596C5.141 10.596 4.512 9.967 4.512 9.192L4.512 5.916C4.512 5.141 5.141 4.512 5.916 4.512Z",op:"fill"},{d:"M5.916 4.512L9.192 4.512C9.967 4.512 10.596 5.141 10.596 5.916L10.596 9.192C10.596 9.967 9.967 10.596 9.192 10.596L5.916 10.596C5.141 10.596 4.512 9.967 4.512 9.192L4.512 5.916C4.512 5.141 5.141 4.512 5.916 4.512Z",op:"stroke",w:1.5,cap:"butt"},{d:"M14.808 4.512L18.084 4.512C18.859 4.512 19.488 5.141 19.488 5.916L19.488 9.192C19.488 9.967 18.859 10.596 18.084 10.596L14.808 10.596C14.033 10.596 13.404 9.967 13.404 9.192L13.404 5.916C13.404 5.141 14.033 4.512 14.808 4.512Z",op:"fill"},{d:"M14.808 4.512L18.084 4.512C18.859 4.512 19.488 5.141 19.488 5.916L19.488 9.192C19.488 9.967 18.859 10.596 18.084 10.596L14.808 10.596C14.033 10.596 13.404 9.967 13.404 9.192L13.404 5.916C13.404 5.141 14.033 4.512 14.808 4.512Z",op:"stroke",w:1.5,cap:"butt"},{d:"M5.916 13.404L9.192 13.404C9.967 13.404 10.596 14.033 10.596 14.808L10.596 18.084C10.596 18.859 9.967 19.488 9.192 19.488L5.916 19.488C5.141 19.488 4.512 18.859 4.512 18.084L4.512 14.808C4.512 14.033 5.141 13.404 5.916 13.404Z",op:"fill"},{d:"M5.916 13.404L9.192 13.404C9.967 13.404 10.596 14.033 10.596 14.808L10.596 18.084C10.596 18.859 9.967 19.488 9.192 19.488L5.916 19.488C5.141 19.488 4.512 18.859 4.512 18.084L4.512 14.808C4.512 14.033 5.141 13.404 5.916 13.404Z",op:"stroke",w:1.5,cap:"butt"},{d:"M14.808 13.404L18.084 13.404C18.859 13.404 19.488 14.033 19.488 14.808L19.488 18.084C19.488 18.859 18.859 19.488 18.084 19.488L14.808 19.488C14.033 19.488 13.404 18.859 13.404 18.084L13.404 14.808C13.404 14.033 14.033 13.404 14.808 13.404Z",op:"fill"},{d:"M14.808 13.404L18.084 13.404C18.859 13.404 19.488 14.033 19.488 14.808L19.488 18.084C19.488 18.859 18.859 19.488 18.084 19.488L14.808 19.488C14.033 19.488 13.404 18.859 13.404 18.084L13.404 14.808C13.404 14.033 14.033 13.404 14.808 13.404Z",op:"stroke",w:1.5,cap:"butt"}],cat:[{d:"M5.916 5.448L9.192 5.448C9.967 5.448 10.596 6.077 10.596 6.852L10.596 10.128C10.596 10.903 9.967 11.532 9.192 11.532L5.916 11.532C5.141 11.532 4.512 10.903 4.512 10.128L4.512 6.852C4.512 6.077 5.141 5.448 5.916 5.448Z",op:"stroke",w:1.5},{d:"M14.808 5.448L18.084 5.448C18.859 5.448 19.488 6.077 19.488 6.852L19.488 10.128C19.488 10.903 18.859 11.532 18.084 11.532L14.808 11.532C14.033 11.532 13.404 10.903 13.404 10.128L13.404 6.852C13.404 6.077 14.033 5.448 14.808 5.448Z",op:"stroke",w:1.5},{d:"M5.916 13.872L9.192 13.872C9.967 13.872 10.596 14.501 10.596 15.276L10.596 18.552C10.596 19.327 9.967 19.956 9.192 19.956L5.916 19.956C5.141 19.956 4.512 19.327 4.512 18.552L4.512 15.276C4.512 14.501 5.141 13.872 5.916 13.872Z",op:"stroke",w:1.5},{d:"M14.808 13.872L18.084 13.872C18.859 13.872 19.488 14.501 19.488 15.276L19.488 18.552C19.488 19.327 18.859 19.956 18.084 19.956L14.808 19.956C14.033 19.956 13.404 19.327 13.404 18.552L13.404 15.276C13.404 14.501 14.033 13.872 14.808 13.872Z",op:"stroke",w:1.5},{d:"M14.34 5.448L14.34 3.108L15.978 4.746M18.552 5.448L18.552 3.108L16.914 4.746",op:"stroke",w:1.5,accent:!0}]},"view.list":{line:[{d:"M9.5 6L20 6M9.5 12L20 12M9.5 18L20 18",op:"stroke",w:1.5},{d:"M6.5 6C6.5 6.828 5.828 7.5 5 7.5C4.172 7.5 3.5 6.828 3.5 6C3.5 5.172 4.172 4.5 5 4.5C5.828 4.5 6.5 5.172 6.5 6Z",op:"fill"},{d:"M6.5 12C6.5 12.828 5.828 13.5 5 13.5C4.172 13.5 3.5 12.828 3.5 12C3.5 11.172 4.172 10.5 5 10.5C5.828 10.5 6.5 11.172 6.5 12Z",op:"fill"},{d:"M6.5 18C6.5 18.828 5.828 19.5 5 19.5C4.172 19.5 3.5 18.828 3.5 18C3.5 17.172 4.172 16.5 5 16.5C5.828 16.5 6.5 17.172 6.5 18Z",op:"fill"}],solid:[{d:"M9.5 6L20 6M9.5 12L20 12M9.5 18L20 18",op:"stroke",w:2},{d:"M6.9 6C6.9 7.049 6.049 7.9 5 7.9C3.951 7.9 3.1 7.049 3.1 6C3.1 4.951 3.951 4.1 5 4.1C6.049 4.1 6.9 4.951 6.9 6Z",op:"fill"},{d:"M6.9 12C6.9 13.049 6.049 13.9 5 13.9C3.951 13.9 3.1 13.049 3.1 12C3.1 10.951 3.951 10.1 5 10.1C6.049 10.1 6.9 10.951 6.9 12Z",op:"fill"},{d:"M6.9 18C6.9 19.049 6.049 19.9 5 19.9C3.951 19.9 3.1 19.049 3.1 18C3.1 16.951 3.951 16.1 5 16.1C6.049 16.1 6.9 16.951 6.9 18Z",op:"fill"}]},workspace:{line:[{d:"M6.111 4.752L17.889 4.752C19.14 4.752 20.154 5.766 20.154 7.017L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.017C3.846 5.766 4.86 4.752 6.111 4.752Z",op:"stroke",w:1.5},{d:"M9.282 4.752L9.282 19.248",op:"stroke",w:1.5}],solid:[{d:"M8.602 4.072L8.602 19.928L6.111 19.928C4.485 19.927 3.167 18.609 3.167 16.983L3.167 7.017C3.167 5.391 4.485 4.073 6.111 4.072Z",op:"fill"},{d:"M9.962 4.072L17.889 4.072C19.515 4.072 20.834 5.391 20.834 7.017L20.834 16.983C20.834 18.609 19.515 19.928 17.889 19.928L9.962 19.928Z",op:"fill"}],cat:[{d:"M6.111 5.658L17.889 5.658C19.14 5.658 20.154 6.672 20.154 7.923L20.154 16.983C20.154 18.234 19.14 19.248 17.889 19.248L6.111 19.248C4.86 19.248 3.846 18.234 3.846 16.983L3.846 7.923C3.846 6.672 4.86 5.658 6.111 5.658Z",op:"stroke",w:1.5},{d:"M9.282 5.658L9.282 19.248",op:"stroke",w:1.5},{d:"M12 5.658L12 3.393L13.812 5.205M18.342 5.658L18.342 3.393L16.53 5.205",op:"stroke",w:1.5,accent:!0}]},"workspace.new":{line:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M9.267 4.734L9.267 19.31",op:"stroke",w:1.5},{d:"M21.793 17.488C21.793 19.878 19.856 21.815 17.466 21.815C15.076 21.815 13.139 19.878 13.139 17.488C13.139 15.098 15.076 13.161 17.466 13.161C19.856 13.161 21.793 15.098 21.793 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:1.5}],solid:[{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"fill"},{d:"M6.078 4.734L17.922 4.734C19.18 4.734 20.199 5.753 20.199 7.011L20.199 17.033C20.199 18.291 19.18 19.31 17.922 19.31L6.078 19.31C4.82 19.31 3.801 18.291 3.801 17.033L3.801 7.011C3.801 5.753 4.82 4.734 6.078 4.734Z",op:"stroke",w:1.5},{d:"M9.267 4.734L9.267 19.31",op:"clearStroke",w:1.75},{d:"M22.021 17.488C22.021 20.004 19.982 22.043 17.466 22.043C14.95 22.043 12.911 20.004 12.911 17.488C12.911 14.972 14.95 12.933 17.466 12.933C19.982 12.933 22.021 14.972 22.021 17.488Z",op:"clearFill"},{d:"M17.466 15.211L17.466 19.766M15.188 17.488L19.743 17.488",op:"stroke",w:2}]}}};var n8e=t8e,r8e="icon.missing";function HU(t,e,n,r){let i=Object.hasOwn(t.icons,e)?t.icons[e]:void 0;return i?n==="line"&&r==="cat"&&i.cat?i.cat:i[n]:null}var Wm=R(ee(),1),Irt="var(--agent-accent, currentColor)",i8e={x:-24,y:-24,width:72,height:72},o8e=t=>({strokeWidth:t.w??1.5,strokeLinecap:t.cap??"round",strokeLinejoin:t.join??"round",strokeDasharray:t.dash?.join(" "),strokeDashoffset:t.dashPhase});function a8e(t,e){let n=t.accent?Irt:"currentColor";switch(t.op){case"fill":return(0,Wm.jsx)("path",{d:t.d,fill:n,opacity:t.alpha},e);case"stroke":return(0,Wm.jsx)("path",{d:t.d,fill:"none",stroke:n,opacity:t.alpha,...o8e(t)},e);case"clearFill":return(0,Wm.jsx)("path",{d:t.d,fill:"black"},e);case"clearStroke":return(0,Wm.jsx)("path",{d:t.d,fill:"none",stroke:"black",...o8e(t)},e)}}var s8e=t=>t.op==="clearFill"||t.op==="clearStroke";function l8e(t,e){let n=[],r=0;for(let i=0;i<t.length;i+=1){if(!s8e(t[i])){n.push(a8e(t[i],i));continue}let o=[];for(;i<t.length&&s8e(t[i]);)o.push(a8e(t[i],i)),i+=1;i-=1;let a=`${e}-m${r}`;r+=1,n=[(0,Wm.jsxs)("mask",{id:a,maskUnits:"userSpaceOnUse",...i8e,children:[(0,Wm.jsx)("rect",{...i8e,fill:"white"}),o]},`${a}-mask`),(0,Wm.jsx)("g",{mask:`url(#${a})`,children:n},`${a}-group`)]}return n}var c8e="2.5 2.5 19 19";function u8e(t){return Math.max(12,Math.round(1.2*t))}var Nrt=R(qe(),1),OT=R(Q(),1);var jrt=R(ee(),1),Prt=(0,OT.createContext)({pack:n8e,accent:"none"});function d8e(){return(0,OT.useContext)(Prt)}var DT=R(ee(),1),Drt=[{d:"M5 5L19 5L19 19L5 19Z",op:"stroke",w:1.5,dash:[2,2]}],p8e=new Set;function la(t){let e=(0,m8e.c)(39),{name:n,selected:r,size:i,row:o,title:a,className:s}=t,l=r===void 0?!1:r,c=i===void 0?16:i,u=o===void 0?!1:o,{pack:d,accent:p}=d8e(),m=(0,f8e.useId)(),f;if(e[0]!==m){let $;e[2]===Symbol.for("react.memo_cache_sentinel")?($=/[^\w-]/g,e[2]=$):$=e[2],f=m.replace($,""),e[0]=m,e[1]=f}else f=e[1];let h=f,x=l?"solid":"line",g,y,b,w,v,k,_,L,S,C,T,M;if(e[3]!==p||e[4]!==s||e[5]!==h||e[6]!==n||e[7]!==d||e[8]!==u||e[9]!==c||e[10]!==x||e[11]!==a){let $=HU(d,n,x,p);$||(p8e.has(n)||(p8e.add(n),console.warn(`cmux icon "${n}" is not in pack ${d.id}`)),$=HU(d,r8e,x,p)??Drt);let N=Math.max(12,c);S=u?c8e:"0 0 24 24",C=N,T=N,M=u?"visible":void 0,g=s,y=n,b=a?"img":void 0,w=a?void 0:!0,v=a,k="false",e[24]!==a?(_=a&&(0,DT.jsx)("title",{children:a}),e[24]=a,e[25]=_):_=e[25],L=l8e($,`cmux-icon-${h}`),e[3]=p,e[4]=s,e[5]=h,e[6]=n,e[7]=d,e[8]=u,e[9]=c,e[10]=x,e[11]=a,e[12]=g,e[13]=y,e[14]=b,e[15]=w,e[16]=v,e[17]=k,e[18]=_,e[19]=L,e[20]=S,e[21]=C,e[22]=T,e[23]=M}else g=e[12],y=e[13],b=e[14],w=e[15],v=e[16],k=e[17],_=e[18],L=e[19],S=e[20],C=e[21],T=e[22],M=e[23];let A;return e[26]!==g||e[27]!==y||e[28]!==b||e[29]!==w||e[30]!==v||e[31]!==k||e[32]!==_||e[33]!==L||e[34]!==S||e[35]!==C||e[36]!==T||e[37]!==M?(A=(0,DT.jsxs)("svg",{viewBox:S,width:C,height:T,overflow:M,className:g,"data-icon":y,role:b,"aria-hidden":w,"aria-label":v,focusable:k,children:[_,L]}),e[26]=g,e[27]=y,e[28]=b,e[29]=w,e[30]=v,e[31]=k,e[32]=_,e[33]=L,e[34]=S,e[35]=C,e[36]=T,e[37]=M,e[38]=A):A=e[38],A}var Frt=/https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/(\d+)/g,Brt=/(?:--title[= ]|-t )(?:"((?:[^"\\]|\\.)*)"|'([^']*)'|(\S+))/,g8e=String.raw`(?:https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/|#)?(\d+)`,zrt=new RegExp(String.raw`\bgh\s+pr\s+merge\s+${g8e}|\bgh-merge-green\s+([\w.-]+\/[\w.-]+)?#(\d+)`),qrt=new RegExp(String.raw`\bgh\s+pr\s+close\s+${g8e}`),Hrt=/https?:\/\/[^\s"'<>)]+/,Grt=t=>t.flatMap(e=>e.kind==="activity"?(e.items??[]).flatMap(n=>n.tool??[]):[]),h8e=t=>t.status==="completed"&&(t.exitCode??0)===0;function Urt(t){let e=new Map;for(let n of t){let r=n.command??"";if(/\bgh\s+pr\s+create\b/.test(r)&&h8e(n)){let l=Brt.exec(r);for(let[c,u,d]of(n.output??"").matchAll(Frt))e.has(c)||e.set(c,{url:c,repo:u,number:Number(d),title:l?(l[1]??l[2]??l[3])?.replace(/\\(.)/g,"$1"):void 0,state:"open"});continue}let i=zrt.exec(r),o=i??qrt.exec(r);if(!o||!h8e(n))continue;let a=o[1]??o[3],s=Number(o[2]??o[4]);for(let l of e.values())l.number===s&&(!a||a===l.repo)&&(l.state=i?"merged":"closed")}return[...e.values()]}function Vrt(t){return t.filter(e=>e.kind==="think"&&e.title.trim()!=="").map(e=>({id:e.id,title:e.title,state:e.status==="completed"?"done":e.status==="failed"?"failed":"running"}))}function Zrt(t){try{let e=JSON.parse(t.inputSummary??"");return e&&typeof e=="object"?e:{}}catch{return{}}}var GU=t=>typeof t=="string"&&t.trim()?t.trim():void 0;function Wrt(t){return t.filter(e=>/^(ScheduleWakeup|CronCreate)\b/.test(e.title)&&e.status!=="failed").map(e=>{let n=Zrt(e);return{id:e.id,text:GU(n.reason)??GU(n.prompt)??e.title,cron:GU(n.cron)}})}function Krt(t){let e=new Map;for(let n of t){if(n.kind!=="fetch")continue;let r=`${n.title} ${n.inputSummary??""}`,i=Hrt.exec(r)?.[0],o=i?i.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,""):n.title,a=i??o;e.has(a)||e.set(a,{url:i,label:o})}return[...e.values()]}function b8e(t){let e=Grt(t);return{scheduled:Wrt(e),pullRequests:Urt(e),outputs:Sd(t),subagents:Vrt(e),sources:Krt(e)}}var _8e=R(qe(),1);var y8e=R(qe(),1);var P3=R(ee(),1),x8e=4;function w8e(t){let e=(0,y8e.c)(24),{subagents:n}=t,r=ve(),i;e[0]!==n?(i=x=>n.filter(g=>g.state===x).length,e[0]=n,e[1]=i):i=e[1];let o=i,a;e[2]!==o||e[3]!==r?(a=o("running")>0&&r("summary.subagents.running",{n:o("running")}),e[2]=o,e[3]=r,e[4]=a):a=e[4];let s;e[5]!==o||e[6]!==r?(s=o("failed")>0&&r("summary.subagents.failed",{n:o("failed")}),e[5]=o,e[6]=r,e[7]=s):s=e[7];let l;e[8]!==o||e[9]!==r?(l=o("done")>0&&r("summary.subagents.done",{n:o("done")}),e[8]=o,e[9]=r,e[10]=l):l=e[10];let c;e[11]!==a||e[12]!==s||e[13]!==l?(c=[a,s,l].filter(Boolean),e[11]=a,e[12]=s,e[13]=l,e[14]=c):c=e[14];let u=c,d;e[15]!==n?(d=n.slice(0,x8e).map(Xrt),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==d?(p=(0,P3.jsx)("span",{className:"acpmux-summary-stack","aria-hidden":"true",children:d}),e[17]=d,e[18]=p):p=e[18];let m=u.join(" \xB7 "),f;e[19]!==m?(f=(0,P3.jsx)("span",{className:"acpmux-summary-text",children:m}),e[19]=m,e[20]=f):f=e[20];let h;return e[21]!==p||e[22]!==f?(h=(0,P3.jsxs)("li",{className:"acpmux-summary-row acpmux-summary-subagents",children:[p,f]}),e[21]=p,e[22]=f,e[23]=h):h=e[23],h}function Xrt(t,e){return(0,P3.jsx)("span",{className:"acpmux-summary-dot","data-state":t.state,"data-tone":e%x8e,title:t.title},t.id)}var k8e=R(qe(),1),C8e=R(Q(),1);var Qd=R(ee(),1),v8e=5;function B8(t){let e=(0,k8e.c)(31),{title:n,items:r,row:i,fixed:o}=t,a=o===void 0?!1:o,s=ve(),[l,c]=(0,C8e.useState)(!1);if(r.length===0){if(!a)return null;let g;e[0]!==n?(g=(0,Qd.jsx)("h3",{className:"acpmux-summary-title",children:n}),e[0]=n,e[1]=g):g=e[1];let y;e[2]!==s?(y=s("summary.none"),e[2]=s,e[3]=y):y=e[3];let b;e[4]!==y?(b=(0,Qd.jsx)("ul",{className:"acpmux-summary-list",children:(0,Qd.jsx)("li",{className:"acpmux-summary-row acpmux-summary-none",children:y})}),e[4]=y,e[5]=b):b=e[5];let w;return e[6]!==g||e[7]!==b||e[8]!==n?(w=(0,Qd.jsxs)("section",{className:"acpmux-summary-section","aria-label":n,children:[g,b]}),e[6]=g,e[7]=b,e[8]=n,e[9]=w):w=e[9],w}let u;e[10]!==l||e[11]!==r?(u=l?r:r.slice(0,v8e),e[10]=l,e[11]=r,e[12]=u):u=e[12];let d=u,p;e[13]!==n?(p=(0,Qd.jsx)("h3",{className:"acpmux-summary-title",children:n}),e[13]=n,e[14]=p):p=e[14];let m;if(e[15]!==i||e[16]!==d){let g;e[18]!==i?(g=y=>i(y),e[18]=i,e[19]=g):g=e[19],m=d.map(g),e[15]=i,e[16]=d,e[17]=m}else m=e[17];let f;e[20]!==m?(f=(0,Qd.jsx)("ul",{className:"acpmux-summary-list",children:m}),e[20]=m,e[21]=f):f=e[21];let h;e[22]!==l||e[23]!==r.length||e[24]!==s?(h=r.length>v8e&&(0,Qd.jsx)("button",{type:"button",className:"acpmux-summary-more",onClick:()=>c(!l),children:l?s("summary.showFewer"):s("summary.viewAll",{n:r.length})}),e[22]=l,e[23]=r.length,e[24]=s,e[25]=h):h=e[25];let x;return e[26]!==p||e[27]!==f||e[28]!==h||e[29]!==n?(x=(0,Qd.jsxs)("section",{className:"acpmux-summary-section","aria-label":n,children:[p,f,h]}),e[26]=p,e[27]=f,e[28]=h,e[29]=n,e[30]=x):x=e[30],x}var Wn=R(ee(),1),z8=u8e(12);function S8e(t){let e=(0,_8e.c)(49),{summary:n,onOpenOutput:r,onFollow:i}=t,o=ve(),a;e[0]!==o?(a=o("summary.outputs"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==r?(s=_=>(0,Wn.jsx)("li",{children:(0,Wn.jsxs)("button",{type:"button",className:"acpmux-summary-row acpmux-summary-link",title:_.path,disabled:!r,onClick:()=>r?.(_.path),children:[(0,Wn.jsx)(la,{name:_.created?"file.new":"file.text",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.displayPath}),(0,Wn.jsx)(Gm,{additions:_.additions,deletions:_.deletions})]})},_.path),e[2]=r,e[3]=s):s=e[3];let l;e[4]!==n.outputs||e[5]!==a||e[6]!==s?(l=(0,Wn.jsx)(B8,{title:a,fixed:!0,items:n.outputs,row:s}),e[4]=n.outputs,e[5]=a,e[6]=s,e[7]=l):l=e[7];let c;e[8]!==o?(c=o("summary.subagents"),e[8]=o,e[9]=c):c=e[9];let u;e[10]!==o?(u=o("summary.subagents"),e[10]=o,e[11]=u):u=e[11];let d;e[12]!==u?(d=(0,Wn.jsx)("h3",{className:"acpmux-summary-title",children:u}),e[12]=u,e[13]=d):d=e[13];let p;e[14]!==n.subagents||e[15]!==o?(p=(0,Wn.jsx)("ul",{className:"acpmux-summary-list",children:n.subagents.length>0?(0,Wn.jsx)(w8e,{subagents:n.subagents}):(0,Wn.jsx)("li",{className:"acpmux-summary-row acpmux-summary-none",children:o("summary.none")})}),e[14]=n.subagents,e[15]=o,e[16]=p):p=e[16];let m;e[17]!==c||e[18]!==d||e[19]!==p?(m=(0,Wn.jsxs)("section",{className:"acpmux-summary-section","aria-label":c,children:[d,p]}),e[17]=c,e[18]=d,e[19]=p,e[20]=m):m=e[20];let f;e[21]!==o?(f=o("summary.sources"),e[21]=o,e[22]=f):f=e[22];let h;e[23]!==i?(h=_=>(0,Wn.jsx)("li",{children:_.url?(0,Wn.jsxs)("a",{className:"acpmux-summary-row acpmux-summary-link",href:_.url,title:_.url,onClick:i,children:[(0,Wn.jsx)(la,{name:"link.web",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.label})]}):(0,Wn.jsxs)("span",{className:"acpmux-summary-row",children:[(0,Wn.jsx)(la,{name:"search.files",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.label})]})},_.url??_.label),e[23]=i,e[24]=h):h=e[24];let x;e[25]!==n.sources||e[26]!==h||e[27]!==f?(x=(0,Wn.jsx)(B8,{title:f,fixed:!0,items:n.sources,row:h}),e[25]=n.sources,e[26]=h,e[27]=f,e[28]=x):x=e[28];let g;e[29]!==o?(g=o("summary.pullRequests"),e[29]=o,e[30]=g):g=e[30];let y;e[31]!==i||e[32]!==o?(y=_=>(0,Wn.jsx)("li",{children:(0,Wn.jsxs)("a",{className:"acpmux-summary-row acpmux-summary-link",href:_.url,onClick:i,"data-state":_.state,title:`${_.repo}#${_.number}${_.state==="open"?"":` \xB7 ${o(`summary.pr.${_.state}`)}`}`,children:[(0,Wn.jsx)(la,{name:"git.pullrequest",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",children:_.title??`${_.repo}#${_.number}`}),(0,Wn.jsxs)("span",{className:"acpmux-summary-meta",children:["#",_.number]})]})},_.url),e[31]=i,e[32]=o,e[33]=y):y=e[33];let b;e[34]!==n.pullRequests||e[35]!==g||e[36]!==y?(b=(0,Wn.jsx)(B8,{title:g,items:n.pullRequests,row:y}),e[34]=n.pullRequests,e[35]=g,e[36]=y,e[37]=b):b=e[37];let w;e[38]!==o?(w=o("summary.scheduled"),e[38]=o,e[39]=w):w=e[39];let v;e[40]!==n.scheduled||e[41]!==w?(v=(0,Wn.jsx)(B8,{title:w,items:n.scheduled,row:Yrt}),e[40]=n.scheduled,e[41]=w,e[42]=v):v=e[42];let k;return e[43]!==x||e[44]!==b||e[45]!==v||e[46]!==l||e[47]!==m?(k=(0,Wn.jsxs)(Wn.Fragment,{children:[l,m,x,b,v]}),e[43]=x,e[44]=b,e[45]=v,e[46]=l,e[47]=m,e[48]=k):k=e[48],k}function Yrt(t){return(0,Wn.jsxs)("li",{className:"acpmux-summary-row",children:[(0,Wn.jsx)(la,{name:"task.status.started",size:z8,row:!0}),(0,Wn.jsx)("span",{className:"acpmux-summary-text",title:t.text,children:t.text}),t.cron&&(0,Wn.jsx)("span",{className:"acpmux-summary-meta",children:t.cron})]},t.id)}var h5=R(ee(),1);function L8e({rows:t,onOpenOutput:e}){let n=ve(),[r,i]=(0,Km.useState)(!1),o=(0,Km.useRef)(null),a=(0,Km.useMemo)(()=>r?b8e(t):void 0,[r,t]);(0,Km.useEffect)(()=>{if(!r)return;let l=c=>{let u=c.target;u instanceof Node&&(o.current?.contains(u)||u.closest?.(".acpmux-summary-popover")||i(!1))};return document.addEventListener("pointerdown",l,!0),()=>document.removeEventListener("pointerdown",l,!0)},[r]);let s=n("summary.open");return(0,Km.useEffect)(()=>Xs(s,()=>i(!0)),[s,i]),(0,h5.jsxs)("span",{className:"acpmux-summary",children:[(0,h5.jsx)("button",{ref:o,type:"button",className:"acpmux-summary-button","aria-label":s,title:s,"aria-haspopup":"dialog","aria-expanded":r,onClick:()=>i(l=>!l),children:(0,h5.jsx)(la,{name:"view.list",size:15})}),a?(0,h5.jsx)(ay,{open:r,onOpenChange:i,anchor:o.current,label:s,className:"acpmux-summary-popover",finalFocus:o,children:(0,h5.jsx)(S8e,{summary:a,onFollow:()=>i(!1),onOpenOutput:e&&(l=>{i(!1),e(l)})})}):null]})}function T8e(t){if(t===null)return{state:"missing"};let e=t&&typeof t=="object"?t:{};if(e.unsupported===!0)return{state:"unsupported"};let n=typeof e.checkpoint_id=="string"?e.checkpoint_id:void 0,r=PT(e.diff,"lastTurn");return!n||!r?{state:"error"}:e.complete!==!0?{state:"incomplete",checkpointId:n}:{state:"loaded",checkpointId:n,changeSet:r}}function M8e(t){let e=new Map;for(let n of t.lines){if(n.type==="context")continue;let r=n.type+"\0"+n.text;e.set(r,(e.get(r)??0)+1)}return e}function Qrt(t,e){return t.size!==e.size?!1:[...t].every(([n,r])=>e.get(n)===r)}function E8e(t){return new Set(t.lines.flatMap(e=>{if(e.type==="context")return[];let n=e.type==="add"?e.newLine:e.oldLine;return n===void 0?[]:[n]}))}function Jrt(t,e,n){if(!n||t.patchTruncated)return[];let r=M8e(e);if(r.size===0)return[];let i=E8e(e),o=n.edits.flatMap((l,c)=>l.hunks.map((u,d)=>({key:T2(n,c,d),changed:M8e(u),lines:E8e(u)}))),a=new Set;for(let[l,c]of r){let u=o.filter(d=>(d.changed.get(l)??0)>=c&&(i.size===0||d.lines.size===0||[...i].some(p=>d.lines.has(p))));if(u.length!==1)return[];a.add(u[0].key)}let s=new Map;for(let l of o.filter(c=>a.has(c.key)))for(let[c,u]of l.changed)s.set(c,(s.get(c)??0)+u);return Qrt(r,s)?[...a]:[]}function eit(t,e){let n=e.filter(i=>R8e(t,[i])),r=n.length===1?n[0]:void 0;return{...t,edits:t.edits.map(i=>({...i,hunks:i.hunks.map(o=>({...o,reviewKeys:Jrt(t,o,r)}))}))}}function R8e(t,e){return e.some(n=>n.path===t.path||n.path.endsWith(`/${t.displayPath}`))}function UU(t,e,n,r){let i=o=>({files:e,source:"tools",note:o});switch(n.state){case"unsupported":case"loading":return i();case"missing":return i(t("turn.checkpoint.missing"));case"error":return i(t("turn.checkpoint.failed"));case"incomplete":return i(t("turn.checkpoint.incomplete"));case"loaded":return r?i(t("turn.checkpoint.pending")):{files:jT(n.changeSet).map(a=>{let s=eit(a,e);return{...s,edits:s.edits.map(l=>({...l,toolId:`checkpoint:${n.checkpointId}`})),...R8e(a,e)?{}:{outside:!0}}}),source:"checkpoint"}}}function FT(t,e){let r=(e?.state==="loaded"?UU(KI(Ob()),[...t],e,!1):void 0)?.files??t;return{files:r,additions:r.reduce((i,o)=>i+o.additions,0),deletions:r.reduce((i,o)=>i+o.deletions,0),outside:r.some(i=>i.outside)}}var A8e=R(Q(),1),BT=(0,A8e.createContext)(void 0);var Jd=R(Q(),1);function $8e(t,e){let[n,r]=(0,Jd.useState)({map:new Map}),i=(0,Jd.useRef)(e);i.current=e;let o=(0,Jd.useRef)(new Map);(0,Jd.useEffect)(()=>{o.current=new Map,r(c=>c.map.size?{sessionId:e,map:new Map}:c)},[e]);let a=(0,Jd.useCallback)(c=>{if(!t)return;let u=o.current.get(c);if(u&&u!=="error")return;let d=i.current,p=m=>{i.current===d&&(o.current.set(c,m.state),r(f=>({sessionId:d,map:new Map(f.map).set(c,m)})))};p({state:"loading"}),t({rowId:c}).then(m=>p(T8e(m)),m=>p({state:"error",message:m instanceof Error?m.message:void 0}))},[t]),s=n.sessionId===e?n.map:void 0,l=(0,Jd.useCallback)(c=>t?s?.get(c):{state:"unsupported"},[t,s]);return{request:a,get:l}}var su=R(Q(),1);var j3=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Myanmar}、。,.!?「」『』()]/u,F8e=t=>/^[^\s.,;:!?)\]}'"’”]/u.test(t)&&!j3.test(t[0]??""),B8e=t=>/[^\s([{<"'‘“/\\@#-]$/u.test(t)&&!j3.test(t.at(-1)??""),I8e=/[\p{L}\p{N}]/u;function z8e(t,e=""){let n=Math.min(t.selectionStart,t.selectionEnd),r=Math.max(t.selectionStart,t.selectionEnd),i=t.value.slice(0,n),o=t.value.slice(r);return{start:n,length:0,written:i+o,replaced:t.value.slice(n,r),handed:e,seen:e,tail:0,continues:!!e&&!!N8e(e)&&i.endsWith(N8e(e)),leadingSpace:B8e(i),trailingSpace:F8e(o)}}function q8e(t,e,n){let r=n.state==="starting"||n.state==="listening"||n.state==="finalizing",i=!e;if(e)t.value!==e.written&&(e=nit(e,t.value)??rit(e,t));else{if(!r||n.cancelled)return null;e=z8e(t)}let{rest:o,glued:a}=tit(n.text,e),s=a?o:o.replace(/^\s+/u,""),l={selectionStart:t.selectionStart,selectionEnd:t.selectionEnd};if(n.cancelled||!r&&!s&&e.length===0){if(e.length===0&&!e.replaced)return{value:t.value,...l,anchor:null,placed:!1};let y=e.written.slice(0,e.start)+e.replaced+e.written.slice(e.start+e.length),b=e.start+e.length,w=v=>v<=e.start?v:v>=b?v+e.replaced.length-e.length:e.start+e.replaced.length;return{value:y,selectionStart:w(t.selectionStart),selectionEnd:w(t.selectionEnd),anchor:null,placed:!1}}let c=F8e(s)||/^\s/u.test(o)&&j3.test(s[0]??""),u=s&&!a&&e.leadingSpace&&c?" ":"",d=s&&e.trailingSpace&&B8e(s)?" ":"",p=u+s+d,m=e.written.slice(0,e.start)+p+e.written.slice(e.start+e.length),f=e.start+e.length,h=i||t.selectionStart===t.selectionEnd&&t.selectionStart===f-e.tail,x=y=>y>=f?y+p.length-e.length:y,g=e.start+u.length+s.length;return{value:m,selectionStart:h?g:x(t.selectionStart),selectionEnd:h?g:x(t.selectionEnd),anchor:r?{...e,length:p.length,written:m,seen:n.text,tail:d.length}:null,placed:s.length>0}}var N8e=t=>/[\p{L}\p{N}]+$/u.exec(t)?.[0]??"",P8e=t=>t.trim().split(/\s+/u).filter(Boolean),Xm=t=>t.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"");function tit(t,e){let n=e.handed;if(!n)return{rest:t,glued:!1};if(t.startsWith(n)){let l=t.slice(n.length),c=n.at(-1)??"",u=l[0]??"";return I8e.test(c)&&I8e.test(u)&&!j3.test(c)&&!j3.test(u)?e.continues?{rest:l,glued:!0}:{rest:l.replace(/^[\p{L}\p{N}]+/u,""),glued:!1}:{rest:l,glued:!1}}if(j3.test(n)&&!/\s/u.test(n.trim())){let l=j8e(t),c=O8e(j8e(n),l,(u,d)=>u===d);return{rest:c<0?"":l.slice(c+1).join(""),glued:!1}}let r=P8e(n),i=P8e(t),o=Xm(r.join("")),a="";for(let l=0;l<i.length&&o;l+=1){if(a+=Xm(i[l]),a===o){let c=l+1;for(let u=r.length-1;u>=0&&!Xm(r[u])&&c<i.length&&!Xm(i[c]);u-=1)c+=1;return D8e(i.slice(c))}if(!o.startsWith(a))break}let s=Xm(r.at(-1)??"")?O8e(r,i,(l,c)=>Xm(l)===Xm(c)):-1;return D8e(s<0?[]:i.slice(s+1))}var j8e=t=>Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),e=>e.segment);function O8e(t,e,n){let r=t.at(-1),i=t.at(-2);if(r===void 0)return-1;let o=c=>c.flatMap((u,d)=>d>0&&i!==void 0&&n(u,r)&&n(c[d-1],i)?[d]:[]),a=o(t),s=o(e),l=-1;if(s.length>0)s.length===a.length&&(l=s.at(-1));else{let c=p=>p.flatMap((m,f)=>n(m,r)?[f]:[]),u=c(t),d=c(e);u.length===1&&d.length===1&&(l=d[0])}return l<0||Xm(e.slice(0,l+1).join("")).length*2<Xm(t.join("")).length?-1:l}function D8e(t){let e=t.join(" ");return{rest:e&&" "+e,glued:!1}}function nit(t,e){if(t.length===0)return null;let n=t.written.slice(t.start,t.start+t.length),r=t.written.slice(0,t.start),i=t.written.slice(t.start+t.length);return e.startsWith(r+n)?{...t,written:e}:e.endsWith(n+i)?{...t,start:e.length-n.length-i.length,written:e}:null}function rit(t,e){let n=t.written.slice(0,t.start),r=t.written.slice(t.start+t.length),i=e.value,o=i.length>=n.length+r.length&&i.startsWith(n)&&i.endsWith(r),a=o?i.length-r.length:e.selectionStart;return o&&t.tail&&i[a-1]===" "&&(a-=1),z8e({value:i,selectionStart:a,selectionEnd:a},t.seen)}var VU=new Set;function H8e(t){oit(t.level,Lh(t.state));for(let e of VU)e(t)}var G8e=!1;function U8e(t){G8e=t?.dictation?.autoSend===!0}var iit=5,ZU=Array(iit).fill(0),g5={samples:ZU,listeners:new Set};function oit(t,e){if(!(!e&&g5.samples===ZU)){g5.samples=e?[...g5.samples.slice(1),t]:ZU;for(let n of g5.listeners)n()}}var V8e=t=>(g5.listeners.add(t),()=>{g5.listeners.delete(t)}),Z8e=()=>g5.samples,Lh=t=>t==="starting"||t==="listening"||t==="finalizing";function W8e(t,e){let n=ve(),[r,i]=(0,su.useState)("idle"),[o,a]=(0,su.useState)(null),s=(0,su.useRef)(null),l=(0,su.useRef)([]),c=(0,su.useRef)(!1);(0,su.useEffect)(()=>{let p=!1,m=null,f=b=>{let w=t.current;if(!w||m&&m.state===b.state&&m.text===b.text&&!b.cancelled)return;m=Lh(b.state)?b:null,b.state==="starting"&&document.hasFocus()&&!w.focused()&&w.focus();let v=q8e(w.text(),s.current,b);v&&(s.current=v.anchor,w.writeText(v.value,v.selectionStart,v.selectionEnd),b.state==="idle"&&!b.cancelled&&G8e&&v.placed&&setTimeout(()=>w.element()?.closest("form")?.requestSubmit(),0))},h=b=>{if(c.current=!1,i(b.state),b.state==="failed"||b.state==="denied"?a(b):b.state==="starting"&&a(null),!p)f(b);else{let w=l.current,v=w.at(-1);v&&Lh(v.state)&&v.state===b.state&&!b.cancelled?w[w.length-1]=b:w.push(b)}},x=b=>{let w=t.current?.element();return!!w&&b.target instanceof Node&&w.contains(b.target)},g=b=>{x(b)&&(p=!0)},y=b=>{if(!x(b))return;p=!1;let w=l.current;l.current=[];for(let v of w)f(v)};return document.addEventListener("compositionstart",g,!0),document.addEventListener("compositionend",y,!0),VU.add(h),()=>{VU.delete(h),document.removeEventListener("compositionstart",g,!0),document.removeEventListener("compositionend",y,!0)}},[t]);let u=Lh(r);(0,su.useEffect)(()=>{if(!u)return;let p=m=>{m.key!=="Escape"||m.isComposing||m.keyCode===229||(m.preventDefault(),m.stopPropagation(),e("dictation.cancel").catch(()=>{}))};return document.addEventListener("keydown",p,!0),()=>document.removeEventListener("keydown",p,!0)},[u,e]);let d=(0,su.useRef)(r);return d.current=r,(0,su.useEffect)(()=>()=>{(Lh(d.current)||c.current)&&e("dictation.cancel").catch(()=>{})},[e]),{state:r,notice:o,toggle(){u||t.current?.focus(),c.current=!0,e("dictation.toggle").catch(p=>{c.current=!1,a({state:"failed",text:"",level:0,cancelled:!1,message:p instanceof Error&&p.message&&!(p instanceof Ic&&p.code==="native.not_connected")?p.message:n("dictation.unavailable")})})},cancel(){e("dictation.cancel").catch(()=>{})},openSettings(){o?.permission&&e("dictation.openSettings",{permission:o.permission}).catch(()=>{})},dismiss(){a(null)}}}var J8e=R(qe(),1);var K8e=R(qe(),1),X8e=R(Q(),1);var WU=R(ee(),1);function Y8e(){let t=(0,K8e.c)(4),e=(0,X8e.useSyncExternalStore)(V8e,Z8e),n;t[0]!==e?(n=e.map(ait),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=(0,WU.jsx)("span",{className:"acpmux-mic-meter","aria-hidden":"true",children:n}),t[2]=n,t[3]=r):r=t[3],r}function ait(t,e){return(0,WU.jsx)("span",{style:{transform:`scaleY(${Math.max(.18,Math.min(1,t*1.4))})`}},e)}var zT=R(Q(),1),cl={searchChats:"agentPane.searchChats",newAgentChat:"palette.newAgentChat",toggleDictation:"palette.toggleDictation",permissionAllowOnce:"agentPane.permission.allowOnce",permissionAllowChat:"agentPane.permission.allowChat",permissionDeny:"agentPane.permission.deny",permissionRetry:"agentPane.permission.retry",permissionRevoke:"agentPane.permission.revoke",permissionRefresh:"agentPane.permission.refresh",permissionExpand:"agentPane.permission.expand",copyTabLink:"palette.copySurfaceLink"};function Q8e(t){return!t||typeof t!="object"||Array.isArray(t)?{}:Object.fromEntries(Object.entries(t).filter(e=>typeof e[1]=="string"&&e[1]!==""))}var lu=(t,e)=>e?`${t} (${e})`:t,qT=(0,zT.createContext)({}),Ga=t=>(0,zT.useContext)(qT)[t];var HT=R(ee(),1);function e9e(t){let e=(0,J8e.c)(11),{dictation:n}=t,r=ve(),{state:i}=n,o=i==="listening"||i==="finalizing",a=Lh(i)?r("dictation.stop"):r("dictation.start"),s=Ga(cl.toggleDictation),l="button",c="acpmux-mic",u;e[0]!==i?(u=Lh(i),e[0]=i,e[1]=u):u=e[1];let d=lu(a,s),p;e[2]!==o?(p=o?(0,HT.jsx)(Y8e,{}):(0,HT.jsx)(qde,{}),e[2]=o,e[3]=p):p=e[3];let m;return e[4]!==n.toggle||e[5]!==a||e[6]!==i||e[7]!==u||e[8]!==d||e[9]!==p?(m=(0,HT.jsx)("button",{type:l,className:c,"data-state":i,"aria-label":a,"aria-pressed":u,title:d,onMouseDown:sit,onClick:n.toggle,children:p}),e[4]=n.toggle,e[5]=a,e[6]=i,e[7]=u,e[8]=d,e[9]=p,e[10]=m):m=e[10],m}function sit(t){return t.preventDefault()}var t9e=R(qe(),1);var O3=R(ee(),1);function n9e(t){let e=(0,t9e.c)(20),{dictation:n}=t,r=ve(),i=n.notice;if(!i?.message)return null;let o;e[0]!==i.message?(o=(0,O3.jsx)("span",{children:i.message}),e[0]=i.message,e[1]=o):o=e[1];let a;e[2]!==n.openSettings||e[3]!==i.permission||e[4]!==i.settingsLabel||e[5]!==i.state||e[6]!==r?(a=i.state==="denied"&&i.permission&&(0,O3.jsx)("button",{type:"button",className:"acpmux-dictation-settings",onClick:n.openSettings,children:i.settingsLabel??r("dictation.openSettings")}),e[2]=n.openSettings,e[3]=i.permission,e[4]=i.settingsLabel,e[5]=i.state,e[6]=r,e[7]=a):a=e[7];let s;e[8]!==r?(s=r("dictation.dismiss"),e[8]=r,e[9]=s):s=e[9];let l;e[10]!==r?(l=r("dictation.dismiss"),e[10]=r,e[11]=l):l=e[11];let c;e[12]!==n.dismiss||e[13]!==s||e[14]!==l?(c=(0,O3.jsx)("button",{type:"button",className:"acpmux-dictation-dismiss","aria-label":s,title:l,onClick:n.dismiss,children:"\xD7"}),e[12]=n.dismiss,e[13]=s,e[14]=l,e[15]=c):c=e[15];let u;return e[16]!==o||e[17]!==a||e[18]!==c?(u=(0,O3.jsxs)("div",{className:"acpmux-dictation-notice",role:"alert",children:[o,a,c]}),e[16]=o,e[17]=a,e[18]=c,e[19]=u):u=e[19],u}var KU=R(qe(),1),Ym=R(Q(),1);var GT=class t{static rateWindowMs=600;static gapFactor=1.25;static minLagMs=50;static maxLagMs=350;static correctMs=250;static minCharsPerSecond=40;static maxBacklogMs=900;static catchUpMs=250;static finishMs=180;static stallMs=600;static maxFrameMs=100;shown;received;lastFrame;clock=0;lastArrival;arrivals=[];gaps=[];smoothedRate=0;drainUntil;reduceMotion;constructor(e={}){this.shown=e.initial?.length??0,this.received=this.shown,this.reduceMotion=e.reduceMotion??!1}get settled(){return Math.floor(this.shown)>=this.received}flush(){this.shown=this.received}advance(e,n,r){let i=this.lastFrame===void 0?0:Math.min(t.maxFrameMs,Math.max(0,n-this.lastFrame));this.lastFrame=n,this.clock+=i;let o=this.clock;return e.length>this.received&&this.arrived(o,e.length-this.received),this.received=e.length,this.reduceMotion||this.shown>=e.length?(this.shown=e.length,e.length):(i>0&&(this.shown=Math.min(e.length,this.shown+this.charsPerSecond(o,i,r)*i/1e3)),t.cut(e,Math.floor(this.shown)))}arrived(e,n){this.lastArrival!==void 0&&(this.gaps.push(e-this.lastArrival),this.gaps.length>32&&this.gaps.shift()),this.lastArrival=e,this.arrivals.push([e,n])}lagMs(){if(this.gaps.length<3)return 120;let e=[...this.gaps].sort((r,i)=>r-i),n=e[Math.min(e.length-1,Math.round((e.length-1)*.9))];return Math.min(t.maxLagMs,Math.max(t.minLagMs,n*t.gapFactor))}rate(e){for(;this.arrivals.length&&this.arrivals[0][0]<e-t.rateWindowMs;)this.arrivals.shift();let r=this.arrivals.reduce((i,[,o])=>i+o,0)/t.rateWindowMs*1e3;return this.smoothedRate=this.smoothedRate===0?r:this.smoothedRate*.9+r*.1,Math.max(this.smoothedRate,t.minCharsPerSecond)}charsPerSecond(e,n,r){let i=this.received-this.shown,o=this.rate(e),a=this.lastArrival===void 0||e-this.lastArrival>t.stallMs,s=r||a?t.finishMs:i>o*t.maxBacklogMs/1e3?t.catchUpMs:0;if(s){this.drainUntil??=e-n+s;let c=Math.max(n,this.drainUntil-e+n);return Math.max(o,i/c*1e3)}this.drainUntil=void 0;let l=o*this.lagMs()/1e3;return Math.max(t.minCharsPerSecond,o+(i-l)/t.correctMs*1e3)}static cut(e,n){if(n<=0||n>=e.length)return Math.max(0,Math.min(n,e.length));let r=e.charCodeAt(n-1);return r>=55296&&r<=56319?n+1:n}};var r9e=R(qe(),1),i9e=R(Q(),1);var D3=R(ee(),1),UT=class extends i9e.Component{state={source:this.props.source,failed:!1};static getDerivedStateFromProps(e,n){return e.source===n.source?null:{source:e.source,failed:!1}}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?(0,D3.jsx)(lit,{source:this.props.source}):this.props.children}};function lit(t){let e=(0,r9e.c)(9),{source:n}=t,r=ve(),i;e[0]!==r?(i=r("message.renderFailed"),e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o=(0,D3.jsx)("p",{className:"cv-unrendered__note",children:i}),e[2]=i,e[3]=o):o=e[3];let a;e[4]!==n?(a=(0,D3.jsx)("pre",{className:"cv-unrendered__source",children:n}),e[4]=n,e[5]=a):a=e[5];let s;return e[6]!==o||e[7]!==a?(s=(0,D3.jsxs)("div",{className:"cv-md selectable cv-unrendered",role:"note",children:[o,a]}),e[6]=o,e[7]=a,e[8]=s):s=e[8],s}var ZT=R(ee(),1),VT={request:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)},cit=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches===!0,uit=160,dit=1e3/60;function pit(t,e){let n=(0,Ym.useRef)(null),r=(0,Ym.useRef)(null);r.current??=cit(),n.current??=new GT({initial:t,reduceMotion:r.current});let[i,o]=(0,Ym.useState)(()=>({length:t.length,fresh:[],now:0,settled:!0})),a=(0,Ym.useRef)({text:t,streaming:e,shown:i});a.current={text:t,streaming:e,shown:i};let s=(0,Ym.useRef)(0);return(0,Ym.useLayoutEffect)(()=>{let l=n.current;if(l.settled&&i.length>=t.length&&!i.fresh.length){i.settled||o({...i,settled:!0});return}let c=0,u,d=p=>{if(u!==void 0&&p-u<dit-1){c=VT.request(d);return}u=p,typeof document<"u"&&document.visibilityState==="hidden"&&l.flush();let m=a.current.shown,f=l.advance(a.current.text,p,!a.current.streaming),h=m.fresh.filter(g=>p-g.born<uit);f>m.length&&!r.current&&h.push({id:s.current+=1,count:f-m.length,born:p});let x={length:f,fresh:h,now:p,settled:l.settled};a.current.shown=x,o(x),(!l.settled||h.length)&&(c=VT.request(d))};return c=VT.request(d),()=>VT.cancel(c)},[t,e]),{visible:t.slice(0,Math.min(i.length,t.length)),fresh:i.fresh,now:i.now,settled:i.settled&&i.length>=t.length}}function o9e(t){let e=(0,KU.c)(6),{text:n,streaming:r}=t,i;e[0]!==r||e[1]!==n?(i=(0,ZT.jsx)(mit,{text:n,streaming:r}),e[0]=r,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==i||e[4]!==n?(o=(0,ZT.jsx)(UT,{source:n,children:i}),e[3]=i,e[4]=n,e[5]=o):o=e[5],o}function mit(t){let e=(0,KU.c)(6),{text:n,streaming:r}=t,{visible:i,fresh:o,now:a,settled:s}=pit(n,r),l;return e[0]!==o||e[1]!==a||e[2]!==s||e[3]!==r||e[4]!==i?(l=(0,ZT.jsx)(Jae,{streaming:r,fresh:o,now:a,waiting:s,children:i}),e[0]=o,e[1]=a,e[2]=s,e[3]=r,e[4]=i,e[5]=l):l=e[5],l}var JT=R(qe(),1),eR=R(Q(),1);var f9e=R(qe(),1),Qm=R(Q(),1);function s9e(t){if(t.command)return bit(t.command);let e=fit(t.inputSummary);if(e&&/^send ?message$/i.test(t.title.trim())&&typeof e.to=="string"){let r=e.message??e.summary??e.content,i=typeof r=="string"?r:r===void 0?"":JSON.stringify(r,null,2);return{channel:"agent",to:e.to,text:q8(i)}}let n=t.diffs??[];if(n.length===1){let r=n[0],i=l9e(r.path),o=r.oldText??"";if(i&&r.newText.startsWith(o))return{channel:"mailbox",to:i,text:q8(r.newText.slice(o.length))}}}function fit(t){if(t)try{let e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}catch{return}}function l9e(t){return/(?:^|\/)coordinator-inbox\/([\w-]+)\.jsonl$/.exec(t)?.[1]}var hit=new Set(["cd","pushd","export","set","true",":","wait"]),git=new Set(["echo","printf","cat"]);function bit(t){let e=vit(t),n=Cit(kit(t)).map(({text:r,pipesNext:i})=>{let{words:o,redirects:a}=_it(r),s=o.findIndex(l=>!/^\w+=/.test(l));return{words:s<0?[]:o.slice(s),redirects:a,pipesNext:i}});for(let[r,i]of n.entries()){let o=n[r-1]?.pipesNext?u9e(n[r-1].words):void 0,a=yit(i.words,i.redirects,e??o);if(!a)continue;return a.text&&n.every((l,c)=>{if(c===r)return!0;let u=l.words[0]?.split("/").pop()??"";return hit.has(u)||git.has(u)&&c===r-1&&l.pipesNext})?a:void 0}}function yit(t,e,n){let r=t[0]?.split("/").pop();if(r==="tell-coordinator")return xit(t.slice(1),n);if((r==="cmux"||r==="cmux-debug-cli.sh")&&t[1]==="send")return wit(t.slice(2));let o=(r==="tee"?t.slice(1).filter(s=>!s.startsWith("-")):e).map(l9e).find(Boolean),a=q8(n??u9e(t)??"");return o&&a?{channel:"mailbox",to:o,text:a}:void 0}function a9e(t,e,n){let r=t[e];if(r===n)return[t[e+1],2];if(r.startsWith(`${n}=`))return[r.slice(n.length+1),1]}function xit(t,e){let n={channel:"coordinator",to:"coordinator",text:""},r=0;for(;r<t.length;r+=2){let o=t[r];if(o==="-h"||o==="--help")return;if(o==="--to")n.to=t[r+1]??n.to;else if(o==="--from")n.from=t[r+1];else if(o!=="--re")break}let i=t.slice(r).join(" ");return n.text=q8(i==="-"||!i?e??"":i),n}function wit(t){if(t.includes("--help")||t.includes("-h"))return;let e,n,r=[];for(let i=0;i<t.length;){let o=a9e(t,i,"--workspace"),a=a9e(t,i,"--surface");o?e=o[0]:a?n=a[0]:t[i].startsWith("--")||r.push(t[i]),i+=(o??a)?.[1]??1}return{channel:"terminal",to:n??e,text:q8(r.join(" "))}}var c9e=/<<-?\s*(['"]?)(\w+)\1[^\n]*\n/;function vit(t){let e=c9e.exec(t);if(!e)return;let n=t.slice(e.index+e[0].length),r=new RegExp(`^\\s*${e[2]}\\s*$`,"m").exec(n);return r?n.slice(0,r.index):n}function kit(t){let e=c9e.exec(t);if(!e)return t;let n=t.slice(e.index+e[0].length),r=new RegExp(`^\\s*${e[2]}\\s*$`,"m").exec(n);return t.slice(0,e.index+e[0].length)+(r?n.slice(r.index+r[0].length):"")}function Cit(t){let e=[],n="",r;for(let i=0;i<t.length;i++){let o=t[i];if(r){n+=o,o===r?r=void 0:o==="\\"&&r==='"'&&i+1<t.length&&(n+=t[++i]);continue}if(o==="\\"){n+=o+(t[++i]??"");continue}(o==="'"||o==='"')&&(r=o);let a=o==="&"&&(t[i-1]===">"||t[i+1]===">");if(o===";"||o===` `||o==="|"||o==="&"&&!a){let s=t[i+1]===o;s&&i++,e.push({text:n.trim(),pipesNext:o==="|"&&!s}),n="";continue}n+=o}return e.push({text:n.trim(),pipesNext:!1}),e.filter(i=>i.text)}function u9e(t){if(!(t?.[0]!=="echo"&&t?.[0]!=="printf"))return t.slice(1).filter(e=>!/^-[a-zA-Z]+$/.test(e)).join(" ")}function q8(t){return t.replace(/\\n/g,` -`).trim()}function vit(t){let e=[],n=[],r="",i,o=!1,a="word",s=()=>{o&&(a==="word"?e.push(r):a==="redirect"&&n.push(r),a="word",r="",o=!1)};for(let l=0;l<t.length;l++){let c=t[l];i?c===i?i=void 0:c==="\\"&&i==='"'&&/[$`"\\\n]/.test(t[l+1]??"")?r+=t[++l]:r+=c:c==="'"||c==='"'?(i=c,o=!0):c==="\\"&&l+1<t.length?(r+=t[++l],o=!0):/\s/.test(c)?s():c===">"||c==="<"?(o&&/^\d+$/.test(r)&&(r="",o=!1),s(),t[l+1]===c&&l++,t[l+1]==="&"?(l++,a="skip"):a=c===">"?"redirect":"skip"):c==="&"&&t[l+1]===">"?s():(r+=c,o=!0)}return s(),{words:e,redirects:n}}function kit(t){switch(t.kind){case"execute":return t.command?"commands":void 0;case"read":return"reads";case"edit":case"delete":case"move":case"fileChange":return"edits";case"search":return"searches";default:return}}function d9e(t){let e=[],n,r=()=>{if(!n)return;let i=n.items[0].tool;n.items.length>=2||n.kind==="edits"&&i.diffs?.length?e.push({type:"group",...n}):e.push({type:"item",item:n.items[0]}),n=void 0};for(let i of t){let o=i.tool,a=o&&s9e(o),s=o&&!a?kit(o):void 0;if(s&&n?.kind===s){n.items.push(i);continue}r(),a?e.push({type:"message",item:i,message:a}):s?n={kind:s,items:[i]}:e.push({type:"item",item:i})}return r(),e}function g5(t){return t.status==="pending"||t.status==="in_progress"}function D3(t){return t.status==="failed"||t.exitCode!==void 0&&t.exitCode!==0}function Cit(t){let e=new Set,n=0;for(let r of t){let i=r.tool?.locations??[];i.length||n++;for(let o of i)e.add(o.path)}return e.size+n}function p9e(t,e,n,r=[]){let i=n.some(o=>o.tool&&g5(o.tool));switch(e){case"commands":return t(i?"tools.running":"tools.ran",{n:n.length});case"reads":{let o=Cit(n);return t(o===1?"tools.read.one":"tools.read.other",{n:o})}case"searches":return t("tools.searched",{n:n.length});case"edits":{let o=r.length+n.filter(a=>!a.tool?.diffs?.length).length;return o===1&&r.length===1?t("tools.edited.file",{file:_it(r[0])}):t("tools.edited.files",{n:o})}}}function m9e(t,e){if(e.startedAt===void 0||e.endedAt===void 0)return;let n=Math.max(0,e.endedAt-e.startedAt);if(n<1e3)return t("duration.ms",{n});if(n<6e4)return t("duration.s",{n:(n/1e3).toFixed(1)});let r=Math.round(n/1e3);return t("duration.m",{m:Math.floor(r/60),s:r%60})}function _it(t){return t.split("/").filter(Boolean).pop()??t}var jo=R(ee(),1);function h9e(t){let e=(0,f9e.c)(67),{item:n,message:r}=t,i=we(),[o,a]=(0,Ym.useState)(!1),s=n.tool,l=r.from??i("message.self"),c=r.to??i("message.unknown"),u;e[0]!==r.text?(u=()=>r.text.split(` -`).length>2||r.text.length>140,e[0]=r.text,e[1]=u):u=e[1];let[d,p]=(0,Ym.useState)(u),m=(0,Ym.useRef)(null),f=(0,Ym.useId)(),h;e[2]!==o?(h=()=>{let ce=m.current;if(!ce||o)return;let se=()=>p(ce.scrollHeight>ce.clientHeight+1);if(se(),typeof ResizeObserver!="function")return;let be=new ResizeObserver(se);return be.observe(ce),()=>be.disconnect()},e[2]=o,e[3]=h):h=e[3];let x;e[4]!==r.text||e[5]!==o?(x=[o,r.text],e[4]=r.text,e[5]=o,e[6]=x):x=e[6],(0,Ym.useLayoutEffect)(h,x);let g;e[7]!==s?(g=D3(s),e[7]=s,e[8]=g):g=e[8];let y=g,b;e[9]!==s.output?(b=s.output?.replace(/\n$/,""),e[9]=s.output,e[10]=b):b=e[10];let w=b,v=`cv-message${y?" is-failed":""}`,k="button",_="cv-message__head",L=i("message.label",{from:l,to:c}),S;e[11]!==y||e[12]!==i?(S=y?i("tools.failed"):"",e[11]=y,e[12]=i,e[13]=S):S=e[13];let C;e[14]!==S||e[15]!==L?(C=[L,S].filter(Boolean),e[14]=S,e[15]=L,e[16]=C):C=e[16];let T=C.join(". "),M;e[17]===Symbol.for("react.memo_cache_sentinel")?(M=()=>a(Lit),e[17]=M):M=e[17];let A;e[18]!==s?(A=(0,jo.jsx)("span",{className:"cv-tool__icon",children:g5(s)?(0,jo.jsx)(s1,{size:16}):(0,jo.jsx)(Ure,{})}),e[18]=s,e[19]=A):A=e[19];let $;e[20]!==l?($=(0,jo.jsx)("span",{className:"cv-message__party",children:l}),e[20]=l,e[21]=$):$=e[21];let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=(0,jo.jsx)(Vre,{size:12,className:"cv-message__arrow"}),e[22]=N):N=e[22];let F;e[23]!==c?(F=(0,jo.jsx)("span",{className:"cv-message__party is-to",children:c}),e[23]=c,e[24]=F):F=e[24];let D=`message.channel.${r.channel}`,O;e[25]!==i||e[26]!==D?(O=i(D),e[25]=i,e[26]=D,e[27]=O):O=e[27];let B;e[28]!==O?(B=(0,jo.jsx)("span",{className:"cv-message__via",children:O}),e[28]=O,e[29]=B):B=e[29];let P;e[30]!==y||e[31]!==i?(P=y&&(0,jo.jsx)("span",{className:"cv-tool__failed",children:i("tools.failed")}),e[30]=y,e[31]=i,e[32]=P):P=e[32];let U=`cv-tool__chevron cv-rotor${o?" is-open":" is-hover"}`,G;e[33]!==U?(G=(0,jo.jsx)(Tc,{size:14,strokeWidth:1.2,className:U}),e[33]=U,e[34]=G):G=e[34];let j;e[35]!==A||e[36]!==$||e[37]!==F||e[38]!==B||e[39]!==P||e[40]!==G?(j=(0,jo.jsxs)("span",{className:"cv-message__route",children:[A,$,N,F,B,P,G]}),e[35]=A,e[36]=$,e[37]=F,e[38]=B,e[39]=P,e[40]=G,e[41]=j):j=e[41];let V;e[42]!==o||e[43]!==T||e[44]!==j?(V=(0,jo.jsx)("button",{type:k,className:_,"aria-expanded":o,"aria-label":T,onClick:M,children:j}),e[42]=o,e[43]=T,e[44]=j,e[45]=V):V=e[45];let H=`cv-message__body${o?"":" is-clamped"}`,ne;e[46]!==r.text||e[47]!==i?(ne=r.text||i("message.noText"),e[46]=r.text,e[47]=i,e[48]=ne):ne=e[48];let J;e[49]!==f||e[50]!==H||e[51]!==ne?(J=(0,jo.jsx)("div",{ref:m,id:f,className:H,children:ne}),e[49]=f,e[50]=H,e[51]=ne,e[52]=J):J=e[52];let W;e[53]!==f||e[54]!==d||e[55]!==o||e[56]!==i?(W=d&&(0,jo.jsxs)("button",{type:"button",className:"cv-message__more","aria-expanded":o,"aria-controls":f,onClick:()=>a(Sit),children:[i(o?"message.less":"message.more"),(0,jo.jsx)(Fk,{size:12,className:`cv-rotor${o?" is-flipped":""}`})]}),e[53]=f,e[54]=d,e[55]=o,e[56]=i,e[57]=W):W=e[57];let ie;e[58]!==o||e[59]!==w?(ie=o&&w&&(0,jo.jsx)("pre",{className:"cv-tool-output",children:w}),e[58]=o,e[59]=w,e[60]=ie):ie=e[60];let Z;return e[61]!==V||e[62]!==J||e[63]!==W||e[64]!==ie||e[65]!==v?(Z=(0,jo.jsxs)("div",{className:v,children:[V,J,W,ie]}),e[61]=V,e[62]=J,e[63]=W,e[64]=ie,e[65]=v,e[66]=Z):Z=e[66],Z}function Sit(t){return!t}function Lit(t){return!t}var S9e=R(qe(),1),L9e=R(Q(),1);var b9e=R(qe(),1),y9e=R(Q(),1);var g9e=R(qe(),1);var Sh=R(ee(),1);function UT(t){let e=(0,g9e.c)(18),{command:n,output:r,exitCode:i}=t,o=we(),a;e[0]!==o?(a=o("shell.label"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==a?(s=(0,Sh.jsx)("div",{className:"cv-shell__label",children:a}),e[2]=a,e[3]=s):s=e[3];let l;e[4]!==n?(l=n&&(0,Sh.jsxs)("span",{className:"cv-shell__command",children:["$ ",n]}),e[4]=n,e[5]=l):l=e[5];let c;e[6]!==r?(c=r&&(0,Sh.jsx)("span",{className:"cv-shell__output",children:r}),e[6]=r,e[7]=c):c=e[7];let u;e[8]!==l||e[9]!==c?(u=(0,Sh.jsxs)("pre",{className:"cv-shell__body selectable",children:[l,c]}),e[8]=l,e[9]=c,e[10]=u):u=e[10];let d;e[11]!==i||e[12]!==o?(d=i!==void 0&&i!==0&&(0,Sh.jsx)("div",{className:"cv-shell__exit",children:o("shell.exit",{code:i})}),e[11]=i,e[12]=o,e[13]=d):d=e[13];let p;return e[14]!==s||e[15]!==u||e[16]!==d?(p=(0,Sh.jsxs)("div",{className:"cv-shell",children:[s,u,d]}),e[14]=s,e[15]=u,e[16]=d,e[17]=p):p=e[17],p}var cl=R(ee(),1);function x9e(t){let e=(0,b9e.c)(38),{item:n}=t,r=we(),[i,o]=(0,y9e.useState)(!1),a=n.tool,s;e[0]!==a?(s=g5(a),e[0]=a,e[1]=s):s=e[1];let l=s,c;e[2]!==a?(c=D3(a),e[2]=a,e[3]=c):c=e[3];let u=c,d;e[4]!==r||e[5]!==a?(d=m9e(r,a),e[4]=r,e[5]=a,e[6]=d):d=e[6];let p=d,m=a.exitCode!==void 0&&a.exitCode!==0,f=`cv-tool cv-command is-toggle${l?" is-live":" is-strong"}`,h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=()=>o(Mit),e[7]=h):h=e[7];let x;e[8]!==a.command?(x=(0,cl.jsx)("code",{className:"cv-command__line",children:a.command}),e[8]=a.command,e[9]=x):x=e[9];let g;e[10]!==m||e[11]!==u||e[12]!==l||e[13]!==r||e[14]!==a.exitCode?(g=l?(0,cl.jsx)(s1,{size:12}):u?(0,cl.jsx)("span",{className:"cv-command__failed",children:m?r("tools.exit",{code:a.exitCode}):r("tools.failed")}):(0,cl.jsx)(qk,{size:14,className:"cv-command__ok"}),e[10]=m,e[11]=u,e[12]=l,e[13]=r,e[14]=a.exitCode,e[15]=g):g=e[15];let y;e[16]!==p?(y=p&&(0,cl.jsx)("span",{className:"cv-command__time",children:p}),e[16]=p,e[17]=y):y=e[17];let b;e[18]!==g||e[19]!==y?(b=(0,cl.jsxs)("span",{className:"cv-command__meta",children:[g,y]}),e[18]=g,e[19]=y,e[20]=b):b=e[20];let w=`cv-tool__chevron cv-rotor${i?" is-open":" is-hover"}`,v;e[21]!==w?(v=(0,cl.jsx)(Tc,{size:14,strokeWidth:1.2,className:w}),e[21]=w,e[22]=v):v=e[22];let k;e[23]!==i||e[24]!==v||e[25]!==f||e[26]!==x||e[27]!==b||e[28]!==a.command?(k=(0,cl.jsxs)("button",{type:"button",className:f,"aria-expanded":i,title:a.command,onClick:h,children:[x,b,v]}),e[23]=i,e[24]=v,e[25]=f,e[26]=x,e[27]=b,e[28]=a.command,e[29]=k):k=e[29];let _;e[30]!==i||e[31]!==a.command||e[32]!==a.exitCode||e[33]!==a.output?(_=i&&(0,cl.jsx)(UT,{command:a.command,output:a.output?.replace(/\n$/,""),exitCode:a.exitCode}),e[30]=i,e[31]=a.command,e[32]=a.exitCode,e[33]=a.output,e[34]=_):_=e[34];let L;return e[35]!==k||e[36]!==_?(L=(0,cl.jsxs)(cl.Fragment,{children:[k,_]}),e[35]=k,e[36]=_,e[37]=L):L=e[37],L}function Mit(t){return!t}var k9e=R(qe(),1),H8=R(Q(),1);var oc=R(ee(),1),w9e=()=>document.documentElement.dataset.theme==="light"?"light":"dark",Eit=`${Qb} +`).trim()}function _it(t){let e=[],n=[],r="",i,o=!1,a="word",s=()=>{o&&(a==="word"?e.push(r):a==="redirect"&&n.push(r),a="word",r="",o=!1)};for(let l=0;l<t.length;l++){let c=t[l];i?c===i?i=void 0:c==="\\"&&i==='"'&&/[$`"\\\n]/.test(t[l+1]??"")?r+=t[++l]:r+=c:c==="'"||c==='"'?(i=c,o=!0):c==="\\"&&l+1<t.length?(r+=t[++l],o=!0):/\s/.test(c)?s():c===">"||c==="<"?(o&&/^\d+$/.test(r)&&(r="",o=!1),s(),t[l+1]===c&&l++,t[l+1]==="&"?(l++,a="skip"):a=c===">"?"redirect":"skip"):c==="&"&&t[l+1]===">"?s():(r+=c,o=!0)}return s(),{words:e,redirects:n}}function Sit(t){switch(t.kind){case"execute":return t.command?"commands":void 0;case"read":return"reads";case"edit":case"delete":case"move":case"fileChange":return"edits";case"search":return"searches";default:return}}function d9e(t){let e=[],n,r=()=>{if(!n)return;let i=n.items[0].tool;n.items.length>=2||n.kind==="edits"&&i.diffs?.length?e.push({type:"group",...n}):e.push({type:"item",item:n.items[0]}),n=void 0};for(let i of t){let o=i.tool,a=o&&s9e(o),s=o&&!a?Sit(o):void 0;if(s&&n?.kind===s){n.items.push(i);continue}r(),a?e.push({type:"message",item:i,message:a}):s?n={kind:s,items:[i]}:e.push({type:"item",item:i})}return r(),e}function b5(t){return t.status==="pending"||t.status==="in_progress"}function F3(t){return t.status==="failed"||t.exitCode!==void 0&&t.exitCode!==0}function Lit(t){let e=new Set,n=0;for(let r of t){let i=r.tool?.locations??[];i.length||n++;for(let o of i)e.add(o.path)}return e.size+n}function p9e(t,e,n,r=[]){let i=n.some(o=>o.tool&&b5(o.tool));switch(e){case"commands":return t(i?"tools.running":"tools.ran",{n:n.length});case"reads":{let o=Lit(n);return t(o===1?"tools.read.one":"tools.read.other",{n:o})}case"searches":return t("tools.searched",{n:n.length});case"edits":{let o=r.length+n.filter(a=>!a.tool?.diffs?.length).length;return o===1&&r.length===1?t("tools.edited.file",{file:Mit(r[0])}):t("tools.edited.files",{n:o})}}}function m9e(t,e){if(e.startedAt===void 0||e.endedAt===void 0)return;let n=Math.max(0,e.endedAt-e.startedAt);if(n<1e3)return t("duration.ms",{n});if(n<6e4)return t("duration.s",{n:(n/1e3).toFixed(1)});let r=Math.round(n/1e3);return t("duration.m",{m:Math.floor(r/60),s:r%60})}function Mit(t){return t.split("/").filter(Boolean).pop()??t}var jo=R(ee(),1);function h9e(t){let e=(0,f9e.c)(67),{item:n,message:r}=t,i=ve(),[o,a]=(0,Qm.useState)(!1),s=n.tool,l=r.from??i("message.self"),c=r.to??i("message.unknown"),u;e[0]!==r.text?(u=()=>r.text.split(` +`).length>2||r.text.length>140,e[0]=r.text,e[1]=u):u=e[1];let[d,p]=(0,Qm.useState)(u),m=(0,Qm.useRef)(null),f=(0,Qm.useId)(),h;e[2]!==o?(h=()=>{let le=m.current;if(!le||o)return;let se=()=>p(le.scrollHeight>le.clientHeight+1);if(se(),typeof ResizeObserver!="function")return;let ge=new ResizeObserver(se);return ge.observe(le),()=>ge.disconnect()},e[2]=o,e[3]=h):h=e[3];let x;e[4]!==r.text||e[5]!==o?(x=[o,r.text],e[4]=r.text,e[5]=o,e[6]=x):x=e[6],(0,Qm.useLayoutEffect)(h,x);let g;e[7]!==s?(g=F3(s),e[7]=s,e[8]=g):g=e[8];let y=g,b;e[9]!==s.output?(b=s.output?.replace(/\n$/,""),e[9]=s.output,e[10]=b):b=e[10];let w=b,v=`cv-message${y?" is-failed":""}`,k="button",_="cv-message__head",L=i("message.label",{from:l,to:c}),S;e[11]!==y||e[12]!==i?(S=y?i("tools.failed"):"",e[11]=y,e[12]=i,e[13]=S):S=e[13];let C;e[14]!==S||e[15]!==L?(C=[L,S].filter(Boolean),e[14]=S,e[15]=L,e[16]=C):C=e[16];let T=C.join(". "),M;e[17]===Symbol.for("react.memo_cache_sentinel")?(M=()=>a(Tit),e[17]=M):M=e[17];let A;e[18]!==s?(A=(0,jo.jsx)("span",{className:"cv-tool__icon",children:b5(s)?(0,jo.jsx)(l1,{size:16}):(0,jo.jsx)(Ure,{})}),e[18]=s,e[19]=A):A=e[19];let $;e[20]!==l?($=(0,jo.jsx)("span",{className:"cv-message__party",children:l}),e[20]=l,e[21]=$):$=e[21];let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=(0,jo.jsx)(Vre,{size:12,className:"cv-message__arrow"}),e[22]=N):N=e[22];let F;e[23]!==c?(F=(0,jo.jsx)("span",{className:"cv-message__party is-to",children:c}),e[23]=c,e[24]=F):F=e[24];let D=`message.channel.${r.channel}`,O;e[25]!==i||e[26]!==D?(O=i(D),e[25]=i,e[26]=D,e[27]=O):O=e[27];let B;e[28]!==O?(B=(0,jo.jsx)("span",{className:"cv-message__via",children:O}),e[28]=O,e[29]=B):B=e[29];let P;e[30]!==y||e[31]!==i?(P=y&&(0,jo.jsx)("span",{className:"cv-tool__failed",children:i("tools.failed")}),e[30]=y,e[31]=i,e[32]=P):P=e[32];let U=`cv-tool__chevron cv-rotor${o?" is-open":" is-hover"}`,G;e[33]!==U?(G=(0,jo.jsx)(Tc,{size:14,strokeWidth:1.2,className:U}),e[33]=U,e[34]=G):G=e[34];let j;e[35]!==A||e[36]!==$||e[37]!==F||e[38]!==B||e[39]!==P||e[40]!==G?(j=(0,jo.jsxs)("span",{className:"cv-message__route",children:[A,$,N,F,B,P,G]}),e[35]=A,e[36]=$,e[37]=F,e[38]=B,e[39]=P,e[40]=G,e[41]=j):j=e[41];let V;e[42]!==o||e[43]!==T||e[44]!==j?(V=(0,jo.jsx)("button",{type:k,className:_,"aria-expanded":o,"aria-label":T,onClick:M,children:j}),e[42]=o,e[43]=T,e[44]=j,e[45]=V):V=e[45];let H=`cv-message__body${o?"":" is-clamped"}`,ne;e[46]!==r.text||e[47]!==i?(ne=r.text||i("message.noText"),e[46]=r.text,e[47]=i,e[48]=ne):ne=e[48];let J;e[49]!==f||e[50]!==H||e[51]!==ne?(J=(0,jo.jsx)("div",{ref:m,id:f,className:H,children:ne}),e[49]=f,e[50]=H,e[51]=ne,e[52]=J):J=e[52];let W;e[53]!==f||e[54]!==d||e[55]!==o||e[56]!==i?(W=d&&(0,jo.jsxs)("button",{type:"button",className:"cv-message__more","aria-expanded":o,"aria-controls":f,onClick:()=>a(Eit),children:[i(o?"message.less":"message.more"),(0,jo.jsx)(Fk,{size:12,className:`cv-rotor${o?" is-flipped":""}`})]}),e[53]=f,e[54]=d,e[55]=o,e[56]=i,e[57]=W):W=e[57];let ie;e[58]!==o||e[59]!==w?(ie=o&&w&&(0,jo.jsx)("pre",{className:"cv-tool-output",children:w}),e[58]=o,e[59]=w,e[60]=ie):ie=e[60];let Z;return e[61]!==V||e[62]!==J||e[63]!==W||e[64]!==ie||e[65]!==v?(Z=(0,jo.jsxs)("div",{className:v,children:[V,J,W,ie]}),e[61]=V,e[62]=J,e[63]=W,e[64]=ie,e[65]=v,e[66]=Z):Z=e[66],Z}function Eit(t){return!t}function Tit(t){return!t}var S9e=R(qe(),1),L9e=R(Q(),1);var b9e=R(qe(),1),y9e=R(Q(),1);var g9e=R(qe(),1);var Mh=R(ee(),1);function WT(t){let e=(0,g9e.c)(18),{command:n,output:r,exitCode:i}=t,o=ve(),a;e[0]!==o?(a=o("shell.label"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==a?(s=(0,Mh.jsx)("div",{className:"cv-shell__label",children:a}),e[2]=a,e[3]=s):s=e[3];let l;e[4]!==n?(l=n&&(0,Mh.jsxs)("span",{className:"cv-shell__command",children:["$ ",n]}),e[4]=n,e[5]=l):l=e[5];let c;e[6]!==r?(c=r&&(0,Mh.jsx)("span",{className:"cv-shell__output",children:r}),e[6]=r,e[7]=c):c=e[7];let u;e[8]!==l||e[9]!==c?(u=(0,Mh.jsxs)("pre",{className:"cv-shell__body selectable",children:[l,c]}),e[8]=l,e[9]=c,e[10]=u):u=e[10];let d;e[11]!==i||e[12]!==o?(d=i!==void 0&&i!==0&&(0,Mh.jsx)("div",{className:"cv-shell__exit",children:o("shell.exit",{code:i})}),e[11]=i,e[12]=o,e[13]=d):d=e[13];let p;return e[14]!==s||e[15]!==u||e[16]!==d?(p=(0,Mh.jsxs)("div",{className:"cv-shell",children:[s,u,d]}),e[14]=s,e[15]=u,e[16]=d,e[17]=p):p=e[17],p}var ul=R(ee(),1);function x9e(t){let e=(0,b9e.c)(38),{item:n}=t,r=ve(),[i,o]=(0,y9e.useState)(!1),a=n.tool,s;e[0]!==a?(s=b5(a),e[0]=a,e[1]=s):s=e[1];let l=s,c;e[2]!==a?(c=F3(a),e[2]=a,e[3]=c):c=e[3];let u=c,d;e[4]!==r||e[5]!==a?(d=m9e(r,a),e[4]=r,e[5]=a,e[6]=d):d=e[6];let p=d,m=a.exitCode!==void 0&&a.exitCode!==0,f=`cv-tool cv-command is-toggle${l?" is-live":" is-strong"}`,h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=()=>o(Rit),e[7]=h):h=e[7];let x;e[8]!==a.command?(x=(0,ul.jsx)("code",{className:"cv-command__line",children:a.command}),e[8]=a.command,e[9]=x):x=e[9];let g;e[10]!==m||e[11]!==u||e[12]!==l||e[13]!==r||e[14]!==a.exitCode?(g=l?(0,ul.jsx)(l1,{size:12}):u?(0,ul.jsx)("span",{className:"cv-command__failed",children:m?r("tools.exit",{code:a.exitCode}):r("tools.failed")}):(0,ul.jsx)(qk,{size:14,className:"cv-command__ok"}),e[10]=m,e[11]=u,e[12]=l,e[13]=r,e[14]=a.exitCode,e[15]=g):g=e[15];let y;e[16]!==p?(y=p&&(0,ul.jsx)("span",{className:"cv-command__time",children:p}),e[16]=p,e[17]=y):y=e[17];let b;e[18]!==g||e[19]!==y?(b=(0,ul.jsxs)("span",{className:"cv-command__meta",children:[g,y]}),e[18]=g,e[19]=y,e[20]=b):b=e[20];let w=`cv-tool__chevron cv-rotor${i?" is-open":" is-hover"}`,v;e[21]!==w?(v=(0,ul.jsx)(Tc,{size:14,strokeWidth:1.2,className:w}),e[21]=w,e[22]=v):v=e[22];let k;e[23]!==i||e[24]!==v||e[25]!==f||e[26]!==x||e[27]!==b||e[28]!==a.command?(k=(0,ul.jsxs)("button",{type:"button",className:f,"aria-expanded":i,title:a.command,onClick:h,children:[x,b,v]}),e[23]=i,e[24]=v,e[25]=f,e[26]=x,e[27]=b,e[28]=a.command,e[29]=k):k=e[29];let _;e[30]!==i||e[31]!==a.command||e[32]!==a.exitCode||e[33]!==a.output?(_=i&&(0,ul.jsx)(WT,{command:a.command,output:a.output?.replace(/\n$/,""),exitCode:a.exitCode}),e[30]=i,e[31]=a.command,e[32]=a.exitCode,e[33]=a.output,e[34]=_):_=e[34];let L;return e[35]!==k||e[36]!==_?(L=(0,ul.jsxs)(ul.Fragment,{children:[k,_]}),e[35]=k,e[36]=_,e[37]=L):L=e[37],L}function Rit(t){return!t}var k9e=R(qe(),1),H8=R(Q(),1);var oc=R(ee(),1),w9e=()=>document.documentElement.dataset.theme==="light"?"light":"dark",Ait=`${Jb} :host { --diffs-dark-bg: transparent; --diffs-light-bg: transparent; background: transparent; } -`;function v9e(t,e){return{theme:{dark:pd,light:md},themeType:e,diffStyle:"unified",diffIndicators:"bars",hunkSeparators:"line-info",lineDiffType:"none",overflow:"scroll",disableLineNumbers:!t,preferredHighlighter:"shiki-js",disableFileHeader:!0,unsafeCSS:Eit}}function VT(t){let e=(0,k9e.c)(66),{file:n}=t,r=we();o1();let[i,o]=(0,H8.useState)(!1),[a,s]=(0,H8.useState)(w9e),l,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let G=new MutationObserver(()=>s(w9e()));return G.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>G.disconnect()},c=[],e[0]=l,e[1]=c):(l=e[0],c=e[1]),(0,H8.useEffect)(l,c);let u;e[2]!==a?(u=v9e(!0,a),e[2]=a,e[3]=u):u=e[3];let d;e[4]!==a?(d=v9e(!1,a),e[4]=a,e[5]=d):d=e[5];let p;e[6]!==u||e[7]!==d?(p={numbered:u,fragment:d},e[6]=u,e[7]=d,e[8]=p):p=e[8];let m=p,f;e[9]!==n?(f=n.edits.map(G=>M2(n,G)),e[9]=n,e[10]=f):f=e[10];let h=f,x;e[11]!==h?(x=h.join("\0"),e[11]=h,e[12]=x):x=e[12];let g=x,y;e[13]!==n.displayPath?(y=b0(br(n.displayPath)),e[13]=n.displayPath,e[14]=y):y=e[14];let b=y,w;if(e[15]!==n.displayPath||e[16]!==b){let G=b?br(n.displayPath):"text";w=r2("none",G),e[15]=n.displayPath,e[16]=b,e[17]=w}else w=e[17];let v=w,k;if(e[18]!==b||e[19]!==g){let G;e[21]!==b?(G=j=>{let V=q7(j);return b?V:H7(V,"text")},e[21]=b,e[22]=G):G=e[22],k=g.split("\0").map(G),e[18]=b,e[19]=g,e[20]=k}else k=e[20];let _=k,L;e[23]!==n.path?(L=n.path.split("/").pop()||n.path,e[23]=n.path,e[24]=L):L=e[24];let S=L,C;e[25]!==n.path||e[26]!==S?(C=(0,oc.jsx)("span",{className:"cv-edit-diff__name",title:n.path,children:S}),e[25]=n.path,e[26]=S,e[27]=C):C=e[27];let T;e[28]!==n.additions?(T=(0,oc.jsxs)("span",{className:"cv-edit-diff__add",children:["+",n.additions]}),e[28]=n.additions,e[29]=T):T=e[29];let M;e[30]!==n.deletions?(M=(0,oc.jsxs)("span",{className:"cv-edit-diff__del",children:["-",n.deletions]}),e[30]=n.deletions,e[31]=M):M=e[31];let A;e[32]!==i||e[33]!==r?(A=r(i?"code.copied":"code.copyDiff"),e[32]=i,e[33]=r,e[34]=A):A=e[34];let $;e[35]!==i||e[36]!==r?($=r(i?"code.copied":"code.copyDiff"),e[35]=i,e[36]=r,e[37]=$):$=e[37];let N;e[38]!==h?(N=()=>{ba(h.join("")).then(()=>o(!0),()=>o(!1))},e[38]=h,e[39]=N):N=e[39];let F;e[40]===Symbol.for("react.memo_cache_sentinel")?(F=(0,oc.jsx)(a1,{}),e[40]=F):F=e[40];let D;e[41]!==A||e[42]!==$||e[43]!==N?(D=(0,oc.jsx)("button",{type:"button",className:"cv-codeblock__action cv-edit-diff__copy","aria-label":A,title:$,onClick:N,children:F}),e[41]=A,e[42]=$,e[43]=N,e[44]=D):D=e[44];let O;e[45]!==C||e[46]!==T||e[47]!==M||e[48]!==D?(O=(0,oc.jsxs)("div",{className:"cv-edit-diff__header",children:[C,T,M,D]}),e[45]=C,e[46]=T,e[47]=M,e[48]=D,e[49]=O):O=e[49];let B;if(e[50]!==_||e[51]!==n.edits||e[52]!==m||e[53]!==r||e[54]!==v){let G;e[56]!==_||e[57]!==m||e[58]!==r||e[59]!==v?(G=(j,V)=>j.hunks.length?(0,oc.jsx)(Jg.Provider,{value:v,children:(0,oc.jsx)(w8,{fileDiff:_[V],options:j.numbered?m.numbered:m.fragment})},j.toolId+V):(0,oc.jsx)("div",{className:"cv-edit-diff__empty",children:r("changes.noLineChanges")},j.toolId+V),e[56]=_,e[57]=m,e[58]=r,e[59]=v,e[60]=G):G=e[60],B=n.edits.map(G),e[50]=_,e[51]=n.edits,e[52]=m,e[53]=r,e[54]=v,e[55]=B}else B=e[55];let P;e[61]!==B?(P=(0,oc.jsx)("div",{className:"cv-edit-diff__body",children:B}),e[61]=B,e[62]=P):P=e[62];let U;return e[63]!==O||e[64]!==P?(U=(0,oc.jsxs)("div",{className:"cv-edit-diff",children:[O,P]}),e[63]=O,e[64]=P,e[65]=U):U=e[65],U}var C9e=R(qe(),1),_9e=R(Q(),1);var Si=R(ee(),1);function Tit(t){switch(t){case"read":return(0,Si.jsx)(Gk,{});case"edit":case"delete":case"move":case"fileChange":return(0,Si.jsx)(Jb,{size:16,strokeWidth:1.1});case"search":return(0,Si.jsx)(t2,{});case"execute":return(0,Si.jsx)(e2,{});case"fetch":return(0,Si.jsx)(Tl,{size:16,strokeWidth:1.1});default:return(0,Si.jsx)(Bk,{size:16,strokeWidth:1.2})}}function ZT(t){let e=(0,C9e.c)(47),{item:n}=t,r=we(),[i,o]=(0,_9e.useState)(!1),a=n.tool,s=!!a.diffs?.length,l;e[0]!==s||e[1]!==i||e[2]!==a?(l=i&&s?w6([a]):[],e[0]=s,e[1]=i,e[2]=a,e[3]=l):l=e[3];let c=l,u;e[4]!==r?(u=M=>r("tools.ranCommand",{command:M}),e[4]=r,e[5]=u):u=e[5];let d;e[6]!==n.text||e[7]!==u||e[8]!==a?(d=eQ(a,n.text,u),e[6]=n.text,e[7]=u,e[8]=a,e[9]=d):d=e[9];let p=d,m=a.status==="pending"||a.status==="in_progress",f=a.status==="failed",h;e[10]!==a.output?(h=a.output?.replace(/\n$/,""),e[10]=a.output,e[11]=h):h=e[11];let x=h,g=a.kind==="execute"&&!!a.command,y;e[12]!==a.kind?(y=Tit(a.kind),e[12]=a.kind,e[13]=y):y=e[13];let b;e[14]!==y?(b=(0,Si.jsx)("span",{className:"cv-tool__icon",children:y}),e[14]=y,e[15]=b):b=e[15];let w;e[16]!==f||e[17]!==r?(w=f&&(0,Si.jsxs)("span",{className:"cv-tool__detail",children:[" ",r("tools.failed")]}),e[16]=f,e[17]=r,e[18]=w):w=e[18];let v;e[19]!==p||e[20]!==w?(v=(0,Si.jsxs)("span",{className:"cv-tool__text",children:[p,w]}),e[19]=p,e[20]=w,e[21]=v):v=e[21];let k;e[22]!==b||e[23]!==v?(k=(0,Si.jsxs)(Si.Fragment,{children:[b,v]}),e[22]=b,e[23]=v,e[24]=k):k=e[24];let _=k,L;e[25]!==x||e[26]!==_||e[27]!==s||e[28]!==i||e[29]!==m||e[30]!==g?(L=x||g||s?(0,Si.jsxs)("button",{type:"button",className:`cv-tool is-toggle${m?" is-live":" is-strong"}`,"aria-expanded":i,onClick:()=>o(Ait),children:[_,(0,Si.jsx)(Tc,{size:14,strokeWidth:1.2,className:`cv-tool__chevron cv-rotor${i?" is-open":" is-hover"}`})]}):(0,Si.jsx)("div",{className:`cv-tool${m?" is-live":" is-strong"}`,children:_}),e[25]=x,e[26]=_,e[27]=s,e[28]=i,e[29]=m,e[30]=g,e[31]=L):L=e[31];let S;e[32]!==x||e[33]!==i||e[34]!==g||e[35]!==a.command||e[36]!==a.exitCode?(S=i&&g&&(0,Si.jsx)(UT,{command:a.command,output:x,exitCode:a.exitCode}),e[32]=x,e[33]=i,e[34]=g,e[35]=a.command,e[36]=a.exitCode,e[37]=S):S=e[37];let C;e[38]!==x||e[39]!==c||e[40]!==i||e[41]!==g?(C=i&&!g&&(c.length?c.map(Rit):x&&(0,Si.jsx)("pre",{className:"cv-tool-output selectable",children:x})),e[38]=x,e[39]=c,e[40]=i,e[41]=g,e[42]=C):C=e[42];let T;return e[43]!==L||e[44]!==S||e[45]!==C?(T=(0,Si.jsxs)(Si.Fragment,{children:[L,S,C]}),e[43]=L,e[44]=S,e[45]=C,e[46]=T):T=e[46],T}function Rit(t){return(0,Si.jsx)(VT,{file:t},t.path)}function Ait(t){return!t}var Li=R(ee(),1);function $it(t){switch(t){case"commands":return(0,Li.jsx)(e2,{});case"reads":return(0,Li.jsx)(Gk,{});case"edits":return(0,Li.jsx)(Jb,{size:16,strokeWidth:1.1});case"searches":return(0,Li.jsx)(t2,{})}}function M9e(t){let e=(0,S9e.c)(51),{kind:n,items:r}=t,i=we(),[o,a]=(0,L9e.useState)(!1),s;e[0]!==r?(s=r.map(Bit),e[0]=r,e[1]=s):s=e[1];let l=s,c;e[2]!==n||e[3]!==l?(c=n==="edits"?w6(l):[],e[2]=n,e[3]=l,e[4]=c):c=e[4];let u=c,d;e[5]!==l?(d=l.some(g5),e[5]=l,e[6]=d):d=e[6];let p=d,m;e[7]!==l?(m=l.filter(D3),e[7]=l,e[8]=m):m=e[8];let f=m.length,h;e[9]!==u?(h=u.reduce(Fit,0),e[9]=u,e[10]=h):h=e[10];let x=h,g;e[11]!==u?(g=u.reduce(Dit,0),e[11]=u,e[12]=g):g=e[12];let y=g,b=`cv-tool is-toggle${p?" is-live":" is-strong"}`,w;e[13]===Symbol.for("react.memo_cache_sentinel")?(w=()=>a(Oit),e[13]=w):w=e[13];let v;e[14]!==n||e[15]!==p?(v=p?(0,Li.jsx)(s1,{size:16}):$it(n),e[14]=n,e[15]=p,e[16]=v):v=e[16];let k;e[17]!==v?(k=(0,Li.jsx)("span",{className:"cv-tool__icon",children:v}),e[17]=v,e[18]=k):k=e[18];let _;e[19]!==u||e[20]!==r||e[21]!==n||e[22]!==i?(_=p9e(i,n,r,u.map(jit)),e[19]=u,e[20]=r,e[21]=n,e[22]=i,e[23]=_):_=e[23];let L;e[24]!==x||e[25]!==y||e[26]!==u.length?(L=u.length>0&&(0,Li.jsxs)("span",{className:"cv-tool__counts",children:[(0,Li.jsxs)("span",{className:"cv-edit-diff__add",children:["+",x]}),(0,Li.jsxs)("span",{className:"cv-edit-diff__del",children:["-",y]})]}),e[24]=x,e[25]=y,e[26]=u.length,e[27]=L):L=e[27];let S;e[28]!==f||e[29]!==i?(S=f>0&&(0,Li.jsxs)("span",{className:"cv-tool__failed",children:[" ",i("tools.failedCount",{n:f})]}),e[28]=f,e[29]=i,e[30]=S):S=e[30];let C;e[31]!==_||e[32]!==L||e[33]!==S?(C=(0,Li.jsxs)("span",{className:"cv-tool__text",children:[_,L,S]}),e[31]=_,e[32]=L,e[33]=S,e[34]=C):C=e[34];let T=`cv-tool__chevron cv-rotor${o?" is-open":" is-hover"}`,M;e[35]!==T?(M=(0,Li.jsx)(Tc,{size:14,strokeWidth:1.2,className:T}),e[35]=T,e[36]=M):M=e[36];let A;e[37]!==o||e[38]!==k||e[39]!==C||e[40]!==M||e[41]!==b?(A=(0,Li.jsxs)("button",{type:"button",className:b,"aria-expanded":o,onClick:w,children:[k,C,M]}),e[37]=o,e[38]=k,e[39]=C,e[40]=M,e[41]=b,e[42]=A):A=e[42];let $;e[43]!==u||e[44]!==r||e[45]!==n||e[46]!==o?($=o&&(0,Li.jsx)("div",{className:"cv-tool-group",children:n==="commands"?r.map(Pit):[...u.map(Nit),...r.filter(F=>!u.length||!F.tool.diffs?.length).map(Iit)]}),e[43]=u,e[44]=r,e[45]=n,e[46]=o,e[47]=$):$=e[47];let N;return e[48]!==A||e[49]!==$?(N=(0,Li.jsxs)(Li.Fragment,{children:[A,$]}),e[48]=A,e[49]=$,e[50]=N):N=e[50],N}function Iit(t,e){return(0,Li.jsx)(ZT,{item:t},t.tool.id||e)}function Nit(t){return(0,Li.jsx)(VT,{file:t},t.path)}function Pit(t,e){return(0,Li.jsx)(x9e,{item:t},t.tool.id||e)}function jit(t){return t.path}function Oit(t){return!t}function Dit(t,e){return t+e.deletions}function Fit(t,e){return t+e.additions}function Bit(t){return t.tool}var E9e=R(qe(),1),WT=R(Q(),1);var bs=R(ee(),1);function zit(t){switch(t){case"edited":return(0,bs.jsx)(Jb,{size:16,strokeWidth:1.1});case"read":case"searched":return(0,bs.jsx)(t2,{});case"web":return(0,bs.jsx)(Tl,{size:16,strokeWidth:1.1});case"ran":return(0,bs.jsx)(e2,{});default:return(0,bs.jsx)(Bk,{size:16,strokeWidth:1.2})}}function T9e(t){let e=(0,E9e.c)(24),{items:n,children:r}=t,[i,o]=(0,WT.useState)(!1),a=(0,WT.useId)(),s=i?a:void 0,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>o(qit),e[0]=l):l=e[0];let c;e[1]!==n?(c=zit(FI(n)[0]),e[1]=n,e[2]=c):c=e[2];let u;e[3]!==c?(u=(0,bs.jsx)("span",{className:"cv-tool__icon",children:c}),e[3]=c,e[4]=u):u=e[4];let d;e[5]!==n?(d=eJ(n),e[5]=n,e[6]=d):d=e[6];let p;e[7]!==d?(p=(0,bs.jsx)("span",{className:"cv-tool__text",children:d}),e[7]=d,e[8]=p):p=e[8];let m=`cv-tool__chevron cv-rotor${i?" is-open":" is-hover"}`,f;e[9]!==m?(f=(0,bs.jsx)(Tc,{size:14,strokeWidth:1.2,className:m}),e[9]=m,e[10]=f):f=e[10];let h;e[11]!==i||e[12]!==s||e[13]!==u||e[14]!==p||e[15]!==f?(h=(0,bs.jsxs)("button",{type:"button",className:"cv-tool is-toggle is-strong","aria-expanded":i,"aria-controls":s,onClick:l,children:[u,p,f]}),e[11]=i,e[12]=s,e[13]=u,e[14]=p,e[15]=f,e[16]=h):h=e[16];let x;e[17]!==r||e[18]!==a||e[19]!==i?(x=i&&(0,bs.jsx)("div",{className:"cv-tool-run",id:a,children:r}),e[17]=r,e[18]=a,e[19]=i,e[20]=x):x=e[20];let g;return e[21]!==x||e[22]!==h?(g=(0,bs.jsxs)(bs.Fragment,{children:[h,x]}),e[21]=x,e[22]=h,e[23]=g):g=e[23],g}function qit(t){return!t}var R9e=R(Q(),1),KT=(0,R9e.createContext)({});var Mi=R(ee(),1);function A9e(t){let e=(0,XT.c)(12),{row:n,expanded:r,onToggle:i}=t,o=we(),a;e[0]!==n||e[1]!==o?(a=qI(o,n),e[0]=n,e[1]=o,e[2]=a):a=e[2];let s;e[3]!==a?(s=(0,Mi.jsx)("span",{className:"cv-worked__label",children:a}),e[3]=a,e[4]=s):s=e[4];let l=`cv-worked__chevron cv-rotor${r?" is-open":""}`,c;e[5]!==l?(c=(0,Mi.jsx)(Tc,{size:14,strokeWidth:1.2,className:l}),e[5]=l,e[6]=c):c=e[6];let u;return e[7]!==r||e[8]!==i||e[9]!==s||e[10]!==c?(u=(0,Mi.jsxs)("button",{type:"button",className:"cv-worked has-divider is-toggle","aria-expanded":r,onClick:i,children:[s,c]}),e[7]=r,e[8]=i,e[9]=s,e[10]=c,e[11]=u):u=e[11],u}function Hit(t,e){switch(t.type){case"group":return(0,Mi.jsx)(M9e,{kind:t.kind,items:t.items},t.items[0].tool.id||e);case"message":return(0,Mi.jsx)(h9e,{item:t.item,message:t.message},t.item.tool.id||e);case"item":return t.item.tool?(0,Mi.jsx)(ZT,{item:t.item},t.item.tool.id||e):(0,Mi.jsx)("div",{className:"cv-tool cv-thought",children:(0,Mi.jsx)("span",{className:"cv-tool__text",children:t.item.text})},e)}}function QT(t){let e=(0,XT.c)(13),{row:n}=t,r=n.items,i;e[0]!==r?(i=r??[],e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o=d9e(i),e[2]=i,e[3]=o):o=e[3];let a=o,s;e[4]!==a?(s=a.map(Hit),e[4]=a,e[5]=s):s=e[5];let l=s,c;e[6]!==a.length||e[7]!==r||e[8]!==l||e[9]!==n.settled?(c=n.settled&&a.length>1&&Xw(r??[])?(0,Mi.jsx)(T9e,{items:r??[],children:l}):l,e[6]=a.length,e[7]=r,e[8]=l,e[9]=n.settled,e[10]=c):c=e[10];let u;return e[11]!==c?(u=(0,Mi.jsx)("div",{className:"cv-tools",children:c}),e[11]=c,e[12]=u):u=e[12],u}var Git=new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit"});function $9e(t){let e=(0,XT.c)(33),{row:n}=t,r=we(),[i,o]=(0,YT.useState)(!1),{fork:a,retry:s}=(0,YT.useContext)(KT),l=n.text,c=n.prompt,u=n.seq,d=n.status==="failed"||n.status==="error",p;e[0]!==n||e[1]!==r?(p=!n.folded&&(0,Mi.jsx)("span",{className:"cv-turn-summary",children:qI(r,n)}),e[0]=n,e[1]=r,e[2]=p):p=e[2];let m;e[3]!==i||e[4]!==r||e[5]!==l?(m=l&&(0,Mi.jsx)("button",{type:"button",className:"cv-iconbtn","aria-label":r(i?"turn.copied":"turn.copy"),title:r(i?"turn.copied":"turn.copy"),onClick:()=>{ba(l).then(()=>o(!0),()=>o(!1))},children:(0,Mi.jsx)(a1,{})}),e[3]=i,e[4]=r,e[5]=l,e[6]=m):m=e[6];let f;e[7]!==c||e[8]!==s||e[9]!==r?(f=s&&c&&(0,Mi.jsx)("button",{type:"button",className:"cv-iconbtn","aria-label":r("turn.retry"),title:r("turn.retryLabel"),onClick:()=>s(c),children:(0,Mi.jsx)(Fre,{})}),e[7]=c,e[8]=s,e[9]=r,e[10]=f):f=e[10];let h;e[11]!==a||e[12]!==u||e[13]!==r?(h=a&&u!==void 0&&(0,Mi.jsx)("button",{type:"button",className:"cv-iconbtn","aria-label":r("turn.fork"),title:r("turn.fork"),onClick:()=>a(u),children:(0,Mi.jsx)(qre,{})}),e[11]=a,e[12]=u,e[13]=r,e[14]=h):h=e[14];let x;e[15]!==d||e[16]!==n.error||e[17]!==r?(x=d&&(0,Mi.jsx)("span",{className:"cv-turn-note",children:n.error||r("turn.failed")}),e[15]=d,e[16]=n.error,e[17]=r,e[18]=x):x=e[18];let g;e[19]!==n.at?(g=new Date(n.at).toISOString(),e[19]=n.at,e[20]=g):g=e[20];let y;e[21]!==n.at?(y=Git.format(n.at),e[21]=n.at,e[22]=y):y=e[22];let b;e[23]!==g||e[24]!==y?(b=(0,Mi.jsx)("time",{className:"cv-turn-time",dateTime:g,children:y}),e[23]=g,e[24]=y,e[25]=b):b=e[25];let w;return e[26]!==p||e[27]!==m||e[28]!==f||e[29]!==h||e[30]!==x||e[31]!==b?(w=(0,Mi.jsxs)("div",{className:"cv-turn-actions",children:[p,m,f,h,x,b]}),e[26]=p,e[27]=m,e[28]=f,e[29]=h,e[30]=x,e[31]=b,e[32]=w):w=e[32],w}var Qm=R(qe(),1),G8=R(Q(),1);function Uit(t){let e=new Map;for(let n of t)if(n.kind==="activity")for(let r of n.items??[]){let i=r.tool;if(!(!i||i.status==="failed"))for(let o of i.diffs??[])e.set(o.path,[...e.get(o.path)??[],o])}return e}function Vit(t){let e=t[0],n=t[t.length-1];if(!e||!n||!e.path.startsWith("/"))return{kind:"cannot"};for(let r=1;r<t.length;r++)if(t[r].oldText!==t[r-1].newText)return{kind:"cannot"};return n.newText===""&&t.some(r=>r.oldText)?{kind:"cannot"}:e.oldText===void 0?{kind:"trash",after:n.newText}:{kind:"revert",before:e.oldText,after:n.newText}}function I9e(t,e,n){let r=Uit(e);return{turnId:t,files:n.map(i=>({path:i.path,added:i.additions,removed:i.deletions,undo:Vit(r.get(i.path)??[])}))}}function XU(t){return t.flatMap(e=>e.undo.kind==="revert"?[{path:e.path,before:e.undo.before,after:e.undo.after}]:e.undo.kind==="trash"?[{path:e.path,before:null,after:e.undo.after}]:[])}var Zit=new Set(["reverted","trashed","wouldRevert","wouldTrash","changed","cannotUndo","outsideRoots"]);function YU(t){let e=(t&&typeof t=="object"?t.files:void 0)??[],n=new Map;if(!Array.isArray(e))return n;for(let r of e){if(!r||typeof r!="object")continue;let{path:i,status:o}=r;typeof i=="string"&&n.set(i,typeof o=="string"&&Zit.has(o)?o:"cannotUndo")}return n}function N9e(t,e){let n=0,r=0,i=0;for(let o of t){let a=e.get(o.path);a==="wouldRevert"||a==="wouldTrash"?n+=1:a==="changed"?r+=1:i+=1}return{undo:n,changed:r,cannot:i}}var P9e=R(Q(),1);var JT=(0,P9e.createContext)(void 0);function QU(t){return t.kind==="activity"&&!Pb(t)&&(t.items??[]).some(e=>e.tool?.kind==="edit"||e.tool?.kind==="fileChange")}var j9e=R(qe(),1),O9e=R(Q(),1);var D9e=(t,e)=>Nc("turn.undo",{files:t,apply:e});var F9e={phase:"idle"},eV=new Map,JU=new Set;function b5(t,e){eV.set(t,e);for(let n of JU)n()}function B9e(t){let e=(0,j9e.c)(2),n;return e[0]!==t?(n=()=>eV.get(t)??F9e,e[0]=t,e[1]=n):n=e[1],(0,O9e.useSyncExternalStore)(Wit,n)}function Wit(t){return JU.add(t),()=>JU.delete(t)}async function z9e(t,e){b5(t,{phase:"checking"});try{let n=YU(await D9e(XU(e),!1));b5(t,{phase:"confirm",dryRun:n,summary:N9e(e,n)})}catch{b5(t,{phase:"failed"})}}async function q9e(t,e){let n=eV.get(t);if(n?.phase!=="confirm")return;let r=e.filter(i=>{let o=n.dryRun.get(i.path);return o==="wouldRevert"||o==="wouldTrash"});b5(t,{phase:"undoing"});try{let i=YU(await D9e(XU(r),!0)),o=new Map(n.dryRun);for(let[a,s]of i)o.set(a,s);b5(t,{phase:"done",result:o})}catch{b5(t,{phase:"failed"})}}function H9e(t){b5(t,F9e)}var G9e=R(qe(),1),U9e=R(Q(),1),eR=new Set,tV=new Set;function V9e(t,e){if(eR.has(t)!==e){e?eR.add(t):eR.delete(t);for(let n of tV)n()}}function Z9e(t){let e=(0,G9e.c)(2),n;return e[0]!==t?(n=()=>eR.has(t),e[0]=t,e[1]=n):n=e[1],(0,U9e.useSyncExternalStore)(Kit,n)}function Kit(t){return tV.add(t),()=>tV.delete(t)}var At=R(ee(),1);function X9e(t){let e=(0,Qm.c)(10),{row:n,onOpenDiff:r}=t,i=Vj(),o=(0,G8.useContext)(JT),a=o&&[...o].reverse().find(QU)?.id;if(i.show==="never"||i.scope==="session"&&o&&a!==n.id){let u;return e[0]!==n?(u=(0,At.jsx)(QT,{row:n}),e[0]=n,e[1]=u):u=e[1],u}let s;e[2]!==n||e[3]!==o||e[4]!==i.scope?(s=i.scope==="session"&&o?o.filter(QU):[n],e[2]=n,e[3]=o,e[4]=i.scope,e[5]=s):s=e[5];let l=s,c;return e[6]!==r||e[7]!==n||e[8]!==l?(c=(0,At.jsx)(Xit,{row:n,rows:l,onOpenDiff:r}),e[6]=r,e[7]=n,e[8]=l,e[9]=c):c=e[9],c}function Xit(t){let e=(0,Qm.c)(94),{row:n,rows:r,onOpenDiff:i}=t,o=we(),a=Vj(),[s,l]=(0,G8.useState)(!1),c=Z9e(n.id),u=a.show!=="collapsed"||c,d;e[0]!==n.id?(d=me=>V9e(n.id,me),e[0]=n.id,e[1]=d):d=e[1];let p=d,m=r.flatMap(eot),f;e[2]!==r?(f=Sd([...r]),e[2]=r,e[3]=f):f=e[3];let h=f,x=(0,G8.useContext)(OT),g;e[4]!==x||e[5]!==n.id||e[6]!==r.length||e[7]!==h?(g=x&&r.length===1?x(n.id,h):jT(h,void 0),e[4]=x,e[5]=n.id,e[6]=r.length,e[7]=h,e[8]=g):g=e[8];let y=g,b=y.files,w;e[9]!==n.id||e[10]!==r||e[11]!==h?(w=I9e(n.id,r,h),e[9]=n.id,e[10]=r,e[11]=h,e[12]=w):w=e[12];let v=w,k=B9e(n.id),_=y.files===h?SO(m):[],L=[...b.map(Jit),..._.map(Qit)],S=L.length,C=S===1&&b.length===1?b[0]:void 0,T=a.maxRows,M=C||!u?[]:s?L:L.slice(0,T),A=C?0:S-M.length,$=i&&b.length>0,N;e[13]!==v||e[14]!==n.ended?(N=n.ended===!0&&v.files.some(Yit),e[13]=v,e[14]=n.ended,e[15]=N):N=e[15];let F=N,D;e[16]!==C||e[17]!==o||e[18]!==S?(D=C?o("tools.edited.file",{file:C.path.split("/").pop()??C.path}):S===1?o("edited.one"):o("tools.edited.files",{n:S}),e[16]=C,e[17]=o,e[18]=S,e[19]=D):D=e[19];let O=D,B;e[20]!==k?(B=me=>not(k,me),e[20]=k,e[21]=B):B=e[21];let P=B,U="acpmux-edited",G;e[22]===Symbol.for("react.memo_cache_sentinel")?(G=(0,At.jsx)("span",{className:"acpmux-edited-icon",children:(0,At.jsx)(aot,{})}),e[22]=G):G=e[22];let j;e[23]!==O?(j=(0,At.jsx)("div",{children:O}),e[23]=O,e[24]=j):j=e[24];let V;e[25]!==y.additions||e[26]!==y.deletions||e[27]!==b.length||e[28]!==i||e[29]!==$||e[30]!==n.id||e[31]!==C?.path||e[32]!==o?(V=$?(0,At.jsxs)("button",{type:"button",className:"acpmux-edited-link",onClick:me=>i(n.id,C?.path,me.currentTarget),children:[o("edited.view"),(0,At.jsx)(sot,{})]}):b.length>0&&(0,At.jsx)(Hm,{additions:y.additions,deletions:y.deletions}),e[25]=y.additions,e[26]=y.deletions,e[27]=b.length,e[28]=i,e[29]=$,e[30]=n.id,e[31]=C?.path,e[32]=o,e[33]=V):V=e[33];let H;e[34]!==y.outside||e[35]!==o?(H=y.outside&&(0,At.jsx)("span",{className:"acpmux-edited-outside",children:o("turn.outside.card")}),e[34]=y.outside,e[35]=o,e[36]=H):H=e[36];let ne;e[37]!==V||e[38]!==H?(ne=(0,At.jsxs)("div",{className:"acpmux-edited-sub",children:[V,H]}),e[37]=V,e[38]=H,e[39]=ne):ne=e[39];let J;e[40]!==j||e[41]!==ne?(J=(0,At.jsxs)("div",{className:"acpmux-edited-title",children:[j,ne]}),e[40]=j,e[41]=ne,e[42]=J):J=e[42];let W;e[43]!==v||e[44]!==n.id||e[45]!==o||e[46]!==k||e[47]!==F?(W=F&&(0,At.jsx)(rot,{state:k,rowId:n.id,files:v.files,t:o}),e[43]=v,e[44]=n.id,e[45]=o,e[46]=k,e[47]=F,e[48]=W):W=e[48];let ie;e[49]!==i||e[50]!==$||e[51]!==n.id||e[52]!==C?.path||e[53]!==o?(ie=$&&(0,At.jsx)("button",{type:"button",className:"acpmux-review-changes",onClick:me=>i(n.id,C?.path,me.currentTarget),children:o("edited.view")}),e[49]=i,e[50]=$,e[51]=n.id,e[52]=C?.path,e[53]=o,e[54]=ie):ie=e[54];let Z;e[55]!==u||e[56]!==p||e[57]!==a.show||e[58]!==C||e[59]!==o||e[60]!==S?(Z=!C&&S>0&&a.show==="collapsed"&&(0,At.jsx)("button",{type:"button",className:"acpmux-edited-toggle","aria-expanded":u,"aria-label":o(u?"edited.hideFiles":"edited.showFiles"),onClick:()=>p(!u),children:(0,At.jsx)(l5,{width:14,height:14,style:u?{transform:"rotate(180deg)"}:void 0})}),e[55]=u,e[56]=p,e[57]=a.show,e[58]=C,e[59]=o,e[60]=S,e[61]=Z):Z=e[61];let ce;e[62]!==J||e[63]!==W||e[64]!==ie||e[65]!==Z?(ce=(0,At.jsxs)("div",{className:"acpmux-edited-head",children:[G,J,W,ie,Z]}),e[62]=J,e[63]=W,e[64]=ie,e[65]=Z,e[66]=ce):ce=e[66];let se;e[67]!==v||e[68]!==n.id||e[69]!==o||e[70]!==k.phase||e[71]!==k.summary?(se=k.phase==="confirm"&&(0,At.jsx)(oot,{summary:k.summary,onUndo:()=>{q9e(n.id,v.files)},onCancel:()=>H9e(n.id),t:o}),e[67]=v,e[68]=n.id,e[69]=o,e[70]=k.phase,e[71]=k.summary,e[72]=se):se=e[72];let be;e[73]!==i||e[74]!==n.id||e[75]!==C||e[76]!==P||e[77]!==o||e[78]!==k.phase?(be=C&&k.phase==="done"&&(0,At.jsx)(W9e,{status:P(C.path),path:C.path,rowId:n.id,onOpenDiff:i,t:o}),e[73]=i,e[74]=n.id,e[75]=C,e[76]=P,e[77]=o,e[78]=k.phase,e[79]=be):be=e[79];let le=M.map(me=>{if(!me.file){let Be=me.path,_e=Be?Be.replace(/\/+$/,"").lastIndexOf("/"):-1;return(0,At.jsx)("div",{className:"acpmux-edited-file",children:Be?(0,At.jsxs)("span",{className:"acpmux-edited-path",title:Be,children:[(0,At.jsx)(K9e,{dir:Be.slice(0,_e+1)}),(0,At.jsx)("span",{className:"acpmux-edited-base",children:Be.slice(_e+1)})]}):(0,At.jsx)("span",{className:"acpmux-edited-path",children:o("edited.unknownFile")})},me.key)}let Se=me.file,de=Se.displayPath.lastIndexOf("/"),Le=(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("span",{className:"acpmux-edited-path",title:Se.path,children:[(0,At.jsx)(K9e,{dir:Se.displayPath.slice(0,de+1)}),(0,At.jsx)("span",{className:"acpmux-edited-base",children:Se.displayPath.slice(de+1)})]}),(0,At.jsx)(Hm,{additions:Se.additions,deletions:Se.deletions})]}),Ne=k.phase==="done"?P(Se.path):void 0;return(0,At.jsxs)("div",{className:"acpmux-edited-entry",children:[i?(0,At.jsx)("button",{type:"button",className:"acpmux-edited-file",onClick:Be=>i(n.id,Se.path,Be.currentTarget),children:Le}):(0,At.jsx)("div",{className:"acpmux-edited-file",children:Le}),Ne&&(0,At.jsx)(W9e,{status:Ne,path:Se.path,rowId:n.id,onOpenDiff:i,t:o})]},me.key)}),ge;e[80]!==T||e[81]!==A||e[82]!==u||e[83]!==s||e[84]!==C||e[85]!==o||e[86]!==S?(ge=u&&(A>0||s)&&!C&&S>T&&(0,At.jsxs)("button",{type:"button",className:"acpmux-edited-more","aria-expanded":s,onClick:()=>l(!s),children:[s?o("edited.fewer"):A===1?o("edited.more.one"):o("edited.more.other",{n:A}),(0,At.jsx)(l5,{width:14,height:14,style:s?{transform:"rotate(180deg)"}:void 0})]}),e[80]=T,e[81]=A,e[82]=u,e[83]=s,e[84]=C,e[85]=o,e[86]=S,e[87]=ge):ge=e[87];let ke;return e[88]!==ce||e[89]!==se||e[90]!==be||e[91]!==le||e[92]!==ge?(ke=(0,At.jsxs)("div",{className:U,children:[ce,se,be,le,ge]}),e[88]=ce,e[89]=se,e[90]=be,e[91]=le,e[92]=ge,e[93]=ke):ke=e[93],ke}function Yit(t){return t.undo.kind!=="cannot"}function Qit(t){return{key:`plain-${t.key}`,path:t.path}}function Jit(t){return{key:t.path,file:t}}function eot(t){return(t.items??[]).filter(tot)}function tot(t){return t.tool?.kind==="edit"||t.tool?.kind==="fileChange"}function not(t,e){if(t.phase!=="done")return"cannot";let n=t.result.get(e);return n==="reverted"||n==="trashed"?"undone":n==="changed"?"changed":"cannot"}function rot(t){let e=(0,Qm.c)(22),{state:n,rowId:r,files:i,t:o}=t;if(n.phase==="done"){let p;e[0]!==n.result?(p=[...n.result.values()].filter(iot),e[0]=n.result,e[1]=p):p=e[1];let m=p.length,f=i.length,h;e[2]!==o||e[3]!==f||e[4]!==m?(h=m===f?o("edited.undone"):o("edited.undonePartial",{n:m,total:f}),e[2]=o,e[3]=f,e[4]=m,e[5]=h):h=e[5];let x;return e[6]!==h?(x=(0,At.jsx)("output",{className:"acpmux-edited-undone",children:h}),e[6]=h,e[7]=x):x=e[7],x}let a=n.phase==="checking"||n.phase==="undoing"||n.phase==="confirm",s;e[8]!==o?(s=o("edited.undoHostLabel"),e[8]=o,e[9]=s):s=e[9];let l;e[10]!==i||e[11]!==r?(l=()=>{z9e(r,i)},e[10]=i,e[11]=r,e[12]=l):l=e[12];let c;e[13]!==n.phase||e[14]!==o?(c=n.phase==="undoing"?o("edited.undoing"):n.phase==="failed"?o("edited.undoFailed"):o("edited.undo"),e[13]=n.phase,e[14]=o,e[15]=c):c=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=(0,At.jsx)(Dre,{size:14}),e[16]=u):u=e[16];let d;return e[17]!==a||e[18]!==s||e[19]!==l||e[20]!==c?(d=(0,At.jsxs)("button",{type:"button",className:"acpmux-edited-undo",disabled:a,title:s,onClick:l,children:[c,u]}),e[17]=a,e[18]=s,e[19]=l,e[20]=c,e[21]=d):d=e[21],d}function iot(t){return t==="reverted"||t==="trashed"}function oot(t){let e=(0,Qm.c)(31),{summary:n,onUndo:r,onCancel:i,t:o}=t,a;e[0]!==o?(a=o("edited.undo"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==n.undo||e[3]!==o?(s=n.undo===0?o("edited.undoNothing"):n.undo===1?o("edited.undoConfirm.one"):o("edited.undoConfirm.other",{n:n.undo}),e[2]=n.undo,e[3]=o,e[4]=s):s=e[4];let l;e[5]!==s?(l=(0,At.jsx)("div",{children:s}),e[5]=s,e[6]=l):l=e[6];let c;e[7]!==n.changed||e[8]!==o?(c=n.changed>0&&(0,At.jsx)("div",{className:"acpmux-edited-confirm-skip",children:n.changed===1?o("edited.undoSkip.changed.one"):o("edited.undoSkip.changed.other",{n:n.changed})}),e[7]=n.changed,e[8]=o,e[9]=c):c=e[9];let u;e[10]!==n.cannot||e[11]!==o?(u=n.cannot>0&&(0,At.jsx)("div",{className:"acpmux-edited-confirm-skip",children:n.cannot===1?o("edited.undoSkip.cannot.one"):o("edited.undoSkip.cannot.other",{n:n.cannot})}),e[10]=n.cannot,e[11]=o,e[12]=u):u=e[12];let d;e[13]!==l||e[14]!==c||e[15]!==u?(d=(0,At.jsxs)("div",{className:"acpmux-edited-confirm-text",children:[l,c,u]}),e[13]=l,e[14]=c,e[15]=u,e[16]=d):d=e[16];let p;e[17]!==o?(p=o("edited.cancel"),e[17]=o,e[18]=p):p=e[18];let m;e[19]!==i||e[20]!==p?(m=(0,At.jsx)("button",{type:"button",className:"acpmux-edited-cancel",onClick:i,children:p}),e[19]=i,e[20]=p,e[21]=m):m=e[21];let f;e[22]!==r||e[23]!==n.undo||e[24]!==o?(f=n.undo>0&&(0,At.jsx)("button",{type:"button",className:"acpmux-edited-undo acpmux-edited-undo-confirm",onClick:r,children:o("edited.undo")}),e[22]=r,e[23]=n.undo,e[24]=o,e[25]=f):f=e[25];let h;return e[26]!==a||e[27]!==d||e[28]!==m||e[29]!==f?(h=(0,At.jsxs)("div",{className:"acpmux-edited-confirm",role:"alertdialog","aria-label":a,children:[d,m,f]}),e[26]=a,e[27]=d,e[28]=m,e[29]=f,e[30]=h):h=e[30],h}function W9e(t){let e=(0,Qm.c)(15),{status:n,path:r,rowId:i,onOpenDiff:o,t:a}=t,s=`acpmux-edited-status acpmux-edited-status-${n}`,l;e[0]!==n||e[1]!==a?(l=a(n==="undone"?"edited.status.undone":n==="changed"?"edited.status.changed":"edited.status.cannot"),e[0]=n,e[1]=a,e[2]=l):l=e[2];let c;e[3]!==l?(c=(0,At.jsx)("span",{children:l}),e[3]=l,e[4]=c):c=e[4];let u;e[5]!==o||e[6]!==r||e[7]!==i||e[8]!==n||e[9]!==a?(u=n==="changed"&&o&&(0,At.jsx)("button",{type:"button",className:"acpmux-edited-viewdiff",onClick:p=>o(i,r,p.currentTarget),children:a("edited.viewDiff")}),e[5]=o,e[6]=r,e[7]=i,e[8]=n,e[9]=a,e[10]=u):u=e[10];let d;return e[11]!==s||e[12]!==c||e[13]!==u?(d=(0,At.jsxs)("div",{className:s,children:[c,u]}),e[11]=s,e[12]=c,e[13]=u,e[14]=d):d=e[14],d}function K9e(t){let e=(0,Qm.c)(13),{dir:n}=t;if(!n)return null;let r=n.indexOf("/")+1,i;e[0]!==r||e[1]!==n?(i=n.slice(0,r),e[0]=r,e[1]=n,e[2]=i):i=e[2];let o=i,a;e[3]!==r||e[4]!==n?(a=n.slice(r),e[3]=r,e[4]=n,e[5]=a):a=e[5];let s=a,l;e[6]!==o?(l=(0,At.jsx)("span",{className:"acpmux-edited-dir-head",children:o}),e[6]=o,e[7]=l):l=e[7];let c;e[8]!==s?(c=s&&(0,At.jsx)("span",{className:"acpmux-edited-dir-tail",children:(0,At.jsx)("bdi",{children:s})}),e[8]=s,e[9]=c):c=e[9];let u;return e[10]!==l||e[11]!==c?(u=(0,At.jsxs)("span",{className:"acpmux-edited-dir",children:[l,c]}),e[10]=l,e[11]=c,e[12]=u):u=e[12],u}var aot=()=>{let t=(0,Qm.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,At.jsx)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round","aria-hidden":"true",children:(0,At.jsx)("path",{d:"M8 2.5v6M5 5.5h6M5 12.5h6"})}),t[0]=e):e=t[0],e},sot=()=>{let t=(0,Qm.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,At.jsx)("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,At.jsx)("path",{d:"M3.5 8.5l5-5M4.5 3.5h4v4"})}),t[0]=e):e=t[0],e};var ewe=R(qe(),1),twe=R(Q(),1);var Y9e=R(qe(),1),Q9e=R(Q(),1);var ul=R(ee(),1);function J9e(t){let e=(0,Y9e.c)(37),{url:n,onOpenInPane:r}=t,i=we(),[o,a]=(0,Q9e.useState)(),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=S=>{S&&vd("browser.list",{}).then(C=>{let T=C?.browsers;a(Array.isArray(T)?T.filter(lot):[])})},e[0]=s):s=e[0];let l=s,c;e[1]!==i?(c=i("preview.openIn"),e[1]=i,e[2]=c):c=e[2];let u;e[3]!==i?(u=i("preview.openIn"),e[3]=i,e[4]=u):u=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,ul.jsx)(Fk,{size:12}),e[5]=d):d=e[5];let p;e[6]!==c||e[7]!==u?(p=(0,ul.jsxs)(ug,{className:"acpmux-review-changes acpmux-open-in",label:c,children:[u,d]}),e[6]=c,e[7]=u,e[8]=p):p=e[8];let m;e[9]!==r||e[10]!==n?(m=()=>r(n),e[9]=r,e[10]=n,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,ul.jsx)(Tl,{size:16,className:"acpmux-open-in__icon"}),e[12]=f):f=e[12];let h;e[13]!==i?(h=i("preview.cmuxBrowser"),e[13]=i,e[14]=h):h=e[14];let x;e[15]!==m||e[16]!==h?(x=(0,ul.jsxs)(jd,{onSelect:m,children:[f,h]}),e[15]=m,e[16]=h,e[17]=x):x=e[17];let g;e[18]!==o||e[19]!==n?(g=o?.map(S=>(0,ul.jsxs)(jd,{onSelect:()=>{vd("browser.openIn",{url:n,browserId:S.id})},children:[S.icon?.startsWith("data:image/")?(0,ul.jsx)("img",{className:"acpmux-open-in__icon",src:S.icon,alt:"",width:16,height:16}):(0,ul.jsx)(Tl,{size:16,className:"acpmux-open-in__icon"}),S.name]},S.id)),e[18]=o,e[19]=n,e[20]=g):g=e[20];let y;e[21]===Symbol.for("react.memo_cache_sentinel")?(y=(0,ul.jsx)(yy,{}),e[21]=y):y=e[21];let b;e[22]!==n?(b=()=>{ba(n)},e[22]=n,e[23]=b):b=e[23];let w;e[24]===Symbol.for("react.memo_cache_sentinel")?(w=(0,ul.jsx)(a1,{size:16,className:"acpmux-open-in__icon"}),e[24]=w):w=e[24];let v;e[25]!==i?(v=i("preview.copyLink"),e[25]=i,e[26]=v):v=e[26];let k;e[27]!==b||e[28]!==v?(k=(0,ul.jsxs)(jd,{onSelect:b,children:[w,v]}),e[27]=b,e[28]=v,e[29]=k):k=e[29];let _;e[30]!==g||e[31]!==k||e[32]!==x?(_=(0,ul.jsxs)(U1,{align:"end",children:[x,g,y,k]}),e[30]=g,e[31]=k,e[32]=x,e[33]=_):_=e[33];let L;return e[34]!==_||e[35]!==p?(L=(0,ul.jsxs)(cg,{onOpenChange:l,children:[p,_]}),e[34]=_,e[35]=p,e[36]=L):L=e[36],L}function lot(t){return typeof t.id=="string"}var ys=R(ee(),1);function nwe(t){let e=(0,ewe.c)(48),{url:n,onOpen:r}=t,i=we(),o;e[0]!==n?(o=new URL(n),e[0]=n,e[1]=o):o=e[1];let a=o,s=`${a.host}${a.pathname==="/"?"":a.pathname}${a.search}`,l;e[2]!==n?(l=nJ(n),e[2]=n,e[3]=l):l=e[3];let c=l,u=typeof location<"u"&&a.origin===location.origin,[d,p]=(0,twe.useState)(!1),m=IC(n),f;e[4]!==m?(f=(0,ys.jsx)("span",{className:"acpmux-turn-preview-icon",children:m?.icon?(0,ys.jsx)("img",{src:m.icon,alt:"",width:16,height:16}):(0,ys.jsx)(Tl,{size:16})}),e[4]=m,e[5]=f):f=e[5];let h=m?.title?`${m.title} -${n}`:n,x;e[6]!==m?(x=m?.title?(0,ys.jsx)("span",{className:"acpmux-turn-preview-title",children:m.title}):null,e[6]=m,e[7]=x):x=e[7];let g;e[8]!==s||e[9]!==h||e[10]!==x||e[11]!==n?(g=(0,ys.jsxs)("a",{className:"acpmux-turn-preview-address",href:n,title:h,children:[x,s]}),e[8]=s,e[9]=h,e[10]=x,e[11]=n,e[12]=g):g=e[12];let y;e[13]!==s||e[14]!==i?(y=i("preview.openLabel",{address:s}),e[13]=s,e[14]=i,e[15]=y):y=e[15];let b;e[16]!==r||e[17]!==n?(b=()=>r(n),e[16]=r,e[17]=n,e[18]=b):b=e[18];let w;e[19]!==i?(w=i("preview.open"),e[19]=i,e[20]=w):w=e[20];let v;e[21]!==y||e[22]!==b||e[23]!==w?(v=(0,ys.jsx)("button",{type:"button",className:"acpmux-review-changes","aria-label":y,onClick:b,children:w}),e[21]=y,e[22]=b,e[23]=w,e[24]=v):v=e[24];let k;e[25]!==r||e[26]!==n?(k=(0,ys.jsx)(J9e,{url:n,onOpenInPane:r}),e[25]=r,e[26]=n,e[27]=k):k=e[27];let _;e[28]!==v||e[29]!==k||e[30]!==f||e[31]!==g?(_=(0,ys.jsxs)("div",{className:"acpmux-turn-preview-head",children:[f,g,v,k]}),e[28]=v,e[29]=k,e[30]=f,e[31]=g,e[32]=_):_=e[32];let L;e[33]!==s||e[34]!==d||e[35]!==u||e[36]!==i?(L=!u&&!d&&(0,ys.jsx)("div",{className:"acpmux-turn-preview-unloaded",children:(0,ys.jsx)("button",{type:"button",className:"acpmux-turn-preview-load","aria-label":i("preview.loadLabel",{address:s}),onClick:()=>p(!0),children:i("preview.load")})}),e[33]=s,e[34]=d,e[35]=u,e[36]=i,e[37]=L):L=e[37];let S;e[38]!==s||e[39]!==c||e[40]!==d||e[41]!==r||e[42]!==u?(S=!u&&d&&(0,ys.jsx)("div",{className:"acpmux-turn-preview-frame","aria-hidden":"true",onClick:()=>r(c),children:(0,ys.jsx)("iframe",{src:c,title:s,tabIndex:-1,referrerPolicy:"no-referrer",sandbox:"allow-scripts allow-same-origin"})}),e[38]=s,e[39]=c,e[40]=d,e[41]=r,e[42]=u,e[43]=S):S=e[43];let C;return e[44]!==_||e[45]!==L||e[46]!==S?(C=(0,ys.jsxs)("div",{className:"acpmux-turn-preview",children:[_,L,S]}),e[44]=_,e[45]=L,e[46]=S,e[47]=C):C=e[47],C}var rwe=R(qe(),1);var owe=R(ee(),1);function iwe(t){let e=(0,rwe.c)(12),{row:n,now:r}=t,i,o,a,s;if(e[0]!==n.at||e[1]!==r){s=Symbol.for("react.early_return_sentinel");e:{let c=r===void 0?Date.now():r;if(!Yw(n.at)){s=null;break e}i="cv-date-line",e[6]!==n.at?(o=new Date(n.at).toISOString(),e[6]=n.at,e[7]=o):o=e[7],a=oJ(n.at,{now:c,locale:"en-US"})}e[0]=n.at,e[1]=r,e[2]=i,e[3]=o,e[4]=a,e[5]=s}else i=e[2],o=e[3],a=e[4],s=e[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let l;return e[8]!==i||e[9]!==o||e[10]!==a?(l=(0,owe.jsx)("time",{className:i,dateTime:o,children:a}),e[8]=i,e[9]=o,e[10]=a,e[11]=l):l=e[11],l}var awe=R(qe(),1),nV=R(Q(),1);var ca=R(ee(),1),cot=9;function uot(t,e){let n=e.trim().toLowerCase();return[...t].filter(r=>r.status!=="closed").sort((r,i)=>(i.updatedAt??0)-(r.updatedAt??0)).filter(r=>!n||cwe(r).toLowerCase().includes(n)).slice(0,cot)}function swe(){return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: no-preference)").matches:!1}function lwe(t,e,n){let r=n?"closing":"closed";switch(e){case"toggle":return t==="open"?r:"open";case"close":return t==="open"?r:t;case"exited":return t==="closing"?"closed":t}}var cwe=t=>t.displayTitle??AO(t);function uwe(t){let e=(0,awe.c)(35),{sessions:n,onSelect:r,onNewChat:i,onClose:o,closing:a,onExited:s}=t,l=a===void 0?!1:a,c=we(),[u,d]=(0,nV.useState)(""),[p,m]=(0,nV.useState)(0),f;e[0]!==r?(f=(H,ne)=>({key:H.sessionId,label:cwe(H),meta:H.cwd?wi(H.cwd):void 0,shortcut:`\u2303${ne+1}`,run:()=>r(H.sessionId)}),e[0]=r,e[1]=f):f=e[1];let h=uot(n,u).map(f),x=u.trim().toLowerCase(),g=Ga(ll.searchChats),y=[{key:"new-chat",label:c("search.newChat"),run:i}].filter(H=>!x||H.label.toLowerCase().includes(x)),b=[...h,...y],w=Math.min(p,Math.max(b.length-1,0)),v=H=>{if(!(H.nativeEvent.isComposing||H.nativeEvent.keyCode===229))if(H.key==="ArrowDown"||H.key==="ArrowUp"){H.preventDefault();let ne=H.key==="ArrowDown"?1:-1;m(b.length?(w+ne+b.length)%b.length:0)}else H.key==="Enter"?(H.preventDefault(),b[w]?.run()):H.key==="Escape"?(H.preventDefault(),H.stopPropagation(),o()):H.ctrlKey&&/^[1-9]$/.test(H.key)&&(H.preventDefault(),h[Number(H.key)-1]?.run())},k;e[2]!==w?(k=(H,ne)=>(0,ca.jsx)("li",{children:(0,ca.jsxs)("button",{type:"button",className:`acpmux-search-row${ne===w?" is-active":""}`,"aria-current":ne===w||void 0,onMouseMove:()=>ne!==w&&m(ne),onClick:H.run,children:[(0,ca.jsx)("span",{className:"acpmux-search-label",children:H.label}),H.meta&&(0,ca.jsx)("span",{className:"acpmux-search-meta",children:H.meta}),H.shortcut&&(0,ca.jsx)("kbd",{className:"acpmux-search-kbd",children:H.shortcut})]})},H.key),e[2]=w,e[3]=k):k=e[3];let _=k,L;e[4]!==c?(L=c("search.close"),e[4]=c,e[5]=L):L=e[5];let S;e[6]!==o||e[7]!==L?(S=(0,ca.jsx)("button",{type:"button",className:"acpmux-search-scrim","aria-label":L,tabIndex:-1,onClick:o}),e[6]=o,e[7]=L,e[8]=S):S=e[8];let C;e[9]!==c?(C=c("search.title"),e[9]=c,e[10]=C):C=e[10];let T;e[11]!==l||e[12]!==s?(T=H=>{l&&H.target===H.currentTarget&&s?.()},e[11]=l,e[12]=s,e[13]=T):T=e[13];let M;e[14]!==c?(M=c("search.title"),e[14]=c,e[15]=M):M=e[15];let A;e[16]!==c||e[17]!==g?(A=lu(c("search.title"),g),e[16]=c,e[17]=g,e[18]=A):A=e[18];let $;e[19]!==c?($=c("search.placeholder"),e[19]=c,e[20]=$):$=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=H=>{d(H.target.value),m(0)},e[21]=N):N=e[21];let F="acpmux-search-results",D=h.length>0&&(0,ca.jsx)("div",{className:"acpmux-search-section",children:c("search.chats")}),O;e[22]!==h||e[23]!==_?(O=h.map(_),e[22]=h,e[23]=_,e[24]=O):O=e[24];let B;e[25]!==O?(B=(0,ca.jsx)("ul",{children:O}),e[25]=O,e[26]=B):B=e[26];let P=y.length>0&&(0,ca.jsx)("div",{className:"acpmux-search-section",children:c("search.quick")}),U=y.map((H,ne)=>_(H,h.length+ne)),G;e[27]!==U?(G=(0,ca.jsx)("ul",{children:U}),e[27]=U,e[28]=G):G=e[28];let j=b.length===0&&(0,ca.jsx)("div",{className:"acpmux-search-section",children:c("search.none")}),V;return e[29]!==D||e[30]!==B||e[31]!==P||e[32]!==G||e[33]!==j?(V=(0,ca.jsxs)("div",{className:F,children:[D,B,P,G,j]}),e[29]=D,e[30]=B,e[31]=P,e[32]=G,e[33]=j,e[34]=V):V=e[34],(0,ca.jsxs)("div",{className:`acpmux-search-layer${l?" is-closing":""}`,"aria-hidden":l||void 0,children:[S,(0,ca.jsxs)("div",{className:"acpmux-search",role:"dialog","aria-modal":"true","aria-label":C,onAnimationEnd:T,children:[(0,ca.jsx)("input",{className:"acpmux-search-input",autoFocus:!0,type:"search",spellCheck:!1,readOnly:l,"aria-label":M,title:A,placeholder:$,value:u,onChange:N,onKeyDown:v}),V]})]})}var mwe="cmux",dot=/^[A-Za-z][A-Za-z0-9+.-]*$/,dwe=/^[A-Za-z0-9._-]{1,200}$/,nR;function fwe(t,e){nR=typeof t=="string"&&dot.test(t)?t:e}function hwe(t,e){if(!(!nR||!dwe.test(t))){if(e===void 0)return`${nR}://session/${t}`;if(dwe.test(e))return`${nR}://session/${t}#turn-${e}`}}var pwe="acpmux-turn-revealed",pot=1600,mot=5e3,fot=100;function hot(t,e=document){for(let n of e.querySelectorAll("[data-turn-id]"))if(n.dataset.turnId===t)return n.scrollIntoView({block:"center"}),n.classList.add(pwe),setTimeout(()=>n.classList.remove(pwe),pot),!0;return!1}var tR;function rV(t,e=document,{waitMs:n=mot,pollMs:r=fot}={}){return tR?.(),new Promise(i=>{let o=Date.now()+n,a,s=u=>{a!==void 0&&clearTimeout(a),tR===l&&(tR=void 0),i(u)},l=()=>s(!1),c=()=>{a=void 0,hot(t,e)?s(!0):Date.now()>=o?s(!1):a=setTimeout(c,r)};tR=l,c()})}var gwe=R(qe(),1);var F3=R(ee(),1);function bwe(t){let e=(0,gwe.c)(5),{status:n,detail:r}=t,i;e[0]!==r||e[1]!==n?(i=n&&(0,F3.jsxs)("output",{className:"acpmux-status",title:r,"aria-label":r,children:[(0,F3.jsx)(la,{name:"status.warning",size:13}),(0,F3.jsx)("span",{children:n})]}),e[0]=r,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==i?(o=(0,F3.jsx)("div",{className:"acpmux-header-status-slot",children:i}),e[3]=i,e[4]=o):o=e[4],o}var iV=R(qe(),1),ep=R(Q(),1);var ir=R(ee(),1),xs={terminal:"splitRight",browser:"splitBrowserRight",rename:"renameTab",pin:"palette.toggleTabPin",moveRight:"moveSurfaceToPaneRight",newWorkspace:"palette.moveTabToNewWorkspace",close:"closeTab"};function ywe(t){let e=(0,iV.c)(32),{changes:n,changesOpen:r,onChanges:i,onTerminal:o,onBrowser:a,tabTools:s,summary:l,menu:c,onMenuOpen:u,expand:d,onExpanded:p}=t,m=s===void 0?!0:s,f=we(),h=Ga(xs.terminal),x=Ga(xs.browser),g;e[0]!==n||e[1]!==f?(g=n?`${f("header.changes")}: +${n.additions} -${n.deletions}`:f("header.changes"),e[0]=n,e[1]=f,e[2]=g):g=e[2];let y=g,b;e[3]!==f?(b=f("header.changes"),e[3]=f,e[4]=b):b=e[4];let w=!n,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=(0,ir.jsx)(la,{name:"diff.file",size:15}),e[5]=v):v=e[5];let k;e[6]!==y||e[7]!==r||e[8]!==i||e[9]!==b||e[10]!==w?(k=(0,ir.jsx)("button",{type:"button",className:"acpmux-header-changes","aria-pressed":r,"aria-label":y,title:b,disabled:w,onClick:i,children:v}),e[6]=y,e[7]=r,e[8]=i,e[9]=b,e[10]=w,e[11]=k):k=e[11];let _;e[12]!==x||e[13]!==a||e[14]!==o||e[15]!==f||e[16]!==m||e[17]!==h?(_=m&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("button",{type:"button",className:"acpmux-header-tool","aria-label":f("header.terminal"),title:lu(f("header.terminal"),h),onClick:o,children:(0,ir.jsx)(la,{name:"terminal",size:15})}),(0,ir.jsx)("button",{type:"button",className:"acpmux-header-tool","aria-label":f("header.browser"),title:lu(f("header.browser"),x),onClick:a,children:(0,ir.jsx)(la,{name:"browser",size:15})})]}),e[12]=x,e[13]=a,e[14]=o,e[15]=f,e[16]=m,e[17]=h,e[18]=_):_=e[18];let L;e[19]!==c?(L=c(),e[19]=c,e[20]=L):L=e[20];let S=L.length===0,C;e[21]!==d||e[22]!==c||e[23]!==p||e[24]!==u||e[25]!==S?(C=(0,ir.jsx)(got,{items:c,disabled:S,onOpen:u,expand:d,onExpanded:p}),e[21]=d,e[22]=c,e[23]=p,e[24]=u,e[25]=S,e[26]=C):C=e[26];let T;return e[27]!==l||e[28]!==C||e[29]!==k||e[30]!==_?(T=(0,ir.jsxs)("div",{className:"acpmux-header-tools",children:[k,_,l,C]}),e[27]=l,e[28]=C,e[29]=k,e[30]=_,e[31]=T):T=e[31],T}function got({items:t,disabled:e,onOpen:n,expand:r,onExpanded:i}){let o=we(),[a,s]=(0,ep.useState)(!1),[l,c]=(0,ep.useState)([]),[u,d]=(0,ep.useState)(),p=(0,ep.useRef)(0),m=b=>{let w=++p.current,v=()=>{w===p.current&&(c(t()),d(b),s(!0))};if(!n)return v();let k=new Promise(_=>window.setTimeout(_,150));Promise.race([n().catch(()=>{}),k]).then(v)},f=(0,ep.useRef)(m);f.current=m,(0,ep.useEffect)(()=>{r&&(f.current(r),i?.())},[r,i]);let h=o("chatMenu.open");(0,ep.useEffect)(()=>Xs(h,()=>f.current()),[h]);let x=b=>{if(b)return m();p.current++,s(!1)},g=u?l.find(b=>b!=="separator"&&b.key===u):void 0,y=g&&g!=="separator"?g.children:void 0;return(0,ir.jsxs)(cg,{open:a,onOpenChange:x,children:[(0,ir.jsx)(ug,{className:"acpmux-header-tool",label:h,disabled:e,children:(0,ir.jsx)(la,{name:"action.more",size:15})}),(0,ir.jsx)(U1,{className:"acpmux-chat-menu-popover",align:"end",children:y?y.map(b=>(0,ir.jsx)(jd,{className:"acpmux-chat-menu-item",onSelect:b.onSelect,children:(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:b.label})},b.key)):l.map((b,w)=>b==="separator"?(0,ir.jsx)(yy,{},`separator-${w}`):b.children?(0,ir.jsx)(V1e,{className:"acpmux-chat-menu-item",popupClassName:"acpmux-chat-menu-popover",disabled:b.disabled,label:(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(la,{name:b.icon,size:15}),(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:b.label})]}),children:b.children.map(v=>(0,ir.jsx)(jd,{className:"acpmux-chat-menu-item",onSelect:v.onSelect,children:(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:v.label})},v.key))},b.key):(0,ir.jsx)(bot,{item:b},b.key))})]})}function bot(t){let e=(0,iV.c)(12),{item:n}=t,r=Ga(n.shortcutAction??""),i;e[0]!==n.icon?(i=(0,ir.jsx)(la,{name:n.icon,size:15}),e[0]=n.icon,e[1]=i):i=e[1];let o;e[2]!==n.label?(o=(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:n.label}),e[2]=n.label,e[3]=o):o=e[3];let a;e[4]!==r?(a=r&&(0,ir.jsx)("kbd",{className:"acpmux-chat-menu-key",children:r}),e[4]=r,e[5]=a):a=e[5];let s;return e[6]!==n.disabled||e[7]!==n.onSelect||e[8]!==i||e[9]!==o||e[10]!==a?(s=(0,ir.jsxs)(jd,{className:"acpmux-chat-menu-item",disabled:n.disabled,onSelect:n.onSelect,children:[i,o,a]}),e[6]=n.disabled,e[7]=n.onSelect,e[8]=i,e[9]=o,e[10]=a,e[11]=s):s=e[11],s}var xwe=R(qe(),1);var oV=R(ee(),1);function wwe(){let t=(0,xwe.c)(4),e=we(),n;t[0]!==e?(n=e("thinking"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=(0,oV.jsx)("output",{className:"cv-worked",children:(0,oV.jsx)("span",{className:"cv-thinking",children:n})}),t[2]=n,t[3]=r):r=t[3],r}var vwe=R(qe(),1),rR=R(Q(),1);var aV=R(ee(),1),yot=(t,e)=>`Working for ${zI(Math.max(0,e-t))}`;function kwe(t){let e=(0,vwe.c)(9),{row:n,now:r}=t,i=r===void 0?Date.now:r,[o,a]=(0,rR.useState)(i),s=n.durationMs!==void 0,l,c;e[0]!==s||e[1]!==i?(l=()=>{if(s)return;a(i());let m=setInterval(()=>a(i()),1e3);return()=>clearInterval(m)},c=[i,s],e[0]=s,e[1]=i,e[2]=l,e[3]=c):(l=e[2],c=e[3]),(0,rR.useEffect)(l,c);let u=s?n.at+n.durationMs:o,d;e[4]!==n.at||e[5]!==u?(d=yot(n.at,u),e[4]=n.at,e[5]=u,e[6]=d):d=e[6];let p;return e[7]!==d?(p=(0,aV.jsx)("div",{className:"cv-worked has-divider",children:(0,aV.jsx)("span",{className:"cv-worked__label",children:d})}),e[7]=d,e[8]=p):p=e[8],p}var Cwe=R(qe(),1);var y5=R(ee(),1);function _we(t){let e=(0,Cwe.c)(17),{message:n,retrying:r,onRetry:i}=t,o=we(),a;e[0]!==n?(a=(0,y5.jsx)("p",{className:"acpmux-host-error-message selectable",children:n}),e[0]=n,e[1]=a):a=e[1];let s;e[2]!==o?(s=o("host.retrying"),e[2]=o,e[3]=s):s=e[3];let l;e[4]!==s?(l=(0,y5.jsx)("p",{className:"acpmux-host-error-hint",children:s}),e[4]=s,e[5]=l):l=e[5];let c=r?"host.retryQueued":"host.retry",u;e[6]!==o||e[7]!==c?(u=o(c),e[6]=o,e[7]=c,e[8]=u):u=e[8];let d;e[9]!==i||e[10]!==r||e[11]!==u?(d=(0,y5.jsx)("button",{type:"button",onClick:i,disabled:r,children:u}),e[9]=i,e[10]=r,e[11]=u,e[12]=d):d=e[12];let p;return e[13]!==a||e[14]!==l||e[15]!==d?(p=(0,y5.jsx)("div",{className:"acpmux-host-error",role:"alert",children:(0,y5.jsxs)("div",{className:"acpmux-host-error-card",children:[a,l,d]})}),e[13]=a,e[14]=l,e[15]=d,e[16]=p):p=e[16],p}var Swe=R(qe(),1);var Mwe=R(ee(),1);function Lwe(t){let e=(0,Swe.c)(5),{row:n}=t,r=we();if(!n.text)return null;let i;e[0]!==n.text||e[1]!==r?(i=r("shell.moved",{place:n.text}),e[0]=n.text,e[1]=r,e[2]=i):i=e[2];let o;return e[3]!==i?(o=(0,Mwe.jsx)("p",{className:"cv-date-line acpmux-move-line",children:i}),e[3]=i,e[4]=o):o=e[4],o}var Twe=R(qe(),1),iR=R(Q(),1);var pi=R(ee(),1),Ewe=8,sV=(0,iR.createContext)(void 0);function Rwe(t){let e=(0,Twe.c)(45),{row:n,expanded:r,onToggleActivity:i}=t,o=we(),a=(0,iR.useContext)(sV),s=n.shell;if(!s)return null;let l,c,u,d,p;if(e[0]!==a||e[1]!==r||e[2]!==s||e[3]!==o){let h=s.output.replace(/\n$/,""),x=h?h.split(` -`):[];l=x.length>Ewe;let g=l&&!r?x.slice(-Ewe):x,y=s.endedAt!==void 0?(s.endedAt-s.startedAt)/1e3:void 0,b;e[9]!==y?(b=y===void 0?"":y<10?`${y.toFixed(1)}s`:`${Math.round(y)}s`,e[9]=y,e[10]=b):b=e[10];let w=b;c="acpmux-shell-block",u=s.status;let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=(0,pi.jsx)("span",{className:"acpmux-shell-block-glyph","aria-hidden":"true",children:"!"}),e[11]=v):v=e[11];let k;e[12]!==s.command?(k=(0,pi.jsx)("code",{className:"acpmux-shell-block-command",title:s.command,children:s.command}),e[12]=s.command,e[13]=k):k=e[13];let _;e[14]!==a||e[15]!==s.exitCode||e[16]!==s.id||e[17]!==s.status||e[18]!==o||e[19]!==w?(_=(0,pi.jsx)("span",{className:"acpmux-shell-block-status",children:s.status==="running"?(0,pi.jsxs)("button",{type:"button",className:"acpmux-shell-block-stop",onClick:()=>a?.stop(s.id),children:[(0,pi.jsx)(s1,{size:12}),o("shell.stop"),(0,pi.jsx)("kbd",{children:"\u2303C"})]}):(0,pi.jsxs)(pi.Fragment,{children:[s.status==="done"?(0,pi.jsxs)("span",{className:"acpmux-shell-block-ok",children:[(0,pi.jsx)(qk,{size:14}),(0,pi.jsx)("span",{className:"visually-hidden",children:o("shell.succeeded")})]}):(0,pi.jsx)("span",{className:"acpmux-shell-block-failed",children:s.status==="stopped"?o("shell.stopped"):s.exitCode!==void 0?o("shell.exit",{code:s.exitCode}):o("shell.failed")}),w&&(0,pi.jsx)("span",{className:"acpmux-shell-block-time",children:w})]})}),e[14]=a,e[15]=s.exitCode,e[16]=s.id,e[17]=s.status,e[18]=o,e[19]=w,e[20]=_):_=e[20];let L;e[21]!==a||e[22]!==s?(L=()=>a?.openInTerminal(s),e[21]=a,e[22]=s,e[23]=L):L=e[23];let S;e[24]!==o?(S=o("shell.openInTerminal"),e[24]=o,e[25]=S):S=e[25];let C;e[26]!==S||e[27]!==L?(C=(0,pi.jsx)("button",{type:"button",className:"acpmux-shell-block-open",onClick:L,children:S}),e[26]=S,e[27]=L,e[28]=C):C=e[28],e[29]!==C||e[30]!==k||e[31]!==_?(d=(0,pi.jsxs)("div",{className:"acpmux-shell-block-head",children:[v,k,_,C]}),e[29]=C,e[30]=k,e[31]=_,e[32]=d):d=e[32],p=(g.length>0||s.error)&&(0,pi.jsxs)("pre",{className:"acpmux-shell-block-output selectable",children:[(s.truncated||l&&!r)&&(0,pi.jsx)("span",{className:"acpmux-shell-block-cut","aria-hidden":"true",children:"\u2026"}),g.join(` -`),s.error&&(0,pi.jsx)("span",{className:"acpmux-shell-block-error",children:s.error})]}),e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=l,e[5]=c,e[6]=u,e[7]=d,e[8]=p}else l=e[4],c=e[5],u=e[6],d=e[7],p=e[8];let m;e[33]!==r||e[34]!==l||e[35]!==i||e[36]!==n.id||e[37]!==o?(m=l&&(0,pi.jsx)("button",{type:"button",className:"acpmux-shell-block-more","aria-expanded":r,onClick:()=>i(n.id),children:o(r?"shell.showLess":"shell.showAll")}),e[33]=r,e[34]=l,e[35]=i,e[36]=n.id,e[37]=o,e[38]=m):m=e[38];let f;return e[39]!==c||e[40]!==u||e[41]!==d||e[42]!==p||e[43]!==m?(f=(0,pi.jsxs)("div",{className:c,"data-status":u,children:[d,p,m]}),e[39]=c,e[40]=u,e[41]=d,e[42]=p,e[43]=m,e[44]=f):f=e[44],f}var Awe=R(qe(),1);var x5=R(ee(),1);function $we(t){let e=(0,Awe.c)(19),{switching:n,onRetry:r}=t,i=we();if(!n||n.phase==="starting")return null;if(n.phase==="deferred"){let u;e[0]!==n.name||e[1]!==i?(u=i("switch.deferred",{agent:n.name}),e[0]=n.name,e[1]=i,e[2]=u):u=e[2];let d;return e[3]!==u?(d=(0,x5.jsx)("output",{className:"acpmux-switch-notice",children:u}),e[3]=u,e[4]=d):d=e[4],d}let o;e[5]!==n.error||e[6]!==n.name||e[7]!==i?(o=i("switch.failed",{agent:n.name,reason:n.error??i("switch.unknownError")}),e[5]=n.error,e[6]=n.name,e[7]=i,e[8]=o):o=e[8];let a;e[9]!==o?(a=(0,x5.jsx)("p",{className:"acpmux-host-error-message",children:o}),e[9]=o,e[10]=a):a=e[10];let s;e[11]!==i?(s=i("switch.retry"),e[11]=i,e[12]=s):s=e[12];let l;e[13]!==r||e[14]!==s?(l=(0,x5.jsx)("button",{type:"button",onClick:r,children:s}),e[13]=r,e[14]=s,e[15]=l):l=e[15];let c;return e[16]!==a||e[17]!==l?(c=(0,x5.jsx)("div",{className:"acpmux-host-error acpmux-switch-failed",role:"alert",children:(0,x5.jsxs)("div",{className:"acpmux-host-error-card",children:[a,l]})}),e[16]=a,e[17]=l,e[18]=c):c=e[18],c}var Iwe=R(qe(),1);var Lh=R(ee(),1);function Nwe(t){return t.offered&&t.freshChat&&!t.quick&&!t.projectDraft}function Pwe(t){let e=(0,Iwe.c)(13),{onChoose:n,error:r}=t,i=we(),o;e[0]!==i?(o=i("agentHome.notice"),e[0]=i,e[1]=o):o=e[1];let a;e[2]!==i?(a=i("agentHome.choose"),e[2]=i,e[3]=a):a=e[3];let s;e[4]!==n||e[5]!==a?(s=(0,Lh.jsx)("button",{type:"button",className:"acpmux-folder-choice-button",onClick:n,children:a}),e[4]=n,e[5]=a,e[6]=s):s=e[6];let l;e[7]!==r?(l=r&&(0,Lh.jsxs)(Lh.Fragment,{children:[" ",(0,Lh.jsx)("span",{role:"alert",children:r})]}),e[7]=r,e[8]=l):l=e[8];let c;return e[9]!==o||e[10]!==s||e[11]!==l?(c=(0,Lh.jsxs)("output",{className:"acpmux-switch-notice acpmux-folder-choice",children:[o," ",s,l]}),e[9]=o,e[10]=s,e[11]=l,e[12]=c):c=e[12],c}var jwe=R(qe(),1),Jm=R(Q(),1);var fr=R(ee(),1);function Owe(t){let e=(0,jwe.c)(142),{record:n,state:r,strings:i,onSave:o,onStart:a,onReturn:s,onDiscard:l,onReload:c}=t,[u,d]=(0,Jm.useState)(n.capsule.text),[p,m]=(0,Jm.useState)(n.capsule.checkpoint?.ref??""),[f,h]=(0,Jm.useState)(!!n.capsule.checkpoint),x;e[0]!==n.capsule.memoryRefs?(x=n.capsule.memoryRefs.join(` -`),e[0]=n.capsule.memoryRefs,e[1]=x):x=e[1];let[g,y]=(0,Jm.useState)(x),[b,w]=(0,Jm.useState)(),v=(0,Jm.useRef)(n.revision),k=(0,Jm.useRef)(0),_=!!r.busy&&r.busy!=="saving"||!r.ready||n.state==="started"||!!r.receipt,L=!_&&n.state==="draft",S;e[2]!==u||e[3]!==p||e[4]!==f||e[5]!==g?(S=()=>({capsule:u,checkpoint:{reference:p,confirmed:f},approvedMemoryReferences:[...new Set(g.split(/\r?\n/).map(xot).filter(Boolean))],revision:v.current}),e[2]=u,e[3]=p,e[4]=f,e[5]=g,e[6]=S):S=e[6];let C=S,T;e[7]!==L||e[8]!==C||e[9]!==o||e[10]!==r.conflict?(T=async()=>{if(!L||r.conflict||!k.current)return;let Ve=k.current;try{let Jt=await o(C());Jt&&(v.current=Jt.revision,k.current===Ve&&(k.current=0))}catch{}},e[7]=L,e[8]=C,e[9]=o,e[10]=r.conflict,e[11]=T):T=e[11];let M=T,A;e[12]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{k.current=k.current+1,w(void 0)},e[12]=A):A=e[12];let $=A,N=i.review,F;e[13]!==n.source.harness||e[14]!==n.target.harness||e[15]!==i.fromTo?(F=v6(i.fromTo,qf(n.source.harness),qf(n.target.harness)),e[13]=n.source.harness,e[14]=n.target.harness,e[15]=i.fromTo,e[16]=F):F=e[16];let D;e[17]!==F?(D=(0,fr.jsx)("p",{className:"acpmux-handoff-provenance",children:F}),e[17]=F,e[18]=D):D=e[18];let O;e[19]!==n.target.cwd?(O=(0,fr.jsx)("p",{className:"acpmux-handoff-project",children:n.target.cwd}),e[19]=n.target.cwd,e[20]=O):O=e[20];let B;e[21]!==_||e[22]!==u||e[23]!==p||e[24]!==f||e[25]!==g||e[26]!==a||e[27]!==n.capsule.maxBytes||e[28]!==i||e[29]!==r.conflict?(B=async Ve=>{if(Ve.preventDefault(),!(_||r.conflict))try{let Jt=b_(u,p,f,g,n.capsule.maxBytes,i);w(void 0),await a({...Jt,revision:v.current})}catch(Jt){let rn=Jt;w(rn instanceof Error?rn.message:i.failedReview)}},e[21]=_,e[22]=u,e[23]=p,e[24]=f,e[25]=g,e[26]=a,e[27]=n.capsule.maxBytes,e[28]=i,e[29]=r.conflict,e[30]=B):B=e[30];let P=!L,U;e[31]===Symbol.for("react.memo_cache_sentinel")?(U=Ve=>{$(),d(Ve.target.value)},e[31]=U):U=e[31];let G;e[32]!==M?(G=()=>{M()},e[32]=M,e[33]=G):G=e[33];let j;e[34]!==u||e[35]!==i.context||e[36]!==P||e[37]!==G?(j=(0,fr.jsx)("textarea",{"aria-label":i.context,value:u,rows:10,disabled:P,onChange:U,onBlur:G}),e[34]=u,e[35]=i.context,e[36]=P,e[37]=G,e[38]=j):j=e[38];let V;e[39]!==i.context||e[40]!==j?(V=(0,fr.jsxs)("label",{children:[i.context,j]}),e[39]=i.context,e[40]=j,e[41]=V):V=e[41];let H=!L,ne;e[42]===Symbol.for("react.memo_cache_sentinel")?(ne=Ve=>{$(),m(Ve.target.value),h(!1)},e[42]=ne):ne=e[42];let J;e[43]!==M?(J=()=>{M()},e[43]=M,e[44]=J):J=e[44];let W;e[45]!==p||e[46]!==i.checkpoint||e[47]!==i.checkpointPlaceholder||e[48]!==H||e[49]!==J?(W=(0,fr.jsx)("input",{"aria-label":i.checkpoint,value:p,placeholder:i.checkpointPlaceholder,disabled:H,onChange:ne,onBlur:J}),e[45]=p,e[46]=i.checkpoint,e[47]=i.checkpointPlaceholder,e[48]=H,e[49]=J,e[50]=W):W=e[50];let ie;e[51]!==i.checkpoint||e[52]!==W?(ie=(0,fr.jsxs)("label",{children:[i.checkpoint,W]}),e[51]=i.checkpoint,e[52]=W,e[53]=ie):ie=e[53];let Z=!L,ce;e[54]===Symbol.for("react.memo_cache_sentinel")?(ce=Ve=>{$(),h(Ve.target.checked)},e[54]=ce):ce=e[54];let se;e[55]!==M?(se=()=>{M()},e[55]=M,e[56]=se):se=e[56];let be;e[57]!==f||e[58]!==i.checkpointConfirm||e[59]!==Z||e[60]!==se?(be=(0,fr.jsx)("input",{"aria-label":i.checkpointConfirm,type:"checkbox",checked:f,disabled:Z,onChange:ce,onBlur:se}),e[57]=f,e[58]=i.checkpointConfirm,e[59]=Z,e[60]=se,e[61]=be):be=e[61];let le;e[62]!==i.checkpointConfirm||e[63]!==be?(le=(0,fr.jsxs)("label",{className:"acpmux-handoff-confirm",children:[be,i.checkpointConfirm]}),e[62]=i.checkpointConfirm,e[63]=be,e[64]=le):le=e[64];let ge;e[65]!==i.memory?(ge=(0,fr.jsx)("summary",{children:i.memory}),e[65]=i.memory,e[66]=ge):ge=e[66];let ke=!L,me;e[67]===Symbol.for("react.memo_cache_sentinel")?(me=Ve=>{$(),y(Ve.target.value)},e[67]=me):me=e[67];let Se;e[68]!==M?(Se=()=>{M()},e[68]=M,e[69]=Se):Se=e[69];let de;e[70]!==g||e[71]!==i.memoryHelp||e[72]!==ke||e[73]!==Se?(de=(0,fr.jsx)("textarea",{"aria-label":i.memoryHelp,value:g,rows:3,disabled:ke,onChange:me,onBlur:Se}),e[70]=g,e[71]=i.memoryHelp,e[72]=ke,e[73]=Se,e[74]=de):de=e[74];let Le;e[75]!==i.memoryHelp||e[76]!==de?(Le=(0,fr.jsxs)("label",{children:[i.memoryHelp,de]}),e[75]=i.memoryHelp,e[76]=de,e[77]=Le):Le=e[77];let Ne;e[78]!==ge||e[79]!==Le?(Ne=(0,fr.jsxs)("details",{children:[ge,Le]}),e[78]=ge,e[79]=Le,e[80]=Ne):Ne=e[80];let Be;e[81]!==i.coverage?(Be=(0,fr.jsx)("summary",{children:i.coverage}),e[81]=i.coverage,e[82]=Be):Be=e[82];let _e;e[83]!==n.source||e[84]!==n.target||e[85]!==i?(_e=[n.source,n.target].map((Ve,Jt)=>(0,fr.jsxs)("div",{children:[(0,fr.jsxs)("p",{children:[Jt===0?i.source:i.target,": ",qf(Ve.harness)]}),(0,fr.jsxs)("p",{title:Ve.enforcement.detail??i.unverifiedDetail,children:[i.nativePolicy,": ",Ve.enforcement.policy]}),(0,fr.jsx)("ul",{children:Ve.coverage.map(rn=>(0,fr.jsxs)("li",{children:[i[rn.item],": ",i[rn.status],rn.detail?` \xB7 ${rn.detail}`:""]},rn.item))})]},Ve.sessionId)),e[83]=n.source,e[84]=n.target,e[85]=i,e[86]=_e):_e=e[86];let xe;e[87]!==Be||e[88]!==_e?(xe=(0,fr.jsxs)("details",{className:"acpmux-handoff-coverage",children:[Be,_e]}),e[87]=Be,e[88]=_e,e[89]=xe):xe=e[89];let Ce;e[90]!==r.error||e[91]!==b?(Ce=(b||r.error)&&(0,fr.jsx)("p",{role:"alert",children:b||r.error}),e[90]=r.error,e[91]=b,e[92]=Ce):Ce=e[92];let K;e[93]!==i.saving||e[94]!==r.busy?(K=r.busy==="saving"&&(0,fr.jsx)("output",{children:i.saving}),e[93]=i.saving,e[94]=r.busy,e[95]=K):K=e[95];let Y;e[96]!==_||e[97]!==u||e[98]!==p||e[99]!==f||e[100]!==r.conflict?(Y=_||!!r.conflict||!u.trim()||!p.trim()||!f,e[96]=_,e[97]=u,e[98]=p,e[99]=f,e[100]=r.conflict,e[101]=Y):Y=e[101];let ye;e[102]!==n.state||e[103]!==n.target.harness||e[104]!==i.continueTarget||e[105]!==i.starting||e[106]!==r.busy?(ye=r.busy==="starting"||n.state==="starting"?i.starting:v6(i.continueTarget,qf(n.target.harness)),e[102]=n.state,e[103]=n.target.harness,e[104]=i.continueTarget,e[105]=i.starting,e[106]=r.busy,e[107]=ye):ye=e[107];let Re;e[108]!==Y||e[109]!==ye?(Re=(0,fr.jsx)("button",{type:"submit",disabled:Y,children:ye}),e[108]=Y,e[109]=ye,e[110]=Re):Re=e[110];let Ke;e[111]!==s||e[112]!==i.returnSource?(Ke=(0,fr.jsx)("button",{type:"button",onClick:s,children:i.returnSource}),e[111]=s,e[112]=i.returnSource,e[113]=Ke):Ke=e[113];let mt=!!r.busy||!r.ready||n.state!=="draft",dt;e[114]!==l||e[115]!==i.discard||e[116]!==mt?(dt=(0,fr.jsx)("button",{type:"button",onClick:l,disabled:mt,children:i.discard}),e[114]=l,e[115]=i.discard,e[116]=mt,e[117]=dt):dt=e[117];let Ae=!!r.busy,xt;e[118]!==c||e[119]!==i.reload||e[120]!==Ae?(xt=(0,fr.jsx)("button",{type:"button",onClick:c,disabled:Ae,children:i.reload}),e[118]=c,e[119]=i.reload,e[120]=Ae,e[121]=xt):xt=e[121];let Et;e[122]!==Re||e[123]!==Ke||e[124]!==dt||e[125]!==xt?(Et=(0,fr.jsxs)("div",{className:"acpmux-handoff-buttons",children:[Re,Ke,dt,xt]}),e[122]=Re,e[123]=Ke,e[124]=dt,e[125]=xt,e[126]=Et):Et=e[126];let jt;e[127]!==V||e[128]!==ie||e[129]!==le||e[130]!==Ne||e[131]!==xe||e[132]!==Ce||e[133]!==K||e[134]!==Et||e[135]!==B?(jt=(0,fr.jsxs)("form",{onSubmit:B,children:[V,ie,le,Ne,xe,Ce,K,Et]}),e[127]=V,e[128]=ie,e[129]=le,e[130]=Ne,e[131]=xe,e[132]=Ce,e[133]=K,e[134]=Et,e[135]=B,e[136]=jt):jt=e[136];let Bt;return e[137]!==i.review||e[138]!==jt||e[139]!==D||e[140]!==O?(Bt=(0,fr.jsxs)("section",{className:"acpmux-handoff-review","aria-label":N,children:[D,O,jt]}),e[137]=i.review,e[138]=jt,e[139]=D,e[140]=O,e[141]=Bt):Bt=e[141],Bt}function xot(t){return t.trim()}var ua=R(Q(),1);var B3={create:"git.checkpoint.create",get:"git.checkpoint.get",list:"git.checkpoint.list",pin:"git.checkpoint.pin",unpin:"git.checkpoint.unpin"};function Vu(t,e="error.invalid.checkpointResponse"){if(!t||typeof t!="object"||Array.isArray(t))throw new Error(ve(e));return t}function dl(t,e){if(typeof t!="string"||t.length===0)throw new Error(ve("error.invalid.checkpointField",{field:e}));return t}function ws(t,e){if(typeof t!="number"||!Number.isSafeInteger(t)||t<0)throw new Error(ve("error.invalid.checkpointField",{field:e}));return t}function Dwe(t){if(typeof t!="string"||!/^(?:0|[1-9]\d*)$/.test(t))throw new Error(ve("error.invalid.checkpointRevision"));return t}function Fwe(t){let e=Vu(t);return{max_bytes:ws(e.max_bytes,"limits"),max_files:ws(e.max_files,"limits"),max_untracked_file_bytes:ws(e.max_untracked_file_bytes,"limits")}}function Bwe(t){let e=Vu(t),n=Vu(e.base),r=Vu(e.coverage),i=Vu(e.included),o=Vu(e.bytes);if(typeof e.complete!="boolean"||e.expires_at!==null&&typeof e.expires_at!="string"||typeof n.detached!="boolean")throw new Error(ve("error.invalid.checkpointResponse"));if(n.head!==null&&typeof n.head!="string")throw new Error(ve("error.invalid.checkpointBase"));if(n.branch!==null&&typeof n.branch!="string")throw new Error(ve("error.invalid.checkpointBase"));if(!Array.isArray(e.skipped)||e.skipped.length>ws(e.skipped_total,"skipped_total"))throw new Error(ve("error.invalid.checkpointSkipAccounting"));let a=e.skipped.map(s=>{let l=Vu(s),c={path:dl(l.path,"skip"),code:dl(l.code,"skip")};return l.bytes!==void 0&&(c.bytes=ws(l.bytes,"skip bytes")),c});return{checkpoint_id:dl(e.checkpoint_id,"id"),repository_id:dl(e.repository_id,"repository"),worktree_id:dl(e.worktree_id,"worktree"),ref:dl(e.ref,"ref"),object_id:dl(e.object_id,"object"),revision:Dwe(e.revision),complete:e.complete,skipped:a,skipped_total:ws(e.skipped_total,"skipped_total"),created_at:dl(e.created_at,"created_at"),expires_at:e.expires_at,base:{head:n.head,branch:n.branch,detached:n.detached},coverage:{included:ws(r.included,"coverage"),omitted:ws(r.omitted,"coverage"),unavailable:ws(r.unavailable,"coverage")},included:{tracked:ws(i.tracked,"included"),untracked:ws(i.untracked,"included"),staged_entries:ws(i.staged_entries,"included")},bytes:{logical:ws(o.logical,"bytes"),newly_stored:ws(o.newly_stored,"bytes")},limits:Fwe(e.limits),pins:Array.isArray(e.pins)?e.pins.map(s=>{let l=Vu(s);return{pin_id:dl(l.pin_id,"pin"),reason:dl(l.reason,"pin")}}):(()=>{throw new Error(ve("error.invalid.checkpointPins"))})()}}function zwe(t){return!!t&&typeof t=="object"&&t.checkpoints===!0}function U8(t){return Bwe(t)}function qwe(t){let e=Vu(t);if(!Array.isArray(e.checkpoints)||e.next_cursor!==null&&typeof e.next_cursor!="string")throw new Error(ve("error.invalid.checkpointList"));let n={repository_id:dl(e.repository_id,"repository"),worktree_id:dl(e.worktree_id,"worktree"),checkpoints:e.checkpoints.map(Bwe),next_cursor:e.next_cursor,limits:Fwe(e.limits)};if(e.candidates!==void 0){if(!Array.isArray(e.candidates))throw new Error(ve("error.invalid.checkpointCandidates"));n.candidates=e.candidates.map(r=>{let i=Vu(r);if(typeof i.eligible!="boolean")throw new Error(ve("error.invalid.checkpointCandidate"));let o={path:dl(i.path,"candidate"),bytes:ws(i.bytes,"candidate bytes"),eligible:i.eligible};return i.reason!==void 0&&(o.reason=dl(i.reason,"candidate reason")),o})}return n}function lV(t){let e=Vu(t);if(typeof e.replayed!="boolean")throw new Error(ve("error.invalid.checkpointMutation"));return{result:e.result,revision:Dwe(e.revision),replayed:e.replayed}}var Zi=class extends Error{code;reason;details;retryable;origin;uncertain;constructor(e,n,r){let i=typeof e=="string"?{code:e,userMessage:n,details:void 0,retryable:void 0,origin:void 0}:e;super(typeof i.userMessage=="string"?i.userMessage:n??String(i.code??ve("error.requestFailed"))),this.name="CheckpointRpcError",this.code=typeof i.code=="string"?i.code:"operation.failed",this.reason=r??(i.details&&typeof i.details=="object"&&typeof i.details.reason=="string"?i.details.reason:void 0),this.details=i.details,this.retryable=typeof i.retryable=="boolean"?i.retryable:void 0,this.origin=i.origin==="native"||i.origin==="session_host"?i.origin:void 0,this.uncertain=this.code==="mutation.indeterminate"||(this.origin==="native"?this.code==="native.timed_out":this.origin===void 0)}};var cV="reconciliation_blocked",Hwe={async get(t){let e=globalThis.localStorage?.getItem(t);return e==null?void 0:JSON.parse(e)},async set(t,e){if(!globalThis.localStorage)throw new Zi({code:"native.invalid_request",origin:"native"});globalThis.localStorage.setItem(t,JSON.stringify(e))},async delete(t){globalThis.localStorage?.removeItem(t)}};function V8(t){return Array.isArray(t)?`[${t.map(V8).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([e],[n])=>e.localeCompare(n)).map(([e,n])=>`${JSON.stringify(e)}:${V8(n)}`).join(",")}}`:JSON.stringify(t)??"null"}function w5(t){if(t instanceof Zi)return t;if(t&&typeof t=="object"&&("code"in t||"origin"in t)){let e=t;return new Zi({code:e.code,userMessage:e.userMessage??e.message,details:e.details,retryable:e.retryable,origin:e.origin})}return new Zi({code:"operation.failed",userMessage:t instanceof Error?t.message:ve("error.requestFailed")})}var Gwe=new WeakSet;function uV(t){let e=w5(t);return Gwe.add(e),e}function z3(t){if(typeof t.cwd!="string"||t.cwd.length===0)throw new Zi("validation.invalid",ve("checkpoint.error.folderRequired"));return{cwd:t.cwd}}function wot(t){return w5(t).code==="resource.not_found"}var oR=class{state={supported:!1};request;persistence;key;capabilityReader;online=!0;generation=0;mutationActive=!1;capabilityGeneration=0;listeners=new Set;constructor(e,n=Hwe,r,i){this.request=e;let o="get"in n?void 0:n;this.persistence=o?.persistence??("get"in n?n:Hwe),this.key=r??o?.key??(()=>crypto.randomUUID()),this.capabilityReader=i??o?.capabilities??(async()=>({checkpoints:!1})),this.onChange=o?.onChange}onChange;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}getSnapshot(){return this.state}changed(){this.onChange?.();for(let e of this.listeners)e()}select(e){this.generation+=1,this.state={supported:this.state.supported,capabilities:this.state.capabilities,target:e},this.changed()}beginReview(){return this.mutationActive||this.state.busy?!1:(this.state={...this.state,record:void 0,list:void 0,error:void 0},this.changed(),!0)}async refreshCapabilities(){let e=++this.capabilityGeneration;try{let n=await this.capabilityReader();return e!==this.capabilityGeneration?this.state.supported:(this.state={...this.state,capabilities:n,supported:zwe(n),error:void 0},this.changed(),this.state.supported)}catch(n){return e!==this.capabilityGeneration?this.state.supported:(this.state={...this.state,supported:!1,error:w5(n)},this.changed(),!1)}}setOnline(e){e!==this.online&&(this.generation+=1),this.online=e,e||(this.capabilityGeneration++,this.state={...this.state,supported:!1}),this.changed()}requireReady(){if(!this.online)throw new Zi({code:"operation.failed",userMessage:ve("checkpoint.error.offline"),details:{reason:"offline"}},void 0,"offline");if(!this.state.supported)throw new Zi("operation.unsupported",ve("checkpoint.error.unsupported"));let e=this.state.target;if(!e)throw new Zi("validation.invalid",ve("checkpoint.error.noFolder"));if(e.hostKind==="cloud")throw new Zi({code:"operation.failed",userMessage:ve("checkpoint.error.cloud"),details:{reason:"cloud_unsupported"}},void 0,"cloud_unsupported");return z3(e),e}async call(e,n){try{return await this.request(e,n)}catch(r){let i=w5(r);throw i.code==="operation.unsupported"&&(this.state={...this.state,supported:!1,error:i},this.changed()),i}}async list(e={}){let n=this.requireReady(),r=this.generation;this.state={...this.state,busy:"listing",error:void 0},this.changed();try{let i=qwe(await this.call(B3.list,{...z3(n),...e}));return r===this.generation&&n.cwd===this.state.target?.cwd&&(this.state={...this.state,list:i}),i}catch(i){let o=w5(i);throw r===this.generation&&(this.state={...this.state,error:o}),o}finally{r===this.generation&&(this.state={...this.state,busy:void 0},this.changed())}}async get(e){if(e.checkpoint_id===void 0==(e.idempotency_key===void 0))throw new Zi("validation.invalid","Use exactly one checkpoint lookup.");let n=this.requireReady();return U8(await this.call(B3.get,{...z3(n),...e}))}mutationStorageKey(e){return`cmux.checkpoint.pending:${V8(e)}`}async mutationKey(e,n,r){let i=this.mutationStorageKey(n),o=await this.persistence.get(i);if(o&&typeof o=="object"&&typeof o.idempotency_key=="string"){let s=o;if(s.operation!==e||V8(s.body)!==V8(r))throw new Zi({code:"idempotency.conflict",origin:"native"});return{storageKey:i,record:s}}let a={idempotency_key:this.key(),attempted:!1,operation:e,body:r};return await this.persistence.set(i,a),{storageKey:i,record:a}}async recoverPending(){let e=this.requireReady(),n=this.generation,r=await this.persistence.get(this.mutationStorageKey(e));if(n!==this.generation||!r||typeof r!="object")return;let i=r;if(!(!i.body||typeof i.idempotency_key!="string"||!["create","pin","unpin"].includes(i.operation))){this.state={...this.state,pending:i,busy:"recovering",error:void 0},this.changed();try{let o=i.attempted?await this.reconcile(i.operation,e,i.body,i.idempotency_key,n):void 0;o&&(await this.persistence.delete(this.mutationStorageKey(e)),n===this.generation&&(this.state={...this.state,pending:void 0,record:o.result}))}catch(o){throw n===this.generation&&(this.state={...this.state,error:w5(o)}),o}finally{n===this.generation&&(this.state={...this.state,busy:void 0},this.changed())}}}async retry(){let e=this.state.pending;if(!e)throw new Zi({code:"validation.invalid",origin:"native"});return this.mutate(e.operation,e.body,e.operation==="create"?"creating":e.operation==="pin"?"pinning":"unpinning")}async reconcile(e,n,r,i,o){let a=()=>{if(o!==this.generation||!this.online)throw new Zi({code:"native.not_connected",userMessage:ve("checkpoint.error.paused"),details:{reason:cV},origin:"native"})};try{a();let s=e==="create"?{idempotency_key:i}:{checkpoint_id:String(r.checkpoint_id)};U8(await this.call(B3.get,{...z3(n),...s}))}catch(s){if(!wot(s))throw uV(s);if(o!==this.generation||!this.online)throw uV(new Zi({code:"native.not_connected",userMessage:ve("checkpoint.error.paused"),details:{reason:cV},origin:"native"}));return}if(e==="create"){a();try{let s=lV(await this.call(B3.create,{...z3(n),...r,idempotency_key:i}));return{...s,result:U8(s.result)}}catch(s){throw uV(s)}}}async mutate(e,n,r){let i=this.requireReady();if(this.mutationActive||this.state.busy)throw new Zi({code:"operation.failed",origin:"native",details:{reason:"repository_busy"}});this.mutationActive=!0;let o=this.generation;this.state={...this.state,busy:r,error:void 0},this.changed();let a;try{let s=await this.mutationKey(e,i,n);a=s.storageKey;let l=s.record;if(o!==this.generation||!this.online)throw new Zi({code:"native.not_connected",origin:"native"});if(this.state={...this.state,pending:l},l.attempted){let p=await this.reconcile(e,i,n,l.idempotency_key,o);if(p)return await this.persistence.delete(a),o===this.generation&&(this.state={...this.state,record:p.result,pending:void 0}),p}let c={...z3(i),...n,idempotency_key:l.idempotency_key};if(await this.persistence.set(a,{...l,attempted:!0}),o!==this.generation||!this.online)throw new Zi({code:"native.not_connected",origin:"native"});let u=lV(await this.call(B3[e],c)),d=U8(u.result);return await this.persistence.delete(a),o===this.generation&&(this.state={...this.state,record:d,pending:void 0}),{...u,result:d}}catch(s){let l=w5(s),c=l.uncertain||l.reason===cV||Gwe.has(l);throw!c&&a&&await this.persistence.delete(a),o===this.generation&&(this.state={...this.state,error:l,pending:c?this.state.pending:void 0}),l}finally{this.mutationActive=!1,o===this.generation&&(this.state={...this.state,busy:void 0},this.changed())}}async create(e={}){let n={...e};return n.include_untracked===void 0&&(n.include_untracked=[]),this.mutate("create",n,"creating")}async pin(e){return this.mutate("pin",e,"pinning")}async unpin(e){if(e.pin_id.startsWith("handoff:")||e.pin_id.startsWith("restore:"))throw new Zi({code:"operation.failed",userMessage:ve("checkpoint.error.managedPin"),details:{reason:"managed_pin"}},void 0,"managed_pin");return this.mutate("unpin",e,"unpinning")}};var Uwe=R(qe(),1),dV=R(Q(),1);var Tt=R(ee(),1);function Vwe(t){let e=(0,Uwe.c)(91),{list:n,record:r,busy:i,error:o,pending:a,strings:s,variant:l,onCreate:c,onRefresh:u,onCopy:d,onKeep:p,onRelease:m,onCancel:f,onRetry:h}=t,x=l===void 0?"compact":l,[g,y]=(0,dV.useState)(),[b,w]=(0,dV.useState)(!1),v,k;e[0]!==n||e[1]!==g?(v=n?.candidates??[],k=g&&g.list===n?g.paths:new Set(v.filter(Lot).map(Sot)),e[0]=n,e[1]=g,e[2]=v,e[3]=k):(v=e[2],k=e[3]);let _=k,L;e[4]!==n||e[5]!==_?(L=V=>{if(!n)return;let H=new Set(_);H.has(V)?H.delete(V):H.add(V),y({list:n,paths:H})},e[4]=n,e[5]=_,e[6]=L):L=e[6];let S=L,C;e[7]!==s.excluded||e[8]!==s.ignored||e[9]!==s.notSelected||e[10]!==s.tooLarge||e[11]!==s.unavailableFile?(C=V=>V==="ignored"?s.ignored:V==="not_selected"?s.notSelected:V==="excluded"||V==="credential_excluded"?s.excluded:V==="over_limit"||V==="too_large"||V==="file_too_large"?s.tooLarge:s.unavailableFile,e[7]=s.excluded,e[8]=s.ignored,e[9]=s.notSelected,e[10]=s.tooLarge,e[11]=s.unavailableFile,e[12]=C):C=e[12];let T=C,M=_ot,A;e[13]!==s.unavailable?(A=V=>{let H=new Date(V);return Number.isFinite(H.getTime())?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(H):s.unavailable},e[13]=s.unavailable,e[14]=A):A=e[14];let $=A,N,F,D,O,B;if(e[15]!==i||e[16]!==v||e[17]!==b||e[18]!==$||e[19]!==n||e[20]!==f||e[21]!==d||e[22]!==c||e[23]!==p||e[24]!==u||e[25]!==m||e[26]!==a||e[27]!==T||e[28]!==r||e[29]!==s.base||e[30]!==s.bytes||e[31]!==s.cancel||e[32]!==s.complete||e[33]!==s.copied||e[34]!==s.copyReference||e[35]!==s.create||e[36]!==s.created||e[37]!==s.emptyUntracked||e[38]!==s.expires||e[39]!==s.included||e[40]!==s.keep||e[41]!==s.manualRetention||e[42]!==s.noHead||e[43]!==s.omitted||e[44]!==s.partial||e[45]!==s.pinned||e[46]!==s.reference||e[47]!==s.refresh||e[48]!==s.release||e[49]!==s.retained||e[50]!==s.skipped||e[51]!==s.title||e[52]!==s.unavailable||e[53]!==s.untracked||e[54]!==_||e[55]!==S||e[56]!==x){let V=r?.pins??[],H=V.filter(Cot);F="acpmux-checkpoint-review",D=x,O=s.title;let ne;e[62]!==s.title?(ne=(0,Tt.jsx)("strong",{children:s.title}),e[62]=s.title,e[63]=ne):ne=e[63];let J;e[64]!==f||e[65]!==s.cancel?(J=(0,Tt.jsx)("button",{type:"button",onClick:f,children:s.cancel}),e[64]=f,e[65]=s.cancel,e[66]=J):J=e[66],e[67]!==ne||e[68]!==J?(B=(0,Tt.jsxs)("header",{children:[ne,J]}),e[67]=ne,e[68]=J,e[69]=B):B=e[69],N=r?(0,Tt.jsxs)("div",{className:"acpmux-checkpoint-receipt",children:[(0,Tt.jsx)("p",{className:"acpmux-checkpoint-fidelity","data-complete":r.complete,children:r.complete?s.complete:s.partial}),(0,Tt.jsxs)("dl",{className:"acpmux-checkpoint-facts",children:[(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:s.reference}),(0,Tt.jsx)("dd",{children:(0,Tt.jsx)("code",{children:r.ref})})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:s.base}),(0,Tt.jsx)("dd",{children:r.base.head?.slice(0,12)??s.noHead})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:s.created}),(0,Tt.jsx)("dd",{children:$(r.created_at)})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:s.included}),(0,Tt.jsx)("dd",{children:M(r.coverage.included)})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:s.omitted}),(0,Tt.jsx)("dd",{children:M(r.coverage.omitted)})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:s.unavailable}),(0,Tt.jsx)("dd",{children:M(r.coverage.unavailable)})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:s.bytes}),(0,Tt.jsx)("dd",{children:M(r.bytes.logical)})]}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("dt",{children:V.length?s.retained:s.expires}),(0,Tt.jsx)("dd",{children:V.length?s.pinned:r.expires_at?$(r.expires_at):s.unavailable})]})]}),r.skipped_total>0&&(0,Tt.jsxs)("details",{open:x==="expanded"||!r.complete,children:[(0,Tt.jsxs)("summary",{children:[s.skipped," \xB7 ",M(r.skipped_total)]}),(0,Tt.jsx)("ul",{children:r.skipped.map((W,ie)=>(0,Tt.jsxs)("li",{children:[(0,Tt.jsx)("code",{children:W.path}),(0,Tt.jsx)("span",{children:T(W.code)})]},`${W.path}:${ie}`))})]}),(0,Tt.jsxs)("div",{className:"acpmux-checkpoint-actions",children:[(0,Tt.jsx)("button",{type:"button",disabled:!!i,onClick:()=>{w(!1),d(r).then(()=>w(!0)).catch(kot)},children:b?s.copied:s.copyReference}),(0,Tt.jsx)("button",{type:"button",disabled:!!i||!!a||V.length>0,onClick:()=>p(r),children:s.keep}),H.map(W=>(0,Tt.jsx)("button",{type:"button",disabled:!!i||!!a,onClick:()=>m(r,W.pin_id),children:s.release},W.pin_id))]}),!V.length&&(0,Tt.jsx)("p",{className:"acpmux-checkpoint-hint",children:s.manualRetention})]}):(0,Tt.jsxs)("form",{onSubmit:W=>{W.preventDefault(),n&&!i&&!a&&c([..._])},children:[(0,Tt.jsxs)("fieldset",{disabled:!!i||!!a||!n,children:[(0,Tt.jsx)("legend",{children:s.untracked}),n&&!v.some(vot)&&(0,Tt.jsx)("p",{children:s.emptyUntracked}),(0,Tt.jsx)("ul",{className:"acpmux-checkpoint-candidates",children:v.map(W=>(0,Tt.jsxs)("li",{children:[(0,Tt.jsxs)("label",{children:[(0,Tt.jsx)("input",{type:"checkbox","aria-label":W.path,checked:W.eligible&&_.has(W.path),disabled:!W.eligible,onChange:()=>S(W.path)}),(0,Tt.jsx)("code",{children:W.path})]}),(0,Tt.jsx)("span",{children:W.eligible?M(W.bytes):T(W.reason)})]},W.path))})]}),(0,Tt.jsxs)("div",{className:"acpmux-checkpoint-actions",children:[(0,Tt.jsx)("button",{type:"submit",disabled:!!i||!!a||!n,children:s.create}),(0,Tt.jsx)("button",{type:"button",disabled:!!i||!!a,onClick:u,children:s.refresh})]})]}),e[15]=i,e[16]=v,e[17]=b,e[18]=$,e[19]=n,e[20]=f,e[21]=d,e[22]=c,e[23]=p,e[24]=u,e[25]=m,e[26]=a,e[27]=T,e[28]=r,e[29]=s.base,e[30]=s.bytes,e[31]=s.cancel,e[32]=s.complete,e[33]=s.copied,e[34]=s.copyReference,e[35]=s.create,e[36]=s.created,e[37]=s.emptyUntracked,e[38]=s.expires,e[39]=s.included,e[40]=s.keep,e[41]=s.manualRetention,e[42]=s.noHead,e[43]=s.omitted,e[44]=s.partial,e[45]=s.pinned,e[46]=s.reference,e[47]=s.refresh,e[48]=s.release,e[49]=s.retained,e[50]=s.skipped,e[51]=s.title,e[52]=s.unavailable,e[53]=s.untracked,e[54]=_,e[55]=S,e[56]=x,e[57]=N,e[58]=F,e[59]=D,e[60]=O,e[61]=B}else N=e[57],F=e[58],D=e[59],O=e[60],B=e[61];let P;e[70]!==i||e[71]!==s.creating||e[72]!==s.loading||e[73]!==s.recovering?(P=i&&(0,Tt.jsx)("output",{children:i==="creating"?s.creating:i==="recovering"?s.recovering:s.loading}),e[70]=i,e[71]=s.creating,e[72]=s.loading,e[73]=s.recovering,e[74]=P):P=e[74];let U;e[75]!==i||e[76]!==h||e[77]!==a||e[78]!==s.retry?(U=a&&!i&&h&&(0,Tt.jsx)("button",{type:"button",onClick:h,children:s.retry}),e[75]=i,e[76]=h,e[77]=a,e[78]=s.retry,e[79]=U):U=e[79];let G;e[80]!==o?(G=o&&(0,Tt.jsx)("p",{role:"alert",children:o}),e[80]=o,e[81]=G):G=e[81];let j;return e[82]!==N||e[83]!==P||e[84]!==U||e[85]!==G||e[86]!==F||e[87]!==D||e[88]!==O||e[89]!==B?(j=(0,Tt.jsxs)("section",{className:F,"data-variant":D,"aria-label":O,children:[B,N,P,U,G]}),e[82]=N,e[83]=P,e[84]=U,e[85]=G,e[86]=F,e[87]=D,e[88]=O,e[89]=B,e[90]=j):j=e[90],j}function vot(t){return t.eligible}function kot(){}function Cot(t){return!t.pin_id.startsWith("handoff:")&&!t.pin_id.startsWith("restore:")}function _ot(t){return new Intl.NumberFormat().format(t)}function Sot(t){return t.path}function Lot(t){return t.eligible}var Wwe=R(ee(),1);function Zwe({request:t,target:e,online:n,strings:r,options:i,variant:o="compact"}){let[a]=(0,ua.useState)(()=>new oR(t,{...i,capabilities:i?.capabilities??(()=>t("git.capabilities",{}))})),s=(0,ua.useCallback)(S=>a.subscribe(S),[a]),l=(0,ua.useCallback)(()=>a.getSnapshot(),[a]),c=(0,ua.useSyncExternalStore)(s,l),[u,d]=(0,ua.useState)(!1),[p,m]=(0,ua.useState)(!1),f=e?.cwd,h=e?.sessionId,x=e?.hostKind,g=(0,ua.useMemo)(()=>f?{cwd:f,sessionId:h,hostKind:x}:void 0,[f,h,x]);(0,ua.useEffect)(()=>{a.select(g),d(!1),m(!1)},[a,g]),(0,ua.useEffect)(()=>{a.setOnline(n),n&&a.refreshCapabilities()},[a,n]);let y=c.supported&&n&&!!g?.cwd&&g.hostKind!=="cloud",b=(0,ua.useRef)(y);b.current=y;let w=S=>{S.catch(()=>{})},v=(0,ua.useCallback)(()=>{!b.current||!a.beginReview()||(d(!0),m(!1),w((async()=>{await a.recoverPending(),!a.getSnapshot().pending&&!a.getSnapshot().record&&await a.list({include_candidates:!0})})()))},[a]),k=c.error,_=p?r.failed:n?k?.reason==="repository_changed"?r.changed:k?.code==="operation.unsupported"?r.unsupported:k?(k.origin==="session_host"||k.origin==="native")&&k.message!==k.code?k.message:r.failed:void 0:r.offline,L=u&&(y||!n)?(0,Wwe.jsx)(Vwe,{list:c.list,record:c.record,busy:n?c.busy:"offline",pending:!!c.pending,error:_,strings:r,variant:o,onCancel:()=>d(!1),onRefresh:()=>w(a.list({include_candidates:!0})),onRetry:()=>w(a.retry()),onCreate:S=>{c.list&&w(a.create({include_untracked:S,expected_repository_id:c.list.repository_id,expected_worktree_id:c.list.worktree_id,reason:"manual"}))},onKeep:S=>w(a.pin({checkpoint_id:S.checkpoint_id,pin_id:`user:${crypto.randomUUID()}`,reason:"manual"})),onRelease:(S,C)=>w(a.unpin({checkpoint_id:S.checkpoint_id,pin_id:C})),onCopy:async S=>{m(!1);try{await navigator.clipboard.writeText(S.ref)}catch(C){throw m(!0),C}}},`${g?.sessionId??""}:${g?.cwd??""}:${c.record?.checkpoint_id??"draft"}`):null;return{supported:y,show:v,review:L,open:!!L}}var Ywe=R(qe(),1),tp=R(Q(),1);var Bn=R(ee(),1),Kwe={allow_once:"permission.allowOnce",allow_chat:"permission.allowChat",deny:"permission.deny"};function Xwe(t){let e=(0,Ywe.c)(10),{group:n,expandSignal:r}=t,i=we(),o=(0,tp.useRef)(null),a,s;e[0]!==r?(a=()=>{r!==0&&o.current?.querySelectorAll("details").forEach(Eot)},s=[r],e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]),(0,tp.useEffect)(a,s);let l;if(e[3]!==n.items||e[4]!==i){let u;e[6]!==i?(u=d=>{let p=d.request.toolCall,m=p&&typeof p=="object"&&!Array.isArray(p)?p:void 0;return(0,Bn.jsxs)("details",{children:[(0,Bn.jsxs)("summary",{children:[(0,Bn.jsx)("span",{children:typeof m?.title=="string"?m.title:i("permission.toolRequest")}),(0,Bn.jsx)("span",{className:"acpmux-permission-item-kind",children:typeof m?.kind=="string"?m.kind:""}),d.state!=="pending"&&(0,Bn.jsx)("span",{children:i(d.state==="cancelled"?"permission.itemCancelled":"permission.itemResolved")})]}),Array.isArray(m?.locations)&&(0,Bn.jsx)("ul",{children:m.locations.map(Mot)}),m?.rawInput!==void 0&&(0,Bn.jsx)("pre",{children:typeof m.rawInput=="string"?m.rawInput:JSON.stringify(m.rawInput,null,2)}),m?.content!==void 0&&(0,Bn.jsx)("pre",{children:JSON.stringify(m.content,null,2)}),m?.rawInput===void 0&&m?.content===void 0&&(0,Bn.jsx)("p",{children:i("permission.noInput")})]},d.permissionId)},e[6]=i,e[7]=u):u=e[7],l=n.items.map(u),e[3]=n.items,e[4]=i,e[5]=l}else l=e[5];let c;return e[8]!==l?(c=(0,Bn.jsx)("div",{className:"acpmux-permission-items",ref:o,children:l}),e[8]=l,e[9]=c):c=e[9],c}function Mot(t,e){let n=t&&typeof t=="object"?t.path:void 0;return typeof n=="string"?(0,Bn.jsx)("li",{children:n},e):null}function Eot(t){t.open=!0}function Qwe({state:t,onRespond:e,onRetry:n,onRevoke:r,onRefresh:i}){let o=we(),a={allow_once:Ga(ll.permissionAllowOnce),allow_chat:Ga(ll.permissionAllowChat),deny:Ga(ll.permissionDeny)},s=Ga(ll.permissionRetry),l=Ga(ll.permissionRevoke),c=Ga(ll.permissionRefresh),u=Ga(ll.permissionExpand),[d,p]=(0,tp.useState)(0),m=(0,tp.useRef)([]),f=(0,tp.useRef)(t);f.current=t,m.current=t.groups.filter(b=>b.state==="pending"||b.state==="collecting");let h=(0,tp.useRef)({onRespond:e,onRetry:n,onRevoke:r,onRefresh:i});if(h.current={onRespond:e,onRetry:n,onRevoke:r,onRefresh:i},(0,tp.useEffect)(()=>{let b=new Map([["permissionAllowOnce",()=>w("allow_once")],["permissionAllowChat",()=>w("allow_chat")],["permissionDeny",()=>w("deny")],["permissionRetry",v],["permissionRevoke",k],["permissionRefresh",_],["permissionExpand",()=>p(L=>L+1)]]);function w(L){let S=f.current;if(!S.supported||S.busy||S.loading||S.ready===!1||S.uncertain)return;let C=m.current.find(T=>T.state==="pending"&&T.decisions.includes(L));C&&h.current.onRespond(C.groupId,C.revision,L)}function v(){let L=f.current;L.supported&&L.uncertain&&!L.busy&&!L.loading&&h.current.onRetry()}function k(){let L=f.current;L.supported&&L.chatAllowance&&!L.busy&&!L.loading&&!L.uncertain&&h.current.onRevoke()}function _(){let L=f.current;L.supported&&L.error&&!L.busy&&!L.loading&&h.current.onRefresh()}for(let[L,S]of b)window.addEventListener(`cmux-acpmux-${L}`,S);return()=>{for(let[L,S]of b)window.removeEventListener(`cmux-acpmux-${L}`,S)}},[]),!t.supported)return null;let x=t.groups.filter(b=>b.state==="pending"||b.state==="collecting"),g=x.length===0?t.groups.at(-1):void 0;if(!x.length&&!g&&!t.chatAllowance&&!t.error)return null;let y=t.busy||t.loading||t.ready===!1||!!t.uncertain;return(0,Bn.jsxs)("section",{className:"acpmux-permission acpmux-permission-panel","aria-label":o("permission.title"),"aria-busy":t.busy,children:[(0,Bn.jsx)("div",{className:"acpmux-permission-coverage",title:o("permission.coverageDetail"),children:o("permission.coverage")}),t.chatAllowance&&(0,Bn.jsxs)("div",{className:"acpmux-permission-allowance",children:[(0,Bn.jsx)("span",{children:o("permission.chatAllowed")}),(0,Bn.jsx)("button",{disabled:y,onClick:r,children:lu(o("permission.revoke"),l)})]}),x.map(b=>(0,Bn.jsxs)("div",{className:"acpmux-permission-card",children:[(0,Bn.jsx)("strong",{children:o("permission.title")}),(0,Bn.jsx)("p",{className:"acpmux-permission-scope",children:o(b.items.length===1?"permission.count.one":"permission.count.other",{n:b.items.length})}),b.state==="pending"&&(0,Bn.jsx)("button",{type:"button",onClick:()=>p(w=>w+1),children:lu(o("permission.expand"),u)}),(0,Bn.jsx)(Xwe,{group:b,expandSignal:d}),b.state==="collecting"?(0,Bn.jsx)("output",{children:o("permission.collecting")}):(0,Bn.jsxs)(Bn.Fragment,{children:[b.decisions.includes("allow_chat")&&(0,Bn.jsx)("p",{className:"acpmux-permission-scope",children:o("permission.chatScope")}),!b.decisions.includes("allow_once")&&(0,Bn.jsx)("p",{className:"acpmux-permission-scope",children:o("permission.denyOnly")}),(0,Bn.jsx)("div",{className:"acpmux-permission-buttons",children:b.decisions.map(w=>(0,Bn.jsx)("button",{className:w==="deny"?"acpmux-permission-deny":void 0,disabled:y,onClick:()=>e(b.groupId,b.revision,w),children:lu(o(Kwe[w]),a[w])},w))})]})]},b.groupId)),g&&(0,Bn.jsxs)("details",{className:"acpmux-permission-receipt",children:[(0,Bn.jsx)("summary",{children:g.state==="cancelled"?o("permission.cancelled"):g.decision?o(Kwe[g.decision]):o("permission.answered")}),(0,Bn.jsx)(Xwe,{group:g,expandSignal:d})]}),t.error&&(0,Bn.jsxs)("div",{className:"acpmux-permission-error",role:"alert",children:[(0,Bn.jsx)("span",{children:t.error}),(0,Bn.jsx)("button",{disabled:t.busy||t.loading,onClick:t.uncertain?n:i,children:lu(t.uncertain?o("permission.checkRetry"):o("permission.refresh"),t.uncertain?s:c)})]})]})}var Tot={title:"checkpoint.title",createCheckpoint:"checkpoint.createCheckpoint",create:"checkpoint.create",cancel:"checkpoint.cancel",refresh:"checkpoint.refresh",loading:"checkpoint.loading",creating:"checkpoint.creating",untracked:"checkpoint.untracked",emptyUntracked:"checkpoint.emptyUntracked",included:"checkpoint.included",omitted:"checkpoint.omitted",unavailable:"checkpoint.unavailable",reference:"checkpoint.reference",base:"checkpoint.base",created:"checkpoint.created",expires:"checkpoint.expires",pinned:"checkpoint.pinned",complete:"checkpoint.complete",partial:"checkpoint.partial",skipped:"checkpoint.skipped",copyReference:"checkpoint.copyReference",copied:"checkpoint.copied",keep:"checkpoint.keep",release:"checkpoint.release",manualRetention:"checkpoint.manualRetention",failed:"checkpoint.failed",retry:"checkpoint.retry",recovering:"checkpoint.recovering",ignored:"checkpoint.ignored",excluded:"checkpoint.excluded",tooLarge:"checkpoint.tooLarge",notSelected:"checkpoint.notSelected",unavailableFile:"checkpoint.unavailableFile",bytes:"checkpoint.bytes",retained:"checkpoint.retained",offline:"checkpoint.offline",changed:"checkpoint.changed",unsupported:"checkpoint.unsupported",noHead:"checkpoint.noHead"};function Jwe(t=ve){return Object.fromEntries(Object.entries(Tot).map(([e,n])=>[e,t(n)]))}var aR=R(Q(),1);function eve(t){return t==="quick"?"quick":"pane"}var pV={dismiss:"quick.dismiss",openInWindow:"quick.openInWindow"};function tve(t,e){let n=(0,aR.useRef)(e);n.current=e,(0,aR.useEffect)(()=>{if(!t)return;let r=i=>{i.key!=="Escape"||i.defaultPrevented||i.isComposing||i.keyCode===229||i.shiftKey||i.altKey||i.metaKey||i.ctrlKey||queueMicrotask(()=>{i.defaultPrevented||(i.preventDefault(),n.current())})};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}var ove=R(qe(),1);var nve=R(qe(),1),rve=R(Q(),1);var v5=R(ee(),1);function ive(){let t=(0,nve.c)(23),e=we(),n;t[0]!==e?(n=e("quick.send"),t[0]=e,t[1]=n):n=t[1];let r;t[2]!==n?(r=["\u21A9",n],t[2]=n,t[3]=r):r=t[3];let i;t[4]!==e?(i=e("quick.openInWindow"),t[4]=e,t[5]=i):i=t[5];let o;t[6]!==i?(o=["\u2318\u21A9",i],t[6]=i,t[7]=o):o=t[7];let a;t[8]!==e?(a=e("quick.close"),t[8]=e,t[9]=a):a=t[9];let s;t[10]!==a?(s=["esc",a],t[10]=a,t[11]=s):s=t[11];let l;t[12]!==r||t[13]!==o||t[14]!==s?(l=[r,o,s],t[12]=r,t[13]=o,t[14]=s,t[15]=l):l=t[15];let c=l,u;t[16]!==e?(u=e("quick.keys"),t[16]=e,t[17]=u):u=t[17];let d;t[18]!==c?(d=c.map(Rot),t[18]=c,t[19]=d):d=t[19];let p;return t[20]!==u||t[21]!==d?(p=(0,v5.jsx)("footer",{className:"acpmux-quick-keys","aria-label":u,children:d}),t[20]=u,t[21]=d,t[22]=p):p=t[22],p}function Rot(t,e){let[n,r]=t;return(0,v5.jsxs)(rve.default.Fragment,{children:[e>0&&(0,v5.jsx)("span",{className:"acpmux-quick-keys-dot","aria-hidden":"true",children:"\xB7"}),(0,v5.jsxs)("span",{className:"acpmux-quick-key",children:[(0,v5.jsx)(u3,{children:n}),r]})]},n)}var Z8=R(ee(),1);function ave(t){let e=(0,ove.c)(8),{transcript:n,asks:r,composer:i}=t,o=n?"":void 0,a;e[0]!==n?(a=n&&(0,Z8.jsx)("div",{className:"acpmux-quick-thread",children:n}),e[0]=n,e[1]=a):a=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,Z8.jsx)(ive,{}),e[2]=s):s=e[2];let l;return e[3]!==r||e[4]!==i||e[5]!==o||e[6]!==a?(l=(0,Z8.jsxs)("div",{className:"acpmux-quick","data-has-transcript":o,children:[a,r,i,s]}),e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l):l=e[7],l}var sve=R(qe(),1);var W8=R(ee(),1);function lve(t){let e=(0,sve.c)(15),{row:n}=t,r=we();if(!n.failed)return null;let i;e[0]!==n.error||e[1]!==r?(i=n.error??r("prompt.notSentGesture"),e[0]=n.error,e[1]=r,e[2]=i):i=e[2];let o;e[3]!==i?(o=(0,W8.jsx)("span",{children:i}),e[3]=i,e[4]=o):o=e[4];let a;e[5]!==n.id?(a=()=>{window.cmuxAcpmuxActions?.["chat.retryPrompt"]?.({rowId:n.id})},e[5]=n.id,e[6]=a):a=e[6];let s;e[7]!==r?(s=r("turn.retry"),e[7]=r,e[8]=s):s=e[8];let l;e[9]!==a||e[10]!==s?(l=(0,W8.jsx)("button",{type:"button",className:"cv-user__cancel",onClick:a,children:s}),e[9]=a,e[10]=s,e[11]=l):l=e[11];let c;return e[12]!==o||e[13]!==l?(c=(0,W8.jsxs)("div",{className:"cv-user__status cv-user__status--failed","aria-live":"polite",children:[o,l]}),e[12]=o,e[13]=l,e[14]=c):c=e[14],c}var rt=R(ee(),1);function hV(){return{type:"snapshot",protocolVersion:1,rows:[],sessions:[],connection:"connecting",isWorking:!1,queue:[],catalog:[],canLoadOlder:!1}}function Aot(){try{let t=JSON.parse(sessionStorage.getItem("cmux.acpmux.snapshot")??"null");if(t?.type==="snapshot"&&Array.isArray(t.rows)&&Array.isArray(t.sessions))return Mn.markAgent("snapshotPaint"),{...hV(),...t,connection:"connecting"}}catch{}return hV()}function Nt(t,e={}){let n=window.cmuxAcpmuxActions?.[t];return n?n(e):Nc(t,e)}var uve=t=>{Nt(pV.openInWindow,{sessionId:t}).catch(()=>{})},$ot={get:t=>Nt("acp.trust.get",{cwd:t}),set:(t,e)=>Nt("acp.trust.set",{cwd:t,level:e})},Iot={diff:t=>Nt("git.diff",{scope:t,include_patch:!0}),status:()=>Nt("git.status",{})},Not=(t,e)=>Nt("git.checkpoint.diff",{from:t,to:e,include_patch:!0}),Pot=(t,e)=>Nt("file.open",{path:t,where:e}),dve=(0,fe.memo)(function(e){let n=(0,pl.c)(15),{row:r}=e,i=we();if(r.kind==="user"){let l=r.text??"",c;n[0]!==l?(c=(0,rt.jsx)("div",{className:"cv-user__bubble selectable",children:l}),n[0]=l,n[1]=c):c=n[1];let u;n[2]!==r?(u=(0,rt.jsx)(lve,{row:r}),n[2]=r,n[3]=u):u=n[3];let d;n[4]!==r.queued||n[5]!==r.status||n[6]!==i?(d=r.status&&(0,rt.jsxs)("div",{className:"cv-user__status",children:[(0,rt.jsx)("span",{children:r.status}),r.queued&&(0,rt.jsx)("button",{type:"button",className:"cv-user__cancel",onClick:()=>{window.cmuxAcpmuxActions?.["chat.harness.cancelPrompt"]?.({promptId:r.queued})},children:i("switch.cancelPrompt")})]}),n[4]=r.queued,n[5]=r.status,n[6]=i,n[7]=d):d=n[7];let p;return n[8]!==c||n[9]!==u||n[10]!==d?(p=(0,rt.jsxs)("div",{className:"cv-user",children:[c,u,d]}),n[8]=c,n[9]=u,n[10]=d,n[11]=p):p=n[11],p}let o=r.text??"",a=r.streaming===!0,s;return n[12]!==o||n[13]!==a?(s=(0,rt.jsx)(o9e,{text:o,streaming:a}),n[12]=o,n[13]=a,n[14]=s):s=n[14],s},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),jot=(0,fe.memo)(function(e){let n=(0,pl.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)(QT,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),Oot=(0,fe.memo)(function(e){let n=(0,pl.c)(7),{row:r,onToggleActivity:i,expanded:o}=e,a;n[0]!==i||n[1]!==r.id?(a=()=>i(r.id),n[0]=i,n[1]=r.id,n[2]=a):a=n[2];let s;return n[3]!==o||n[4]!==r||n[5]!==a?(s=(0,rt.jsx)(A9e,{row:r,expanded:o,onToggle:a}),n[3]=o,n[4]=r,n[5]=a,n[6]=s):s=n[6],s},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version&&t.expanded===e.expanded&&t.onToggleActivity===e.onToggleActivity),Dot=(0,fe.memo)(function(e){let n=(0,pl.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)(iwe,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.at===e.row.at),Fot=(0,fe.memo)(function(e){let n=(0,pl.c)(1),r;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,rt.jsx)(wwe,{}),n[0]=r):r=n[0],r},(t,e)=>t.row.id===e.row.id),Bot=(0,fe.memo)(function(e){let n=(0,pl.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)(kwe,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version&&t.row.durationMs===e.row.durationMs),zot=t=>{Nt("browser.open",{url:t}).catch(()=>{})},qot=(0,fe.memo)(function(e){let n=(0,pl.c)(2),{row:r}=e,i;return n[0]!==r.text?(i=r.text?(0,rt.jsx)(nwe,{url:r.text,onOpen:zot}):null,n[0]=r.text,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.text===e.row.text),Hot=(0,fe.memo)(function(e){let n=(0,pl.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)($9e,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),sR=(0,fe.memo)(function(e){let n=(0,pl.c)(2),{row:r}=e,i;return n[0]!==r.text?(i=(0,rt.jsx)("div",{className:"acpmux-muted",children:r.text}),n[0]=r.text,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),Got=(0,fe.memo)(function(e){let n=(0,pl.c)(9),{row:r}=e,i=we(),o=r.permission;if(!o){let l;n[0]!==i?(l=i("permission.required"),n[0]=i,n[1]=l):l=n[1];let c;return n[2]!==l?(c=(0,rt.jsx)("div",{className:"acpmux-permission-card",children:(0,rt.jsx)("strong",{children:l})}),n[2]=l,n[3]=c):c=n[3],c}let a;n[4]!==o?(a=mve(o),n[4]=o,n[5]=a):a=n[5];let s;return n[6]!==o||n[7]!==a?(s=(0,rt.jsx)(MG,{permission:o,onAnswer:a}),n[6]=o,n[7]=a,n[8]=s):s=n[8],s},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),Uot=(0,fe.memo)(function(e){let n=(0,pl.c)(3),{row:r,onOpenDiff:i}=e,o;return n[0]!==i||n[1]!==r?(o=(0,rt.jsx)(X9e,{row:r,onOpenDiff:i}),n[0]=i,n[1]=r,n[2]=o):o=n[2],o},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version&&t.onOpenDiff===e.onOpenDiff),bV={user:dve,assistant:dve,activity:jot,[zf]:Oot,[Ab]:Dot,[$b]:Fot,[Ib]:Bot,[Nb]:qot,editedFiles:Uot,turnSummary:Hot,notice:sR,plan:sR,typing:sR,permission:Got,[FF]:Rwe,[zF]:Lwe};function Vot(t,e){!t||typeof t.animate!="function"||window.matchMedia?.("(prefers-reduced-motion: reduce)").matches||t.animate([{transform:`translateY(${e}px)`},{transform:"translateY(0px)"}],{duration:Zot,easing:"cubic-bezier(0.2, 0, 0, 1)",composite:"add"})}var Zot=180;function Wot(t,e){for(let[n,r]of e){let i=t.get(n);if(!i||i.version!==r.version||i.width!==r.width||Math.abs(i.height-r.height)>=.5)return!0}return!1}function Kot({row:t,kind:e,index:n,setSize:r,top:i,rowWidth:o,expanded:a,observer:s,report:l,enter:c,onEntered:u,children:d}){let p=we(),m=(0,fe.useRef)(null),[f]=(0,fe.useState)(c);return(0,fe.useLayoutEffect)(()=>{f&&u(t.id)},[]),(0,fe.useLayoutEffect)(()=>{let h=m.current;if(!(!h||!s))return s.observe(h),()=>s.unobserve(h)},[s]),(0,fe.useLayoutEffect)(()=>{let h=m.current;h&&l(t.id,t.version,h.getBoundingClientRect().height)},[t.id,t.version,o,a,l]),(0,rt.jsx)("article",{ref:m,"data-row-id":t.id,className:`acpmux-row acpmux-${e}${f?" acpmux-row--enter":""}`,"aria-label":Xot(e,p),"aria-posinset":n+1,"aria-setsize":r,style:{transform:`translateY(${i}px)`},children:d})}var Xot=(t,e)=>t==="user"?e("transcript.you"):t==="assistant"?e("transcript.agent"):void 0,gV=t=>t.kind==="activity"&&!Pb(t)&&t.items?.some(e=>e.tool?.kind==="edit"||e.tool?.kind==="fileChange")?"editedFiles":t.kind,mV=()=>({...bV,...window.cmuxAcpmuxRegistry}),pve=(t,e)=>({top:t.scrollTop,atLatest:t.scrollTop>=e-t.clientHeight-1}),Yot=2,Qot=3,Jot=4;function eat({rows:t,onToggleActivity:e,onOpenDiff:n,expanded:r,registry:i=bV,canLoadOlder:o=!1}){let a=we(),s=Mn.enabled?performance.now():0,[l,c]=(0,fe.useState)({top:0,delta:0}),[u,d]=(0,fe.useState)(600),p=(0,fe.useRef)(null),[m,f]=(0,fe.useState)(760),[h,x]=(0,fe.useState)(new Map),g=(0,fe.useRef)(new Map),y=(0,fe.useRef)(h);y.current=h;let b=(0,fe.useRef)(k2(m));b.current=k2(m);let w=(0,fe.useRef)(t);w.current=t;let v=(0,fe.useRef)(null),k=(0,fe.useRef)(new Set);if(v.current===null)v.current=new Set(t.map(J=>J.id));else{let J=t.filter(W=>!v.current.has(W.id));for(let W of J)v.current.add(W.id);if(J.length<=Qot)for(let W of J)k.current.add(W.id)}let _=(0,fe.useCallback)(J=>{k.current.delete(J)},[]),L=(0,fe.useCallback)((J,W,ie)=>{ie>0&&g.current.set(J,{version:W,width:b.current,height:ie})},[]),S=(0,fe.useCallback)(()=>{if(!g.current.size)return;let J=g.current;g.current=new Map,x(W=>{let ie;for(let[Z,ce]of J){let se=W.get(Z);se&&se.version===ce.version&&se.width===ce.width&&Math.abs(se.height-ce.height)<.5||(ie??=new Map(W),ie.set(Z,ce))}return ie??W})},[]),C=(0,fe.useMemo)(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver(J=>{for(let W of J??[]){let ie=W.target,Z=w.current[Number(ie.getAttribute("aria-posinset"))-1];Z&&Z.id===ie.dataset.rowId&&L(Z.id,Z.version,ie.getBoundingClientRect().height)}Wot(y.current,g.current)?(0,fV.flushSync)(S):g.current=new Map}),[L,S]);(0,fe.useEffect)(()=>()=>C?.disconnect(),[C]),(0,fe.useEffect)(()=>{let J=M.current;if(J.size<=t.length&&h.size<=t.length)return;let W=new Set(t.map(ie=>ie.id));for(let ie of J.keys())W.has(ie)||J.delete(ie);x(ie=>[...ie.keys()].every(Z=>W.has(Z))?ie:new Map([...ie].filter(([Z])=>W.has(Z))))},[t,h]),(0,fe.useLayoutEffect)(S);let T=(0,fe.useRef)(!1),M=(0,fe.useRef)(new Map);(0,fe.useEffect)(()=>{let J=p.current;if(!J)return;let W=new ResizeObserver(()=>{d(J.clientHeight),f(J.clientWidth)});return W.observe(J),f(J.clientWidth),()=>W.disconnect()},[]);let A=(0,fe.useRef)(null),$=(0,fe.useRef)(t),N=(0,fe.useRef)(null);(0,fe.useEffect)(()=>{let J=p.current;if(!J)return;let W=()=>{for(let Z of N.current?.getAnimations?.()??[])Z.finish()},ie=["wheel","touchstart","keydown"];for(let Z of ie)J.addEventListener(Z,W,{passive:!0});return()=>{for(let Z of ie)J.removeEventListener(Z,W)}},[]);let F=(0,fe.useRef)({top:0,atLatest:!1}),D=(0,fe.useMemo)(()=>{let J=Mn.enabled?performance.now():0;return{layout:use(t,k2(m),M.current,(ie,Z)=>i[gV(ie)]?.measure?.(ie,Z)),ms:Mn.enabled?performance.now()-J:0}},[t,m,i]),O=(0,fe.useMemo)(()=>{let J=Mn.enabled?performance.now():0,W=k2(m);return{layout:h.size===0?D.layout:dse(D.layout,Z=>{let ce=h.get(t[Z].id);return ce&&ce.version===t[Z].version&&ce.width===W?ce.height:void 0}),ms:Mn.enabled?performance.now()-J:0}},[D,h,t,m]),B=O.layout,P=(0,fe.useRef)(null),U=(0,fe.useRef)(null),G=Math.min(Math.abs(l.delta)*Yot,u*Jot),j=LO(B,l.delta<0?l.top-G:l.top,u+G);(0,fe.useLayoutEffect)(()=>{let J=j.last-1;Mn.mountedTop=j.last>j.first?B.tops[j.first]:0,Mn.mountedBottom=j.last>j.first?B.tops[J]+B.heights[J]:0;let W=P.current!==O;P.current=O;let ie=U.current!==D;U.current=D;let Z=(W?O.ms:0)+(ie?D.ms:0);if(Mn.enabled&&W&&Mn.addLayout(Z),Mn.enabled&&s>0){let ce=performance.now();Mn.commit(ce-s,Z,Mn.mountedTop,Mn.mountedBottom,ce)}}),(0,fe.useLayoutEffect)(()=>{let J=A.current,W=$.current,ie=p.current;if(J&&ie){let Z=ie.scrollTop,ce=Z<F.current.top-.5&&Z>=ie.scrollHeight-ie.clientHeight-.5,se=Math.abs(Z-F.current.top)<=.5,be=ce?F.current.top:Z,le=ce||se?F.current.atLatest:be>=J.totalHeight-ie.clientHeight-1;if(be>0&&T.current&&le){let ge=Math.max(0,B.totalHeight-ie.clientHeight),ke=ge-ie.scrollTop;Math.abs(ke)>.5&&(ie.scrollTop=ge),ke>.5&&ke<ie.clientHeight&&Vot(N.current,ke)}else if(be>0){let ge=LO(J,be,0,0).first,ke=W[ge]?.id,me=t[ge]?.id===ke?ge:t.findIndex(Se=>Se.id===ke);if(me>=0){let Se=B.tops[me]-J.tops[ge];(ce||Math.abs(Se)>.5)&&(ie.scrollTop=be+Se)}}}if(!T.current&&ie&&B.totalHeight>ie.clientHeight){let Z=Math.max(0,B.totalHeight-ie.clientHeight);ie.scrollTop=Z,c({top:Z,delta:0}),T.current=!0}A.current=B,$.current=t,ie&&(F.current=pve(ie,B.totalHeight))},[B,t,j.first,u]);let V=(0,fe.useMemo)(()=>new CL,[]),H=(0,fe.useMemo)(()=>new kL(J=>{fme(J,Nt,V)}),[V]);(0,fe.useEffect)(()=>()=>H.stop(),[H]);let ne=J=>{H.scrolled();let W=J.currentTarget.scrollTop;F.current=pve(J.currentTarget,B.totalHeight),(0,fV.flushSync)(()=>c(ie=>({top:W,delta:W-ie.top})))};return(0,rt.jsx)("div",{ref:p,className:"acpmux-scroll",role:"feed","aria-label":a("transcript.label"),onScroll:ne,children:(0,rt.jsx)("div",{className:"acpmux-spacer",style:{height:B.totalHeight},children:(0,rt.jsx)("div",{ref:N,className:"acpmux-thread",children:t.slice(j.first,j.last).map((J,W)=>{let ie=j.first+W,Z=gV(J),ce=i[Z]??sR,se=r.has(J.id);return(0,rt.jsx)(Kot,{row:J,kind:Z,index:ie,setSize:o?-1:t.length,top:B.tops[ie],rowWidth:k2(m),expanded:se,observer:C,report:L,enter:k.current.has(J.id),onEntered:_,children:(0,rt.jsx)(ce,{row:J,onToggleActivity:e,onOpenDiff:n,expanded:se})},J.id)})})})})}var mve=t=>e=>{Nt("chat.permission",{permissionId:t.permissionId,optionId:e})};function tat(t){let e=(0,pl.c)(2),{snapshot:n}=t,r;return e[0]!==n?(r=(0,rt.jsx)(jde,{snapshot:n,onModel:sat,onMode:aat,onEffort:oat,onHarness:iat,showPlan:!1,onCompact:rat,onHarnessHint:nat}),e[0]=n,e[1]=r):r=e[1],r}function nat(t){window.cmuxAcpmuxActions?.["chat.harness.hint"]?.({harness:t})}function rat(){Nt("chat.send",{text:"/compact",attachments:[]})}function iat(t){Nt("chat.new",{harness:t})}function oat(t,e){Nt("chat.effort",{configId:t,value:e})}function aat(t){Nt("chat.mode",{modeId:t})}function sat(t){Nt("chat.model",{modelId:t})}function fve(){let t=(0,pl.c)(3),[e]=(0,fe.useState)(kpe),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,rt.jsx)(lat,{}),t[0]=n):n=t[0];let r;return t[1]!==e?(r=(0,rt.jsx)(eI,{client:e,children:n}),t[1]=e,t[2]=r):r=t[2],r}function lat(){let t=we(),[e,n]=(0,fe.useState)(),[r,i]=(0,fe.useState)(!1),[o,a]=(0,fe.useState)(!1),[s,l]=(0,fe.useState)(),[c,u]=(0,fe.useState)(!1),[d,p]=(0,fe.useState)(),[m]=(0,fe.useState)(()=>new _L(Nt)),f=(0,fe.useSyncExternalStore)(m.subscribe,m.snapshot,m.snapshot),[h,x]=(0,fe.useState)([]),[g,y]=(0,fe.useState)(),[b,w]=(0,fe.useState)(Aot),[v]=(0,fe.useState)(()=>new lL),k=(0,fe.useSyncExternalStore)(v.subscribe,v.view,v.view),_=V4(),L=(0,fe.useRef)(0),[S,C]=(0,fe.useState)(),T=Cpe(S,b.catalog),M=(0,fe.useMemo)(()=>Spe(b,k,T),[b,k,T]),A=(0,fe.useMemo)(()=>g_(t),[t]),$=(0,fe.useMemo)(()=>Jwe(t),[t]),[N,F]=(0,fe.useState)("compact"),D=Zwe({request:Nt,target:M.summary?.cwd?{cwd:M.summary.cwd,sessionId:M.sessionId,hostKind:M.summary.hostKind}:void 0,online:M.connection==="connected",strings:$,variant:N}),O=(0,fe.useRef)(D.show);O.current=D.show;let B=(0,fe.useRef)(!1);(0,fe.useEffect)(()=>{!o||B.current||(B.current=!0,requestAnimationFrame(()=>requestAnimationFrame(()=>{Nt("pane.painted").catch(()=>{})})))},[o]),(0,fe.useEffect)(()=>{Nt("pane.checkpointAvailability",{available:D.supported}).catch(()=>{})},[D.supported,M.sessionId]);let[P,U]=(0,fe.useState)(!1),[G,j]=(0,fe.useState)(0);(0,fe.useEffect)(()=>U(!1),[M.sessionId]);let V=(0,fe.useCallback)(()=>U(!1),[]),[H,ne]=(0,fe.useState)(new Set),J=M.connection!=="disconnected"&&!M.connection.startsWith("connecting"),W=!!M.canFork&&J,ie=M.handoff?.record,Z=!!ie&&ie.target.sessionId===M.sessionId&&["draft","starting"].includes(ie.state)&&!M.handoff?.receipt,ce=!!M.sessionId&&!!M.canHandoff&&!M.handoff?.ready,se=!Z&&!ce&&Vye(M,r),be=(0,fe.useRef)(void 0),le=o3e($ot,{sessionId:M.sessionId,cwd:M.summary?.cwd??(M.sessionId?void 0:s),family:M.summary?.family||M.summary?.harness,prompts:M.rows.filter(ue=>ue.kind==="user").length},M.origin!=="remote");be.current=le.refused;let ge=M.permission?.pending&&!(M.permissionGroups?.supported&&M.permission.groupId)?M.permission:void 0,ke=(0,fe.useMemo)(()=>h.filter(ue=>ue.sessionId===M.sessionId),[h,M.sessionId]),me=ke.at(-1)?.cwd,Se=me??M.summary?.cwd,de=(0,fe.useCallback)(ue=>Nt("file.search",{...Se?{path:Se}:{},query:ue,limit:50}),[Se]),Le=(0,fe.useMemo)(()=>f.filter(ue=>ue.sessionId===M.sessionId),[f,M.sessionId]),Ne=se&&Le.length===0,Be=(0,fe.useMemo)(()=>{let ue=M.permissionGroups,je=new Set(ue?.groups.flatMap(_n=>_n.items.map(xr=>xr.permissionId))),St=ue?.supported?M.rows.filter(_n=>_n.kind!=="permission"||!_n.permission?.groupId&&!je.has(_n.permission?.permissionId??"")):M.rows;return xme(hme(aJ(St,H,{working:M.isWorking}),Le),ke)},[M.rows,H,M.isWorking,M.permissionGroups,Le,ke]),[_e,xe]=(0,fe.useState)(),Ce=(0,fe.useRef)(M.sessionId);Ce.current=M.sessionId;let K=(0,fe.useCallback)((ue,je,St)=>xe({sessionId:Ce.current,rowId:ue,path:je,opener:St??(document.activeElement instanceof HTMLElement?document.activeElement:void 0)}),[]),Y=(0,fe.useCallback)(ue=>{let je=[...M.rows].reverse().find(St=>St.kind==="activity"&&St.items?.some(_n=>_n.tool?.diffs?.some(xr=>xr.path===ue)));je&&K(je.id,ue)},[M.rows,K]),ye=(0,fe.useRef)(!1),Re=(0,fe.useCallback)(()=>{ye.current=!0,xe(void 0)},[]),Ke=(0,fe.useRef)(void 0);_e?.opener&&(Ke.current=_e.opener),(0,fe.useLayoutEffect)(()=>{if(_e||!Ke.current)return;let ue=document.activeElement;(ye.current||!ue||ue===document.body)&&Ke.current.focus(),ye.current=!1,Ke.current=void 0},[_e]);let mt=_e!==void 0&&_e.sessionId===M.sessionId&&M.rows.some(ue=>ue.id===_e.rowId);(0,fe.useEffect)(()=>{_e&&!mt&&xe(void 0)},[_e,mt]);let[dt,Ae]=(0,fe.useState)(()=>new Map),xt=(0,fe.useMemo)(()=>{let ue=(je,St,_n)=>Ae(xr=>{let po=new Map(xr);for(let Ss of je)(!_n||po.get(Ss)===_n)&&po.set(Ss,St);return po});return{decisions:dt,decide:(je,St)=>Ae(_n=>{let xr=new Map(_n);return St?xr.set(je,St):xr.delete(je),xr}),requestRevert:(je,St)=>{let _n=je.map(xr=>[xr,dt.get(xr)]);ue(je,"requested"),Nt("chat.send",{text:St}).catch(()=>Ae(xr=>wxe(xr,_n)))}}},[dt]);(0,fe.useEffect)(()=>Ae(ue=>ue.size?new Map:ue),[M.sessionId]);let Et=(0,fe.useMemo)(()=>({...W&&{fork:ue=>{Nt("chat.fork",{throughSeq:ue}).catch(()=>{})}},...J&&{retry:ue=>{Nt("chat.send",{text:ue}).catch(()=>{})}},review:xt}),[W,J,xt]),jt=(0,fe.useRef)(void 0),Bt=(0,fe.useMemo)(()=>{if(!_e||!mt)return;let ue=N0(M.rows,_e.rowId).filter(St=>St.kind==="activity"),je=`${_e.rowId}\0${ue.map(St=>`${St.id}:${St.version}`).join("|")}`;return jt.current?.key!==je&&(jt.current={key:je,files:Sd(ue)}),jt.current.files},[_e,mt,M.rows]),Ve=(0,fe.useRef)(M.rows);Ve.current=M.rows;let Jt=(0,fe.useCallback)(({rowId:ue})=>Sse(Ve.current,ue,Not),[]),rn=$8e(Jt,M.sessionId),{request:Rn,get:_t}=rn,An=(0,fe.useCallback)(ue=>N0(Ve.current,ue)[0]?.id??ue,[]),Xt=_e&&mt?An(_e.rowId):void 0,zn=_e&&mt?N0(M.rows,_e.rowId).some(ue=>ue.kind==="turnSummary"):!1;(0,fe.useEffect)(()=>{Xt&&zn&&Rn(Xt)},[Xt,zn,Rn]);let Ot=(0,fe.useMemo)(()=>{if(!Bt||!Xt)return;let ue=new Set(Bt.flatMap(St=>St.edits.map(_n=>_n.toolId))),je=[...dt].some(([St,_n])=>_n==="rejected"&&ue.has(St.split("\0")[0]));return UU(t,Bt,_t(Xt)??{state:"loading"},je)},[Bt,Xt,dt,t,_t]),mn=(0,fe.useMemo)(()=>{let ue=!1;for(let je=M.rows.length-1;je>=0;je--){let St=M.rows[je];if(St.kind==="turnSummary")ue=!0;else if(St.kind==="editedFiles")return ue?St.id:void 0}},[M.rows]);(0,fe.useEffect)(()=>{mn&&Rn(An(mn))},[mn,Rn,An]);let yn=(0,fe.useCallback)((ue,je)=>jT(je,_t(An(ue))),[_t,An]),In=(0,fe.useRef)(void 0),er=(0,fe.useMemo)(()=>{let ue=[...M.rows].reverse().find(_n=>gV(_n)==="editedFiles");if(!ue)return;let je=N0(M.rows,ue.id).filter(_n=>_n.kind==="activity"),St=`${ue.id}\0${je.map(_n=>`${_n.id}:${_n.version}`).join("|")}`;return In.current?.key!==St&&(In.current={key:St,rowId:ue.id,files:Sd(je)}),In.current},[M.rows]),ae=(0,fe.useMemo)(()=>er?yn(er.rowId,er.files):void 0,[er,yn]),st=()=>{if(_e&&mt)return Re();er&&K(er.rowId)},[Lt,Ye]=(0,fe.useState)(bV),[wt,jn]=(0,fe.useState)(),Kn=bpe(jn),un=(0,fe.useCallback)(ue=>{Nt("chat.select",{sessionId:ue})},[]),it=(0,fe.useRef)(void 0);it.current={snapshot:M,selectSession:un,openDiff:K,diff:{open:mt,paths:(Bt??[]).map(ue=>ue.path)}};let[ft,En]=(0,fe.useState)("closed"),Pt=ue=>En(je=>lwe(je,ue,swe())),[It,mi]=(0,fe.useState)({}),[Ei,Ti]=(0,fe.useState)(!1),[Ua,ml]=(0,fe.useState)("pane"),Ge=Ua==="quick",dn=(0,fe.useRef)(Ua);dn.current=Ua;let pt=(0,fe.useRef)({pending:!1,landed:!1}),vs=()=>{let ue=Ce.current;!pt.current.pending||!pt.current.landed||!ue||(pt.current.pending=!1,uve(ue))},Gr=(0,fe.useRef)(()=>{});Gr.current=()=>{pt.current.landed=!0,vs()};let np=()=>{pt.current.pending=!1},Ri=ue=>{ue?pt.current={pending:!0,landed:!1}:M.sessionId&&uve(M.sessionId)};(0,fe.useEffect)(vs,[M.sessionId]),tve(Ge,()=>{np(),Nt(pV.dismiss).catch(()=>{})});let Wi=(0,fe.useRef)(new Map),co=(0,fe.useRef)(void 0),ks=(0,fe.useRef)(void 0),da=(0,fe.useRef)(null),Oo=(0,fe.useRef)(null),Cs=(0,fe.useRef)(void 0),Mh=(0,fe.useCallback)(ue=>{Oo.current=ue;let je=Cs.current;if(!(!ue||!je)){Cs.current=void 0;for(let St of je)ue.restore(St.text,St.attachments)}},[]);tme(()=>da.current?(da.current.focus(),!0):!1);let uo=(0,fe.useRef)(se);uo.current=se;let pa=(0,fe.useCallback)(()=>{let ue=()=>requestAnimationFrame(()=>da.current?.focus());if(uo.current){ue();return}Nt("chat.new").then(ue,()=>{})},[]),rp=W8e(da,Nt),[ef,ac]=(0,fe.useState)(),[Eh,Do]=(0,fe.useState)(!1),sc=(0,fe.useRef)(void 0),Fo=(0,fe.useMemo)(()=>{let ue=T===M.catalog?M:{...M,catalog:T};return s&&!M.sessionId?{...ue,summary:{sessionId:"",cwd:s}}:ue},[M,T,s]);(0,fe.useEffect)(()=>{M.sessionId&&l(void 0)},[M.sessionId]);let tf=(0,fe.useRef)(!1);(0,fe.useEffect)(()=>{!M.sessionId||!tf.current||(tf.current=!1,m.claim(M.sessionId))},[M.sessionId,m]);let nf=(0,fe.useMemo)(()=>({stop:ue=>m.stop(ue),openInTerminal:ue=>{Nt("tab.open",{kind:"terminal",text:ue.command,run:!1,...ue.cwd?{cwd:ue.cwd}:{}}).catch(()=>{})}}),[m]),rf=(0,fe.useCallback)((ue,je)=>{if(se&&!M.sessionId&&!je){l(ue);return}Nt("chat.new",{cwd:ue,...je?{peer:je}:{}}).catch(()=>{})},[se,M.sessionId]);(0,fe.useEffect)(()=>{window.React=fe.default,window.cmuxAcpmuxRegistry={register(Me,Rt,$n){let wr=window.cmuxAcpmuxRegistry;wr[Me]===Rt&&(!$n?.measure||$n.measure===Rt.measure)||($n?.measure&&(Rt.measure=$n.measure),wr[Me]=Rt,Ye(mV()))},configure(){Ye(mV())}},window.cmuxAcpmuxBridge={command(Me){Me==="searchChats"&&dn.current!=="quick"&&Pt("toggle"),Me==="createCheckpoint"&&O.current(),["permissionAllowOnce","permissionAllowChat","permissionDeny","permissionExpand","permissionRetry","permissionRevoke","permissionRefresh"].includes(Me)&&window.dispatchEvent(new CustomEvent(`cmux-acpmux-${Me}`)),Me==="continueIn"&&co.current?.canHandoff&&co.current.handoff?.ready&&!co.current.isWorking&&!co.current.queue.length&&U(!0)},receive(Me){if(Me.protocolVersion!==1)return;let Rt=lse(Wi.current,Me.rows);Wi.current=new Map(Me.rows.map($n=>[$n.id,$n])),co.current=Me;try{sessionStorage.setItem("cmux.acpmux.snapshot",JSON.stringify(Me))}catch{}w(Me)},applyTheme(Me){QY(Me)},applyShortcuts(Me){mi(Q8e(Me))},applyPreview(Me){Ti(Me===!0)},revealTurn(Me){rV(Me)},applyCustomization(Me){if("themeCSS"in Me){let Rt=document.getElementById("acpmux-user-theme");Rt||(Rt=document.createElement("style"),Rt.id="acpmux-user-theme",document.head.append(Rt)),Rt.textContent=Me.themeCSS??""}if(Me.registryJS)try{(0,eval)(Me.registryJS),Ye(mV())}catch{}Me.layout&&(U8e(Me.layout),window.cmuxAcpmuxRegistry?.configure(Me.layout))},dictation(Me){H8e(Me)}};let ue=LC();ue&&Foe(ue).catch(()=>{}),window.cmuxAcpmuxDebug=mme({replaceRows(Me){Wi.current=new Map(Me.map(Rt=>[Rt.id,Rt])),w(Rt=>({...Rt,rows:Me,connection:"debug",isWorking:!1,canLoadOlder:!1}))},rowCount:()=>Wi.current.size,sessionId:()=>ks.current?.selectedSession,automation:{snapshot:()=>it.current.snapshot,call:(Me,Rt)=>Nt(Me,Rt),selectSession:Me=>it.current?.selectSession(Me),openDiff:Me=>it.current?.openDiff(Me),diff:()=>it.current?.diff??{open:!1,paths:[]}}});let je=!1,St,_n=250,xr=2e3,po=!1,Ss=!1,uu=!1,sf,uc,Zu,hl=new Set,M5=(Me,Rt)=>{Oo.current?Oo.current.restore(Me,Rt):Cs.current=[...Cs.current??[],{text:Me,attachments:Rt}]},Fe=async()=>{if(!Ss){Ss=!0;try{Mn.markAgent("handshakeStart"),j0.lifecycle("handshake",{reconnect:po});let Me=await Nt("ready",po?{reconnect:po}:{});if(je)return;Mn.markAgent("handshakeReady"),i(Me.newSession===!0&&!Me.sessionId),Me.newSession&&!Me.sessionId&&typeof Me.cwd=="string"&&Me.cwd&&l(Me.cwd),u(Me.chooseFolder===!0),a(!0),(Me.newSession&&!Me.sessionId||Me.sessionId&&co.current?.sessionId&&Me.sessionId!==co.current.sessionId)&&w(hV()),po||ml(eve(Me.surface)),y(typeof Me.machineName=="string"&&Me.machineName?Me.machineName:void 0),po||jn(iL(Me));let Rt=gF(Me.draft);Rt&&n(Rt),sf=gF(Me.prompt)??sf,typeof Me.harness=="string"&&Me.harness&&(uc=Me.harness);let $n=Me.transport==="mock";fwe(Me.linkScheme,$n?mwe:void 0),$n&&F(new URLSearchParams(window.location.search).get("checkpointVariant")==="expanded"?"expanded":"compact");let wr=Me.transport==="acpmux-bridge";if(!$n&&!wr&&!(Me.transport==="acpmux-websocket"&&Me.endpoint&&Me.token)){ac(void 0);return}let or=Me.newSession?{...IF,sessionId:void 0,newSession:!0}:IF,vt=await A2.connect($n?or:Me,Ze=>{Wi.current=new Map(Ze.rows.map(Ka=>[Ka.id,Ka])),co.current=Ze;let en=Ze.summary,vr=en?.model!==void 0&&hl.delete(en.sessionId);sL.observe(en,vr),w(Ka=>Ze.canHandoff&&!Ze.handoff?.ready&&Ze.sessionId===Ka.sessionId&&Ka.handoff?.record?{...Ze,handoff:{...Ze.handoff,record:Ka.handoff.record}}:Ze)},()=>{je||(po=!0,v.disconnect(Zu),ks.current=void 0,delete window.cmuxAcpmuxActions,St=window.setTimeout(()=>{Fe()},_n),_n=Math.min(_n*2,po?xr:3e4))},$n?()=>new gL(void 0,window.cmuxAcpmuxMockScript):wr?()=>new _C:void 0,$n?"daemon":"native");if(je){vt.close();return}ks.current=vt,ac(void 0),L.current+=1,C({id:L.current,client:vt}),_n=250;let hi=Ze=>Ze&&!$n?Nt("chat.persistSession",{sessionId:Ze}).catch(()=>{}):Promise.resolve(),ma=async(Ze,en=[],vr)=>{let Ka=(Ct,at)=>{throw $2(Ct)&&(at||M5(Ze,en),be.current?.(Ct,()=>Oo.current?.send())),Ct},K8=v.send(Ze,en,()=>Gr.current());if(K8)return vr?.(),K8.catch(Ct=>Ka(Ct,Ct.handedBack===!0));let re=await vt.ensureSession().catch(Ct=>Ka(Ct,!!vr));await hi(re);let $e=vt.send(Ze,en,void 0,vr).catch(Ct=>Ka(Ct,!!vr));return Gr.current(),$e};window.cmuxAcpmuxActions={"chat.send":({text:Ze,attachments:en,accepted:vr})=>ma(String(Ze??""),Array.isArray(en)?en:[],typeof vr=="function"?vr:void 0),"chat.cancel":()=>vt.cancel(),"chat.permission":({permissionId:Ze,optionId:en})=>vt.permission(String(Ze),String(en)),"chat.permission_group.respond":({groupId:Ze,revision:en,decision:vr})=>vt.permissionGroup(String(Ze),Number(en),vr),"chat.permission_group.retry":()=>vt.permissions.retry(),"chat.permission_chat.revoke":()=>vt.permissions.revoke(),"chat.permission_groups.refresh":()=>vt.permissions.refresh(),"chat.model":({modelId:Ze})=>{let en=co.current?.summary;return v.pickModel(String(Ze),en?.sessionId?{sessionId:en.sessionId,model:en.model}:void 0)},"chat.mode":async({modeId:Ze})=>{v.pickMode(String(Ze))||await vt.setMode(String(Ze))},"chat.effort":async({configId:Ze,value:en})=>{v.pickConfig(String(Ze),String(en))||await vt.setConfig(String(Ze),String(en))},"chat.select":async({sessionId:Ze})=>(v.cancel(),hi(await vt.select(String(Ze)))),"chat.new":async({harness:Ze,cwd:en,peer:vr})=>Ze&&!vr?v.switchTo(String(Ze),en?String(en):void 0):(v.cancel(),hi(await vt.create(Ze?String(Ze):void 0,en?String(en):void 0,vr?String(vr):void 0))),"chat.harness.hint":async({harness:Ze})=>v.hint(Ze?String(Ze):void 0),"chat.harness.retry":async()=>v.retry(),"chat.harness.cancelPrompt":async({promptId:Ze})=>v.cancelQueued(String(Ze)),"chat.retryPrompt":({rowId:Ze})=>vt.retryPrompt(String(Ze)),"chat.history":()=>vt.loadOlder(),"acp.trust.get":({cwd:Ze})=>vt.trustGet(String(Ze)),"acp.trust.set":({cwd:Ze,level:en})=>vt.trustSet(String(Ze),String(en)),"file.search":({path:Ze,query:en,limit:vr})=>vt.fileSearch(typeof Ze=="string"?Ze:void 0,String(en??""),typeof vr=="number"?vr:50),"chat.fork":async({throughSeq:Ze})=>(v.cancel(),hi(await vt.fork(Number(Ze)))),"chat.handoff.prepare":async({harness:Ze})=>(v.cancel(),hi(await vt.continueIn(String(Ze)))),"chat.handoff.get":()=>vt.refreshHandoff(),"chat.handoff.draft":({review:Ze})=>vt.saveHandoff(Ze),"chat.handoff.start":({review:Ze})=>vt.startHandoff(Ze),"chat.handoff.discard":async()=>hi(await vt.discardHandoff()),"git.diff":({scope:Ze})=>vt.gitDiff(String(Ze)),"git.status":()=>vt.gitStatus(),"git.checkpoint.diff":({from:Ze,to:en})=>vt.gitCheckpointDiff(String(Ze),String(en)),"pane.context":async()=>co.current?xpe(co.current):{urls:[]}},Zu={turnRunning:()=>vt.turnRunning(),shown:()=>vt.shownSession(),create:async(Ze,en)=>{let vr=await vt.startSession(Ze,en);return vr&&hl.add(vr),vr},leave:()=>vt.leave(),open:Ze=>vt.select(Ze),send:(Ze,en,vr)=>vt.send(Ze,en,vr),setModel:Ze=>vt.setModel(Ze),setMode:(Ze,en)=>vt.setMode(Ze,en),setConfig:(Ze,en,vr)=>vt.setConfig(Ze,en,vr),discard:Ze=>vt.discard(Ze),prewarm:(Ze,en)=>vt.prewarm(Ze,en),prewarmSupported:()=>vt.prewarmSupported},v.setHandlers({restore:M5,opened:Ze=>{hi(Ze),_.invalidateQueries({queryKey:["acpmux","harnesses"]})},notice:Ze=>vt.notice(Ze),gesture:Ze=>Nc("transport.gesture",{intent:Ze}).then(en=>en?.ticket)}),v.connect(Zu),Mn.markAgent("composerReady"),vt.snapshot(),vt.warmRecentProjects(),vt.adopted&&hi(vt.adopted),typeof Me.revealTurn=="string"&&rV(Me.revealTurn);let Bo=sf,H3=uc;sf=void 0,uc=void 0,H3&&Bo?(v.switchTo(H3,Me.cwd),ma(Bo).catch(()=>{})):Bo&&ma(Bo).catch(()=>n(Bo))}catch(Me){je||(j0.lifecycle("handshake failed",{message:String(Me)}),w(Rt=>({...Rt,connection:`connecting: ${String(Me)}`})),ac(Su(Me)||String(Me)),St=window.setTimeout(()=>{Fe()},_n),_n=Math.min(_n*2,po?xr:3e4))}finally{Ss=!1,uu&&(uu=!1,Do(!1),!je&&!ks.current&&tt())}}},tt=()=>{St!==void 0&&window.clearTimeout(St),St=void 0,po=!1,_n=250,Fe()};return sc.current=()=>{if(!je){if(!Ss)return tt();uu=!0,Do(!0)}},Fe(),()=>{je=!0,v.disconnect(),sc.current=void 0,St!==void 0&&window.clearTimeout(St),ks.current?.close(),ks.current=void 0,delete window.cmuxAcpmuxActions}},[v,_]);let lc=window.cmuxAcpmuxRegistry?.composerChips??tat,Va=pse(Fo,t),fi=M.summary?.harness?.split(/[-_]/)[0],cu=Fo.catalog.filter(ue=>{let je=ue.id.split(/[-_]/)[0];return fi==="claude"?je==="codex":fi==="codex"&&je==="claude"}),_s=!!M.canHandoff&&!!M.handoff?.ready&&!M.isWorking&&!M.queue.length&&!M.handoff?.busy&&!Z&&cu.length>0,fl=ue=>{ue.catch(()=>{})},Za=(ue,je)=>fl(Nt("pane.action",je?{id:ue,cwd:je}:{id:ue})),cc=M.summary,ip=cc&&!cc.peer&&!(cc.host&&cc.hostKind!=="local")?cc.cwd:void 0,Th=(0,fe.useRef)(!1),k5=()=>Nt("pane.tabState").then(ue=>{Th.current=ue?.pinned===!0}),C5=[...M.rows].reverse().find(ue=>ue.seq!==void 0)?.seq,Rh=ue=>({key:"copyLink",label:t("chatMenu.copyLink"),icon:"link",shortcutAction:ll.copyTabLink,onSelect:()=>fl(ba(ue))}),_5=()=>{let ue=M.sessionId?hwe(M.sessionId):void 0,je=[...W&&C5!==void 0?[{key:"fork",label:t("chatMenu.fork"),icon:"agent.fork",onSelect:()=>Et.fork?.(C5)}]:[],...M.canHandoff&&cu.length>0?[{key:"continue",label:A.continueIn,icon:"agent.handoff",disabled:!_s,children:cu.map(St=>({key:St.id,label:St.name,onSelect:()=>fl(Nt("chat.handoff.prepare",{harness:St.id}))}))}]:[],...D.supported?[{key:"checkpoint",label:$.createCheckpoint,icon:"action.review",onSelect:D.show}]:[]];return Ge?je.length?[...je,...ue?["separator",Rh(ue)]:[]]:[]:[{key:"rename",label:t("chatMenu.rename"),icon:"action.edit",shortcutAction:xs.rename,onSelect:()=>Za(xs.rename)},{key:"pin",label:Th.current?t("chatMenu.unpin"):t("chatMenu.pin"),icon:"action.pin",shortcutAction:xs.pin,onSelect:()=>Za(xs.pin)},...je.length?["separator",...je]:[],...ue?["separator",Rh(ue)]:[],"separator",{key:"moveRight",label:t("chatMenu.moveRight"),icon:"pane.split.right",shortcutAction:xs.moveRight,onSelect:()=>Za(xs.moveRight)},{key:"newWorkspace",label:t("chatMenu.newWorkspace"),icon:"workspace.new",shortcutAction:xs.newWorkspace,onSelect:()=>Za(xs.newWorkspace)},"separator",{key:"close",label:t("chatMenu.close"),icon:"tab.close",shortcutAction:xs.close,onSelect:()=>Za(xs.close)}]},of=wt!==void 0&&!M.sessionId&&M.rows.length===0,Ah=(ue,je,St)=>{if(ue!=="agent"){Nt("tab.open",St?{kind:ue,text:je,cwd:St}:{kind:ue,text:je});return}jn(void 0),(async()=>{St&&await Nt("chat.new",{cwd:St}),je&&await Nt("chat.send",{text:je})})().catch(()=>{})},S5=(0,fe.useCallback)(()=>Nt("project.list").then(ue=>(ue?.projects??[]).map(je=>({cwd:je,label:x8(je)??je}))),[]),[op,L5]=(0,fe.useState)([]);(0,fe.useEffect)(()=>{if(!se||wt||Ge)return;let ue=!0;return S5().then(je=>{ue&&L5(je)}).catch(()=>{}),()=>{ue=!1}},[se,wt,Ge,S5]);let ap=(0,fe.useMemo)(()=>{let ue=new Map;for(let je of op)ue.set(je.cwd,je);for(let je of wt?.projects??[])ue.set(je,{cwd:je,label:wi(je)});for(let je of Fo.sessions)typeof je.cwd!="string"||!je.cwd||je.host&&je.hostKind!=="local"||ue.set(je.cwd,{cwd:je.cwd,label:wi(je.cwd)});return wt?.cwd&&ue.set(wt.cwd,{cwd:wt.cwd,label:wi(wt.cwd)}),[...ue.values()]},[Fo.sessions,wt?.cwd,wt?.projects,op]),$h=(0,rt.jsx)(sV.Provider,{value:nf,children:(0,rt.jsx)(KT.Provider,{value:Et,children:(0,rt.jsx)(OT.Provider,{value:yn,children:(0,rt.jsx)(JT.Provider,{value:M.rows,children:(0,rt.jsx)(eat,{rows:Be,canLoadOlder:M.canLoadOlder,expanded:H,registry:Lt,onOpenDiff:Ge?void 0:K,onToggleActivity:ue=>ne(je=>{let St=new Set(je);return St.has(ue)?St.delete(ue):St.add(ue),St})})})})})}),Wa=(0,rt.jsxs)(rt.Fragment,{children:[M.permissionGroups?.supported&&(0,rt.jsx)(Qwe,{state:M.permissionGroups,onRespond:(ue,je,St)=>{Nt("chat.permission_group.respond",{groupId:ue,revision:je,decision:St})},onRetry:()=>{Nt("chat.permission_group.retry",{})},onRevoke:()=>{Nt("chat.permission_chat.revoke",{})},onRefresh:()=>{Nt("chat.permission_groups.refresh",{})}}),(ge||le.ask)&&(0,rt.jsxs)("div",{className:"acpmux-permission",children:[le.ask&&(0,rt.jsx)(e3e,{ask:le.ask,agent:M.summary?.harness?Hf(M.summary.harness):t("trust.agent"),onTrust:le.trust,onDistrust:le.distrust,onUndo:le.undo}),ge&&(0,rt.jsx)(MG,{permission:ge,onAnswer:mve(ge)})]})]}),af=!Z&&!ce&&(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(n9e,{dictation:rp}),(0,rt.jsx)($we,{switching:M.switching,onRetry:()=>{Nt("chat.harness.retry")}}),Nwe({offered:c,freshChat:se,quick:Ge,projectDraft:s,sessionId:M.sessionId})&&(0,rt.jsx)(Pwe,{error:d,onChoose:()=>{p(void 0),Nt("workspace.chooseFolder").then(ue=>{ue?.cwd&&(u(!1),rf(ue.cwd))}).catch(ue=>p(Su(ue)||void 0))}}),(0,rt.jsx)(Hye,{snapshot:Fo,chips:lc,draft:e,onSend:(ue,je)=>{if(!window.cmuxAcpmuxActions?.["chat.send"])return!1;let St=bme(je??[],uu=>m.get(uu));M.sessionId||(tf.current=!0);let _n=()=>{},xr=new Promise(uu=>_n=uu),Ss=(async()=>(s&&!M.sessionId&&await Nt("chat.new",{cwd:s}),Nt("chat.send",{text:ue,attachments:St,accepted:()=>_n(!0)})))();return Ss.then(()=>Gr.current(),np),Promise.race([xr,Ss.then(()=>!0)])},onStop:()=>{Nt("chat.cancel")},onProject:rf,projectChoices:se&&!Ge?ap:void 0,onBrowseProject:se&&!Ge?()=>{Nt("project.browse").then(ue=>{ue?.cwd&&rf(ue.cwd)}).catch(()=>{})}:void 0,onShell:Fo.summary?.hostKind==="cloud"?void 0:ue=>m.start(ue,{...me??Fo.summary?.cwd?{cwd:me??Fo.summary?.cwd}:{},...M.sessionId?{sessionId:M.sessionId}:{}}),localName:g,movedTo:me,onMove:M.sessionId&&Fo.summary?.hostKind!=="cloud"?ue=>{let je={id:`${Date.now().toString(36)}-${h.length}`,sessionId:M.sessionId,cwd:ue,machine:g??t("composer.thisMac"),at:Date.now()};return x(St=>[...St,je]),je}:void 0,onShellInterrupt:()=>{let ue=m.running(M.sessionId);return ue&&m.stop(ue.id),ue!==void 0},onMode:ue=>{Nt("chat.mode",{modeId:ue})},searchFiles:Se?de:void 0,onOpenInWindow:Ge?Ri:void 0,prompt:da,handle:Mh,blocked:le.blocked,accessory:(0,rt.jsx)(e9e,{dictation:rp})})]}),sp=ef&&(0,rt.jsx)(_we,{message:ef,retrying:Eh,onRetry:()=>sc.current?.()});return Ge?(0,rt.jsx)(FT.Provider,{value:It,children:(0,rt.jsx)("section",{className:"acpmux-shell","data-surface":"quick",children:(0,rt.jsx)(ave,{transcript:M.rows.length>0||Le.length>0?$h:void 0,asks:(0,rt.jsxs)(rt.Fragment,{children:[Wa,sp]}),composer:af})})}):(0,rt.jsx)(FT.Provider,{value:It,children:(0,rt.jsxs)("section",{className:"acpmux-shell","aria-label":Fo.summary?.title||t("header.agentChat"),children:[(0,rt.jsx)("div",{className:"acpmux-main","data-new-chat":Ne&&!of?"":void 0,children:of&&wt.layout==="b"?(0,rt.jsx)(ppe,{snapshot:Fo,omnibar:wt.omnibar,location:wt.location,lastAgent:wt.lastAgent,home:wt.home,...mpe({callNative:Nt,cwd:wt.cwd,leave:()=>jn(void 0),selectSession:un,showAllChats:()=>Pt("toggle"),runShell:(ue,je)=>{je&&l(je),m.start(ue,je?{cwd:je}:{})}})},Kn):of?(0,rt.jsx)(Xde,{snapshot:Fo,hotkeys:wt.hotkeys,initialKind:wt.initialKind,cwd:wt.cwd,host:wt.host??g,location:wt.location,omnibar:wt.omnibar,projects:ap,chips:lc,onSubmit:Ah,onJump:(ue,je)=>{Nt("tab.jump",{target:ue,id:je})},onOpenSession:ue=>{jn(void 0),un(ue)},onShowAll:()=>Pt("toggle"),onBrowseProject:()=>{Nt("action.run",{id:"palette.welcomeChecklist"})},onEditShortcut:ue=>{Nt("shortcut.edit",{kind:ue})}},Kn):(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsxs)("div",{className:`acpmux-stage${Bt?" acpmux-reviewing":""}`,children:[(0,rt.jsxs)("header",{className:"acpmux-header",children:[(0,rt.jsx)(bwe,{status:Va.status,detail:Va.detail}),(0,rt.jsxs)("div",{className:"acpmux-handoff-header-tools",children:[Ei&&(0,rt.jsx)("span",{className:"acpmux-session-coverage",title:`${A.unverified} \xB7 ${M.summary?.enforcement?.detail??A.unverifiedDetail}`,children:M.summary?.enforcement?A.nativePolicy:A.unverified}),(0,rt.jsx)(ywe,{changes:ae,changesOpen:!!(_e&&mt),onChanges:st,tabTools:!Ge,onTerminal:()=>Za(xs.terminal,ip),onBrowser:()=>Za(xs.browser),summary:(0,rt.jsx)(L8e,{rows:M.rows,onOpenOutput:Ge?void 0:Y}),menu:_5,onMenuOpen:k5,expand:P&&_s?"continue":void 0,onExpanded:V})]})]}),!_e&&D.review,M.missingSession&&(0,rt.jsx)("p",{className:"acpmux-link-missing",role:"alert",children:t("link.sessionMissing")}),!Z&&M.handoff?.error&&(0,rt.jsx)("p",{className:"acpmux-handoff-error",role:"alert",children:M.handoff.error}),Z&&ie&&M.handoff?(0,rt.jsx)(Owe,{record:ie,state:M.handoff,strings:A,onSave:ue=>Nt("chat.handoff.draft",{review:ue}),onStart:ue=>Nt("chat.handoff.start",{review:ue}),onReturn:()=>un(ie.source.sessionId),onDiscard:()=>fl(Nt("chat.handoff.discard")),onReload:()=>fl(Nt("chat.handoff.get").then(()=>j(ue=>ue+1)))},`${ie.handoffId}:${G}`):Ne?(0,rt.jsx)(Zye,{project:x8(M.summary?.cwd)}):$h,_e&&Bt&&(0,rt.jsx)(e8e,{files:Ot?.files??Bt,turn:Ot,initialPath:_e.path,onClose:Re,source:Iot,onOpenFile:Pot,checkpointAction:D.supported?(0,rt.jsx)("button",{type:"button",className:"acpmux-checkpoint-open",onClick:D.show,children:$.createCheckpoint}):void 0,checkpointReview:D.review,review:xt,reviewFiles:Bt})]}),Wa,Ne&&(0,rt.jsx)("div",{className:"acpmux-home-area",children:(0,rt.jsx)(Yye,{sessions:M.sessions,currentId:M.sessionId,onSelect:un})}),sp,af]})}),ft!=="closed"&&(0,rt.jsx)(uwe,{sessions:M.sessions,closing:ft==="closing",onExited:()=>Pt("exited"),onClose:()=>Pt("close"),onSelect:ue=>{Pt("close"),un(ue)},onNewChat:()=>{Pt("close"),pa()}})]})})}var hve=R(qe(),1),gve=R(Q(),1);var q3=R(ee(),1),lR=class extends gve.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?(0,q3.jsx)(cat,{onRetry:()=>this.setState({failed:!1})}):this.props.children}};function cat(t){let e=(0,hve.c)(12),{onRetry:n}=t,r=we(),i;e[0]!==r?(i=r("pane.renderFailed"),e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o=(0,q3.jsx)("p",{children:i}),e[2]=i,e[3]=o):o=e[3];let a;e[4]!==r?(a=r("pane.renderRetry"),e[4]=r,e[5]=a):a=e[5];let s;e[6]!==n||e[7]!==a?(s=(0,q3.jsx)("button",{type:"button",className:"acpmux-pane-failed__retry",onClick:n,children:a}),e[6]=n,e[7]=a,e[8]=s):s=e[8];let l;return e[9]!==o||e[10]!==s?(l=(0,q3.jsxs)("div",{className:"acpmux-pane-failed",role:"alert",children:[o,s]}),e[9]=o,e[10]=s,e[11]=l):l=e[11],l}var cR=R(ee(),1);A2.scheduleFrame=Zse;document.documentElement.dataset.cmuxWebviewKind="acpmux-agent-session";var bve=document.getElementById("root");(0,yve.createRoot)(bve).render((0,cR.jsx)($de,{container:bve,children:(0,cR.jsx)(lR,{children:(0,cR.jsx)(fve,{})})})); +`;function v9e(t,e){return{theme:{dark:pd,light:md},themeType:e,diffStyle:"unified",diffIndicators:"bars",hunkSeparators:"line-info",lineDiffType:"none",overflow:"scroll",disableLineNumbers:!t,preferredHighlighter:"shiki-js",disableFileHeader:!0,unsafeCSS:Ait}}function KT(t){let e=(0,k9e.c)(66),{file:n}=t,r=ve();a1();let[i,o]=(0,H8.useState)(!1),[a,s]=(0,H8.useState)(w9e),l,c;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let G=new MutationObserver(()=>s(w9e()));return G.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>G.disconnect()},c=[],e[0]=l,e[1]=c):(l=e[0],c=e[1]),(0,H8.useEffect)(l,c);let u;e[2]!==a?(u=v9e(!0,a),e[2]=a,e[3]=u):u=e[3];let d;e[4]!==a?(d=v9e(!1,a),e[4]=a,e[5]=d):d=e[5];let p;e[6]!==u||e[7]!==d?(p={numbered:u,fragment:d},e[6]=u,e[7]=d,e[8]=p):p=e[8];let m=p,f;e[9]!==n?(f=n.edits.map(G=>E2(n,G)),e[9]=n,e[10]=f):f=e[10];let h=f,x;e[11]!==h?(x=h.join("\0"),e[11]=h,e[12]=x):x=e[12];let g=x,y;e[13]!==n.displayPath?(y=x0(br(n.displayPath)),e[13]=n.displayPath,e[14]=y):y=e[14];let b=y,w;if(e[15]!==n.displayPath||e[16]!==b){let G=b?br(n.displayPath):"text";w=i2("none",G),e[15]=n.displayPath,e[16]=b,e[17]=w}else w=e[17];let v=w,k;if(e[18]!==b||e[19]!==g){let G;e[21]!==b?(G=j=>{let V=H7(j);return b?V:G7(V,"text")},e[21]=b,e[22]=G):G=e[22],k=g.split("\0").map(G),e[18]=b,e[19]=g,e[20]=k}else k=e[20];let _=k,L;e[23]!==n.path?(L=n.path.split("/").pop()||n.path,e[23]=n.path,e[24]=L):L=e[24];let S=L,C;e[25]!==n.path||e[26]!==S?(C=(0,oc.jsx)("span",{className:"cv-edit-diff__name",title:n.path,children:S}),e[25]=n.path,e[26]=S,e[27]=C):C=e[27];let T;e[28]!==n.additions?(T=(0,oc.jsxs)("span",{className:"cv-edit-diff__add",children:["+",n.additions]}),e[28]=n.additions,e[29]=T):T=e[29];let M;e[30]!==n.deletions?(M=(0,oc.jsxs)("span",{className:"cv-edit-diff__del",children:["-",n.deletions]}),e[30]=n.deletions,e[31]=M):M=e[31];let A;e[32]!==i||e[33]!==r?(A=r(i?"code.copied":"code.copyDiff"),e[32]=i,e[33]=r,e[34]=A):A=e[34];let $;e[35]!==i||e[36]!==r?($=r(i?"code.copied":"code.copyDiff"),e[35]=i,e[36]=r,e[37]=$):$=e[37];let N;e[38]!==h?(N=()=>{ba(h.join("")).then(()=>o(!0),()=>o(!1))},e[38]=h,e[39]=N):N=e[39];let F;e[40]===Symbol.for("react.memo_cache_sentinel")?(F=(0,oc.jsx)(s1,{}),e[40]=F):F=e[40];let D;e[41]!==A||e[42]!==$||e[43]!==N?(D=(0,oc.jsx)("button",{type:"button",className:"cv-codeblock__action cv-edit-diff__copy","aria-label":A,title:$,onClick:N,children:F}),e[41]=A,e[42]=$,e[43]=N,e[44]=D):D=e[44];let O;e[45]!==C||e[46]!==T||e[47]!==M||e[48]!==D?(O=(0,oc.jsxs)("div",{className:"cv-edit-diff__header",children:[C,T,M,D]}),e[45]=C,e[46]=T,e[47]=M,e[48]=D,e[49]=O):O=e[49];let B;if(e[50]!==_||e[51]!==n.edits||e[52]!==m||e[53]!==r||e[54]!==v){let G;e[56]!==_||e[57]!==m||e[58]!==r||e[59]!==v?(G=(j,V)=>j.hunks.length?(0,oc.jsx)(e5.Provider,{value:v,children:(0,oc.jsx)(w8,{fileDiff:_[V],options:j.numbered?m.numbered:m.fragment})},j.toolId+V):(0,oc.jsx)("div",{className:"cv-edit-diff__empty",children:r("changes.noLineChanges")},j.toolId+V),e[56]=_,e[57]=m,e[58]=r,e[59]=v,e[60]=G):G=e[60],B=n.edits.map(G),e[50]=_,e[51]=n.edits,e[52]=m,e[53]=r,e[54]=v,e[55]=B}else B=e[55];let P;e[61]!==B?(P=(0,oc.jsx)("div",{className:"cv-edit-diff__body",children:B}),e[61]=B,e[62]=P):P=e[62];let U;return e[63]!==O||e[64]!==P?(U=(0,oc.jsxs)("div",{className:"cv-edit-diff",children:[O,P]}),e[63]=O,e[64]=P,e[65]=U):U=e[65],U}var C9e=R(qe(),1),_9e=R(Q(),1);var Si=R(ee(),1);function $it(t){switch(t){case"read":return(0,Si.jsx)(Gk,{});case"edit":case"delete":case"move":case"fileChange":return(0,Si.jsx)(e2,{size:16,strokeWidth:1.1});case"search":return(0,Si.jsx)(n2,{});case"execute":return(0,Si.jsx)(t2,{});case"fetch":return(0,Si.jsx)(Rl,{size:16,strokeWidth:1.1});default:return(0,Si.jsx)(Bk,{size:16,strokeWidth:1.2})}}function XT(t){let e=(0,C9e.c)(47),{item:n}=t,r=ve(),[i,o]=(0,_9e.useState)(!1),a=n.tool,s=!!a.diffs?.length,l;e[0]!==s||e[1]!==i||e[2]!==a?(l=i&&s?v6([a]):[],e[0]=s,e[1]=i,e[2]=a,e[3]=l):l=e[3];let c=l,u;e[4]!==r?(u=M=>r("tools.ranCommand",{command:M}),e[4]=r,e[5]=u):u=e[5];let d;e[6]!==n.text||e[7]!==u||e[8]!==a?(d=eQ(a,n.text,u),e[6]=n.text,e[7]=u,e[8]=a,e[9]=d):d=e[9];let p=d,m=a.status==="pending"||a.status==="in_progress",f=a.status==="failed",h;e[10]!==a.output?(h=a.output?.replace(/\n$/,""),e[10]=a.output,e[11]=h):h=e[11];let x=h,g=a.kind==="execute"&&!!a.command,y;e[12]!==a.kind?(y=$it(a.kind),e[12]=a.kind,e[13]=y):y=e[13];let b;e[14]!==y?(b=(0,Si.jsx)("span",{className:"cv-tool__icon",children:y}),e[14]=y,e[15]=b):b=e[15];let w;e[16]!==f||e[17]!==r?(w=f&&(0,Si.jsxs)("span",{className:"cv-tool__detail",children:[" ",r("tools.failed")]}),e[16]=f,e[17]=r,e[18]=w):w=e[18];let v;e[19]!==p||e[20]!==w?(v=(0,Si.jsxs)("span",{className:"cv-tool__text",children:[p,w]}),e[19]=p,e[20]=w,e[21]=v):v=e[21];let k;e[22]!==b||e[23]!==v?(k=(0,Si.jsxs)(Si.Fragment,{children:[b,v]}),e[22]=b,e[23]=v,e[24]=k):k=e[24];let _=k,L;e[25]!==x||e[26]!==_||e[27]!==s||e[28]!==i||e[29]!==m||e[30]!==g?(L=x||g||s?(0,Si.jsxs)("button",{type:"button",className:`cv-tool is-toggle${m?" is-live":" is-strong"}`,"aria-expanded":i,onClick:()=>o(Nit),children:[_,(0,Si.jsx)(Tc,{size:14,strokeWidth:1.2,className:`cv-tool__chevron cv-rotor${i?" is-open":" is-hover"}`})]}):(0,Si.jsx)("div",{className:`cv-tool${m?" is-live":" is-strong"}`,children:_}),e[25]=x,e[26]=_,e[27]=s,e[28]=i,e[29]=m,e[30]=g,e[31]=L):L=e[31];let S;e[32]!==x||e[33]!==i||e[34]!==g||e[35]!==a.command||e[36]!==a.exitCode?(S=i&&g&&(0,Si.jsx)(WT,{command:a.command,output:x,exitCode:a.exitCode}),e[32]=x,e[33]=i,e[34]=g,e[35]=a.command,e[36]=a.exitCode,e[37]=S):S=e[37];let C;e[38]!==x||e[39]!==c||e[40]!==i||e[41]!==g?(C=i&&!g&&(c.length?c.map(Iit):x&&(0,Si.jsx)("pre",{className:"cv-tool-output selectable",children:x})),e[38]=x,e[39]=c,e[40]=i,e[41]=g,e[42]=C):C=e[42];let T;return e[43]!==L||e[44]!==S||e[45]!==C?(T=(0,Si.jsxs)(Si.Fragment,{children:[L,S,C]}),e[43]=L,e[44]=S,e[45]=C,e[46]=T):T=e[46],T}function Iit(t){return(0,Si.jsx)(KT,{file:t},t.path)}function Nit(t){return!t}var Li=R(ee(),1);function Pit(t){switch(t){case"commands":return(0,Li.jsx)(t2,{});case"reads":return(0,Li.jsx)(Gk,{});case"edits":return(0,Li.jsx)(e2,{size:16,strokeWidth:1.1});case"searches":return(0,Li.jsx)(n2,{})}}function M9e(t){let e=(0,S9e.c)(51),{kind:n,items:r}=t,i=ve(),[o,a]=(0,L9e.useState)(!1),s;e[0]!==r?(s=r.map(Hit),e[0]=r,e[1]=s):s=e[1];let l=s,c;e[2]!==n||e[3]!==l?(c=n==="edits"?v6(l):[],e[2]=n,e[3]=l,e[4]=c):c=e[4];let u=c,d;e[5]!==l?(d=l.some(b5),e[5]=l,e[6]=d):d=e[6];let p=d,m;e[7]!==l?(m=l.filter(F3),e[7]=l,e[8]=m):m=e[8];let f=m.length,h;e[9]!==u?(h=u.reduce(qit,0),e[9]=u,e[10]=h):h=e[10];let x=h,g;e[11]!==u?(g=u.reduce(zit,0),e[11]=u,e[12]=g):g=e[12];let y=g,b=`cv-tool is-toggle${p?" is-live":" is-strong"}`,w;e[13]===Symbol.for("react.memo_cache_sentinel")?(w=()=>a(Bit),e[13]=w):w=e[13];let v;e[14]!==n||e[15]!==p?(v=p?(0,Li.jsx)(l1,{size:16}):Pit(n),e[14]=n,e[15]=p,e[16]=v):v=e[16];let k;e[17]!==v?(k=(0,Li.jsx)("span",{className:"cv-tool__icon",children:v}),e[17]=v,e[18]=k):k=e[18];let _;e[19]!==u||e[20]!==r||e[21]!==n||e[22]!==i?(_=p9e(i,n,r,u.map(Fit)),e[19]=u,e[20]=r,e[21]=n,e[22]=i,e[23]=_):_=e[23];let L;e[24]!==x||e[25]!==y||e[26]!==u.length?(L=u.length>0&&(0,Li.jsxs)("span",{className:"cv-tool__counts",children:[(0,Li.jsxs)("span",{className:"cv-edit-diff__add",children:["+",x]}),(0,Li.jsxs)("span",{className:"cv-edit-diff__del",children:["-",y]})]}),e[24]=x,e[25]=y,e[26]=u.length,e[27]=L):L=e[27];let S;e[28]!==f||e[29]!==i?(S=f>0&&(0,Li.jsxs)("span",{className:"cv-tool__failed",children:[" ",i("tools.failedCount",{n:f})]}),e[28]=f,e[29]=i,e[30]=S):S=e[30];let C;e[31]!==_||e[32]!==L||e[33]!==S?(C=(0,Li.jsxs)("span",{className:"cv-tool__text",children:[_,L,S]}),e[31]=_,e[32]=L,e[33]=S,e[34]=C):C=e[34];let T=`cv-tool__chevron cv-rotor${o?" is-open":" is-hover"}`,M;e[35]!==T?(M=(0,Li.jsx)(Tc,{size:14,strokeWidth:1.2,className:T}),e[35]=T,e[36]=M):M=e[36];let A;e[37]!==o||e[38]!==k||e[39]!==C||e[40]!==M||e[41]!==b?(A=(0,Li.jsxs)("button",{type:"button",className:b,"aria-expanded":o,onClick:w,children:[k,C,M]}),e[37]=o,e[38]=k,e[39]=C,e[40]=M,e[41]=b,e[42]=A):A=e[42];let $;e[43]!==u||e[44]!==r||e[45]!==n||e[46]!==o?($=o&&(0,Li.jsx)("div",{className:"cv-tool-group",children:n==="commands"?r.map(Dit):[...u.map(Oit),...r.filter(F=>!u.length||!F.tool.diffs?.length).map(jit)]}),e[43]=u,e[44]=r,e[45]=n,e[46]=o,e[47]=$):$=e[47];let N;return e[48]!==A||e[49]!==$?(N=(0,Li.jsxs)(Li.Fragment,{children:[A,$]}),e[48]=A,e[49]=$,e[50]=N):N=e[50],N}function jit(t,e){return(0,Li.jsx)(XT,{item:t},t.tool.id||e)}function Oit(t){return(0,Li.jsx)(KT,{file:t},t.path)}function Dit(t,e){return(0,Li.jsx)(x9e,{item:t},t.tool.id||e)}function Fit(t){return t.path}function Bit(t){return!t}function zit(t,e){return t+e.deletions}function qit(t,e){return t+e.additions}function Hit(t){return t.tool}var E9e=R(qe(),1),YT=R(Q(),1);var bs=R(ee(),1);function Git(t){switch(t){case"edited":return(0,bs.jsx)(e2,{size:16,strokeWidth:1.1});case"read":case"searched":return(0,bs.jsx)(n2,{});case"web":return(0,bs.jsx)(Rl,{size:16,strokeWidth:1.1});case"ran":return(0,bs.jsx)(t2,{});default:return(0,bs.jsx)(Bk,{size:16,strokeWidth:1.2})}}function T9e(t){let e=(0,E9e.c)(24),{items:n,children:r}=t,[i,o]=(0,YT.useState)(!1),a=(0,YT.useId)(),s=i?a:void 0,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>o(Uit),e[0]=l):l=e[0];let c;e[1]!==n?(c=Git(qI(n)[0]),e[1]=n,e[2]=c):c=e[2];let u;e[3]!==c?(u=(0,bs.jsx)("span",{className:"cv-tool__icon",children:c}),e[3]=c,e[4]=u):u=e[4];let d;e[5]!==n?(d=eJ(n),e[5]=n,e[6]=d):d=e[6];let p;e[7]!==d?(p=(0,bs.jsx)("span",{className:"cv-tool__text",children:d}),e[7]=d,e[8]=p):p=e[8];let m=`cv-tool__chevron cv-rotor${i?" is-open":" is-hover"}`,f;e[9]!==m?(f=(0,bs.jsx)(Tc,{size:14,strokeWidth:1.2,className:m}),e[9]=m,e[10]=f):f=e[10];let h;e[11]!==i||e[12]!==s||e[13]!==u||e[14]!==p||e[15]!==f?(h=(0,bs.jsxs)("button",{type:"button",className:"cv-tool is-toggle is-strong","aria-expanded":i,"aria-controls":s,onClick:l,children:[u,p,f]}),e[11]=i,e[12]=s,e[13]=u,e[14]=p,e[15]=f,e[16]=h):h=e[16];let x;e[17]!==r||e[18]!==a||e[19]!==i?(x=i&&(0,bs.jsx)("div",{className:"cv-tool-run",id:a,children:r}),e[17]=r,e[18]=a,e[19]=i,e[20]=x):x=e[20];let g;return e[21]!==x||e[22]!==h?(g=(0,bs.jsxs)(bs.Fragment,{children:[h,x]}),e[21]=x,e[22]=h,e[23]=g):g=e[23],g}function Uit(t){return!t}var R9e=R(Q(),1),QT=(0,R9e.createContext)({});var Mi=R(ee(),1);function A9e(t){let e=(0,JT.c)(12),{row:n,expanded:r,onToggle:i}=t,o=ve(),a;e[0]!==n||e[1]!==o?(a=UI(o,n),e[0]=n,e[1]=o,e[2]=a):a=e[2];let s;e[3]!==a?(s=(0,Mi.jsx)("span",{className:"cv-worked__label",children:a}),e[3]=a,e[4]=s):s=e[4];let l=`cv-worked__chevron cv-rotor${r?" is-open":""}`,c;e[5]!==l?(c=(0,Mi.jsx)(Tc,{size:14,strokeWidth:1.2,className:l}),e[5]=l,e[6]=c):c=e[6];let u;return e[7]!==r||e[8]!==i||e[9]!==s||e[10]!==c?(u=(0,Mi.jsxs)("button",{type:"button",className:"cv-worked has-divider is-toggle","aria-expanded":r,onClick:i,children:[s,c]}),e[7]=r,e[8]=i,e[9]=s,e[10]=c,e[11]=u):u=e[11],u}function Vit(t,e){switch(t.type){case"group":return(0,Mi.jsx)(M9e,{kind:t.kind,items:t.items},t.items[0].tool.id||e);case"message":return(0,Mi.jsx)(h9e,{item:t.item,message:t.message},t.item.tool.id||e);case"item":return t.item.tool?(0,Mi.jsx)(XT,{item:t.item},t.item.tool.id||e):(0,Mi.jsx)("div",{className:"cv-tool cv-thought",children:(0,Mi.jsx)("span",{className:"cv-tool__text",children:t.item.text})},e)}}function tR(t){let e=(0,JT.c)(13),{row:n}=t,r=n.items,i;e[0]!==r?(i=r??[],e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o=d9e(i),e[2]=i,e[3]=o):o=e[3];let a=o,s;e[4]!==a?(s=a.map(Vit),e[4]=a,e[5]=s):s=e[5];let l=s,c;e[6]!==a.length||e[7]!==r||e[8]!==l||e[9]!==n.settled?(c=n.settled&&a.length>1&&Xw(r??[])?(0,Mi.jsx)(T9e,{items:r??[],children:l}):l,e[6]=a.length,e[7]=r,e[8]=l,e[9]=n.settled,e[10]=c):c=e[10];let u;return e[11]!==c?(u=(0,Mi.jsx)("div",{className:"cv-tools",children:c}),e[11]=c,e[12]=u):u=e[12],u}var Zit=new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit"});function $9e(t){let e=(0,JT.c)(33),{row:n}=t,r=ve(),[i,o]=(0,eR.useState)(!1),{fork:a,retry:s}=(0,eR.useContext)(QT),l=n.text,c=n.prompt,u=n.seq,d=n.status==="failed"||n.status==="error",p;e[0]!==n||e[1]!==r?(p=!n.folded&&(0,Mi.jsx)("span",{className:"cv-turn-summary",children:UI(r,n)}),e[0]=n,e[1]=r,e[2]=p):p=e[2];let m;e[3]!==i||e[4]!==r||e[5]!==l?(m=l&&(0,Mi.jsx)("button",{type:"button",className:"cv-iconbtn","aria-label":r(i?"turn.copied":"turn.copy"),title:r(i?"turn.copied":"turn.copy"),onClick:()=>{ba(l).then(()=>o(!0),()=>o(!1))},children:(0,Mi.jsx)(s1,{})}),e[3]=i,e[4]=r,e[5]=l,e[6]=m):m=e[6];let f;e[7]!==c||e[8]!==s||e[9]!==r?(f=s&&c&&(0,Mi.jsx)("button",{type:"button",className:"cv-iconbtn","aria-label":r("turn.retry"),title:r("turn.retryLabel"),onClick:()=>s(c),children:(0,Mi.jsx)(Fre,{})}),e[7]=c,e[8]=s,e[9]=r,e[10]=f):f=e[10];let h;e[11]!==a||e[12]!==u||e[13]!==r?(h=a&&u!==void 0&&(0,Mi.jsx)("button",{type:"button",className:"cv-iconbtn","aria-label":r("turn.fork"),title:r("turn.fork"),onClick:()=>a(u),children:(0,Mi.jsx)(qre,{})}),e[11]=a,e[12]=u,e[13]=r,e[14]=h):h=e[14];let x;e[15]!==d||e[16]!==n.error||e[17]!==r?(x=d&&(0,Mi.jsx)("span",{className:"cv-turn-note",children:n.error||r("turn.failed")}),e[15]=d,e[16]=n.error,e[17]=r,e[18]=x):x=e[18];let g;e[19]!==n.at?(g=new Date(n.at).toISOString(),e[19]=n.at,e[20]=g):g=e[20];let y;e[21]!==n.at?(y=Zit.format(n.at),e[21]=n.at,e[22]=y):y=e[22];let b;e[23]!==g||e[24]!==y?(b=(0,Mi.jsx)("time",{className:"cv-turn-time",dateTime:g,children:y}),e[23]=g,e[24]=y,e[25]=b):b=e[25];let w;return e[26]!==p||e[27]!==m||e[28]!==f||e[29]!==h||e[30]!==x||e[31]!==b?(w=(0,Mi.jsxs)("div",{className:"cv-turn-actions",children:[p,m,f,h,x,b]}),e[26]=p,e[27]=m,e[28]=f,e[29]=h,e[30]=x,e[31]=b,e[32]=w):w=e[32],w}var Jm=R(qe(),1),G8=R(Q(),1);function Wit(t){let e=new Map;for(let n of t)if(n.kind==="activity")for(let r of n.items??[]){let i=r.tool;if(!(!i||i.status==="failed"))for(let o of i.diffs??[])e.set(o.path,[...e.get(o.path)??[],o])}return e}function Kit(t){let e=t[0],n=t[t.length-1];if(!e||!n||!e.path.startsWith("/"))return{kind:"cannot"};for(let r=1;r<t.length;r++)if(t[r].oldText!==t[r-1].newText)return{kind:"cannot"};return n.newText===""&&t.some(r=>r.oldText)?{kind:"cannot"}:e.oldText===void 0?{kind:"trash",after:n.newText}:{kind:"revert",before:e.oldText,after:n.newText}}function I9e(t,e,n){let r=Wit(e);return{turnId:t,files:n.map(i=>({path:i.path,added:i.additions,removed:i.deletions,undo:Kit(r.get(i.path)??[])}))}}function XU(t){return t.flatMap(e=>e.undo.kind==="revert"?[{path:e.path,before:e.undo.before,after:e.undo.after}]:e.undo.kind==="trash"?[{path:e.path,before:null,after:e.undo.after}]:[])}var Xit=new Set(["reverted","trashed","wouldRevert","wouldTrash","changed","cannotUndo","outsideRoots"]);function YU(t){let e=(t&&typeof t=="object"?t.files:void 0)??[],n=new Map;if(!Array.isArray(e))return n;for(let r of e){if(!r||typeof r!="object")continue;let{path:i,status:o}=r;typeof i=="string"&&n.set(i,typeof o=="string"&&Xit.has(o)?o:"cannotUndo")}return n}function N9e(t,e){let n=0,r=0,i=0;for(let o of t){let a=e.get(o.path);a==="wouldRevert"||a==="wouldTrash"?n+=1:a==="changed"?r+=1:i+=1}return{undo:n,changed:r,cannot:i}}var P9e=R(Q(),1);var nR=(0,P9e.createContext)(void 0);function QU(t){return t.kind==="activity"&&!jb(t)&&(t.items??[]).some(e=>e.tool?.kind==="edit"||e.tool?.kind==="fileChange")}var j9e=R(qe(),1),O9e=R(Q(),1);var D9e=(t,e)=>Nc("turn.undo",{files:t,apply:e});var F9e={phase:"idle"},eV=new Map,JU=new Set;function y5(t,e){eV.set(t,e);for(let n of JU)n()}function B9e(t){let e=(0,j9e.c)(2),n;return e[0]!==t?(n=()=>eV.get(t)??F9e,e[0]=t,e[1]=n):n=e[1],(0,O9e.useSyncExternalStore)(Yit,n)}function Yit(t){return JU.add(t),()=>JU.delete(t)}async function z9e(t,e){y5(t,{phase:"checking"});try{let n=YU(await D9e(XU(e),!1));y5(t,{phase:"confirm",dryRun:n,summary:N9e(e,n)})}catch{y5(t,{phase:"failed"})}}async function q9e(t,e){let n=eV.get(t);if(n?.phase!=="confirm")return;let r=e.filter(i=>{let o=n.dryRun.get(i.path);return o==="wouldRevert"||o==="wouldTrash"});y5(t,{phase:"undoing"});try{let i=YU(await D9e(XU(r),!0)),o=new Map(n.dryRun);for(let[a,s]of i)o.set(a,s);y5(t,{phase:"done",result:o})}catch{y5(t,{phase:"failed"})}}function H9e(t){y5(t,F9e)}var G9e=R(qe(),1),U9e=R(Q(),1),rR=new Set,tV=new Set;function V9e(t,e){if(rR.has(t)!==e){e?rR.add(t):rR.delete(t);for(let n of tV)n()}}function Z9e(t){let e=(0,G9e.c)(2),n;return e[0]!==t?(n=()=>rR.has(t),e[0]=t,e[1]=n):n=e[1],(0,U9e.useSyncExternalStore)(Qit,n)}function Qit(t){return tV.add(t),()=>tV.delete(t)}var $t=R(ee(),1);function X9e(t){let e=(0,Jm.c)(10),{row:n,onOpenDiff:r}=t,i=Kj(),o=(0,G8.useContext)(nR),a=o&&[...o].reverse().find(QU)?.id;if(i.show==="never"||i.scope==="session"&&o&&a!==n.id){let u;return e[0]!==n?(u=(0,$t.jsx)(tR,{row:n}),e[0]=n,e[1]=u):u=e[1],u}let s;e[2]!==n||e[3]!==o||e[4]!==i.scope?(s=i.scope==="session"&&o?o.filter(QU):[n],e[2]=n,e[3]=o,e[4]=i.scope,e[5]=s):s=e[5];let l=s,c;return e[6]!==r||e[7]!==n||e[8]!==l?(c=(0,$t.jsx)(Jit,{row:n,rows:l,onOpenDiff:r}),e[6]=r,e[7]=n,e[8]=l,e[9]=c):c=e[9],c}function Jit(t){let e=(0,Jm.c)(94),{row:n,rows:r,onOpenDiff:i}=t,o=ve(),a=Kj(),[s,l]=(0,G8.useState)(!1),c=Z9e(n.id),u=a.show!=="collapsed"||c,d;e[0]!==n.id?(d=me=>V9e(n.id,me),e[0]=n.id,e[1]=d):d=e[1];let p=d,m=r.flatMap(rot),f;e[2]!==r?(f=Sd([...r]),e[2]=r,e[3]=f):f=e[3];let h=f,x=(0,G8.useContext)(BT),g;e[4]!==x||e[5]!==n.id||e[6]!==r.length||e[7]!==h?(g=x&&r.length===1?x(n.id,h):FT(h,void 0),e[4]=x,e[5]=n.id,e[6]=r.length,e[7]=h,e[8]=g):g=e[8];let y=g,b=y.files,w;e[9]!==n.id||e[10]!==r||e[11]!==h?(w=I9e(n.id,r,h),e[9]=n.id,e[10]=r,e[11]=h,e[12]=w):w=e[12];let v=w,k=B9e(n.id),_=y.files===h?EO(m):[],L=[...b.map(not),..._.map(tot)],S=L.length,C=S===1&&b.length===1?b[0]:void 0,T=a.maxRows,M=C||!u?[]:s?L:L.slice(0,T),A=C?0:S-M.length,$=i&&b.length>0,N;e[13]!==v||e[14]!==n.ended?(N=n.ended===!0&&v.files.some(eot),e[13]=v,e[14]=n.ended,e[15]=N):N=e[15];let F=N,D;e[16]!==C||e[17]!==o||e[18]!==S?(D=C?o("tools.edited.file",{file:C.path.split("/").pop()??C.path}):S===1?o("edited.one"):o("tools.edited.files",{n:S}),e[16]=C,e[17]=o,e[18]=S,e[19]=D):D=e[19];let O=D,B;e[20]!==k?(B=me=>oot(k,me),e[20]=k,e[21]=B):B=e[21];let P=B,U="acpmux-edited",G;e[22]===Symbol.for("react.memo_cache_sentinel")?(G=(0,$t.jsx)("span",{className:"acpmux-edited-icon",children:(0,$t.jsx)(cot,{})}),e[22]=G):G=e[22];let j;e[23]!==O?(j=(0,$t.jsx)("div",{children:O}),e[23]=O,e[24]=j):j=e[24];let V;e[25]!==y.additions||e[26]!==y.deletions||e[27]!==b.length||e[28]!==i||e[29]!==$||e[30]!==n.id||e[31]!==C?.path||e[32]!==o?(V=$?(0,$t.jsxs)("button",{type:"button",className:"acpmux-edited-link",onClick:me=>i(n.id,C?.path,me.currentTarget),children:[o("edited.view"),(0,$t.jsx)(uot,{})]}):b.length>0&&(0,$t.jsx)(Gm,{additions:y.additions,deletions:y.deletions}),e[25]=y.additions,e[26]=y.deletions,e[27]=b.length,e[28]=i,e[29]=$,e[30]=n.id,e[31]=C?.path,e[32]=o,e[33]=V):V=e[33];let H;e[34]!==y.outside||e[35]!==o?(H=y.outside&&(0,$t.jsx)("span",{className:"acpmux-edited-outside",children:o("turn.outside.card")}),e[34]=y.outside,e[35]=o,e[36]=H):H=e[36];let ne;e[37]!==V||e[38]!==H?(ne=(0,$t.jsxs)("div",{className:"acpmux-edited-sub",children:[V,H]}),e[37]=V,e[38]=H,e[39]=ne):ne=e[39];let J;e[40]!==j||e[41]!==ne?(J=(0,$t.jsxs)("div",{className:"acpmux-edited-title",children:[j,ne]}),e[40]=j,e[41]=ne,e[42]=J):J=e[42];let W;e[43]!==v||e[44]!==n.id||e[45]!==o||e[46]!==k||e[47]!==F?(W=F&&(0,$t.jsx)(aot,{state:k,rowId:n.id,files:v.files,t:o}),e[43]=v,e[44]=n.id,e[45]=o,e[46]=k,e[47]=F,e[48]=W):W=e[48];let ie;e[49]!==i||e[50]!==$||e[51]!==n.id||e[52]!==C?.path||e[53]!==o?(ie=$&&(0,$t.jsx)("button",{type:"button",className:"acpmux-review-changes",onClick:me=>i(n.id,C?.path,me.currentTarget),children:o("edited.view")}),e[49]=i,e[50]=$,e[51]=n.id,e[52]=C?.path,e[53]=o,e[54]=ie):ie=e[54];let Z;e[55]!==u||e[56]!==p||e[57]!==a.show||e[58]!==C||e[59]!==o||e[60]!==S?(Z=!C&&S>0&&a.show==="collapsed"&&(0,$t.jsx)("button",{type:"button",className:"acpmux-edited-toggle","aria-expanded":u,"aria-label":o(u?"edited.hideFiles":"edited.showFiles"),onClick:()=>p(!u),children:(0,$t.jsx)(c5,{width:14,height:14,style:u?{transform:"rotate(180deg)"}:void 0})}),e[55]=u,e[56]=p,e[57]=a.show,e[58]=C,e[59]=o,e[60]=S,e[61]=Z):Z=e[61];let le;e[62]!==J||e[63]!==W||e[64]!==ie||e[65]!==Z?(le=(0,$t.jsxs)("div",{className:"acpmux-edited-head",children:[G,J,W,ie,Z]}),e[62]=J,e[63]=W,e[64]=ie,e[65]=Z,e[66]=le):le=e[66];let se;e[67]!==v||e[68]!==n.id||e[69]!==o||e[70]!==k.phase||e[71]!==k.summary?(se=k.phase==="confirm"&&(0,$t.jsx)(lot,{summary:k.summary,onUndo:()=>{q9e(n.id,v.files)},onCancel:()=>H9e(n.id),t:o}),e[67]=v,e[68]=n.id,e[69]=o,e[70]=k.phase,e[71]=k.summary,e[72]=se):se=e[72];let ge;e[73]!==i||e[74]!==n.id||e[75]!==C||e[76]!==P||e[77]!==o||e[78]!==k.phase?(ge=C&&k.phase==="done"&&(0,$t.jsx)(W9e,{status:P(C.path),path:C.path,rowId:n.id,onOpenDiff:i,t:o}),e[73]=i,e[74]=n.id,e[75]=C,e[76]=P,e[77]=o,e[78]=k.phase,e[79]=ge):ge=e[79];let ce=M.map(me=>{if(!me.file){let Be=me.path,_e=Be?Be.replace(/\/+$/,"").lastIndexOf("/"):-1;return(0,$t.jsx)("div",{className:"acpmux-edited-file",children:Be?(0,$t.jsxs)("span",{className:"acpmux-edited-path",title:Be,children:[(0,$t.jsx)(K9e,{dir:Be.slice(0,_e+1)}),(0,$t.jsx)("span",{className:"acpmux-edited-base",children:Be.slice(_e+1)})]}):(0,$t.jsx)("span",{className:"acpmux-edited-path",children:o("edited.unknownFile")})},me.key)}let Se=me.file,de=Se.displayPath.lastIndexOf("/"),Le=(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsxs)("span",{className:"acpmux-edited-path",title:Se.path,children:[(0,$t.jsx)(K9e,{dir:Se.displayPath.slice(0,de+1)}),(0,$t.jsx)("span",{className:"acpmux-edited-base",children:Se.displayPath.slice(de+1)})]}),(0,$t.jsx)(Gm,{additions:Se.additions,deletions:Se.deletions})]}),Ne=k.phase==="done"?P(Se.path):void 0;return(0,$t.jsxs)("div",{className:"acpmux-edited-entry",children:[i?(0,$t.jsx)("button",{type:"button",className:"acpmux-edited-file",onClick:Be=>i(n.id,Se.path,Be.currentTarget),children:Le}):(0,$t.jsx)("div",{className:"acpmux-edited-file",children:Le}),Ne&&(0,$t.jsx)(W9e,{status:Ne,path:Se.path,rowId:n.id,onOpenDiff:i,t:o})]},me.key)}),be;e[80]!==T||e[81]!==A||e[82]!==u||e[83]!==s||e[84]!==C||e[85]!==o||e[86]!==S?(be=u&&(A>0||s)&&!C&&S>T&&(0,$t.jsxs)("button",{type:"button",className:"acpmux-edited-more","aria-expanded":s,onClick:()=>l(!s),children:[s?o("edited.fewer"):A===1?o("edited.more.one"):o("edited.more.other",{n:A}),(0,$t.jsx)(c5,{width:14,height:14,style:s?{transform:"rotate(180deg)"}:void 0})]}),e[80]=T,e[81]=A,e[82]=u,e[83]=s,e[84]=C,e[85]=o,e[86]=S,e[87]=be):be=e[87];let ke;return e[88]!==le||e[89]!==se||e[90]!==ge||e[91]!==ce||e[92]!==be?(ke=(0,$t.jsxs)("div",{className:U,children:[le,se,ge,ce,be]}),e[88]=le,e[89]=se,e[90]=ge,e[91]=ce,e[92]=be,e[93]=ke):ke=e[93],ke}function eot(t){return t.undo.kind!=="cannot"}function tot(t){return{key:`plain-${t.key}`,path:t.path}}function not(t){return{key:t.path,file:t}}function rot(t){return(t.items??[]).filter(iot)}function iot(t){return t.tool?.kind==="edit"||t.tool?.kind==="fileChange"}function oot(t,e){if(t.phase!=="done")return"cannot";let n=t.result.get(e);return n==="reverted"||n==="trashed"?"undone":n==="changed"?"changed":"cannot"}function aot(t){let e=(0,Jm.c)(22),{state:n,rowId:r,files:i,t:o}=t;if(n.phase==="done"){let p;e[0]!==n.result?(p=[...n.result.values()].filter(sot),e[0]=n.result,e[1]=p):p=e[1];let m=p.length,f=i.length,h;e[2]!==o||e[3]!==f||e[4]!==m?(h=m===f?o("edited.undone"):o("edited.undonePartial",{n:m,total:f}),e[2]=o,e[3]=f,e[4]=m,e[5]=h):h=e[5];let x;return e[6]!==h?(x=(0,$t.jsx)("output",{className:"acpmux-edited-undone",children:h}),e[6]=h,e[7]=x):x=e[7],x}let a=n.phase==="checking"||n.phase==="undoing"||n.phase==="confirm",s;e[8]!==o?(s=o("edited.undoHostLabel"),e[8]=o,e[9]=s):s=e[9];let l;e[10]!==i||e[11]!==r?(l=()=>{z9e(r,i)},e[10]=i,e[11]=r,e[12]=l):l=e[12];let c;e[13]!==n.phase||e[14]!==o?(c=n.phase==="undoing"?o("edited.undoing"):n.phase==="failed"?o("edited.undoFailed"):o("edited.undo"),e[13]=n.phase,e[14]=o,e[15]=c):c=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=(0,$t.jsx)(Dre,{size:14}),e[16]=u):u=e[16];let d;return e[17]!==a||e[18]!==s||e[19]!==l||e[20]!==c?(d=(0,$t.jsxs)("button",{type:"button",className:"acpmux-edited-undo",disabled:a,title:s,onClick:l,children:[c,u]}),e[17]=a,e[18]=s,e[19]=l,e[20]=c,e[21]=d):d=e[21],d}function sot(t){return t==="reverted"||t==="trashed"}function lot(t){let e=(0,Jm.c)(31),{summary:n,onUndo:r,onCancel:i,t:o}=t,a;e[0]!==o?(a=o("edited.undo"),e[0]=o,e[1]=a):a=e[1];let s;e[2]!==n.undo||e[3]!==o?(s=n.undo===0?o("edited.undoNothing"):n.undo===1?o("edited.undoConfirm.one"):o("edited.undoConfirm.other",{n:n.undo}),e[2]=n.undo,e[3]=o,e[4]=s):s=e[4];let l;e[5]!==s?(l=(0,$t.jsx)("div",{children:s}),e[5]=s,e[6]=l):l=e[6];let c;e[7]!==n.changed||e[8]!==o?(c=n.changed>0&&(0,$t.jsx)("div",{className:"acpmux-edited-confirm-skip",children:n.changed===1?o("edited.undoSkip.changed.one"):o("edited.undoSkip.changed.other",{n:n.changed})}),e[7]=n.changed,e[8]=o,e[9]=c):c=e[9];let u;e[10]!==n.cannot||e[11]!==o?(u=n.cannot>0&&(0,$t.jsx)("div",{className:"acpmux-edited-confirm-skip",children:n.cannot===1?o("edited.undoSkip.cannot.one"):o("edited.undoSkip.cannot.other",{n:n.cannot})}),e[10]=n.cannot,e[11]=o,e[12]=u):u=e[12];let d;e[13]!==l||e[14]!==c||e[15]!==u?(d=(0,$t.jsxs)("div",{className:"acpmux-edited-confirm-text",children:[l,c,u]}),e[13]=l,e[14]=c,e[15]=u,e[16]=d):d=e[16];let p;e[17]!==o?(p=o("edited.cancel"),e[17]=o,e[18]=p):p=e[18];let m;e[19]!==i||e[20]!==p?(m=(0,$t.jsx)("button",{type:"button",className:"acpmux-edited-cancel",onClick:i,children:p}),e[19]=i,e[20]=p,e[21]=m):m=e[21];let f;e[22]!==r||e[23]!==n.undo||e[24]!==o?(f=n.undo>0&&(0,$t.jsx)("button",{type:"button",className:"acpmux-edited-undo acpmux-edited-undo-confirm",onClick:r,children:o("edited.undo")}),e[22]=r,e[23]=n.undo,e[24]=o,e[25]=f):f=e[25];let h;return e[26]!==a||e[27]!==d||e[28]!==m||e[29]!==f?(h=(0,$t.jsxs)("div",{className:"acpmux-edited-confirm",role:"alertdialog","aria-label":a,children:[d,m,f]}),e[26]=a,e[27]=d,e[28]=m,e[29]=f,e[30]=h):h=e[30],h}function W9e(t){let e=(0,Jm.c)(15),{status:n,path:r,rowId:i,onOpenDiff:o,t:a}=t,s=`acpmux-edited-status acpmux-edited-status-${n}`,l;e[0]!==n||e[1]!==a?(l=a(n==="undone"?"edited.status.undone":n==="changed"?"edited.status.changed":"edited.status.cannot"),e[0]=n,e[1]=a,e[2]=l):l=e[2];let c;e[3]!==l?(c=(0,$t.jsx)("span",{children:l}),e[3]=l,e[4]=c):c=e[4];let u;e[5]!==o||e[6]!==r||e[7]!==i||e[8]!==n||e[9]!==a?(u=n==="changed"&&o&&(0,$t.jsx)("button",{type:"button",className:"acpmux-edited-viewdiff",onClick:p=>o(i,r,p.currentTarget),children:a("edited.viewDiff")}),e[5]=o,e[6]=r,e[7]=i,e[8]=n,e[9]=a,e[10]=u):u=e[10];let d;return e[11]!==s||e[12]!==c||e[13]!==u?(d=(0,$t.jsxs)("div",{className:s,children:[c,u]}),e[11]=s,e[12]=c,e[13]=u,e[14]=d):d=e[14],d}function K9e(t){let e=(0,Jm.c)(13),{dir:n}=t;if(!n)return null;let r=n.indexOf("/")+1,i;e[0]!==r||e[1]!==n?(i=n.slice(0,r),e[0]=r,e[1]=n,e[2]=i):i=e[2];let o=i,a;e[3]!==r||e[4]!==n?(a=n.slice(r),e[3]=r,e[4]=n,e[5]=a):a=e[5];let s=a,l;e[6]!==o?(l=(0,$t.jsx)("span",{className:"acpmux-edited-dir-head",children:o}),e[6]=o,e[7]=l):l=e[7];let c;e[8]!==s?(c=s&&(0,$t.jsx)("span",{className:"acpmux-edited-dir-tail",children:(0,$t.jsx)("bdi",{children:s})}),e[8]=s,e[9]=c):c=e[9];let u;return e[10]!==l||e[11]!==c?(u=(0,$t.jsxs)("span",{className:"acpmux-edited-dir",children:[l,c]}),e[10]=l,e[11]=c,e[12]=u):u=e[12],u}var cot=()=>{let t=(0,Jm.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,$t.jsx)("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.4,strokeLinecap:"round","aria-hidden":"true",children:(0,$t.jsx)("path",{d:"M8 2.5v6M5 5.5h6M5 12.5h6"})}),t[0]=e):e=t[0],e},uot=()=>{let t=(0,Jm.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,$t.jsx)("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,$t.jsx)("path",{d:"M3.5 8.5l5-5M4.5 3.5h4v4"})}),t[0]=e):e=t[0],e};var ewe=R(qe(),1),twe=R(Q(),1);var Y9e=R(qe(),1),Q9e=R(Q(),1);var dl=R(ee(),1);function J9e(t){let e=(0,Y9e.c)(37),{url:n,onOpenInPane:r}=t,i=ve(),[o,a]=(0,Q9e.useState)(),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=S=>{S&&vd("browser.list",{}).then(C=>{let T=C?.browsers;a(Array.isArray(T)?T.filter(dot):[])})},e[0]=s):s=e[0];let l=s,c;e[1]!==i?(c=i("preview.openIn"),e[1]=i,e[2]=c):c=e[2];let u;e[3]!==i?(u=i("preview.openIn"),e[3]=i,e[4]=u):u=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,dl.jsx)(Fk,{size:12}),e[5]=d):d=e[5];let p;e[6]!==c||e[7]!==u?(p=(0,dl.jsxs)(Z1,{className:"acpmux-review-changes acpmux-open-in",label:c,children:[u,d]}),e[6]=c,e[7]=u,e[8]=p):p=e[8];let m;e[9]!==r||e[10]!==n?(m=()=>r(n),e[9]=r,e[10]=n,e[11]=m):m=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,dl.jsx)(Rl,{size:16,className:"acpmux-open-in__icon"}),e[12]=f):f=e[12];let h;e[13]!==i?(h=i("preview.cmuxBrowser"),e[13]=i,e[14]=h):h=e[14];let x;e[15]!==m||e[16]!==h?(x=(0,dl.jsxs)(jd,{onSelect:m,children:[f,h]}),e[15]=m,e[16]=h,e[17]=x):x=e[17];let g;e[18]!==o||e[19]!==n?(g=o?.map(S=>(0,dl.jsxs)(jd,{onSelect:()=>{vd("browser.openIn",{url:n,browserId:S.id})},children:[S.icon?.startsWith("data:image/")?(0,dl.jsx)("img",{className:"acpmux-open-in__icon",src:S.icon,alt:"",width:16,height:16}):(0,dl.jsx)(Rl,{size:16,className:"acpmux-open-in__icon"}),S.name]},S.id)),e[18]=o,e[19]=n,e[20]=g):g=e[20];let y;e[21]===Symbol.for("react.memo_cache_sentinel")?(y=(0,dl.jsx)(xy,{}),e[21]=y):y=e[21];let b;e[22]!==n?(b=()=>{ba(n)},e[22]=n,e[23]=b):b=e[23];let w;e[24]===Symbol.for("react.memo_cache_sentinel")?(w=(0,dl.jsx)(s1,{size:16,className:"acpmux-open-in__icon"}),e[24]=w):w=e[24];let v;e[25]!==i?(v=i("preview.copyLink"),e[25]=i,e[26]=v):v=e[26];let k;e[27]!==b||e[28]!==v?(k=(0,dl.jsxs)(jd,{onSelect:b,children:[w,v]}),e[27]=b,e[28]=v,e[29]=k):k=e[29];let _;e[30]!==g||e[31]!==k||e[32]!==x?(_=(0,dl.jsxs)(xm,{align:"end",children:[x,g,y,k]}),e[30]=g,e[31]=k,e[32]=x,e[33]=_):_=e[33];let L;return e[34]!==_||e[35]!==p?(L=(0,dl.jsxs)(V1,{onOpenChange:l,children:[p,_]}),e[34]=_,e[35]=p,e[36]=L):L=e[36],L}function dot(t){return typeof t.id=="string"}var ys=R(ee(),1);function nwe(t){let e=(0,ewe.c)(48),{url:n,onOpen:r}=t,i=ve(),o;e[0]!==n?(o=new URL(n),e[0]=n,e[1]=o):o=e[1];let a=o,s=`${a.host}${a.pathname==="/"?"":a.pathname}${a.search}`,l;e[2]!==n?(l=nJ(n),e[2]=n,e[3]=l):l=e[3];let c=l,u=typeof location<"u"&&a.origin===location.origin,[d,p]=(0,twe.useState)(!1),m=IC(n),f;e[4]!==m?(f=(0,ys.jsx)("span",{className:"acpmux-turn-preview-icon",children:m?.icon?(0,ys.jsx)("img",{src:m.icon,alt:"",width:16,height:16}):(0,ys.jsx)(Rl,{size:16})}),e[4]=m,e[5]=f):f=e[5];let h=m?.title?`${m.title} +${n}`:n,x;e[6]!==m?(x=m?.title?(0,ys.jsx)("span",{className:"acpmux-turn-preview-title",children:m.title}):null,e[6]=m,e[7]=x):x=e[7];let g;e[8]!==s||e[9]!==h||e[10]!==x||e[11]!==n?(g=(0,ys.jsxs)("a",{className:"acpmux-turn-preview-address",href:n,title:h,children:[x,s]}),e[8]=s,e[9]=h,e[10]=x,e[11]=n,e[12]=g):g=e[12];let y;e[13]!==s||e[14]!==i?(y=i("preview.openLabel",{address:s}),e[13]=s,e[14]=i,e[15]=y):y=e[15];let b;e[16]!==r||e[17]!==n?(b=()=>r(n),e[16]=r,e[17]=n,e[18]=b):b=e[18];let w;e[19]!==i?(w=i("preview.open"),e[19]=i,e[20]=w):w=e[20];let v;e[21]!==y||e[22]!==b||e[23]!==w?(v=(0,ys.jsx)("button",{type:"button",className:"acpmux-review-changes","aria-label":y,onClick:b,children:w}),e[21]=y,e[22]=b,e[23]=w,e[24]=v):v=e[24];let k;e[25]!==r||e[26]!==n?(k=(0,ys.jsx)(J9e,{url:n,onOpenInPane:r}),e[25]=r,e[26]=n,e[27]=k):k=e[27];let _;e[28]!==v||e[29]!==k||e[30]!==f||e[31]!==g?(_=(0,ys.jsxs)("div",{className:"acpmux-turn-preview-head",children:[f,g,v,k]}),e[28]=v,e[29]=k,e[30]=f,e[31]=g,e[32]=_):_=e[32];let L;e[33]!==s||e[34]!==d||e[35]!==u||e[36]!==i?(L=!u&&!d&&(0,ys.jsx)("div",{className:"acpmux-turn-preview-unloaded",children:(0,ys.jsx)("button",{type:"button",className:"acpmux-turn-preview-load","aria-label":i("preview.loadLabel",{address:s}),onClick:()=>p(!0),children:i("preview.load")})}),e[33]=s,e[34]=d,e[35]=u,e[36]=i,e[37]=L):L=e[37];let S;e[38]!==s||e[39]!==c||e[40]!==d||e[41]!==r||e[42]!==u?(S=!u&&d&&(0,ys.jsx)("div",{className:"acpmux-turn-preview-frame","aria-hidden":"true",onClick:()=>r(c),children:(0,ys.jsx)("iframe",{src:c,title:s,tabIndex:-1,referrerPolicy:"no-referrer",sandbox:"allow-scripts allow-same-origin"})}),e[38]=s,e[39]=c,e[40]=d,e[41]=r,e[42]=u,e[43]=S):S=e[43];let C;return e[44]!==_||e[45]!==L||e[46]!==S?(C=(0,ys.jsxs)("div",{className:"acpmux-turn-preview",children:[_,L,S]}),e[44]=_,e[45]=L,e[46]=S,e[47]=C):C=e[47],C}var rwe=R(qe(),1);var owe=R(ee(),1);function iwe(t){let e=(0,rwe.c)(12),{row:n,now:r}=t,i,o,a,s;if(e[0]!==n.at||e[1]!==r){s=Symbol.for("react.early_return_sentinel");e:{let c=r===void 0?Date.now():r;if(!Yw(n.at)){s=null;break e}i="cv-date-line",e[6]!==n.at?(o=new Date(n.at).toISOString(),e[6]=n.at,e[7]=o):o=e[7],a=oJ(n.at,{now:c,locale:"en-US"})}e[0]=n.at,e[1]=r,e[2]=i,e[3]=o,e[4]=a,e[5]=s}else i=e[2],o=e[3],a=e[4],s=e[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let l;return e[8]!==i||e[9]!==o||e[10]!==a?(l=(0,owe.jsx)("time",{className:i,dateTime:o,children:a}),e[8]=i,e[9]=o,e[10]=a,e[11]=l):l=e[11],l}var awe=R(qe(),1),nV=R(Q(),1);var ca=R(ee(),1),pot=9;function mot(t,e){let n=e.trim().toLowerCase();return[...t].filter(r=>r.status!=="closed").sort((r,i)=>(i.updatedAt??0)-(r.updatedAt??0)).filter(r=>!n||cwe(r).toLowerCase().includes(n)).slice(0,pot)}function swe(){return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: no-preference)").matches:!1}function lwe(t,e,n){let r=n?"closing":"closed";switch(e){case"toggle":return t==="open"?r:"open";case"close":return t==="open"?r:t;case"exited":return t==="closing"?"closed":t}}var cwe=t=>t.displayTitle??NO(t);function uwe(t){let e=(0,awe.c)(35),{sessions:n,onSelect:r,onNewChat:i,onClose:o,closing:a,onExited:s}=t,l=a===void 0?!1:a,c=ve(),[u,d]=(0,nV.useState)(""),[p,m]=(0,nV.useState)(0),f;e[0]!==r?(f=(H,ne)=>({key:H.sessionId,label:cwe(H),meta:H.cwd?wi(H.cwd):void 0,shortcut:`\u2303${ne+1}`,run:()=>r(H.sessionId)}),e[0]=r,e[1]=f):f=e[1];let h=mot(n,u).map(f),x=u.trim().toLowerCase(),g=Ga(cl.searchChats),y=[{key:"new-chat",label:c("search.newChat"),run:i}].filter(H=>!x||H.label.toLowerCase().includes(x)),b=[...h,...y],w=Math.min(p,Math.max(b.length-1,0)),v=H=>{if(!(H.nativeEvent.isComposing||H.nativeEvent.keyCode===229))if(H.key==="ArrowDown"||H.key==="ArrowUp"){H.preventDefault();let ne=H.key==="ArrowDown"?1:-1;m(b.length?(w+ne+b.length)%b.length:0)}else H.key==="Enter"?(H.preventDefault(),b[w]?.run()):H.key==="Escape"?(H.preventDefault(),H.stopPropagation(),o()):H.ctrlKey&&/^[1-9]$/.test(H.key)&&(H.preventDefault(),h[Number(H.key)-1]?.run())},k;e[2]!==w?(k=(H,ne)=>(0,ca.jsx)("li",{children:(0,ca.jsxs)("button",{type:"button",className:`acpmux-search-row${ne===w?" is-active":""}`,"aria-current":ne===w||void 0,onMouseMove:()=>ne!==w&&m(ne),onClick:H.run,children:[(0,ca.jsx)("span",{className:"acpmux-search-label",children:H.label}),H.meta&&(0,ca.jsx)("span",{className:"acpmux-search-meta",children:H.meta}),H.shortcut&&(0,ca.jsx)("kbd",{className:"acpmux-search-kbd",children:H.shortcut})]})},H.key),e[2]=w,e[3]=k):k=e[3];let _=k,L;e[4]!==c?(L=c("search.close"),e[4]=c,e[5]=L):L=e[5];let S;e[6]!==o||e[7]!==L?(S=(0,ca.jsx)("button",{type:"button",className:"acpmux-search-scrim","aria-label":L,tabIndex:-1,onClick:o}),e[6]=o,e[7]=L,e[8]=S):S=e[8];let C;e[9]!==c?(C=c("search.title"),e[9]=c,e[10]=C):C=e[10];let T;e[11]!==l||e[12]!==s?(T=H=>{l&&H.target===H.currentTarget&&s?.()},e[11]=l,e[12]=s,e[13]=T):T=e[13];let M;e[14]!==c?(M=c("search.title"),e[14]=c,e[15]=M):M=e[15];let A;e[16]!==c||e[17]!==g?(A=lu(c("search.title"),g),e[16]=c,e[17]=g,e[18]=A):A=e[18];let $;e[19]!==c?($=c("search.placeholder"),e[19]=c,e[20]=$):$=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=H=>{d(H.target.value),m(0)},e[21]=N):N=e[21];let F="acpmux-search-results",D=h.length>0&&(0,ca.jsx)("div",{className:"acpmux-search-section",children:c("search.chats")}),O;e[22]!==h||e[23]!==_?(O=h.map(_),e[22]=h,e[23]=_,e[24]=O):O=e[24];let B;e[25]!==O?(B=(0,ca.jsx)("ul",{children:O}),e[25]=O,e[26]=B):B=e[26];let P=y.length>0&&(0,ca.jsx)("div",{className:"acpmux-search-section",children:c("search.quick")}),U=y.map((H,ne)=>_(H,h.length+ne)),G;e[27]!==U?(G=(0,ca.jsx)("ul",{children:U}),e[27]=U,e[28]=G):G=e[28];let j=b.length===0&&(0,ca.jsx)("div",{className:"acpmux-search-section",children:c("search.none")}),V;return e[29]!==D||e[30]!==B||e[31]!==P||e[32]!==G||e[33]!==j?(V=(0,ca.jsxs)("div",{className:F,children:[D,B,P,G,j]}),e[29]=D,e[30]=B,e[31]=P,e[32]=G,e[33]=j,e[34]=V):V=e[34],(0,ca.jsxs)("div",{className:`acpmux-search-layer${l?" is-closing":""}`,"aria-hidden":l||void 0,children:[S,(0,ca.jsxs)("div",{className:"acpmux-search",role:"dialog","aria-modal":"true","aria-label":C,onAnimationEnd:T,children:[(0,ca.jsx)("input",{className:"acpmux-search-input",autoFocus:!0,type:"search",spellCheck:!1,readOnly:l,"aria-label":M,title:A,placeholder:$,value:u,onChange:N,onKeyDown:v}),V]})]})}var mwe="cmux",fot=/^[A-Za-z][A-Za-z0-9+.-]*$/,dwe=/^[A-Za-z0-9._-]{1,200}$/,oR;function fwe(t,e){oR=typeof t=="string"&&fot.test(t)?t:e}function hwe(t,e){if(!(!oR||!dwe.test(t))){if(e===void 0)return`${oR}://session/${t}`;if(dwe.test(e))return`${oR}://session/${t}#turn-${e}`}}var pwe="acpmux-turn-revealed",hot=1600,got=5e3,bot=100;function yot(t,e=document){for(let n of e.querySelectorAll("[data-turn-id]"))if(n.dataset.turnId===t)return n.scrollIntoView({block:"center"}),n.classList.add(pwe),setTimeout(()=>n.classList.remove(pwe),hot),!0;return!1}var iR;function rV(t,e=document,{waitMs:n=got,pollMs:r=bot}={}){return iR?.(),new Promise(i=>{let o=Date.now()+n,a,s=u=>{a!==void 0&&clearTimeout(a),iR===l&&(iR=void 0),i(u)},l=()=>s(!1),c=()=>{a=void 0,yot(t,e)?s(!0):Date.now()>=o?s(!1):a=setTimeout(c,r)};iR=l,c()})}var gwe=R(qe(),1);var B3=R(ee(),1);function bwe(t){let e=(0,gwe.c)(5),{status:n,detail:r}=t,i;e[0]!==r||e[1]!==n?(i=n&&(0,B3.jsxs)("output",{className:"acpmux-status",title:r,"aria-label":r,children:[(0,B3.jsx)(la,{name:"status.warning",size:13}),(0,B3.jsx)("span",{children:n})]}),e[0]=r,e[1]=n,e[2]=i):i=e[2];let o;return e[3]!==i?(o=(0,B3.jsx)("div",{className:"acpmux-header-status-slot",children:i}),e[3]=i,e[4]=o):o=e[4],o}var iV=R(qe(),1),ep=R(Q(),1);var ir=R(ee(),1),xs={terminal:"splitRight",browser:"splitBrowserRight",rename:"renameTab",pin:"palette.toggleTabPin",moveRight:"moveSurfaceToPaneRight",newWorkspace:"palette.moveTabToNewWorkspace",close:"closeTab"};function ywe(t){let e=(0,iV.c)(32),{changes:n,changesOpen:r,onChanges:i,onTerminal:o,onBrowser:a,tabTools:s,summary:l,menu:c,onMenuOpen:u,expand:d,onExpanded:p}=t,m=s===void 0?!0:s,f=ve(),h=Ga(xs.terminal),x=Ga(xs.browser),g;e[0]!==n||e[1]!==f?(g=n?`${f("header.changes")}: +${n.additions} -${n.deletions}`:f("header.changes"),e[0]=n,e[1]=f,e[2]=g):g=e[2];let y=g,b;e[3]!==f?(b=f("header.changes"),e[3]=f,e[4]=b):b=e[4];let w=!n,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=(0,ir.jsx)(la,{name:"diff.file",size:15}),e[5]=v):v=e[5];let k;e[6]!==y||e[7]!==r||e[8]!==i||e[9]!==b||e[10]!==w?(k=(0,ir.jsx)("button",{type:"button",className:"acpmux-header-changes","aria-pressed":r,"aria-label":y,title:b,disabled:w,onClick:i,children:v}),e[6]=y,e[7]=r,e[8]=i,e[9]=b,e[10]=w,e[11]=k):k=e[11];let _;e[12]!==x||e[13]!==a||e[14]!==o||e[15]!==f||e[16]!==m||e[17]!==h?(_=m&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("button",{type:"button",className:"acpmux-header-tool","aria-label":f("header.terminal"),title:lu(f("header.terminal"),h),onClick:o,children:(0,ir.jsx)(la,{name:"terminal",size:15})}),(0,ir.jsx)("button",{type:"button",className:"acpmux-header-tool","aria-label":f("header.browser"),title:lu(f("header.browser"),x),onClick:a,children:(0,ir.jsx)(la,{name:"browser",size:15})})]}),e[12]=x,e[13]=a,e[14]=o,e[15]=f,e[16]=m,e[17]=h,e[18]=_):_=e[18];let L;e[19]!==c?(L=c(),e[19]=c,e[20]=L):L=e[20];let S=L.length===0,C;e[21]!==d||e[22]!==c||e[23]!==p||e[24]!==u||e[25]!==S?(C=(0,ir.jsx)(xot,{items:c,disabled:S,onOpen:u,expand:d,onExpanded:p}),e[21]=d,e[22]=c,e[23]=p,e[24]=u,e[25]=S,e[26]=C):C=e[26];let T;return e[27]!==l||e[28]!==C||e[29]!==k||e[30]!==_?(T=(0,ir.jsxs)("div",{className:"acpmux-header-tools",children:[k,_,l,C]}),e[27]=l,e[28]=C,e[29]=k,e[30]=_,e[31]=T):T=e[31],T}function xot({items:t,disabled:e,onOpen:n,expand:r,onExpanded:i}){let o=ve(),[a,s]=(0,ep.useState)(!1),[l,c]=(0,ep.useState)([]),[u,d]=(0,ep.useState)(),p=(0,ep.useRef)(0),m=b=>{let w=++p.current,v=()=>{w===p.current&&(c(t()),d(b),s(!0))};if(!n)return v();let k=new Promise(_=>window.setTimeout(_,150));Promise.race([n().catch(()=>{}),k]).then(v)},f=(0,ep.useRef)(m);f.current=m,(0,ep.useEffect)(()=>{r&&(f.current(r),i?.())},[r,i]);let h=o("chatMenu.open");(0,ep.useEffect)(()=>Xs(h,()=>f.current()),[h]);let x=b=>{if(b)return m();p.current++,s(!1)},g=u?l.find(b=>b!=="separator"&&b.key===u):void 0,y=g&&g!=="separator"?g.children:void 0;return(0,ir.jsxs)(V1,{open:a,onOpenChange:x,children:[(0,ir.jsx)(Z1,{className:"acpmux-header-tool",label:h,disabled:e,children:(0,ir.jsx)(la,{name:"action.more",size:15})}),(0,ir.jsx)(xm,{className:"acpmux-chat-menu-popover",align:"end",children:y?y.map(b=>(0,ir.jsx)(jd,{className:"acpmux-chat-menu-item",onSelect:b.onSelect,children:(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:b.label})},b.key)):l.map((b,w)=>b==="separator"?(0,ir.jsx)(xy,{},`separator-${w}`):b.children?(0,ir.jsx)(V1e,{className:"acpmux-chat-menu-item",popupClassName:"acpmux-chat-menu-popover",disabled:b.disabled,label:(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(la,{name:b.icon,size:15}),(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:b.label})]}),children:b.children.map(v=>(0,ir.jsx)(jd,{className:"acpmux-chat-menu-item",onSelect:v.onSelect,children:(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:v.label})},v.key))},b.key):(0,ir.jsx)(wot,{item:b},b.key))})]})}function wot(t){let e=(0,iV.c)(12),{item:n}=t,r=Ga(n.shortcutAction??""),i;e[0]!==n.icon?(i=(0,ir.jsx)(la,{name:n.icon,size:15}),e[0]=n.icon,e[1]=i):i=e[1];let o;e[2]!==n.label?(o=(0,ir.jsx)("span",{className:"acpmux-chat-menu-label",children:n.label}),e[2]=n.label,e[3]=o):o=e[3];let a;e[4]!==r?(a=r&&(0,ir.jsx)("kbd",{className:"acpmux-chat-menu-key",children:r}),e[4]=r,e[5]=a):a=e[5];let s;return e[6]!==n.disabled||e[7]!==n.onSelect||e[8]!==i||e[9]!==o||e[10]!==a?(s=(0,ir.jsxs)(jd,{className:"acpmux-chat-menu-item",disabled:n.disabled,onSelect:n.onSelect,children:[i,o,a]}),e[6]=n.disabled,e[7]=n.onSelect,e[8]=i,e[9]=o,e[10]=a,e[11]=s):s=e[11],s}var xwe=R(qe(),1);var oV=R(ee(),1);function wwe(){let t=(0,xwe.c)(4),e=ve(),n;t[0]!==e?(n=e("thinking"),t[0]=e,t[1]=n):n=t[1];let r;return t[2]!==n?(r=(0,oV.jsx)("output",{className:"cv-worked",children:(0,oV.jsx)("span",{className:"cv-thinking",children:n})}),t[2]=n,t[3]=r):r=t[3],r}var vwe=R(qe(),1),aR=R(Q(),1);var aV=R(ee(),1),vot=(t,e)=>`Working for ${GI(Math.max(0,e-t))}`;function kwe(t){let e=(0,vwe.c)(9),{row:n,now:r}=t,i=r===void 0?Date.now:r,[o,a]=(0,aR.useState)(i),s=n.durationMs!==void 0,l,c;e[0]!==s||e[1]!==i?(l=()=>{if(s)return;a(i());let m=setInterval(()=>a(i()),1e3);return()=>clearInterval(m)},c=[i,s],e[0]=s,e[1]=i,e[2]=l,e[3]=c):(l=e[2],c=e[3]),(0,aR.useEffect)(l,c);let u=s?n.at+n.durationMs:o,d;e[4]!==n.at||e[5]!==u?(d=vot(n.at,u),e[4]=n.at,e[5]=u,e[6]=d):d=e[6];let p;return e[7]!==d?(p=(0,aV.jsx)("div",{className:"cv-worked has-divider",children:(0,aV.jsx)("span",{className:"cv-worked__label",children:d})}),e[7]=d,e[8]=p):p=e[8],p}var Cwe=R(qe(),1);var x5=R(ee(),1);function _we(t){let e=(0,Cwe.c)(17),{message:n,retrying:r,onRetry:i}=t,o=ve(),a;e[0]!==n?(a=(0,x5.jsx)("p",{className:"acpmux-host-error-message selectable",children:n}),e[0]=n,e[1]=a):a=e[1];let s;e[2]!==o?(s=o("host.retrying"),e[2]=o,e[3]=s):s=e[3];let l;e[4]!==s?(l=(0,x5.jsx)("p",{className:"acpmux-host-error-hint",children:s}),e[4]=s,e[5]=l):l=e[5];let c=r?"host.retryQueued":"host.retry",u;e[6]!==o||e[7]!==c?(u=o(c),e[6]=o,e[7]=c,e[8]=u):u=e[8];let d;e[9]!==i||e[10]!==r||e[11]!==u?(d=(0,x5.jsx)("button",{type:"button",onClick:i,disabled:r,children:u}),e[9]=i,e[10]=r,e[11]=u,e[12]=d):d=e[12];let p;return e[13]!==a||e[14]!==l||e[15]!==d?(p=(0,x5.jsx)("div",{className:"acpmux-host-error",role:"alert",children:(0,x5.jsxs)("div",{className:"acpmux-host-error-card",children:[a,l,d]})}),e[13]=a,e[14]=l,e[15]=d,e[16]=p):p=e[16],p}var Swe=R(qe(),1);var Mwe=R(ee(),1);function Lwe(t){let e=(0,Swe.c)(5),{row:n}=t,r=ve();if(!n.text)return null;let i;e[0]!==n.text||e[1]!==r?(i=r("shell.moved",{place:n.text}),e[0]=n.text,e[1]=r,e[2]=i):i=e[2];let o;return e[3]!==i?(o=(0,Mwe.jsx)("p",{className:"cv-date-line acpmux-move-line",children:i}),e[3]=i,e[4]=o):o=e[4],o}var Twe=R(qe(),1),sR=R(Q(),1);var pi=R(ee(),1),Ewe=8,sV=(0,sR.createContext)(void 0);function Rwe(t){let e=(0,Twe.c)(45),{row:n,expanded:r,onToggleActivity:i}=t,o=ve(),a=(0,sR.useContext)(sV),s=n.shell;if(!s)return null;let l,c,u,d,p;if(e[0]!==a||e[1]!==r||e[2]!==s||e[3]!==o){let h=s.output.replace(/\n$/,""),x=h?h.split(` +`):[];l=x.length>Ewe;let g=l&&!r?x.slice(-Ewe):x,y=s.endedAt!==void 0?(s.endedAt-s.startedAt)/1e3:void 0,b;e[9]!==y?(b=y===void 0?"":y<10?`${y.toFixed(1)}s`:`${Math.round(y)}s`,e[9]=y,e[10]=b):b=e[10];let w=b;c="acpmux-shell-block",u=s.status;let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=(0,pi.jsx)("span",{className:"acpmux-shell-block-glyph","aria-hidden":"true",children:"!"}),e[11]=v):v=e[11];let k;e[12]!==s.command?(k=(0,pi.jsx)("code",{className:"acpmux-shell-block-command",title:s.command,children:s.command}),e[12]=s.command,e[13]=k):k=e[13];let _;e[14]!==a||e[15]!==s.exitCode||e[16]!==s.id||e[17]!==s.status||e[18]!==o||e[19]!==w?(_=(0,pi.jsx)("span",{className:"acpmux-shell-block-status",children:s.status==="running"?(0,pi.jsxs)("button",{type:"button",className:"acpmux-shell-block-stop",onClick:()=>a?.stop(s.id),children:[(0,pi.jsx)(l1,{size:12}),o("shell.stop"),(0,pi.jsx)("kbd",{children:"\u2303C"})]}):(0,pi.jsxs)(pi.Fragment,{children:[s.status==="done"?(0,pi.jsxs)("span",{className:"acpmux-shell-block-ok",children:[(0,pi.jsx)(qk,{size:14}),(0,pi.jsx)("span",{className:"visually-hidden",children:o("shell.succeeded")})]}):(0,pi.jsx)("span",{className:"acpmux-shell-block-failed",children:s.status==="stopped"?o("shell.stopped"):s.exitCode!==void 0?o("shell.exit",{code:s.exitCode}):o("shell.failed")}),w&&(0,pi.jsx)("span",{className:"acpmux-shell-block-time",children:w})]})}),e[14]=a,e[15]=s.exitCode,e[16]=s.id,e[17]=s.status,e[18]=o,e[19]=w,e[20]=_):_=e[20];let L;e[21]!==a||e[22]!==s?(L=()=>a?.openInTerminal(s),e[21]=a,e[22]=s,e[23]=L):L=e[23];let S;e[24]!==o?(S=o("shell.openInTerminal"),e[24]=o,e[25]=S):S=e[25];let C;e[26]!==S||e[27]!==L?(C=(0,pi.jsx)("button",{type:"button",className:"acpmux-shell-block-open",onClick:L,children:S}),e[26]=S,e[27]=L,e[28]=C):C=e[28],e[29]!==C||e[30]!==k||e[31]!==_?(d=(0,pi.jsxs)("div",{className:"acpmux-shell-block-head",children:[v,k,_,C]}),e[29]=C,e[30]=k,e[31]=_,e[32]=d):d=e[32],p=(g.length>0||s.error)&&(0,pi.jsxs)("pre",{className:"acpmux-shell-block-output selectable",children:[(s.truncated||l&&!r)&&(0,pi.jsx)("span",{className:"acpmux-shell-block-cut","aria-hidden":"true",children:"\u2026"}),g.join(` +`),s.error&&(0,pi.jsx)("span",{className:"acpmux-shell-block-error",children:s.error})]}),e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=l,e[5]=c,e[6]=u,e[7]=d,e[8]=p}else l=e[4],c=e[5],u=e[6],d=e[7],p=e[8];let m;e[33]!==r||e[34]!==l||e[35]!==i||e[36]!==n.id||e[37]!==o?(m=l&&(0,pi.jsx)("button",{type:"button",className:"acpmux-shell-block-more","aria-expanded":r,onClick:()=>i(n.id),children:o(r?"shell.showLess":"shell.showAll")}),e[33]=r,e[34]=l,e[35]=i,e[36]=n.id,e[37]=o,e[38]=m):m=e[38];let f;return e[39]!==c||e[40]!==u||e[41]!==d||e[42]!==p||e[43]!==m?(f=(0,pi.jsxs)("div",{className:c,"data-status":u,children:[d,p,m]}),e[39]=c,e[40]=u,e[41]=d,e[42]=p,e[43]=m,e[44]=f):f=e[44],f}var Awe=R(qe(),1);var w5=R(ee(),1);function $we(t){let e=(0,Awe.c)(19),{switching:n,onRetry:r}=t,i=ve();if(!n||n.phase==="starting")return null;if(n.phase==="deferred"){let u;e[0]!==n.name||e[1]!==i?(u=i("switch.deferred",{agent:n.name}),e[0]=n.name,e[1]=i,e[2]=u):u=e[2];let d;return e[3]!==u?(d=(0,w5.jsx)("output",{className:"acpmux-switch-notice",children:u}),e[3]=u,e[4]=d):d=e[4],d}let o;e[5]!==n.error||e[6]!==n.name||e[7]!==i?(o=i("switch.failed",{agent:n.name,reason:n.error??i("switch.unknownError")}),e[5]=n.error,e[6]=n.name,e[7]=i,e[8]=o):o=e[8];let a;e[9]!==o?(a=(0,w5.jsx)("p",{className:"acpmux-host-error-message",children:o}),e[9]=o,e[10]=a):a=e[10];let s;e[11]!==i?(s=i("switch.retry"),e[11]=i,e[12]=s):s=e[12];let l;e[13]!==r||e[14]!==s?(l=(0,w5.jsx)("button",{type:"button",onClick:r,children:s}),e[13]=r,e[14]=s,e[15]=l):l=e[15];let c;return e[16]!==a||e[17]!==l?(c=(0,w5.jsx)("div",{className:"acpmux-host-error acpmux-switch-failed",role:"alert",children:(0,w5.jsxs)("div",{className:"acpmux-host-error-card",children:[a,l]})}),e[16]=a,e[17]=l,e[18]=c):c=e[18],c}var Iwe=R(qe(),1);var Eh=R(ee(),1);function Nwe(t){return t.offered&&t.freshChat&&!t.quick&&!t.projectDraft}function Pwe(t){let e=(0,Iwe.c)(13),{onChoose:n,error:r}=t,i=ve(),o;e[0]!==i?(o=i("agentHome.notice"),e[0]=i,e[1]=o):o=e[1];let a;e[2]!==i?(a=i("agentHome.choose"),e[2]=i,e[3]=a):a=e[3];let s;e[4]!==n||e[5]!==a?(s=(0,Eh.jsx)("button",{type:"button",className:"acpmux-folder-choice-button",onClick:n,children:a}),e[4]=n,e[5]=a,e[6]=s):s=e[6];let l;e[7]!==r?(l=r&&(0,Eh.jsxs)(Eh.Fragment,{children:[" ",(0,Eh.jsx)("span",{role:"alert",children:r})]}),e[7]=r,e[8]=l):l=e[8];let c;return e[9]!==o||e[10]!==s||e[11]!==l?(c=(0,Eh.jsxs)("output",{className:"acpmux-switch-notice acpmux-folder-choice",children:[o," ",s,l]}),e[9]=o,e[10]=s,e[11]=l,e[12]=c):c=e[12],c}var jwe=R(qe(),1),ef=R(Q(),1);var fr=R(ee(),1);function Owe(t){let e=(0,jwe.c)(142),{record:n,state:r,strings:i,onSave:o,onStart:a,onReturn:s,onDiscard:l,onReload:c}=t,[u,d]=(0,ef.useState)(n.capsule.text),[p,m]=(0,ef.useState)(n.capsule.checkpoint?.ref??""),[f,h]=(0,ef.useState)(!!n.capsule.checkpoint),x;e[0]!==n.capsule.memoryRefs?(x=n.capsule.memoryRefs.join(` +`),e[0]=n.capsule.memoryRefs,e[1]=x):x=e[1];let[g,y]=(0,ef.useState)(x),[b,w]=(0,ef.useState)(),v=(0,ef.useRef)(n.revision),k=(0,ef.useRef)(0),_=!!r.busy&&r.busy!=="saving"||!r.ready||n.state==="started"||!!r.receipt,L=!_&&n.state==="draft",S;e[2]!==u||e[3]!==p||e[4]!==f||e[5]!==g?(S=()=>({capsule:u,checkpoint:{reference:p,confirmed:f},approvedMemoryReferences:[...new Set(g.split(/\r?\n/).map(kot).filter(Boolean))],revision:v.current}),e[2]=u,e[3]=p,e[4]=f,e[5]=g,e[6]=S):S=e[6];let C=S,T;e[7]!==L||e[8]!==C||e[9]!==o||e[10]!==r.conflict?(T=async()=>{if(!L||r.conflict||!k.current)return;let Ve=k.current;try{let Jt=await o(C());Jt&&(v.current=Jt.revision,k.current===Ve&&(k.current=0))}catch{}},e[7]=L,e[8]=C,e[9]=o,e[10]=r.conflict,e[11]=T):T=e[11];let M=T,A;e[12]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{k.current=k.current+1,w(void 0)},e[12]=A):A=e[12];let $=A,N=i.review,F;e[13]!==n.source.harness||e[14]!==n.target.harness||e[15]!==i.fromTo?(F=k6(i.fromTo,Hf(n.source.harness),Hf(n.target.harness)),e[13]=n.source.harness,e[14]=n.target.harness,e[15]=i.fromTo,e[16]=F):F=e[16];let D;e[17]!==F?(D=(0,fr.jsx)("p",{className:"acpmux-handoff-provenance",children:F}),e[17]=F,e[18]=D):D=e[18];let O;e[19]!==n.target.cwd?(O=(0,fr.jsx)("p",{className:"acpmux-handoff-project",children:n.target.cwd}),e[19]=n.target.cwd,e[20]=O):O=e[20];let B;e[21]!==_||e[22]!==u||e[23]!==p||e[24]!==f||e[25]!==g||e[26]!==a||e[27]!==n.capsule.maxBytes||e[28]!==i||e[29]!==r.conflict?(B=async Ve=>{if(Ve.preventDefault(),!(_||r.conflict))try{let Jt=b_(u,p,f,g,n.capsule.maxBytes,i);w(void 0),await a({...Jt,revision:v.current})}catch(Jt){let rn=Jt;w(rn instanceof Error?rn.message:i.failedReview)}},e[21]=_,e[22]=u,e[23]=p,e[24]=f,e[25]=g,e[26]=a,e[27]=n.capsule.maxBytes,e[28]=i,e[29]=r.conflict,e[30]=B):B=e[30];let P=!L,U;e[31]===Symbol.for("react.memo_cache_sentinel")?(U=Ve=>{$(),d(Ve.target.value)},e[31]=U):U=e[31];let G;e[32]!==M?(G=()=>{M()},e[32]=M,e[33]=G):G=e[33];let j;e[34]!==u||e[35]!==i.context||e[36]!==P||e[37]!==G?(j=(0,fr.jsx)("textarea",{"aria-label":i.context,value:u,rows:10,disabled:P,onChange:U,onBlur:G}),e[34]=u,e[35]=i.context,e[36]=P,e[37]=G,e[38]=j):j=e[38];let V;e[39]!==i.context||e[40]!==j?(V=(0,fr.jsxs)("label",{children:[i.context,j]}),e[39]=i.context,e[40]=j,e[41]=V):V=e[41];let H=!L,ne;e[42]===Symbol.for("react.memo_cache_sentinel")?(ne=Ve=>{$(),m(Ve.target.value),h(!1)},e[42]=ne):ne=e[42];let J;e[43]!==M?(J=()=>{M()},e[43]=M,e[44]=J):J=e[44];let W;e[45]!==p||e[46]!==i.checkpoint||e[47]!==i.checkpointPlaceholder||e[48]!==H||e[49]!==J?(W=(0,fr.jsx)("input",{"aria-label":i.checkpoint,value:p,placeholder:i.checkpointPlaceholder,disabled:H,onChange:ne,onBlur:J}),e[45]=p,e[46]=i.checkpoint,e[47]=i.checkpointPlaceholder,e[48]=H,e[49]=J,e[50]=W):W=e[50];let ie;e[51]!==i.checkpoint||e[52]!==W?(ie=(0,fr.jsxs)("label",{children:[i.checkpoint,W]}),e[51]=i.checkpoint,e[52]=W,e[53]=ie):ie=e[53];let Z=!L,le;e[54]===Symbol.for("react.memo_cache_sentinel")?(le=Ve=>{$(),h(Ve.target.checked)},e[54]=le):le=e[54];let se;e[55]!==M?(se=()=>{M()},e[55]=M,e[56]=se):se=e[56];let ge;e[57]!==f||e[58]!==i.checkpointConfirm||e[59]!==Z||e[60]!==se?(ge=(0,fr.jsx)("input",{"aria-label":i.checkpointConfirm,type:"checkbox",checked:f,disabled:Z,onChange:le,onBlur:se}),e[57]=f,e[58]=i.checkpointConfirm,e[59]=Z,e[60]=se,e[61]=ge):ge=e[61];let ce;e[62]!==i.checkpointConfirm||e[63]!==ge?(ce=(0,fr.jsxs)("label",{className:"acpmux-handoff-confirm",children:[ge,i.checkpointConfirm]}),e[62]=i.checkpointConfirm,e[63]=ge,e[64]=ce):ce=e[64];let be;e[65]!==i.memory?(be=(0,fr.jsx)("summary",{children:i.memory}),e[65]=i.memory,e[66]=be):be=e[66];let ke=!L,me;e[67]===Symbol.for("react.memo_cache_sentinel")?(me=Ve=>{$(),y(Ve.target.value)},e[67]=me):me=e[67];let Se;e[68]!==M?(Se=()=>{M()},e[68]=M,e[69]=Se):Se=e[69];let de;e[70]!==g||e[71]!==i.memoryHelp||e[72]!==ke||e[73]!==Se?(de=(0,fr.jsx)("textarea",{"aria-label":i.memoryHelp,value:g,rows:3,disabled:ke,onChange:me,onBlur:Se}),e[70]=g,e[71]=i.memoryHelp,e[72]=ke,e[73]=Se,e[74]=de):de=e[74];let Le;e[75]!==i.memoryHelp||e[76]!==de?(Le=(0,fr.jsxs)("label",{children:[i.memoryHelp,de]}),e[75]=i.memoryHelp,e[76]=de,e[77]=Le):Le=e[77];let Ne;e[78]!==be||e[79]!==Le?(Ne=(0,fr.jsxs)("details",{children:[be,Le]}),e[78]=be,e[79]=Le,e[80]=Ne):Ne=e[80];let Be;e[81]!==i.coverage?(Be=(0,fr.jsx)("summary",{children:i.coverage}),e[81]=i.coverage,e[82]=Be):Be=e[82];let _e;e[83]!==n.source||e[84]!==n.target||e[85]!==i?(_e=[n.source,n.target].map((Ve,Jt)=>(0,fr.jsxs)("div",{children:[(0,fr.jsxs)("p",{children:[Jt===0?i.source:i.target,": ",Hf(Ve.harness)]}),(0,fr.jsxs)("p",{title:Ve.enforcement.detail??i.unverifiedDetail,children:[i.nativePolicy,": ",Ve.enforcement.policy]}),(0,fr.jsx)("ul",{children:Ve.coverage.map(rn=>(0,fr.jsxs)("li",{children:[i[rn.item],": ",i[rn.status],rn.detail?` \xB7 ${rn.detail}`:""]},rn.item))})]},Ve.sessionId)),e[83]=n.source,e[84]=n.target,e[85]=i,e[86]=_e):_e=e[86];let xe;e[87]!==Be||e[88]!==_e?(xe=(0,fr.jsxs)("details",{className:"acpmux-handoff-coverage",children:[Be,_e]}),e[87]=Be,e[88]=_e,e[89]=xe):xe=e[89];let Ce;e[90]!==r.error||e[91]!==b?(Ce=(b||r.error)&&(0,fr.jsx)("p",{role:"alert",children:b||r.error}),e[90]=r.error,e[91]=b,e[92]=Ce):Ce=e[92];let K;e[93]!==i.saving||e[94]!==r.busy?(K=r.busy==="saving"&&(0,fr.jsx)("output",{children:i.saving}),e[93]=i.saving,e[94]=r.busy,e[95]=K):K=e[95];let Y;e[96]!==_||e[97]!==u||e[98]!==p||e[99]!==f||e[100]!==r.conflict?(Y=_||!!r.conflict||!u.trim()||!p.trim()||!f,e[96]=_,e[97]=u,e[98]=p,e[99]=f,e[100]=r.conflict,e[101]=Y):Y=e[101];let ye;e[102]!==n.state||e[103]!==n.target.harness||e[104]!==i.continueTarget||e[105]!==i.starting||e[106]!==r.busy?(ye=r.busy==="starting"||n.state==="starting"?i.starting:k6(i.continueTarget,Hf(n.target.harness)),e[102]=n.state,e[103]=n.target.harness,e[104]=i.continueTarget,e[105]=i.starting,e[106]=r.busy,e[107]=ye):ye=e[107];let Re;e[108]!==Y||e[109]!==ye?(Re=(0,fr.jsx)("button",{type:"submit",disabled:Y,children:ye}),e[108]=Y,e[109]=ye,e[110]=Re):Re=e[110];let Ke;e[111]!==s||e[112]!==i.returnSource?(Ke=(0,fr.jsx)("button",{type:"button",onClick:s,children:i.returnSource}),e[111]=s,e[112]=i.returnSource,e[113]=Ke):Ke=e[113];let mt=!!r.busy||!r.ready||n.state!=="draft",dt;e[114]!==l||e[115]!==i.discard||e[116]!==mt?(dt=(0,fr.jsx)("button",{type:"button",onClick:l,disabled:mt,children:i.discard}),e[114]=l,e[115]=i.discard,e[116]=mt,e[117]=dt):dt=e[117];let Ae=!!r.busy,wt;e[118]!==c||e[119]!==i.reload||e[120]!==Ae?(wt=(0,fr.jsx)("button",{type:"button",onClick:c,disabled:Ae,children:i.reload}),e[118]=c,e[119]=i.reload,e[120]=Ae,e[121]=wt):wt=e[121];let Tt;e[122]!==Re||e[123]!==Ke||e[124]!==dt||e[125]!==wt?(Tt=(0,fr.jsxs)("div",{className:"acpmux-handoff-buttons",children:[Re,Ke,dt,wt]}),e[122]=Re,e[123]=Ke,e[124]=dt,e[125]=wt,e[126]=Tt):Tt=e[126];let Ot;e[127]!==V||e[128]!==ie||e[129]!==ce||e[130]!==Ne||e[131]!==xe||e[132]!==Ce||e[133]!==K||e[134]!==Tt||e[135]!==B?(Ot=(0,fr.jsxs)("form",{onSubmit:B,children:[V,ie,ce,Ne,xe,Ce,K,Tt]}),e[127]=V,e[128]=ie,e[129]=ce,e[130]=Ne,e[131]=xe,e[132]=Ce,e[133]=K,e[134]=Tt,e[135]=B,e[136]=Ot):Ot=e[136];let zt;return e[137]!==i.review||e[138]!==Ot||e[139]!==D||e[140]!==O?(zt=(0,fr.jsxs)("section",{className:"acpmux-handoff-review","aria-label":N,children:[D,O,Ot]}),e[137]=i.review,e[138]=Ot,e[139]=D,e[140]=O,e[141]=zt):zt=e[141],zt}function kot(t){return t.trim()}var ua=R(Q(),1);var z3={create:"git.checkpoint.create",get:"git.checkpoint.get",list:"git.checkpoint.list",pin:"git.checkpoint.pin",unpin:"git.checkpoint.unpin"};function Vu(t,e="error.invalid.checkpointResponse"){if(!t||typeof t!="object"||Array.isArray(t))throw new Error(we(e));return t}function pl(t,e){if(typeof t!="string"||t.length===0)throw new Error(we("error.invalid.checkpointField",{field:e}));return t}function ws(t,e){if(typeof t!="number"||!Number.isSafeInteger(t)||t<0)throw new Error(we("error.invalid.checkpointField",{field:e}));return t}function Dwe(t){if(typeof t!="string"||!/^(?:0|[1-9]\d*)$/.test(t))throw new Error(we("error.invalid.checkpointRevision"));return t}function Fwe(t){let e=Vu(t);return{max_bytes:ws(e.max_bytes,"limits"),max_files:ws(e.max_files,"limits"),max_untracked_file_bytes:ws(e.max_untracked_file_bytes,"limits")}}function Bwe(t){let e=Vu(t),n=Vu(e.base),r=Vu(e.coverage),i=Vu(e.included),o=Vu(e.bytes);if(typeof e.complete!="boolean"||e.expires_at!==null&&typeof e.expires_at!="string"||typeof n.detached!="boolean")throw new Error(we("error.invalid.checkpointResponse"));if(n.head!==null&&typeof n.head!="string")throw new Error(we("error.invalid.checkpointBase"));if(n.branch!==null&&typeof n.branch!="string")throw new Error(we("error.invalid.checkpointBase"));if(!Array.isArray(e.skipped)||e.skipped.length>ws(e.skipped_total,"skipped_total"))throw new Error(we("error.invalid.checkpointSkipAccounting"));let a=e.skipped.map(s=>{let l=Vu(s),c={path:pl(l.path,"skip"),code:pl(l.code,"skip")};return l.bytes!==void 0&&(c.bytes=ws(l.bytes,"skip bytes")),c});return{checkpoint_id:pl(e.checkpoint_id,"id"),repository_id:pl(e.repository_id,"repository"),worktree_id:pl(e.worktree_id,"worktree"),ref:pl(e.ref,"ref"),object_id:pl(e.object_id,"object"),revision:Dwe(e.revision),complete:e.complete,skipped:a,skipped_total:ws(e.skipped_total,"skipped_total"),created_at:pl(e.created_at,"created_at"),expires_at:e.expires_at,base:{head:n.head,branch:n.branch,detached:n.detached},coverage:{included:ws(r.included,"coverage"),omitted:ws(r.omitted,"coverage"),unavailable:ws(r.unavailable,"coverage")},included:{tracked:ws(i.tracked,"included"),untracked:ws(i.untracked,"included"),staged_entries:ws(i.staged_entries,"included")},bytes:{logical:ws(o.logical,"bytes"),newly_stored:ws(o.newly_stored,"bytes")},limits:Fwe(e.limits),pins:Array.isArray(e.pins)?e.pins.map(s=>{let l=Vu(s);return{pin_id:pl(l.pin_id,"pin"),reason:pl(l.reason,"pin")}}):(()=>{throw new Error(we("error.invalid.checkpointPins"))})()}}function zwe(t){return!!t&&typeof t=="object"&&t.checkpoints===!0}function U8(t){return Bwe(t)}function qwe(t){let e=Vu(t);if(!Array.isArray(e.checkpoints)||e.next_cursor!==null&&typeof e.next_cursor!="string")throw new Error(we("error.invalid.checkpointList"));let n={repository_id:pl(e.repository_id,"repository"),worktree_id:pl(e.worktree_id,"worktree"),checkpoints:e.checkpoints.map(Bwe),next_cursor:e.next_cursor,limits:Fwe(e.limits)};if(e.candidates!==void 0){if(!Array.isArray(e.candidates))throw new Error(we("error.invalid.checkpointCandidates"));n.candidates=e.candidates.map(r=>{let i=Vu(r);if(typeof i.eligible!="boolean")throw new Error(we("error.invalid.checkpointCandidate"));let o={path:pl(i.path,"candidate"),bytes:ws(i.bytes,"candidate bytes"),eligible:i.eligible};return i.reason!==void 0&&(o.reason=pl(i.reason,"candidate reason")),o})}return n}function lV(t){let e=Vu(t);if(typeof e.replayed!="boolean")throw new Error(we("error.invalid.checkpointMutation"));return{result:e.result,revision:Dwe(e.revision),replayed:e.replayed}}var Zi=class extends Error{code;reason;details;retryable;origin;uncertain;constructor(e,n,r){let i=typeof e=="string"?{code:e,userMessage:n,details:void 0,retryable:void 0,origin:void 0}:e;super(typeof i.userMessage=="string"?i.userMessage:n??String(i.code??we("error.requestFailed"))),this.name="CheckpointRpcError",this.code=typeof i.code=="string"?i.code:"operation.failed",this.reason=r??(i.details&&typeof i.details=="object"&&typeof i.details.reason=="string"?i.details.reason:void 0),this.details=i.details,this.retryable=typeof i.retryable=="boolean"?i.retryable:void 0,this.origin=i.origin==="native"||i.origin==="session_host"?i.origin:void 0,this.uncertain=this.code==="mutation.indeterminate"||(this.origin==="native"?this.code==="native.timed_out":this.origin===void 0)}};var cV="reconciliation_blocked",Hwe={async get(t){let e=globalThis.localStorage?.getItem(t);return e==null?void 0:JSON.parse(e)},async set(t,e){if(!globalThis.localStorage)throw new Zi({code:"native.invalid_request",origin:"native"});globalThis.localStorage.setItem(t,JSON.stringify(e))},async delete(t){globalThis.localStorage?.removeItem(t)}};function V8(t){return Array.isArray(t)?`[${t.map(V8).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([e],[n])=>e.localeCompare(n)).map(([e,n])=>`${JSON.stringify(e)}:${V8(n)}`).join(",")}}`:JSON.stringify(t)??"null"}function v5(t){if(t instanceof Zi)return t;if(t&&typeof t=="object"&&("code"in t||"origin"in t)){let e=t;return new Zi({code:e.code,userMessage:e.userMessage??e.message,details:e.details,retryable:e.retryable,origin:e.origin})}return new Zi({code:"operation.failed",userMessage:t instanceof Error?t.message:we("error.requestFailed")})}var Gwe=new WeakSet;function uV(t){let e=v5(t);return Gwe.add(e),e}function q3(t){if(typeof t.cwd!="string"||t.cwd.length===0)throw new Zi("validation.invalid",we("checkpoint.error.folderRequired"));return{cwd:t.cwd}}function Cot(t){return v5(t).code==="resource.not_found"}var lR=class{state={supported:!1};request;persistence;key;capabilityReader;online=!0;generation=0;mutationActive=!1;capabilityGeneration=0;listeners=new Set;constructor(e,n=Hwe,r,i){this.request=e;let o="get"in n?void 0:n;this.persistence=o?.persistence??("get"in n?n:Hwe),this.key=r??o?.key??(()=>crypto.randomUUID()),this.capabilityReader=i??o?.capabilities??(async()=>({checkpoints:!1})),this.onChange=o?.onChange}onChange;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}getSnapshot(){return this.state}changed(){this.onChange?.();for(let e of this.listeners)e()}select(e){this.generation+=1,this.state={supported:this.state.supported,capabilities:this.state.capabilities,target:e},this.changed()}beginReview(){return this.mutationActive||this.state.busy?!1:(this.state={...this.state,record:void 0,list:void 0,error:void 0},this.changed(),!0)}async refreshCapabilities(){let e=++this.capabilityGeneration;try{let n=await this.capabilityReader();return e!==this.capabilityGeneration?this.state.supported:(this.state={...this.state,capabilities:n,supported:zwe(n),error:void 0},this.changed(),this.state.supported)}catch(n){return e!==this.capabilityGeneration?this.state.supported:(this.state={...this.state,supported:!1,error:v5(n)},this.changed(),!1)}}setOnline(e){e!==this.online&&(this.generation+=1),this.online=e,e||(this.capabilityGeneration++,this.state={...this.state,supported:!1}),this.changed()}requireReady(){if(!this.online)throw new Zi({code:"operation.failed",userMessage:we("checkpoint.error.offline"),details:{reason:"offline"}},void 0,"offline");if(!this.state.supported)throw new Zi("operation.unsupported",we("checkpoint.error.unsupported"));let e=this.state.target;if(!e)throw new Zi("validation.invalid",we("checkpoint.error.noFolder"));if(e.hostKind==="cloud")throw new Zi({code:"operation.failed",userMessage:we("checkpoint.error.cloud"),details:{reason:"cloud_unsupported"}},void 0,"cloud_unsupported");return q3(e),e}async call(e,n){try{return await this.request(e,n)}catch(r){let i=v5(r);throw i.code==="operation.unsupported"&&(this.state={...this.state,supported:!1,error:i},this.changed()),i}}async list(e={}){let n=this.requireReady(),r=this.generation;this.state={...this.state,busy:"listing",error:void 0},this.changed();try{let i=qwe(await this.call(z3.list,{...q3(n),...e}));return r===this.generation&&n.cwd===this.state.target?.cwd&&(this.state={...this.state,list:i}),i}catch(i){let o=v5(i);throw r===this.generation&&(this.state={...this.state,error:o}),o}finally{r===this.generation&&(this.state={...this.state,busy:void 0},this.changed())}}async get(e){if(e.checkpoint_id===void 0==(e.idempotency_key===void 0))throw new Zi("validation.invalid","Use exactly one checkpoint lookup.");let n=this.requireReady();return U8(await this.call(z3.get,{...q3(n),...e}))}mutationStorageKey(e){return`cmux.checkpoint.pending:${V8(e)}`}async mutationKey(e,n,r){let i=this.mutationStorageKey(n),o=await this.persistence.get(i);if(o&&typeof o=="object"&&typeof o.idempotency_key=="string"){let s=o;if(s.operation!==e||V8(s.body)!==V8(r))throw new Zi({code:"idempotency.conflict",origin:"native"});return{storageKey:i,record:s}}let a={idempotency_key:this.key(),attempted:!1,operation:e,body:r};return await this.persistence.set(i,a),{storageKey:i,record:a}}async recoverPending(){let e=this.requireReady(),n=this.generation,r=await this.persistence.get(this.mutationStorageKey(e));if(n!==this.generation||!r||typeof r!="object")return;let i=r;if(!(!i.body||typeof i.idempotency_key!="string"||!["create","pin","unpin"].includes(i.operation))){this.state={...this.state,pending:i,busy:"recovering",error:void 0},this.changed();try{let o=i.attempted?await this.reconcile(i.operation,e,i.body,i.idempotency_key,n):void 0;o&&(await this.persistence.delete(this.mutationStorageKey(e)),n===this.generation&&(this.state={...this.state,pending:void 0,record:o.result}))}catch(o){throw n===this.generation&&(this.state={...this.state,error:v5(o)}),o}finally{n===this.generation&&(this.state={...this.state,busy:void 0},this.changed())}}}async retry(){let e=this.state.pending;if(!e)throw new Zi({code:"validation.invalid",origin:"native"});return this.mutate(e.operation,e.body,e.operation==="create"?"creating":e.operation==="pin"?"pinning":"unpinning")}async reconcile(e,n,r,i,o){let a=()=>{if(o!==this.generation||!this.online)throw new Zi({code:"native.not_connected",userMessage:we("checkpoint.error.paused"),details:{reason:cV},origin:"native"})};try{a();let s=e==="create"?{idempotency_key:i}:{checkpoint_id:String(r.checkpoint_id)};U8(await this.call(z3.get,{...q3(n),...s}))}catch(s){if(!Cot(s))throw uV(s);if(o!==this.generation||!this.online)throw uV(new Zi({code:"native.not_connected",userMessage:we("checkpoint.error.paused"),details:{reason:cV},origin:"native"}));return}if(e==="create"){a();try{let s=lV(await this.call(z3.create,{...q3(n),...r,idempotency_key:i}));return{...s,result:U8(s.result)}}catch(s){throw uV(s)}}}async mutate(e,n,r){let i=this.requireReady();if(this.mutationActive||this.state.busy)throw new Zi({code:"operation.failed",origin:"native",details:{reason:"repository_busy"}});this.mutationActive=!0;let o=this.generation;this.state={...this.state,busy:r,error:void 0},this.changed();let a;try{let s=await this.mutationKey(e,i,n);a=s.storageKey;let l=s.record;if(o!==this.generation||!this.online)throw new Zi({code:"native.not_connected",origin:"native"});if(this.state={...this.state,pending:l},l.attempted){let p=await this.reconcile(e,i,n,l.idempotency_key,o);if(p)return await this.persistence.delete(a),o===this.generation&&(this.state={...this.state,record:p.result,pending:void 0}),p}let c={...q3(i),...n,idempotency_key:l.idempotency_key};if(await this.persistence.set(a,{...l,attempted:!0}),o!==this.generation||!this.online)throw new Zi({code:"native.not_connected",origin:"native"});let u=lV(await this.call(z3[e],c)),d=U8(u.result);return await this.persistence.delete(a),o===this.generation&&(this.state={...this.state,record:d,pending:void 0}),{...u,result:d}}catch(s){let l=v5(s),c=l.uncertain||l.reason===cV||Gwe.has(l);throw!c&&a&&await this.persistence.delete(a),o===this.generation&&(this.state={...this.state,error:l,pending:c?this.state.pending:void 0}),l}finally{this.mutationActive=!1,o===this.generation&&(this.state={...this.state,busy:void 0},this.changed())}}async create(e={}){let n={...e};return n.include_untracked===void 0&&(n.include_untracked=[]),this.mutate("create",n,"creating")}async pin(e){return this.mutate("pin",e,"pinning")}async unpin(e){if(e.pin_id.startsWith("handoff:")||e.pin_id.startsWith("restore:"))throw new Zi({code:"operation.failed",userMessage:we("checkpoint.error.managedPin"),details:{reason:"managed_pin"}},void 0,"managed_pin");return this.mutate("unpin",e,"unpinning")}};var Uwe=R(qe(),1),dV=R(Q(),1);var Rt=R(ee(),1);function Vwe(t){let e=(0,Uwe.c)(91),{list:n,record:r,busy:i,error:o,pending:a,strings:s,variant:l,onCreate:c,onRefresh:u,onCopy:d,onKeep:p,onRelease:m,onCancel:f,onRetry:h}=t,x=l===void 0?"compact":l,[g,y]=(0,dV.useState)(),[b,w]=(0,dV.useState)(!1),v,k;e[0]!==n||e[1]!==g?(v=n?.candidates??[],k=g&&g.list===n?g.paths:new Set(v.filter(Tot).map(Eot)),e[0]=n,e[1]=g,e[2]=v,e[3]=k):(v=e[2],k=e[3]);let _=k,L;e[4]!==n||e[5]!==_?(L=V=>{if(!n)return;let H=new Set(_);H.has(V)?H.delete(V):H.add(V),y({list:n,paths:H})},e[4]=n,e[5]=_,e[6]=L):L=e[6];let S=L,C;e[7]!==s.excluded||e[8]!==s.ignored||e[9]!==s.notSelected||e[10]!==s.tooLarge||e[11]!==s.unavailableFile?(C=V=>V==="ignored"?s.ignored:V==="not_selected"?s.notSelected:V==="excluded"||V==="credential_excluded"?s.excluded:V==="over_limit"||V==="too_large"||V==="file_too_large"?s.tooLarge:s.unavailableFile,e[7]=s.excluded,e[8]=s.ignored,e[9]=s.notSelected,e[10]=s.tooLarge,e[11]=s.unavailableFile,e[12]=C):C=e[12];let T=C,M=Mot,A;e[13]!==s.unavailable?(A=V=>{let H=new Date(V);return Number.isFinite(H.getTime())?new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(H):s.unavailable},e[13]=s.unavailable,e[14]=A):A=e[14];let $=A,N,F,D,O,B;if(e[15]!==i||e[16]!==v||e[17]!==b||e[18]!==$||e[19]!==n||e[20]!==f||e[21]!==d||e[22]!==c||e[23]!==p||e[24]!==u||e[25]!==m||e[26]!==a||e[27]!==T||e[28]!==r||e[29]!==s.base||e[30]!==s.bytes||e[31]!==s.cancel||e[32]!==s.complete||e[33]!==s.copied||e[34]!==s.copyReference||e[35]!==s.create||e[36]!==s.created||e[37]!==s.emptyUntracked||e[38]!==s.expires||e[39]!==s.included||e[40]!==s.keep||e[41]!==s.manualRetention||e[42]!==s.noHead||e[43]!==s.omitted||e[44]!==s.partial||e[45]!==s.pinned||e[46]!==s.reference||e[47]!==s.refresh||e[48]!==s.release||e[49]!==s.retained||e[50]!==s.skipped||e[51]!==s.title||e[52]!==s.unavailable||e[53]!==s.untracked||e[54]!==_||e[55]!==S||e[56]!==x){let V=r?.pins??[],H=V.filter(Lot);F="acpmux-checkpoint-review",D=x,O=s.title;let ne;e[62]!==s.title?(ne=(0,Rt.jsx)("strong",{children:s.title}),e[62]=s.title,e[63]=ne):ne=e[63];let J;e[64]!==f||e[65]!==s.cancel?(J=(0,Rt.jsx)("button",{type:"button",onClick:f,children:s.cancel}),e[64]=f,e[65]=s.cancel,e[66]=J):J=e[66],e[67]!==ne||e[68]!==J?(B=(0,Rt.jsxs)("header",{children:[ne,J]}),e[67]=ne,e[68]=J,e[69]=B):B=e[69],N=r?(0,Rt.jsxs)("div",{className:"acpmux-checkpoint-receipt",children:[(0,Rt.jsx)("p",{className:"acpmux-checkpoint-fidelity","data-complete":r.complete,children:r.complete?s.complete:s.partial}),(0,Rt.jsxs)("dl",{className:"acpmux-checkpoint-facts",children:[(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:s.reference}),(0,Rt.jsx)("dd",{children:(0,Rt.jsx)("code",{children:r.ref})})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:s.base}),(0,Rt.jsx)("dd",{children:r.base.head?.slice(0,12)??s.noHead})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:s.created}),(0,Rt.jsx)("dd",{children:$(r.created_at)})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:s.included}),(0,Rt.jsx)("dd",{children:M(r.coverage.included)})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:s.omitted}),(0,Rt.jsx)("dd",{children:M(r.coverage.omitted)})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:s.unavailable}),(0,Rt.jsx)("dd",{children:M(r.coverage.unavailable)})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:s.bytes}),(0,Rt.jsx)("dd",{children:M(r.bytes.logical)})]}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("dt",{children:V.length?s.retained:s.expires}),(0,Rt.jsx)("dd",{children:V.length?s.pinned:r.expires_at?$(r.expires_at):s.unavailable})]})]}),r.skipped_total>0&&(0,Rt.jsxs)("details",{open:x==="expanded"||!r.complete,children:[(0,Rt.jsxs)("summary",{children:[s.skipped," \xB7 ",M(r.skipped_total)]}),(0,Rt.jsx)("ul",{children:r.skipped.map((W,ie)=>(0,Rt.jsxs)("li",{children:[(0,Rt.jsx)("code",{children:W.path}),(0,Rt.jsx)("span",{children:T(W.code)})]},`${W.path}:${ie}`))})]}),(0,Rt.jsxs)("div",{className:"acpmux-checkpoint-actions",children:[(0,Rt.jsx)("button",{type:"button",disabled:!!i,onClick:()=>{w(!1),d(r).then(()=>w(!0)).catch(Sot)},children:b?s.copied:s.copyReference}),(0,Rt.jsx)("button",{type:"button",disabled:!!i||!!a||V.length>0,onClick:()=>p(r),children:s.keep}),H.map(W=>(0,Rt.jsx)("button",{type:"button",disabled:!!i||!!a,onClick:()=>m(r,W.pin_id),children:s.release},W.pin_id))]}),!V.length&&(0,Rt.jsx)("p",{className:"acpmux-checkpoint-hint",children:s.manualRetention})]}):(0,Rt.jsxs)("form",{onSubmit:W=>{W.preventDefault(),n&&!i&&!a&&c([..._])},children:[(0,Rt.jsxs)("fieldset",{disabled:!!i||!!a||!n,children:[(0,Rt.jsx)("legend",{children:s.untracked}),n&&!v.some(_ot)&&(0,Rt.jsx)("p",{children:s.emptyUntracked}),(0,Rt.jsx)("ul",{className:"acpmux-checkpoint-candidates",children:v.map(W=>(0,Rt.jsxs)("li",{children:[(0,Rt.jsxs)("label",{children:[(0,Rt.jsx)("input",{type:"checkbox","aria-label":W.path,checked:W.eligible&&_.has(W.path),disabled:!W.eligible,onChange:()=>S(W.path)}),(0,Rt.jsx)("code",{children:W.path})]}),(0,Rt.jsx)("span",{children:W.eligible?M(W.bytes):T(W.reason)})]},W.path))})]}),(0,Rt.jsxs)("div",{className:"acpmux-checkpoint-actions",children:[(0,Rt.jsx)("button",{type:"submit",disabled:!!i||!!a||!n,children:s.create}),(0,Rt.jsx)("button",{type:"button",disabled:!!i||!!a,onClick:u,children:s.refresh})]})]}),e[15]=i,e[16]=v,e[17]=b,e[18]=$,e[19]=n,e[20]=f,e[21]=d,e[22]=c,e[23]=p,e[24]=u,e[25]=m,e[26]=a,e[27]=T,e[28]=r,e[29]=s.base,e[30]=s.bytes,e[31]=s.cancel,e[32]=s.complete,e[33]=s.copied,e[34]=s.copyReference,e[35]=s.create,e[36]=s.created,e[37]=s.emptyUntracked,e[38]=s.expires,e[39]=s.included,e[40]=s.keep,e[41]=s.manualRetention,e[42]=s.noHead,e[43]=s.omitted,e[44]=s.partial,e[45]=s.pinned,e[46]=s.reference,e[47]=s.refresh,e[48]=s.release,e[49]=s.retained,e[50]=s.skipped,e[51]=s.title,e[52]=s.unavailable,e[53]=s.untracked,e[54]=_,e[55]=S,e[56]=x,e[57]=N,e[58]=F,e[59]=D,e[60]=O,e[61]=B}else N=e[57],F=e[58],D=e[59],O=e[60],B=e[61];let P;e[70]!==i||e[71]!==s.creating||e[72]!==s.loading||e[73]!==s.recovering?(P=i&&(0,Rt.jsx)("output",{children:i==="creating"?s.creating:i==="recovering"?s.recovering:s.loading}),e[70]=i,e[71]=s.creating,e[72]=s.loading,e[73]=s.recovering,e[74]=P):P=e[74];let U;e[75]!==i||e[76]!==h||e[77]!==a||e[78]!==s.retry?(U=a&&!i&&h&&(0,Rt.jsx)("button",{type:"button",onClick:h,children:s.retry}),e[75]=i,e[76]=h,e[77]=a,e[78]=s.retry,e[79]=U):U=e[79];let G;e[80]!==o?(G=o&&(0,Rt.jsx)("p",{role:"alert",children:o}),e[80]=o,e[81]=G):G=e[81];let j;return e[82]!==N||e[83]!==P||e[84]!==U||e[85]!==G||e[86]!==F||e[87]!==D||e[88]!==O||e[89]!==B?(j=(0,Rt.jsxs)("section",{className:F,"data-variant":D,"aria-label":O,children:[B,N,P,U,G]}),e[82]=N,e[83]=P,e[84]=U,e[85]=G,e[86]=F,e[87]=D,e[88]=O,e[89]=B,e[90]=j):j=e[90],j}function _ot(t){return t.eligible}function Sot(){}function Lot(t){return!t.pin_id.startsWith("handoff:")&&!t.pin_id.startsWith("restore:")}function Mot(t){return new Intl.NumberFormat().format(t)}function Eot(t){return t.path}function Tot(t){return t.eligible}var Wwe=R(ee(),1);function Zwe({request:t,target:e,online:n,strings:r,options:i,variant:o="compact"}){let[a]=(0,ua.useState)(()=>new lR(t,{...i,capabilities:i?.capabilities??(()=>t("git.capabilities",{}))})),s=(0,ua.useCallback)(S=>a.subscribe(S),[a]),l=(0,ua.useCallback)(()=>a.getSnapshot(),[a]),c=(0,ua.useSyncExternalStore)(s,l),[u,d]=(0,ua.useState)(!1),[p,m]=(0,ua.useState)(!1),f=e?.cwd,h=e?.sessionId,x=e?.hostKind,g=(0,ua.useMemo)(()=>f?{cwd:f,sessionId:h,hostKind:x}:void 0,[f,h,x]);(0,ua.useEffect)(()=>{a.select(g),d(!1),m(!1)},[a,g]),(0,ua.useEffect)(()=>{a.setOnline(n),n&&a.refreshCapabilities()},[a,n]);let y=c.supported&&n&&!!g?.cwd&&g.hostKind!=="cloud",b=(0,ua.useRef)(y);b.current=y;let w=S=>{S.catch(()=>{})},v=(0,ua.useCallback)(()=>{!b.current||!a.beginReview()||(d(!0),m(!1),w((async()=>{await a.recoverPending(),!a.getSnapshot().pending&&!a.getSnapshot().record&&await a.list({include_candidates:!0})})()))},[a]),k=c.error,_=p?r.failed:n?k?.reason==="repository_changed"?r.changed:k?.code==="operation.unsupported"?r.unsupported:k?(k.origin==="session_host"||k.origin==="native")&&k.message!==k.code?k.message:r.failed:void 0:r.offline,L=u&&(y||!n)?(0,Wwe.jsx)(Vwe,{list:c.list,record:c.record,busy:n?c.busy:"offline",pending:!!c.pending,error:_,strings:r,variant:o,onCancel:()=>d(!1),onRefresh:()=>w(a.list({include_candidates:!0})),onRetry:()=>w(a.retry()),onCreate:S=>{c.list&&w(a.create({include_untracked:S,expected_repository_id:c.list.repository_id,expected_worktree_id:c.list.worktree_id,reason:"manual"}))},onKeep:S=>w(a.pin({checkpoint_id:S.checkpoint_id,pin_id:`user:${crypto.randomUUID()}`,reason:"manual"})),onRelease:(S,C)=>w(a.unpin({checkpoint_id:S.checkpoint_id,pin_id:C})),onCopy:async S=>{m(!1);try{await navigator.clipboard.writeText(S.ref)}catch(C){throw m(!0),C}}},`${g?.sessionId??""}:${g?.cwd??""}:${c.record?.checkpoint_id??"draft"}`):null;return{supported:y,show:v,review:L,open:!!L}}var Ywe=R(qe(),1),tp=R(Q(),1);var Bn=R(ee(),1),Kwe={allow_once:"permission.allowOnce",allow_chat:"permission.allowChat",deny:"permission.deny"};function Xwe(t){let e=(0,Ywe.c)(10),{group:n,expandSignal:r}=t,i=ve(),o=(0,tp.useRef)(null),a,s;e[0]!==r?(a=()=>{r!==0&&o.current?.querySelectorAll("details").forEach(Aot)},s=[r],e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]),(0,tp.useEffect)(a,s);let l;if(e[3]!==n.items||e[4]!==i){let u;e[6]!==i?(u=d=>{let p=d.request.toolCall,m=p&&typeof p=="object"&&!Array.isArray(p)?p:void 0;return(0,Bn.jsxs)("details",{children:[(0,Bn.jsxs)("summary",{children:[(0,Bn.jsx)("span",{children:typeof m?.title=="string"?m.title:i("permission.toolRequest")}),(0,Bn.jsx)("span",{className:"acpmux-permission-item-kind",children:typeof m?.kind=="string"?m.kind:""}),d.state!=="pending"&&(0,Bn.jsx)("span",{children:i(d.state==="cancelled"?"permission.itemCancelled":"permission.itemResolved")})]}),Array.isArray(m?.locations)&&(0,Bn.jsx)("ul",{children:m.locations.map(Rot)}),m?.rawInput!==void 0&&(0,Bn.jsx)("pre",{children:typeof m.rawInput=="string"?m.rawInput:JSON.stringify(m.rawInput,null,2)}),m?.content!==void 0&&(0,Bn.jsx)("pre",{children:JSON.stringify(m.content,null,2)}),m?.rawInput===void 0&&m?.content===void 0&&(0,Bn.jsx)("p",{children:i("permission.noInput")})]},d.permissionId)},e[6]=i,e[7]=u):u=e[7],l=n.items.map(u),e[3]=n.items,e[4]=i,e[5]=l}else l=e[5];let c;return e[8]!==l?(c=(0,Bn.jsx)("div",{className:"acpmux-permission-items",ref:o,children:l}),e[8]=l,e[9]=c):c=e[9],c}function Rot(t,e){let n=t&&typeof t=="object"?t.path:void 0;return typeof n=="string"?(0,Bn.jsx)("li",{children:n},e):null}function Aot(t){t.open=!0}function Qwe({state:t,onRespond:e,onRetry:n,onRevoke:r,onRefresh:i}){let o=ve(),a={allow_once:Ga(cl.permissionAllowOnce),allow_chat:Ga(cl.permissionAllowChat),deny:Ga(cl.permissionDeny)},s=Ga(cl.permissionRetry),l=Ga(cl.permissionRevoke),c=Ga(cl.permissionRefresh),u=Ga(cl.permissionExpand),[d,p]=(0,tp.useState)(0),m=(0,tp.useRef)([]),f=(0,tp.useRef)(t);f.current=t,m.current=t.groups.filter(b=>b.state==="pending"||b.state==="collecting");let h=(0,tp.useRef)({onRespond:e,onRetry:n,onRevoke:r,onRefresh:i});if(h.current={onRespond:e,onRetry:n,onRevoke:r,onRefresh:i},(0,tp.useEffect)(()=>{let b=new Map([["permissionAllowOnce",()=>w("allow_once")],["permissionAllowChat",()=>w("allow_chat")],["permissionDeny",()=>w("deny")],["permissionRetry",v],["permissionRevoke",k],["permissionRefresh",_],["permissionExpand",()=>p(L=>L+1)]]);function w(L){let S=f.current;if(!S.supported||S.busy||S.loading||S.ready===!1||S.uncertain)return;let C=m.current.find(T=>T.state==="pending"&&T.decisions.includes(L));C&&h.current.onRespond(C.groupId,C.revision,L)}function v(){let L=f.current;L.supported&&L.uncertain&&!L.busy&&!L.loading&&h.current.onRetry()}function k(){let L=f.current;L.supported&&L.chatAllowance&&!L.busy&&!L.loading&&!L.uncertain&&h.current.onRevoke()}function _(){let L=f.current;L.supported&&L.error&&!L.busy&&!L.loading&&h.current.onRefresh()}for(let[L,S]of b)window.addEventListener(`cmux-acpmux-${L}`,S);return()=>{for(let[L,S]of b)window.removeEventListener(`cmux-acpmux-${L}`,S)}},[]),!t.supported)return null;let x=t.groups.filter(b=>b.state==="pending"||b.state==="collecting"),g=x.length===0?t.groups.at(-1):void 0;if(!x.length&&!g&&!t.chatAllowance&&!t.error)return null;let y=t.busy||t.loading||t.ready===!1||!!t.uncertain;return(0,Bn.jsxs)("section",{className:"acpmux-permission acpmux-permission-panel","aria-label":o("permission.title"),"aria-busy":t.busy,children:[(0,Bn.jsx)("div",{className:"acpmux-permission-coverage",title:o("permission.coverageDetail"),children:o("permission.coverage")}),t.chatAllowance&&(0,Bn.jsxs)("div",{className:"acpmux-permission-allowance",children:[(0,Bn.jsx)("span",{children:o("permission.chatAllowed")}),(0,Bn.jsx)("button",{disabled:y,onClick:r,children:lu(o("permission.revoke"),l)})]}),x.map(b=>(0,Bn.jsxs)("div",{className:"acpmux-permission-card",children:[(0,Bn.jsx)("strong",{children:o("permission.title")}),(0,Bn.jsx)("p",{className:"acpmux-permission-scope",children:o(b.items.length===1?"permission.count.one":"permission.count.other",{n:b.items.length})}),b.state==="pending"&&(0,Bn.jsx)("button",{type:"button",onClick:()=>p(w=>w+1),children:lu(o("permission.expand"),u)}),(0,Bn.jsx)(Xwe,{group:b,expandSignal:d}),b.state==="collecting"?(0,Bn.jsx)("output",{children:o("permission.collecting")}):(0,Bn.jsxs)(Bn.Fragment,{children:[b.decisions.includes("allow_chat")&&(0,Bn.jsx)("p",{className:"acpmux-permission-scope",children:o("permission.chatScope")}),!b.decisions.includes("allow_once")&&(0,Bn.jsx)("p",{className:"acpmux-permission-scope",children:o("permission.denyOnly")}),(0,Bn.jsx)("div",{className:"acpmux-permission-buttons",children:b.decisions.map(w=>(0,Bn.jsx)("button",{className:w==="deny"?"acpmux-permission-deny":void 0,disabled:y,onClick:()=>e(b.groupId,b.revision,w),children:lu(o(Kwe[w]),a[w])},w))})]})]},b.groupId)),g&&(0,Bn.jsxs)("details",{className:"acpmux-permission-receipt",children:[(0,Bn.jsx)("summary",{children:g.state==="cancelled"?o("permission.cancelled"):g.decision?o(Kwe[g.decision]):o("permission.answered")}),(0,Bn.jsx)(Xwe,{group:g,expandSignal:d})]}),t.error&&(0,Bn.jsxs)("div",{className:"acpmux-permission-error",role:"alert",children:[(0,Bn.jsx)("span",{children:t.error}),(0,Bn.jsx)("button",{disabled:t.busy||t.loading,onClick:t.uncertain?n:i,children:lu(t.uncertain?o("permission.checkRetry"):o("permission.refresh"),t.uncertain?s:c)})]})]})}var $ot={title:"checkpoint.title",createCheckpoint:"checkpoint.createCheckpoint",create:"checkpoint.create",cancel:"checkpoint.cancel",refresh:"checkpoint.refresh",loading:"checkpoint.loading",creating:"checkpoint.creating",untracked:"checkpoint.untracked",emptyUntracked:"checkpoint.emptyUntracked",included:"checkpoint.included",omitted:"checkpoint.omitted",unavailable:"checkpoint.unavailable",reference:"checkpoint.reference",base:"checkpoint.base",created:"checkpoint.created",expires:"checkpoint.expires",pinned:"checkpoint.pinned",complete:"checkpoint.complete",partial:"checkpoint.partial",skipped:"checkpoint.skipped",copyReference:"checkpoint.copyReference",copied:"checkpoint.copied",keep:"checkpoint.keep",release:"checkpoint.release",manualRetention:"checkpoint.manualRetention",failed:"checkpoint.failed",retry:"checkpoint.retry",recovering:"checkpoint.recovering",ignored:"checkpoint.ignored",excluded:"checkpoint.excluded",tooLarge:"checkpoint.tooLarge",notSelected:"checkpoint.notSelected",unavailableFile:"checkpoint.unavailableFile",bytes:"checkpoint.bytes",retained:"checkpoint.retained",offline:"checkpoint.offline",changed:"checkpoint.changed",unsupported:"checkpoint.unsupported",noHead:"checkpoint.noHead"};function Jwe(t=we){return Object.fromEntries(Object.entries($ot).map(([e,n])=>[e,t(n)]))}var cR=R(Q(),1);function eve(t){return t==="quick"?"quick":"pane"}var pV={dismiss:"quick.dismiss",openInWindow:"quick.openInWindow"};function tve(t,e){let n=(0,cR.useRef)(e);n.current=e,(0,cR.useEffect)(()=>{if(!t)return;let r=i=>{i.key!=="Escape"||i.defaultPrevented||i.isComposing||i.keyCode===229||i.shiftKey||i.altKey||i.metaKey||i.ctrlKey||queueMicrotask(()=>{i.defaultPrevented||(i.preventDefault(),n.current())})};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}var ove=R(qe(),1);var nve=R(qe(),1),rve=R(Q(),1);var k5=R(ee(),1);function ive(){let t=(0,nve.c)(23),e=ve(),n;t[0]!==e?(n=e("quick.send"),t[0]=e,t[1]=n):n=t[1];let r;t[2]!==n?(r=["\u21A9",n],t[2]=n,t[3]=r):r=t[3];let i;t[4]!==e?(i=e("quick.openInWindow"),t[4]=e,t[5]=i):i=t[5];let o;t[6]!==i?(o=["\u2318\u21A9",i],t[6]=i,t[7]=o):o=t[7];let a;t[8]!==e?(a=e("quick.close"),t[8]=e,t[9]=a):a=t[9];let s;t[10]!==a?(s=["esc",a],t[10]=a,t[11]=s):s=t[11];let l;t[12]!==r||t[13]!==o||t[14]!==s?(l=[r,o,s],t[12]=r,t[13]=o,t[14]=s,t[15]=l):l=t[15];let c=l,u;t[16]!==e?(u=e("quick.keys"),t[16]=e,t[17]=u):u=t[17];let d;t[18]!==c?(d=c.map(Iot),t[18]=c,t[19]=d):d=t[19];let p;return t[20]!==u||t[21]!==d?(p=(0,k5.jsx)("footer",{className:"acpmux-quick-keys","aria-label":u,children:d}),t[20]=u,t[21]=d,t[22]=p):p=t[22],p}function Iot(t,e){let[n,r]=t;return(0,k5.jsxs)(rve.default.Fragment,{children:[e>0&&(0,k5.jsx)("span",{className:"acpmux-quick-keys-dot","aria-hidden":"true",children:"\xB7"}),(0,k5.jsxs)("span",{className:"acpmux-quick-key",children:[(0,k5.jsx)(d3,{children:n}),r]})]},n)}var Z8=R(ee(),1);function ave(t){let e=(0,ove.c)(8),{transcript:n,asks:r,composer:i}=t,o=n?"":void 0,a;e[0]!==n?(a=n&&(0,Z8.jsx)("div",{className:"acpmux-quick-thread",children:n}),e[0]=n,e[1]=a):a=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,Z8.jsx)(ive,{}),e[2]=s):s=e[2];let l;return e[3]!==r||e[4]!==i||e[5]!==o||e[6]!==a?(l=(0,Z8.jsxs)("div",{className:"acpmux-quick","data-has-transcript":o,children:[a,r,i,s]}),e[3]=r,e[4]=i,e[5]=o,e[6]=a,e[7]=l):l=e[7],l}var sve=R(qe(),1);var W8=R(ee(),1);function lve(t){let e=(0,sve.c)(15),{row:n}=t,r=ve();if(!n.failed)return null;let i;e[0]!==n.error||e[1]!==r?(i=n.error??r("prompt.notSentGesture"),e[0]=n.error,e[1]=r,e[2]=i):i=e[2];let o;e[3]!==i?(o=(0,W8.jsx)("span",{children:i}),e[3]=i,e[4]=o):o=e[4];let a;e[5]!==n.id?(a=()=>{window.cmuxAcpmuxActions?.["chat.retryPrompt"]?.({rowId:n.id})},e[5]=n.id,e[6]=a):a=e[6];let s;e[7]!==r?(s=r("turn.retry"),e[7]=r,e[8]=s):s=e[8];let l;e[9]!==a||e[10]!==s?(l=(0,W8.jsx)("button",{type:"button",className:"cv-user__cancel",onClick:a,children:s}),e[9]=a,e[10]=s,e[11]=l):l=e[11];let c;return e[12]!==o||e[13]!==l?(c=(0,W8.jsxs)("div",{className:"cv-user__status cv-user__status--failed","aria-live":"polite",children:[o,l]}),e[12]=o,e[13]=l,e[14]=c):c=e[14],c}var rt=R(ee(),1);function hV(){return{type:"snapshot",protocolVersion:1,rows:[],sessions:[],connection:"connecting",isWorking:!1,queue:[],catalog:[],canLoadOlder:!1}}function Not(){try{let t=JSON.parse(sessionStorage.getItem("cmux.acpmux.snapshot")??"null");if(t?.type==="snapshot"&&Array.isArray(t.rows)&&Array.isArray(t.sessions))return Mn.markAgent("snapshotPaint"),{...hV(),...t,connection:"connecting"}}catch{}return hV()}function Pt(t,e={}){let n=window.cmuxAcpmuxActions?.[t];return n?n(e):Nc(t,e)}var uve=t=>{Pt(pV.openInWindow,{sessionId:t}).catch(()=>{})},Pot={get:t=>Pt("acp.trust.get",{cwd:t}),set:(t,e)=>Pt("acp.trust.set",{cwd:t,level:e})},jot={diff:t=>Pt("git.diff",{scope:t,include_patch:!0}),status:()=>Pt("git.status",{})},Oot=(t,e)=>Pt("git.checkpoint.diff",{from:t,to:e,include_patch:!0}),Dot=(t,e)=>Pt("file.open",{path:t,where:e}),dve=(0,fe.memo)(function(e){let n=(0,ml.c)(15),{row:r}=e,i=ve();if(r.kind==="user"){let l=r.text??"",c;n[0]!==l?(c=(0,rt.jsx)("div",{className:"cv-user__bubble selectable",children:l}),n[0]=l,n[1]=c):c=n[1];let u;n[2]!==r?(u=(0,rt.jsx)(lve,{row:r}),n[2]=r,n[3]=u):u=n[3];let d;n[4]!==r.queued||n[5]!==r.status||n[6]!==i?(d=r.status&&(0,rt.jsxs)("div",{className:"cv-user__status",children:[(0,rt.jsx)("span",{children:r.status}),r.queued&&(0,rt.jsx)("button",{type:"button",className:"cv-user__cancel",onClick:()=>{window.cmuxAcpmuxActions?.["chat.harness.cancelPrompt"]?.({promptId:r.queued})},children:i("switch.cancelPrompt")})]}),n[4]=r.queued,n[5]=r.status,n[6]=i,n[7]=d):d=n[7];let p;return n[8]!==c||n[9]!==u||n[10]!==d?(p=(0,rt.jsxs)("div",{className:"cv-user",children:[c,u,d]}),n[8]=c,n[9]=u,n[10]=d,n[11]=p):p=n[11],p}let o=r.text??"",a=r.streaming===!0,s;return n[12]!==o||n[13]!==a?(s=(0,rt.jsx)(o9e,{text:o,streaming:a}),n[12]=o,n[13]=a,n[14]=s):s=n[14],s},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),Fot=(0,fe.memo)(function(e){let n=(0,ml.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)(tR,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),Bot=(0,fe.memo)(function(e){let n=(0,ml.c)(7),{row:r,onToggleActivity:i,expanded:o}=e,a;n[0]!==i||n[1]!==r.id?(a=()=>i(r.id),n[0]=i,n[1]=r.id,n[2]=a):a=n[2];let s;return n[3]!==o||n[4]!==r||n[5]!==a?(s=(0,rt.jsx)(A9e,{row:r,expanded:o,onToggle:a}),n[3]=o,n[4]=r,n[5]=a,n[6]=s):s=n[6],s},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version&&t.expanded===e.expanded&&t.onToggleActivity===e.onToggleActivity),zot=(0,fe.memo)(function(e){let n=(0,ml.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)(iwe,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.at===e.row.at),qot=(0,fe.memo)(function(e){let n=(0,ml.c)(1),r;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,rt.jsx)(wwe,{}),n[0]=r):r=n[0],r},(t,e)=>t.row.id===e.row.id),Hot=(0,fe.memo)(function(e){let n=(0,ml.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)(kwe,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version&&t.row.durationMs===e.row.durationMs),Got=t=>{Pt("browser.open",{url:t}).catch(()=>{})},Uot=(0,fe.memo)(function(e){let n=(0,ml.c)(2),{row:r}=e,i;return n[0]!==r.text?(i=r.text?(0,rt.jsx)(nwe,{url:r.text,onOpen:Got}):null,n[0]=r.text,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.text===e.row.text),Vot=(0,fe.memo)(function(e){let n=(0,ml.c)(2),{row:r}=e,i;return n[0]!==r?(i=(0,rt.jsx)($9e,{row:r}),n[0]=r,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),uR=(0,fe.memo)(function(e){let n=(0,ml.c)(2),{row:r}=e,i;return n[0]!==r.text?(i=(0,rt.jsx)("div",{className:"acpmux-muted",children:r.text}),n[0]=r.text,n[1]=i):i=n[1],i},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),Zot=(0,fe.memo)(function(e){let n=(0,ml.c)(9),{row:r}=e,i=ve(),o=r.permission;if(!o){let l;n[0]!==i?(l=i("permission.required"),n[0]=i,n[1]=l):l=n[1];let c;return n[2]!==l?(c=(0,rt.jsx)("div",{className:"acpmux-permission-card",children:(0,rt.jsx)("strong",{children:l})}),n[2]=l,n[3]=c):c=n[3],c}let a;n[4]!==o?(a=mve(o),n[4]=o,n[5]=a):a=n[5];let s;return n[6]!==o||n[7]!==a?(s=(0,rt.jsx)(MG,{permission:o,onAnswer:a}),n[6]=o,n[7]=a,n[8]=s):s=n[8],s},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version),Wot=(0,fe.memo)(function(e){let n=(0,ml.c)(3),{row:r,onOpenDiff:i}=e,o;return n[0]!==i||n[1]!==r?(o=(0,rt.jsx)(X9e,{row:r,onOpenDiff:i}),n[0]=i,n[1]=r,n[2]=o):o=n[2],o},(t,e)=>t.row.id===e.row.id&&t.row.version===e.row.version&&t.onOpenDiff===e.onOpenDiff),bV={user:dve,assistant:dve,activity:Fot,[qf]:Bot,[$b]:zot,[Ib]:qot,[Nb]:Hot,[Pb]:Uot,editedFiles:Wot,turnSummary:Vot,notice:uR,plan:uR,typing:uR,permission:Zot,[qF]:Rwe,[GF]:Lwe};function Kot(t,e){!t||typeof t.animate!="function"||window.matchMedia?.("(prefers-reduced-motion: reduce)").matches||t.animate([{transform:`translateY(${e}px)`},{transform:"translateY(0px)"}],{duration:Xot,easing:"cubic-bezier(0.2, 0, 0, 1)",composite:"add"})}var Xot=180;function Yot(t,e){for(let[n,r]of e){let i=t.get(n);if(!i||i.version!==r.version||i.width!==r.width||Math.abs(i.height-r.height)>=.5)return!0}return!1}function Qot({row:t,kind:e,index:n,setSize:r,top:i,rowWidth:o,expanded:a,observer:s,report:l,enter:c,onEntered:u,children:d}){let p=ve(),m=(0,fe.useRef)(null),[f]=(0,fe.useState)(c);return(0,fe.useLayoutEffect)(()=>{f&&u(t.id)},[]),(0,fe.useLayoutEffect)(()=>{let h=m.current;if(!(!h||!s))return s.observe(h),()=>s.unobserve(h)},[s]),(0,fe.useLayoutEffect)(()=>{let h=m.current;h&&l(t.id,t.version,h.getBoundingClientRect().height)},[t.id,t.version,o,a,l]),(0,rt.jsx)("article",{ref:m,"data-row-id":t.id,className:`acpmux-row acpmux-${e}${f?" acpmux-row--enter":""}`,"aria-label":Jot(e,p),"aria-posinset":n+1,"aria-setsize":r,style:{transform:`translateY(${i}px)`},children:d})}var Jot=(t,e)=>t==="user"?e("transcript.you"):t==="assistant"?e("transcript.agent"):void 0,gV=t=>t.kind==="activity"&&!jb(t)&&t.items?.some(e=>e.tool?.kind==="edit"||e.tool?.kind==="fileChange")?"editedFiles":t.kind,mV=()=>({...bV,...window.cmuxAcpmuxRegistry}),pve=(t,e)=>({top:t.scrollTop,atLatest:t.scrollTop>=e-t.clientHeight-1}),eat=2,tat=3,nat=4;function rat({rows:t,onToggleActivity:e,onOpenDiff:n,expanded:r,registry:i=bV,canLoadOlder:o=!1}){let a=ve(),s=Mn.enabled?performance.now():0,[l,c]=(0,fe.useState)({top:0,delta:0}),[u,d]=(0,fe.useState)(600),p=(0,fe.useRef)(null),[m,f]=(0,fe.useState)(760),[h,x]=(0,fe.useState)(new Map),g=(0,fe.useRef)(new Map),y=(0,fe.useRef)(h);y.current=h;let b=(0,fe.useRef)(C2(m));b.current=C2(m);let w=(0,fe.useRef)(t);w.current=t;let v=(0,fe.useRef)(null),k=(0,fe.useRef)(new Set);if(v.current===null)v.current=new Set(t.map(J=>J.id));else{let J=t.filter(W=>!v.current.has(W.id));for(let W of J)v.current.add(W.id);if(J.length<=tat)for(let W of J)k.current.add(W.id)}let _=(0,fe.useCallback)(J=>{k.current.delete(J)},[]),L=(0,fe.useCallback)((J,W,ie)=>{ie>0&&g.current.set(J,{version:W,width:b.current,height:ie})},[]),S=(0,fe.useCallback)(()=>{if(!g.current.size)return;let J=g.current;g.current=new Map,x(W=>{let ie;for(let[Z,le]of J){let se=W.get(Z);se&&se.version===le.version&&se.width===le.width&&Math.abs(se.height-le.height)<.5||(ie??=new Map(W),ie.set(Z,le))}return ie??W})},[]),C=(0,fe.useMemo)(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver(J=>{for(let W of J??[]){let ie=W.target,Z=w.current[Number(ie.getAttribute("aria-posinset"))-1];Z&&Z.id===ie.dataset.rowId&&L(Z.id,Z.version,ie.getBoundingClientRect().height)}Yot(y.current,g.current)?(0,fV.flushSync)(S):g.current=new Map}),[L,S]);(0,fe.useEffect)(()=>()=>C?.disconnect(),[C]),(0,fe.useEffect)(()=>{let J=M.current;if(J.size<=t.length&&h.size<=t.length)return;let W=new Set(t.map(ie=>ie.id));for(let ie of J.keys())W.has(ie)||J.delete(ie);x(ie=>[...ie.keys()].every(Z=>W.has(Z))?ie:new Map([...ie].filter(([Z])=>W.has(Z))))},[t,h]),(0,fe.useLayoutEffect)(S);let T=(0,fe.useRef)(!1),M=(0,fe.useRef)(new Map);(0,fe.useEffect)(()=>{let J=p.current;if(!J)return;let W=new ResizeObserver(()=>{d(J.clientHeight),f(J.clientWidth)});return W.observe(J),f(J.clientWidth),()=>W.disconnect()},[]);let A=(0,fe.useRef)(null),$=(0,fe.useRef)(t),N=(0,fe.useRef)(null);(0,fe.useEffect)(()=>{let J=p.current;if(!J)return;let W=()=>{for(let Z of N.current?.getAnimations?.()??[])Z.finish()},ie=["wheel","touchstart","keydown"];for(let Z of ie)J.addEventListener(Z,W,{passive:!0});return()=>{for(let Z of ie)J.removeEventListener(Z,W)}},[]);let F=(0,fe.useRef)({top:0,atLatest:!1}),D=(0,fe.useMemo)(()=>{let J=Mn.enabled?performance.now():0;return{layout:use(t,C2(m),M.current,(ie,Z)=>i[gV(ie)]?.measure?.(ie,Z)),ms:Mn.enabled?performance.now()-J:0}},[t,m,i]),O=(0,fe.useMemo)(()=>{let J=Mn.enabled?performance.now():0,W=C2(m);return{layout:h.size===0?D.layout:dse(D.layout,Z=>{let le=h.get(t[Z].id);return le&&le.version===t[Z].version&&le.width===W?le.height:void 0}),ms:Mn.enabled?performance.now()-J:0}},[D,h,t,m]),B=O.layout,P=(0,fe.useRef)(null),U=(0,fe.useRef)(null),G=Math.min(Math.abs(l.delta)*eat,u*nat),j=TO(B,l.delta<0?l.top-G:l.top,u+G);(0,fe.useLayoutEffect)(()=>{let J=j.last-1;Mn.mountedTop=j.last>j.first?B.tops[j.first]:0,Mn.mountedBottom=j.last>j.first?B.tops[J]+B.heights[J]:0;let W=P.current!==O;P.current=O;let ie=U.current!==D;U.current=D;let Z=(W?O.ms:0)+(ie?D.ms:0);if(Mn.enabled&&W&&Mn.addLayout(Z),Mn.enabled&&s>0){let le=performance.now();Mn.commit(le-s,Z,Mn.mountedTop,Mn.mountedBottom,le)}}),(0,fe.useLayoutEffect)(()=>{let J=A.current,W=$.current,ie=p.current;if(J&&ie){let Z=ie.scrollTop,le=Z<F.current.top-.5&&Z>=ie.scrollHeight-ie.clientHeight-.5,se=Math.abs(Z-F.current.top)<=.5,ge=le?F.current.top:Z,ce=le||se?F.current.atLatest:ge>=J.totalHeight-ie.clientHeight-1;if(ge>0&&T.current&&ce){let be=Math.max(0,B.totalHeight-ie.clientHeight),ke=be-ie.scrollTop;Math.abs(ke)>.5&&(ie.scrollTop=be),ke>.5&&ke<ie.clientHeight&&Kot(N.current,ke)}else if(ge>0){let be=TO(J,ge,0,0).first,ke=W[be]?.id,me=t[be]?.id===ke?be:t.findIndex(Se=>Se.id===ke);if(me>=0){let Se=B.tops[me]-J.tops[be];(le||Math.abs(Se)>.5)&&(ie.scrollTop=ge+Se)}}}if(!T.current&&ie&&B.totalHeight>ie.clientHeight){let Z=Math.max(0,B.totalHeight-ie.clientHeight);ie.scrollTop=Z,c({top:Z,delta:0}),T.current=!0}A.current=B,$.current=t,ie&&(F.current=pve(ie,B.totalHeight))},[B,t,j.first,u]);let V=(0,fe.useMemo)(()=>new CL,[]),H=(0,fe.useMemo)(()=>new kL(J=>{fme(J,Pt,V)}),[V]);(0,fe.useEffect)(()=>()=>H.stop(),[H]);let ne=J=>{H.scrolled();let W=J.currentTarget.scrollTop;F.current=pve(J.currentTarget,B.totalHeight),(0,fV.flushSync)(()=>c(ie=>({top:W,delta:W-ie.top})))};return(0,rt.jsx)("div",{ref:p,className:"acpmux-scroll",role:"feed","aria-label":a("transcript.label"),onScroll:ne,children:(0,rt.jsx)("div",{className:"acpmux-spacer",style:{height:B.totalHeight},children:(0,rt.jsx)("div",{ref:N,className:"acpmux-thread",children:t.slice(j.first,j.last).map((J,W)=>{let ie=j.first+W,Z=gV(J),le=i[Z]??uR,se=r.has(J.id);return(0,rt.jsx)(Qot,{row:J,kind:Z,index:ie,setSize:o?-1:t.length,top:B.tops[ie],rowWidth:C2(m),expanded:se,observer:C,report:L,enter:k.current.has(J.id),onEntered:_,children:(0,rt.jsx)(le,{row:J,onToggleActivity:e,onOpenDiff:n,expanded:se})},J.id)})})})})}var mve=t=>e=>{Pt("chat.permission",{permissionId:t.permissionId,optionId:e})};function iat(t){let e=(0,ml.c)(2),{snapshot:n}=t,r;return e[0]!==n?(r=(0,rt.jsx)(jde,{snapshot:n,onModel:uat,onMode:cat,onEffort:lat,onHarness:sat,showPlan:!1,onCompact:aat,onHarnessHint:oat}),e[0]=n,e[1]=r):r=e[1],r}function oat(t){window.cmuxAcpmuxActions?.["chat.harness.hint"]?.({harness:t})}function aat(){Pt("chat.send",{text:"/compact",attachments:[]})}function sat(t){Pt("chat.new",{harness:t})}function lat(t,e){Pt("chat.effort",{configId:t,value:e})}function cat(t){Pt("chat.mode",{modeId:t})}function uat(t){Pt("chat.model",{modelId:t})}function fve(){let t=(0,ml.c)(3),[e]=(0,fe.useState)(kpe),n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,rt.jsx)(dat,{}),t[0]=n):n=t[0];let r;return t[1]!==e?(r=(0,rt.jsx)(rI,{client:e,children:n}),t[1]=e,t[2]=r):r=t[2],r}function dat(){let t=ve(),[e,n]=(0,fe.useState)(),[r,i]=(0,fe.useState)(!1),[o,a]=(0,fe.useState)(!1),[s,l]=(0,fe.useState)(),[c,u]=(0,fe.useState)(!1),[d,p]=(0,fe.useState)(),[m]=(0,fe.useState)(()=>new _L(Pt)),f=(0,fe.useSyncExternalStore)(m.subscribe,m.snapshot,m.snapshot),[h,x]=(0,fe.useState)([]),[g,y]=(0,fe.useState)(),[b,w]=(0,fe.useState)(Not),[v]=(0,fe.useState)(()=>new lL),k=(0,fe.useSyncExternalStore)(v.subscribe,v.view,v.view),_=Z4(),L=(0,fe.useRef)(0),[S,C]=(0,fe.useState)(),T=Cpe(S,b.catalog),M=(0,fe.useMemo)(()=>Spe(b,k,T),[b,k,T]),A=(0,fe.useMemo)(()=>g_(t),[t]),$=(0,fe.useMemo)(()=>Jwe(t),[t]),[N,F]=(0,fe.useState)("compact"),D=Zwe({request:Pt,target:M.summary?.cwd?{cwd:M.summary.cwd,sessionId:M.sessionId,hostKind:M.summary.hostKind}:void 0,online:M.connection==="connected",strings:$,variant:N}),O=(0,fe.useRef)(D.show);O.current=D.show;let B=(0,fe.useRef)(!1);(0,fe.useEffect)(()=>{!o||B.current||(B.current=!0,requestAnimationFrame(()=>requestAnimationFrame(()=>{Pt("pane.painted").catch(()=>{})})))},[o]),(0,fe.useEffect)(()=>{Pt("pane.checkpointAvailability",{available:D.supported}).catch(()=>{})},[D.supported,M.sessionId]);let[P,U]=(0,fe.useState)(!1),[G,j]=(0,fe.useState)(0);(0,fe.useEffect)(()=>U(!1),[M.sessionId]);let V=(0,fe.useCallback)(()=>U(!1),[]),[H,ne]=(0,fe.useState)(new Set),J=M.connection!=="disconnected"&&!M.connection.startsWith("connecting"),W=!!M.canFork&&J,ie=M.handoff?.record,Z=!!ie&&ie.target.sessionId===M.sessionId&&["draft","starting"].includes(ie.state)&&!M.handoff?.receipt,le=!!M.sessionId&&!!M.canHandoff&&!M.handoff?.ready,se=!Z&&!le&&Vye(M,r),ge=(0,fe.useRef)(void 0),ce=o3e(Pot,{sessionId:M.sessionId,cwd:M.summary?.cwd??(M.sessionId?void 0:s),family:M.summary?.family||M.summary?.harness,prompts:M.rows.filter(ue=>ue.kind==="user").length},M.origin!=="remote");ge.current=ce.refused;let be=M.permission?.pending&&!(M.permissionGroups?.supported&&M.permission.groupId)?M.permission:void 0,ke=(0,fe.useMemo)(()=>h.filter(ue=>ue.sessionId===M.sessionId),[h,M.sessionId]),me=ke.at(-1)?.cwd,Se=me??M.summary?.cwd,de=(0,fe.useCallback)(ue=>Pt("file.search",{...Se?{path:Se}:{},query:ue,limit:50}),[Se]),Le=(0,fe.useMemo)(()=>f.filter(ue=>ue.sessionId===M.sessionId),[f,M.sessionId]),Ne=se&&Le.length===0,Be=(0,fe.useMemo)(()=>{let ue=M.permissionGroups,je=new Set(ue?.groups.flatMap(_n=>_n.items.map(xr=>xr.permissionId))),Lt=ue?.supported?M.rows.filter(_n=>_n.kind!=="permission"||!_n.permission?.groupId&&!je.has(_n.permission?.permissionId??"")):M.rows;return xme(hme(aJ(Lt,H,{working:M.isWorking}),Le),ke)},[M.rows,H,M.isWorking,M.permissionGroups,Le,ke]),[_e,xe]=(0,fe.useState)(),Ce=(0,fe.useRef)(M.sessionId);Ce.current=M.sessionId;let K=(0,fe.useCallback)((ue,je,Lt)=>xe({sessionId:Ce.current,rowId:ue,path:je,opener:Lt??(document.activeElement instanceof HTMLElement?document.activeElement:void 0)}),[]),Y=(0,fe.useCallback)(ue=>{let je=[...M.rows].reverse().find(Lt=>Lt.kind==="activity"&&Lt.items?.some(_n=>_n.tool?.diffs?.some(xr=>xr.path===ue)));je&&K(je.id,ue)},[M.rows,K]),ye=(0,fe.useRef)(!1),Re=(0,fe.useCallback)(()=>{ye.current=!0,xe(void 0)},[]),Ke=(0,fe.useRef)(void 0);_e?.opener&&(Ke.current=_e.opener),(0,fe.useLayoutEffect)(()=>{if(_e||!Ke.current)return;let ue=document.activeElement;(ye.current||!ue||ue===document.body)&&Ke.current.focus(),ye.current=!1,Ke.current=void 0},[_e]);let mt=_e!==void 0&&_e.sessionId===M.sessionId&&M.rows.some(ue=>ue.id===_e.rowId);(0,fe.useEffect)(()=>{_e&&!mt&&xe(void 0)},[_e,mt]);let[dt,Ae]=(0,fe.useState)(()=>new Map),wt=(0,fe.useMemo)(()=>{let ue=(je,Lt,_n)=>Ae(xr=>{let po=new Map(xr);for(let Ss of je)(!_n||po.get(Ss)===_n)&&po.set(Ss,Lt);return po});return{decisions:dt,decide:(je,Lt)=>Ae(_n=>{let xr=new Map(_n);return Lt?xr.set(je,Lt):xr.delete(je),xr}),requestRevert:(je,Lt)=>{let _n=je.map(xr=>[xr,dt.get(xr)]);ue(je,"requested"),Pt("chat.send",{text:Lt}).catch(()=>Ae(xr=>wxe(xr,_n)))}}},[dt]);(0,fe.useEffect)(()=>Ae(ue=>ue.size?new Map:ue),[M.sessionId]);let Tt=(0,fe.useMemo)(()=>({...W&&{fork:ue=>{Pt("chat.fork",{throughSeq:ue}).catch(()=>{})}},...J&&{retry:ue=>{Pt("chat.send",{text:ue}).catch(()=>{})}},review:wt}),[W,J,wt]),Ot=(0,fe.useRef)(void 0),zt=(0,fe.useMemo)(()=>{if(!_e||!mt)return;let ue=j0(M.rows,_e.rowId).filter(Lt=>Lt.kind==="activity"),je=`${_e.rowId}\0${ue.map(Lt=>`${Lt.id}:${Lt.version}`).join("|")}`;return Ot.current?.key!==je&&(Ot.current={key:je,files:Sd(ue)}),Ot.current.files},[_e,mt,M.rows]),Ve=(0,fe.useRef)(M.rows);Ve.current=M.rows;let Jt=(0,fe.useCallback)(({rowId:ue})=>Sse(Ve.current,ue,Oot),[]),rn=$8e(Jt,M.sessionId),{request:Rn,get:St}=rn,An=(0,fe.useCallback)(ue=>j0(Ve.current,ue)[0]?.id??ue,[]),Xt=_e&&mt?An(_e.rowId):void 0,zn=_e&&mt?j0(M.rows,_e.rowId).some(ue=>ue.kind==="turnSummary"):!1;(0,fe.useEffect)(()=>{Xt&&zn&&Rn(Xt)},[Xt,zn,Rn]);let Dt=(0,fe.useMemo)(()=>{if(!zt||!Xt)return;let ue=new Set(zt.flatMap(Lt=>Lt.edits.map(_n=>_n.toolId))),je=[...dt].some(([Lt,_n])=>_n==="rejected"&&ue.has(Lt.split("\0")[0]));return UU(t,zt,St(Xt)??{state:"loading"},je)},[zt,Xt,dt,t,St]),mn=(0,fe.useMemo)(()=>{let ue=!1;for(let je=M.rows.length-1;je>=0;je--){let Lt=M.rows[je];if(Lt.kind==="turnSummary")ue=!0;else if(Lt.kind==="editedFiles")return ue?Lt.id:void 0}},[M.rows]);(0,fe.useEffect)(()=>{mn&&Rn(An(mn))},[mn,Rn,An]);let yn=(0,fe.useCallback)((ue,je)=>FT(je,St(An(ue))),[St,An]),In=(0,fe.useRef)(void 0),er=(0,fe.useMemo)(()=>{let ue=[...M.rows].reverse().find(_n=>gV(_n)==="editedFiles");if(!ue)return;let je=j0(M.rows,ue.id).filter(_n=>_n.kind==="activity"),Lt=`${ue.id}\0${je.map(_n=>`${_n.id}:${_n.version}`).join("|")}`;return In.current?.key!==Lt&&(In.current={key:Lt,rowId:ue.id,files:Sd(je)}),In.current},[M.rows]),ae=(0,fe.useMemo)(()=>er?yn(er.rowId,er.files):void 0,[er,yn]),st=()=>{if(_e&&mt)return Re();er&&K(er.rowId)},[Mt,Ye]=(0,fe.useState)(bV),[vt,jn]=(0,fe.useState)(),Kn=bpe(jn),un=(0,fe.useCallback)(ue=>{Pt("chat.select",{sessionId:ue})},[]),it=(0,fe.useRef)(void 0);it.current={snapshot:M,selectSession:un,openDiff:K,diff:{open:mt,paths:(zt??[]).map(ue=>ue.path)}};let[ft,En]=(0,fe.useState)("closed"),jt=ue=>En(je=>lwe(je,ue,swe())),[Nt,mi]=(0,fe.useState)({}),[Ei,Ti]=(0,fe.useState)(!1),[Ua,fl]=(0,fe.useState)("pane"),Ge=Ua==="quick",dn=(0,fe.useRef)(Ua);dn.current=Ua;let pt=(0,fe.useRef)({pending:!1,landed:!1}),vs=()=>{let ue=Ce.current;!pt.current.pending||!pt.current.landed||!ue||(pt.current.pending=!1,uve(ue))},Gr=(0,fe.useRef)(()=>{});Gr.current=()=>{pt.current.landed=!0,vs()};let np=()=>{pt.current.pending=!1},Ri=ue=>{ue?pt.current={pending:!0,landed:!1}:M.sessionId&&uve(M.sessionId)};(0,fe.useEffect)(vs,[M.sessionId]),tve(Ge,()=>{np(),Pt(pV.dismiss).catch(()=>{})});let Wi=(0,fe.useRef)(new Map),co=(0,fe.useRef)(void 0),ks=(0,fe.useRef)(void 0),da=(0,fe.useRef)(null),Oo=(0,fe.useRef)(null),Cs=(0,fe.useRef)(void 0),Th=(0,fe.useCallback)(ue=>{Oo.current=ue;let je=Cs.current;if(!(!ue||!je)){Cs.current=void 0;for(let Lt of je)ue.restore(Lt.text,Lt.attachments)}},[]);tme(()=>da.current?(da.current.focus(),!0):!1);let uo=(0,fe.useRef)(se);uo.current=se;let pa=(0,fe.useCallback)(()=>{let ue=()=>requestAnimationFrame(()=>da.current?.focus());if(uo.current){ue();return}Pt("chat.new").then(ue,()=>{})},[]),rp=W8e(da,Pt),[tf,ac]=(0,fe.useState)(),[Rh,Do]=(0,fe.useState)(!1),sc=(0,fe.useRef)(void 0),Fo=(0,fe.useMemo)(()=>{let ue=T===M.catalog?M:{...M,catalog:T};return s&&!M.sessionId?{...ue,summary:{sessionId:"",cwd:s}}:ue},[M,T,s]);(0,fe.useEffect)(()=>{M.sessionId&&l(void 0)},[M.sessionId]);let nf=(0,fe.useRef)(!1);(0,fe.useEffect)(()=>{!M.sessionId||!nf.current||(nf.current=!1,m.claim(M.sessionId))},[M.sessionId,m]);let rf=(0,fe.useMemo)(()=>({stop:ue=>m.stop(ue),openInTerminal:ue=>{Pt("tab.open",{kind:"terminal",text:ue.command,run:!1,...ue.cwd?{cwd:ue.cwd}:{}}).catch(()=>{})}}),[m]),of=(0,fe.useCallback)((ue,je)=>{if(se&&!M.sessionId&&!je){l(ue);return}Pt("chat.new",{cwd:ue,...je?{peer:je}:{}}).catch(()=>{})},[se,M.sessionId]);(0,fe.useEffect)(()=>{window.React=fe.default,window.cmuxAcpmuxRegistry={register(Me,At,$n){let wr=window.cmuxAcpmuxRegistry;wr[Me]===At&&(!$n?.measure||$n.measure===At.measure)||($n?.measure&&(At.measure=$n.measure),wr[Me]=At,Ye(mV()))},configure(){Ye(mV())}},window.cmuxAcpmuxBridge={command(Me){Me==="searchChats"&&dn.current!=="quick"&&jt("toggle"),Me==="createCheckpoint"&&O.current(),["permissionAllowOnce","permissionAllowChat","permissionDeny","permissionExpand","permissionRetry","permissionRevoke","permissionRefresh"].includes(Me)&&window.dispatchEvent(new CustomEvent(`cmux-acpmux-${Me}`)),Me==="continueIn"&&co.current?.canHandoff&&co.current.handoff?.ready&&!co.current.isWorking&&!co.current.queue.length&&U(!0)},receive(Me){if(Me.protocolVersion!==1)return;let At=lse(Wi.current,Me.rows);Wi.current=new Map(Me.rows.map($n=>[$n.id,$n])),co.current=Me;try{sessionStorage.setItem("cmux.acpmux.snapshot",JSON.stringify(Me))}catch{}w(Me)},applyTheme(Me){QY(Me)},applyShortcuts(Me){mi(Q8e(Me))},applyPreview(Me){Ti(Me===!0)},revealTurn(Me){rV(Me)},applyCustomization(Me){if("themeCSS"in Me){let At=document.getElementById("acpmux-user-theme");At||(At=document.createElement("style"),At.id="acpmux-user-theme",document.head.append(At)),At.textContent=Me.themeCSS??""}if(Me.registryJS)try{(0,eval)(Me.registryJS),Ye(mV())}catch{}Me.layout&&(U8e(Me.layout),window.cmuxAcpmuxRegistry?.configure(Me.layout))},dictation(Me){H8e(Me)}};let ue=LC();ue&&Foe(ue).catch(()=>{}),window.cmuxAcpmuxDebug=mme({replaceRows(Me){Wi.current=new Map(Me.map(At=>[At.id,At])),w(At=>({...At,rows:Me,connection:"debug",isWorking:!1,canLoadOlder:!1}))},rowCount:()=>Wi.current.size,sessionId:()=>ks.current?.selectedSession,automation:{snapshot:()=>it.current.snapshot,call:(Me,At)=>Pt(Me,At),selectSession:Me=>it.current?.selectSession(Me),openDiff:Me=>it.current?.openDiff(Me),diff:()=>it.current?.diff??{open:!1,paths:[]}}});let je=!1,Lt,_n=250,xr=2e3,po=!1,Ss=!1,uu=!1,lf,uc,Zu,gl=new Set,E5=(Me,At)=>{Oo.current?Oo.current.restore(Me,At):Cs.current=[...Cs.current??[],{text:Me,attachments:At}]},Fe=async()=>{if(!Ss){Ss=!0;try{Mn.markAgent("handshakeStart"),D0.lifecycle("handshake",{reconnect:po});let Me=await Pt("ready",po?{reconnect:po}:{});if(je)return;Mn.markAgent("handshakeReady"),i(Me.newSession===!0&&!Me.sessionId),Me.newSession&&!Me.sessionId&&typeof Me.cwd=="string"&&Me.cwd&&l(Me.cwd),u(Me.chooseFolder===!0),a(!0),(Me.newSession&&!Me.sessionId||Me.sessionId&&co.current?.sessionId&&Me.sessionId!==co.current.sessionId)&&w(hV()),po||fl(eve(Me.surface)),y(typeof Me.machineName=="string"&&Me.machineName?Me.machineName:void 0),po||jn(iL(Me));let At=xF(Me.draft);At&&n(At),lf=xF(Me.prompt)??lf,typeof Me.harness=="string"&&Me.harness&&(uc=Me.harness);let $n=Me.transport==="mock";fwe(Me.linkScheme,$n?mwe:void 0),$n&&F(new URLSearchParams(window.location.search).get("checkpointVariant")==="expanded"?"expanded":"compact");let wr=Me.transport==="acpmux-bridge";if(!$n&&!wr&&!(Me.transport==="acpmux-websocket"&&Me.endpoint&&Me.token)){ac(void 0);return}let or=Me.newSession?{...jF,sessionId:void 0,newSession:!0}:jF,kt=await $2.connect($n?or:Me,Ze=>{Wi.current=new Map(Ze.rows.map(Ka=>[Ka.id,Ka])),co.current=Ze;let en=Ze.summary,vr=en?.model!==void 0&&gl.delete(en.sessionId);sL.observe(en,vr),w(Ka=>Ze.canHandoff&&!Ze.handoff?.ready&&Ze.sessionId===Ka.sessionId&&Ka.handoff?.record?{...Ze,handoff:{...Ze.handoff,record:Ka.handoff.record}}:Ze)},()=>{je||(po=!0,v.disconnect(Zu),ks.current=void 0,delete window.cmuxAcpmuxActions,Lt=window.setTimeout(()=>{Fe()},_n),_n=Math.min(_n*2,po?xr:3e4))},$n?()=>new gL(void 0,window.cmuxAcpmuxMockScript):wr?()=>new _C:void 0,$n?"daemon":"native");if(je){kt.close();return}ks.current=kt,ac(void 0),L.current+=1,C({id:L.current,client:kt}),_n=250;let hi=Ze=>Ze&&!$n?Pt("chat.persistSession",{sessionId:Ze}).catch(()=>{}):Promise.resolve(),ma=async(Ze,en=[],vr)=>{let Ka=(_t,at)=>{throw I2(_t)&&(at||E5(Ze,en),ge.current?.(_t,()=>Oo.current?.send())),_t},K8=v.send(Ze,en,()=>Gr.current());if(K8)return vr?.(),K8.catch(_t=>Ka(_t,_t.handedBack===!0));let re=await kt.ensureSession().catch(_t=>Ka(_t,!!vr));await hi(re);let $e=kt.send(Ze,en,void 0,vr).catch(_t=>Ka(_t,!!vr));return Gr.current(),$e};window.cmuxAcpmuxActions={"chat.send":({text:Ze,attachments:en,accepted:vr})=>ma(String(Ze??""),Array.isArray(en)?en:[],typeof vr=="function"?vr:void 0),"chat.cancel":()=>kt.cancel(),"chat.permission":({permissionId:Ze,optionId:en})=>kt.permission(String(Ze),String(en)),"chat.permission_group.respond":({groupId:Ze,revision:en,decision:vr})=>kt.permissionGroup(String(Ze),Number(en),vr),"chat.permission_group.retry":()=>kt.permissions.retry(),"chat.permission_chat.revoke":()=>kt.permissions.revoke(),"chat.permission_groups.refresh":()=>kt.permissions.refresh(),"chat.model":({modelId:Ze})=>{let en=co.current?.summary;return v.pickModel(String(Ze),en?.sessionId?{sessionId:en.sessionId,model:en.model}:void 0)},"chat.mode":async({modeId:Ze})=>{v.pickMode(String(Ze))||await kt.setMode(String(Ze))},"chat.effort":async({configId:Ze,value:en})=>{v.pickConfig(String(Ze),String(en))||await kt.setConfig(String(Ze),String(en))},"chat.select":async({sessionId:Ze})=>(v.cancel(),hi(await kt.select(String(Ze)))),"chat.new":async({harness:Ze,cwd:en,peer:vr})=>Ze&&!vr?v.switchTo(String(Ze),en?String(en):void 0):(v.cancel(),hi(await kt.create(Ze?String(Ze):void 0,en?String(en):void 0,vr?String(vr):void 0))),"chat.harness.hint":async({harness:Ze})=>v.hint(Ze?String(Ze):void 0),"chat.harness.retry":async()=>v.retry(),"chat.harness.cancelPrompt":async({promptId:Ze})=>v.cancelQueued(String(Ze)),"chat.retryPrompt":({rowId:Ze})=>kt.retryPrompt(String(Ze)),"chat.history":()=>kt.loadOlder(),"acp.trust.get":({cwd:Ze})=>kt.trustGet(String(Ze)),"acp.trust.set":({cwd:Ze,level:en})=>kt.trustSet(String(Ze),String(en)),"file.search":({path:Ze,query:en,limit:vr})=>kt.fileSearch(typeof Ze=="string"?Ze:void 0,String(en??""),typeof vr=="number"?vr:50),"chat.fork":async({throughSeq:Ze})=>(v.cancel(),hi(await kt.fork(Number(Ze)))),"chat.handoff.prepare":async({harness:Ze})=>(v.cancel(),hi(await kt.continueIn(String(Ze)))),"chat.handoff.get":()=>kt.refreshHandoff(),"chat.handoff.draft":({review:Ze})=>kt.saveHandoff(Ze),"chat.handoff.start":({review:Ze})=>kt.startHandoff(Ze),"chat.handoff.discard":async()=>hi(await kt.discardHandoff()),"git.diff":({scope:Ze})=>kt.gitDiff(String(Ze)),"git.status":()=>kt.gitStatus(),"git.checkpoint.diff":({from:Ze,to:en})=>kt.gitCheckpointDiff(String(Ze),String(en)),"pane.context":async()=>co.current?xpe(co.current):{urls:[]}},Zu={turnRunning:()=>kt.turnRunning(),shown:()=>kt.shownSession(),create:async(Ze,en)=>{let vr=await kt.startSession(Ze,en);return vr&&gl.add(vr),vr},leave:()=>kt.leave(),open:Ze=>kt.select(Ze),send:(Ze,en,vr)=>kt.send(Ze,en,vr),setModel:Ze=>kt.setModel(Ze),setMode:(Ze,en)=>kt.setMode(Ze,en),setConfig:(Ze,en,vr)=>kt.setConfig(Ze,en,vr),discard:Ze=>kt.discard(Ze),prewarm:(Ze,en)=>kt.prewarm(Ze,en),prewarmSupported:()=>kt.prewarmSupported},v.setHandlers({restore:E5,opened:Ze=>{hi(Ze),_.invalidateQueries({queryKey:["acpmux","harnesses"]})},notice:Ze=>kt.notice(Ze),gesture:Ze=>Nc("transport.gesture",{intent:Ze}).then(en=>en?.ticket)}),v.connect(Zu),Mn.markAgent("composerReady"),kt.snapshot(),kt.warmRecentProjects(),kt.adopted&&hi(kt.adopted),typeof Me.revealTurn=="string"&&rV(Me.revealTurn);let Bo=lf,G3=uc;lf=void 0,uc=void 0,G3&&Bo?(v.switchTo(G3,Me.cwd),ma(Bo).catch(()=>{})):Bo&&ma(Bo).catch(()=>n(Bo))}catch(Me){je||(D0.lifecycle("handshake failed",{message:String(Me)}),w(At=>({...At,connection:`connecting: ${String(Me)}`})),ac(Su(Me)||String(Me)),Lt=window.setTimeout(()=>{Fe()},_n),_n=Math.min(_n*2,po?xr:3e4))}finally{Ss=!1,uu&&(uu=!1,Do(!1),!je&&!ks.current&&tt())}}},tt=()=>{Lt!==void 0&&window.clearTimeout(Lt),Lt=void 0,po=!1,_n=250,Fe()};return sc.current=()=>{if(!je){if(!Ss)return tt();uu=!0,Do(!0)}},Fe(),()=>{je=!0,v.disconnect(),sc.current=void 0,Lt!==void 0&&window.clearTimeout(Lt),ks.current?.close(),ks.current=void 0,delete window.cmuxAcpmuxActions}},[v,_]);let lc=window.cmuxAcpmuxRegistry?.composerChips??iat,Va=pse(Fo,t),fi=M.summary?.harness?.split(/[-_]/)[0],cu=Fo.catalog.filter(ue=>{let je=ue.id.split(/[-_]/)[0];return fi==="claude"?je==="codex":fi==="codex"&&je==="claude"}),_s=!!M.canHandoff&&!!M.handoff?.ready&&!M.isWorking&&!M.queue.length&&!M.handoff?.busy&&!Z&&cu.length>0,hl=ue=>{ue.catch(()=>{})},Za=(ue,je)=>hl(Pt("pane.action",je?{id:ue,cwd:je}:{id:ue})),cc=M.summary,ip=cc&&!cc.peer&&!(cc.host&&cc.hostKind!=="local")?cc.cwd:void 0,Ah=(0,fe.useRef)(!1),C5=()=>Pt("pane.tabState").then(ue=>{Ah.current=ue?.pinned===!0}),_5=[...M.rows].reverse().find(ue=>ue.seq!==void 0)?.seq,$h=ue=>({key:"copyLink",label:t("chatMenu.copyLink"),icon:"link",shortcutAction:cl.copyTabLink,onSelect:()=>hl(ba(ue))}),S5=()=>{let ue=M.sessionId?hwe(M.sessionId):void 0,je=[...W&&_5!==void 0?[{key:"fork",label:t("chatMenu.fork"),icon:"agent.fork",onSelect:()=>Tt.fork?.(_5)}]:[],...M.canHandoff&&cu.length>0?[{key:"continue",label:A.continueIn,icon:"agent.handoff",disabled:!_s,children:cu.map(Lt=>({key:Lt.id,label:Lt.name,onSelect:()=>hl(Pt("chat.handoff.prepare",{harness:Lt.id}))}))}]:[],...D.supported?[{key:"checkpoint",label:$.createCheckpoint,icon:"action.review",onSelect:D.show}]:[]];return Ge?je.length?[...je,...ue?["separator",$h(ue)]:[]]:[]:[{key:"rename",label:t("chatMenu.rename"),icon:"action.edit",shortcutAction:xs.rename,onSelect:()=>Za(xs.rename)},{key:"pin",label:Ah.current?t("chatMenu.unpin"):t("chatMenu.pin"),icon:"action.pin",shortcutAction:xs.pin,onSelect:()=>Za(xs.pin)},...je.length?["separator",...je]:[],...ue?["separator",$h(ue)]:[],"separator",{key:"moveRight",label:t("chatMenu.moveRight"),icon:"pane.split.right",shortcutAction:xs.moveRight,onSelect:()=>Za(xs.moveRight)},{key:"newWorkspace",label:t("chatMenu.newWorkspace"),icon:"workspace.new",shortcutAction:xs.newWorkspace,onSelect:()=>Za(xs.newWorkspace)},"separator",{key:"close",label:t("chatMenu.close"),icon:"tab.close",shortcutAction:xs.close,onSelect:()=>Za(xs.close)}]},af=vt!==void 0&&!M.sessionId&&M.rows.length===0,Ih=(ue,je,Lt)=>{if(ue!=="agent"){Pt("tab.open",Lt?{kind:ue,text:je,cwd:Lt}:{kind:ue,text:je});return}jn(void 0),(async()=>{Lt&&await Pt("chat.new",{cwd:Lt}),je&&await Pt("chat.send",{text:je})})().catch(()=>{})},L5=(0,fe.useCallback)(()=>Pt("project.list").then(ue=>(ue?.projects??[]).map(je=>({cwd:je,label:x8(je)??je}))),[]),[op,M5]=(0,fe.useState)([]);(0,fe.useEffect)(()=>{if(!se||vt||Ge)return;let ue=!0;return L5().then(je=>{ue&&M5(je)}).catch(()=>{}),()=>{ue=!1}},[se,vt,Ge,L5]);let ap=(0,fe.useMemo)(()=>{let ue=new Map;for(let je of op)ue.set(je.cwd,je);for(let je of vt?.projects??[])ue.set(je,{cwd:je,label:wi(je)});for(let je of Fo.sessions)typeof je.cwd!="string"||!je.cwd||je.host&&je.hostKind!=="local"||ue.set(je.cwd,{cwd:je.cwd,label:wi(je.cwd)});return vt?.cwd&&ue.set(vt.cwd,{cwd:vt.cwd,label:wi(vt.cwd)}),[...ue.values()]},[Fo.sessions,vt?.cwd,vt?.projects,op]),Nh=(0,rt.jsx)(sV.Provider,{value:rf,children:(0,rt.jsx)(QT.Provider,{value:Tt,children:(0,rt.jsx)(BT.Provider,{value:yn,children:(0,rt.jsx)(nR.Provider,{value:M.rows,children:(0,rt.jsx)(rat,{rows:Be,canLoadOlder:M.canLoadOlder,expanded:H,registry:Mt,onOpenDiff:Ge?void 0:K,onToggleActivity:ue=>ne(je=>{let Lt=new Set(je);return Lt.has(ue)?Lt.delete(ue):Lt.add(ue),Lt})})})})})}),Wa=(0,rt.jsxs)(rt.Fragment,{children:[M.permissionGroups?.supported&&(0,rt.jsx)(Qwe,{state:M.permissionGroups,onRespond:(ue,je,Lt)=>{Pt("chat.permission_group.respond",{groupId:ue,revision:je,decision:Lt})},onRetry:()=>{Pt("chat.permission_group.retry",{})},onRevoke:()=>{Pt("chat.permission_chat.revoke",{})},onRefresh:()=>{Pt("chat.permission_groups.refresh",{})}}),(be||ce.ask)&&(0,rt.jsxs)("div",{className:"acpmux-permission",children:[ce.ask&&(0,rt.jsx)(e3e,{ask:ce.ask,agent:M.summary?.harness?Gf(M.summary.harness):t("trust.agent"),onTrust:ce.trust,onDistrust:ce.distrust,onUndo:ce.undo}),be&&(0,rt.jsx)(MG,{permission:be,onAnswer:mve(be)})]})]}),sf=!Z&&!le&&(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(n9e,{dictation:rp}),(0,rt.jsx)($we,{switching:M.switching,onRetry:()=>{Pt("chat.harness.retry")}}),Nwe({offered:c,freshChat:se,quick:Ge,projectDraft:s,sessionId:M.sessionId})&&(0,rt.jsx)(Pwe,{error:d,onChoose:()=>{p(void 0),Pt("workspace.chooseFolder").then(ue=>{ue?.cwd&&(u(!1),of(ue.cwd))}).catch(ue=>p(Su(ue)||void 0))}}),(0,rt.jsx)(Hye,{snapshot:Fo,chips:lc,draft:e,onSend:(ue,je)=>{if(!window.cmuxAcpmuxActions?.["chat.send"])return!1;let Lt=bme(je??[],uu=>m.get(uu));M.sessionId||(nf.current=!0);let _n=()=>{},xr=new Promise(uu=>_n=uu),Ss=(async()=>(s&&!M.sessionId&&await Pt("chat.new",{cwd:s}),Pt("chat.send",{text:ue,attachments:Lt,accepted:()=>_n(!0)})))();return Ss.then(()=>Gr.current(),np),Promise.race([xr,Ss.then(()=>!0)])},onStop:()=>{Pt("chat.cancel")},onProject:of,projectChoices:se&&!Ge?ap:void 0,onBrowseProject:se&&!Ge?()=>{Pt("project.browse").then(ue=>{ue?.cwd&&of(ue.cwd)}).catch(()=>{})}:void 0,onShell:Fo.summary?.hostKind==="cloud"?void 0:ue=>m.start(ue,{...me??Fo.summary?.cwd?{cwd:me??Fo.summary?.cwd}:{},...M.sessionId?{sessionId:M.sessionId}:{}}),localName:g,movedTo:me,onMove:M.sessionId&&Fo.summary?.hostKind!=="cloud"?ue=>{let je={id:`${Date.now().toString(36)}-${h.length}`,sessionId:M.sessionId,cwd:ue,machine:g??t("composer.thisMac"),at:Date.now()};return x(Lt=>[...Lt,je]),je}:void 0,onShellInterrupt:()=>{let ue=m.running(M.sessionId);return ue&&m.stop(ue.id),ue!==void 0},onMode:ue=>{Pt("chat.mode",{modeId:ue})},searchFiles:Se?de:void 0,onOpenInWindow:Ge?Ri:void 0,prompt:da,handle:Th,blocked:ce.blocked,accessory:(0,rt.jsx)(e9e,{dictation:rp})})]}),sp=tf&&(0,rt.jsx)(_we,{message:tf,retrying:Rh,onRetry:()=>sc.current?.()});return Ge?(0,rt.jsx)(qT.Provider,{value:Nt,children:(0,rt.jsx)("section",{className:"acpmux-shell","data-surface":"quick",children:(0,rt.jsx)(ave,{transcript:M.rows.length>0||Le.length>0?Nh:void 0,asks:(0,rt.jsxs)(rt.Fragment,{children:[Wa,sp]}),composer:sf})})}):(0,rt.jsx)(qT.Provider,{value:Nt,children:(0,rt.jsxs)("section",{className:"acpmux-shell","aria-label":Fo.summary?.title||t("header.agentChat"),children:[(0,rt.jsx)("div",{className:"acpmux-main","data-new-chat":Ne&&!af?"":void 0,children:af&&vt.layout==="b"?(0,rt.jsx)(ppe,{snapshot:Fo,omnibar:vt.omnibar,location:vt.location,lastAgent:vt.lastAgent,home:vt.home,...mpe({callNative:Pt,cwd:vt.cwd,leave:()=>jn(void 0),selectSession:un,showAllChats:()=>jt("toggle"),runShell:(ue,je)=>{je&&l(je),m.start(ue,je?{cwd:je}:{})}})},Kn):af?(0,rt.jsx)(Xde,{snapshot:Fo,hotkeys:vt.hotkeys,initialKind:vt.initialKind,cwd:vt.cwd,host:vt.host??g,location:vt.location,omnibar:vt.omnibar,projects:ap,chips:lc,onSubmit:Ih,onJump:(ue,je)=>{Pt("tab.jump",{target:ue,id:je})},onOpenSession:ue=>{jn(void 0),un(ue)},onShowAll:()=>jt("toggle"),onBrowseProject:()=>{Pt("action.run",{id:"palette.welcomeChecklist"})},onEditShortcut:ue=>{Pt("shortcut.edit",{kind:ue})}},Kn):(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsxs)("div",{className:`acpmux-stage${zt?" acpmux-reviewing":""}`,children:[(0,rt.jsxs)("header",{className:"acpmux-header",children:[(0,rt.jsx)(bwe,{status:Va.status,detail:Va.detail}),(0,rt.jsxs)("div",{className:"acpmux-handoff-header-tools",children:[Ei&&(0,rt.jsx)("span",{className:"acpmux-session-coverage",title:`${A.unverified} \xB7 ${M.summary?.enforcement?.detail??A.unverifiedDetail}`,children:M.summary?.enforcement?A.nativePolicy:A.unverified}),(0,rt.jsx)(ywe,{changes:ae,changesOpen:!!(_e&&mt),onChanges:st,tabTools:!Ge,onTerminal:()=>Za(xs.terminal,ip),onBrowser:()=>Za(xs.browser),summary:(0,rt.jsx)(L8e,{rows:M.rows,onOpenOutput:Ge?void 0:Y}),menu:S5,onMenuOpen:C5,expand:P&&_s?"continue":void 0,onExpanded:V})]})]}),!_e&&D.review,M.missingSession&&(0,rt.jsx)("p",{className:"acpmux-link-missing",role:"alert",children:t("link.sessionMissing")}),!Z&&M.handoff?.error&&(0,rt.jsx)("p",{className:"acpmux-handoff-error",role:"alert",children:M.handoff.error}),Z&&ie&&M.handoff?(0,rt.jsx)(Owe,{record:ie,state:M.handoff,strings:A,onSave:ue=>Pt("chat.handoff.draft",{review:ue}),onStart:ue=>Pt("chat.handoff.start",{review:ue}),onReturn:()=>un(ie.source.sessionId),onDiscard:()=>hl(Pt("chat.handoff.discard")),onReload:()=>hl(Pt("chat.handoff.get").then(()=>j(ue=>ue+1)))},`${ie.handoffId}:${G}`):Ne?(0,rt.jsx)(Zye,{project:x8(M.summary?.cwd)}):Nh,_e&&zt&&(0,rt.jsx)(e8e,{files:Dt?.files??zt,turn:Dt,initialPath:_e.path,onClose:Re,source:jot,onOpenFile:Dot,checkpointAction:D.supported?(0,rt.jsx)("button",{type:"button",className:"acpmux-checkpoint-open",onClick:D.show,children:$.createCheckpoint}):void 0,checkpointReview:D.review,review:wt,reviewFiles:zt})]}),Wa,Ne&&(0,rt.jsx)("div",{className:"acpmux-home-area",children:(0,rt.jsx)(Yye,{sessions:M.sessions,currentId:M.sessionId,onSelect:un})}),sp,sf]})}),ft!=="closed"&&(0,rt.jsx)(uwe,{sessions:M.sessions,closing:ft==="closing",onExited:()=>jt("exited"),onClose:()=>jt("close"),onSelect:ue=>{jt("close"),un(ue)},onNewChat:()=>{jt("close"),pa()}})]})})}var hve=R(qe(),1),gve=R(Q(),1);var H3=R(ee(),1),dR=class extends gve.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?(0,H3.jsx)(pat,{onRetry:()=>this.setState({failed:!1})}):this.props.children}};function pat(t){let e=(0,hve.c)(12),{onRetry:n}=t,r=ve(),i;e[0]!==r?(i=r("pane.renderFailed"),e[0]=r,e[1]=i):i=e[1];let o;e[2]!==i?(o=(0,H3.jsx)("p",{children:i}),e[2]=i,e[3]=o):o=e[3];let a;e[4]!==r?(a=r("pane.renderRetry"),e[4]=r,e[5]=a):a=e[5];let s;e[6]!==n||e[7]!==a?(s=(0,H3.jsx)("button",{type:"button",className:"acpmux-pane-failed__retry",onClick:n,children:a}),e[6]=n,e[7]=a,e[8]=s):s=e[8];let l;return e[9]!==o||e[10]!==s?(l=(0,H3.jsxs)("div",{className:"acpmux-pane-failed",role:"alert",children:[o,s]}),e[9]=o,e[10]=s,e[11]=l):l=e[11],l}var pR=R(ee(),1);$2.scheduleFrame=Zse;document.documentElement.dataset.cmuxWebviewKind="acpmux-agent-session";var bve=document.getElementById("root");(0,yve.createRoot)(bve).render((0,pR.jsx)($de,{container:bve,children:(0,pR.jsx)(dR,{children:(0,pR.jsx)(fve,{})})})); diff --git a/Resources/markdown-viewer/webviews-app/chunks/Tooltip.mjs b/Resources/markdown-viewer/webviews-app/chunks/Tooltip.mjs index dbf88ef2c631..1ad2c7136924 100644 --- a/Resources/markdown-viewer/webviews-app/chunks/Tooltip.mjs +++ b/Resources/markdown-viewer/webviews-app/chunks/Tooltip.mjs @@ -1 +1 @@ -import{n as e,r as t}from"./rolldown-runtime.mjs";import{k as n}from"./pickerModel.mjs";import{c as r,l as i,m as a,p as o,s,u as c}from"./vendor.mjs";import{a as l,i as u,r as d,t as f}from"./createBaseUIEventDetails.mjs";import{$ as p,A as m,At as h,B as g,Bt as _,C as v,D as y,Dt as b,E as x,Et as S,F as C,Ft as w,Gt as T,Ht as E,I as D,It as O,J as k,Jt as A,K as j,Kt as M,L as N,Lt as P,M as F,Mt as I,N as L,Nt as R,O as z,Ot as B,P as V,Pt as ee,Q as te,R as ne,Rt as H,S as U,St as re,T as ie,Tt as W,Ut as ae,V as oe,Vt as G,Wt as se,X as ce,Xt as K,Y as q,Yt as le,_ as ue,a as de,at as fe,b as pe,bt as J,et as me,ht as he,it as ge,j as _e,jt as Y,k as ve,kt as ye,m as be,mt as xe,nt as Se,ot as Ce,q as we,st as Te,v as Ee,vt as De,w as Oe,wt as ke,x as Ae,xt as je,y as Me,yt as Ne,z as Pe,zt as Fe}from"./composite.mjs";import{i as Ie,r as Le}from"./UiProvider.mjs";var X=t(a(),1);function Z(e){return e?.ownerDocument||document}function Re(e){X.useEffect(e,d)}var ze=null;globalThis.requestAnimationFrame;var Be=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Ve=class e{static create(){return new e}static request(e){return Be.request(e)}static cancel(e){return Be.cancel(e)}currentId=ze;request(e){this.cancel(),this.currentId=Be.request(()=>{this.currentId=ze,e()})}cancel=()=>{this.currentId!==ze&&(Be.cancel(this.currentId),this.currentId=ze)};disposeEffect=()=>this.cancel};function He(){let e=le(Ve.create).current;return Re(e.disposeEffect),e}var Ue=t(o(),1),Q=i();function We(e){return e==null?e:`current`in e?e.current:e}var Ge=`data-starting-style`,Ke=`data-ending-style`,qe=null;function Je(e){if(!qe){let e=[];qe=e,queueMicrotask(()=>{qe=null,Ue.flushSync(()=>{for(let t of e)t()})})}qe.push(e)}function Ye(e,t=!1,n=!1){let r=He();return J((i,a=null)=>{r.cancel();let o=We(e);if(o==null)return;let s=o,c=()=>{if(!n){Ue.flushSync(i);return}Je(()=>{a?.aborted||i()})};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()},()=>{if(!a?.aborted){if(s.getAnimations().some(e=>e.pending||e.playState!==`finished`)){l();return}c()}})}if(t){let e=Ge;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Xe(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=J(a),s=Ye(r,n,i);X.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function Ze(e,t=!1,n=!1,r=!1){let[i,a]=X.useState(e&&t?`idle`:void 0),[o,s]=X.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),K(()=>{if(!e&&o&&i!==`ending`&&n){let e=Ve.request(()=>{a(`ending`)});return()=>{Ve.cancel(e)}}},[e,o,i,n]),K(()=>{if(!e||t)return;let n=Ve.request(()=>{a(void 0)});return()=>{Ve.cancel(n)}},[t,e]),K(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Ve.request(()=>{a(`idle`)});return()=>{Ve.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}var Qe={[Ge]:``},$e={[Ke]:``},et={transitionStatus(e){return e===`starting`?Qe:e===`ending`?$e:null}},tt=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),nt=!tt&&me.includes(`firefox`);!tt&&me.includes(`chrom`);var rt=te,it=`data-open`,at=`data-closed`,ot=`data-anchor-hidden`,st=`data-popup-open`,ct=`data-pressed`,lt={[st]:``,[ct]:``},ut={[it]:``},dt={[at]:``},ft={[ot]:``},pt={open(e){return e?lt:null}},mt={open(e){return e?ut:dt},anchorHidden(e){return e?ft:null}},ht={...mt,...et},gt=`data-trigger-disabled`;function _t(e,t){if(!P(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(gt);for(let[,e]of t.entries())if(q(e,n))return!e.hasAttribute(gt);return!1}function vt(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function yt(e){return e.matches(`html,body`)}function bt(e){return H(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function xt(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${we}`)!=null}function St(e){return e?e.getAttribute(`role`)===`combobox`&&bt(e):!1}function Ct(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function wt(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...wt(e,t.id,n)])}function Tt(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}var Et=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Dt(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return E(n)?n.host:null}function Ot(e){for(let t of Array.from(e.children))if(Y(t)===`summary`)return t;return null}function kt(e,t){let n=Ot(t);return!!n&&(e===n||q(n,e))}function At(e){let t=e?Y(e):``;return e!=null&&e.matches(Et)&&(t!==`summary`||e.parentElement!=null&&Y(e.parentElement)===`details`&&Ot(e.parentElement)===e)&&(t!==`details`||Ot(e)==null)&&(t!==`input`||e.type!==`hidden`)}function jt(e){if(!At(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Dt(t)){let n=t!==e,r=Y(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Y(t)===`details`&&!t.open&&!kt(e,t)||t.hasAttribute(`hidden`)||!r&&!Mt(t,n))return!1}return!0}function Mt(e,t){let n=b(e);return t?n.display!==`none`:be(e,n)}function Nt(e){let t=e.tabIndex;if(t<0){let t=Y(e);if(t===`details`||t===`audio`||t===`video`||H(e)&&e.isContentEditable)return 0}return t}function Pt(e){if(Y(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ft(e,t){let n=Pt(e);if(!n)return!0;let r=t.find(e=>{let t=Pt(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Pt(e);return t?.name===n.name&&t.form===n.form})===n}function It(e){if(H(e)&&Y(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return H(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Lt(e,t){It(e).forEach(e=>{At(e)&&t.push(e),Lt(e,t)})}function Rt(e,t,n){It(e).forEach(e=>{H(e)&&e.matches(t)&&n.push(e),Rt(e,t,n)})}function zt(e){return jt(e)&&Nt(e)>=0}function Bt(e){let t=[];return Lt(e,t),t.filter(jt)}function Vt(e){let t=Bt(e);return t.filter(e=>Nt(e)>=0&&Ft(e,t))}function Ht(e,t){let n=Vt(e),r=n.length;if(r===0)return;let i=k(Z(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Ut(e){return Ht(Z(e).body,1)||e}function Wt(e){return Ht(Z(e).body,-1)||e}function Gt(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!q(n,r)}function Kt(e){Vt(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function qt(e){let t=[];Rt(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Jt(e){let t=le(Yt,e).current;return t.next=e,K(t.effect),t}function Yt(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Xt=r(),Zt=s(),Qt=[],$t=void 0;function en(){return $t}function tn(e){Qt.push(e)}function nn(e){let t=(t,n)=>{let r=le(rn).current,i;try{$t=r;for(let e of Qt)e.before(r);i=e(t,n);for(let e of Qt)e.after(r);r.didInitialize=!0}finally{$t=void 0}return i};return t.displayName=e.displayName||e.name,t}function rn(){return{didInitialize:!1}}var an=W(19)?cn:ln;function on(e,t,n,r,i){return an(e,t,n,r,i)}function sn(e,t,n,r,i){let a=X.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Xt.useSyncExternalStore)(e.subscribe,a,a)}tn({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Xt.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function cn(e,t,n,r,i){let a=en();if(!a)return sn(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function ln(e,t,n,r,i){return(0,Zt.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var un=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return on(this,e,t,n,r)}},dn=class extends un{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){X.useDebugValue(e);let n=this;K(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;K(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);K(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){X.useDebugValue(e);let n=this,r=t!==void 0;K(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return X.useDebugValue(e),on(this,this.selectors[e],t,n,r)}useContextCallback(e,t){X.useDebugValue(e);let n=J(t??l);this.context[e]=n}useStateSetter(e){let t=X.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function fn(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function $(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var pn=0,mn=class e{static create(){return new e}currentId=pn;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=pn,t()},e)}isStarted(){return this.currentId!==pn}clear=()=>{this.currentId!==pn&&(clearTimeout(this.currentId),this.currentId=pn)};disposeEffect=()=>this.clear};function hn(){let e=le(mn.create).current;return Re(e.disposeEffect),e}function gn(e,t){return t!=null&&!N(t)?0:typeof e==`function`?e():e}function _n(e,t,n){let r=gn(e,n);return typeof r==`number`?r:r?.[t]}function vn(e,t){return t||e===`click`||e===`mousedown`}function yn(e){return e?.includes(`mouse`)&&e!==`mousedown`}var bn=X.forwardRef(function(e,t){let[n,r]=X.useState();K(()=>{rt&&tt&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Q.jsx)(`span`,{...e,ref:t,style:M,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function xn(e){return`data-base-ui-${e}`}var Sn=0;function Cn(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Sn);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),l;let o=requestAnimationFrame(a);return Sn=o,()=>{Sn===o&&(cancelAnimationFrame(o),Sn=0)}}var wn={inert:new WeakMap,"aria-hidden":new WeakMap},Tn=`data-base-ui-inert`,En={inert:new WeakSet,"aria-hidden":new WeakSet},Dn=new WeakMap,On=0;function kn(e){return En[e]}function An(e){return e?E(e)?e.host:An(e.parentNode):null}var jn=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=An(t);return e.contains(n)?n:null}).filter(e=>e!=null),Mn=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Nn=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Y(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Pn(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=jn(t,e),l=i?Nn(t,Mn(c),new Set(c)):[],u=[],d=[];if(a){let e=wn[a],n=kn(a);s=n,o=e;let r=jn(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);Nn(t,Mn(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(Dn.get(e)||0)+1;Dn.set(e,t),d.push(e),t===1&&e.setAttribute(Tn,``)}),On+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(Dn.get(e)||0)-1;Dn.set(e,t),t||e.removeAttribute(Tn)}),--On,On||(wn.inert=new WeakMap,wn[`aria-hidden`]=new WeakMap,En.inert=new WeakSet,En[`aria-hidden`]=new WeakSet,Dn=new WeakMap)}}function Fn(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=Z(e[0]).body;return Pn(e,a,n,r,{mark:i})}var In={style:{transition:`none`}},Ln={fallbackAxisSide:`none`},Rn={fallbackAxisSide:`end`},zn={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Bn=X.createContext(null),Vn=()=>X.useContext(Bn),Hn=xn(`portal`);function Un(e={}){let{ref:t,container:n,componentProps:r=u,elementProps:i}=e,a=je(),o=Vn()?.portalNode,[s,c]=X.useState(null),[l,d]=X.useState(null),f=J(e=>{e!==null&&d(e)}),p=X.useRef(null);K(()=>{if(n===null){p.current&&(p.current=null,d(null),c(null));return}let e=(n&&(_(n)?n:n.current))??o??document.body;if(e==null){p.current&&(p.current=null,d(null),c(null));return}p.current!==e&&(p.current=e,d(null),c(e))},[n,o]);let m=re(`div`,r,{ref:[t,f],props:[{id:a,[Hn]:``},i]}),h=s&&m?Ue.createPortal(m,s):null;return{node:l,nodeId:X.isValidElement(m)?m.props.id:void 0,subtree:h}}var Wn=X.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Un({container:o,ref:t,componentProps:e,elementProps:c}),p=X.useRef(null),m=X.useRef(null),h=X.useRef(null),g=X.useRef(null),[_,v]=X.useState(null),y=X.useRef(!1),b=_?.modal,x=_?.open,S=!!_&&!_.modal&&_.open&&!!l;X.useEffect(()=>{if(!l||b)return;function e(e){l&&e.relatedTarget&&Gt(e)&&(e.type===`focusin`?y.current&&=(qt(l),!1):(Kt(l),y.current=!0))}return fn($(l,`focusin`,e,!0),$(l,`focusout`,e,!0))},[l,b]),K(()=>{l&&x===!0&&y.current&&(qt(l),y.current=!1)},[x,l]);let C=X.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:l,setFocusManagerState:v}),[l]);return(0,Q.jsxs)(X.Fragment,{children:[d,(0,Q.jsxs)(Bn.Provider,{value:C,children:[S&&l&&(0,Q.jsx)(bn,{"data-type":`outside`,ref:p,onFocus:e=>{Gt(e,l)?h.current?.focus():Wt(_?_.domReference:null)?.focus()}}),S&&l&&(0,Q.jsx)(`span`,{role:s,"aria-owns":u,style:zn}),l&&Ue.createPortal(a,l),S&&l&&(0,Q.jsx)(bn,{"data-type":`outside`,ref:m,onFocus:e=>{Gt(e,l)?g.current?.focus():(Ut(_?_.domReference:null)?.focus(),_?.closeOnFocusOut&&_?.onOpenChange(!1,f(`focus-out`,e.nativeEvent)))}})]})]})});function Gn(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Kn=class{nodesRef={current:[]};events=Gn();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},qn=X.createContext(null),Jn=X.createContext(null),Yn=()=>X.useContext(qn)?.id||null,Xn=e=>{let t=X.useContext(Jn);return e??t};function Zn(e){let t=je(),n=Xn(e),r=Yn();return K(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Qn(e){let{children:t,id:n}=e,r=Yn();return(0,Q.jsx)(qn.Provider,{value:X.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function $n(e){let{children:t,externalTree:n}=e,r=le(()=>n??new Kn).current;return(0,Q.jsx)(Jn.Provider,{value:r,children:t})}function er(e,t){let n=w(ce(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var tr=20,nr=[];function rr(){nr=nr.filter(e=>e.deref()?.isConnected)}function ir(e){rr(),e&&Y(e)!==`body`&&(nr.push(new WeakRef(e)),nr.length>tr&&(nr=nr.slice(-20)))}function ar(){return rr(),nr[nr.length-1]?.deref()}function or(e){return e?zt(e)?e:Vt(e)[0]||e:null}function sr(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Bt(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return zt(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function cr(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,_=`rootStore`in t?t.rootStore:t,v=_.useState(`open`),y=_.useState(`domReferenceElement`),b=_.useState(`floatingElement`),{events:x,dataRef:S}=_.context,C=J(()=>S.current.floatingContext?.nodeId),w=i===!1,T=St(y)&&w,E=Jt(i),D=Jt(a),O=Jt(l),j=Jt(v),M=Xn(m),N=Vn(),P=X.useRef(!1),F=X.useRef(!1),I=X.useRef(!1),L=X.useRef(null),R=X.useRef(``),z=X.useRef(``),B=X.useRef(null),V=X.useRef(null),ee=A(B,p,N?.beforeInsideRef),te=A(V,N?.afterInsideRef),ne=hn(),U=hn(),re=He(),ie=N!=null,W=Ct(b),ae=J((e=W)=>e?Vt(e):[]),G=J(()=>h?.().filter(e=>e!=null)??[]);X.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&q(W,k(Z(W)))&&ae().length===0&&!T&&oe(e)}return $(Z(W),`keydown`,e)},[r,W,s,T,ae]),X.useEffect(()=>{if(r||!v)return;let e=Z(W);function t(){I.current=!1}function n(e){let t=ce(e),n=G(),r=q(b,t)||q(y,t)||q(N?.portalNode,t)||n.some(e=>e===t||q(e,t));I.current=!r,z.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(F.current=!0,U.start(0,()=>{F.current=!1}))}function i(){z.current=`keyboard`}return fn($(e,`pointerdown`,n,!0),$(e,`pointerup`,t,!0),$(e,`pointercancel`,t,!0),$(e,`keydown`,i,!0),t)},[r,b,y,W,v,N,U,G]),X.useEffect(()=>{if(r||!c)return;let e=Z(W);function t(){F.current=!0,U.start(0,()=>{F.current=!1})}function n(e){let t=ce(e);zt(t)&&(L.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=ce(t);s&&n==null&&i!=null&&q(b,i)&&ir(i),queueMicrotask(()=>{let a=C(),c=_.context.triggerElements,l=G(),p=n?.hasAttribute(xn(`focus-guard`))&&[B.current,V.current,N?.beforeInsideRef.current,N?.afterInsideRef.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,We(d),We(u)].includes(n),m=!(q(y,n)||q(b,n)||q(n,b)||q(N?.portalNode,n)||l.some(e=>e===n||q(e,n))||c.hasMatchingElement(e=>q(e,n))||p||M&&(wt(M.nodesRef.current,a).find(e=>q(e.context?.elements.floating,n)||q(e.context?.elements.domReference,n))||Tt(M.nodesRef.current,a).find(e=>[e.context?.elements.floating,Ct(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===y&&W&&sr(W),o&&r!==y&&!be(i)&&k(e)===e.body){if(H(W)&&(W.focus(),o===`popup`)){re.request(()=>{W.focus()});return}let e=ae(),t=L.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||W;H(n)&&n.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(T||!s)&&n&&m&&!F.current&&(T||n!==ar())&&(P.current=!0,_.setOpen(!1,f(Ce,t)))})}function a(){I.current||(S.current.insideReactTree=!0,ne.start(0,()=>{S.current.insideReactTree=!1}))}let l=H(y)?y:null;if(b||l)return fn(l&&$(l,`focusout`,i),l&&$(l,`pointerdown`,t),b&&$(b,`focusin`,n),b&&$(b,`focusout`,i),b&&N&&$(b,`focusout`,a,!0))},[r,y,b,W,s,M,N,_,c,o,ae,T,C,S,ne,U,re,u,d,G]),X.useEffect(()=>{if(r||!b||!v)return;let e=Array.from(N?.portalNode?.querySelectorAll(`[${xn(`portal`)}]`)||[]),t=(M?Tt(M.nodesRef.current,C()):[]).find(e=>St(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Fn([b,...e,B.current,V.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,...G(),t,We(d),We(u),T?y:null].filter(e=>e!=null),{ariaHidden:s||T,mark:!1}),i=Fn([b,...e].filter(e=>e!=null));return()=>{i(),n()}},[v,r,y,b,s,N,T,M,C,u,d,G]),K(()=>{if(!v||r||!H(W))return;R.current=``,z.current=``;let e=Z(W),t=k(e);queueMicrotask(()=>{let n=E.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||q(W,t))return;let i=null,a=()=>(i??=ae(W),i[0]||W),o;o=r===!0||r===null?a():We(r),o||=a();let s=q(W,k(e));Cn(o,{preventScroll:o===W,shouldFocus(){if(!j.current)return!1;if(s)return!0;let t=k(e);return!(t!==o&&q(W,t))}})})},[r,v,W,ae,E,O,j]),K(()=>{if(r||!W)return;let e=Z(W),t=k(e),n=O.current==null;ir(t);function i(e){if(e.open||(R.current=er(e.nativeEvent,z.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(P.current=!0),e.reason===`outside-press`){if(e.nested)P.current=!1;else if(Pe(e.nativeEvent)||g(e.nativeEvent))P.current=!1;else{let e=!1;Z(W).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?P.current=!1:P.current=!0}}}x.on(`openchange`,i);function a(e){let r=D.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=y?.isConnected?y:null,o=t?.isConnected&&Y(t)!==`body`?t:null,s=n?o||a:a||o;return s||=ar()||null,typeof i==`boolean`?s:We(i)||s||null}return()=>{x.off(`openchange`,i);let t=k(e),n=G(),r=q(b,t)||n.some(e=>e===t||q(e,t))||M&&wt(M.nodesRef.current,C(),!1).some(e=>q(e.context?.elements.floating,t)),o=D.current,s=R.current,c=a(s);queueMicrotask(()=>{let n=or(c),i=typeof o!=`boolean`;if(o&&!P.current&&H(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}P.current=!1})}},[r,b,W,D,O,x,M,y,C,G]),K(()=>{if(!tt||v||!b)return;let e=k(Z(b));H(e)&&bt(e)&&q(b,e)&&e.blur()},[v,b]),K(()=>{if(!r&&N)return N.setFocusManagerState({modal:s,closeOnFocusOut:c,open:v,onOpenChange:_.setOpen,domReference:y}),()=>{N.setFocusManagerState(null)}},[r,N,s,v,_,c,y]),K(()=>{if(!r&&W)return sr(W),()=>{queueMicrotask(rr)}},[r,W]);let se=!r&&(!s||!T)&&(ie||s);return(0,Q.jsxs)(X.Fragment,{children:[se&&(0,Q.jsx)(bn,{"data-type":`inside`,ref:ee,onFocus:e=>{if(s){let e=ae();Cn(e[e.length-1])}else N?.portalNode&&(P.current=!1,Gt(e,N.portalNode)?Ut(y)?.focus():We(d??N.beforeOutsideRef)?.focus())}}),n,se&&(0,Q.jsx)(bn,{"data-type":`inside`,ref:te,onFocus:e=>{s?Cn(ae()[0]):N?.portalNode&&(c&&(P.current=!0),Gt(e,N.portalNode)?Wt(y)?.focus():We(u??N.afterOutsideRef)?.focus())}})]})}function lr(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function ur(e){return e!=null&&e.clientX!=null}function dr(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=X.useRef(!1),u=X.useRef(null),[d,f]=X.useState(),[p,m]=X.useState([]),h=J(e=>{i.set(`positionReference`,e)}),g=J((e,t,n)=>{l.current||(!c.current.openEvent||ur(c.current.openEvent))&&i.set(`positionReference`,lr(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=J(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=N(d)?o:a;X.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=w(o);function r(t){let n=ce(t);q(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||ur(c.current.openEvent)?u.current=$(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),X.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),X.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),X.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=X.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return X.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function fr(){return!1}function pr(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function mr(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=fr,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:p,events:m}=l.context,h=Xn(c),g=J(typeof i==`function`?i:()=>!1),_=typeof i==`function`?g:i,v=_!==!1,y=J(()=>a),{escapeKey:x,outsidePress:S}=pr(s),C=X.useRef(!1),w=X.useRef(!1),T=X.useRef(!1),D=X.useRef(!1),O=X.useRef(!1),k=X.useRef(``),A=X.useRef(null),j=hn(),M=hn(),N=J(()=>{M.clear(),p.current.insideReactTree=!1}),F=J(e=>{let t=p.current.floatingContext?.nodeId;return(h?wt(h.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),I=J(e=>vt(e,l.select(`floatingElement`))||vt(e,l.select(`domReferenceElement`))),L=J(e=>{o()&&l.setOpen(!1,f(Ne,e.nativeEvent))}),R=J(e=>{if(!u||!n||!r||e.key!==`Escape`||O.current||!x&&F(`__escapeKeyBubbles`))return;let t=ne(e)?e.nativeEvent:e,i=f(fe,t);l.setOpen(!1,i),i.isCanceled||e.preventDefault(),!x&&!i.isPropagationAllowed&&e.stopPropagation()}),z=J(()=>{p.current.insideReactTree=!0,M.start(0,N)}),B=J(e=>{if(!u||!n||e.button!==0)return;let t=ce(e.nativeEvent);q(l.select(`floatingElement`),t)&&(C.current||(C.current=!0,w.current=!1))}),V=J(e=>{u&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&C.current&&(w.current=!0)});X.useEffect(()=>{function e(e){e.open||(D.current=!1)}return m.on(`openchange`,e),()=>{m.off(`openchange`,e)}},[m]),X.useEffect(()=>{if(!u||!n)return u||(D.current=!1),N;p.current.__escapeKeyBubbles=x,p.current.__outsidePressBubbles=S;let e=new mn,t=new mn,i=Z(d);function a(){e.clear(),O.current=!0}function o(){e.start(tt?5:0,()=>{O.current=!1})}function s(){T.current=!0,t.start(0,()=>{T.current=!1})}function c(){C.current=!1,w.current=!1}function m(){let e=k.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function g(e){let t=m();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function M(e){let t=p.current.floatingContext?.nodeId,n=h&&wt(h.nodesRef.current,t).some(t=>vt(e,t.context?.elements.floating));return I(e)||n}function L(e){if(g(e)){e.type!==`click`&&!I(e)&&(t.clear(),T.current=!1),N();return}if(p.current.insideReactTree){N();return}let n=ce(e),r=`[${xn(`inert`)}]`,i=P(n)?n.getRootNode():null,a=Array.from((E(i)?i:Z(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>q(e,n))))return;let s=P(n)?n:null;for(;s&&!Fe(s);){let e=ee(s);if(Fe(e)||!P(e))break;s=e}if(!(a.length&&P(n)&&!yt(n)&&!q(n,l.select(`floatingElement`))&&a.every(e=>!q(s,e)))){if(H(n)&&!(`touches`in e)){let t=Fe(n),r=b(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!M(e)){if(m()===`intentional`){if(e.detail!==0&&!Pe(e)&&!D.current)return;if(T.current){t.clear(),T.current=!1;return}}(typeof _!=`function`||_(e))&&(F(`__outsidePressBubbles`)||(l.setOpen(!1,f(he,e)),N()))}}}function z(e){m()===`sloppy`&&e.pointerType!==`touch`&&l.select(`open`)&&n&&!I(e)&&L(e)}function B(e){if(m()!==`sloppy`||!l.select(`open`)||!n||I(e))return;let t=e.touches[0];t&&(A.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},j.start(1e3,()=>{A.current&&(A.current.dismissOnTouchEnd=!1,A.current.dismissOnMouseDown=!1)}))}function V(e,t){let n=ce(e);if(!n)return;let r=$(n,e.type,()=>{t(e),r()})}function te(e){k.current=`touch`,V(e,B)}function ne(e){j.clear(),e.type===`pointerdown`&&(e.button===0&&(D.current=!0),k.current=e.pointerType),(e.type!==`mousedown`||!A.current||A.current.dismissOnMouseDown)&&V(e,e=>{e.type===`pointerdown`?z(e):L(e)})}function U(e){if(e.type===`pointercancel`&&(D.current=!1),!C.current)return;let n=w.current;if(c(),m()===`intentional`){if(e.type===`pointercancel`){n&&s();return}if(!M(e)){if(n){s();return}(typeof _!=`function`||_(e))&&(t.clear(),T.current=!0,N())}}}function re(e){if(m()!==`sloppy`||!A.current||I(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-A.current.startX),r=Math.abs(t.clientY-A.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(A.current.dismissOnTouchEnd=!0),i>10&&(L(e),j.clear(),A.current=null)}function ie(e){V(e,re)}function W(e){m()===`sloppy`&&A.current&&!I(e)&&(A.current.dismissOnTouchEnd&&L(e),j.clear(),A.current=null)}function ae(e){V(e,W)}let oe=fn(r&&fn($(i,`keydown`,R),$(i,`compositionstart`,a),$(i,`compositionend`,o)),v&&fn($(i,`click`,ne,!0),$(i,`pointerdown`,ne,!0),$(i,`pointerup`,U,!0),$(i,`pointercancel`,U,!0),$(i,`mousedown`,ne,!0),$(i,`mouseup`,U,!0),$(i,`touchstart`,te,{capture:!0,passive:!0}),$(i,`touchmove`,ie,{capture:!0,passive:!0}),$(i,`touchend`,ae,{capture:!0,passive:!0})));return()=>{oe(),e.clear(),t.clear(),c(),T.current=!1,N()}},[p,d,r,v,_,u,n,x,S,R,N,y,F,I,h,l,j]);let te=X.useMemo(()=>({onKeyDown:R,onPointerDown:L,onClick:L}),[R,L]),U=X.useMemo(()=>({onKeyDown:R,onPointerDown:V,onMouseDown:V,onClickCapture:z,onMouseDownCapture(e){z(),B(e)},onPointerDownCapture(e){z(),B(e)},onMouseUpCapture:z,onTouchEndCapture:z,onTouchMoveCapture:z}),[R,z,B,V]);return X.useMemo(()=>n?{reference:te,floating:U,trigger:te}:{},[n,te,U])}function hr(e,t,n){let{reference:r,floating:i}=e,a=_e(t),o=U(t),s=Oe(o),c=m(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let h=Ae(t);return h&&(p[o]+=f*(h===`end`?1:-1)*(n&&l?-1:1)),p}async function gr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Me(t,e),p=ve(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=V(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=V(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var _r=50,vr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:gr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<_r&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=hr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},yr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:h=!0,...g}=Me(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let _=m(r),b=_e(o),x=m(o)===o,S=await(s.isRTL==null?void 0:s.isRTL(c.floating)),C=d||(x||!h?[z(o)]:ie(o)),w=p!==`none`;!d&&w&&C.push(...y(o,h,p,S));let T=[o,...C],E=await s.detectOverflow(t,g),D=[],O=i.flip?.overflows||[];if(l&&D.push(E[_]),u){let e=v(r,a,S);D.push(E[e[0]],E[e[1]])}if(O=[...O,{placement:r,overflows:D}],!D.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=T[e];if(t&&(u!==`alignment`||b===_e(t)||O.every(e=>_e(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=O.filter(e=>{if(w){let t=_e(e.placement);return t===b||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},br=new Set([`left`,`top`]);async function xr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=m(n),s=Ae(n),c=_e(n)===`y`,l=br.has(o)?-1:1,u=a&&c?-1:1,d=Me(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h==`number`&&(p=s===`end`?h*-1:h),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Sr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await xr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Cr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Me(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=_e(i),p=x(f),m=u[p],h=u[f],g=(e,t)=>ue(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},wr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Me(e,t),u={x:n,y:r},d=_e(i),f=x(d),p=u[f],h=u[d],g=Me(s,t),_=typeof g==`number`?{mainAxis:g,crossAxis:0}:{mainAxis:g.mainAxis??0,crossAxis:g.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+_.mainAxis,n=a.reference[f]+a.reference[e]-_.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=br.has(m(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:_.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?_.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Tr=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Me(e,t),c=await i.detectOverflow(t,s),l=m(n),u=Ae(n),d=_e(n)===`y`,{width:f,height:p}=r.floating,h,g;l===`top`||l===`bottom`?(h=l,g=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(g=l,h=u===`end`?`top`:`bottom`);let _=p-c.top-c.bottom,v=f-c.left-c.right,y=L(p-c[h],_),b=L(f-c[g],v),x=t.middlewareData.shift,S=!x,C=y,w=b;x!=null&&x.enabled.x&&(w=v),x!=null&&x.enabled.y&&(C=_),S&&!u&&(d?w=f-2*F(c.left,c.right):C=p-2*F(c.top,c.bottom)),await o({...t,availableWidth:w,availableHeight:C});let T=await i.getDimensions(a.floating);return f!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Er(e){let t=b(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=H(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=C(n)!==a||C(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Dr(e){return P(e)?e:e.contextElement}function Or(e){let t=Dr(e);if(!H(t))return Ee(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Er(t),o=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var kr=Ee(0);function Ar(e){let t=w(e);return!T()||!t.visualViewport?kr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jr(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===w(e)}function Mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Dr(e),o=Ee(1);t&&(r?P(r)&&(o=Or(r)):o=Or(e));let s=jr(a,n,r)?Ar(a):Ee(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=w(a),t=P(r)?w(r):r,n=e,i=h(n);for(;i&&t!==n;){let e=Or(i),t=i.getBoundingClientRect(),r=b(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=w(i),i=h(n)}}return V({width:u,height:d,x:c,y:l})}function Nr(e,t){let n=I(e).scrollLeft;return t?t.left+n:Mr(ye(e)).left+n}function Pr(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Nr(e,n),y:n.top+t.scrollTop}}function Fr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ye(r),s=t?se(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ee(1),u=Ee(0),d=H(r);if((d||!a)&&((Y(r)!==`body`||G(o))&&(c=I(r)),d)){let e=Mr(r);l=Or(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Pr(o,c):Ee(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ir(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Lr(e){let t=I(e),n=e.ownerDocument.body,r=F(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=F(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Nr(e),o=-t.scrollTop;return b(n).direction===`rtl`&&(a+=F(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Rr=25;function zr(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=w(e),a=ye(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!T()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Nr(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Rr&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Br(e,t){let n=Mr(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Or(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Vr(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=zr(e,n,t);else if(t===`document`)r=Lr(ye(e));else if(P(t))r=Br(t,n);else{let n=Ar(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return V(r)}function Hr(e,t){let n=t.get(e);if(n)return n;let r=R(e,[],!1).filter(e=>P(e)&&Y(e)!==`body`),i=null,a=b(e).position===`fixed`,o=a?ee(e):e;for(;P(o)&&!Fe(o);){let e=b(o),t=O(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ee(o)}return t.set(e,r),r}function Ur(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?se(t)?[]:Hr(t,this._c):[].concat(n),r],o=Vr(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Vr(t,a[e],i);s=F(n.top,s),c=L(n.right,c),l=L(n.bottom,l),u=F(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Wr(e){let{width:t,height:n}=Er(e);return{width:t,height:n}}function Gr(e,t,n){let r=H(t),i=ye(t),a=n===`fixed`,o=Mr(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ee(0);if((r||!a)&&((Y(t)!==`body`||G(i))&&(s=I(t)),r)){let e=Mr(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Nr(i));let l=i&&!r&&!a?Pr(i,s):Ee(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Kr(e){return b(e).position===`static`}function qr(e,t){if(!H(e)||b(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function Jr(e,t){let n=w(e);if(se(e))return n;if(!H(e)){let t=ee(e);for(;t&&!Fe(t);){if(P(t)&&!Kr(t))return t;t=ee(t)}return n}let r=qr(e,t);for(;r&&ae(r)&&Kr(r);)r=qr(r,t);return r&&Fe(r)&&Kr(r)&&!O(r)?n:r||B(e)||n}var Yr=async function(e){let t=this.getOffsetParent||Jr,n=this.getDimensions,r=await n(e.floating);return{reference:Gr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xr(e){return b(e).direction===`rtl`}var Zr={convertOffsetParentRelativeRectToViewportRelativeRect:Fr,getDocumentElement:ye,getClippingRect:Ur,getOffsetParent:Jr,getElementRects:Yr,getClientRects:Ir,getDimensions:Wr,getScale:Or,isElement:P,isRTL:Xr};function Qr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $r(e,t,n){let r=null,i,a=ye(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=pe(d),h=pe(a.clientWidth-(u+f)),g=pe(a.clientHeight-(d+p)),_=pe(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:F(0,L(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Qr(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=w(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ei(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Dr(e),u=i||a?[...l?R(l):[],...t?R(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?$r(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Mr(e):null;c&&g();function g(){let t=Mr(e);h&&!Qr(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ti=Sr,ni=Cr,ri=yr,ii=Tr,ai=wr,oi=(e,t,n)=>{let r=new Map,i=n??{},a={...Zr,...i.platform,_c:r};return vr(e,t,{...i,platform:a})},si=typeof document<`u`?X.useLayoutEffect:function(){};function ci(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ci(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ci(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function li(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ui(e,t){let n=li(e);return Math.round(t*n)/n}function di(e){let t=X.useRef(e);return si(()=>{t.current=e}),t}function fi(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=X.useState(r);ci(f,r)||p(r);let[m,h]=X.useState(null),[g,_]=X.useState(null),v=X.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=X.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=X.useRef(null),C=X.useRef(null),w=X.useRef(u),T=c!=null,E=di(c),D=di(i),O=di(l),k=X.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),oi(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!ci(w.current,t)&&(w.current=t,Ue.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);si(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=X.useRef(!1);si(()=>(A.current=!0,()=>{A.current=!1}),[]),si(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=X.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=X.useMemo(()=>({reference:b,floating:x}),[b,x]),N=X.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ui(M.floating,u.x),r=ui(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...li(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return X.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var pi=(e,t)=>{let n=ti(e);return{name:n.name,fn:n.fn,options:[e,t]}},mi=(e,t)=>{let n=ni(e);return{name:n.name,fn:n.fn,options:[e,t]}},hi=(e,t)=>({fn:ai(e).fn,options:[e,t]}),gi=(e,t)=>{let n=ri(e);return{name:n.name,fn:n.fn,options:[e,t]}},_i=(e,t)=>{let n=ii(e);return{name:n.name,fn:n.fn,options:[e,t]}},vi={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},yi=class extends dn{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Gn(),nested:n,triggerElements:i},vi),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&D(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function bi(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=X.useRef(null);r===void 0&&f.current===null&&(f.current=new yi({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),K(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};P(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var xi={tabIndex:-1,[j]:``};function Si(e){return t=>t!==`touch`||e.current}function Ci(e,t=!1){let n=je(),r=Yn()!=null,i=le(()=>e(n,r)).current;return bi({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function wi({handle:e,store:t}){return K(()=>e.attachStore(t),[e,t]),null}function Ti(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s}}function Ei(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Di(e,t,n,r={}){let i=n.reason,a=i===De,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=Ei(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=Ti(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?Ue.flushSync(l):l()}function Oi(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=X.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);K(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=f(xe);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function ki(e,t,n,r){let{mounted:i,setMounted:a,transitionStatus:o}=Ze(e,!1,!1,r),s=t.useState(`preventUnmountingOnClose`),c=!e&&s;t.useSyncedValues({mounted:i,transitionStatus:o,preventUnmountingOnClose:c});let l=J(()=>{a(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Xe({enabled:i&&!e&&!c,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:o}}function Ai(e,t){e.useSyncedValues(t),K(()=>()=>{e.update({activeTriggerProps:u,inactiveTriggerProps:u,popupProps:u})},[e])}function ji(e,t){K(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),K(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Mi=class{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function Ni(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new yi({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:u,inactiveTriggerProps:u,popupProps:u}}var Pi=e=>e.triggerIdProp??e.activeTriggerId,Fi=e=>e.openProp??e.open,Ii=e=>(e.popupElement?.id??e.floatingId)||void 0;function Li(e,t){return t!==void 0&&Fi(e)&&Pi(e)===t}function Ri(e,t){return Li(e,t)?!0:t!==void 0&&Fi(e)&&Pi(e)==null&&e.triggerCount===1}var zi={open:Fi,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Pi,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Ii,isTriggerActive:(e,t)=>t!==void 0&&Pi(e)===t,isOpenedByTrigger:(e,t)=>Li(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Pi(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Ri(e,t)?Ii(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Bi(e){return Vi(e,e.rootContext)}function Vi(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=X.useState(null),[d,f]=X.useState(void 0),[p,m]=X.useState(void 0),h=X.useRef(null),g=Xn(r),_=X.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),v=fi({...e,elements:{..._,...l&&{reference:l}}}),y=P(d)?d:null,b=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:y),t.useSyncedValue(`floatingElement`,b);let x=X.useCallback(e=>{let t=P(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),v.refs.setReference(t)},[v.refs]),S=X.useCallback(e=>{(P(e)||e===null)&&(h.current=e,f(e)),(P(v.refs.reference.current)||v.refs.reference.current===null||e!==null&&!P(e))&&v.refs.setReference(e)},[v.refs,f]),C=X.useCallback(e=>{m(e),v.refs.setFloating(e)},[v.refs]),w=X.useMemo(()=>({...v.refs,setReference:S,setFloating:C,setPositionReference:x,domReference:h}),[v.refs,S,C,x]),T=X.useMemo(()=>({...v.elements,domReference:o}),[v.elements,o]),E=X.useMemo(()=>({...v,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:w,elements:T,nodeId:n,rootStore:t}),[v,w,T,n,t,s,c]);return K(()=>{o&&(h.current=o)},[o]),K(()=>{t.context.dataRef.current.floatingContext=E;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=E)}),X.useMemo(()=>({...v,context:E,refs:w,elements:T,rootStore:t}),[v,w,T,E,t])}var Hi=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new mn,this.restTimeout=new mn,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Ui=new WeakMap;function Wi(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Ui.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Ui.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Gi(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Ui.get(n);a&&a!==e&&Wi(a),Wi(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Ui.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Ki(e){let t=e.context.dataRef.current,n=le(()=>t.hoverInteractionState??Hi.create()).current;return t.hoverInteractionState||=n,Re(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function qi(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Xn(),d=Yn(),p=Ki(a),m=hn(),h=J(()=>vn(l.current.openEvent?.type,p.interactedInside)),g=J(()=>yn(l.current.openEvent?.type)),_=J(()=>{Wi(p)});K(()=>{o||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,_())},[o,p,_]),X.useEffect(()=>_,[_]),K(()=>{if(n&&o&&p.handleCloseOptions?.blockPointerEvents&&g()&&P(c)&&s){let e=c,t=s,n=Z(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=p.pointerEventsScopeElement===t?null:p.pointerEventsScopeElement,a=r===t?null:r,o=p.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Gi(p,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{_()}}},[n,o,c,s,p,g,u,d,_]),X.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&wt(u.nodesRef.current,d).length>0)}function t(e){let t=_n(r,`close`,p.pointerType),n=()=>{a.setOpen(!1,f(De,e)),u?.events.emit(`floating.closed`,e)};t?p.openChangeTimeout.start(t,n):(p.openChangeTimeout.clear(),n())}function o(e){let t=ce(e);if(!xt(t)){p.interactedInside=!1;return}p.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){p.openChangeTimeout.clear(),m.clear(),u?.events.off(`floating.closed`,y),_()}function v(n){if(e()&&u){u.events.on(`floating.closed`,y);return}if(_t(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&P(o)&&wt(u.nodesRef.current,r,!1).some(e=>q(e.context?.elements.floating,o)))){if(p.handler){p.handler(n);return}_(),g()&&!h()&&t(n)}}function y(t){u&&d&&!e()&&m.start(0,()=>{u.events.off(`floating.closed`,y),a.setOpen(!1,f(De,t)),u.events.emit(`floating.closed`,t)})}let b=s;return fn(b&&$(b,`mouseenter`,c),b&&$(b,`mouseleave`,v),b&&$(b,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,y)})},[n,s,a,l,r,i,g,h,_,p,u,d,m])}function Ji(e){return W(19)?e:e?`true`:void 0}var Yi=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Me(e,t)||{};if(l==null)return{};let f=ve(u),p={x:n,y:r},m=U(i),h=Oe(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=ue(k,j,A),N=!c.arrow&&Ae(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),Xi=(e,t)=>{let{name:n,fn:r}=Yi(e);return{name:n,fn:r,options:[e,t]}},Zi={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Qi={sideX:`left`,sideY:`top`},$i=`--available-width`,ea=`--available-height`,ta=`--anchor-width`,na=`--anchor-height`,ra=`--transform-origin`,ia=$i,aa=ea;function oa(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function sa(e,t,n){let{rects:r,placement:i}=e;return{side:oa(t,m(i),n),align:Ae(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ca(e){return la(e,Bi)}function la(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:h=!1,floatingRootContext:g,mounted:_,collisionAvoidance:v,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,[T,E]=X.useState(null);!_&&T!==null&&E(null);let D=v.side||`flip`,O=v.align||`flip`,k=v.fallbackAxisSide||`end`,A=y?.crossAxis??!1,j=y?.rootBoundary,M=typeof n==`function`?n:void 0,N=J(M),P=M?N:n,F=Jt(n),I=Jt(_),L=Ie()===`rtl`,R=T||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":L?`left`:`right`,"inline-start":L?`right`:`left`}[i],z=o===`center`?R:`${R}-${o}`,B=l;typeof B==`number`?B={top:B,right:B,bottom:B,left:B}:B&&={top:B.top||0,right:B.right||0,bottom:B.bottom||0,left:B.left||0};let V=+(i===`bottom`),ee=+(i===`top`),te=+(i===`right`),ne=+(i===`left`),H={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:B},U=X.useRef(null),re=Jt(a),ie=Jt(s),W=typeof a==`function`?0:a,ae=typeof s==`function`?0:s,oe=[];p&&oe.push(p),oe.push(pi(e=>{let t=sa(e,i,L),n=typeof re.current==`function`?re.current(t):re.current,r=typeof ie.current==`function`?ie.current(t):ie.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[W,ae,L,i]));let G=O===`none`&&D!==`shift`,se=!G&&(u||A||D===`shift`),ce=D===`none`?null:gi({...H,padding:{top:B.top+1+V,right:B.right+1+ne,bottom:B.bottom+1+ee,left:B.left+1+te},mainAxis:!A&&D===`flip`,crossAxis:O===`flip`&&`alignment`,fallbackAxisSideDirection:k}),q=G?null:mi({...H,rootBoundary:j,mainAxis:O!==`none`,crossAxis:se,limiter:u||A?void 0:hi(e=>{if(!U.current)return{};let{width:t,height:n}=U.current.getBoundingClientRect(),r=_e(m(e.placement)),i=r===`y`?t:n,a=r===`y`?B.left+B.right:B.top+B.bottom;return{offset:i/2+a/2}})},[H,u,A,j,B,O]);D===`shift`||O===`shift`||o===`center`?oe.push(q,ce):oe.push(ce,q),oe.push(_i({...H,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!I.current)return;let i=e.style;i.setProperty(ia,`${t}px`),i.setProperty(aa,`${n}px`);let a=w(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(ta,`${u}px`),i.setProperty(na,`${d}px`)}}),Xi(e=>({element:U.current||Z(e.elements.floating).createElement(`div`),padding:U.current?d:0,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=m(r),u=Ae(r),d=_e(l)===`y`,f=U.current,p=typeof a==`function`?a(sa(e,i,L)):a,h;h=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let g=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return se&&d&&Math.abs(n.shift?.y||0)>p&&(g=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(ra,d?`${h} ${g}`:`${g} ${h}`),{}}},Zi,x),K(()=>{!_&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,g]);let le=X.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:ue,elements:de,x:fe,y:pe,middlewareData:me,update:he,placement:ge,context:Y,isPositioned:ve,floatingStyles:ye}=t({rootContext:g,open:h?_:void 0,placement:z,middleware:oe,strategy:r,whileElementsMounted:h?void 0:(...e)=>ei(...e,le),nodeId:b,externalTree:C}),{sideX:be,sideY:xe}=me.adaptiveOrigin||Qi,Se=ve?r:`fixed`,Ce=X.useMemo(()=>{let e;return e=ve?x?{position:Se,[be]:fe,[xe]:pe}:{...ye,position:Se}:{position:Se,top:0,left:0},e[ia]=`100vw`,e[aa]=`100vh`,ve||(e.opacity=0),e},[x,Se,be,fe,xe,pe,ye,ve]),we=X.useRef(null);K(()=>{if(!_)return;let e=F.current,t=typeof e==`function`?e():e,n=(ua(t)?t.current:t)||null;n!==we.current&&(ue.setPositionReference(n),we.current=n)},[_,ue,P,F]),X.useEffect(()=>{if(!_)return;let e=F.current;typeof e!=`function`&&ua(e)&&e.current!==we.current&&(ue.setPositionReference(e.current),we.current=e.current)},[_,ue,P,F]),X.useEffect(()=>{if(h&&_&&de.reference&&de.floating)return ei(de.reference,de.floating,he,le)},[h,_,de,he,le]);let Te=m(ge),Ee=oa(i,Te,L),De=Ae(ge)||`center`,Oe=!!me.hide?.referenceHidden;K(()=>{S&&_&&ve&&Te!==R&&E(Te)},[S,_,ve,Te,R]);let ke=X.useMemo(()=>({position:`absolute`,top:me.arrow?.y,left:me.arrow?.x}),[me.arrow]),je=me.arrow?.centerOffset!==0;return X.useMemo(()=>({positionerStyles:Ce,arrowStyles:ke,arrowRef:U,arrowUncentered:je,side:Ee,align:De,physicalSide:Te,anchorHidden:Oe,refs:ue,context:Y,isPositioned:ve,update:he}),[Ce,ke,U,je,Ee,De,Te,Oe,ue,Y,ve,he])}function ua(e){return e!=null&&`current`in e}var da=X.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,Q.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function fa(e){return e===`starting`?In:u}function pa(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),re(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},fa(r),i],stateAttributesMapping:mt})}var ma={},ha={},ga=``;function _a(e,t){return G(e)?e:t}function va(e,t,n){return/hidden|clip/.test(e.getComputedStyle(_a(t,n)).overflowY)}function ya(e){if(typeof document>`u`)return!1;let t=Z(e);return w(t).innerWidth-t.documentElement.clientWidth>0}function ba(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Z(e),n=t.documentElement,r=t.body,i=_a(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function xa(e){let t=Z(e),n=t.documentElement,r=t.body,i=_a(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Sa(e){let t=Z(e),n=t.documentElement,r=t.body,i=w(n),a=0,o=0,s=!1,c=Ve.create();if(tt&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,ma={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ga=n.style.scrollBehavior,ha={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=_a(n,r);if(s=ba(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,ma),Object.assign(r.style,ha),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=ga)}function d(){u(),c.request(l)}l();let f=$(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Ca=new class{lockCount=0;restore=null;timeoutLock=mn.create();timeoutUnlock=mn.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Z(e),n=t.documentElement,r=t.body,i=w(n);if(va(i,n,r)){let t=new i.MutationObserver(()=>{va(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=p||!ya(e);this.restore=a?xa(e):Sa(e)}};function wa(e=!0,t=null){K(()=>{if(e)return Ca.acquire(t)},[e,t])}var Ta=20;function Ea(e,t,n,r){let[i,a]=X.useState(!1);K(()=>{if(!e||!t||n==null){a(!1);return}let r=Z(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ta)},[e,t,n]),wa(e&&(!t||i),r)}var Da=X.createContext(void 0);function Oa(e){let t=X.useContext(Da);if(t===void 0&&!e)throw Error(S(47));return t}var ka={...zi,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Aa=class extends dn{constructor(e,t,n){let r=new Mi;super(ja(e,r,t,n),Ma(r),ka)}setOpen=(e,t)=>{let n=t.reason===De,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=Ei(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=Ti(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.set(`stickIfOpen`,!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set(`stickIfOpen`,!1)}),Ue.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function ja(e,t,n,r=!1){let i={...Ni(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function Ma(e){return{popupRef:X.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:X.createRef(),beforeContentFocusGuardRef:X.createRef(),stickIfOpenTimeout:new mn,triggerElements:e}}var Na=nn(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=Fa(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),p=u.useState(`mounted`),m=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),ji(u,d),Oi(u);let{forceUnmount:h}=ki(d,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:o}),X.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),X.useImperativeHandle(e.actionsRef,()=>({unmount:h,close:()=>u.setOpen(!1,f(Te))}),[h,u]);let g=d||p;return(0,Q.jsxs)(Da.Provider,{value:u,children:[s&&(0,Q.jsx)(wi,{handle:s,store:u}),g&&(0,Q.jsx)(Ia,{store:u,modal:o}),typeof t==`function`?t({payload:m}):t]})});function Pa(e){return Oa(!0)?(0,Q.jsx)(Na,{props:e}):(0,Q.jsx)($n,{children:(0,Q.jsx)(Na,{props:e})})}function Fa(e,t){let n=Ci((e,n)=>new Aa(t,e,n));return X.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Ia({store:e,modal:t}){let n=mr(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return Ai(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var La=X.createContext(void 0);function Ra(){let e=X.useContext(La);if(e===void 0)throw Error(S(45));return e}var za=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Oa().useState(`mounted`)||n?(0,Q.jsx)(La.Provider,{value:n,children:(0,Q.jsx)(Wn,{ref:t,...r})}):null}),Ba=X.createContext(void 0);function Va(){let e=X.useContext(Ba);if(!e)throw Error(S(46));return e}var Ha=X.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=Rn,..._}=e,v=Oa(),y=Ra(),b=Zn(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=v.useState(`adaptiveOrigin`),M=X.useRef(null),N=Ye(O),P=ca({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:j}),F=x.useState(`domReferenceElement`);K(()=>{let e=F,t=M.current;if(e&&(M.current=e),t&&e&&e!==t){v.set(`instantType`,void 0);let e=new AbortController;return N(()=>{v.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[F,N,v]);let I=E===!0&&w!==`trigger-hover`;Ea(C&&I,D===`touch`,O,T);let L=v.useStateSetter(`positionerElement`),R=pa(e,{open:C,side:P.side,align:P.align,anchorHidden:P.anchorHidden,instant:k},{styles:P.positionerStyles,transitionStatus:A,props:_,refs:[t,L],hidden:!S,inert:!C});return(0,Q.jsxs)(Ba.Provider,{value:P,children:[S&&I&&(0,Q.jsx)(da,{inert:Ji(!C),cutout:T}),(0,Q.jsx)(Qn,{id:b,children:R})]})}),Ua=X.createContext(void 0);function Wa(){let[e,t]=X.useState(0),n=J(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:X.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var Ga=X.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Oa(),l=Va(),u=Se(!0)!=null,{context:d,hasClosePart:f}=Wa(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);Xe({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),qi(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?Si(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M={open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},N=re(`div`,e,{state:M,ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...xi,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&de.has(e.key)&&e.stopPropagation()}},fa(g),s],stateAttributesMapping:ht});return(0,Q.jsx)(cr,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,previousFocusableElement:H(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Q.jsx)(Ua.Provider,{value:d,children:N})})}),Ka=c();function qa(e){if(!e||e instanceof Element)return e;let t=e;return{getBoundingClientRect:()=>{let e=t.right-t.left,n=t.bottom-t.top;return{x:t.left,y:t.top,left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:e,height:n,toJSON:()=>t}}}}function Ja(e){let t=(0,Ka.c)(22),{open:r,onOpenChange:i,anchor:a,label:o,className:s,initialFocus:c,finalFocus:l,children:u}=e,d=Le(),f;t[0]===i?f=t[1]:(f=e=>i(e),t[0]=i,t[1]=f);let p;t[2]===a?p=t[3]:(p=qa(a),t[2]=a,t[3]=p);let m;t[4]===s?m=t[5]:(m=n(`ui-popup ui-popover`,s),t[4]=s,t[5]=m);let h;t[6]!==u||t[7]!==l||t[8]!==c||t[9]!==o||t[10]!==m?(h=(0,Q.jsx)(Ga,{className:m,"aria-label":o,initialFocus:c,finalFocus:l,children:u}),t[6]=u,t[7]=l,t[8]=c,t[9]=o,t[10]=m,t[11]=h):h=t[11];let g;t[12]!==p||t[13]!==h?(g=(0,Q.jsx)(Ha,{className:`ui-positioner`,anchor:p,side:`bottom`,align:`start`,sideOffset:6,children:h}),t[12]=p,t[13]=h,t[14]=g):g=t[14];let _;t[15]!==d||t[16]!==g?(_=(0,Q.jsx)(za,{container:d,children:g}),t[15]=d,t[16]=g,t[17]=_):_=t[17];let v;return t[18]!==r||t[19]!==f||t[20]!==_?(v=(0,Q.jsx)(Pa,{open:r,onOpenChange:f,modal:!1,children:_}),t[18]=r,t[19]=f,t[20]=_,t[21]=v):v=t[21],v}var Ya=X.createContext(void 0);function Xa(e){let t=X.useContext(Ya);if(t===void 0&&!e)throw Error(S(72));return t}var Za={...zi,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Qa=class extends dn{constructor(e,t,n){let r=new Mi;super($a(e,r,t,n),eo(r),Za)}setOpen=(e,t)=>{Di(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,f(Ne,e))}};function $a(e,t,n,r=!1){return{...Ni(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function eo(e){return{popupRef:X.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var to=nn(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:p}=e,m=Ci((e,t)=>new Qa({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));m.useControlledProp(`openProp`,r),m.useControlledProp(`triggerIdProp`,u),m.useContextCallback(`onOpenChange`,s),m.useContextCallback(`onOpenChangeComplete`,c);let h=m.useState(`open`),g=!t&&h,_=m.useState(`activeTriggerId`),v=m.useState(`mounted`),y=m.useState(`payload`);m.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),Oi(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:x}=ki(g,m),S=m.useState(`isInstantPhase`),C=m.useState(`instantType`),w=m.useState(`lastOpenChangeReason`),T=X.useRef(null);K(()=>{h&&t&&m.setOpen(!1,f(ge))},[h,t,m]),K(()=>{x===`ending`&&w===`none`||x!==`ending`&&S?(C!==`delay`&&(T.current=C),m.set(`instantType`,`delay`)):T.current!==null&&(m.set(`instantType`,T.current),T.current=null)},[x,S,w,C,m]),K(()=>{g&&(_??m.set(`payload`,void 0))},[m,_,g]),X.useImperativeHandle(o,()=>({unmount:b,close:()=>m.setOpen(!1,f(Te))}),[b,m]);let E=g||v||!t&&a!==`none`;return(0,Q.jsxs)(Ya.Provider,{value:m,children:[l&&(0,Q.jsx)(wi,{handle:l,store:m}),E&&(0,Q.jsx)(no,{store:m,disabled:t,trackCursorAxis:a}),typeof p==`function`?p({payload:y}):p]})});function no({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=mr(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=dr(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=X.useMemo(()=>ke(a.reference,i.reference),[a.reference,i.reference]);return Ai(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??u}),null}var ro=X.createContext(void 0);function io(){let e=X.useContext(ro);if(e===void 0)throw Error(S(70));return e}var ao=X.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Un({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,Q.jsxs)(X.Fragment,{children:[l,c&&Ue.createPortal(n,c)]})}),oo=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Xa().useState(`mounted`)||n?(0,Q.jsx)(ro.Provider,{value:n,children:(0,Q.jsx)(ao,{ref:t,...r})}):null}),so=X.createContext(void 0);function co(){let e=X.useContext(so);if(e===void 0)throw Error(S(71));return e}var lo=X.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Rn,style:g,..._}=e,v=Xa(),y=io(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=ca({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=pa(e,X.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,Q.jsx)(so.Provider,{value:D,children:O})}),uo=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Xa(),{side:s,align:c}=co(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Xe({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),qi(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return re(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[xi,f,fa(d),a],stateAttributesMapping:ht})}),fo=e({AnchoredCard:()=>po});function po(e){let t=(0,Ka.c)(17),{anchor:r,className:i,state:a,children:o}=e,s=Le(),c=r!==null,l;t[0]===r?l=t[1]:(l=qa(r),t[0]=r,t[1]=l);let u;t[2]===i?u=t[3]:(u=n(`ui-tooltip ui-card`,i),t[2]=i,t[3]=u);let d;t[4]!==o||t[5]!==a||t[6]!==u?(d=(0,Q.jsx)(uo,{className:u,"data-state":a,role:`tooltip`,children:o}),t[4]=o,t[5]=a,t[6]=u,t[7]=d):d=t[7];let f;t[8]!==l||t[9]!==d?(f=(0,Q.jsx)(lo,{className:`ui-positioner`,anchor:l,side:`bottom`,align:`start`,sideOffset:6,children:d}),t[8]=l,t[9]=d,t[10]=f):f=t[10];let p;t[11]!==s||t[12]!==f?(p=(0,Q.jsx)(oo,{container:s,children:f}),t[11]=s,t[12]=f,t[13]=p):p=t[13];let m;return t[14]!==c||t[15]!==p?(m=(0,Q.jsx)(to,{open:c,children:p}),t[14]=c,t[15]=p,t[16]=m):m=t[16],m}export{nt as A,Ct as C,pt as D,mt as E,He as F,Z as I,et as M,Ze as N,st as O,Xe as P,Jt as S,bt as T,Wn as _,pa as a,hn as b,ca as c,xi as d,yi as f,Xn as g,Yn as h,Ea as i,tt as j,ct as k,Ji as l,cr as m,fo as n,fa as o,mr as p,Ja as r,da as s,po as t,Mi as u,Ln as v,St as w,dn as x,Cn as y}; \ No newline at end of file +import{n as e,r as t}from"./rolldown-runtime.mjs";import{k as n}from"./pickerModel.mjs";import{c as r,l as i,m as a,p as o,s,u as c}from"./vendor.mjs";import{a as l,i as u,r as d,t as f}from"./createBaseUIEventDetails.mjs";import{$ as p,A as m,At as h,B as g,Bt as _,C as v,D as y,Dt as b,E as x,Et as S,F as C,Ft as w,Gt as T,Ht as E,I as D,It as O,J as k,Jt as A,K as j,Kt as M,L as N,Lt as P,M as F,Mt as I,N as L,Nt as R,O as z,Ot as B,P as V,Pt as ee,Q as te,R as ne,Rt as H,S as U,St as re,T as ie,Tt as W,Ut as ae,V as oe,Vt as G,Wt as se,X as ce,Xt as K,Y as q,Yt as le,_ as ue,a as de,at as fe,b as pe,bt as J,et as me,ht as he,it as ge,j as _e,jt as Y,k as ve,kt as ye,m as be,mt as xe,nt as Se,ot as Ce,q as we,st as Te,v as Ee,vt as De,w as Oe,wt as ke,x as Ae,xt as je,y as Me,yt as Ne,z as Pe,zt as Fe}from"./composite.mjs";import{i as Ie,r as Le}from"./UiProvider.mjs";var X=t(a(),1);function Z(e){return e?.ownerDocument||document}function Re(e){X.useEffect(e,d)}var ze=null;globalThis.requestAnimationFrame;var Be=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Ve=class e{static create(){return new e}static request(e){return Be.request(e)}static cancel(e){return Be.cancel(e)}currentId=ze;request(e){this.cancel(),this.currentId=Be.request(()=>{this.currentId=ze,e()})}cancel=()=>{this.currentId!==ze&&(Be.cancel(this.currentId),this.currentId=ze)};disposeEffect=()=>this.cancel};function He(){let e=le(Ve.create).current;return Re(e.disposeEffect),e}var Ue=t(o(),1),Q=i();function We(e){return e==null?e:`current`in e?e.current:e}var Ge=`data-starting-style`,Ke=`data-ending-style`,qe=null;function Je(e){if(!qe){let e=[];qe=e,queueMicrotask(()=>{qe=null,Ue.flushSync(()=>{for(let t of e)t()})})}qe.push(e)}function Ye(e,t=!1,n=!1){let r=He();return J((i,a=null)=>{r.cancel();let o=We(e);if(o==null)return;let s=o,c=()=>{if(!n){Ue.flushSync(i);return}Je(()=>{a?.aborted||i()})};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()},()=>{if(!a?.aborted){if(s.getAnimations().some(e=>e.pending||e.playState!==`finished`)){l();return}c()}})}if(t){let e=Ge;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function Xe(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=J(a),s=Ye(r,n,i);X.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function Ze(e,t=!1,n=!1,r=!1){let[i,a]=X.useState(e&&t?`idle`:void 0),[o,s]=X.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),K(()=>{if(!e&&o&&i!==`ending`&&n){let e=Ve.request(()=>{a(`ending`)});return()=>{Ve.cancel(e)}}},[e,o,i,n]),K(()=>{if(!e||t)return;let n=Ve.request(()=>{a(void 0)});return()=>{Ve.cancel(n)}},[t,e]),K(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Ve.request(()=>{a(`idle`)});return()=>{Ve.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}var Qe={[Ge]:``},$e={[Ke]:``},et={transitionStatus(e){return e===`starting`?Qe:e===`ending`?$e:null}},tt=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),nt=!tt&&me.includes(`firefox`);!tt&&me.includes(`chrom`);var rt=te,it=`data-open`,at=`data-closed`,ot=`data-anchor-hidden`,st=`data-popup-open`,ct=`data-pressed`,lt={[st]:``,[ct]:``},ut={[it]:``},dt={[at]:``},ft={[ot]:``},pt={open(e){return e?lt:null}},mt={open(e){return e?ut:dt},anchorHidden(e){return e?ft:null}},ht={...mt,...et},gt=`data-trigger-disabled`;function _t(e,t){if(!P(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(gt);for(let[,e]of t.entries())if(q(e,n))return!e.hasAttribute(gt);return!1}function vt(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function yt(e){return e.matches(`html,body`)}function bt(e){return H(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function xt(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${we}`)!=null}function St(e){return e?e.getAttribute(`role`)===`combobox`&&bt(e):!1}function Ct(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function wt(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...wt(e,t.id,n)])}function Tt(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}var Et=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Dt(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return E(n)?n.host:null}function Ot(e){for(let t of Array.from(e.children))if(Y(t)===`summary`)return t;return null}function kt(e,t){let n=Ot(t);return!!n&&(e===n||q(n,e))}function At(e){let t=e?Y(e):``;return e!=null&&e.matches(Et)&&(t!==`summary`||e.parentElement!=null&&Y(e.parentElement)===`details`&&Ot(e.parentElement)===e)&&(t!==`details`||Ot(e)==null)&&(t!==`input`||e.type!==`hidden`)}function jt(e){if(!At(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Dt(t)){let n=t!==e,r=Y(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Y(t)===`details`&&!t.open&&!kt(e,t)||t.hasAttribute(`hidden`)||!r&&!Mt(t,n))return!1}return!0}function Mt(e,t){let n=b(e);return t?n.display!==`none`:be(e,n)}function Nt(e){let t=e.tabIndex;if(t<0){let t=Y(e);if(t===`details`||t===`audio`||t===`video`||H(e)&&e.isContentEditable)return 0}return t}function Pt(e){if(Y(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ft(e,t){let n=Pt(e);if(!n)return!0;let r=t.find(e=>{let t=Pt(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Pt(e);return t?.name===n.name&&t.form===n.form})===n}function It(e){if(H(e)&&Y(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return H(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Lt(e,t){It(e).forEach(e=>{At(e)&&t.push(e),Lt(e,t)})}function Rt(e,t,n){It(e).forEach(e=>{H(e)&&e.matches(t)&&n.push(e),Rt(e,t,n)})}function zt(e){return jt(e)&&Nt(e)>=0}function Bt(e){let t=[];return Lt(e,t),t.filter(jt)}function Vt(e){let t=Bt(e);return t.filter(e=>Nt(e)>=0&&Ft(e,t))}function Ht(e,t){let n=Vt(e),r=n.length;if(r===0)return;let i=k(Z(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Ut(e){return Ht(Z(e).body,1)||e}function Wt(e){return Ht(Z(e).body,-1)||e}function Gt(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!q(n,r)}function Kt(e){Vt(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function qt(e){let t=[];Rt(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Jt(e){let t=le(Yt,e).current;return t.next=e,K(t.effect),t}function Yt(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Xt=r(),Zt=s(),Qt=[],$t=void 0;function en(){return $t}function tn(e){Qt.push(e)}function nn(e){let t=(t,n)=>{let r=le(rn).current,i;try{$t=r;for(let e of Qt)e.before(r);i=e(t,n);for(let e of Qt)e.after(r);r.didInitialize=!0}finally{$t=void 0}return i};return t.displayName=e.displayName||e.name,t}function rn(){return{didInitialize:!1}}var an=W(19)?cn:ln;function on(e,t,n,r,i){return an(e,t,n,r,i)}function sn(e,t,n,r,i){let a=X.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Xt.useSyncExternalStore)(e.subscribe,a,a)}tn({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Xt.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function cn(e,t,n,r,i){let a=en();if(!a)return sn(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function ln(e,t,n,r,i){return(0,Zt.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var un=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return on(this,e,t,n,r)}},dn=class extends un{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){X.useDebugValue(e);let n=this;K(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;K(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);K(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){X.useDebugValue(e);let n=this,r=t!==void 0;K(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return X.useDebugValue(e),on(this,this.selectors[e],t,n,r)}useContextCallback(e,t){X.useDebugValue(e);let n=J(t??l);this.context[e]=n}useStateSetter(e){let t=X.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function fn(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function $(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var pn=0,mn=class e{static create(){return new e}currentId=pn;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=pn,t()},e)}isStarted(){return this.currentId!==pn}clear=()=>{this.currentId!==pn&&(clearTimeout(this.currentId),this.currentId=pn)};disposeEffect=()=>this.clear};function hn(){let e=le(mn.create).current;return Re(e.disposeEffect),e}function gn(e,t){return t!=null&&!N(t)?0:typeof e==`function`?e():e}function _n(e,t,n){let r=gn(e,n);return typeof r==`number`?r:r?.[t]}function vn(e,t){return t||e===`click`||e===`mousedown`}function yn(e){return e?.includes(`mouse`)&&e!==`mousedown`}var bn=X.forwardRef(function(e,t){let[n,r]=X.useState();K(()=>{rt&&tt&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Q.jsx)(`span`,{...e,ref:t,style:M,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function xn(e){return`data-base-ui-${e}`}var Sn=0;function Cn(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Sn);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),l;let o=requestAnimationFrame(a);return Sn=o,()=>{Sn===o&&(cancelAnimationFrame(o),Sn=0)}}var wn={inert:new WeakMap,"aria-hidden":new WeakMap},Tn=`data-base-ui-inert`,En={inert:new WeakSet,"aria-hidden":new WeakSet},Dn=new WeakMap,On=0;function kn(e){return En[e]}function An(e){return e?E(e)?e.host:An(e.parentNode):null}var jn=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=An(t);return e.contains(n)?n:null}).filter(e=>e!=null),Mn=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Nn=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Y(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Pn(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=jn(t,e),l=i?Nn(t,Mn(c),new Set(c)):[],u=[],d=[];if(a){let e=wn[a],n=kn(a);s=n,o=e;let r=jn(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);Nn(t,Mn(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(Dn.get(e)||0)+1;Dn.set(e,t),d.push(e),t===1&&e.setAttribute(Tn,``)}),On+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(Dn.get(e)||0)-1;Dn.set(e,t),t||e.removeAttribute(Tn)}),--On,On||(wn.inert=new WeakMap,wn[`aria-hidden`]=new WeakMap,En.inert=new WeakSet,En[`aria-hidden`]=new WeakSet,Dn=new WeakMap)}}function Fn(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=Z(e[0]).body;return Pn(e,a,n,r,{mark:i})}var In={style:{transition:`none`}},Ln={fallbackAxisSide:`none`},Rn={fallbackAxisSide:`end`},zn={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Bn=X.createContext(null),Vn=()=>X.useContext(Bn),Hn=xn(`portal`);function Un(e={}){let{ref:t,container:n,componentProps:r=u,elementProps:i}=e,a=je(),o=Vn()?.portalNode,[s,c]=X.useState(null),[l,d]=X.useState(null),f=J(e=>{e!==null&&d(e)}),p=X.useRef(null);K(()=>{if(n===null){p.current&&(p.current=null,d(null),c(null));return}let e=(n&&(_(n)?n:n.current))??o??document.body;if(e==null){p.current&&(p.current=null,d(null),c(null));return}p.current!==e&&(p.current=e,d(null),c(e))},[n,o]);let m=re(`div`,r,{ref:[t,f],props:[{id:a,[Hn]:``},i]}),h=s&&m?Ue.createPortal(m,s):null;return{node:l,nodeId:X.isValidElement(m)?m.props.id:void 0,subtree:h}}var Wn=X.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Un({container:o,ref:t,componentProps:e,elementProps:c}),p=X.useRef(null),m=X.useRef(null),h=X.useRef(null),g=X.useRef(null),[_,v]=X.useState(null),y=X.useRef(!1),b=_?.modal,x=_?.open,S=!!_&&!_.modal&&_.open&&!!l;X.useEffect(()=>{if(!l||b)return;function e(e){l&&e.relatedTarget&&Gt(e)&&(e.type===`focusin`?y.current&&=(qt(l),!1):(Kt(l),y.current=!0))}return fn($(l,`focusin`,e,!0),$(l,`focusout`,e,!0))},[l,b]),K(()=>{l&&x===!0&&y.current&&(qt(l),y.current=!1)},[x,l]);let C=X.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:l,setFocusManagerState:v}),[l]);return(0,Q.jsxs)(X.Fragment,{children:[d,(0,Q.jsxs)(Bn.Provider,{value:C,children:[S&&l&&(0,Q.jsx)(bn,{"data-type":`outside`,ref:p,onFocus:e=>{Gt(e,l)?h.current?.focus():Wt(_?_.domReference:null)?.focus()}}),S&&l&&(0,Q.jsx)(`span`,{role:s,"aria-owns":u,style:zn}),l&&Ue.createPortal(a,l),S&&l&&(0,Q.jsx)(bn,{"data-type":`outside`,ref:m,onFocus:e=>{Gt(e,l)?g.current?.focus():(Ut(_?_.domReference:null)?.focus(),_?.closeOnFocusOut&&_?.onOpenChange(!1,f(`focus-out`,e.nativeEvent)))}})]})]})});function Gn(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Kn=class{nodesRef={current:[]};events=Gn();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},qn=X.createContext(null),Jn=X.createContext(null),Yn=()=>X.useContext(qn)?.id||null,Xn=e=>{let t=X.useContext(Jn);return e??t};function Zn(e){let t=je(),n=Xn(e),r=Yn();return K(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Qn(e){let{children:t,id:n}=e,r=Yn();return(0,Q.jsx)(qn.Provider,{value:X.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function $n(e){let{children:t,externalTree:n}=e,r=le(()=>n??new Kn).current;return(0,Q.jsx)(Jn.Provider,{value:r,children:t})}function er(e,t){let n=w(ce(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var tr=20,nr=[];function rr(){nr=nr.filter(e=>e.deref()?.isConnected)}function ir(e){rr(),e&&Y(e)!==`body`&&(nr.push(new WeakRef(e)),nr.length>tr&&(nr=nr.slice(-20)))}function ar(){return rr(),nr[nr.length-1]?.deref()}function or(e){return e?zt(e)?e:Vt(e)[0]||e:null}function sr(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Bt(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return zt(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function cr(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,_=`rootStore`in t?t.rootStore:t,v=_.useState(`open`),y=_.useState(`domReferenceElement`),b=_.useState(`floatingElement`),{events:x,dataRef:S}=_.context,C=J(()=>S.current.floatingContext?.nodeId),w=i===!1,T=St(y)&&w,E=Jt(i),D=Jt(a),O=Jt(l),j=Jt(v),M=Xn(m),N=Vn(),P=X.useRef(!1),F=X.useRef(!1),I=X.useRef(!1),L=X.useRef(null),R=X.useRef(``),z=X.useRef(``),B=X.useRef(null),V=X.useRef(null),ee=A(B,p,N?.beforeInsideRef),te=A(V,N?.afterInsideRef),ne=hn(),U=hn(),re=He(),ie=N!=null,W=Ct(b),ae=J((e=W)=>e?Vt(e):[]),G=J(()=>h?.().filter(e=>e!=null)??[]);X.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&q(W,k(Z(W)))&&ae().length===0&&!T&&oe(e)}return $(Z(W),`keydown`,e)},[r,W,s,T,ae]),X.useEffect(()=>{if(r||!v)return;let e=Z(W);function t(){I.current=!1}function n(e){let t=ce(e),n=G(),r=q(b,t)||q(y,t)||q(N?.portalNode,t)||n.some(e=>e===t||q(e,t));I.current=!r,z.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(F.current=!0,U.start(0,()=>{F.current=!1}))}function i(){z.current=`keyboard`}return fn($(e,`pointerdown`,n,!0),$(e,`pointerup`,t,!0),$(e,`pointercancel`,t,!0),$(e,`keydown`,i,!0),t)},[r,b,y,W,v,N,U,G]),X.useEffect(()=>{if(r||!c)return;let e=Z(W);function t(){F.current=!0,U.start(0,()=>{F.current=!1})}function n(e){let t=ce(e);zt(t)&&(L.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=ce(t);s&&n==null&&i!=null&&q(b,i)&&ir(i),queueMicrotask(()=>{let a=C(),c=_.context.triggerElements,l=G(),p=n?.hasAttribute(xn(`focus-guard`))&&[B.current,V.current,N?.beforeInsideRef.current,N?.afterInsideRef.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,We(d),We(u)].includes(n),m=!(q(y,n)||q(b,n)||q(n,b)||q(N?.portalNode,n)||l.some(e=>e===n||q(e,n))||c.hasMatchingElement(e=>q(e,n))||p||M&&(wt(M.nodesRef.current,a).find(e=>q(e.context?.elements.floating,n)||q(e.context?.elements.domReference,n))||Tt(M.nodesRef.current,a).find(e=>[e.context?.elements.floating,Ct(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===y&&W&&sr(W),o&&r!==y&&!be(i)&&k(e)===e.body){if(H(W)&&(W.focus(),o===`popup`)){re.request(()=>{W.focus()});return}let e=ae(),t=L.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||W;H(n)&&n.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(T||!s)&&n&&m&&!F.current&&(T||n!==ar())&&(P.current=!0,_.setOpen(!1,f(Ce,t)))})}function a(){I.current||(S.current.insideReactTree=!0,ne.start(0,()=>{S.current.insideReactTree=!1}))}let l=H(y)?y:null;if(b||l)return fn(l&&$(l,`focusout`,i),l&&$(l,`pointerdown`,t),b&&$(b,`focusin`,n),b&&$(b,`focusout`,i),b&&N&&$(b,`focusout`,a,!0))},[r,y,b,W,s,M,N,_,c,o,ae,T,C,S,ne,U,re,u,d,G]),X.useEffect(()=>{if(r||!b||!v)return;let e=Array.from(N?.portalNode?.querySelectorAll(`[${xn(`portal`)}]`)||[]),t=(M?Tt(M.nodesRef.current,C()):[]).find(e=>St(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Fn([b,...e,B.current,V.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,...G(),t,We(d),We(u),T?y:null].filter(e=>e!=null),{ariaHidden:s||T,mark:!1}),i=Fn([b,...e].filter(e=>e!=null));return()=>{i(),n()}},[v,r,y,b,s,N,T,M,C,u,d,G]),K(()=>{if(!v||r||!H(W))return;R.current=``,z.current=``;let e=Z(W),t=k(e);queueMicrotask(()=>{let n=E.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||q(W,t))return;let i=null,a=()=>(i??=ae(W),i[0]||W),o;o=r===!0||r===null?a():We(r),o||=a();let s=q(W,k(e));Cn(o,{preventScroll:o===W,shouldFocus(){if(!j.current)return!1;if(s)return!0;let t=k(e);return!(t!==o&&q(W,t))}})})},[r,v,W,ae,E,O,j]),K(()=>{if(r||!W)return;let e=Z(W),t=k(e),n=O.current==null;ir(t);function i(e){if(e.open||(R.current=er(e.nativeEvent,z.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(P.current=!0),e.reason===`outside-press`){if(e.nested)P.current=!1;else if(Pe(e.nativeEvent)||g(e.nativeEvent))P.current=!1;else{let e=!1;Z(W).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?P.current=!1:P.current=!0}}}x.on(`openchange`,i);function a(e){let r=D.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=y?.isConnected?y:null,o=t?.isConnected&&Y(t)!==`body`?t:null,s=n?o||a:a||o;return s||=ar()||null,typeof i==`boolean`?s:We(i)||s||null}return()=>{x.off(`openchange`,i);let t=k(e),n=G(),r=q(b,t)||n.some(e=>e===t||q(e,t))||M&&wt(M.nodesRef.current,C(),!1).some(e=>q(e.context?.elements.floating,t)),o=D.current,s=R.current,c=a(s);queueMicrotask(()=>{let n=or(c),i=typeof o!=`boolean`;if(o&&!P.current&&H(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}P.current=!1})}},[r,b,W,D,O,x,M,y,C,G]),K(()=>{if(!tt||v||!b)return;let e=k(Z(b));H(e)&&bt(e)&&q(b,e)&&e.blur()},[v,b]),K(()=>{if(!r&&N)return N.setFocusManagerState({modal:s,closeOnFocusOut:c,open:v,onOpenChange:_.setOpen,domReference:y}),()=>{N.setFocusManagerState(null)}},[r,N,s,v,_,c,y]),K(()=>{if(!r&&W)return sr(W),()=>{queueMicrotask(rr)}},[r,W]);let se=!r&&(!s||!T)&&(ie||s);return(0,Q.jsxs)(X.Fragment,{children:[se&&(0,Q.jsx)(bn,{"data-type":`inside`,ref:ee,onFocus:e=>{if(s){let e=ae();Cn(e[e.length-1])}else N?.portalNode&&(P.current=!1,Gt(e,N.portalNode)?Ut(y)?.focus():We(d??N.beforeOutsideRef)?.focus())}}),n,se&&(0,Q.jsx)(bn,{"data-type":`inside`,ref:te,onFocus:e=>{s?Cn(ae()[0]):N?.portalNode&&(c&&(P.current=!0),Gt(e,N.portalNode)?Wt(y)?.focus():We(u??N.afterOutsideRef)?.focus())}})]})}function lr(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function ur(e){return e!=null&&e.clientX!=null}function dr(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=X.useRef(!1),u=X.useRef(null),[d,f]=X.useState(),[p,m]=X.useState([]),h=J(e=>{i.set(`positionReference`,e)}),g=J((e,t,n)=>{l.current||(!c.current.openEvent||ur(c.current.openEvent))&&i.set(`positionReference`,lr(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=J(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=N(d)?o:a;X.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=w(o);function r(t){let n=ce(t);q(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||ur(c.current.openEvent)?u.current=$(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),X.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),X.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),X.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=X.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return X.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function fr(){return!1}function pr(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function mr(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=fr,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:p,events:m}=l.context,h=Xn(c),g=J(typeof i==`function`?i:()=>!1),_=typeof i==`function`?g:i,v=_!==!1,y=J(()=>a),{escapeKey:x,outsidePress:S}=pr(s),C=X.useRef(!1),w=X.useRef(!1),T=X.useRef(!1),D=X.useRef(!1),O=X.useRef(!1),k=X.useRef(``),A=X.useRef(null),j=hn(),M=hn(),N=J(()=>{M.clear(),p.current.insideReactTree=!1}),F=J(e=>{let t=p.current.floatingContext?.nodeId;return(h?wt(h.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),I=J(e=>vt(e,l.select(`floatingElement`))||vt(e,l.select(`domReferenceElement`))),L=J(e=>{o()&&l.setOpen(!1,f(Ne,e.nativeEvent))}),R=J(e=>{if(!u||!n||!r||e.key!==`Escape`||O.current||!x&&F(`__escapeKeyBubbles`))return;let t=ne(e)?e.nativeEvent:e,i=f(fe,t);l.setOpen(!1,i),i.isCanceled||e.preventDefault(),!x&&!i.isPropagationAllowed&&e.stopPropagation()}),z=J(()=>{p.current.insideReactTree=!0,M.start(0,N)}),B=J(e=>{if(!u||!n||e.button!==0)return;let t=ce(e.nativeEvent);q(l.select(`floatingElement`),t)&&(C.current||(C.current=!0,w.current=!1))}),V=J(e=>{u&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&C.current&&(w.current=!0)});X.useEffect(()=>{function e(e){e.open||(D.current=!1)}return m.on(`openchange`,e),()=>{m.off(`openchange`,e)}},[m]),X.useEffect(()=>{if(!u||!n)return u||(D.current=!1),N;p.current.__escapeKeyBubbles=x,p.current.__outsidePressBubbles=S;let e=new mn,t=new mn,i=Z(d);function a(){e.clear(),O.current=!0}function o(){e.start(tt?5:0,()=>{O.current=!1})}function s(){T.current=!0,t.start(0,()=>{T.current=!1})}function c(){C.current=!1,w.current=!1}function m(){let e=k.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function g(e){let t=m();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function M(e){let t=p.current.floatingContext?.nodeId,n=h&&wt(h.nodesRef.current,t).some(t=>vt(e,t.context?.elements.floating));return I(e)||n}function L(e){if(g(e)){e.type!==`click`&&!I(e)&&(t.clear(),T.current=!1),N();return}if(p.current.insideReactTree){N();return}let n=ce(e),r=`[${xn(`inert`)}]`,i=P(n)?n.getRootNode():null,a=Array.from((E(i)?i:Z(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>q(e,n))))return;let s=P(n)?n:null;for(;s&&!Fe(s);){let e=ee(s);if(Fe(e)||!P(e))break;s=e}if(!(a.length&&P(n)&&!yt(n)&&!q(n,l.select(`floatingElement`))&&a.every(e=>!q(s,e)))){if(H(n)&&!(`touches`in e)){let t=Fe(n),r=b(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!M(e)){if(m()===`intentional`){if(e.detail!==0&&!Pe(e)&&!D.current)return;if(T.current){t.clear(),T.current=!1;return}}(typeof _!=`function`||_(e))&&(F(`__outsidePressBubbles`)||(l.setOpen(!1,f(he,e)),N()))}}}function z(e){m()===`sloppy`&&e.pointerType!==`touch`&&l.select(`open`)&&n&&!I(e)&&L(e)}function B(e){if(m()!==`sloppy`||!l.select(`open`)||!n||I(e))return;let t=e.touches[0];t&&(A.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},j.start(1e3,()=>{A.current&&(A.current.dismissOnTouchEnd=!1,A.current.dismissOnMouseDown=!1)}))}function V(e,t){let n=ce(e);if(!n)return;let r=$(n,e.type,()=>{t(e),r()})}function te(e){k.current=`touch`,V(e,B)}function ne(e){j.clear(),e.type===`pointerdown`&&(e.button===0&&(D.current=!0),k.current=e.pointerType),(e.type!==`mousedown`||!A.current||A.current.dismissOnMouseDown)&&V(e,e=>{e.type===`pointerdown`?z(e):L(e)})}function U(e){if(e.type===`pointercancel`&&(D.current=!1),!C.current)return;let n=w.current;if(c(),m()===`intentional`){if(e.type===`pointercancel`){n&&s();return}if(!M(e)){if(n){s();return}(typeof _!=`function`||_(e))&&(t.clear(),T.current=!0,N())}}}function re(e){if(m()!==`sloppy`||!A.current||I(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-A.current.startX),r=Math.abs(t.clientY-A.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(A.current.dismissOnTouchEnd=!0),i>10&&(L(e),j.clear(),A.current=null)}function ie(e){V(e,re)}function W(e){m()===`sloppy`&&A.current&&!I(e)&&(A.current.dismissOnTouchEnd&&L(e),j.clear(),A.current=null)}function ae(e){V(e,W)}let oe=fn(r&&fn($(i,`keydown`,R),$(i,`compositionstart`,a),$(i,`compositionend`,o)),v&&fn($(i,`click`,ne,!0),$(i,`pointerdown`,ne,!0),$(i,`pointerup`,U,!0),$(i,`pointercancel`,U,!0),$(i,`mousedown`,ne,!0),$(i,`mouseup`,U,!0),$(i,`touchstart`,te,{capture:!0,passive:!0}),$(i,`touchmove`,ie,{capture:!0,passive:!0}),$(i,`touchend`,ae,{capture:!0,passive:!0})));return()=>{oe(),e.clear(),t.clear(),c(),T.current=!1,N()}},[p,d,r,v,_,u,n,x,S,R,N,y,F,I,h,l,j]);let te=X.useMemo(()=>({onKeyDown:R,onPointerDown:L,onClick:L}),[R,L]),U=X.useMemo(()=>({onKeyDown:R,onPointerDown:V,onMouseDown:V,onClickCapture:z,onMouseDownCapture(e){z(),B(e)},onPointerDownCapture(e){z(),B(e)},onMouseUpCapture:z,onTouchEndCapture:z,onTouchMoveCapture:z}),[R,z,B,V]);return X.useMemo(()=>n?{reference:te,floating:U,trigger:te}:{},[n,te,U])}function hr(e,t,n){let{reference:r,floating:i}=e,a=_e(t),o=U(t),s=Oe(o),c=m(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let h=Ae(t);return h&&(p[o]+=f*(h===`end`?1:-1)*(n&&l?-1:1)),p}async function gr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Me(t,e),p=ve(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=V(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=V(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var _r=50,vr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:gr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hr(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<_r&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=hr(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},yr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:h=!0,...g}=Me(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let _=m(r),b=_e(o),x=m(o)===o,S=await(s.isRTL==null?void 0:s.isRTL(c.floating)),C=d||(x||!h?[z(o)]:ie(o)),w=p!==`none`;!d&&w&&C.push(...y(o,h,p,S));let T=[o,...C],E=await s.detectOverflow(t,g),D=[],O=i.flip?.overflows||[];if(l&&D.push(E[_]),u){let e=v(r,a,S);D.push(E[e[0]],E[e[1]])}if(O=[...O,{placement:r,overflows:D}],!D.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=T[e];if(t&&(u!==`alignment`||b===_e(t)||O.every(e=>_e(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=O.filter(e=>{if(w){let t=_e(e.placement);return t===b||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},br=new Set([`left`,`top`]);async function xr(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=m(n),s=Ae(n),c=_e(n)===`y`,l=br.has(o)?-1:1,u=a&&c?-1:1,d=Me(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h==`number`&&(p=s===`end`?h*-1:h),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Sr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await xr(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Cr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Me(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=_e(i),p=x(f),m=u[p],h=u[f],g=(e,t)=>ue(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},wr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Me(e,t),u={x:n,y:r},d=_e(i),f=x(d),p=u[f],h=u[d],g=Me(s,t),_=typeof g==`number`?{mainAxis:g,crossAxis:0}:{mainAxis:g.mainAxis??0,crossAxis:g.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+_.mainAxis,n=a.reference[f]+a.reference[e]-_.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=br.has(m(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:_.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?_.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},Tr=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Me(e,t),c=await i.detectOverflow(t,s),l=m(n),u=Ae(n),d=_e(n)===`y`,{width:f,height:p}=r.floating,h,g;l===`top`||l===`bottom`?(h=l,g=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(g=l,h=u===`end`?`top`:`bottom`);let _=p-c.top-c.bottom,v=f-c.left-c.right,y=L(p-c[h],_),b=L(f-c[g],v),x=t.middlewareData.shift,S=!x,C=y,w=b;x!=null&&x.enabled.x&&(w=v),x!=null&&x.enabled.y&&(C=_),S&&!u&&(d?w=f-2*F(c.left,c.right):C=p-2*F(c.top,c.bottom)),await o({...t,availableWidth:w,availableHeight:C});let T=await i.getDimensions(a.floating);return f!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Er(e){let t=b(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=H(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=C(n)!==a||C(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Dr(e){return P(e)?e:e.contextElement}function Or(e){let t=Dr(e);if(!H(t))return Ee(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Er(t),o=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var kr=Ee(0);function Ar(e){let t=w(e);return!T()||!t.visualViewport?kr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jr(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===w(e)}function Mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Dr(e),o=Ee(1);t&&(r?P(r)&&(o=Or(r)):o=Or(e));let s=jr(a,n,r)?Ar(a):Ee(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=w(a),t=P(r)?w(r):r,n=e,i=h(n);for(;i&&t!==n;){let e=Or(i),t=i.getBoundingClientRect(),r=b(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=w(i),i=h(n)}}return V({width:u,height:d,x:c,y:l})}function Nr(e,t){let n=I(e).scrollLeft;return t?t.left+n:Mr(ye(e)).left+n}function Pr(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Nr(e,n),y:n.top+t.scrollTop}}function Fr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ye(r),s=t?se(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ee(1),u=Ee(0),d=H(r);if((d||!a)&&((Y(r)!==`body`||G(o))&&(c=I(r)),d)){let e=Mr(r);l=Or(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Pr(o,c):Ee(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ir(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Lr(e){let t=I(e),n=e.ownerDocument.body,r=F(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=F(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Nr(e),o=-t.scrollTop;return b(n).direction===`rtl`&&(a+=F(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Rr=25;function zr(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=w(e),a=ye(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!T()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Nr(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Rr&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Br(e,t){let n=Mr(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Or(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Vr(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=zr(e,n,t);else if(t===`document`)r=Lr(ye(e));else if(P(t))r=Br(t,n);else{let n=Ar(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return V(r)}function Hr(e,t){let n=t.get(e);if(n)return n;let r=R(e,[],!1).filter(e=>P(e)&&Y(e)!==`body`),i=null,a=b(e).position===`fixed`,o=a?ee(e):e;for(;P(o)&&!Fe(o);){let e=b(o),t=O(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=ee(o)}return t.set(e,r),r}function Ur(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?se(t)?[]:Hr(t,this._c):[].concat(n),r],o=Vr(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Vr(t,a[e],i);s=F(n.top,s),c=L(n.right,c),l=L(n.bottom,l),u=F(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Wr(e){let{width:t,height:n}=Er(e);return{width:t,height:n}}function Gr(e,t,n){let r=H(t),i=ye(t),a=n===`fixed`,o=Mr(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ee(0);if((r||!a)&&((Y(t)!==`body`||G(i))&&(s=I(t)),r)){let e=Mr(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Nr(i));let l=i&&!r&&!a?Pr(i,s):Ee(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Kr(e){return b(e).position===`static`}function qr(e,t){if(!H(e)||b(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function Jr(e,t){let n=w(e);if(se(e))return n;if(!H(e)){let t=ee(e);for(;t&&!Fe(t);){if(P(t)&&!Kr(t))return t;t=ee(t)}return n}let r=qr(e,t);for(;r&&ae(r)&&Kr(r);)r=qr(r,t);return r&&Fe(r)&&Kr(r)&&!O(r)?n:r||B(e)||n}var Yr=async function(e){let t=this.getOffsetParent||Jr,n=this.getDimensions,r=await n(e.floating);return{reference:Gr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xr(e){return b(e).direction===`rtl`}var Zr={convertOffsetParentRelativeRectToViewportRelativeRect:Fr,getDocumentElement:ye,getClippingRect:Ur,getOffsetParent:Jr,getElementRects:Yr,getClientRects:Ir,getDimensions:Wr,getScale:Or,isElement:P,isRTL:Xr};function Qr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $r(e,t,n){let r=null,i,a=ye(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=pe(d),h=pe(a.clientWidth-(u+f)),g=pe(a.clientHeight-(d+p)),_=pe(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:F(0,L(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Qr(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=w(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ei(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Dr(e),u=i||a?[...l?R(l):[],...t?R(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?$r(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Mr(e):null;c&&g();function g(){let t=Mr(e);h&&!Qr(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ti=Sr,ni=Cr,ri=yr,ii=Tr,ai=wr,oi=(e,t,n)=>{let r=new Map,i=n??{},a={...Zr,...i.platform,_c:r};return vr(e,t,{...i,platform:a})},si=typeof document<`u`?X.useLayoutEffect:function(){};function ci(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ci(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ci(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function li(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ui(e,t){let n=li(e);return Math.round(t*n)/n}function di(e){let t=X.useRef(e);return si(()=>{t.current=e}),t}function fi(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=X.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=X.useState(r);ci(f,r)||p(r);let[m,h]=X.useState(null),[g,_]=X.useState(null),v=X.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=X.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=X.useRef(null),C=X.useRef(null),w=X.useRef(u),T=c!=null,E=di(c),D=di(i),O=di(l),k=X.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),oi(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!ci(w.current,t)&&(w.current=t,Ue.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);si(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=X.useRef(!1);si(()=>(A.current=!0,()=>{A.current=!1}),[]),si(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=X.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=X.useMemo(()=>({reference:b,floating:x}),[b,x]),N=X.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ui(M.floating,u.x),r=ui(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...li(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return X.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var pi=(e,t)=>{let n=ti(e);return{name:n.name,fn:n.fn,options:[e,t]}},mi=(e,t)=>{let n=ni(e);return{name:n.name,fn:n.fn,options:[e,t]}},hi=(e,t)=>({fn:ai(e).fn,options:[e,t]}),gi=(e,t)=>{let n=ri(e);return{name:n.name,fn:n.fn,options:[e,t]}},_i=(e,t)=>{let n=ii(e);return{name:n.name,fn:n.fn,options:[e,t]}},vi={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},yi=class extends dn{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Gn(),nested:n,triggerElements:i},vi),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&D(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function bi(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=X.useRef(null);r===void 0&&f.current===null&&(f.current=new yi({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),K(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};P(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var xi={tabIndex:-1,[j]:``};function Si(e){return t=>t!==`touch`||e.current}function Ci(e,t=!1){let n=je(),r=Yn()!=null,i=le(()=>e(n,r)).current;return bi({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function wi({handle:e,store:t}){return K(()=>e.attachStore(t),[e,t]),null}function Ti(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s}}function Ei(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Di(e,t,n,r={}){let i=n.reason,a=i===De,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=Ei(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=Ti(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?Ue.flushSync(l):l()}function Oi(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=X.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);K(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=f(xe);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function ki(e,t,n,r){let{mounted:i,setMounted:a,transitionStatus:o}=Ze(e,!1,!1,r),s=t.useState(`preventUnmountingOnClose`),c=!e&&s;t.useSyncedValues({mounted:i,transitionStatus:o,preventUnmountingOnClose:c});let l=J(()=>{a(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Xe({enabled:i&&!e&&!c,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:o}}function Ai(e,t){e.useSyncedValues(t),K(()=>()=>{e.update({activeTriggerProps:u,inactiveTriggerProps:u,popupProps:u})},[e])}function ji(e,t){K(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),K(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Mi=class{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function Ni(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new yi({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:u,inactiveTriggerProps:u,popupProps:u}}var Pi=e=>e.triggerIdProp??e.activeTriggerId,Fi=e=>e.openProp??e.open,Ii=e=>(e.popupElement?.id??e.floatingId)||void 0;function Li(e,t){return t!==void 0&&Fi(e)&&Pi(e)===t}function Ri(e,t){return Li(e,t)?!0:t!==void 0&&Fi(e)&&Pi(e)==null&&e.triggerCount===1}var zi={open:Fi,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Pi,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Ii,isTriggerActive:(e,t)=>t!==void 0&&Pi(e)===t,isOpenedByTrigger:(e,t)=>Li(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Pi(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Ri(e,t)?Ii(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Bi(e){return Vi(e,e.rootContext)}function Vi(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=X.useState(null),[d,f]=X.useState(void 0),[p,m]=X.useState(void 0),h=X.useRef(null),g=Xn(r),_=X.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),v=fi({...e,elements:{..._,...l&&{reference:l}}}),y=P(d)?d:null,b=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:y),t.useSyncedValue(`floatingElement`,b);let x=X.useCallback(e=>{let t=P(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),v.refs.setReference(t)},[v.refs]),S=X.useCallback(e=>{(P(e)||e===null)&&(h.current=e,f(e)),(P(v.refs.reference.current)||v.refs.reference.current===null||e!==null&&!P(e))&&v.refs.setReference(e)},[v.refs,f]),C=X.useCallback(e=>{m(e),v.refs.setFloating(e)},[v.refs]),w=X.useMemo(()=>({...v.refs,setReference:S,setFloating:C,setPositionReference:x,domReference:h}),[v.refs,S,C,x]),T=X.useMemo(()=>({...v.elements,domReference:o}),[v.elements,o]),E=X.useMemo(()=>({...v,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:w,elements:T,nodeId:n,rootStore:t}),[v,w,T,n,t,s,c]);return K(()=>{o&&(h.current=o)},[o]),K(()=>{t.context.dataRef.current.floatingContext=E;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=E)}),X.useMemo(()=>({...v,context:E,refs:w,elements:T,rootStore:t}),[v,w,T,E,t])}var Hi=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new mn,this.restTimeout=new mn,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Ui=new WeakMap;function Wi(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Ui.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Ui.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Gi(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Ui.get(n);a&&a!==e&&Wi(a),Wi(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Ui.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Ki(e){let t=e.context.dataRef.current,n=le(()=>t.hoverInteractionState??Hi.create()).current;return t.hoverInteractionState||=n,Re(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function qi(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Xn(),d=Yn(),p=Ki(a),m=hn(),h=J(()=>vn(l.current.openEvent?.type,p.interactedInside)),g=J(()=>yn(l.current.openEvent?.type)),_=J(()=>{Wi(p)});K(()=>{o||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,_())},[o,p,_]),X.useEffect(()=>_,[_]),K(()=>{if(n&&o&&p.handleCloseOptions?.blockPointerEvents&&g()&&P(c)&&s){let e=c,t=s,n=Z(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=p.pointerEventsScopeElement===t?null:p.pointerEventsScopeElement,a=r===t?null:r,o=p.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Gi(p,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{_()}}},[n,o,c,s,p,g,u,d,_]),X.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&wt(u.nodesRef.current,d).length>0)}function t(e){let t=_n(r,`close`,p.pointerType),n=()=>{a.setOpen(!1,f(De,e)),u?.events.emit(`floating.closed`,e)};t?p.openChangeTimeout.start(t,n):(p.openChangeTimeout.clear(),n())}function o(e){let t=ce(e);if(!xt(t)){p.interactedInside=!1;return}p.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){p.openChangeTimeout.clear(),m.clear(),u?.events.off(`floating.closed`,y),_()}function v(n){if(e()&&u){u.events.on(`floating.closed`,y);return}if(_t(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&P(o)&&wt(u.nodesRef.current,r,!1).some(e=>q(e.context?.elements.floating,o)))){if(p.handler){p.handler(n);return}_(),g()&&!h()&&t(n)}}function y(t){u&&d&&!e()&&m.start(0,()=>{u.events.off(`floating.closed`,y),a.setOpen(!1,f(De,t)),u.events.emit(`floating.closed`,t)})}let b=s;return fn(b&&$(b,`mouseenter`,c),b&&$(b,`mouseleave`,v),b&&$(b,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,y)})},[n,s,a,l,r,i,g,h,_,p,u,d,m])}function Ji(e){return W(19)?e:e?`true`:void 0}var Yi=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Me(e,t)||{};if(l==null)return{};let f=ve(u),p={x:n,y:r},m=U(i),h=Oe(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=ue(k,j,A),N=!c.arrow&&Ae(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),Xi=(e,t)=>{let{name:n,fn:r}=Yi(e);return{name:n,fn:r,options:[e,t]}},Zi={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Qi={sideX:`left`,sideY:`top`},$i=`--available-width`,ea=`--available-height`,ta=`--anchor-width`,na=`--anchor-height`,ra=`--transform-origin`,ia=$i,aa=ea;function oa(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function sa(e,t,n){let{rects:r,placement:i}=e;return{side:oa(t,m(i),n),align:Ae(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ca(e){return la(e,Bi)}function la(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:h=!1,floatingRootContext:g,mounted:_,collisionAvoidance:v,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,[T,E]=X.useState(null);!_&&T!==null&&E(null);let D=v.side||`flip`,O=v.align||`flip`,k=v.fallbackAxisSide||`end`,A=y?.crossAxis??!1,j=y?.rootBoundary,M=typeof n==`function`?n:void 0,N=J(M),P=M?N:n,F=Jt(n),I=Jt(_),L=Ie()===`rtl`,R=T||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":L?`left`:`right`,"inline-start":L?`right`:`left`}[i],z=o===`center`?R:`${R}-${o}`,B=l;typeof B==`number`?B={top:B,right:B,bottom:B,left:B}:B&&={top:B.top||0,right:B.right||0,bottom:B.bottom||0,left:B.left||0};let V=+(i===`bottom`),ee=+(i===`top`),te=+(i===`right`),ne=+(i===`left`),H={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:B},U=X.useRef(null),re=Jt(a),ie=Jt(s),W=typeof a==`function`?0:a,ae=typeof s==`function`?0:s,oe=[];p&&oe.push(p),oe.push(pi(e=>{let t=sa(e,i,L),n=typeof re.current==`function`?re.current(t):re.current,r=typeof ie.current==`function`?ie.current(t):ie.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[W,ae,L,i]));let G=O===`none`&&D!==`shift`,se=!G&&(u||A||D===`shift`),ce=D===`none`?null:gi({...H,padding:{top:B.top+1+V,right:B.right+1+ne,bottom:B.bottom+1+ee,left:B.left+1+te},mainAxis:!A&&D===`flip`,crossAxis:O===`flip`&&`alignment`,fallbackAxisSideDirection:k}),q=G?null:mi({...H,rootBoundary:j,mainAxis:O!==`none`,crossAxis:se,limiter:u||A?void 0:hi(e=>{if(!U.current)return{};let{width:t,height:n}=U.current.getBoundingClientRect(),r=_e(m(e.placement)),i=r===`y`?t:n,a=r===`y`?B.left+B.right:B.top+B.bottom;return{offset:i/2+a/2}})},[H,u,A,j,B,O]);D===`shift`||O===`shift`||o===`center`?oe.push(q,ce):oe.push(ce,q),oe.push(_i({...H,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!I.current)return;let i=e.style;i.setProperty(ia,`${t}px`),i.setProperty(aa,`${n}px`);let a=w(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(ta,`${u}px`),i.setProperty(na,`${d}px`)}}),Xi(e=>({element:U.current||Z(e.elements.floating).createElement(`div`),padding:U.current?d:0,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=m(r),u=Ae(r),d=_e(l)===`y`,f=U.current,p=typeof a==`function`?a(sa(e,i,L)):a,h;h=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let g=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return se&&d&&Math.abs(n.shift?.y||0)>p&&(g=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(ra,d?`${h} ${g}`:`${g} ${h}`),{}}},Zi,x),K(()=>{!_&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,g]);let le=X.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:ue,elements:de,x:fe,y:pe,middlewareData:me,update:he,placement:ge,context:Y,isPositioned:ve,floatingStyles:ye}=t({rootContext:g,open:h?_:void 0,placement:z,middleware:oe,strategy:r,whileElementsMounted:h?void 0:(...e)=>ei(...e,le),nodeId:b,externalTree:C}),{sideX:be,sideY:xe}=me.adaptiveOrigin||Qi,Se=ve?r:`fixed`,Ce=X.useMemo(()=>{let e;return e=ve?x?{position:Se,[be]:fe,[xe]:pe}:{...ye,position:Se}:{position:Se,top:0,left:0},e[ia]=`100vw`,e[aa]=`100vh`,ve||(e.opacity=0),e},[x,Se,be,fe,xe,pe,ye,ve]),we=X.useRef(null);K(()=>{if(!_)return;let e=F.current,t=typeof e==`function`?e():e,n=(ua(t)?t.current:t)||null;n!==we.current&&(ue.setPositionReference(n),we.current=n)},[_,ue,P,F]),X.useEffect(()=>{if(!_)return;let e=F.current;typeof e!=`function`&&ua(e)&&e.current!==we.current&&(ue.setPositionReference(e.current),we.current=e.current)},[_,ue,P,F]),X.useEffect(()=>{if(h&&_&&de.reference&&de.floating)return ei(de.reference,de.floating,he,le)},[h,_,de,he,le]);let Te=m(ge),Ee=oa(i,Te,L),De=Ae(ge)||`center`,Oe=!!me.hide?.referenceHidden;K(()=>{S&&_&&ve&&Te!==R&&E(Te)},[S,_,ve,Te,R]);let ke=X.useMemo(()=>({position:`absolute`,top:me.arrow?.y,left:me.arrow?.x}),[me.arrow]),je=me.arrow?.centerOffset!==0;return X.useMemo(()=>({positionerStyles:Ce,arrowStyles:ke,arrowRef:U,arrowUncentered:je,side:Ee,align:De,physicalSide:Te,anchorHidden:Oe,refs:ue,context:Y,isPositioned:ve,update:he}),[Ce,ke,U,je,Ee,De,Te,Oe,ue,Y,ve,he])}function ua(e){return e!=null&&`current`in e}var da=X.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,Q.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function fa(e){return e===`starting`?In:u}function pa(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),re(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},fa(r),i],stateAttributesMapping:mt})}var ma={},ha={},ga=``;function _a(e,t){return G(e)?e:t}function va(e,t,n){return/hidden|clip/.test(e.getComputedStyle(_a(t,n)).overflowY)}function ya(e){if(typeof document>`u`)return!1;let t=Z(e);return w(t).innerWidth-t.documentElement.clientWidth>0}function ba(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Z(e),n=t.documentElement,r=t.body,i=_a(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function xa(e){let t=Z(e),n=t.documentElement,r=t.body,i=_a(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Sa(e){let t=Z(e),n=t.documentElement,r=t.body,i=w(n),a=0,o=0,s=!1,c=Ve.create();if(tt&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,ma={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ga=n.style.scrollBehavior,ha={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=_a(n,r);if(s=ba(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,ma),Object.assign(r.style,ha),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=ga)}function d(){u(),c.request(l)}l();let f=$(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Ca=new class{lockCount=0;restore=null;timeoutLock=mn.create();timeoutUnlock=mn.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Z(e),n=t.documentElement,r=t.body,i=w(n);if(va(i,n,r)){let t=new i.MutationObserver(()=>{va(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=p||!ya(e);this.restore=a?xa(e):Sa(e)}};function wa(e=!0,t=null){K(()=>{if(e)return Ca.acquire(t)},[e,t])}var Ta=20;function Ea(e,t,n,r){let[i,a]=X.useState(!1);K(()=>{if(!e||!t||n==null){a(!1);return}let r=Z(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Ta)},[e,t,n]),wa(e&&(!t||i),r)}var Da=X.createContext(void 0);function Oa(e){let t=X.useContext(Da);if(t===void 0&&!e)throw Error(S(47));return t}var ka={...zi,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Aa=class extends dn{constructor(e,t,n){let r=new Mi;super(ja(e,r,t,n),Ma(r),ka)}setOpen=(e,t)=>{let n=t.reason===De,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=Ei(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=Ti(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.set(`stickIfOpen`,!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set(`stickIfOpen`,!1)}),Ue.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function ja(e,t,n,r=!1){let i={...Ni(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function Ma(e){return{popupRef:X.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:X.createRef(),beforeContentFocusGuardRef:X.createRef(),stickIfOpenTimeout:new mn,triggerElements:e}}var Na=nn(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=Fa(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),p=u.useState(`mounted`),m=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),ji(u,d),Oi(u);let{forceUnmount:h}=ki(d,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:o}),X.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),X.useImperativeHandle(e.actionsRef,()=>({unmount:h,close:()=>u.setOpen(!1,f(Te))}),[h,u]);let g=d||p;return(0,Q.jsxs)(Da.Provider,{value:u,children:[s&&(0,Q.jsx)(wi,{handle:s,store:u}),g&&(0,Q.jsx)(Ia,{store:u,modal:o}),typeof t==`function`?t({payload:m}):t]})});function Pa(e){return Oa(!0)?(0,Q.jsx)(Na,{props:e}):(0,Q.jsx)($n,{children:(0,Q.jsx)(Na,{props:e})})}function Fa(e,t){let n=Ci((e,n)=>new Aa(t,e,n));return X.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Ia({store:e,modal:t}){let n=mr(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return Ai(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var La=X.createContext(void 0);function Ra(){let e=X.useContext(La);if(e===void 0)throw Error(S(45));return e}var za=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Oa().useState(`mounted`)||n?(0,Q.jsx)(La.Provider,{value:n,children:(0,Q.jsx)(Wn,{ref:t,...r})}):null}),Ba=X.createContext(void 0);function Va(){let e=X.useContext(Ba);if(!e)throw Error(S(46));return e}var Ha=X.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=Rn,..._}=e,v=Oa(),y=Ra(),b=Zn(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=v.useState(`adaptiveOrigin`),M=X.useRef(null),N=Ye(O),P=ca({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:j}),F=x.useState(`domReferenceElement`);K(()=>{let e=F,t=M.current;if(e&&(M.current=e),t&&e&&e!==t){v.set(`instantType`,void 0);let e=new AbortController;return N(()=>{v.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[F,N,v]);let I=E===!0&&w!==`trigger-hover`;Ea(C&&I,D===`touch`,O,T);let L=v.useStateSetter(`positionerElement`),R=pa(e,{open:C,side:P.side,align:P.align,anchorHidden:P.anchorHidden,instant:k},{styles:P.positionerStyles,transitionStatus:A,props:_,refs:[t,L],hidden:!S,inert:!C});return(0,Q.jsxs)(Ba.Provider,{value:P,children:[S&&I&&(0,Q.jsx)(da,{inert:Ji(!C),cutout:T}),(0,Q.jsx)(Qn,{id:b,children:R})]})}),Ua=X.createContext(void 0);function Wa(){let[e,t]=X.useState(0),n=J(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:X.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var Ga=X.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Oa(),l=Va(),u=Se(!0)!=null,{context:d,hasClosePart:f}=Wa(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);Xe({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),qi(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?Si(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M={open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},N=re(`div`,e,{state:M,ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...xi,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&de.has(e.key)&&e.stopPropagation()}},fa(g),s],stateAttributesMapping:ht});return(0,Q.jsx)(cr,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,previousFocusableElement:H(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Q.jsx)(Ua.Provider,{value:d,children:N})})}),Ka=c();function qa(e){if(!e||e instanceof Element)return e;let t=e;return{getBoundingClientRect:()=>{let e=t.right-t.left,n=t.bottom-t.top;return{x:t.left,y:t.top,left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:e,height:n,toJSON:()=>t}}}}function Ja(e){let t=(0,Ka.c)(23),{open:r,onOpenChange:i,anchor:a,label:o,className:s,side:c,initialFocus:l,finalFocus:u,children:d}=e,f=c===void 0?`bottom`:c,p=Le(),m;t[0]===i?m=t[1]:(m=e=>i(e),t[0]=i,t[1]=m);let h;t[2]===a?h=t[3]:(h=qa(a),t[2]=a,t[3]=h);let g;t[4]===s?g=t[5]:(g=n(`ui-popup ui-popover`,s),t[4]=s,t[5]=g);let _;t[6]!==d||t[7]!==u||t[8]!==l||t[9]!==o||t[10]!==g?(_=(0,Q.jsx)(Ga,{className:g,"aria-label":o,initialFocus:l,finalFocus:u,children:d}),t[6]=d,t[7]=u,t[8]=l,t[9]=o,t[10]=g,t[11]=_):_=t[11];let v;t[12]!==f||t[13]!==h||t[14]!==_?(v=(0,Q.jsx)(Ha,{className:`ui-positioner`,anchor:h,side:f,align:`start`,sideOffset:6,children:_}),t[12]=f,t[13]=h,t[14]=_,t[15]=v):v=t[15];let y;t[16]!==p||t[17]!==v?(y=(0,Q.jsx)(za,{container:p,children:v}),t[16]=p,t[17]=v,t[18]=y):y=t[18];let b;return t[19]!==r||t[20]!==m||t[21]!==y?(b=(0,Q.jsx)(Pa,{open:r,onOpenChange:m,modal:!1,children:y}),t[19]=r,t[20]=m,t[21]=y,t[22]=b):b=t[22],b}var Ya=X.createContext(void 0);function Xa(e){let t=X.useContext(Ya);if(t===void 0&&!e)throw Error(S(72));return t}var Za={...zi,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Qa=class extends dn{constructor(e,t,n){let r=new Mi;super($a(e,r,t,n),eo(r),Za)}setOpen=(e,t)=>{Di(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,f(Ne,e))}};function $a(e,t,n,r=!1){return{...Ni(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function eo(e){return{popupRef:X.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var to=nn(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:p}=e,m=Ci((e,t)=>new Qa({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));m.useControlledProp(`openProp`,r),m.useControlledProp(`triggerIdProp`,u),m.useContextCallback(`onOpenChange`,s),m.useContextCallback(`onOpenChangeComplete`,c);let h=m.useState(`open`),g=!t&&h,_=m.useState(`activeTriggerId`),v=m.useState(`mounted`),y=m.useState(`payload`);m.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),Oi(m,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:x}=ki(g,m),S=m.useState(`isInstantPhase`),C=m.useState(`instantType`),w=m.useState(`lastOpenChangeReason`),T=X.useRef(null);K(()=>{h&&t&&m.setOpen(!1,f(ge))},[h,t,m]),K(()=>{x===`ending`&&w===`none`||x!==`ending`&&S?(C!==`delay`&&(T.current=C),m.set(`instantType`,`delay`)):T.current!==null&&(m.set(`instantType`,T.current),T.current=null)},[x,S,w,C,m]),K(()=>{g&&(_??m.set(`payload`,void 0))},[m,_,g]),X.useImperativeHandle(o,()=>({unmount:b,close:()=>m.setOpen(!1,f(Te))}),[b,m]);let E=g||v||!t&&a!==`none`;return(0,Q.jsxs)(Ya.Provider,{value:m,children:[l&&(0,Q.jsx)(wi,{handle:l,store:m}),E&&(0,Q.jsx)(no,{store:m,disabled:t,trackCursorAxis:a}),typeof p==`function`?p({payload:y}):p]})});function no({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=mr(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=dr(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=X.useMemo(()=>ke(a.reference,i.reference),[a.reference,i.reference]);return Ai(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??u}),null}var ro=X.createContext(void 0);function io(){let e=X.useContext(ro);if(e===void 0)throw Error(S(70));return e}var ao=X.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Un({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,Q.jsxs)(X.Fragment,{children:[l,c&&Ue.createPortal(n,c)]})}),oo=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Xa().useState(`mounted`)||n?(0,Q.jsx)(ro.Provider,{value:n,children:(0,Q.jsx)(ao,{ref:t,...r})}):null}),so=X.createContext(void 0);function co(){let e=X.useContext(so);if(e===void 0)throw Error(S(71));return e}var lo=X.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=Rn,style:g,..._}=e,v=Xa(),y=io(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=ca({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=pa(e,X.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,Q.jsx)(so.Provider,{value:D,children:O})}),uo=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Xa(),{side:s,align:c}=co(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Xe({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),qi(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return re(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[xi,f,fa(d),a],stateAttributesMapping:ht})}),fo=e({AnchoredCard:()=>po});function po(e){let t=(0,Ka.c)(17),{anchor:r,className:i,state:a,children:o}=e,s=Le(),c=r!==null,l;t[0]===r?l=t[1]:(l=qa(r),t[0]=r,t[1]=l);let u;t[2]===i?u=t[3]:(u=n(`ui-tooltip ui-card`,i),t[2]=i,t[3]=u);let d;t[4]!==o||t[5]!==a||t[6]!==u?(d=(0,Q.jsx)(uo,{className:u,"data-state":a,role:`tooltip`,children:o}),t[4]=o,t[5]=a,t[6]=u,t[7]=d):d=t[7];let f;t[8]!==l||t[9]!==d?(f=(0,Q.jsx)(lo,{className:`ui-positioner`,anchor:l,side:`bottom`,align:`start`,sideOffset:6,children:d}),t[8]=l,t[9]=d,t[10]=f):f=t[10];let p;t[11]!==s||t[12]!==f?(p=(0,Q.jsx)(oo,{container:s,children:f}),t[11]=s,t[12]=f,t[13]=p):p=t[13];let m;return t[14]!==c||t[15]!==p?(m=(0,Q.jsx)(to,{open:c,children:p}),t[14]=c,t[15]=p,t[16]=m):m=t[16],m}export{nt as A,Ct as C,pt as D,mt as E,He as F,Z as I,et as M,Ze as N,st as O,Xe as P,Jt as S,bt as T,Wn as _,pa as a,hn as b,ca as c,xi as d,yi as f,Xn as g,Yn as h,Ea as i,tt as j,ct as k,Ji as l,cr as m,fo as n,fa as o,mr as p,Ja as r,da as s,po as t,Mi as u,Ln as v,St as w,dn as x,Cn as y}; \ No newline at end of file diff --git a/webviews/src/agent-session/acpmux/Composer.tsx b/webviews/src/agent-session/acpmux/Composer.tsx index 5ae868462ed3..bbee7cd72d37 100644 --- a/webviews/src/agent-session/acpmux/Composer.tsx +++ b/webviews/src/agent-session/acpmux/Composer.tsx @@ -583,32 +583,6 @@ export function Composer({ {t(blocked.reason)} </p> )} - <ComposerContext - projectChoices={projectChoices} - onBrowseProject={onBrowseProject} - summary={snapshot.summary} - sessions={snapshot.sessions} - peers={snapshot.peers} - started={(snapshot.summary?.turnCount ?? 0) > 0 || snapshot.rows.length > 0} - onProject={ - onProject && - ((cwd, peer) => { - onProject(cwd, peer); - field.current?.focus(); - }) - } - localName={localName} - movedTo={movedTo} - busy={snapshot.isWorking} - onMove={ - onMove && - ((cwd) => { - const move = onMove(cwd); - setAttachments((current) => [...current.filter((item) => !item.move), moveAttachment(move)]); - field.current?.focus(); - }) - } - /> {findingFiles && searchFiles && form.current?.parentElement && @@ -792,6 +766,32 @@ export function Composer({ </span> </div> </div> + <ComposerContext + projectChoices={projectChoices} + onBrowseProject={onBrowseProject} + summary={snapshot.summary} + sessions={snapshot.sessions} + peers={snapshot.peers} + started={(snapshot.summary?.turnCount ?? 0) > 0 || snapshot.rows.length > 0} + onProject={ + onProject && + ((cwd, peer) => { + onProject(cwd, peer); + field.current?.focus(); + }) + } + localName={localName} + movedTo={movedTo} + busy={snapshot.isWorking} + onMove={ + onMove && + ((cwd) => { + const move = onMove(cwd); + setAttachments((current) => [...current.filter((item) => !item.move), moveAttachment(move)]); + field.current?.focus(); + }) + } + /> </form> ); } diff --git a/webviews/src/agent-session/acpmux/ComposerContext.tsx b/webviews/src/agent-session/acpmux/ComposerContext.tsx index 4e37bd9caa96..7d8854613bc9 100644 --- a/webviews/src/agent-session/acpmux/ComposerContext.tsx +++ b/webviews/src/agent-session/acpmux/ComposerContext.tsx @@ -23,7 +23,7 @@ type Summary = NonNullable<AcpmuxSnapshot["summary"]>; type Session = AcpmuxSnapshot["sessions"][number]; type Location = { id: string; label: string; detail?: string }; -/// The small location row above the composer. New chats can choose a local or Cloud +/// The location tray attached below the composer. New chats can choose a local or Cloud /// computer and one of its known folders. Once the first turn starts the computer is a label and /// the folder moves the chat (`onMove`), except while a turn runs. export function ComposerContext({ @@ -84,56 +84,99 @@ export function ComposerContext({ if (!currentComputer && !currentFolder && !projectChoices) return null; const readOnly = started || onProject === undefined; const moves = started && onMove !== undefined && !busy; + const branch = summary?.branch; return ( <div className="acpmux-composer-context" data-readonly={readOnly ? "true" : undefined}> - <LocationPicker - label={t(CONTEXT_LABELS.computer)} - menu="Computer" - value={currentComputer?.label ?? t(CONTEXT_LABELS.chooseComputer)} - options={computers} - selected={selectedComputer} - disabled={readOnly} - onPick={(id) => { - if (!readOnly && id !== selectedComputer) { - setSelectedComputer(id); - const folder = availableFolders(summary, sessions, id)[0]?.id; - if (folder) onProject?.(folder, id === "local" ? undefined : id); - } - }} - /> - <span className="acpmux-context-divider" aria-hidden="true"> - · - </span> - {!readOnly && selectedComputer === "local" && projectChoices ? ( - <FolderMenu - label={t(CONTEXT_LABELS.folder)} - menu="Location" - folders={folders} - current={currentFolder} - onPick={(cwd) => onProject?.(cwd)} - onBrowse={onBrowseProject} - /> - ) : ( + <div className="acpmux-location-leading"> + {!readOnly && selectedComputer === "local" && projectChoices ? ( + <FolderMenu + label={t(CONTEXT_LABELS.folder)} + menu="Location" + folders={folders} + current={currentFolder} + onPick={(cwd) => onProject?.(cwd)} + onBrowse={onBrowseProject} + /> + ) : ( + <LocationPicker + label={t(CONTEXT_LABELS.folder)} + menu="Location" + value={currentFolder ? projectLabel(currentFolder) : t(CONTEXT_LABELS.chooseFolder)} + options={folders} + selected={currentFolder} + disabled={readOnly && !moves} + icon={<FolderIcon />} + allowPath + onPick={(cwd) => { + if (moves) { + if (cwd !== currentFolder) onMove?.(cwd); + } else if (!readOnly) onProject?.(cwd, selectedComputer === "local" ? undefined : selectedComputer); + }} + /> + )} <LocationPicker - label={t(CONTEXT_LABELS.folder)} - menu="Location" - value={currentFolder ? projectLabel(currentFolder) : t(CONTEXT_LABELS.chooseFolder)} - options={folders} - selected={currentFolder} - disabled={readOnly && !moves} - icon={<FolderIcon />} - allowPath - onPick={(cwd) => { - if (moves) { - if (cwd !== currentFolder) onMove?.(cwd); - } else if (!readOnly) onProject?.(cwd, selectedComputer === "local" ? undefined : selectedComputer); + label={t(CONTEXT_LABELS.computer)} + menu="Computer" + value={currentComputer?.label ?? t(CONTEXT_LABELS.chooseComputer)} + options={computers} + selected={selectedComputer} + disabled={readOnly} + onPick={(id) => { + if (!readOnly && id !== selectedComputer) { + setSelectedComputer(id); + const folder = availableFolders(summary, sessions, id)[0]?.id; + if (folder) onProject?.(folder, id === "local" ? undefined : id); + } }} /> - )} + </div> + {branch && <BranchPicker branch={branch} />} </div> ); } +function BranchPicker({ branch }: { branch: string }) { + const [open, setOpen] = useState(false); + return ( + <span className="acpmux-location-picker" title={branch}> + <Menu open={open} onOpenChange={setOpen}> + <MenuButton className="acpmux-location-button" label={t("changes.scope.branch")}> + <LocationFace icon={<BranchIcon />} value={branch} chevron /> + </MenuButton> + <MenuPopup side="top" className="acpmux-menu acpmux-location-menu" align="end"> + <MenuRadioGroup value={branch} onValueChange={() => undefined}> + <MenuRadioItem value={branch} disabled className="acpmux-menu-item"> + <span className="acpmux-menu-text"> + <span className="acpmux-menu-label">{branch}</span> + </span> + </MenuRadioItem> + </MenuRadioGroup> + </MenuPopup> + </Menu> + </span> + ); +} + +function BranchIcon() { + return ( + <svg + className="acpmux-icon acpmux-location-icon" + width={14} + height={14} + viewBox="0 0 16 16" + fill="none" + stroke="currentColor" + strokeWidth={1.25} + aria-hidden="true" + > + <circle cx="4" cy="3" r="1.5" /> + <circle cx="4" cy="13" r="1.5" /> + <circle cx="12" cy="13" r="1.5" /> + <path d="M4 4.5v5A3.5 3.5 0 0 0 7.5 13H10.5M4 6.5A3.5 3.5 0 0 1 7.5 3H10" /> + </svg> + ); +} + function computerId(summary?: Summary): string { return summary?.hostKind === "cloud" && (summary.peer || summary.host) ? (summary.peer ?? summary.host)! : "local"; } @@ -267,7 +310,7 @@ function FolderMenu({ <MenuButton className="acpmux-location-button" label={label}> <LocationFace icon={<FolderIcon />} value={value} chevron /> </MenuButton> - <MenuPopup className="acpmux-menu acpmux-location-menu" align="end"> + <MenuPopup side="top" className="acpmux-menu acpmux-location-menu" align="end"> {folders.length > 0 && ( <> <div className="acpmux-location-folders"> @@ -411,6 +454,7 @@ function LocationPicker({ anchor={open ? trigger.current : null} label={label} className="acpmux-menu acpmux-location-menu" + side="top" > <Combobox suggestions={suggestions} diff --git a/webviews/src/agent-session/acpmux/ComposerPickers.tsx b/webviews/src/agent-session/acpmux/ComposerPickers.tsx index f95a2aab7f76..a7636d6e2cb5 100644 --- a/webviews/src/agent-session/acpmux/ComposerPickers.tsx +++ b/webviews/src/agent-session/acpmux/ComposerPickers.tsx @@ -238,7 +238,7 @@ export function ComposerPickers({ button={ <> <ShieldIcon /> - <span>{mode?.name ?? t(PICKER_LABELS.mode)}</span> + <span className="acpmux-mode-text">{mode?.name ?? t(PICKER_LABELS.mode)}</span> <ChevronIcon /> </> } diff --git a/webviews/src/agent-session/acpmux/composer.gallery.ts b/webviews/src/agent-session/acpmux/composer.gallery.ts index 31f177fa7ce0..3a5dfe15b03d 100644 --- a/webviews/src/agent-session/acpmux/composer.gallery.ts +++ b/webviews/src/agent-session/acpmux/composer.gallery.ts @@ -16,8 +16,27 @@ export default agentPaneEntry({ title: "Composer", area: "Agent pane", height: 420, + widths: { narrow: 400, normal: 760, wide: 760 }, // The transcript must not move while a play step opens a menu over it. - anchors: [{ selector: ".acpmux-scroll" }], + anchors: [ + { selector: ".acpmux-scroll" }, + { selector: ".acpmux-composer-box" }, + { selector: ".acpmux-composer-context" }, + ], + checks: { + anchorMovePx: { + value: 0, + reason: "Footer menus and the capped draft must preserve the transcript and shelf geometry.", + }, + layoutShiftMax: { + value: 0, + reason: "The location tray is attached to the composer and must not reflow the transcript.", + }, + longFrameFailMs: { + value: 33, + reason: "Composer interactions must stay below one display frame on the gallery host.", + }, + }, covers: [ "agent-session/acpmux/Composer.tsx#Composer", "agent-session/acpmux/ComposerPickers.tsx#ComposerPickers", @@ -54,6 +73,26 @@ export default agentPaneEntry({ }, snapshot: chat(finished), }, + "long-draft-light": { + note: "The capped long draft in the light theme proof matrix.", + ready: { + draft: Array.from( + { length: 18 }, + (_, index) => `Line ${index + 1}: keep the retry rules and the tests in sync with the docs.`, + ).join("\n"), + }, + snapshot: chat(finished), + }, + "long-draft-dark": { + note: "The capped long draft in the dark theme proof matrix.", + ready: { + draft: Array.from( + { length: 18 }, + (_, index) => `Line ${index + 1}: keep the retry rules and the tests in sync with the docs.`, + ).join("\n"), + }, + snapshot: chat(finished), + }, working: { note: "A turn running: Send becomes Stop.", snapshot: chat([user("Add retries", 1), assistant("Reading the helper…", 0.5, { streaming: true })], { @@ -64,6 +103,18 @@ export default agentPaneEntry({ note: "Another harness and model in the chips.", snapshot: chat(finished, { harness: "codex", model: "gpt-6-astra", title: "Codex chat" }), }, + "tray-long-branch": { + note: "The attached tray keeps a long branch readable without moving the composer.", + snapshot: chat(finished, { branch: "feature/composer-location-tray" }), + }, + "docked-400": { + note: "The recessed location shelf at a 400px dock width.", + snapshot: chat(finished, { branch: "feature/composer-location-tray" }), + }, + "wide-760": { + note: "The composer and shelf at the 760px wide proof width.", + snapshot: chat(finished, { branch: "feature/composer-location-tray" }), + }, "slash-menu": { note: "Play: type / in the prompt; the agent's command menu opens.", snapshot: chat(finished, { diff --git a/webviews/src/agent-session/acpmux/composerLocation.css b/webviews/src/agent-session/acpmux/composerLocation.css index c0ad812b9b89..4d5282a54486 100644 --- a/webviews/src/agent-session/acpmux/composerLocation.css +++ b/webviews/src/agent-session/acpmux/composerLocation.css @@ -1,4 +1,4 @@ -/* The location row above the composer (ComposerContext.tsx): "This Mac ⌄ · <folder> ⌄", one quiet +/* The location tray below the composer (ComposerContext.tsx): folder and branch controls, one quiet row of text menu buttons that all look alike. A control is a plain text button (no native bezel, no fill, no weight change); hover and an open menu lay a soft rounded wash from the theme under it, and keyboard focus draws a ring in the theme's text color. The padding is always there, so @@ -7,14 +7,23 @@ display: flex; align-items: center; justify-content: flex-end; - gap: 2px; + gap: 8px; min-width: 0; - height: 28px; - margin: 0 12px -2px; + height: 36px; + margin: -12px 0 16px; + padding: 0 14px; + box-sizing: border-box; + border: 1px solid var(--acpmux-composer-edge); + border-top: 0; + border-radius: 0 0 20px 20px; + background: var(--acpmux-composer-tray); color: var(--agent-muted); font-size: 12px; line-height: 16px; } +.acpmux-composer-context > .acpmux-location-leading { display: flex; align-items: center; gap: 2px; min-width: 0; margin-right: auto; flex: 1 1 0; } +.acpmux-composer-context > .acpmux-location-leading > .acpmux-location-picker, +.acpmux-composer-context > .acpmux-location-picker { flex: 1 1 0; min-width: 0; } .acpmux-location-picker { position: relative; display: inline-flex; @@ -28,6 +37,7 @@ align-items: center; gap: 4px; min-width: 0; + width: 100%; max-width: 220px; height: 22px; margin: 0; @@ -79,3 +89,34 @@ .acpmux-location-menu .ui-menu-item[data-highlighted] { background: var(--acpmux-menu-hover); } .acpmux-location-menu .acpmux-menu-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acpmux-location-menu .ui-separator { flex: none; height: 1px; margin: 4px 6px; background: color-mix(in srgb, var(--agent-text) 12%, transparent); } + +/* The shelf sits behind the composer edge instead of reading as a second full row. The composer + owns the shadow and the shelf keeps a stable inset, so opening a menu never moves the transcript. */ +.acpmux-composer-box { z-index: 2; } +.acpmux-composer-context { + position: relative; + z-index: 1; + height: 40px; + margin: -14px 2px 12px; + padding: 10px 10px 0; + border-top: 0; + border-radius: 0 0 18px 18px; + box-shadow: inset 0 0 0 .5px var(--acpmux-composer-edge), 0 4px 10px color-mix(in srgb, var(--agent-text) 6%, transparent); +} +.acpmux-composer-bar { + min-height: 52px; + height: auto; + padding: 6px 12px; +} +.acpmux-mode .acpmux-mode-text { display: none; } +.acpmux-mode .acpmux-picker-button { + width: 30px; + justify-content: center; + gap: 0; + padding: 0; +} +.acpmux-mode .acpmux-picker-button .acpmux-icon:last-child { display: none; } +.acpmux-mode .acpmux-picker-button[aria-expanded="true"], +.acpmux-mode .acpmux-picker-button:hover { color: var(--agent-text); } +.acpmux-send { width: 32px; height: 32px; } +.acpmux-context-ring { width: 32px; height: 32px; } diff --git a/webviews/src/agent-session/acpmux/composerPickers.test.tsx b/webviews/src/agent-session/acpmux/composerPickers.test.tsx index b54781d84d36..668e96a72dd1 100644 --- a/webviews/src/agent-session/acpmux/composerPickers.test.tsx +++ b/webviews/src/agent-session/acpmux/composerPickers.test.tsx @@ -874,17 +874,18 @@ describe("acpmux composer context", () => { await ready(); }; try { - await render({ cwd: "/Users/me/code/cmux", host: "hearty-beige-elk", hostKind: "cloud" }); + await render({ cwd: "/Users/me/code/cmux", host: "hearty-beige-elk", hostKind: "cloud", branch: "main" }); expect(doc.querySelectorAll(".acpmux-context-chip")).toHaveLength(0); expect([...doc.querySelectorAll(".acpmux-location-readonly")].map((node) => node.textContent)).toEqual([ - "hearty-beige-elk", "cmux", + "hearty-beige-elk", ]); - await render({ cwd: "/Users/me/code/cmux", host: "hearty-beige-elk", hostKind: "cloud" }, [ + await render({ cwd: "/Users/me/code/cmux", host: "hearty-beige-elk", hostKind: "cloud", branch: "main" }, [ { id: "u", version: 1, at: 0, kind: "user", text: "hello" }, ]); expect(doc.querySelector(".acpmux-composer-context")?.getAttribute("data-readonly")).toBe("true"); - expect(doc.querySelectorAll(".acpmux-location-button")).toHaveLength(0); + expect(doc.querySelectorAll(".acpmux-location-button")).toHaveLength(1); + expect(doc.querySelector('.acpmux-location-button[aria-label="Branch"]')).not.toBeNull(); } finally { await act(async () => root.unmount()); } @@ -918,7 +919,7 @@ describe("acpmux composer queue", () => { "first", "second\nline", ]); - expect(list.nextElementSibling!.classList.contains("acpmux-composer-context")).toBe(true); + expect(doc.querySelector(".acpmux-composer-context")).not.toBeNull(); // The slash menu anchors to the field, so the queue never pushes it up. await act(async () => typeInto(promptField(doc), "/")); expect(doc.querySelector(".acpmux-composer-box > .acpmux-slash-menu")).not.toBeNull(); @@ -946,10 +947,8 @@ describe("acpmux composer queue", () => { }), ), ); - const queue = doc.querySelector("ol.acpmux-composer-queue")!; - const tray = queue.nextElementSibling!; - expect(tray.classList.contains("acpmux-composer-context")).toBe(true); - expect(tray.nextElementSibling!.classList.contains("acpmux-composer-box")).toBe(true); + const tray = doc.querySelector(".acpmux-composer-context")!; + expect(tray.previousElementSibling!.classList.contains("acpmux-composer-box")).toBe(true); } finally { await act(async () => root.unmount()); } diff --git a/webviews/src/agent-session/acpmux/composerStates.css b/webviews/src/agent-session/acpmux/composerStates.css index 6a360d344637..405a5688dcc5 100644 --- a/webviews/src/agent-session/acpmux/composerStates.css +++ b/webviews/src/agent-session/acpmux/composerStates.css @@ -152,7 +152,7 @@ button.acpmux-send:disabled:not(.acpmux-cancel):not(.acpmux-send-ready) { box-sizing: border-box; width: 100%; min-height: 45px; - max-height: 40vh; + max-height: calc(22px * 8 + 23px); margin: 0; padding: 15px 16px 8px 32px; border: 0; diff --git a/webviews/src/agent-session/acpmux/markdownField.css b/webviews/src/agent-session/acpmux/markdownField.css index d6d08c49859d..5f0623cd2063 100644 --- a/webviews/src/agent-session/acpmux/markdownField.css +++ b/webviews/src/agent-session/acpmux/markdownField.css @@ -3,7 +3,9 @@ user formats. Theme tokens only. */ .acpmux-md-field { position: relative; - max-height: 40vh; + /* Keep long drafts inside the composer. Eight lines matches the reference composer and + leaves the transcript and location shelf anchored while the draft grows. */ + max-height: calc(22px * 8 + 23px); overflow-y: auto; padding: 15px 16px 8px; font-size: 15px; diff --git a/webviews/src/agent-session/acpmux/projectChooser.test.tsx b/webviews/src/agent-session/acpmux/projectChooser.test.tsx index 1bcce17c0705..a3ecb9e5c128 100644 --- a/webviews/src/agent-session/acpmux/projectChooser.test.tsx +++ b/webviews/src/agent-session/acpmux/projectChooser.test.tsx @@ -91,15 +91,26 @@ const render = ( ), ); -test("renders plain right-aligned computer and folder pickers without context chips", async () => { - await render(); +test("renders the attached folder, computer and branch tray without context chips", async () => { + await render({ branch: "main" }); expect(doc.querySelectorAll(".acpmux-context-chip")).toHaveLength(0); expect([...doc.querySelectorAll(".acpmux-location-button")].map((button) => button.textContent)).toEqual([ - "This Mac", "cmux", + "This Mac", + "main", + ]); + expect(doc.querySelector(".acpmux-composer-context")).not.toBeNull(); + // Folder and branch icons plus the shared chevrons keep the controls aligned. + expect(doc.querySelectorAll(".acpmux-location-button .acpmux-icon").length).toBeGreaterThanOrEqual(3); + + const branch = doc.querySelector<HTMLButtonElement>('[aria-label="Branch"]')!; + await act(async () => branch.click()); + const branchRow = doc.querySelector<HTMLElement>('.acpmux-location-menu [role="menuitemradio"]')!; + expect([branchRow.textContent, branchRow.getAttribute("aria-checked"), branchRow.getAttribute("aria-disabled")]).toEqual([ + "main", + "true", + "true", ]); - // Two chevrons and the folder's icon: every part of the row is the same text menu button. - expect(doc.querySelectorAll(".acpmux-location-button .acpmux-icon")).toHaveLength(3); }); test("offers Cloud computers and sends the selected computer with its folder", async () => { @@ -120,8 +131,9 @@ test("offers Cloud computers and sends the selected computer with its folder", a }); test("locks both location labels after the first turn", async () => { - await render({ turnCount: 1 }, true); - expect(doc.querySelectorAll(".acpmux-location-button")).toHaveLength(0); + await render({ turnCount: 1, branch: "main" }, true); + expect(doc.querySelectorAll(".acpmux-location-button")).toHaveLength(1); + expect(doc.querySelector('.acpmux-location-button[aria-label="Branch"]')).not.toBeNull(); expect(doc.querySelectorAll(".acpmux-location-readonly")).toHaveLength(2); expect(doc.querySelector(".acpmux-composer-context")?.getAttribute("data-readonly")).toBe("true"); }); diff --git a/webviews/src/agent-session/shared/theme.test.ts b/webviews/src/agent-session/shared/theme.test.ts index 59846eaa9208..e2bdbced3d68 100644 --- a/webviews/src/agent-session/shared/theme.test.ts +++ b/webviews/src/agent-session/shared/theme.test.ts @@ -125,11 +125,11 @@ describe("agent theme", () => { expect(send).not.toMatch(/[;{]color:var\(--acpmux-composer-bg\)/); // The idle Send dims by mixing into the opaque base, never by opacity, which would let the backdrop through. expect(acpmux).not.toMatch(/\.acpmux-send[^{]*\{[^}]*opacity/); - // Location controls are plain labels above the box, with no tray or chip card (composerLocation.css). + // Location controls are plain labels in the attached tray, with no chip card (composerLocation.css). const location = css("../acpmux/composerLocation.css"); expect(location).toMatch(/\.acpmux-composer-context\s*\{[^}]*justify-content\s*:\s*flex-end/); expect(location).toMatch(/\.acpmux-location-button[^}]*background\s*:\s*none/); - expect(location).not.toMatch(/\.acpmux-composer-context\s*\{[^}]*background\s*:/); + expect(location).toMatch(/\.acpmux-composer-context\s*\{[^}]*background\s*:\s*var\(--acpmux-composer-tray\)/); const overlay = acpmux.match(/\[data-sidebar=open\] \.acpmux-sidebar\{[^}]*\}/)?.[0] ?? ""; expect(overlay).toMatch(/background:var\(--acpmux-base\)/); for (const hover of [ diff --git a/webviews/src/gallery/fixtures/acpmux.ts b/webviews/src/gallery/fixtures/acpmux.ts index 866e84a1e7cd..4e8edc8f8a1c 100644 --- a/webviews/src/gallery/fixtures/acpmux.ts +++ b/webviews/src/gallery/fixtures/acpmux.ts @@ -79,9 +79,15 @@ export function session(fields: Partial<AcpmuxSessionEntry> & { sessionId: strin /** A connected snapshot of one chat: `rows`, with its session in the list. */ export function chat( rows: AcpmuxRow[], - fields: Partial<AcpmuxSnapshot> & { title?: string; harness?: string; model?: string } = {}, + fields: Partial<AcpmuxSnapshot> & { title?: string; harness?: string; model?: string; branch?: string } = {}, ): AcpmuxSnapshot { - const { title = "Add retries to the fetch helper", harness = "claude", model = "claude-opus-5-5", ...rest } = fields; + const { + title = "Add retries to the fetch helper", + harness = "claude", + model = "claude-opus-5-5", + branch = "main", + ...rest + } = fields; return { type: "snapshot", protocolVersion: 1, @@ -96,7 +102,7 @@ export function chat( cwd: CWD, host: "This Mac", hostKind: "local", - branch: "main", + branch, turnCount: rows.filter((candidate) => candidate.kind === "user").length, usage: { used: 48_000, size: 200_000 }, promptCapabilities: { image: true }, diff --git a/webviews/src/ui/Popover.tsx b/webviews/src/ui/Popover.tsx index b7a17297bcfd..53c84aa0a4ce 100644 --- a/webviews/src/ui/Popover.tsx +++ b/webviews/src/ui/Popover.tsx @@ -47,6 +47,8 @@ export interface PopoverProps { /** The accessible name of the popover (role dialog). */ label: string; className?: string; + /** Which side of the anchor receives the popover. */ + side?: "top" | "bottom" | "inline-end" | "inline-start"; /** Focus a field inside on open (default: the first focusable). */ initialFocus?: React.RefObject<HTMLElement | null> | boolean; /** Where focus goes on close (default: back to where it was). */ @@ -60,6 +62,7 @@ export function Popover({ anchor, label, className, + side = "bottom", initialFocus, finalFocus, children, @@ -71,7 +74,7 @@ export function Popover({ <BasePopover.Positioner className="ui-positioner" anchor={virtualAnchor(anchor)} - side="bottom" + side={side} align="start" sideOffset={UI_ANCHOR_GAP} >